perf: add truthProp util (#8522)
* perf: add TruthyProp util * chore: rename * chore: upd
This commit is contained in:
@@ -4,6 +4,7 @@ import { ref, watch, computed, PropType, defineComponent } from 'vue';
|
||||
import {
|
||||
extend,
|
||||
unitToPx,
|
||||
truthProp,
|
||||
preventDefault,
|
||||
createNamespace,
|
||||
ComponentInstance,
|
||||
@@ -46,16 +47,13 @@ export const pickerProps = {
|
||||
loading: Boolean,
|
||||
readonly: Boolean,
|
||||
allowHtml: Boolean,
|
||||
showToolbar: truthProp,
|
||||
cancelButtonText: String,
|
||||
confirmButtonText: String,
|
||||
itemHeight: {
|
||||
type: [Number, String],
|
||||
default: 44,
|
||||
},
|
||||
showToolbar: {
|
||||
type: Boolean,
|
||||
default: true,
|
||||
},
|
||||
visibleItemCount: {
|
||||
type: [Number, String],
|
||||
default: 6,
|
||||
|
||||
@@ -6,7 +6,7 @@ import { deepClone } from '../utils/deep-clone';
|
||||
import {
|
||||
range,
|
||||
isObject,
|
||||
UnknownProp,
|
||||
unknownProp,
|
||||
preventDefault,
|
||||
createNamespace,
|
||||
} from '../utils';
|
||||
@@ -66,7 +66,7 @@ export default defineComponent({
|
||||
props: {
|
||||
readonly: Boolean,
|
||||
allowHtml: Boolean,
|
||||
className: UnknownProp,
|
||||
className: unknownProp,
|
||||
textKey: {
|
||||
type: String,
|
||||
required: true,
|
||||
|
||||
Reference in New Issue
Block a user