@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 Q, useModel as me, ref as v, useAttrs as be, inject as ge, computed as I, toValue as X, nextTick as N, onMounted as ye, withDirectives as xe, createElementBlock as A, openBlock as E, normalizeClass as L, unref as W, createVNode as Y, createCommentVNode as ee, createBlock as we, mergeProps as te, createSlots as We, renderList as Ce, withCtx as Ve, renderSlot as Be, normalizeProps as Ie, guardReactiveProps as ke, withModifiers as Se, Teleport as Te, withKeys as O, normalizeStyle as Ee } from "vue";
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 ae } from "element-plus";
6
- import { isArray as De, isObject as Me, isNumber as Fe, isString as He, isStringNumber as Ne, isClient as le } from "../../packages/utils/src/is.js";
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 _, onClickOutside as Ae } from "@vueuse/core";
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__ */ Q({
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__ */ Q(["change", "input", "focus", "blur", "clear"], ["update:modelValue"]),
51
- setup(P, { expose: ie, emit: ne }) {
52
- const n = P, b = ne, g = me(P, "modelValue"), y = v(null), c = v(null), u = v(null), k = v(null), o = v(!1), $ = v(!1), K = v(2e3), C = be(), { prefixCls: R } = Oe("input-textarea"), { nextZIndex: oe } = $e(), { formItem: f } = Re(), s = ge(Le, null), d = v({
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 S() {
58
+ function k() {
59
59
  var t;
60
- const e = y.value || ((t = c.value) == null ? void 0 : t.$el);
60
+ const e = m.value || ((t = f.value) == null ? void 0 : t.$el);
61
61
  if (e) {
62
62
  const a = e.getBoundingClientRect();
63
- d.value = {
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
- o.value && (S(), (d.value.top + d.value.height < 0 || d.value.top > window.innerHeight) && (o.value = !1));
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
- o.value && S();
82
+ n.value && k();
83
83
  },
84
84
  { passive: !0 }
85
- ), _(
85
+ ), P(
86
86
  window,
87
87
  "keydown",
88
88
  (e) => {
89
- o.value && (e.key === "Escape" || e.key === "Esc") && M(e);
89
+ n.value && (e.key === "Escape" || e.key === "Esc") && M(e);
90
90
  },
91
91
  { capture: !0 }
92
92
  ), Ae(
93
- k,
93
+ x,
94
94
  (e) => {
95
- var a, l;
96
- if (!o.value) return;
95
+ var a, i;
96
+ if (!n.value) return;
97
97
  const t = e.target;
98
- t && ((a = y.value) != null && a.contains(t) || (l = k.value) != null && l.contains(t)) || (o.value = !1);
98
+ t && ((a = m.value) != null && a.contains(t) || (i = x.value) != null && i.contains(t)) || (n.value = !1);
99
99
  },
100
- { ignore: [y] }
100
+ { ignore: [m] }
101
101
  );
102
- const x = I(() => {
103
- if (C.disabled !== void 0)
104
- return !!C.disabled;
105
- if (n.disabled)
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 = n.disabledTip;
108
- return De(e) && e.length > 0 ? e.some((t) => !!X(t == null ? void 0 : t.condition)) : Me(e) ? !!X(e.condition) : !1;
109
- }), D = I(() => x.value ? n.expandOnDisabled : !0), z = I(() => {
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 s ? !!((e = s.errorMessage) != null && e.value) || ((t = s.errors) == null ? void 0 : t.value) && s.errors.value.length > 0 : f != null && f.validateState ? f.validateState === "error" : n.isInValid !== void 0 ? !!n.isInValid : C.isInValid !== void 0 ? !!C.isInValid : !1;
112
- }), U = I(() => {
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: l,
118
- onBlur: i,
119
- onChange: r,
120
- onInput: p,
121
- onClear: m,
117
+ onFocus: i,
118
+ onBlur: l,
119
+ onChange: o,
120
+ onInput: u,
121
+ onClear: b,
122
122
  form: h,
123
- isInValid: w,
123
+ isInValid: W,
124
124
  ...H
125
- } = C;
125
+ } = V;
126
126
  return H;
127
- }), re = I(() => {
128
- var J;
129
- if (!o.value)
127
+ }), re = T(() => {
128
+ var Q;
129
+ if (!n.value)
130
130
  return { display: "none" };
131
- const e = d.value.top, t = d.value.left, a = d.value.height > 0 ? d.value.height : n.minHeight, l = n.maxHeight, i = le ? window.innerHeight : 800, r = le ? window.innerWidth : 1200, p = e + l > i;
132
- let m = e;
133
- p && e + a - l >= 0 ? m = e + a - l : p && (m = Math.max(8, i - l - 8));
134
- const h = d.value.width > 0 ? d.value.width : ((J = y.value) == null ? void 0 : J.offsetWidth) || 200, { numericWidth: w, cssWidth: H } = ue(h, r);
135
- let B = t;
136
- return B + w > r - 8 ? B = Math.max(8, r - w - 8) : B = Math.max(8, B), {
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: `${m}px`,
139
- left: `${B}px`,
138
+ top: `${b}px`,
139
+ left: `${I}px`,
140
140
  width: H,
141
141
  maxWidth: "calc(100vw - 16px)",
142
- zIndex: K.value,
142
+ zIndex: z.value,
143
143
  display: "block"
144
144
  };
145
145
  });
146
146
  function ue(e, t) {
147
- if (Fe(n.expandWidth))
148
- return { numericWidth: n.expandWidth, cssWidth: `${n.expandWidth}px` };
149
- if (He(n.expandWidth) && n.expandWidth.trim().length > 0) {
150
- const l = n.expandWidth.trim();
151
- if (l.endsWith("px")) {
152
- const i = parseFloat(l) || e;
153
- return { numericWidth: i, cssWidth: `${i}px` };
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 (l.endsWith("%")) {
156
- const i = parseFloat(l) / 100;
157
- return { numericWidth: Math.round(t * i), cssWidth: l };
155
+ if (i.endsWith("%")) {
156
+ const l = parseFloat(i) / 100;
157
+ return { numericWidth: Math.round(t * l), cssWidth: i };
158
158
  }
159
- if (Ne(l)) {
160
- const i = Number(l);
161
- return { numericWidth: i, cssWidth: `${i}px` };
159
+ if (Ne(i)) {
160
+ const l = Number(i);
161
+ return { numericWidth: l, cssWidth: `${l}px` };
162
162
  }
163
- return { numericWidth: e, cssWidth: l };
163
+ return { numericWidth: e, cssWidth: i };
164
164
  }
165
- const a = Math.max(e, n.minExpandWidth);
165
+ const a = Math.max(e, r.minExpandWidth);
166
166
  return { numericWidth: a, cssWidth: `${a}px` };
167
167
  }
168
- function q() {
169
- !o.value && D.value && T();
168
+ function j() {
169
+ !n.value && D.value && S();
170
170
  }
171
- async function T(e) {
172
- var t, a, l, i;
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 && b("focus", e);
180
+ e && g("focus", e);
176
181
  return;
177
182
  }
178
- if (S(), o.value = !0, K.value = oe(), await N(), !x.value) {
179
- const r = ((t = u.value) == null ? void 0 : t.textarea) || ((l = (a = u.value) == null ? void 0 : a.$el) == null ? void 0 : l.querySelector("textarea"));
180
- r ? r.focus({ preventScroll: !0 }) : (i = u.value) == null || i.focus();
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 && b("focus", e);
187
+ e && g("focus", e);
183
188
  }
184
189
  }
185
- function V(e, t) {
190
+ function B(e, t) {
186
191
  var a;
187
- if ((a = f == null ? void 0 : f.validate) == null || a.call(f, e).catch(() => {
188
- }), s) {
189
- const l = t !== void 0 ? t : g.value;
190
- s.setValue(l), e === "blur" ? (s.handleBlur(), s.validate().catch(() => {
191
- })) : e === "change" ? s.handleChange(l) : e === "input" && s.validate().catch(() => {
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 j(e) {
196
- b("input", e), V("input", e);
200
+ function Z(e) {
201
+ g("input", e), B("input", e);
197
202
  }
198
203
  function se(e) {
199
- o.value = !1, b("blur", e), V("blur");
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, l, i, r, p;
203
- e.stopPropagation(), "preventDefault" in e && e.preventDefault(), $.value = !0, o.value = !1, (a = u.value) == null || a.blur();
204
- const t = ((l = c.value) == null ? void 0 : l.input) || ((r = (i = c.value) == null ? void 0 : i.$el) == null ? void 0 : r.querySelector("input"));
205
- t ? t.focus({ preventScroll: !0 }) : (p = c.value) == null || p.focus(), N(() => {
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 Z(e) {
216
- var m;
222
+ function G(e) {
223
+ var b;
217
224
  e.stopPropagation(), "preventDefault" in e && e.preventDefault();
218
- const t = y.value, a = k.value, l = !("shiftKey" in e && e.shiftKey);
219
- if (o.value = !1, V("blur"), !t)
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 r = Array.from(document.querySelectorAll(Pe)).filter((h) => a != null && a.contains(h) || t.contains(h) ? !1 : de(h)).filter((h) => {
222
- const w = t.compareDocumentPosition(h);
223
- return l ? !!(w & Node.DOCUMENT_POSITION_FOLLOWING) : !!(w & Node.DOCUMENT_POSITION_PRECEDING);
224
- }), p = l ? r[0] : r[r.length - 1];
225
- p ? N(() => {
226
- p.focus({ preventScroll: !0 });
227
- }) : (m = c.value) == null || m.blur();
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 G(e) {
230
- b("change", e), V("change", e);
236
+ function J(e) {
237
+ g("change", e), B("change", e);
231
238
  }
232
239
  function F() {
233
- g.value = "", b("clear"), V("change", "");
240
+ y.value = "", g("clear"), B("change", "");
234
241
  }
235
242
  function ce() {
236
- var e, t, a, l;
237
- if (o.value) {
238
- const i = ((e = u.value) == null ? void 0 : e.textarea) || ((a = (t = u.value) == null ? void 0 : t.$el) == null ? void 0 : a.querySelector("textarea"));
239
- i ? i.focus({ preventScroll: !0 }) : (l = u.value) == null || l.focus();
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
- T();
248
+ S();
242
249
  }
243
250
  function fe() {
244
251
  var e, t;
245
- o.value ? (e = u.value) == null || e.blur() : (t = c.value) == null || t.blur();
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
- o.value ? (e = u.value) == null || e.select() : (t = c.value) == null || t.select();
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
- S(), n.autofocus && T();
256
- }), ie({
262
+ k(), r.autofocus && S();
263
+ }), le({
257
264
  /**
258
265
  * 未激活态单行触发输入框实例引用(ElInput)
259
266
  */
260
- referenceRef: c,
267
+ referenceRef: f,
261
268
  /**
262
269
  * 激活展开态的多行文本框实例引用(ElInput)
263
270
  */
264
- textareaRef: u,
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: y,
290
+ ref: m,
284
291
  class: L([
285
- W(R),
292
+ C(R),
286
293
  {
287
294
  "is-not-border": !e.border,
288
- "is-disabled": x.value,
289
- "is-error": z.value
295
+ "is-disabled": w.value,
296
+ "is-error": U.value
290
297
  }
291
298
  ]),
292
- onClick: q
299
+ onClick: j
293
300
  }, [
294
- Y(W(ae), te({
301
+ ee(C(ie), ae({
295
302
  ref_key: "referenceRef",
296
- ref: c,
297
- modelValue: g.value,
298
- "onUpdate:modelValue": t[0] || (t[0] = (a) => g.value = a)
299
- }, U.value, {
300
- disabled: x.value,
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: j,
307
- onFocus: T,
308
- onChange: G,
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((l) => [
314
- Be(e.$slots, a, Ie(ke(l || {})))
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
- x.value && D.value ? (E(), A("div", {
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(`${W(R)}__disabled-mask`),
321
- onClick: Se(q, ["stop"])
322
- }, null, 2)) : ee("", !0),
323
- (E(), we(Te, { to: e.teleportTo }, [
324
- o.value ? (E(), A("div", {
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: k,
335
+ ref: x,
328
336
  class: L([
329
- `${W(R)}__floating`,
337
+ `${C(R)}__floating`,
330
338
  {
331
- "is-error": z.value
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(Z, ["tab"])
345
+ O(G, ["tab"])
338
346
  ]
339
347
  }, [
340
- Y(W(ae), te({
348
+ ee(C(ie), ae({
341
349
  ref_key: "textareaRef",
342
- ref: u,
343
- modelValue: g.value,
344
- "onUpdate:modelValue": t[1] || (t[1] = (a) => g.value = a)
345
- }, U.value, {
346
- disabled: x.value,
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: j,
365
+ onInput: Z,
358
366
  onBlur: se,
359
- onChange: G,
367
+ onChange: J,
360
368
  onClear: F,
361
369
  onKeydown: [
362
370
  O(M, ["esc"]),
363
- O(Z, ["tab"])
371
+ O(G, ["tab"])
364
372
  ]
365
373
  }), null, 16, ["modelValue", "disabled", "readonly", "placeholder", "maxlength", "show-word-limit", "clearable", "input-style"])
366
- ], 38)) : ee("", !0)
374
+ ], 38)) : te("", !0)
367
375
  ], 8, ["to"]))
368
376
  ], 2)), [
369
- [W(_e), n.disabledTip]
377
+ [C(_e), r.disabledTip]
370
378
  ]);
371
379
  }
372
380
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dazhicheng/ui",
3
- "version": "1.6.34",
3
+ "version": "1.6.35",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",