perf: add truthProp util (#8522)
* perf: add TruthyProp util * chore: rename * chore: upd
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { PropType, defineComponent } from 'vue';
|
||||
import { createNamespace } from '../utils';
|
||||
import { truthProp, createNamespace } from '../utils';
|
||||
import { BORDER_TOP_BOTTOM } from '../utils/constant';
|
||||
import { useChildren } from '@vant/use';
|
||||
|
||||
@@ -16,6 +16,7 @@ export default defineComponent({
|
||||
name,
|
||||
|
||||
props: {
|
||||
border: truthProp,
|
||||
accordion: Boolean,
|
||||
modelValue: {
|
||||
type: [String, Number, Array] as PropType<
|
||||
@@ -23,10 +24,6 @@ export default defineComponent({
|
||||
>,
|
||||
default: '',
|
||||
},
|
||||
border: {
|
||||
type: Boolean,
|
||||
default: true,
|
||||
},
|
||||
},
|
||||
|
||||
emits: ['change', 'update:modelValue'],
|
||||
|
||||
Reference in New Issue
Block a user