UNPKG

@pit-front-end/components

Version:

湖南创智艾泰克科技有限公司

48 lines (47 loc) 1.33 kB
import { defineComponent as p, computed as u, resolveComponent as m, createBlock as i, openBlock as h } from "vue"; import { textareaEmits as c, textareaProps as x } from "./textarea.js"; const _ = /* @__PURE__ */ p({ name: "PitTextarea", __name: "textarea", props: x, emits: c, setup(r, { emit: o }) { const e = r, t = u({ get() { return e.modelValue; }, set(a) { o("update:modelValue", a); } }), l = { handleInput(a) { o("input", a); }, handleChange(a) { o("change", a); } }; return (a, n) => { const d = m("el-input"); return h(), i(d, { modelValue: t.value, "onUpdate:modelValue": n[0] || (n[0] = (s) => t.value = s), type: "textarea", maxlength: e.maxlength, "show-word-limit": e.showWordLimit, placeholder: e.placeholder, disabled: e.disabled, size: e.size, readonly: e.readonly, rows: e.rows, autosiz: e.autosize, clearable: e.clearable, onInput: l.handleInput, onChange: l.handleChange }, null, 8, ["modelValue", "maxlength", "show-word-limit", "placeholder", "disabled", "size", "readonly", "rows", "autosiz", "clearable", "onInput", "onChange"]); }; } }); export { _ as default };