@das-fed/ui 7.0.7-hot.21 → 7.0.7-hot.22
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/package.json +5 -5
- package/packages/business-components/ai-panel/{index-8yffh0Id.js → index-DMJXZM7n.js} +1067 -1056
- package/packages/business-components/ai-panel/index-DMJXZM7n.js.gz +0 -0
- package/packages/business-components/ai-panel/{index-IzGl26KU.js → index-MqhMkLo9.js} +9 -9
- package/packages/business-components/ai-panel/index-MqhMkLo9.js.gz +0 -0
- package/packages/business-components/ai-panel/{index-OwRrV6K8.js → index-_q72oKSF.js} +63 -62
- package/packages/business-components/ai-panel/index-_q72oKSF.js.gz +0 -0
- package/packages/business-components/ai-panel/index.js +1 -1
- package/packages/business-components/device-panel/index.js +14908 -14808
- package/packages/business-components/device-panel/index.js.gz +0 -0
- package/packages/business-components/echarts/index.js +2056 -2049
- package/packages/business-components/echarts/index.js.gz +0 -0
- package/packages/business-components/process-configuration/index.js +46 -46
- package/packages/business-components/process-configuration/index.js.gz +0 -0
- package/packages/business-components/process-form/index.js +99 -99
- package/packages/business-components/process-form/index.js.gz +0 -0
- package/packages/business-components/process-search-form/index.js +77 -77
- package/packages/business-components/process-search-form/index.js.gz +0 -0
- package/packages/business-components/process-table/index.js +215 -213
- package/packages/business-components/process-table/index.js.gz +0 -0
- package/packages/business-components/urgent-panel/index.js +1104 -1096
- package/packages/business-components/urgent-panel/index.js.gz +0 -0
- package/packages/business-components/user-org-dialog/index.js +243 -240
- package/packages/business-components/user-org-dialog/index.js.gz +0 -0
- package/packages/business-components/video-dialog/index.js +65 -64
- package/packages/business-components/video-dialog/index.js.gz +0 -0
- package/packages/components/autocomplete/index.js +12 -6
- package/packages/components/autocomplete/index.js.gz +0 -0
- package/packages/components/calendar/index.js +99 -99
- package/packages/components/calendar/index.js.gz +0 -0
- package/packages/components/cascader/index.js +2 -2
- package/packages/components/cascader/index.js.gz +0 -0
- package/packages/components/checkbox/index.js +30 -30
- package/packages/components/checkbox/index.js.gz +0 -0
- package/packages/components/date-picker/index.js +212 -212
- package/packages/components/date-picker/index.js.gz +0 -0
- package/packages/components/dimple-layout/index.js +77 -75
- package/packages/components/dimple-layout/index.js.gz +0 -0
- package/packages/components/dropdown/index.js +25 -24
- package/packages/components/dropdown/index.js.gz +0 -0
- package/packages/components/edit-table/index.js +398 -397
- package/packages/components/edit-table/index.js.gz +0 -0
- package/packages/components/error-overlay-model/index.js +47 -45
- package/packages/components/error-overlay-model/index.js.gz +0 -0
- package/packages/components/form-item/index.js +67 -67
- package/packages/components/form-item/index.js.gz +0 -0
- package/packages/components/hls-player/index.js +14 -7
- package/packages/components/hls-player/index.js.gz +0 -0
- package/packages/components/image-upload/index.js +147 -143
- package/packages/components/image-upload/index.js.gz +0 -0
- package/packages/components/image-viewer/index.js +297 -293
- package/packages/components/image-viewer/index.js.gz +0 -0
- package/packages/components/input/index.js +52 -52
- package/packages/components/input/index.js.gz +0 -0
- package/packages/components/input-number/index.js +26 -26
- package/packages/components/input-number/index.js.gz +0 -0
- package/packages/components/live-player/index.js +251 -248
- package/packages/components/live-player/index.js.gz +0 -0
- package/packages/components/map/index.js +421 -415
- package/packages/components/map/index.js.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/message/index.js +6 -6
- package/packages/components/message/index.js.gz +0 -0
- package/packages/components/popover/index.js +12 -12
- package/packages/components/popover/index.js.gz +0 -0
- package/packages/components/radio-tabs/index.js +34 -34
- package/packages/components/radio-tabs/index.js.gz +0 -0
- package/packages/components/rich-editor/index.js +4613 -4583
- package/packages/components/rich-editor/index.js.gz +0 -0
- package/packages/components/scrollbar/index.js +135 -135
- package/packages/components/scrollbar/index.js.gz +0 -0
- package/packages/components/search/index.js +24 -24
- package/packages/components/search/index.js.gz +0 -0
- package/packages/components/select/index.js +60 -60
- package/packages/components/select/index.js.gz +0 -0
- package/packages/components/select-list/index.js +9 -5
- package/packages/components/select-list/index.js.gz +0 -0
- package/packages/components/special-range-picker-month/index.js +16 -14
- package/packages/components/special-range-picker-month/index.js.gz +0 -0
- package/packages/components/special-range-picker-year/index.js +53 -51
- package/packages/components/special-range-picker-year/index.js.gz +0 -0
- package/packages/components/spin/index.js +33 -33
- package/packages/components/spin/index.js.gz +0 -0
- package/packages/components/split-panel/index.js +129 -128
- package/packages/components/split-panel/index.js.gz +0 -0
- package/packages/components/table/index.js +179 -178
- package/packages/components/table/index.js.gz +0 -0
- package/packages/components/time-line/index.js +1 -1
- package/packages/components/time-line/index.js.gz +0 -0
- package/packages/components/tree-select/index.js +1 -1
- package/packages/components/tree-select/index.js.gz +0 -0
- package/packages/components/tree-table/index.js +2 -2
- package/packages/components/tree-table/index.js.gz +0 -0
- package/packages/components/tree-v2/index.js +1117 -1093
- package/packages/components/tree-v2/index.js.gz +0 -0
- package/packages/business-components/ai-panel/index-8yffh0Id.js.gz +0 -0
- package/packages/business-components/ai-panel/index-IzGl26KU.js.gz +0 -0
- package/packages/business-components/ai-panel/index-OwRrV6K8.js.gz +0 -0
|
Binary file
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/components/input/style.css';
|
|
2
2
|
import { withInstall as K } from "@das-fed/utils/with-install/index";
|
|
3
3
|
import { getVarValue as Q, setThemeRule as X } from "@das-fed/web/packages/theme/index";
|
|
4
|
-
import { defineComponent as Y, computed as d, ref as r, watch as
|
|
4
|
+
import { defineComponent as Y, computed as d, ref as r, watch as h, nextTick as C, createElementBlock as b, openBlock as c, normalizeClass as R, normalizeStyle as _, createCommentVNode as i, createVNode as V, unref as S, withCtx as y, mergeProps as ee, createSlots as te, renderSlot as x, toDisplayString as D, Fragment as oe, createBlock as le } from "vue";
|
|
5
5
|
import "element-plus/es/components/input/style/css";
|
|
6
6
|
import { ElInput as ae } from "element-plus";
|
|
7
7
|
import { t as re, setI18nRule as se } from "@das-fed/web/packages/i18n/index";
|
|
8
8
|
import { DasTooltip as ie } from "@das-fed/ui/packages/components/tooltip/index";
|
|
9
|
-
import { DasErrorOverlayModel as
|
|
10
|
-
import { calcTextWidth as
|
|
9
|
+
import { DasErrorOverlayModel as ne } from "@das-fed/ui/packages/components/error-overlay-model/index";
|
|
10
|
+
import { calcTextWidth as ue } from "@das-fed/utils/common-tools";
|
|
11
11
|
const de = ["auto", "fit-content", "inherit", "initial", "max-content", "min-content", "revert", "unset", "-webkit-fill-available"], fe = (l) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|%)$/.test(l), pe = (l) => {
|
|
12
12
|
if (l)
|
|
13
13
|
return typeof l == "string" && fe(l) || typeof l == "string" && de.includes(l) ? l : l + "px";
|
|
@@ -20,10 +20,10 @@ const de = ["auto", "fit-content", "inherit", "initial", "max-content", "min-con
|
|
|
20
20
|
}, me = {
|
|
21
21
|
key: 0,
|
|
22
22
|
class: "das-input-label-content"
|
|
23
|
-
}, be = ["title"],
|
|
23
|
+
}, be = ["title"], he = {
|
|
24
24
|
inheritAttrs: !1
|
|
25
|
-
},
|
|
26
|
-
...
|
|
25
|
+
}, ye = /* @__PURE__ */ Y({
|
|
26
|
+
...he,
|
|
27
27
|
__name: "index",
|
|
28
28
|
props: {
|
|
29
29
|
modelValue: { default: "" },
|
|
@@ -52,18 +52,18 @@ const de = ["auto", "fit-content", "inherit", "initial", "max-content", "min-con
|
|
|
52
52
|
},
|
|
53
53
|
emits: ["update:modelValue", "change"],
|
|
54
54
|
setup(l, { expose: g, emit: T }) {
|
|
55
|
-
const o = l,
|
|
55
|
+
const o = l, v = d(() => o.placeholder || re("请输入")), N = d(() => `width:${pe(o.width)}`), F = d(() => {
|
|
56
56
|
const e = Number(o.maxLength) ? Number(o.maxLength) : !1, t = Number(o.maxlength) ? Number(o.maxlength) : !1;
|
|
57
57
|
return e || t && t || !1;
|
|
58
|
-
}), w = T,
|
|
58
|
+
}), w = T, n = d({
|
|
59
59
|
get: () => o.modelValue,
|
|
60
60
|
set: (e) => w("update:modelValue", e)
|
|
61
|
-
}), O = r(o.isTitle),
|
|
61
|
+
}), O = r(o.isTitle), u = r(!1), P = d(() => n.value ? n.value : v.value), B = r(), s = r(), L = r(!1), Z = d(() => o.type === "textarea" ? o.showWordLimit : o.showTextWordLimit), U = d(() => o.isView || o.disabled), A = d(() => U.value ? o.noSetDefaultVal ? "" : "-" : v.value ?? ""), k = r(!1), f = r(0);
|
|
62
62
|
r({
|
|
63
63
|
display: "block",
|
|
64
64
|
color: Q("--das-ui-input-error-color").value,
|
|
65
65
|
"white-space": "break-spaces"
|
|
66
|
-
}),
|
|
66
|
+
}), h(
|
|
67
67
|
() => {
|
|
68
68
|
var e;
|
|
69
69
|
return (e = s.value) == null ? void 0 : e.textarea;
|
|
@@ -77,77 +77,77 @@ const de = ["auto", "fit-content", "inherit", "initial", "max-content", "min-con
|
|
|
77
77
|
);
|
|
78
78
|
const j = (e) => {
|
|
79
79
|
let t = e + "";
|
|
80
|
-
o.type !== "textarea" && o.filterSpace && (t = t.trim()),
|
|
80
|
+
o.type !== "textarea" && o.filterSpace && (t = t.trim()), n.value = t, w("change", t);
|
|
81
81
|
}, q = () => {
|
|
82
82
|
var t;
|
|
83
83
|
o.borderType === "bottom" && (k.value = !0);
|
|
84
84
|
const e = (t = s.value) == null ? void 0 : t.textarea;
|
|
85
|
-
e && e.nextSibling && e.nextSibling.style && (e.nextSibling.style.display = "block");
|
|
85
|
+
e && e.nextSibling && e.nextSibling.style && (e.nextSibling.style.display = "block", console.log("textareaRef", e.nextSibling));
|
|
86
86
|
}, G = () => {
|
|
87
87
|
var t;
|
|
88
88
|
o.borderType === "bottom" && (k.value = !1);
|
|
89
89
|
const e = (t = s.value) == null ? void 0 : t.textarea;
|
|
90
90
|
e && e.nextSibling && e.nextSibling.style && (e.nextSibling.style.display = "none");
|
|
91
|
-
},
|
|
91
|
+
}, W = () => {
|
|
92
92
|
const e = o.size === "table" ? 12 : 14;
|
|
93
|
-
return
|
|
93
|
+
return ue(v.value, e);
|
|
94
94
|
};
|
|
95
|
-
|
|
95
|
+
h(
|
|
96
96
|
() => s.value,
|
|
97
97
|
(e) => {
|
|
98
98
|
setTimeout(() => {
|
|
99
99
|
var a, $;
|
|
100
100
|
const t = e;
|
|
101
|
-
t && (
|
|
101
|
+
t && (f.value = ((a = t == null ? void 0 : t.ref) == null ? void 0 : a.offsetWidth) ?? 0, p.value = n.value ? ($ = t == null ? void 0 : t.ref) == null ? void 0 : $.scrollWidth : W());
|
|
102
102
|
}, 200);
|
|
103
103
|
}
|
|
104
104
|
);
|
|
105
|
-
const
|
|
105
|
+
const p = r(0), z = () => {
|
|
106
106
|
C(() => {
|
|
107
107
|
var e, t, a;
|
|
108
|
-
(e = s.value) != null && e.ref && (
|
|
108
|
+
(e = s.value) != null && e.ref && (f.value = (t = s.value) == null ? void 0 : t.ref.offsetWidth, p.value = n.value ? (a = s.value) == null ? void 0 : a.ref.scrollWidth : W(), console.log("inputWidth==", f.value), console.log("textWidth==", p.value), (f.value === p.value || p.value - f.value < 1) && (u.value = !1));
|
|
109
109
|
});
|
|
110
110
|
};
|
|
111
|
-
|
|
111
|
+
h(() => [n.value, v.value], z);
|
|
112
112
|
const E = r(), m = r(), H = () => {
|
|
113
|
-
|
|
113
|
+
z(), f.value === p.value || p.value - f.value < 1 ? u.value = !1 : (u.value = !0, m && clearTimeout(m.value), E && clearTimeout(E.value)), o.errorMode === "overlay" && (L.value = !0);
|
|
114
114
|
}, J = () => {
|
|
115
115
|
m.value = setTimeout(() => {
|
|
116
|
-
|
|
116
|
+
u.value = !1;
|
|
117
117
|
}, 200), E.value = setTimeout(() => {
|
|
118
118
|
L.value = !1;
|
|
119
119
|
}, 200);
|
|
120
|
+
}, I = () => {
|
|
121
|
+
console.log("进入tooltip"), u.value = !0, m.value && clearTimeout(m.value);
|
|
120
122
|
}, M = () => {
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
m.value = setTimeout(() => {
|
|
124
|
-
n.value = !1;
|
|
123
|
+
console.log("离开toolTip"), m.value = setTimeout(() => {
|
|
124
|
+
u.value = !1;
|
|
125
125
|
}, 200);
|
|
126
126
|
};
|
|
127
|
-
return
|
|
127
|
+
return h(
|
|
128
128
|
() => {
|
|
129
129
|
var e;
|
|
130
130
|
return (e = B.value) == null ? void 0 : e.$tooltipRef.popperRef.contentRef;
|
|
131
131
|
},
|
|
132
132
|
(e) => {
|
|
133
|
-
e && (e.addEventListener("mouseenter",
|
|
133
|
+
e && (e.addEventListener("mouseenter", I), e.addEventListener("mouseleave", M));
|
|
134
134
|
}
|
|
135
|
-
),
|
|
136
|
-
() =>
|
|
135
|
+
), h(
|
|
136
|
+
() => u.value,
|
|
137
137
|
(e) => {
|
|
138
138
|
var t;
|
|
139
139
|
if (!e) {
|
|
140
140
|
const a = (t = B.value) == null ? void 0 : t.$tooltipRef.popperRef.contentRef;
|
|
141
|
-
a && (a.removeEventListener("mouseenter",
|
|
141
|
+
a && (a.removeEventListener("mouseenter", I), a.removeEventListener("mouseleave", M));
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
144
|
), g({
|
|
145
145
|
$refInput: s
|
|
146
|
-
}), (e, t) => (
|
|
146
|
+
}), (e, t) => (c(), b(
|
|
147
147
|
"div",
|
|
148
148
|
{
|
|
149
149
|
style: _(N.value),
|
|
150
|
-
class:
|
|
150
|
+
class: R([
|
|
151
151
|
"das-ui-input",
|
|
152
152
|
{ "only-border-bottom": e.borderType === "bottom" },
|
|
153
153
|
{ "das-input-normal-size": e.size === "default" },
|
|
@@ -156,23 +156,23 @@ const de = ["auto", "fit-content", "inherit", "initial", "max-content", "min-con
|
|
|
156
156
|
},
|
|
157
157
|
[
|
|
158
158
|
i(" 这里tooltip不能使用v-model:visible 有响应问题 "),
|
|
159
|
-
|
|
159
|
+
V(S(ie), {
|
|
160
160
|
ref_key: "inputTooltipRef",
|
|
161
161
|
ref: B,
|
|
162
162
|
effect: "light",
|
|
163
163
|
placement: "top",
|
|
164
164
|
manual: !0,
|
|
165
|
-
visible:
|
|
165
|
+
visible: u.value,
|
|
166
166
|
disabled: !O.value,
|
|
167
167
|
content: P.value
|
|
168
168
|
}, {
|
|
169
|
-
default:
|
|
170
|
-
|
|
169
|
+
default: y(() => [
|
|
170
|
+
V(S(ae), ee({
|
|
171
171
|
ref_key: "$refInput",
|
|
172
172
|
ref: s
|
|
173
173
|
}, e.$attrs, {
|
|
174
|
-
modelValue:
|
|
175
|
-
"onUpdate:modelValue": t[0] || (t[0] = (a) =>
|
|
174
|
+
modelValue: n.value,
|
|
175
|
+
"onUpdate:modelValue": t[0] || (t[0] = (a) => n.value = a),
|
|
176
176
|
placeholder: A.value,
|
|
177
177
|
disabled: e.disabled,
|
|
178
178
|
readonly: e.isView,
|
|
@@ -197,7 +197,7 @@ const de = ["auto", "fit-content", "inherit", "initial", "max-content", "min-con
|
|
|
197
197
|
}, [
|
|
198
198
|
e.$slots.prepend ? {
|
|
199
199
|
name: "prepend",
|
|
200
|
-
fn:
|
|
200
|
+
fn: y(() => [
|
|
201
201
|
i(" 输入框前置内容 "),
|
|
202
202
|
x(e.$slots, "prepend", {}, void 0, !0)
|
|
203
203
|
]),
|
|
@@ -205,7 +205,7 @@ const de = ["auto", "fit-content", "inherit", "initial", "max-content", "min-con
|
|
|
205
205
|
} : void 0,
|
|
206
206
|
e.$slots.append ? {
|
|
207
207
|
name: "append",
|
|
208
|
-
fn:
|
|
208
|
+
fn: y(() => [
|
|
209
209
|
i(" 输入框后置内容 "),
|
|
210
210
|
x(e.$slots, "append", {}, void 0, !0)
|
|
211
211
|
]),
|
|
@@ -213,14 +213,14 @@ const de = ["auto", "fit-content", "inherit", "initial", "max-content", "min-con
|
|
|
213
213
|
} : void 0,
|
|
214
214
|
e.$slots.suffix ? {
|
|
215
215
|
name: "suffix",
|
|
216
|
-
fn:
|
|
216
|
+
fn: y(() => [
|
|
217
217
|
x(e.$slots, "suffix", {}, void 0, !0)
|
|
218
218
|
]),
|
|
219
219
|
key: "2"
|
|
220
220
|
} : void 0,
|
|
221
221
|
e.$slots.prefix ? {
|
|
222
222
|
name: "prefix",
|
|
223
|
-
fn:
|
|
223
|
+
fn: y(() => [
|
|
224
224
|
x(e.$slots, "prefix", {}, void 0, !0)
|
|
225
225
|
]),
|
|
226
226
|
key: "3"
|
|
@@ -230,8 +230,8 @@ const de = ["auto", "fit-content", "inherit", "initial", "max-content", "min-con
|
|
|
230
230
|
_: 3
|
|
231
231
|
/* FORWARDED */
|
|
232
232
|
}, 8, ["visible", "disabled", "content"]),
|
|
233
|
-
e.success && e.successLabel ? (
|
|
234
|
-
e.success ? (
|
|
233
|
+
e.success && e.successLabel ? (c(), b("div", ce, [
|
|
234
|
+
e.success ? (c(), b(
|
|
235
235
|
"span",
|
|
236
236
|
ve,
|
|
237
237
|
D(e.successLabel),
|
|
@@ -239,18 +239,18 @@ const de = ["auto", "fit-content", "inherit", "initial", "max-content", "min-con
|
|
|
239
239
|
/* TEXT */
|
|
240
240
|
)) : i("v-if", !0)
|
|
241
241
|
])) : i("v-if", !0),
|
|
242
|
-
e.error && e.errorLabel ? (
|
|
242
|
+
e.error && e.errorLabel ? (c(), b(
|
|
243
243
|
oe,
|
|
244
244
|
{ key: 1 },
|
|
245
245
|
[
|
|
246
|
-
e.errorMode === "default" ? (
|
|
247
|
-
e.error ? (
|
|
246
|
+
e.errorMode === "default" ? (c(), b("div", me, [
|
|
247
|
+
e.error ? (c(), b("span", {
|
|
248
248
|
key: 0,
|
|
249
|
-
class:
|
|
249
|
+
class: R(["das-input-error-label", { "error-label-overflow": e.isErrorTitle }]),
|
|
250
250
|
title: e.isErrorTitle ? e.errorLabel : ""
|
|
251
251
|
}, D(e.errorLabel), 11, be)) : i("v-if", !0)
|
|
252
252
|
])) : i("v-if", !0),
|
|
253
|
-
L.value && e.errorMode === "overlay" ? (
|
|
253
|
+
L.value && e.errorMode === "overlay" ? (c(), le(S(ne), {
|
|
254
254
|
key: 1,
|
|
255
255
|
errorLabel: e.errorLabel,
|
|
256
256
|
getEl: () => s.value.$el,
|
|
@@ -267,10 +267,10 @@ const de = ["auto", "fit-content", "inherit", "initial", "max-content", "min-con
|
|
|
267
267
|
}
|
|
268
268
|
}), ge = (l, g) => {
|
|
269
269
|
const T = l.__vccOpts || l;
|
|
270
|
-
for (const [o,
|
|
271
|
-
T[o] =
|
|
270
|
+
for (const [o, v] of g)
|
|
271
|
+
T[o] = v;
|
|
272
272
|
return T;
|
|
273
|
-
}, Te = /* @__PURE__ */ ge(
|
|
273
|
+
}, Te = /* @__PURE__ */ ge(ye, [["__scopeId", "data-v-d9b9d4c5"]]), xe = {
|
|
274
274
|
"--das-ui-input-default-text-color": "#212121",
|
|
275
275
|
"--das-ui-input-default-placeholder-text-color": "#B2B2B2",
|
|
276
276
|
"--das-ui-input-full-border-color": "#D9D9D9",
|
|
Binary file
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/components/input-number/style.css';
|
|
2
|
-
import { defineComponent as oe, mergeModels as F, useCssVars as re, computed as c, ref as u, useModel as ne, watch as
|
|
2
|
+
import { defineComponent as oe, mergeModels as F, useCssVars as re, computed as c, ref as u, useModel as ne, watch as g, onMounted as le, onBeforeUnmount as ue, createElementBlock as _, openBlock as M, normalizeClass as ae, createCommentVNode as I, createVNode as H, unref as k, withCtx as se, mergeProps as ie, Fragment as ve, createBlock as de, createElementVNode as ce, normalizeStyle as fe, toDisplayString as pe, nextTick as K } from "vue";
|
|
3
3
|
import { withInstall as me } from "@das-fed/utils/with-install/index";
|
|
4
4
|
import { getVarValue as be, setThemeRule as he } from "@das-fed/web/packages/theme/index";
|
|
5
5
|
import { ElInputNumber as Le } from "element-plus";
|
|
@@ -7,13 +7,13 @@ import "element-plus/es/components/input-number/style/css";
|
|
|
7
7
|
import { DasTooltip as ye } from "@das-fed/ui/packages/components/tooltip/index";
|
|
8
8
|
import { DasErrorOverlayModel as Ee } from "@das-fed/ui/packages/components/error-overlay-model/index";
|
|
9
9
|
import { calcTextWidth as Be } from "@das-fed/utils/common-tools";
|
|
10
|
-
const
|
|
10
|
+
const ge = {
|
|
11
11
|
key: 0,
|
|
12
12
|
class: "das-input-number-error-label-content"
|
|
13
|
-
},
|
|
13
|
+
}, Me = {
|
|
14
14
|
inheritAttrs: !1
|
|
15
|
-
},
|
|
16
|
-
...
|
|
15
|
+
}, Ie = /* @__PURE__ */ oe({
|
|
16
|
+
...Me,
|
|
17
17
|
__name: "App",
|
|
18
18
|
props: /* @__PURE__ */ F({
|
|
19
19
|
modelValue: { default: 0 },
|
|
@@ -53,7 +53,7 @@ const Me = {
|
|
|
53
53
|
const e = o.size === "table" ? 12 : 14;
|
|
54
54
|
return Be(E.value, e);
|
|
55
55
|
}, i = u(0), v = u(0);
|
|
56
|
-
|
|
56
|
+
g(
|
|
57
57
|
() => B.value,
|
|
58
58
|
(e) => {
|
|
59
59
|
setTimeout(() => {
|
|
@@ -68,16 +68,16 @@ const Me = {
|
|
|
68
68
|
B.value && (i.value = ((e = B.value) == null ? void 0 : e.offsetWidth) ?? 0, v.value = !n.value && typeof n.value != "number" ? $() : (t = B.value) == null ? void 0 : t.scrollWidth, (i.value === v.value || v.value - i.value < 1) && (s.value = !1));
|
|
69
69
|
});
|
|
70
70
|
};
|
|
71
|
-
|
|
71
|
+
g(() => [n.value, E.value], N), g(
|
|
72
72
|
() => {
|
|
73
73
|
var e;
|
|
74
74
|
return (e = w.value) == null ? void 0 : e.$tooltipRef.popperRef.contentRef;
|
|
75
75
|
},
|
|
76
76
|
(e) => {
|
|
77
77
|
e && (e.addEventListener("mouseenter", function() {
|
|
78
|
-
s.value = !0, d.value && clearTimeout(d.value);
|
|
78
|
+
console.log("进入tooltip"), s.value = !0, d.value && clearTimeout(d.value);
|
|
79
79
|
}), e.addEventListener("mouseleave", function() {
|
|
80
|
-
d.value = setTimeout(() => {
|
|
80
|
+
console.log("离开toolTip"), d.value = setTimeout(() => {
|
|
81
81
|
s.value = !1;
|
|
82
82
|
}, 200);
|
|
83
83
|
}));
|
|
@@ -90,8 +90,8 @@ const Me = {
|
|
|
90
90
|
!e && e !== 0 && (n.value = e), p("input", e);
|
|
91
91
|
}, Q = (e, t) => {
|
|
92
92
|
p("change", e, t);
|
|
93
|
-
},
|
|
94
|
-
|
|
93
|
+
}, T = u(n.value), X = () => {
|
|
94
|
+
T.value !== n.value && (p("change", n.value, T.value), T.value = n.value);
|
|
95
95
|
}, P = () => {
|
|
96
96
|
o.error || r.value.classList.add("input-inner-hover");
|
|
97
97
|
}, D = () => {
|
|
@@ -104,15 +104,15 @@ const Me = {
|
|
|
104
104
|
o.error || r.value.classList.add("increase-btn-hover");
|
|
105
105
|
}, C = () => {
|
|
106
106
|
r.value.classList.contains("increase-btn-hover") && r.value.classList.remove("increase-btn-hover");
|
|
107
|
-
},
|
|
107
|
+
}, S = u(!1), Y = u({
|
|
108
108
|
display: "block",
|
|
109
109
|
color: be("--das-ui-input-error-color").value,
|
|
110
110
|
"white-space": "break-spaces"
|
|
111
111
|
}), d = u(), R = () => {
|
|
112
|
-
N(), i.value === v.value || v.value - i.value < 1 ? s.value = !1 : (s.value = !0, d.value && clearTimeout(d.value)), o.errorMode === "overlay" && (
|
|
112
|
+
N(), i.value === v.value || v.value - i.value < 1 ? s.value = !1 : (s.value = !0, d.value && clearTimeout(d.value)), o.errorMode === "overlay" && (S.value = !0);
|
|
113
113
|
}, A = () => {
|
|
114
114
|
d.value = setTimeout(() => {
|
|
115
|
-
o.errorMode === "overlay" ?
|
|
115
|
+
o.errorMode === "overlay" ? S.value = !1 : s.value = !1;
|
|
116
116
|
}, 200);
|
|
117
117
|
}, ee = () => {
|
|
118
118
|
var e, t;
|
|
@@ -139,7 +139,7 @@ const Me = {
|
|
|
139
139
|
const l = (h = r.value) == null ? void 0 : h.querySelector(".el-input-number__increase");
|
|
140
140
|
l && (l.removeEventListener("mouseenter", W), l.removeEventListener("mouseleave", C));
|
|
141
141
|
};
|
|
142
|
-
return
|
|
142
|
+
return g(
|
|
143
143
|
() => y.value,
|
|
144
144
|
(e) => {
|
|
145
145
|
if (e) {
|
|
@@ -156,7 +156,7 @@ const Me = {
|
|
|
156
156
|
te(), o.controlsPosition !== "right" && x();
|
|
157
157
|
}), V({
|
|
158
158
|
$elInputNumber: a
|
|
159
|
-
}), (e, t) => (
|
|
159
|
+
}), (e, t) => (M(), _(
|
|
160
160
|
"div",
|
|
161
161
|
{
|
|
162
162
|
ref_key: "$inputNumber",
|
|
@@ -171,7 +171,7 @@ const Me = {
|
|
|
171
171
|
])
|
|
172
172
|
},
|
|
173
173
|
[
|
|
174
|
-
|
|
174
|
+
I(" 这里tooltip不能使用v-model:visible 有响应问题 "),
|
|
175
175
|
H(k(ye), {
|
|
176
176
|
ref_key: "inputTooltipRef",
|
|
177
177
|
ref: w,
|
|
@@ -202,11 +202,11 @@ const Me = {
|
|
|
202
202
|
_: 1
|
|
203
203
|
/* STABLE */
|
|
204
204
|
}, 8, ["visible", "disabled", "content"]),
|
|
205
|
-
e.error && e.errorLabel ? (
|
|
205
|
+
e.error && e.errorLabel ? (M(), _(
|
|
206
206
|
ve,
|
|
207
207
|
{ key: 0 },
|
|
208
208
|
[
|
|
209
|
-
e.errorMode === "default" ? (
|
|
209
|
+
e.errorMode === "default" ? (M(), _("div", ge, [
|
|
210
210
|
ce(
|
|
211
211
|
"span",
|
|
212
212
|
{
|
|
@@ -216,8 +216,8 @@ const Me = {
|
|
|
216
216
|
5
|
|
217
217
|
/* TEXT, STYLE */
|
|
218
218
|
)
|
|
219
|
-
])) :
|
|
220
|
-
e.errorMode === "overlay" &&
|
|
219
|
+
])) : I("v-if", !0),
|
|
220
|
+
e.errorMode === "overlay" && S.value ? (M(), de(k(Ee), {
|
|
221
221
|
key: 1,
|
|
222
222
|
errorLabel: e.errorLabel,
|
|
223
223
|
getEl: () => {
|
|
@@ -225,11 +225,11 @@ const Me = {
|
|
|
225
225
|
return (l = a.value) == null ? void 0 : l.$el;
|
|
226
226
|
},
|
|
227
227
|
errorModelZIndex: e.errorModelZIndex
|
|
228
|
-
}, null, 8, ["errorLabel", "getEl", "errorModelZIndex"])) :
|
|
228
|
+
}, null, 8, ["errorLabel", "getEl", "errorModelZIndex"])) : I("v-if", !0)
|
|
229
229
|
],
|
|
230
230
|
64
|
|
231
231
|
/* STABLE_FRAGMENT */
|
|
232
|
-
)) :
|
|
232
|
+
)) : I("v-if", !0)
|
|
233
233
|
],
|
|
234
234
|
2
|
|
235
235
|
/* CLASS */
|
|
@@ -240,7 +240,7 @@ const Me = {
|
|
|
240
240
|
for (const [o, p] of V)
|
|
241
241
|
L[o] = p;
|
|
242
242
|
return L;
|
|
243
|
-
},
|
|
243
|
+
}, Te = /* @__PURE__ */ Ve(Ie, [["__scopeId", "data-v-97241aec"]]), Se = {
|
|
244
244
|
"--das-ui-input-number-border-view-color": "#E5E5E5",
|
|
245
245
|
"--das-ui-input-number-color": "#212121",
|
|
246
246
|
"--das-ui-input-number-border-color": "#D9D9D9",
|
|
@@ -251,8 +251,8 @@ const Me = {
|
|
|
251
251
|
"--das-ui-input-number-overlay-error-color": "#FB2323",
|
|
252
252
|
"--das-ui-input-number-default-placeholder-color": "#B2B2B2"
|
|
253
253
|
};
|
|
254
|
-
he(
|
|
255
|
-
const qe = me(
|
|
254
|
+
he(Se);
|
|
255
|
+
const qe = me(Te), We = () => u(null), Ce = { name: "input-number 步进器" };
|
|
256
256
|
export {
|
|
257
257
|
qe as DasInputNumber,
|
|
258
258
|
We as DasInputNumberRef,
|
|
Binary file
|