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
+3 -8
View File
@@ -14,6 +14,7 @@ import {
isDef,
addUnit,
inBrowser,
truthProp,
createNamespace,
ComponentInstance,
} from '../utils';
@@ -38,15 +39,9 @@ export default defineComponent({
radius: [Number, String],
lazyLoad: Boolean,
iconSize: [Number, String],
showError: truthProp,
iconPrefix: String,
showError: {
type: Boolean,
default: true,
},
showLoading: {
type: Boolean,
default: true,
},
showLoading: truthProp,
errorIcon: {
type: String,
default: 'photo-fail',