提交 e5cdfcdf 编写于 作者: richard_1015's avatar richard_1015

fix(switch): active-text props bug

上级 0fee9482
<template>
<view :class="classes" @click="onClick" :style="style">
<view class="switch-button">
<view v-show="!isOpen" class="close-line"></view>
<view v-show="!modelValue" class="close-line"></view>
<template v-if="activeText">
<view class="nut-switch-label open" v-show="isOpen">{{
<view class="nut-switch-label open" v-show="modelValue">{{
activeText
}}</view>
<view class="nut-switch-label close" v-show="!isOpen">{{
<view class="nut-switch-label close" v-show="!modelValue">{{
inactiveText
}}</view>
</template>
......@@ -25,10 +25,6 @@ export default create({
type: Boolean,
default: false
},
checked: {
type: Boolean,
default: true
},
disable: {
type: Boolean,
default: false
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册