fix: 🐛 修复图标选取组件和字典复选组件的使用bug

修复图标选取组件和字典复选组件的使用bug
This commit is contained in:
胡少翔
2024-10-23 10:46:41 +08:00
parent 253502018f
commit ca81612981
3 changed files with 7 additions and 4 deletions

View File

@@ -2,7 +2,7 @@
<script setup lang="ts">
const stringValue = ref("1"); // 性别(值为String)
const numberValue = ref(1); // 性别(值为Number)
const arraryValue = ref(["1", "2"]); // 性别(值为Array)
const arrayValue = ref(["1", "2"]); // 性别(值为Array)
</script>
<template>
@@ -38,7 +38,7 @@ const arraryValue = ref(["1", "2"]); // 性别(值为Array)
</el-form-item>
<el-form-item label="复选框字典">
<dict v-model="arraryValue" type="checkbox" code="gender" />
<dict v-model="arrayValue" type="checkbox" code="gender" />
<el-link :underline="false" type="success" class="ml-5">
值为Number: const value = ref(["1", "2"]);
</el-link>