Browse Source

增加value接收类型

zq-ui
zq 1 week ago
parent
commit
95742654cd
  1. 3
      src/components/GuipSwitch.vue

3
src/components/GuipSwitch.vue

@ -20,6 +20,7 @@
<!-- 他这个描述文案不太符合当前使用暂且不用 --> <!-- 他这个描述文案不太符合当前使用暂且不用 -->
<!-- :active-text="activeText" <!-- :active-text="activeText"
:inactive-text="inactiveText" --> :inactive-text="inactiveText" -->
<!-- 设置active-value和inactive-value属性接受Boolean, String或Number类型的值 -->
<script> <script>
@ -35,7 +36,7 @@ export default {
default: '', default: '',
}, },
modelValue: { modelValue: {
type: Boolean, type: [Boolean,String,Number],
default: false, default: false,
}, },
activeColor: { activeColor: {

Loading…
Cancel
Save