update 修改组件 去除无用引用和代码缩进

This commit is contained in:
LiuHao
2023-06-06 22:52:24 +08:00
parent 9f038ad181
commit d43ae50abc
14 changed files with 278 additions and 326 deletions
+2 -5
View File
@@ -24,7 +24,7 @@
</template>
<script setup lang="ts">
import { PropType } from 'vue';
import { propTypes } from '@/utils/propTypes';
const props = defineProps({
@@ -36,10 +36,7 @@ const props = defineProps({
// 当前的值
value: [Number, String, Array] as PropType<number | string | Array<number | string>>,
// 当未找到匹配的数据时,显示value
showValue: {
type: Boolean as PropType<boolean>,
default: true,
},
showValue: propTypes.bool.def(true),
});
const values = computed(() => {