perf: add truthProp util (#8522)
* perf: add TruthyProp util * chore: rename * chore: upd
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { defineComponent } from 'vue';
|
||||
import { createNamespace } from '../utils';
|
||||
import { truthProp, createNamespace } from '../utils';
|
||||
import { BORDER_TOP_BOTTOM } from '../utils/constant';
|
||||
|
||||
const [name, bem] = createNamespace('cell-group');
|
||||
@@ -11,10 +11,7 @@ export default defineComponent({
|
||||
|
||||
props: {
|
||||
title: String,
|
||||
border: {
|
||||
type: Boolean,
|
||||
default: true,
|
||||
},
|
||||
border: truthProp,
|
||||
},
|
||||
|
||||
setup(props, { slots, attrs }) {
|
||||
|
||||
Reference in New Issue
Block a user