Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

wxc-radio组件复写色值和icon无效 #89

Closed
Shruan opened this issue Dec 18, 2017 · 6 comments
Closed

wxc-radio组件复写色值和icon无效 #89

Shruan opened this issue Dec 18, 2017 · 6 comments

Comments

@Shruan
Copy link

Shruan commented Dec 18, 2017

wxc-radio不知道是我的写错有问题还是组件配置有问题,在我的项目中修改这个组件的色值和icon的时候是无效的。 修改wxc-dialog那个按钮颜色直接写在上面是prop的里面是有效的。

  <wxc-radio :list="applyAbnormalList" :config="radioConfig" @wxcRadioListChecked="wxcRadioListChecked"></wxc-radio>

data () {
    return  {
      radioConfig: {
          checkedIcon:'https://gw.alicdn.com/tfs/TB1Y9vlpwMPMeJjy1XcXXXpppXa-72-72.png',
          disabledIcon:'https://gw.alicdn.com/tfs/TB1PtN3pwMPMeJjy1XdXXasrXXa-72-72.png',
          checkedColor: '#3CCBA6'
      },
    }
}
@tw93
Copy link
Member

tw93 commented Dec 18, 2017

这样写是正确的 检查下你的weex ui的版本号码是否为最新~

@Shruan
Copy link
Author

Shruan commented Dec 18, 2017

我的版本号是0.3.0

    "dependencies": {
        "@antv/f2": "^3.0.1-beta.1",
        "axios": "^0.16.2",
        "echarts": "^3.7.2",
        "fs-extra": "^4.0.1",
        "natjs": "^0.1.2",
        "vue": "^2.1.8",
        "vue-router": "^2.1.1",
        "vuex": "^2.1.1",
        "vuex-router-sync": "^4.0.1",
        "weex-html5": "^0.4.1",
        "weex-scanqr": "0.0.4",
        "weex-ui": "^0.3.0",
        "weex-vue-render": "^0.11.2"
    },

@tw93
Copy link
Member

tw93 commented Dec 18, 2017

升级组件到最新,此功能是0.3.4才加的哦

@tw93 tw93 closed this as completed Dec 18, 2017
@Shruan
Copy link
Author

Shruan commented Dec 18, 2017

我升级到了0.3.7了也是无效的为啥。。

@Shruan
Copy link
Author

Shruan commented Dec 18, 2017

    "dependencies": {
        "@antv/f2": "^3.0.1-beta.1",
        "axios": "^0.16.2",
        "echarts": "^3.7.2",
        "fs-extra": "^4.0.1",
        "natjs": "^0.1.2",
        "vue": "^2.1.8",
        "vue-router": "^2.1.1",
        "vuex": "^2.1.1",
        "vuex-router-sync": "^4.0.1",
        "weex-html5": "^0.4.1",
        "weex-scanqr": "0.0.4",
        "weex-ui": "^0.3.7",
        "weex-vue-render": "^0.11.2"
    },

@tw93
Copy link
Member

tw93 commented Dec 18, 2017

更新weex-ui 到最新~

npm i weex-ui@latest -S
是我的一个疏忽,目前组件已经修正

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants