@meve/ui
Version:
Argon design system components library
51 lines (49 loc) • 892 B
JavaScript
export var typeValidator = function typeValidator(type) {
return ['default', 'primary', 'info', 'success', 'warning', 'error'].includes(type);
};
var sizeValidator = function sizeValidator(size) {
return ['mini', 'normal', 'small', 'large'].includes(size);
};
export var props = {
type: {
type: String,
default: 'default',
validator: typeValidator
},
size: {
type: String,
default: 'normal',
validator: sizeValidator
},
loading: {
type: Boolean,
default: false
},
round: {
type: Boolean,
default: false
},
block: {
type: Boolean,
default: false
},
text: {
type: Boolean,
default: false
},
outline: {
type: Boolean,
default: false
},
disabled: {
type: Boolean,
default: false
},
ripple: {
type: Boolean,
default: true
},
loadingSize: {
type: [Number, String]
}
};