perf: add truthProp util (#8522)
* perf: add TruthyProp util * chore: rename * chore: upd
This commit is contained in:
+2
-5
@@ -1,5 +1,5 @@
|
||||
import { computed, PropType, ComputedRef, defineComponent } from 'vue';
|
||||
import { createNamespace, ComponentInstance } from '../utils';
|
||||
import { truthProp, createNamespace, ComponentInstance } from '../utils';
|
||||
import { useChildren } from '@vant/use';
|
||||
|
||||
const [name, bem] = createNamespace('row');
|
||||
@@ -25,16 +25,13 @@ export default defineComponent({
|
||||
name,
|
||||
|
||||
props: {
|
||||
wrap: truthProp,
|
||||
align: String as PropType<RowAlign>,
|
||||
justify: String as PropType<RowJustify>,
|
||||
tag: {
|
||||
type: String as PropType<keyof HTMLElementTagNameMap>,
|
||||
default: 'div',
|
||||
},
|
||||
wrap: {
|
||||
type: Boolean,
|
||||
default: true,
|
||||
},
|
||||
gutter: {
|
||||
type: [Number, String],
|
||||
default: 0,
|
||||
|
||||
Reference in New Issue
Block a user