@dazhicheng/ui 1.6.34 → 1.6.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as ve, mergeModels as
|
|
1
|
+
import { defineComponent as ve, mergeModels as X, useModel as me, ref as v, useAttrs as be, inject as ge, computed as T, toValue as Y, nextTick as N, onMounted as ye, withDirectives as xe, createElementBlock as A, openBlock as E, normalizeClass as L, unref as C, createVNode as ee, createCommentVNode as te, createBlock as we, mergeProps as ae, createSlots as We, renderList as Ce, withCtx as Ve, renderSlot as Be, normalizeProps as Ie, guardReactiveProps as Te, withModifiers as ke, Teleport as Se, withKeys as O, normalizeStyle as Ee } from "vue";
|
|
2
2
|
import "../../node_modules/.pnpm/vue-types@5.1.3_vue@3.5.21_typescript@5.9.3_/node_modules/vue-types/shim/index.modern.js";
|
|
3
3
|
import { useDesign as Oe } from "../../packages/hooks/src/useDesign.js";
|
|
4
4
|
import "axios";
|
|
5
|
-
import { useZIndex as $e, useFormItem as Re, ElInput as
|
|
6
|
-
import { isArray as De, isObject as Me, isNumber as Fe, isString as He, isStringNumber as Ne, isClient as
|
|
5
|
+
import { useZIndex as $e, useFormItem as Re, ElInput as ie } from "element-plus";
|
|
6
|
+
import { isArray as De, isObject as Me, isNumber as Fe, isString as He, isStringNumber as Ne, isClient as _ } from "../../packages/utils/src/is.js";
|
|
7
7
|
import "dayjs";
|
|
8
8
|
import "numeral";
|
|
9
9
|
import "xe-utils";
|
|
@@ -16,7 +16,7 @@ import "../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb
|
|
|
16
16
|
import "../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
|
|
17
17
|
import "lodash-es";
|
|
18
18
|
import "vue-router";
|
|
19
|
-
import { useEventListener as
|
|
19
|
+
import { useEventListener as P, onClickOutside as Ae } from "@vueuse/core";
|
|
20
20
|
import { FieldContextKey as Le } from "vee-validate";
|
|
21
21
|
import "../tt-icon/index.js";
|
|
22
22
|
import _e from "../../directives/disabled-tip/index.js";
|
|
@@ -24,7 +24,7 @@ const Pe = 'a[href],button:not([disabled]),input:not([disabled]):not([type="hidd
|
|
|
24
24
|
name: "TtInputTextarea",
|
|
25
25
|
inheritAttrs: !1,
|
|
26
26
|
__name: "index",
|
|
27
|
-
props: /* @__PURE__ */
|
|
27
|
+
props: /* @__PURE__ */ X({
|
|
28
28
|
minHeight: { default: 28 },
|
|
29
29
|
maxHeight: { default: 100 },
|
|
30
30
|
autofocus: { type: Boolean, default: !1 },
|
|
@@ -47,20 +47,20 @@ const Pe = 'a[href],button:not([disabled]),input:not([disabled]):not([type="hidd
|
|
|
47
47
|
},
|
|
48
48
|
modelModifiers: {}
|
|
49
49
|
}),
|
|
50
|
-
emits: /* @__PURE__ */
|
|
51
|
-
setup(
|
|
52
|
-
const
|
|
50
|
+
emits: /* @__PURE__ */ X(["change", "input", "focus", "blur", "clear"], ["update:modelValue"]),
|
|
51
|
+
setup(K, { expose: le, emit: ne }) {
|
|
52
|
+
const r = K, g = ne, y = me(K, "modelValue"), m = v(null), f = v(null), s = v(null), x = v(null), n = v(!1), $ = v(!1), z = v(2e3), V = be(), { prefixCls: R } = Oe("input-textarea"), { nextZIndex: oe } = $e(), { formItem: p } = Re(), d = ge(Le, null), c = v({
|
|
53
53
|
top: 0,
|
|
54
54
|
left: 0,
|
|
55
55
|
width: 0,
|
|
56
56
|
height: 0
|
|
57
57
|
});
|
|
58
|
-
function
|
|
58
|
+
function k() {
|
|
59
59
|
var t;
|
|
60
|
-
const e =
|
|
60
|
+
const e = m.value || ((t = f.value) == null ? void 0 : t.$el);
|
|
61
61
|
if (e) {
|
|
62
62
|
const a = e.getBoundingClientRect();
|
|
63
|
-
|
|
63
|
+
c.value = {
|
|
64
64
|
top: a.top,
|
|
65
65
|
left: a.left,
|
|
66
66
|
width: a.width,
|
|
@@ -68,141 +68,148 @@ const Pe = 'a[href],button:not([disabled]),input:not([disabled]):not([type="hidd
|
|
|
68
68
|
};
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
-
|
|
71
|
+
P(
|
|
72
72
|
window,
|
|
73
73
|
"scroll",
|
|
74
74
|
() => {
|
|
75
|
-
|
|
75
|
+
n.value && (k(), (c.value.top + c.value.height < 0 || c.value.top > window.innerHeight) && (n.value = !1));
|
|
76
76
|
},
|
|
77
77
|
{ capture: !0, passive: !0 }
|
|
78
|
-
),
|
|
78
|
+
), P(
|
|
79
79
|
window,
|
|
80
80
|
"resize",
|
|
81
81
|
() => {
|
|
82
|
-
|
|
82
|
+
n.value && k();
|
|
83
83
|
},
|
|
84
84
|
{ passive: !0 }
|
|
85
|
-
),
|
|
85
|
+
), P(
|
|
86
86
|
window,
|
|
87
87
|
"keydown",
|
|
88
88
|
(e) => {
|
|
89
|
-
|
|
89
|
+
n.value && (e.key === "Escape" || e.key === "Esc") && M(e);
|
|
90
90
|
},
|
|
91
91
|
{ capture: !0 }
|
|
92
92
|
), Ae(
|
|
93
|
-
|
|
93
|
+
x,
|
|
94
94
|
(e) => {
|
|
95
|
-
var a,
|
|
96
|
-
if (!
|
|
95
|
+
var a, i;
|
|
96
|
+
if (!n.value) return;
|
|
97
97
|
const t = e.target;
|
|
98
|
-
t && ((a =
|
|
98
|
+
t && ((a = m.value) != null && a.contains(t) || (i = x.value) != null && i.contains(t)) || (n.value = !1);
|
|
99
99
|
},
|
|
100
|
-
{ ignore: [
|
|
100
|
+
{ ignore: [m] }
|
|
101
101
|
);
|
|
102
|
-
const
|
|
103
|
-
if (
|
|
104
|
-
return !!
|
|
105
|
-
if (
|
|
102
|
+
const w = T(() => {
|
|
103
|
+
if (V.disabled !== void 0)
|
|
104
|
+
return !!V.disabled;
|
|
105
|
+
if (r.disabled)
|
|
106
106
|
return !0;
|
|
107
|
-
const e =
|
|
108
|
-
return De(e) && e.length > 0 ? e.some((t) => !!
|
|
109
|
-
}), D =
|
|
107
|
+
const e = r.disabledTip;
|
|
108
|
+
return De(e) && e.length > 0 ? e.some((t) => !!Y(t == null ? void 0 : t.condition)) : Me(e) ? !!Y(e.condition) : !1;
|
|
109
|
+
}), D = T(() => w.value ? r.expandOnDisabled : !0), U = T(() => {
|
|
110
110
|
var e, t;
|
|
111
|
-
return
|
|
112
|
-
}),
|
|
111
|
+
return d ? !!((e = d.errorMessage) != null && e.value) || ((t = d.errors) == null ? void 0 : t.value) && d.errors.value.length > 0 : p != null && p.validateState ? p.validateState === "error" : r.isInValid !== void 0 ? !!r.isInValid : V.isInValid !== void 0 ? !!V.isInValid : !1;
|
|
112
|
+
}), q = T(() => {
|
|
113
113
|
const {
|
|
114
114
|
"data-testid": e,
|
|
115
115
|
class: t,
|
|
116
116
|
style: a,
|
|
117
|
-
onFocus:
|
|
118
|
-
onBlur:
|
|
119
|
-
onChange:
|
|
120
|
-
onInput:
|
|
121
|
-
onClear:
|
|
117
|
+
onFocus: i,
|
|
118
|
+
onBlur: l,
|
|
119
|
+
onChange: o,
|
|
120
|
+
onInput: u,
|
|
121
|
+
onClear: b,
|
|
122
122
|
form: h,
|
|
123
|
-
isInValid:
|
|
123
|
+
isInValid: W,
|
|
124
124
|
...H
|
|
125
|
-
} =
|
|
125
|
+
} = V;
|
|
126
126
|
return H;
|
|
127
|
-
}), re =
|
|
128
|
-
var
|
|
129
|
-
if (!
|
|
127
|
+
}), re = T(() => {
|
|
128
|
+
var Q;
|
|
129
|
+
if (!n.value)
|
|
130
130
|
return { display: "none" };
|
|
131
|
-
const e =
|
|
132
|
-
let
|
|
133
|
-
|
|
134
|
-
const h =
|
|
135
|
-
let
|
|
136
|
-
return
|
|
131
|
+
const e = c.value.top, t = c.value.left, a = c.value.height > 0 ? c.value.height : r.minHeight, i = r.maxHeight, l = _ ? window.innerHeight : 800, o = _ ? window.innerWidth : 1200, u = e + i > l;
|
|
132
|
+
let b = e;
|
|
133
|
+
u && e + a - i >= 0 ? b = e + a - i : u && (b = Math.max(8, l - i - 8));
|
|
134
|
+
const h = c.value.width > 0 ? c.value.width : ((Q = m.value) == null ? void 0 : Q.offsetWidth) || 200, { numericWidth: W, cssWidth: H } = ue(h, o);
|
|
135
|
+
let I = t;
|
|
136
|
+
return I + W > o - 8 ? I = Math.max(8, o - W - 8) : I = Math.max(8, I), {
|
|
137
137
|
position: "fixed",
|
|
138
|
-
top: `${
|
|
139
|
-
left: `${
|
|
138
|
+
top: `${b}px`,
|
|
139
|
+
left: `${I}px`,
|
|
140
140
|
width: H,
|
|
141
141
|
maxWidth: "calc(100vw - 16px)",
|
|
142
|
-
zIndex:
|
|
142
|
+
zIndex: z.value,
|
|
143
143
|
display: "block"
|
|
144
144
|
};
|
|
145
145
|
});
|
|
146
146
|
function ue(e, t) {
|
|
147
|
-
if (Fe(
|
|
148
|
-
return { numericWidth:
|
|
149
|
-
if (He(
|
|
150
|
-
const
|
|
151
|
-
if (
|
|
152
|
-
const
|
|
153
|
-
return { numericWidth:
|
|
147
|
+
if (Fe(r.expandWidth))
|
|
148
|
+
return { numericWidth: r.expandWidth, cssWidth: `${r.expandWidth}px` };
|
|
149
|
+
if (He(r.expandWidth) && r.expandWidth.trim().length > 0) {
|
|
150
|
+
const i = r.expandWidth.trim();
|
|
151
|
+
if (i.endsWith("px")) {
|
|
152
|
+
const l = parseFloat(i) || e;
|
|
153
|
+
return { numericWidth: l, cssWidth: `${l}px` };
|
|
154
154
|
}
|
|
155
|
-
if (
|
|
156
|
-
const
|
|
157
|
-
return { numericWidth: Math.round(t *
|
|
155
|
+
if (i.endsWith("%")) {
|
|
156
|
+
const l = parseFloat(i) / 100;
|
|
157
|
+
return { numericWidth: Math.round(t * l), cssWidth: i };
|
|
158
158
|
}
|
|
159
|
-
if (Ne(
|
|
160
|
-
const
|
|
161
|
-
return { numericWidth:
|
|
159
|
+
if (Ne(i)) {
|
|
160
|
+
const l = Number(i);
|
|
161
|
+
return { numericWidth: l, cssWidth: `${l}px` };
|
|
162
162
|
}
|
|
163
|
-
return { numericWidth: e, cssWidth:
|
|
163
|
+
return { numericWidth: e, cssWidth: i };
|
|
164
164
|
}
|
|
165
|
-
const a = Math.max(e,
|
|
165
|
+
const a = Math.max(e, r.minExpandWidth);
|
|
166
166
|
return { numericWidth: a, cssWidth: `${a}px` };
|
|
167
167
|
}
|
|
168
|
-
function
|
|
169
|
-
!
|
|
168
|
+
function j() {
|
|
169
|
+
!n.value && D.value && S();
|
|
170
170
|
}
|
|
171
|
-
async function
|
|
172
|
-
var t, a,
|
|
171
|
+
async function S(e) {
|
|
172
|
+
var t, a, i, l;
|
|
173
173
|
if (!$.value) {
|
|
174
|
+
if (n.value) {
|
|
175
|
+
const o = _ ? document.activeElement : null, u = x.value;
|
|
176
|
+
if (o && (u != null && u.contains(o)))
|
|
177
|
+
return;
|
|
178
|
+
}
|
|
174
179
|
if (!D.value) {
|
|
175
|
-
e &&
|
|
180
|
+
e && g("focus", e);
|
|
176
181
|
return;
|
|
177
182
|
}
|
|
178
|
-
if (
|
|
179
|
-
const
|
|
180
|
-
|
|
183
|
+
if (k(), n.value = !0, z.value = oe(), await N(), !w.value) {
|
|
184
|
+
const o = ((t = s.value) == null ? void 0 : t.textarea) || ((i = (a = s.value) == null ? void 0 : a.$el) == null ? void 0 : i.querySelector("textarea"));
|
|
185
|
+
o ? o.focus({ preventScroll: !0 }) : (l = s.value) == null || l.focus();
|
|
181
186
|
}
|
|
182
|
-
e &&
|
|
187
|
+
e && g("focus", e);
|
|
183
188
|
}
|
|
184
189
|
}
|
|
185
|
-
function
|
|
190
|
+
function B(e, t) {
|
|
186
191
|
var a;
|
|
187
|
-
if ((a =
|
|
188
|
-
}),
|
|
189
|
-
const
|
|
190
|
-
|
|
191
|
-
})) : e === "change" ?
|
|
192
|
+
if ((a = p == null ? void 0 : p.validate) == null || a.call(p, e).catch(() => {
|
|
193
|
+
}), d) {
|
|
194
|
+
const i = t !== void 0 ? t : y.value;
|
|
195
|
+
d.setValue(i), e === "blur" ? (d.handleBlur(), d.validate().catch(() => {
|
|
196
|
+
})) : e === "change" ? d.handleChange(i) : e === "input" && d.validate().catch(() => {
|
|
192
197
|
});
|
|
193
198
|
}
|
|
194
199
|
}
|
|
195
|
-
function
|
|
196
|
-
|
|
200
|
+
function Z(e) {
|
|
201
|
+
g("input", e), B("input", e);
|
|
197
202
|
}
|
|
198
203
|
function se(e) {
|
|
199
|
-
|
|
204
|
+
var a, i;
|
|
205
|
+
const t = e.relatedTarget;
|
|
206
|
+
t && ((a = m.value) != null && a.contains(t) || (i = x.value) != null && i.contains(t)) || (n.value = !1, g("blur", e), B("blur"));
|
|
200
207
|
}
|
|
201
208
|
function M(e) {
|
|
202
|
-
var a,
|
|
203
|
-
e.stopPropagation(), "preventDefault" in e && e.preventDefault(), $.value = !0,
|
|
204
|
-
const t = ((
|
|
205
|
-
t ? t.focus({ preventScroll: !0 }) : (
|
|
209
|
+
var a, i, l, o, u;
|
|
210
|
+
e.stopPropagation(), "preventDefault" in e && e.preventDefault(), $.value = !0, n.value = !1, (a = s.value) == null || a.blur();
|
|
211
|
+
const t = ((i = f.value) == null ? void 0 : i.input) || ((o = (l = f.value) == null ? void 0 : l.$el) == null ? void 0 : o.querySelector("input"));
|
|
212
|
+
t ? t.focus({ preventScroll: !0 }) : (u = f.value) == null || u.focus(), N(() => {
|
|
206
213
|
$.value = !1;
|
|
207
214
|
});
|
|
208
215
|
}
|
|
@@ -212,56 +219,56 @@ const Pe = 'a[href],button:not([disabled]),input:not([disabled]):not([type="hidd
|
|
|
212
219
|
const t = window.getComputedStyle(e);
|
|
213
220
|
return t.display !== "none" && t.visibility !== "hidden";
|
|
214
221
|
}
|
|
215
|
-
function
|
|
216
|
-
var
|
|
222
|
+
function G(e) {
|
|
223
|
+
var b;
|
|
217
224
|
e.stopPropagation(), "preventDefault" in e && e.preventDefault();
|
|
218
|
-
const t =
|
|
219
|
-
if (
|
|
225
|
+
const t = m.value, a = x.value, i = !("shiftKey" in e && e.shiftKey);
|
|
226
|
+
if (n.value = !1, B("blur"), !t)
|
|
220
227
|
return;
|
|
221
|
-
const
|
|
222
|
-
const
|
|
223
|
-
return
|
|
224
|
-
}),
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
}) : (
|
|
228
|
+
const o = Array.from(document.querySelectorAll(Pe)).filter((h) => a != null && a.contains(h) || t.contains(h) ? !1 : de(h)).filter((h) => {
|
|
229
|
+
const W = t.compareDocumentPosition(h);
|
|
230
|
+
return i ? !!(W & Node.DOCUMENT_POSITION_FOLLOWING) : !!(W & Node.DOCUMENT_POSITION_PRECEDING);
|
|
231
|
+
}), u = i ? o[0] : o[o.length - 1];
|
|
232
|
+
u ? N(() => {
|
|
233
|
+
u.focus({ preventScroll: !0 });
|
|
234
|
+
}) : (b = f.value) == null || b.blur();
|
|
228
235
|
}
|
|
229
|
-
function
|
|
230
|
-
|
|
236
|
+
function J(e) {
|
|
237
|
+
g("change", e), B("change", e);
|
|
231
238
|
}
|
|
232
239
|
function F() {
|
|
233
|
-
|
|
240
|
+
y.value = "", g("clear"), B("change", "");
|
|
234
241
|
}
|
|
235
242
|
function ce() {
|
|
236
|
-
var e, t, a,
|
|
237
|
-
if (
|
|
238
|
-
const
|
|
239
|
-
|
|
243
|
+
var e, t, a, i;
|
|
244
|
+
if (n.value) {
|
|
245
|
+
const l = ((e = s.value) == null ? void 0 : e.textarea) || ((a = (t = s.value) == null ? void 0 : t.$el) == null ? void 0 : a.querySelector("textarea"));
|
|
246
|
+
l ? l.focus({ preventScroll: !0 }) : (i = s.value) == null || i.focus();
|
|
240
247
|
} else
|
|
241
|
-
|
|
248
|
+
S();
|
|
242
249
|
}
|
|
243
250
|
function fe() {
|
|
244
251
|
var e, t;
|
|
245
|
-
|
|
252
|
+
n.value ? (e = s.value) == null || e.blur() : (t = f.value) == null || t.blur();
|
|
246
253
|
}
|
|
247
254
|
function pe() {
|
|
248
255
|
var e, t;
|
|
249
|
-
|
|
256
|
+
n.value ? (e = s.value) == null || e.select() : (t = f.value) == null || t.select();
|
|
250
257
|
}
|
|
251
258
|
function he() {
|
|
252
259
|
F();
|
|
253
260
|
}
|
|
254
261
|
return ye(() => {
|
|
255
|
-
|
|
256
|
-
}),
|
|
262
|
+
k(), r.autofocus && S();
|
|
263
|
+
}), le({
|
|
257
264
|
/**
|
|
258
265
|
* 未激活态单行触发输入框实例引用(ElInput)
|
|
259
266
|
*/
|
|
260
|
-
referenceRef:
|
|
267
|
+
referenceRef: f,
|
|
261
268
|
/**
|
|
262
269
|
* 激活展开态的多行文本框实例引用(ElInput)
|
|
263
270
|
*/
|
|
264
|
-
textareaRef:
|
|
271
|
+
textareaRef: s,
|
|
265
272
|
/**
|
|
266
273
|
* 使输入框获取焦点并展开多行浮层
|
|
267
274
|
*/
|
|
@@ -280,70 +287,71 @@ const Pe = 'a[href],button:not([disabled]),input:not([disabled]):not([type="hidd
|
|
|
280
287
|
clear: he
|
|
281
288
|
}), (e, t) => xe((E(), A("div", {
|
|
282
289
|
ref_key: "wrapperRef",
|
|
283
|
-
ref:
|
|
290
|
+
ref: m,
|
|
284
291
|
class: L([
|
|
285
|
-
|
|
292
|
+
C(R),
|
|
286
293
|
{
|
|
287
294
|
"is-not-border": !e.border,
|
|
288
|
-
"is-disabled":
|
|
289
|
-
"is-error":
|
|
295
|
+
"is-disabled": w.value,
|
|
296
|
+
"is-error": U.value
|
|
290
297
|
}
|
|
291
298
|
]),
|
|
292
|
-
onClick:
|
|
299
|
+
onClick: j
|
|
293
300
|
}, [
|
|
294
|
-
|
|
301
|
+
ee(C(ie), ae({
|
|
295
302
|
ref_key: "referenceRef",
|
|
296
|
-
ref:
|
|
297
|
-
modelValue:
|
|
298
|
-
"onUpdate:modelValue": t[0] || (t[0] = (a) =>
|
|
299
|
-
},
|
|
300
|
-
|
|
303
|
+
ref: f,
|
|
304
|
+
modelValue: y.value,
|
|
305
|
+
"onUpdate:modelValue": t[0] || (t[0] = (a) => y.value = a)
|
|
306
|
+
}, q.value, {
|
|
307
|
+
tabindex: n.value ? -1 : void 0,
|
|
308
|
+
disabled: w.value,
|
|
301
309
|
readonly: e.readonly,
|
|
302
310
|
placeholder: e.placeholder,
|
|
303
311
|
clearable: e.clearable,
|
|
304
312
|
type: "text",
|
|
305
313
|
"input-style": { height: `${e.minHeight}px` },
|
|
306
|
-
onInput:
|
|
307
|
-
onFocus:
|
|
308
|
-
onChange:
|
|
314
|
+
onInput: Z,
|
|
315
|
+
onFocus: S,
|
|
316
|
+
onChange: J,
|
|
309
317
|
onClear: F
|
|
310
318
|
}), We({ _: 2 }, [
|
|
311
319
|
Ce(Object.keys(e.$slots), (a) => ({
|
|
312
320
|
name: a,
|
|
313
|
-
fn: Ve((
|
|
314
|
-
Be(e.$slots, a, Ie(
|
|
321
|
+
fn: Ve((i) => [
|
|
322
|
+
Be(e.$slots, a, Ie(Te(i || {})))
|
|
315
323
|
])
|
|
316
324
|
}))
|
|
317
|
-
]), 1040, ["modelValue", "disabled", "readonly", "placeholder", "clearable", "input-style"]),
|
|
318
|
-
|
|
325
|
+
]), 1040, ["modelValue", "tabindex", "disabled", "readonly", "placeholder", "clearable", "input-style"]),
|
|
326
|
+
w.value && D.value ? (E(), A("div", {
|
|
319
327
|
key: 0,
|
|
320
|
-
class: L(`${
|
|
321
|
-
onClick:
|
|
322
|
-
}, null, 2)) :
|
|
323
|
-
(E(), we(
|
|
324
|
-
|
|
328
|
+
class: L(`${C(R)}__disabled-mask`),
|
|
329
|
+
onClick: ke(j, ["stop"])
|
|
330
|
+
}, null, 2)) : te("", !0),
|
|
331
|
+
(E(), we(Se, { to: e.teleportTo }, [
|
|
332
|
+
n.value ? (E(), A("div", {
|
|
325
333
|
key: 0,
|
|
326
334
|
ref_key: "floatingRef",
|
|
327
|
-
ref:
|
|
335
|
+
ref: x,
|
|
328
336
|
class: L([
|
|
329
|
-
`${
|
|
337
|
+
`${C(R)}__floating`,
|
|
330
338
|
{
|
|
331
|
-
"is-error":
|
|
339
|
+
"is-error": U.value
|
|
332
340
|
}
|
|
333
341
|
]),
|
|
334
342
|
style: Ee(re.value),
|
|
335
343
|
onKeydown: [
|
|
336
344
|
O(M, ["esc"]),
|
|
337
|
-
O(
|
|
345
|
+
O(G, ["tab"])
|
|
338
346
|
]
|
|
339
347
|
}, [
|
|
340
|
-
|
|
348
|
+
ee(C(ie), ae({
|
|
341
349
|
ref_key: "textareaRef",
|
|
342
|
-
ref:
|
|
343
|
-
modelValue:
|
|
344
|
-
"onUpdate:modelValue": t[1] || (t[1] = (a) =>
|
|
345
|
-
},
|
|
346
|
-
disabled:
|
|
350
|
+
ref: s,
|
|
351
|
+
modelValue: y.value,
|
|
352
|
+
"onUpdate:modelValue": t[1] || (t[1] = (a) => y.value = a)
|
|
353
|
+
}, q.value, {
|
|
354
|
+
disabled: w.value,
|
|
347
355
|
readonly: e.readonly,
|
|
348
356
|
placeholder: e.placeholder,
|
|
349
357
|
maxlength: e.maxlength,
|
|
@@ -354,19 +362,19 @@ const Pe = 'a[href],button:not([disabled]),input:not([disabled]):not([type="hidd
|
|
|
354
362
|
"input-style": {
|
|
355
363
|
height: `${e.maxHeight}px`
|
|
356
364
|
},
|
|
357
|
-
onInput:
|
|
365
|
+
onInput: Z,
|
|
358
366
|
onBlur: se,
|
|
359
|
-
onChange:
|
|
367
|
+
onChange: J,
|
|
360
368
|
onClear: F,
|
|
361
369
|
onKeydown: [
|
|
362
370
|
O(M, ["esc"]),
|
|
363
|
-
O(
|
|
371
|
+
O(G, ["tab"])
|
|
364
372
|
]
|
|
365
373
|
}), null, 16, ["modelValue", "disabled", "readonly", "placeholder", "maxlength", "show-word-limit", "clearable", "input-style"])
|
|
366
|
-
], 38)) :
|
|
374
|
+
], 38)) : te("", !0)
|
|
367
375
|
], 8, ["to"]))
|
|
368
376
|
], 2)), [
|
|
369
|
-
[
|
|
377
|
+
[C(_e), r.disabledTip]
|
|
370
378
|
]);
|
|
371
379
|
}
|
|
372
380
|
});
|