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 { CSSProperties, PropType, Transition, defineComponent } from 'vue';
|
||||
import { createNamespace } from '../utils';
|
||||
import { truthProp, createNamespace } from '../utils';
|
||||
import { Icon } from '../icon';
|
||||
|
||||
const [name, bem] = createNamespace('tag');
|
||||
@@ -12,6 +12,7 @@ export default defineComponent({
|
||||
props: {
|
||||
size: String,
|
||||
mark: Boolean,
|
||||
show: truthProp,
|
||||
color: String,
|
||||
plain: Boolean,
|
||||
round: Boolean,
|
||||
@@ -21,10 +22,6 @@ export default defineComponent({
|
||||
type: String as PropType<TagType>,
|
||||
default: 'default',
|
||||
},
|
||||
show: {
|
||||
type: Boolean,
|
||||
default: true,
|
||||
},
|
||||
},
|
||||
|
||||
emits: ['close'],
|
||||
|
||||
Reference in New Issue
Block a user