Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

:class只能用在component里,不能用在page里? #257

Closed
smart-Jenny opened this issue Jul 14, 2017 · 2 comments
Closed

:class只能用在component里,不能用在page里? #257

smart-Jenny opened this issue Jul 14, 2017 · 2 comments
Labels

Comments

@smart-Jenny
Copy link

<template>
  <button class="btn" :class="{disabledClass: disabledBtn}">提交</button>
</template>
export default class Counter extends wepy.page{
  data={
    disabledBtn:true
  }
}

代码如上,编译结果并没有给button加上类名"disabledClass"

@Gcaufy Gcaufy self-assigned this Jul 17, 2017
Gcaufy added a commit that referenced this issue Jul 17, 2017
@Gcaufy Gcaufy added the bug label Jul 17, 2017
@Gcaufy
Copy link
Collaborator

Gcaufy commented Aug 5, 2017

fixed in 1.5.8

@Gcaufy Gcaufy closed this as completed Aug 5, 2017
@newlmy
Copy link

newlmy commented Aug 8, 2017

image
image
image

wepy升级为1.5.8,page采用:class还是不行,是哪里使用不正确吗

dlhandsome pushed a commit to dlhandsome/wepy that referenced this issue Aug 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants