perf: add truthProp util (#8522)
* perf: add TruthyProp util * chore: rename * chore: upd
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { PropType, defineComponent } from 'vue';
|
||||
|
||||
// Utils
|
||||
import { createNamespace } from '../utils';
|
||||
import { truthProp, createNamespace } from '../utils';
|
||||
|
||||
// Components
|
||||
import { Button } from '../button';
|
||||
@@ -15,6 +15,7 @@ export default defineComponent({
|
||||
|
||||
props: {
|
||||
modelValue: [Number, String],
|
||||
switchable: truthProp,
|
||||
disabledText: String,
|
||||
addButtonText: String,
|
||||
defaultTagText: String,
|
||||
@@ -26,10 +27,6 @@ export default defineComponent({
|
||||
type: Array as PropType<AddressListAddress[]>,
|
||||
default: () => [],
|
||||
},
|
||||
switchable: {
|
||||
type: Boolean,
|
||||
default: true,
|
||||
},
|
||||
},
|
||||
|
||||
emits: [
|
||||
|
||||
Reference in New Issue
Block a user