mirror of
https://github.com/youzan/vant.git
synced 2026-05-05 01:00:55 +08:00
perf: add truthProp util (#8522)
* perf: add TruthyProp util * chore: rename * chore: upd
This commit is contained in:
+3
-8
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user