perf: add truthProp util (#8522)
* perf: add TruthyProp util * chore: rename * chore: upd
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { PropType, CSSProperties, defineComponent } from 'vue';
|
||||
import { createNamespace } from '../utils';
|
||||
import { truthProp, createNamespace } from '../utils';
|
||||
|
||||
// Components
|
||||
import { Icon } from '../icon';
|
||||
@@ -21,10 +21,7 @@ export default defineComponent({
|
||||
buttonText: String,
|
||||
buttonColor: String,
|
||||
suffixLabel: String,
|
||||
safeAreaInsetBottom: {
|
||||
type: Boolean,
|
||||
default: true,
|
||||
},
|
||||
safeAreaInsetBottom: truthProp,
|
||||
decimalLength: {
|
||||
type: [Number, String],
|
||||
default: 2,
|
||||
|
||||
Reference in New Issue
Block a user