@meve/ui
Version:
Argon design system components library
71 lines (69 loc) • 1.18 kB
JavaScript
var typeValidator = function typeValidator(type) {
return ['text', 'password', 'number'].includes(type);
};
var sizeValidator = function sizeValidator(type) {
return ['normal', 'small', 'mini'].includes(type);
};
export var props = {
value: {
type: [String, Number]
},
label: {
type: [String, Number]
},
options: {
type: Array,
default: function _default() {
return [];
}
},
size: {
type: String,
default: 'normal',
validator: sizeValidator
},
placeholder: {
type: String
},
type: {
type: String,
default: 'text',
validator: typeValidator
},
textarea: {
type: Boolean,
default: false
},
rows: {
type: [String, Number],
default: 5
},
maxlength: {
type: [String, Number]
},
disabled: {
type: Boolean,
default: false
},
readonly: {
type: Boolean,
default: false
},
clearable: {
type: Boolean,
default: false
},
resize: {
type: Boolean,
default: true
},
validateTrigger: {
type: Array,
default: function _default() {
return ['onInput', 'onSelect', 'onClear'];
}
},
rules: {
type: Array
}
};