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';
|
||||
|
||||
const [name, bem] = createNamespace('divider');
|
||||
|
||||
@@ -10,10 +10,7 @@ export default defineComponent({
|
||||
|
||||
props: {
|
||||
dashed: Boolean,
|
||||
hairline: {
|
||||
type: Boolean,
|
||||
default: true,
|
||||
},
|
||||
hairline: truthProp,
|
||||
contentPosition: {
|
||||
type: String as PropType<DividerContentPosition>,
|
||||
default: 'center',
|
||||
|
||||
Reference in New Issue
Block a user