UNPKG

@aplus-frontend/ui

Version:

30 lines (29 loc) 690 B
const a = (e) => { const { componentCls: r } = e; return { [`${r}-textarea--read`]: { whiteSpace: "pre-wrap", wordWrap: "break-word", wordBreak: "break-all" }, [`${r}-textarea--code`]: { padding: e.spaceXL, overflow: "auto", fontSize: "85%", lineHeight: 1.45, color: e.textColor2, backgroundColor: "rgba(150, 150, 150, 0.1)", borderRadius: e.borderRadiusSM, width: "min-content" }, [`${r}-textarea`]: { "&.ant-input-affix-wrapper-textarea-with-clear-btn .ant-input-clear-icon": { insetBlockStart: "9px" // (28 - 10) / 2 } } }; }; export { a as genTextareaStyle };