yanzhen-design-vue
Version:
27 lines (26 loc) • 878 B
JavaScript
import { defineComponent, openBlock, createBlock, unref, mergeProps } from "vue";
import { textareaName, textareaProps, textareaEmits, textareaOptions } from "./textarea.mjs";
import { useTextarea } from "./use-textarea.mjs";
const _sfc_main = /* @__PURE__ */ defineComponent({
...{ name: textareaName },
__name: "textarea",
props: textareaProps,
emits: textareaEmits,
setup(__props, { expose: __expose, emit: __emit }) {
const { class: wrapClass } = textareaOptions;
const props = __props;
const emit = __emit;
const [{ _ref, proxyProps }, Textarea] = useTextarea(props, emit);
__expose({
ref: _ref
});
return (_ctx, _cache) => {
return openBlock(), createBlock(unref(Textarea), mergeProps({
class: [unref(wrapClass)]
}, unref(proxyProps)), null, 16, ["class"]);
};
}
});
export {
_sfc_main as default
};