comic-plus
Version:
<p align="center"> <img width="200px" src="./logo.png"/> </p>
25 lines (24 loc) • 651 B
JavaScript
const inputProps = {
modelValue: [String, Number],
size: String,
prefixIcon: [String, Object],
suffixIcon: [String, Object],
clearable: Boolean,
placeholder: String,
type: String,
disabled: Boolean,
maxlength: [String, Number],
minlength: [String, Number]
};
const inputEmits = {
["update:modelValue"]: (val) => ["string", "number"].includes(typeof val),
change: (val) => ["string", "number"].includes(typeof val),
input: (val) => ["string", "number"].includes(typeof val),
blur: (evt) => evt instanceof FocusEvent,
clear: () => true,
focus: (evt) => evt instanceof FocusEvent
};
export {
inputEmits,
inputProps
};