UNPKG

yanzhen-design-vue

Version:

26 lines (25 loc) 751 B
import { propsSeparate, epPropType, buildProps, buildEmits } from "@yanzhen-libs/utils-vue"; import { textAreaProps } from "ant-design-vue/es/input/inputProps"; import "../../../hooks/index.mjs"; import { useNamespace } from "../../../hooks/use-namespace/index.mjs"; const ns = useNamespace("textarea"); const textareaOptions = { ns, class: ns.b(), name: ns.defineVNodeName() }; const textareaName = textareaOptions.name; const AntTextArea = propsSeparate({ ...textAreaProps(), inputElement: epPropType.any, clearIcon: epPropType.any }); const textareaProps = buildProps(AntTextArea.props); const textareaEmits = buildEmits(AntTextArea.emits); export { AntTextArea, textareaEmits, textareaName, textareaOptions, textareaProps };