comic-plus
Version:
<p align="center"> <img width="200px" src="./logo.png"/> </p>
27 lines (26 loc) • 638 B
JavaScript
import "../../../utils/config.mjs";
import "vue";
import { isString } from "../../../utils/typescript.mjs";
import "@vueuse/core";
const textareaProps = {
modelValue: String,
placeholder: String,
maxlength: Number,
autoFocus: {
type: Boolean,
default: false
},
disabled: Boolean,
// autoHeight: Boolean, //autoHeight发现隐藏bug,暂停使用
rows: Number
};
const textareaEmits = {
["update:modelValue"]: (value) => isString(value),
change: (value) => isString(value),
blur: (evt) => evt instanceof FocusEvent,
focus: (evt) => evt instanceof FocusEvent
};
export {
textareaEmits,
textareaProps
};