perf: add truthProp util (#8522)
* perf: add TruthyProp util * chore: rename * chore: upd
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { defineComponent } from 'vue';
|
||||
import { createNamespace, addUnit } from '../utils';
|
||||
import { createNamespace, addUnit, truthProp } from '../utils';
|
||||
import { BORDER_LEFT, BORDER_SURROUND } from '../utils/constant';
|
||||
|
||||
const [name, bem] = createNamespace('password-input');
|
||||
@@ -9,13 +9,10 @@ export default defineComponent({
|
||||
|
||||
props: {
|
||||
info: String,
|
||||
mask: truthProp,
|
||||
gutter: [Number, String],
|
||||
focused: Boolean,
|
||||
errorInfo: String,
|
||||
mask: {
|
||||
type: Boolean,
|
||||
default: true,
|
||||
},
|
||||
value: {
|
||||
type: String,
|
||||
default: '',
|
||||
|
||||
Reference in New Issue
Block a user