Skip to content

Commit

Permalink
fix: 同步 V4 分支问题修复 jd-opensource#2252 (jd-opensource#2258)
Browse files Browse the repository at this point in the history
  • Loading branch information
eiinu committed Apr 24, 2023
1 parent c134f72 commit 36a2741
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions src/packages/__VUE/switch/index.taro.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<nut-icon v-if="loading" v-bind="$attrs" :name="name" :size="size" :color="color"></nut-icon>
<!-- <view v-show="!modelValue" class="close-line"></view> -->
<template v-if="activeText">
<view class="nut-switch-label open" v-show="modelValue">{{ activeText }}</view>
<view class="nut-switch-label close" v-show="!modelValue">{{ inactiveText }}</view>
<view class="nut-switch-label open" v-show="isActive">{{ activeText }}</view>
<view class="nut-switch-label close" v-show="!isActive">{{ inactiveText }}</view>
</template>
</view>
</view>
Expand Down Expand Up @@ -110,7 +110,8 @@ export default create({
return {
classes,
style,
onClick
onClick,
isActive
};
}
});
Expand Down
7 changes: 4 additions & 3 deletions src/packages/__VUE/switch/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<nut-icon v-if="loading" :name="name" v-bind="$attrs" :size="size" :color="color"></nut-icon>
<!-- <view v-show="!modelValue" class="close-line"></view> -->
<template v-if="activeText">
<view class="nut-switch-label open" v-show="modelValue">{{ activeText }}</view>
<view class="nut-switch-label close" v-show="!modelValue">{{ inactiveText }}</view>
<view class="nut-switch-label open" v-show="isActive">{{ activeText }}</view>
<view class="nut-switch-label close" v-show="!isActive">{{ inactiveText }}</view>
</template>
</view>
</view>
Expand Down Expand Up @@ -110,7 +110,8 @@ export default create({
return {
classes,
style,
onClick
onClick,
isActive
};
}
});
Expand Down

0 comments on commit 36a2741

Please sign in to comment.