@das-fed/ui 6.4.0-dev.92 → 6.4.0-dev.94

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.
Files changed (73) hide show
  1. package/esm-map.json +2 -1
  2. package/package.json +5 -5
  3. package/packages/business-components/device-panel/index.js +2 -2
  4. package/packages/business-components/device-panel/index.js.gz +0 -0
  5. package/packages/business-components/device-panel/style.css +1 -1
  6. package/packages/business-components/device-panel/style.css.gz +0 -0
  7. package/packages/business-components/import-button/index.js +2 -2
  8. package/packages/business-components/import-button/index.js.gz +0 -0
  9. package/packages/business-components/import-button/style.css +1 -1
  10. package/packages/components/cascader/index.js +171 -153
  11. package/packages/components/cascader/index.js.gz +0 -0
  12. package/packages/components/cascader/style.css +1 -1
  13. package/packages/components/cascader/style.css.gz +0 -0
  14. package/packages/components/checkbox/index.js +1 -1
  15. package/packages/components/checkbox/index.js.gz +0 -0
  16. package/packages/components/checkbox/style.css +1 -1
  17. package/packages/components/checkbox/style.css.gz +0 -0
  18. package/packages/components/color-picker/index.js +38 -38
  19. package/packages/components/color-picker/index.js.gz +0 -0
  20. package/packages/components/color-picker/style.css +1 -1
  21. package/packages/components/color-picker/style.css.gz +0 -0
  22. package/packages/components/date-picker/index.d.ts +7 -0
  23. package/packages/components/date-picker/index.js +713 -626
  24. package/packages/components/date-picker/index.js.gz +0 -0
  25. package/packages/components/date-picker/src/TimeRangePicker.vue.d.ts +3 -0
  26. package/packages/components/date-picker/style.css +1 -1
  27. package/packages/components/date-picker/style.css.gz +0 -0
  28. package/packages/components/dimple-layout/editor/plugins/$svg/type.d.ts +15 -0
  29. package/packages/components/dimple-layout/editor/type.d.ts +5 -2
  30. package/packages/components/dimple-layout/index.js +2012 -1979
  31. package/packages/components/dimple-layout/index.js.gz +0 -0
  32. package/packages/components/error-overlay-model/index.d.ts +33 -0
  33. package/packages/components/error-overlay-model/index.js +72 -0
  34. package/packages/components/error-overlay-model/index.js.gz +0 -0
  35. package/packages/components/error-overlay-model/src/index.vue.d.ts +29 -0
  36. package/packages/components/error-overlay-model/src/type.d.ts +10 -0
  37. package/packages/components/form-item/index.d.ts +4 -1
  38. package/packages/components/form-item/index.js +2 -1
  39. package/packages/components/form-item/index.js.gz +0 -0
  40. package/packages/components/index.d.ts +1 -0
  41. package/packages/components/index.js +1 -0
  42. package/packages/components/input/index.js +132 -155
  43. package/packages/components/input/index.js.gz +0 -0
  44. package/packages/components/input/style.css +1 -1
  45. package/packages/components/input/style.css.gz +0 -0
  46. package/packages/components/input-dialog-select/index.js +97 -146
  47. package/packages/components/input-dialog-select/index.js.gz +0 -0
  48. package/packages/components/input-dialog-select/style.css +1 -1
  49. package/packages/components/input-dialog-select/style.css.gz +0 -0
  50. package/packages/components/input-number/index.js +130 -186
  51. package/packages/components/input-number/index.js.gz +0 -0
  52. package/packages/components/input-number/style.css +1 -1
  53. package/packages/components/input-number/style.css.gz +0 -0
  54. package/packages/components/menu-aside/index.js +1 -1
  55. package/packages/components/menu-aside/index.js.gz +0 -0
  56. package/packages/components/menu-aside/style.css +1 -1
  57. package/packages/components/menu-aside/style.css.gz +0 -0
  58. package/packages/components/menu-header/index.js +4 -4
  59. package/packages/components/menu-header/index.js.gz +0 -0
  60. package/packages/components/search-form/index.js +150 -150
  61. package/packages/components/search-form/index.js.gz +0 -0
  62. package/packages/components/search-form/style.css +1 -1
  63. package/packages/components/search-form/style.css.gz +0 -0
  64. package/packages/components/select/index.js +325 -315
  65. package/packages/components/select/index.js.gz +0 -0
  66. package/packages/components/select/style.css +1 -1
  67. package/packages/components/select/style.css.gz +0 -0
  68. package/packages/components/table/index.js +1716 -1708
  69. package/packages/components/table/index.js.gz +0 -0
  70. package/packages/components/table/style.css +1 -1
  71. package/packages/components/table/style.css.gz +0 -0
  72. package/packages/components/tabs/style.css +1 -1
  73. package/packages/components/tabs/style.css.gz +0 -0
@@ -0,0 +1,33 @@
1
+ declare const DasErrorOverlayModel: import("@das-fed/utils").SFCWithInstall<import("vue").DefineComponent<{
2
+ errorModelZIndex: {
3
+ type: import("vue").PropType<number>;
4
+ default: number;
5
+ };
6
+ errorLabel: {
7
+ type: import("vue").PropType<string>;
8
+ required: true;
9
+ default: string;
10
+ };
11
+ getEl: {
12
+ type: import("vue").PropType<() => any>;
13
+ required: true;
14
+ };
15
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
16
+ errorModelZIndex: {
17
+ type: import("vue").PropType<number>;
18
+ default: number;
19
+ };
20
+ errorLabel: {
21
+ type: import("vue").PropType<string>;
22
+ required: true;
23
+ default: string;
24
+ };
25
+ getEl: {
26
+ type: import("vue").PropType<() => any>;
27
+ required: true;
28
+ };
29
+ }>>, {
30
+ errorModelZIndex: number;
31
+ errorLabel: string;
32
+ }, {}>>;
33
+ export { DasErrorOverlayModel };
@@ -0,0 +1,72 @@
1
+ import { withInstall as D } from "@das-fed/utils/with-install/index";
2
+ import { defineComponent as L, ref as n, computed as M, openBlock as V, createBlock as I, Teleport as O, createElementVNode as H, normalizeStyle as E, toDisplayString as P } from "vue";
3
+ import { getVarValue as k } from "@das-fed/web/packages/theme/index";
4
+ const R = /* @__PURE__ */ L({
5
+ __name: "index",
6
+ props: {
7
+ getEl: {},
8
+ errorLabel: { default: "" },
9
+ errorModelZIndex: { default: 2e3 }
10
+ },
11
+ setup(W) {
12
+ const i = W, C = n(null), s = n(0), r = n({
13
+ x: 0,
14
+ y: 0
15
+ }), h = M(() => ({
16
+ "box-sizing": "border-box",
17
+ "font-size": "12px",
18
+ "background-color": k("--das-ui-color-overlay-error").value,
19
+ "box-shadow": "0px 4px 10px 0px rgba(0, 0, 0, 0.2)",
20
+ "border-radius": "1px",
21
+ padding: "2px 8px",
22
+ "z-index": i.errorModelZIndex
23
+ })), _ = M(() => ({
24
+ ...h.value,
25
+ width: s.value + "px",
26
+ position: "fixed",
27
+ visibility: "visible",
28
+ top: r.value.y + "px",
29
+ left: r.value.x + "px"
30
+ })), d = n({
31
+ // display: 'block',
32
+ color: k("--das-ui-input-error-color").value,
33
+ "white-space": "break-spaces"
34
+ });
35
+ return (() => {
36
+ const c = (l = 0) => {
37
+ const t = document.createElement("div");
38
+ for (let [u, p] of Object.entries({
39
+ ...h.value,
40
+ ...d.value,
41
+ width: l + "px"
42
+ }))
43
+ t.style[u] = p;
44
+ const o = document.createElement("span");
45
+ for (let [u, p] of Object.entries(d.value))
46
+ o.style[u] = p;
47
+ o.textContent = i.errorLabel, t.appendChild(o), document.body.appendChild(t);
48
+ const y = t.offsetHeight, B = o.offsetWidth;
49
+ return document.body.removeChild(t), { height: y, textWidth: B };
50
+ }, m = () => {
51
+ const l = document.documentElement.clientHeight, o = document.documentElement.scrollHeight - l;
52
+ return l - o;
53
+ }, e = i.getEl(), a = (e == null ? void 0 : e.clientWidth) ?? 0, g = c(a), v = g.textWidth;
54
+ v > a ? s.value = v + 2 + 8 : s.value = a;
55
+ const { top: x = 0, left: w = 0, bottom: S = 0, height: b = 0 } = (e == null ? void 0 : e.getBoundingClientRect()) ?? {}, z = m(), f = g.height;
56
+ x + b + f > z ? r.value.y = S - f : r.value.y = x + b, r.value.x = w;
57
+ })(), (c, m) => (V(), I(O, { to: "body" }, [
58
+ H("div", {
59
+ ref_key: "$errorModel",
60
+ ref: C,
61
+ style: E(_.value)
62
+ }, [
63
+ H("span", {
64
+ style: E(d.value)
65
+ }, P(c.errorLabel), 5)
66
+ ], 4)
67
+ ]));
68
+ }
69
+ }), $ = D(R);
70
+ export {
71
+ $ as DasErrorOverlayModel
72
+ };
@@ -0,0 +1,29 @@
1
+ import type { Props } from './type';
2
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
3
+ errorLabel: string;
4
+ errorModelZIndex: number;
5
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
6
+ errorLabel: string;
7
+ errorModelZIndex: number;
8
+ }>>>, {
9
+ errorModelZIndex: number;
10
+ errorLabel: string;
11
+ }, {}>;
12
+ export default _default;
13
+ type __VLS_WithDefaults<P, D> = {
14
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
15
+ default: D[K];
16
+ }> : P[K];
17
+ };
18
+ type __VLS_Prettify<T> = {
19
+ [K in keyof T]: T[K];
20
+ } & {};
21
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
22
+ type __VLS_TypePropsToOption<T> = {
23
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
24
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
25
+ } : {
26
+ type: import('vue').PropType<T[K]>;
27
+ required: true;
28
+ };
29
+ };
@@ -0,0 +1,10 @@
1
+ export interface Props {
2
+
3
+ getEl: () => any
4
+
5
+
6
+ errorLabel: string
7
+
8
+
9
+ errorModelZIndex?: number
10
+ }
@@ -20561,4 +20561,7 @@ declare const DasFormItem: import("@das-fed/utils").SFCWithInstall<{
20561
20561
  };
20562
20562
  })>;
20563
20563
  export { DasFormItem };
20564
- export default DasFormItem;
20564
+ declare const _default: {
20565
+ title: string;
20566
+ };
20567
+ export default _default;
@@ -1743,7 +1743,8 @@ const Uo = (e, t, r) => {
1743
1743
  "--das-ui-form-label-normal": { light: tr("--das-ui-color-secondary") }
1744
1744
  }, ws = er(Xo);
1745
1745
  rr(Qo);
1746
+ const $s = { title: "表单项" };
1746
1747
  export {
1747
1748
  ws as DasFormItem,
1748
- ws as default
1749
+ $s as default
1749
1750
  };
@@ -18,6 +18,7 @@ export * from './drawer';
18
18
  export * from './dropdown';
19
19
  export * from './edit-table';
20
20
  export * from './empty';
21
+ export * from './error-overlay-model';
21
22
  export * from './form';
22
23
  export * from './form-item';
23
24
  export * from './icon';
@@ -18,6 +18,7 @@ export * from './drawer'
18
18
  export * from './dropdown'
19
19
  export * from './edit-table'
20
20
  export * from './empty'
21
+ export * from './error-overlay-model'
21
22
  export * from './form'
22
23
  export * from './form-item'
23
24
  export * from './icon'
@@ -1,31 +1,29 @@
1
1
  import '@das-fed/ui/packages/components/input/style.css';
2
- import { withInstall as le } from "@das-fed/utils/with-install/index";
3
- import { getVarValue as D, setThemeRule as ae } from "@das-fed/web/packages/theme/index";
4
- import { defineComponent as re, computed as i, ref as a, watch as T, nextTick as R, openBlock as u, createElementBlock as p, normalizeStyle as z, normalizeClass as F, createVNode as P, unref as O, withCtx as y, mergeProps as se, createSlots as ie, renderSlot as k, toDisplayString as L, createCommentVNode as h, Fragment as ne, createBlock as ue, Teleport as de, createElementVNode as E } from "vue";
2
+ import { withInstall as J } from "@das-fed/utils/with-install/index";
3
+ import { getVarValue as K, setThemeRule as Q } from "@das-fed/web/packages/theme/index";
4
+ import { defineComponent as X, computed as n, ref as r, watch as y, nextTick as I, openBlock as d, createElementBlock as v, normalizeStyle as Y, normalizeClass as M, createVNode as V, unref as S, withCtx as h, mergeProps as _, createSlots as ee, renderSlot as B, toDisplayString as R, createCommentVNode as b, Fragment as te, createBlock as oe } from "vue";
5
5
  import "element-plus/es/components/input/style/css";
6
- import { ElInput as pe } from "element-plus";
7
- import { t as ce, setI18nRule as fe } from "@das-fed/web/packages/i18n/index";
8
- import { DasTooltip as ve } from "@das-fed/ui/packages/components/tooltip/index";
9
- import { calcTextWidth as me } from "@das-fed/utils/common-tools";
10
- const be = ["auto", "fit-content", "inherit", "initial", "max-content", "min-content", "revert", "unset", "-webkit-fill-available"], ye = (l) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|%)$/.test(l), he = (l) => {
6
+ import { ElInput as le } from "element-plus";
7
+ import { t as ae, setI18nRule as re } from "@das-fed/web/packages/i18n/index";
8
+ import { DasTooltip as se } from "@das-fed/ui/packages/components/tooltip/index";
9
+ import { DasErrorOverlayModel as ie } from "@das-fed/ui/packages/components/error-overlay-model/index";
10
+ import { calcTextWidth as ue } from "@das-fed/utils/common-tools";
11
+ const ne = ["auto", "fit-content", "inherit", "initial", "max-content", "min-content", "revert", "unset", "-webkit-fill-available"], de = (l) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|%)$/.test(l), fe = (l) => {
11
12
  if (l)
12
- return typeof l == "string" && ye(l) || typeof l == "string" && be.includes(l) ? l : l + "px";
13
- }, ge = {
13
+ return typeof l == "string" && de(l) || typeof l == "string" && ne.includes(l) ? l : l + "px";
14
+ }, pe = {
14
15
  key: 0,
15
16
  class: "das-input-label-content"
16
- }, xe = {
17
+ }, ce = {
17
18
  key: 0,
18
19
  class: "das-input-success-label"
19
- }, Be = {
20
- key: 1,
20
+ }, me = {
21
+ key: 0,
21
22
  class: "das-input-label-content"
22
- }, Te = ["title"], ke = {
23
- key: 1,
24
- class: "das-input-overlay-error-label-content"
25
- }, Le = { class: "label" }, Se = {
23
+ }, ve = ["title"], be = {
26
24
  inheritAttrs: !1
27
- }, we = /* @__PURE__ */ re({
28
- ...Se,
25
+ }, ye = /* @__PURE__ */ X({
26
+ ...be,
29
27
  __name: "index",
30
28
  props: {
31
29
  modelValue: { default: "" },
@@ -54,137 +52,125 @@ const be = ["auto", "fit-content", "inherit", "initial", "max-content", "min-con
54
52
  filterSpace: { type: Boolean, default: !0 }
55
53
  },
56
54
  emits: ["update:modelValue", "change"],
57
- setup(l, { expose: g, emit: x }) {
58
- const o = l, c = i(() => o.placeholder || ce("请输入")), U = i(() => `width:${he(o.width)}`), A = i(() => {
55
+ setup(l, { expose: g, emit: T }) {
56
+ const o = l, f = n(() => o.placeholder || ae("请输入")), D = n(() => `width:${fe(o.width)}`), N = n(() => {
59
57
  const e = Number(o.maxLength) ? Number(o.maxLength) : !1, t = Number(o.maxlength) ? Number(o.maxlength) : !1;
60
58
  return e || t && t || !1;
61
- }), W = x, n = i({
59
+ }), w = T, i = n({
62
60
  get: () => o.modelValue,
63
- set: (e) => W("update:modelValue", e)
64
- }), Z = a(o.isTitle), d = a(!1), j = i(() => n.value ? n.value : c.value), $ = a(), r = a(), S = a(!1), H = i(() => o.type === "textarea" ? o.showWordLimit : o.showTextWordLimit), q = i(() => o.isView || o.disabled), G = i(() => q.value ? o.noSetDefaultVal ? "" : "-" : c.value ?? ""), w = a(!1), f = a(0), B = a({
65
- x: 0,
66
- y: 0
67
- }), C = a(0), J = a({
68
- "font-size": "12px",
69
- "background-color": D("--das-ui-color-overlay-error").value,
70
- "box-shadow": "0px 4px 10px 0px rgba(0, 0, 0, 0.2)",
71
- "border-radius": "1px",
72
- padding: "2px 8px",
73
- // 'word-break': 'break-all',
74
- "box-sizing": "border-box"
75
- }), K = i(() => ({
76
- ...J.value,
77
- width: C.value + "px",
78
- position: "fixed",
79
- visibility: "visible",
80
- top: B.value.y + "px",
81
- left: B.value.x + "px",
82
- "z-index": o.errorModelZIndex
83
- })), Q = a({
61
+ set: (e) => w("update:modelValue", e)
62
+ }), F = r(o.isTitle), u = r(!1), O = n(() => i.value ? i.value : f.value), L = r(), s = r(), x = r(!1), P = n(() => o.type === "textarea" ? o.showWordLimit : o.showTextWordLimit), U = n(() => o.isView || o.disabled), A = n(() => U.value ? o.noSetDefaultVal ? "" : "-" : f.value ?? ""), k = r(!1), p = r(0);
63
+ r({
84
64
  display: "block",
85
- color: D("--das-ui-input-error-color").value,
65
+ color: K("--das-ui-input-error-color").value,
86
66
  "white-space": "break-spaces"
87
- }), X = () => {
88
- var b, I, V, N;
89
- const { top: e = 0, left: t = 0 } = ((I = (b = r.value) == null ? void 0 : b.$el) == null ? void 0 : I.getBoundingClientRect()) ?? {}, s = (V = r.value) == null ? void 0 : V.$el.clientHeight;
90
- C.value = (N = r.value) == null ? void 0 : N.$el.clientWidth, B.value.x = t, B.value.y = e + s;
91
- };
92
- T(
67
+ }), y(
93
68
  () => {
94
69
  var e;
95
- return (e = r.value) == null ? void 0 : e.textarea;
70
+ return (e = s.value) == null ? void 0 : e.textarea;
96
71
  },
97
72
  (e) => {
98
- R(() => {
73
+ I(() => {
99
74
  var t;
100
75
  e && (e != null && e.nextSibling) && ((t = e.nextSibling) != null && t.style) && (e.nextSibling.style.display = "none");
101
76
  });
102
77
  }
103
78
  );
104
- const Y = (e) => {
79
+ const j = (e) => {
105
80
  let t = e + "";
106
- o.type !== "textarea" && o.filterSpace && (t = t.trim()), n.value = t, W("change", t);
107
- }, _ = () => {
81
+ o.type !== "textarea" && o.filterSpace && (t = t.trim()), i.value = t, w("change", t);
82
+ }, Z = () => {
108
83
  var t;
109
- o.borderType === "bottom" && (w.value = !0);
110
- const e = (t = r.value) == null ? void 0 : t.textarea;
84
+ o.borderType === "bottom" && (k.value = !0);
85
+ const e = (t = s.value) == null ? void 0 : t.textarea;
111
86
  e && e.nextSibling && e.nextSibling.style && (e.nextSibling.style.display = "block");
112
- }, ee = () => {
87
+ }, q = () => {
113
88
  var t;
114
- o.borderType === "bottom" && (w.value = !1);
115
- const e = (t = r.value) == null ? void 0 : t.textarea;
89
+ o.borderType === "bottom" && (k.value = !1);
90
+ const e = (t = s.value) == null ? void 0 : t.textarea;
116
91
  e && e.nextSibling && e.nextSibling.style && (e.nextSibling.style.display = "none");
117
- }, M = () => {
92
+ }, z = () => {
118
93
  const e = o.size === "table" ? 12 : 14;
119
- return me(c.value, e);
94
+ return ue(f.value, e);
120
95
  };
121
- T(
122
- () => r.value,
96
+ y(
97
+ () => s.value,
123
98
  (e) => {
124
99
  setTimeout(() => {
125
- var s, b;
100
+ var a, C;
126
101
  const t = e;
127
- t && (f.value = ((s = t == null ? void 0 : t.ref) == null ? void 0 : s.offsetWidth) ?? 0, v.value = n.value ? (b = t == null ? void 0 : t.ref) == null ? void 0 : b.scrollWidth : M());
102
+ t && (p.value = ((a = t == null ? void 0 : t.ref) == null ? void 0 : a.offsetWidth) ?? 0, c.value = i.value ? (C = t == null ? void 0 : t.ref) == null ? void 0 : C.scrollWidth : z());
128
103
  }, 200);
129
104
  }
130
105
  );
131
- const v = a(0);
132
- T(() => [n.value, c.value], () => {
133
- R(() => {
134
- var e, t, s;
135
- (e = r.value) != null && e.ref && (f.value = (t = r.value) == null ? void 0 : t.ref.offsetWidth, v.value = n.value ? (s = r.value) == null ? void 0 : s.ref.scrollWidth : M(), (f.value === v.value || v.value - f.value < 1) && (d.value = !1));
106
+ const c = r(0);
107
+ y(() => [i.value, f.value], () => {
108
+ I(() => {
109
+ var e, t, a;
110
+ (e = s.value) != null && e.ref && (p.value = (t = s.value) == null ? void 0 : t.ref.offsetWidth, c.value = i.value ? (a = s.value) == null ? void 0 : a.ref.scrollWidth : z(), (p.value === c.value || c.value - p.value < 1) && (u.value = !1));
136
111
  });
137
112
  });
138
- const m = a(), te = () => {
139
- f.value === v.value || v.value - f.value < 1 ? d.value = !1 : (d.value = !0, m.value && clearTimeout(m.value)), S.value = !0, X();
140
- }, oe = () => {
113
+ const E = r(), m = r(), G = () => {
114
+ p.value === c.value || c.value - p.value < 1 ? u.value = !1 : (u.value = !0, m && clearTimeout(m.value), E && clearTimeout(E.value)), o.errorMode === "overlay" && (x.value = !0);
115
+ }, H = () => {
116
+ m.value = setTimeout(() => {
117
+ u.value = !1;
118
+ }, 200), E.value = setTimeout(() => {
119
+ x.value = !1;
120
+ }, 200);
121
+ }, W = () => {
122
+ u.value = !0, m.value && clearTimeout(m.value);
123
+ }, $ = () => {
141
124
  m.value = setTimeout(() => {
142
- d.value = !1;
143
- }, 200), S.value = !1;
125
+ u.value = !1;
126
+ }, 200);
144
127
  };
145
- return T(
128
+ return y(
146
129
  () => {
147
130
  var e;
148
- return (e = $.value) == null ? void 0 : e.$tooltipRef.popperRef.contentRef;
131
+ return (e = L.value) == null ? void 0 : e.$tooltipRef.popperRef.contentRef;
149
132
  },
150
133
  (e) => {
151
- e && (e.addEventListener("mouseenter", function() {
152
- d.value = !0, m.value && clearTimeout(m.value);
153
- }), e.addEventListener("mouseleave", function() {
154
- m.value = setTimeout(() => {
155
- d.value = !1;
156
- }, 200);
157
- }));
134
+ e && (e.addEventListener("mouseenter", W), e.addEventListener("mouseleave", $));
135
+ }
136
+ ), y(
137
+ () => u.value,
138
+ (e) => {
139
+ var t;
140
+ if (!e) {
141
+ const a = (t = L.value) == null ? void 0 : t.$tooltipRef.popperRef.contentRef;
142
+ a && (a.removeEventListener("mouseenter", W), a.removeEventListener("mouseleave", $));
143
+ }
158
144
  }
159
145
  ), g({
160
- $refInput: r
161
- }), (e, t) => (u(), p("div", {
162
- style: z(U.value),
163
- class: F([
146
+ $refInput: s
147
+ }), (e, t) => (d(), v("div", {
148
+ style: Y(D.value),
149
+ class: M([
164
150
  "das-ui-input",
165
151
  { "only-border-bottom": e.borderType === "bottom" },
166
152
  { "das-input-normal-size": e.size === "default" },
167
153
  { "das-input-table-size": e.size === "table" }
168
154
  ])
169
155
  }, [
170
- P(O(ve), {
156
+ V(S(se), {
171
157
  ref_key: "inputTooltipRef",
172
- ref: $,
158
+ ref: L,
173
159
  effect: "light",
174
160
  placement: "top",
175
161
  manual: !0,
176
- visible: d.value,
177
- disabled: !Z.value,
178
- content: j.value
162
+ visible: u.value,
163
+ disabled: !F.value,
164
+ content: O.value
179
165
  }, {
180
- default: y(() => [
181
- P(O(pe), se({
166
+ default: h(() => [
167
+ V(S(le), _({
182
168
  ref_key: "$refInput",
183
- ref: r
169
+ ref: s
184
170
  }, e.$attrs, {
185
- modelValue: n.value,
186
- "onUpdate:modelValue": t[0] || (t[0] = (s) => n.value = s),
187
- placeholder: G.value,
171
+ modelValue: i.value,
172
+ "onUpdate:modelValue": t[0] || (t[0] = (a) => i.value = a),
173
+ placeholder: A.value,
188
174
  disabled: e.disabled,
189
175
  readonly: e.isView,
190
176
  type: o.type,
@@ -192,42 +178,42 @@ const be = ["auto", "fit-content", "inherit", "initial", "max-content", "min-con
192
178
  { "is-view": e.isView },
193
179
  { "das-input-success": e.success },
194
180
  { "das-input-error": e.error },
195
- { "input-focus-color": w.value }
181
+ { "input-focus-color": k.value }
196
182
  ],
197
183
  autosize: o.autosize,
198
- showWordLimit: H.value,
199
- maxlength: A.value,
200
- onChange: Y,
201
- onFocus: _,
202
- onBlur: ee,
203
- onMouseenter: te,
204
- onMouseleave: oe
205
- }), ie({ _: 2 }, [
184
+ showWordLimit: P.value,
185
+ maxlength: N.value,
186
+ onChange: j,
187
+ onFocus: Z,
188
+ onBlur: q,
189
+ onMouseenter: G,
190
+ onMouseleave: H
191
+ }), ee({ _: 2 }, [
206
192
  e.$slots.prepend ? {
207
193
  name: "prepend",
208
- fn: y(() => [
209
- k(e.$slots, "prepend", {}, void 0, !0)
194
+ fn: h(() => [
195
+ B(e.$slots, "prepend", {}, void 0, !0)
210
196
  ]),
211
197
  key: "0"
212
198
  } : void 0,
213
199
  e.$slots.append ? {
214
200
  name: "append",
215
- fn: y(() => [
216
- k(e.$slots, "append", {}, void 0, !0)
201
+ fn: h(() => [
202
+ B(e.$slots, "append", {}, void 0, !0)
217
203
  ]),
218
204
  key: "1"
219
205
  } : void 0,
220
206
  e.$slots.suffix ? {
221
207
  name: "suffix",
222
- fn: y(() => [
223
- k(e.$slots, "suffix", {}, void 0, !0)
208
+ fn: h(() => [
209
+ B(e.$slots, "suffix", {}, void 0, !0)
224
210
  ]),
225
211
  key: "2"
226
212
  } : void 0,
227
213
  e.$slots.prefix ? {
228
214
  name: "prefix",
229
- fn: y(() => [
230
- k(e.$slots, "prefix", {}, void 0, !0)
215
+ fn: h(() => [
216
+ B(e.$slots, "prefix", {}, void 0, !0)
231
217
  ]),
232
218
  key: "3"
233
219
  } : void 0
@@ -235,40 +221,31 @@ const be = ["auto", "fit-content", "inherit", "initial", "max-content", "min-con
235
221
  ]),
236
222
  _: 3
237
223
  }, 8, ["visible", "disabled", "content"]),
238
- e.success && e.successLabel ? (u(), p("div", ge, [
239
- e.success ? (u(), p("span", xe, L(e.successLabel), 1)) : h("", !0)
240
- ])) : h("", !0),
241
- e.error && e.errorLabel && e.errorMode === "default" ? (u(), p("div", Be, [
242
- e.error ? (u(), p("span", {
243
- key: 0,
244
- class: F(["das-input-error-label", { "error-label-overflow": e.isErrorTitle }]),
245
- title: e.isErrorTitle ? e.errorLabel : ""
246
- }, L(e.errorLabel), 11, Te)) : h("", !0)
247
- ])) : h("", !0),
248
- e.error && e.errorLabel && S.value && e.errorMode === "overlay" ? (u(), p(ne, { key: 2 }, [
249
- e.teleported ? (u(), ue(de, {
250
- key: 0,
251
- to: "body"
252
- }, [
253
- E("div", {
254
- style: z(K.value)
255
- }, [
256
- E("span", {
257
- style: z(Q.value)
258
- }, L(e.errorLabel), 5)
259
- ], 4)
260
- ])) : (u(), p("div", ke, [
261
- E("span", Le, L(e.errorLabel), 1)
262
- ]))
263
- ], 64)) : h("", !0)
224
+ e.success && e.successLabel ? (d(), v("div", pe, [
225
+ e.success ? (d(), v("span", ce, R(e.successLabel), 1)) : b("", !0)
226
+ ])) : b("", !0),
227
+ e.error && e.errorLabel ? (d(), v(te, { key: 1 }, [
228
+ e.errorMode === "default" ? (d(), v("div", me, [
229
+ e.error ? (d(), v("span", {
230
+ key: 0,
231
+ class: M(["das-input-error-label", { "error-label-overflow": e.isErrorTitle }]),
232
+ title: e.isErrorTitle ? e.errorLabel : ""
233
+ }, R(e.errorLabel), 11, ve)) : b("", !0)
234
+ ])) : b("", !0),
235
+ x.value && e.errorMode === "overlay" ? (d(), oe(S(ie), {
236
+ key: 1,
237
+ errorLabel: e.errorLabel,
238
+ getEl: () => s.value.$el
239
+ }, null, 8, ["errorLabel", "getEl"])) : b("", !0)
240
+ ], 64)) : b("", !0)
264
241
  ], 6));
265
242
  }
266
- }), ze = (l, g) => {
267
- const x = l.__vccOpts || l;
268
- for (const [o, c] of g)
269
- x[o] = c;
270
- return x;
271
- }, Ee = /* @__PURE__ */ ze(we, [["__scopeId", "data-v-181080a1"]]), We = {
243
+ }), he = (l, g) => {
244
+ const T = l.__vccOpts || l;
245
+ for (const [o, f] of g)
246
+ T[o] = f;
247
+ return T;
248
+ }, ge = /* @__PURE__ */ he(ye, [["__scopeId", "data-v-0904a914"]]), Te = {
272
249
  "--das-ui-input-default-text-color": "#212121",
273
250
  "--das-ui-input-default-placeholder-text-color": "#B2B2B2",
274
251
  "--das-ui-input-full-border-color": "#D9D9D9",
@@ -285,15 +262,15 @@ const be = ["auto", "fit-content", "inherit", "initial", "max-content", "min-con
285
262
  "--das-ui-input-only-bottom-view-border-color": "#E5E5E5",
286
263
  "--das-ui-input-success-color": "#1BA854",
287
264
  "--das-ui-input-error-color": "#FB2323"
288
- }, $e = {
265
+ }, Be = {
289
266
  共: { "zh-CN": "共", en: "Total", _appCode: "framework" },
290
267
  项: { "zh-CN": "项", en: "Item", _appCode: "framework" },
291
268
  请输入: { "zh-CN": "请输入", en: "Please enter", _appCode: "framework" }
292
269
  };
293
- fe($e);
294
- ae(We);
295
- const Oe = le(Ee);
270
+ re(Be);
271
+ Q(Te);
272
+ const Ie = J(ge);
296
273
  export {
297
- Oe as DasInput,
298
- Oe as default
274
+ Ie as DasInput,
275
+ Ie as default
299
276
  };