@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.
- package/esm-map.json +2 -1
- package/package.json +5 -5
- package/packages/business-components/device-panel/index.js +2 -2
- package/packages/business-components/device-panel/index.js.gz +0 -0
- package/packages/business-components/device-panel/style.css +1 -1
- package/packages/business-components/device-panel/style.css.gz +0 -0
- package/packages/business-components/import-button/index.js +2 -2
- package/packages/business-components/import-button/index.js.gz +0 -0
- package/packages/business-components/import-button/style.css +1 -1
- package/packages/components/cascader/index.js +171 -153
- package/packages/components/cascader/index.js.gz +0 -0
- package/packages/components/cascader/style.css +1 -1
- package/packages/components/cascader/style.css.gz +0 -0
- package/packages/components/checkbox/index.js +1 -1
- package/packages/components/checkbox/index.js.gz +0 -0
- package/packages/components/checkbox/style.css +1 -1
- package/packages/components/checkbox/style.css.gz +0 -0
- package/packages/components/color-picker/index.js +38 -38
- package/packages/components/color-picker/index.js.gz +0 -0
- package/packages/components/color-picker/style.css +1 -1
- package/packages/components/color-picker/style.css.gz +0 -0
- package/packages/components/date-picker/index.d.ts +7 -0
- package/packages/components/date-picker/index.js +713 -626
- package/packages/components/date-picker/index.js.gz +0 -0
- package/packages/components/date-picker/src/TimeRangePicker.vue.d.ts +3 -0
- package/packages/components/date-picker/style.css +1 -1
- package/packages/components/date-picker/style.css.gz +0 -0
- package/packages/components/dimple-layout/editor/plugins/$svg/type.d.ts +15 -0
- package/packages/components/dimple-layout/editor/type.d.ts +5 -2
- package/packages/components/dimple-layout/index.js +2012 -1979
- package/packages/components/dimple-layout/index.js.gz +0 -0
- package/packages/components/error-overlay-model/index.d.ts +33 -0
- package/packages/components/error-overlay-model/index.js +72 -0
- package/packages/components/error-overlay-model/index.js.gz +0 -0
- package/packages/components/error-overlay-model/src/index.vue.d.ts +29 -0
- package/packages/components/error-overlay-model/src/type.d.ts +10 -0
- package/packages/components/form-item/index.d.ts +4 -1
- package/packages/components/form-item/index.js +2 -1
- package/packages/components/form-item/index.js.gz +0 -0
- package/packages/components/index.d.ts +1 -0
- package/packages/components/index.js +1 -0
- package/packages/components/input/index.js +132 -155
- package/packages/components/input/index.js.gz +0 -0
- package/packages/components/input/style.css +1 -1
- package/packages/components/input/style.css.gz +0 -0
- package/packages/components/input-dialog-select/index.js +97 -146
- package/packages/components/input-dialog-select/index.js.gz +0 -0
- package/packages/components/input-dialog-select/style.css +1 -1
- package/packages/components/input-dialog-select/style.css.gz +0 -0
- package/packages/components/input-number/index.js +130 -186
- package/packages/components/input-number/index.js.gz +0 -0
- package/packages/components/input-number/style.css +1 -1
- package/packages/components/input-number/style.css.gz +0 -0
- package/packages/components/menu-aside/index.js +1 -1
- package/packages/components/menu-aside/index.js.gz +0 -0
- package/packages/components/menu-aside/style.css +1 -1
- package/packages/components/menu-aside/style.css.gz +0 -0
- package/packages/components/menu-header/index.js +4 -4
- package/packages/components/menu-header/index.js.gz +0 -0
- package/packages/components/search-form/index.js +150 -150
- package/packages/components/search-form/index.js.gz +0 -0
- package/packages/components/search-form/style.css +1 -1
- package/packages/components/search-form/style.css.gz +0 -0
- package/packages/components/select/index.js +325 -315
- package/packages/components/select/index.js.gz +0 -0
- package/packages/components/select/style.css +1 -1
- package/packages/components/select/style.css.gz +0 -0
- package/packages/components/table/index.js +1716 -1708
- package/packages/components/table/index.js.gz +0 -0
- package/packages/components/table/style.css +1 -1
- package/packages/components/table/style.css.gz +0 -0
- package/packages/components/tabs/style.css +1 -1
- package/packages/components/tabs/style.css.gz +0 -0
|
Binary file
|
|
@@ -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
|
+
};
|
|
Binary file
|
|
@@ -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
|
+
};
|
|
@@ -20561,4 +20561,7 @@ declare const DasFormItem: import("@das-fed/utils").SFCWithInstall<{
|
|
|
20561
20561
|
};
|
|
20562
20562
|
})>;
|
|
20563
20563
|
export { DasFormItem };
|
|
20564
|
-
|
|
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
|
-
|
|
1749
|
+
$s as default
|
|
1749
1750
|
};
|
|
Binary file
|
|
@@ -1,31 +1,29 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/components/input/style.css';
|
|
2
|
-
import { withInstall as
|
|
3
|
-
import { getVarValue as
|
|
4
|
-
import { defineComponent as
|
|
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
|
|
7
|
-
import { t as
|
|
8
|
-
import { DasTooltip as
|
|
9
|
-
import {
|
|
10
|
-
|
|
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" &&
|
|
13
|
-
},
|
|
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
|
-
},
|
|
17
|
+
}, ce = {
|
|
17
18
|
key: 0,
|
|
18
19
|
class: "das-input-success-label"
|
|
19
|
-
},
|
|
20
|
-
key:
|
|
20
|
+
}, me = {
|
|
21
|
+
key: 0,
|
|
21
22
|
class: "das-input-label-content"
|
|
22
|
-
},
|
|
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
|
-
},
|
|
28
|
-
...
|
|
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:
|
|
58
|
-
const o = l,
|
|
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
|
-
}),
|
|
59
|
+
}), w = T, i = n({
|
|
62
60
|
get: () => o.modelValue,
|
|
63
|
-
set: (e) =>
|
|
64
|
-
}),
|
|
65
|
-
|
|
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:
|
|
65
|
+
color: K("--das-ui-input-error-color").value,
|
|
86
66
|
"white-space": "break-spaces"
|
|
87
|
-
}),
|
|
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 =
|
|
70
|
+
return (e = s.value) == null ? void 0 : e.textarea;
|
|
96
71
|
},
|
|
97
72
|
(e) => {
|
|
98
|
-
|
|
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
|
|
79
|
+
const j = (e) => {
|
|
105
80
|
let t = e + "";
|
|
106
|
-
o.type !== "textarea" && o.filterSpace && (t = t.trim()),
|
|
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" && (
|
|
110
|
-
const e = (t =
|
|
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
|
-
},
|
|
87
|
+
}, q = () => {
|
|
113
88
|
var t;
|
|
114
|
-
o.borderType === "bottom" && (
|
|
115
|
-
const e = (t =
|
|
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
|
-
},
|
|
92
|
+
}, z = () => {
|
|
118
93
|
const e = o.size === "table" ? 12 : 14;
|
|
119
|
-
return
|
|
94
|
+
return ue(f.value, e);
|
|
120
95
|
};
|
|
121
|
-
|
|
122
|
-
() =>
|
|
96
|
+
y(
|
|
97
|
+
() => s.value,
|
|
123
98
|
(e) => {
|
|
124
99
|
setTimeout(() => {
|
|
125
|
-
var
|
|
100
|
+
var a, C;
|
|
126
101
|
const t = e;
|
|
127
|
-
t && (
|
|
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
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
var e, t,
|
|
135
|
-
(e =
|
|
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 =
|
|
139
|
-
|
|
140
|
-
},
|
|
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
|
-
|
|
143
|
-
}, 200)
|
|
125
|
+
u.value = !1;
|
|
126
|
+
}, 200);
|
|
144
127
|
};
|
|
145
|
-
return
|
|
128
|
+
return y(
|
|
146
129
|
() => {
|
|
147
130
|
var e;
|
|
148
|
-
return (e =
|
|
131
|
+
return (e = L.value) == null ? void 0 : e.$tooltipRef.popperRef.contentRef;
|
|
149
132
|
},
|
|
150
133
|
(e) => {
|
|
151
|
-
e && (e.addEventListener("mouseenter",
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
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:
|
|
161
|
-
}), (e, t) => (
|
|
162
|
-
style:
|
|
163
|
-
class:
|
|
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
|
-
|
|
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:
|
|
177
|
-
disabled: !
|
|
178
|
-
content:
|
|
162
|
+
visible: u.value,
|
|
163
|
+
disabled: !F.value,
|
|
164
|
+
content: O.value
|
|
179
165
|
}, {
|
|
180
|
-
default:
|
|
181
|
-
|
|
166
|
+
default: h(() => [
|
|
167
|
+
V(S(le), _({
|
|
182
168
|
ref_key: "$refInput",
|
|
183
|
-
ref:
|
|
169
|
+
ref: s
|
|
184
170
|
}, e.$attrs, {
|
|
185
|
-
modelValue:
|
|
186
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
187
|
-
placeholder:
|
|
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":
|
|
181
|
+
{ "input-focus-color": k.value }
|
|
196
182
|
],
|
|
197
183
|
autosize: o.autosize,
|
|
198
|
-
showWordLimit:
|
|
199
|
-
maxlength:
|
|
200
|
-
onChange:
|
|
201
|
-
onFocus:
|
|
202
|
-
onBlur:
|
|
203
|
-
onMouseenter:
|
|
204
|
-
onMouseleave:
|
|
205
|
-
}),
|
|
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:
|
|
209
|
-
|
|
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:
|
|
216
|
-
|
|
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:
|
|
223
|
-
|
|
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:
|
|
230
|
-
|
|
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 ? (
|
|
239
|
-
e.success ? (
|
|
240
|
-
])) :
|
|
241
|
-
e.error && e.errorLabel
|
|
242
|
-
e.
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
e.
|
|
250
|
-
key:
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
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
|
-
}),
|
|
267
|
-
const
|
|
268
|
-
for (const [o,
|
|
269
|
-
|
|
270
|
-
return
|
|
271
|
-
},
|
|
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
|
-
},
|
|
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
|
-
|
|
294
|
-
|
|
295
|
-
const
|
|
270
|
+
re(Be);
|
|
271
|
+
Q(Te);
|
|
272
|
+
const Ie = J(ge);
|
|
296
273
|
export {
|
|
297
|
-
|
|
298
|
-
|
|
274
|
+
Ie as DasInput,
|
|
275
|
+
Ie as default
|
|
299
276
|
};
|
|
Binary file
|