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

View File

@@ -4,6 +4,7 @@ import { ref, PropType, defineComponent } from 'vue';
import {
pick,
extend,
truthProp,
createNamespace,
preventDefault,
ComponentInstance,
@@ -25,6 +26,7 @@ export default defineComponent({
props: extend({}, fieldProps, {
label: String,
clearable: truthProp,
actionText: String,
background: String,
showAction: Boolean,
@@ -32,10 +34,6 @@ export default defineComponent({
type: String as PropType<SearchShape>,
default: 'square',
},
clearable: {
type: Boolean,
default: true,
},
leftIcon: {
type: String,
default: 'search',