perf: add truthProp util (#8522)

* perf: add TruthyProp util

* chore: rename

* chore: upd
This commit is contained in:
neverland
2021-04-14 10:26:21 +08:00
committed by GitHub
parent 9381640d2e
commit bd609e1df0
59 changed files with 226 additions and 460 deletions
+4 -6
View File
@@ -3,7 +3,8 @@ import {
noop,
isDef,
extend,
UnknownProp,
truthProp,
unknownProp,
preventDefault,
createNamespace,
getZIndexStyle,
@@ -19,12 +20,9 @@ export default defineComponent({
show: Boolean,
zIndex: [Number, String],
duration: [Number, String],
className: UnknownProp,
className: unknownProp,
lockScroll: truthProp,
customStyle: Object as PropType<CSSProperties>,
lockScroll: {
type: Boolean,
default: true,
},
},
setup(props, { slots }) {