@aplus-frontend/ui
Version:
71 lines (70 loc) • 1.78 kB
JavaScript
import { defineComponent as o, createElementBlock as t, createCommentVNode as a, openBlock as n, toDisplayString as l, unref as r } from "vue";
import { isNil as p } from "lodash-unified";
const u = {
key: 0,
style: {
whiteSpace: "pre-wrap",
wordWrap: "break-word",
wordBreak: "break-all"
}
}, y = /* @__PURE__ */ o({
name: "ApFieldTextAreaRead",
__name: "read",
props: {
mode: { default: "edit" },
class: {},
style: {},
rows: {},
autoSize: { type: [Boolean, Object] },
onResize: {},
onCompositionstart: {},
onCompositionend: {},
valueModifiers: {},
size: {},
value: {},
name: {},
type: { default: "text" },
onFocus: {},
onBlur: {},
onChange: {},
onInput: {},
onKeydown: {},
onKeyup: {},
onMousedown: {},
focused: { type: Boolean },
hidden: { type: Boolean },
disabled: { type: Boolean, default: void 0 },
prefixCls: {},
id: {},
readonly: { type: Boolean },
autofocus: { type: Boolean },
variant: {},
autocomplete: {},
placeholder: {},
lazy: { type: Boolean, default: !0 },
maxlength: {},
loading: { type: Boolean },
bordered: { type: Boolean, default: !0 },
showCount: { type: [Boolean, Object] },
htmlSize: {},
onPressEnter: {},
onMouseUp: {},
onRawInput: {},
"onUpdate:value": {},
status: {},
defaultValue: {},
inputElement: {},
triggerFocus: {},
handleReset: {},
clearIcon: {},
allowClear: { type: Boolean, default: !0 },
emptyText: { default: "--" },
beforeInput: {}
},
setup(d) {
return (e, s) => e.mode === "read" ? (n(), t("span", u, l(r(p)(e.value) || e.value === "" ? e.emptyText : e.value), 1)) : a("", !0);
}
});
export {
y as default
};