perf: add truthProp util (#8522)
* perf: add TruthyProp util * chore: rename * chore: upd
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { ref, PropType, defineComponent, ExtractPropTypes } from 'vue';
|
||||
|
||||
// Utils
|
||||
import { createNamespace, getZIndexStyle } from '../utils';
|
||||
import { truthProp, createNamespace, getZIndexStyle } from '../utils';
|
||||
import { BORDER_TOP_BOTTOM } from '../utils/constant';
|
||||
import { callInterceptor, Interceptor } from '../utils/interceptor';
|
||||
|
||||
@@ -15,6 +15,8 @@ export const TABBAR_KEY = Symbol(name);
|
||||
|
||||
const props = {
|
||||
route: Boolean,
|
||||
fixed: truthProp,
|
||||
border: truthProp,
|
||||
zIndex: [Number, String],
|
||||
placeholder: Boolean,
|
||||
activeColor: String,
|
||||
@@ -24,14 +26,6 @@ const props = {
|
||||
type: [Number, String],
|
||||
default: 0,
|
||||
},
|
||||
border: {
|
||||
type: Boolean,
|
||||
default: true,
|
||||
},
|
||||
fixed: {
|
||||
type: Boolean,
|
||||
default: true,
|
||||
},
|
||||
safeAreaInsetBottom: {
|
||||
type: Boolean as PropType<boolean | null>,
|
||||
default: null,
|
||||
|
||||
Reference in New Issue
Block a user