perf: add truthProp util (#8522)
* perf: add TruthyProp util * chore: rename * chore: upd
This commit is contained in:
+4
-9
@@ -9,8 +9,8 @@ import {
|
||||
onActivated,
|
||||
CSSProperties,
|
||||
defineComponent,
|
||||
ComponentPublicInstance,
|
||||
ExtractPropTypes,
|
||||
ComponentPublicInstance,
|
||||
} from 'vue';
|
||||
|
||||
// Utils
|
||||
@@ -19,6 +19,7 @@ import {
|
||||
addUnit,
|
||||
isHidden,
|
||||
unitToPx,
|
||||
truthProp,
|
||||
getVisibleTop,
|
||||
getElementTop,
|
||||
createNamespace,
|
||||
@@ -58,9 +59,11 @@ const props = {
|
||||
border: Boolean,
|
||||
sticky: Boolean,
|
||||
animated: Boolean,
|
||||
ellipsis: truthProp,
|
||||
swipeable: Boolean,
|
||||
scrollspy: Boolean,
|
||||
background: String,
|
||||
lazyRender: truthProp,
|
||||
lineWidth: [Number, String],
|
||||
lineHeight: [Number, String],
|
||||
beforeChange: Function as PropType<Interceptor>,
|
||||
@@ -74,10 +77,6 @@ const props = {
|
||||
type: [Number, String],
|
||||
default: 0,
|
||||
},
|
||||
ellipsis: {
|
||||
type: Boolean,
|
||||
default: true,
|
||||
},
|
||||
duration: {
|
||||
type: [Number, String],
|
||||
default: 0.3,
|
||||
@@ -86,10 +85,6 @@ const props = {
|
||||
type: [Number, String],
|
||||
default: 0,
|
||||
},
|
||||
lazyRender: {
|
||||
type: Boolean,
|
||||
default: true,
|
||||
},
|
||||
swipeThreshold: {
|
||||
type: [Number, String],
|
||||
default: 5,
|
||||
|
||||
Reference in New Issue
Block a user