@das-fed/upf-ui 6.4.0-dev.208 → 6.4.0-dev.210
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/front-end/i18n/front-end-page/dasui_en-US.js +6 -6
- package/front-end/i18n/front-end-page/dasui_zh-CN.js +6 -6
- package/front-end/i18n/front-end-page/dasui_zh-MO.js +6 -6
- package/package.json +5 -5
- package/packages/business-components/ai-panel/index-B4pMosXu.js +143 -0
- package/packages/business-components/ai-panel/index-B4pMosXu.js.gz +0 -0
- package/packages/business-components/ai-panel/{index-BybM3Q9u.js → index-BgyMyjJo.js} +711 -700
- package/packages/business-components/ai-panel/index-BgyMyjJo.js.gz +0 -0
- package/packages/business-components/ai-panel/{index-CwdJKHy0.js → index-Bw7rNZmA.js} +9 -9
- package/packages/business-components/ai-panel/index-Bw7rNZmA.js.gz +0 -0
- package/packages/business-components/ai-panel/index.js +1 -1
- package/packages/business-components/device-panel/index.js +8873 -8773
- 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 +50 -50
- package/packages/business-components/process-configuration/index.js.gz +0 -0
- package/packages/business-components/process-form/index.js +149 -149
- package/packages/business-components/process-form/index.js.gz +0 -0
- package/packages/business-components/process-search-form/index.js +60 -60
- package/packages/business-components/process-search-form/index.js.gz +0 -0
- package/packages/business-components/process-table/index.js +130 -128
- package/packages/business-components/process-table/index.js.gz +0 -0
- package/packages/business-components/urgent-panel/index.js +904 -896
- package/packages/business-components/urgent-panel/index.js.gz +0 -0
- package/packages/business-components/user-org-dialog/index.js +249 -246
- package/packages/business-components/user-org-dialog/index.js.gz +0 -0
- package/packages/business-components/video-dialog/index.js +1 -0
- 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 +104 -104
- package/packages/components/calendar/index.js.gz +0 -0
- package/packages/components/cascader/index.js +27 -27
- package/packages/components/cascader/index.js.gz +0 -0
- package/packages/components/checkbox/index.js +54 -54
- package/packages/components/checkbox/index.js.gz +0 -0
- package/packages/components/date-picker/index.js +459 -459
- package/packages/components/date-picker/index.js.gz +0 -0
- package/packages/components/dimple-layout/index.js +63 -61
- package/packages/components/dimple-layout/index.js.gz +0 -0
- package/packages/components/dropdown/index.js +23 -22
- package/packages/components/dropdown/index.js.gz +0 -0
- package/packages/components/edit-table/index.js +224 -223
- package/packages/components/edit-table/index.js.gz +0 -0
- package/packages/components/error-overlay-model/index.js +44 -42
- package/packages/components/error-overlay-model/index.js.gz +0 -0
- package/packages/components/form-item/index.js +67 -63
- package/packages/components/form-item/index.js.gz +0 -0
- package/packages/components/image-viewer/index.js +32 -32
- package/packages/components/image-viewer/index.js.gz +0 -0
- package/packages/components/input/index.d.ts +4264 -0
- package/packages/components/input/index.js +51 -51
- package/packages/components/input/index.js.gz +0 -0
- package/packages/components/input/src/index.vue.d.ts +1432 -0
- package/packages/components/input-number/index.js +44 -44
- package/packages/components/input-number/index.js.gz +0 -0
- package/packages/components/live-player/index.js +834 -832
- package/packages/components/live-player/index.js.gz +0 -0
- package/packages/components/map/index.js +437 -431
- 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/radio-tabs/index.js +33 -33
- package/packages/components/radio-tabs/index.js.gz +0 -0
- package/packages/components/rich-editor/index.js +4586 -4556
- 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 +2 -2
- package/packages/components/search/index.js.gz +0 -0
- package/packages/components/select/index.js +88 -88
- package/packages/components/select/index.js.gz +0 -0
- package/packages/components/select-list/index.js +10 -6
- 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 +35 -35
- package/packages/components/spin/index.js.gz +0 -0
- package/packages/components/split-panel/index.js +102 -101
- package/packages/components/split-panel/index.js.gz +0 -0
- package/packages/components/table/index.js +604 -599
- 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/index.js +182 -173
- package/packages/components/tree/index.js.gz +0 -0
- package/packages/components/tree-select/index.js +110 -110
- 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 +1240 -1208
- package/packages/components/tree-v2/index.js.gz +0 -0
- package/packages/components/virtual-tree/src/App.vue.d.ts +3974 -0
- package/packages/components/virtual-tree/src/type.d.ts +43 -0
- package/packages/business-components/ai-panel/index-BybM3Q9u.js.gz +0 -0
- package/packages/business-components/ai-panel/index-CgWRv2Ge.js +0 -142
- package/packages/business-components/ai-panel/index-CgWRv2Ge.js.gz +0 -0
- package/packages/business-components/ai-panel/index-CwdJKHy0.js.gz +0 -0
|
Binary file
|
|
@@ -71,9 +71,9 @@ const J = {
|
|
|
71
71
|
},
|
|
72
72
|
(e) => {
|
|
73
73
|
e && (e.addEventListener("mouseenter", function() {
|
|
74
|
-
u.value = !0, i.value && clearTimeout(i.value);
|
|
74
|
+
console.log("进入tooltip"), u.value = !0, i.value && clearTimeout(i.value);
|
|
75
75
|
}), e.addEventListener("mouseleave", function() {
|
|
76
|
-
i.value = setTimeout(() => {
|
|
76
|
+
console.log("离开toolTip"), i.value = setTimeout(() => {
|
|
77
77
|
u.value = !1;
|
|
78
78
|
}, 200);
|
|
79
79
|
}));
|
|
Binary file
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import '@das-fed/upf-ui/packages/components/select/style.css';
|
|
2
2
|
import { withInstall as $e } from "@das-fed/upf-utils/with-install/index";
|
|
3
|
-
import { defineComponent as Be, useCssVars as dl, useAttrs as cl, computed as i, ref as n, watch as G, useSlots as fl, onMounted as ce, onUnmounted as _e, watchEffect as fe, nextTick as T, resolveComponent as vl, openBlock as f, createElementBlock as
|
|
4
|
-
import { Select as
|
|
3
|
+
import { defineComponent as Be, useCssVars as dl, useAttrs as cl, computed as i, ref as n, watch as G, useSlots as fl, onMounted as ce, onUnmounted as _e, watchEffect as fe, nextTick as T, resolveComponent as vl, openBlock as f, createElementBlock as g, normalizeClass as pl, normalizeStyle as H, withModifiers as J, createBlock as P, unref as r, createCommentVNode as Z, withDirectives as ve, mergeProps as he, isRef as ml, createSlots as hl, withCtx as p, renderSlot as y, normalizeProps as Q, guardReactiveProps as Y, Fragment as Le, createTextVNode as pe, toDisplayString as E, createVNode as x, createElementVNode as h, withKeys as bl } from "vue";
|
|
4
|
+
import { Select as gl, Tag as me } from "ant-design-vue";
|
|
5
5
|
import { DasCheckbox as Me } from "@das-fed/upf-ui/packages/components/checkbox/index";
|
|
6
|
-
import { vScrollbar as
|
|
6
|
+
import { vScrollbar as yl } from "@das-fed/upf-ui/packages/components/scrollbar/index";
|
|
7
7
|
import { DasTooltip as wl } from "@das-fed/upf-ui/packages/components/tooltip/index";
|
|
8
8
|
import { vDasTooltip as Ne } from "@das-fed/upf-ui/packages/components/text-tooltip/index";
|
|
9
9
|
import { DasInput as Cl } from "@das-fed/upf-ui/packages/components/input/index";
|
|
@@ -82,32 +82,32 @@ const $l = { key: 0 }, Bl = {
|
|
|
82
82
|
}), s = Ml(l, "modelValue"), ee = i(() => {
|
|
83
83
|
var e;
|
|
84
84
|
return `<span class='key'>${((e = s.value) == null ? void 0 : e.length) ?? 0}</span>`;
|
|
85
|
-
}), A = n(null),
|
|
85
|
+
}), A = n(null), ge = n(null), b = n(!1), K = i(() => l.isView ? l.noSetDefaultVal ? "" : "-" : l.placeholder || W("请选择")), le = i(() => A.value ? A.value.querySelector(".ant-select-selector") : null), $ = n(0), B = n(0), Oe = i(() => le.value ? l.isTooltip && I.value ? !1 : !l.isTooltip || z.value || !ze.value || !se.value : !0), Ee = i(() => (Array.isArray(s.value) ? s.value.length : s.value) ? ze.value : K.value), ye = () => {
|
|
86
86
|
const e = l.size === "table" ? 12 : 14;
|
|
87
87
|
return Nl(K.value, e);
|
|
88
88
|
}, we = () => {
|
|
89
89
|
var L, q, c;
|
|
90
90
|
const e = (L = A.value) == null ? void 0 : L.querySelector(".ant-select-selection-placeholder"), t = (c = (q = C.value) == null ? void 0 : q.$el) == null ? void 0 : c.querySelectorAll(".ant-select-selection-item");
|
|
91
91
|
t && t.length && t.forEach((de) => de.removeAttribute("title"));
|
|
92
|
-
let
|
|
93
|
-
if (
|
|
94
|
-
const
|
|
95
|
-
return
|
|
92
|
+
let o = (e == null ? void 0 : e.offsetWidth) ?? 0;
|
|
93
|
+
if (o === 0) return o;
|
|
94
|
+
const a = window.getComputedStyle(e, null), m = parseFloat(a.paddingRight), v = parseFloat(a.paddingLeft);
|
|
95
|
+
return o - m - v;
|
|
96
96
|
}, I = n(!1);
|
|
97
97
|
G(() => [K.value, s.value], () => {
|
|
98
98
|
T(() => {
|
|
99
|
-
B.value = we(), $.value =
|
|
99
|
+
B.value = we(), $.value = ye(), ((Array.isArray(s.value) ? s.value.length : s.value) || B.value === $.value || $.value - B.value < 1) && (I.value = !1);
|
|
100
100
|
});
|
|
101
101
|
}), G(
|
|
102
102
|
() => {
|
|
103
103
|
var e;
|
|
104
|
-
return (e =
|
|
104
|
+
return (e = ge.value) == null ? void 0 : e.$tooltipRef.popperRef.contentRef;
|
|
105
105
|
},
|
|
106
106
|
(e) => {
|
|
107
107
|
e && (e.addEventListener("mouseenter", function() {
|
|
108
|
-
I.value = !0, O.value && clearTimeout(O.value);
|
|
108
|
+
console.log("进入tooltip"), I.value = !0, O.value && clearTimeout(O.value);
|
|
109
109
|
}), e.addEventListener("mouseleave", function() {
|
|
110
|
-
O.value = setTimeout(() => {
|
|
110
|
+
console.log("离开toolTip"), O.value = setTimeout(() => {
|
|
111
111
|
I.value = !1;
|
|
112
112
|
}, 200);
|
|
113
113
|
}));
|
|
@@ -140,9 +140,9 @@ const $l = { key: 0 }, Bl = {
|
|
|
140
140
|
var t;
|
|
141
141
|
let e = (t = C.value) == null ? void 0 : t.$el.querySelectorAll(".ant-select-selection-item");
|
|
142
142
|
if (e && e.length > 0)
|
|
143
|
-
for (let
|
|
144
|
-
let
|
|
145
|
-
|
|
143
|
+
for (let o = 0; o < e.length; o++) {
|
|
144
|
+
let a = e[o];
|
|
145
|
+
a.scrollWidth <= a.offsetWidth && (se.value = !1), a.title = "";
|
|
146
146
|
}
|
|
147
147
|
}, 300));
|
|
148
148
|
}), fe(() => {
|
|
@@ -154,7 +154,7 @@ const $l = { key: 0 }, Bl = {
|
|
|
154
154
|
}, 100);
|
|
155
155
|
};
|
|
156
156
|
fe(() => {
|
|
157
|
-
ne.value === !0 && l.mode != "combobox" && s.value && s.value.length > 0 && l.options.length > 0 && (ne.value = !1, qe());
|
|
157
|
+
ne.value === !0 && l.mode != "combobox" && s.value && s.value.length > 0 && l.options.length > 0 && (console.log("watchEffect", s.value), ne.value = !1, qe());
|
|
158
158
|
}), ce(() => {
|
|
159
159
|
ne.value = !0, l.focusOpen || (d.value = 1, u.value = d.value, b.value = !0);
|
|
160
160
|
});
|
|
@@ -164,26 +164,26 @@ const $l = { key: 0 }, Bl = {
|
|
|
164
164
|
var t;
|
|
165
165
|
let e = [];
|
|
166
166
|
if (l.mode != "combobox" && Array.isArray(s.value))
|
|
167
|
-
s.value.map((
|
|
167
|
+
s.value.map((o) => {
|
|
168
168
|
var m;
|
|
169
|
-
let
|
|
170
|
-
|
|
169
|
+
let a = (m = l.options) == null ? void 0 : m.find((v) => v[V.value] == o);
|
|
170
|
+
a && e.push(a[U.value]);
|
|
171
171
|
});
|
|
172
172
|
else if (l.mode == "combobox" && s.value) {
|
|
173
|
-
let
|
|
174
|
-
|
|
173
|
+
let o = (t = l.options) == null ? void 0 : t.find((a) => a[V.value] == s.value);
|
|
174
|
+
o && e.push(o[U.value]);
|
|
175
175
|
}
|
|
176
176
|
return Vl.value === "zh-CN" ? e.join("、") : e.join(", ");
|
|
177
177
|
}), Ue = i(() => {
|
|
178
178
|
var t;
|
|
179
179
|
if (l.mode === "combobox") return !1;
|
|
180
|
-
let e = l.options.filter((
|
|
180
|
+
let e = l.options.filter((o) => !o.disabled);
|
|
181
181
|
return !!(Array.isArray(s.value) && ((t = s.value) == null ? void 0 : t.length) == e.length);
|
|
182
182
|
}), je = i(() => {
|
|
183
|
-
var t,
|
|
183
|
+
var t, o;
|
|
184
184
|
if (l.mode === "combobox") return !1;
|
|
185
|
-
let e = l.options.filter((
|
|
186
|
-
return !!(Array.isArray(s.value) && ((t = s.value) == null ? void 0 : t.length) > 0 && ((
|
|
185
|
+
let e = l.options.filter((a) => !a.disabled);
|
|
186
|
+
return !!(Array.isArray(s.value) && ((t = s.value) == null ? void 0 : t.length) > 0 && ((o = s.value) == null ? void 0 : o.length) < e.length);
|
|
187
187
|
}), Xe = i(() => {
|
|
188
188
|
var e, t;
|
|
189
189
|
return l.optionFilterProp ? l.optionFilterProp : (e = l.fieldNames) != null && e.label ? (t = l.fieldNames) == null ? void 0 : t.label : "label";
|
|
@@ -200,9 +200,9 @@ const $l = { key: 0 }, Bl = {
|
|
|
200
200
|
color: Sl("--das-ui-select-overlay-error-color").value,
|
|
201
201
|
"white-space": "break-spaces"
|
|
202
202
|
}), O = n(), Qe = () => {
|
|
203
|
-
var
|
|
204
|
-
B.value = we(), $.value =
|
|
205
|
-
let e = (
|
|
203
|
+
var o;
|
|
204
|
+
B.value = we(), $.value = ye();
|
|
205
|
+
let e = (o = C.value) == null ? void 0 : o.$el.querySelectorAll(".ant-select-selection-item");
|
|
206
206
|
!!(Array.isArray(s.value) ? s.value.length : e != null && e.length) || B.value === $.value || $.value - B.value < 1 ? I.value = !1 : (I.value = !0, O.value && clearTimeout(O.value)), re.value = !0;
|
|
207
207
|
}, Ye = () => {
|
|
208
208
|
O.value = setTimeout(() => {
|
|
@@ -212,8 +212,8 @@ const $l = { key: 0 }, Bl = {
|
|
|
212
212
|
e ? Qe() : Ye();
|
|
213
213
|
}, ll = (e) => {
|
|
214
214
|
e && (Se.value = Ll().nextZIndex(), D.value = ""), j.value = e, l.mode == "combobox" && (e || setTimeout(() => {
|
|
215
|
-
var t,
|
|
216
|
-
(
|
|
215
|
+
var t, o;
|
|
216
|
+
(o = (t = C.value) == null ? void 0 : t.blur) == null || o.call(t);
|
|
217
217
|
})), w("dropdownVisibleChange", e);
|
|
218
218
|
}, tl = (e) => {
|
|
219
219
|
let t = e.toString();
|
|
@@ -221,13 +221,13 @@ const $l = { key: 0 }, Bl = {
|
|
|
221
221
|
}, ol = (e) => l.isRenderNode ? A.value : l.getPopupContainer === void 0 ? document.body : l.getPopupContainer(e), al = (e) => {
|
|
222
222
|
if (e) {
|
|
223
223
|
Array.isArray(s.value) || (s.value = []);
|
|
224
|
-
let t = s.value,
|
|
225
|
-
l.options.forEach((
|
|
226
|
-
!s.value.includes(
|
|
227
|
-
}), s.value = t, ie(s.value,
|
|
224
|
+
let t = s.value, o = [];
|
|
225
|
+
l.options.forEach((a) => {
|
|
226
|
+
!s.value.includes(a[V.value]) && !a.disabled && (t.push(a[V.value]), o.push(a));
|
|
227
|
+
}), s.value = t, ie(s.value, o);
|
|
228
228
|
} else {
|
|
229
229
|
let t = s.value;
|
|
230
|
-
s.value = t.filter((
|
|
230
|
+
s.value = t.filter((o) => !!l.options.find((a) => a[V.value] === o).disabled), ie(s.value, []);
|
|
231
231
|
}
|
|
232
232
|
}, sl = (e) => {
|
|
233
233
|
if (e.className.indexOf("ant-select-multiple") > -1 && e.children[0])
|
|
@@ -288,23 +288,23 @@ const $l = { key: 0 }, Bl = {
|
|
|
288
288
|
if (!e) return;
|
|
289
289
|
let t = e == null ? void 0 : e.querySelector(".ant-select-selection-overflow");
|
|
290
290
|
if (!t) return;
|
|
291
|
-
let
|
|
292
|
-
l.borderType === "underline" && (
|
|
291
|
+
let o = t.offsetWidth - 5;
|
|
292
|
+
l.borderType === "underline" && (o -= 10);
|
|
293
293
|
const m = Math.ceil(Ce.value.querySelector(".ant-tag").offsetWidth) + 4;
|
|
294
294
|
let v = e.querySelectorAll(".ant-select-selection-overflow-item");
|
|
295
295
|
if (v.length < 1) return;
|
|
296
296
|
u.value = S;
|
|
297
297
|
let L = 0;
|
|
298
298
|
for (let c = 0; c < v.length - 1 && (v[c].classList.remove("ellipsis"), !v[c].classList.contains("ant-select-selection-overflow-item-rest")); c++)
|
|
299
|
-
if (L += Math.ceil(v[c].offsetWidth), L <=
|
|
300
|
-
c >= s.value.length - 1 && L <
|
|
299
|
+
if (L += Math.ceil(v[c].offsetWidth), L <= o - m)
|
|
300
|
+
c >= s.value.length - 1 && L < o ? d.value = s.value.length : d.value = c + 1;
|
|
301
301
|
else {
|
|
302
|
-
c >= s.value.length - 1 && L <
|
|
302
|
+
c >= s.value.length - 1 && L < o ? d.value = s.value.length : d.value = c;
|
|
303
303
|
break;
|
|
304
304
|
}
|
|
305
305
|
if (d.value === 0) {
|
|
306
306
|
let c = v[0], de = c.querySelector(".anticon-close") ? 86 : 69;
|
|
307
|
-
c && !c.classList.contains("ant-select-selection-overflow-item-rest") && de <=
|
|
307
|
+
c && !c.classList.contains("ant-select-selection-overflow-item-rest") && de <= o - m && !ke.tagRender && (d.value = 1, c.classList.add("ellipsis"));
|
|
308
308
|
}
|
|
309
309
|
}, ue = n(!1);
|
|
310
310
|
G(
|
|
@@ -314,20 +314,20 @@ const $l = { key: 0 }, Bl = {
|
|
|
314
314
|
ue.value = !1;
|
|
315
315
|
return;
|
|
316
316
|
}
|
|
317
|
-
l.mode !== "combobox" && ae.value || (z.value = !0, u.value = S, await T(), await _(), z.value = !1, l.isExterControlCount && l.focusOpen ? (u.value = R.value ? S : d.value, b.value = !R.value) : (u.value = d.value, b.value = !0));
|
|
317
|
+
l.mode !== "combobox" && ae.value || (console.log("-----watch-----", s.value), z.value = !0, u.value = S, await T(), await _(), z.value = !1, l.isExterControlCount && l.focusOpen ? (u.value = R.value ? S : d.value, b.value = !R.value) : (u.value = d.value, b.value = !0));
|
|
318
318
|
}
|
|
319
319
|
);
|
|
320
320
|
const ie = async (e, t) => {
|
|
321
321
|
ue.value = !0, j.value = !1, l.mode === "combobox" && te();
|
|
322
|
-
const
|
|
323
|
-
l.noDropdown && l.maxTagsLength <
|
|
322
|
+
const o = e;
|
|
323
|
+
l.noDropdown && l.maxTagsLength < o.length && o.pop(), z.value = !0, console.log("-----seleceChange-----", o), w("update:model-value", o), w("change", o, t), u.value = S, await T(), await _(), z.value = !1, l.isExterControlCount && l.focusOpen && (u.value = R.value ? S : d.value, b.value = !R.value), l.focusOpen || (u.value = d.value, console.log("selectChange--------", u.value));
|
|
324
324
|
};
|
|
325
325
|
return M({
|
|
326
326
|
$select: C,
|
|
327
327
|
toChangeMaxCount: il
|
|
328
328
|
}), (e, t) => {
|
|
329
|
-
const
|
|
330
|
-
return f(),
|
|
329
|
+
const o = vl("v-nodes");
|
|
330
|
+
return f(), g("div", {
|
|
331
331
|
class: pl(["das-ui-select", [
|
|
332
332
|
l.borderType,
|
|
333
333
|
l.isView ? "readonly" : "",
|
|
@@ -342,16 +342,16 @@ const $l = { key: 0 }, Bl = {
|
|
|
342
342
|
le.value ? (f(), P(r(wl), {
|
|
343
343
|
key: 0,
|
|
344
344
|
ref_key: "inputTooltipRef",
|
|
345
|
-
ref:
|
|
345
|
+
ref: ge,
|
|
346
346
|
placement: "top",
|
|
347
347
|
"virtual-triggering": "",
|
|
348
348
|
"virtual-ref": le.value,
|
|
349
349
|
disabled: Oe.value,
|
|
350
350
|
content: Ee.value
|
|
351
351
|
}, null, 8, ["virtual-ref", "disabled", "content"])) : Z("", !0),
|
|
352
|
-
ve((f(), P(r(
|
|
352
|
+
ve((f(), P(r(gl), he({ mode: e.mode }, De.value, {
|
|
353
353
|
value: r(s),
|
|
354
|
-
"onUpdate:value": t[4] || (t[4] = (
|
|
354
|
+
"onUpdate:value": t[4] || (t[4] = (a) => ml(s) ? s.value = a : null),
|
|
355
355
|
ref_key: "$select",
|
|
356
356
|
ref: C,
|
|
357
357
|
options: Ie.value,
|
|
@@ -373,27 +373,27 @@ const $l = { key: 0 }, Bl = {
|
|
|
373
373
|
onFocus: nl,
|
|
374
374
|
onBlur: Ve
|
|
375
375
|
}), hl({
|
|
376
|
-
option: p((
|
|
377
|
-
|
|
376
|
+
option: p((a) => [
|
|
377
|
+
y(e.$slots, "option", Q(Y(a)), () => {
|
|
378
378
|
var m;
|
|
379
379
|
return [
|
|
380
|
-
|
|
380
|
+
a.children && typeof a.children == "function" ? (f(), P(o, {
|
|
381
381
|
key: 0,
|
|
382
|
-
vnodes:
|
|
383
|
-
}, null, 8, ["vnodes"])) : (f(),
|
|
384
|
-
e.mode === "combobox" ? ve((f(),
|
|
385
|
-
pe(E(
|
|
382
|
+
vnodes: a.children()
|
|
383
|
+
}, null, 8, ["vnodes"])) : (f(), g(Le, { key: 1 }, [
|
|
384
|
+
e.mode === "combobox" ? ve((f(), g("div", $l, [
|
|
385
|
+
pe(E(a[U.value]), 1)
|
|
386
386
|
])), [
|
|
387
387
|
[r(Ne)]
|
|
388
|
-
]) : (f(),
|
|
388
|
+
]) : (f(), g("div", Bl, [
|
|
389
389
|
(f(), P(r(Me), {
|
|
390
390
|
class: "das-select-checkbox",
|
|
391
|
-
modelValue: (m = r(s)) == null ? void 0 : m.includes(
|
|
392
|
-
key:
|
|
393
|
-
disabled:
|
|
391
|
+
modelValue: (m = r(s)) == null ? void 0 : m.includes(a[V.value]),
|
|
392
|
+
key: a[V.value],
|
|
393
|
+
disabled: a.disabled
|
|
394
394
|
}, null, 8, ["modelValue", "disabled"])),
|
|
395
|
-
ve((f(),
|
|
396
|
-
pe(E(
|
|
395
|
+
ve((f(), g("div", Fl, [
|
|
396
|
+
pe(E(a[U.value]), 1)
|
|
397
397
|
])), [
|
|
398
398
|
[r(Ne)]
|
|
399
399
|
])
|
|
@@ -402,35 +402,35 @@ const $l = { key: 0 }, Bl = {
|
|
|
402
402
|
];
|
|
403
403
|
}, !0)
|
|
404
404
|
]),
|
|
405
|
-
tagRender: p((
|
|
406
|
-
|
|
405
|
+
tagRender: p((a) => [
|
|
406
|
+
y(e.$slots, "tagRender", Q(Y(a)), () => [
|
|
407
407
|
x(r(me), {
|
|
408
|
-
closable:
|
|
408
|
+
closable: a.closable,
|
|
409
409
|
style: { "margin-right": "3px", "background-color": "transparent" },
|
|
410
|
-
onClose: (m) => ul(
|
|
410
|
+
onClose: (m) => ul(a)
|
|
411
411
|
}, {
|
|
412
412
|
default: p(() => [
|
|
413
413
|
h("span", {
|
|
414
414
|
class: "tag-span",
|
|
415
415
|
style: H(l.size == "mini" || l.size == "table" ? { fontSize: "12px" } : {})
|
|
416
|
-
}, E(tl(
|
|
416
|
+
}, E(tl(a.label)), 5)
|
|
417
417
|
]),
|
|
418
418
|
_: 2
|
|
419
419
|
}, 1032, ["closable", "onClose"])
|
|
420
420
|
], !0)
|
|
421
421
|
]),
|
|
422
|
-
dropdownRender: p(({ menuNode:
|
|
423
|
-
|
|
422
|
+
dropdownRender: p(({ menuNode: a }) => [
|
|
423
|
+
y(e.$slots, "dropdownRender", Q(Y({ menuNode: a })), () => {
|
|
424
424
|
var m;
|
|
425
425
|
return [
|
|
426
|
-
xe.value === "combobox" ? (f(),
|
|
427
|
-
x(
|
|
428
|
-
])) : xe.value === "custom" ? (f(),
|
|
426
|
+
xe.value === "combobox" ? (f(), g("div", Dl, [
|
|
427
|
+
x(o, { vnodes: a }, null, 8, ["vnodes"])
|
|
428
|
+
])) : xe.value === "custom" ? (f(), g("div", {
|
|
429
429
|
key: 1,
|
|
430
430
|
onClick: t[2] || (t[2] = J(() => {
|
|
431
431
|
}, ["stop"]))
|
|
432
432
|
}, [
|
|
433
|
-
x(
|
|
433
|
+
x(o, { vnodes: a }, null, 8, ["vnodes"]),
|
|
434
434
|
h("div", {
|
|
435
435
|
class: "customDropdown",
|
|
436
436
|
onMousedown: t[1] || (t[1] = (v) => v.preventDefault())
|
|
@@ -451,9 +451,9 @@ const $l = { key: 0 }, Bl = {
|
|
|
451
451
|
onClick: Te
|
|
452
452
|
}, E(r(W)("添加")), 1)
|
|
453
453
|
], 32)
|
|
454
|
-
])) : (f(),
|
|
455
|
-
x(
|
|
456
|
-
(m = l.options) != null && m.length && l.showSelectAll ? (f(),
|
|
454
|
+
])) : (f(), g("div", Ol, [
|
|
455
|
+
x(o, { vnodes: a }, null, 8, ["vnodes"]),
|
|
456
|
+
(m = l.options) != null && m.length && l.showSelectAll ? (f(), g("div", {
|
|
457
457
|
key: 0,
|
|
458
458
|
class: "das-ui-select-dropdown-checkall",
|
|
459
459
|
onMousedown: t[3] || (t[3] = (v) => v.preventDefault())
|
|
@@ -481,12 +481,12 @@ const $l = { key: 0 }, Bl = {
|
|
|
481
481
|
}, !0)
|
|
482
482
|
]),
|
|
483
483
|
clearIcon: p(() => [
|
|
484
|
-
|
|
484
|
+
y(e.$slots, "clearIcon", {}, () => [
|
|
485
485
|
x(r(Tl), { size: "medium" })
|
|
486
486
|
], !0)
|
|
487
487
|
]),
|
|
488
|
-
maxTagPlaceholder: p((
|
|
489
|
-
|
|
488
|
+
maxTagPlaceholder: p((a) => [
|
|
489
|
+
y(e.$slots, "maxTagPlaceholder", Q(Y(a)), () => [
|
|
490
490
|
x(r(me), {
|
|
491
491
|
style: H(l.size == "mini" || l.size == "table" ? { fontSize: "12px" } : {})
|
|
492
492
|
}, {
|
|
@@ -500,12 +500,12 @@ const $l = { key: 0 }, Bl = {
|
|
|
500
500
|
], !0)
|
|
501
501
|
]),
|
|
502
502
|
notFoundContent: p(() => [
|
|
503
|
-
|
|
503
|
+
y(e.$slots, "notFoundContent", {}, () => [
|
|
504
504
|
t[5] || (t[5] = h("div", { class: "hasNoData" }, "暂无数据", -1))
|
|
505
505
|
], !0)
|
|
506
506
|
]),
|
|
507
507
|
suffixIcon: p(() => [
|
|
508
|
-
|
|
508
|
+
y(e.$slots, "suffixIcon", {}, () => [
|
|
509
509
|
x(r(xl), {
|
|
510
510
|
class: "das-suffix-icon",
|
|
511
511
|
size: "medium"
|
|
@@ -513,37 +513,37 @@ const $l = { key: 0 }, Bl = {
|
|
|
513
513
|
], !0)
|
|
514
514
|
]),
|
|
515
515
|
default: p(() => [
|
|
516
|
-
|
|
516
|
+
y(e.$slots, "default", {}, void 0, !0)
|
|
517
517
|
]),
|
|
518
518
|
_: 2
|
|
519
519
|
}, [
|
|
520
520
|
e.$slots.menuItemSelectedIcon ? {
|
|
521
521
|
name: "menuItemSelectedIcon",
|
|
522
522
|
fn: p(() => [
|
|
523
|
-
|
|
523
|
+
y(e.$slots, "menuItemSelectedIcon", {}, void 0, !0)
|
|
524
524
|
]),
|
|
525
525
|
key: "0"
|
|
526
526
|
} : void 0,
|
|
527
527
|
e.$slots.placeholder ? {
|
|
528
528
|
name: "placeholder",
|
|
529
529
|
fn: p(() => [
|
|
530
|
-
|
|
530
|
+
y(e.$slots, "placeholder", {}, void 0, !0)
|
|
531
531
|
]),
|
|
532
532
|
key: "1"
|
|
533
533
|
} : void 0,
|
|
534
534
|
e.$slots.removeIcon ? {
|
|
535
535
|
name: "removeIcon",
|
|
536
536
|
fn: p(() => [
|
|
537
|
-
|
|
537
|
+
y(e.$slots, "removeIcon", {}, void 0, !0)
|
|
538
538
|
]),
|
|
539
539
|
key: "2"
|
|
540
540
|
} : void 0
|
|
541
541
|
]), 1040, ["mode", "value", "options", "fieldNames", "bordered", "disabled", "open", "placeholder", "optionFilterProp", "size", "style", "dropdownClassName", "maxTagCount", "dropdownStyle"])), [
|
|
542
|
-
[r(
|
|
542
|
+
[r(yl), { target: sl, x: !1 }],
|
|
543
543
|
[r(Il), el]
|
|
544
544
|
]),
|
|
545
|
-
e.error && e.errorLabel ? (f(),
|
|
546
|
-
e.errorMode === "default" ? (f(),
|
|
545
|
+
e.error && e.errorLabel ? (f(), g(Le, { key: 1 }, [
|
|
546
|
+
e.errorMode === "default" ? (f(), g("div", Rl, [
|
|
547
547
|
h("span", {
|
|
548
548
|
style: H(Je.value)
|
|
549
549
|
}, E(e.errorLabel), 5)
|
|
Binary file
|
|
@@ -218,10 +218,13 @@ var en = /* @__PURE__ */ function() {
|
|
|
218
218
|
}();
|
|
219
219
|
function ti(t, e, i) {
|
|
220
220
|
var n = e.value;
|
|
221
|
-
if (n
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
221
|
+
if (n)
|
|
222
|
+
if (typeof IntersectionObserver > "u")
|
|
223
|
+
console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");
|
|
224
|
+
else {
|
|
225
|
+
var r = new en(t, n, i);
|
|
226
|
+
t._vue_visibilityState = r;
|
|
227
|
+
}
|
|
225
228
|
}
|
|
226
229
|
function tn(t, e, i) {
|
|
227
230
|
var n = e.value, r = e.oldValue;
|
|
@@ -448,7 +451,7 @@ var Pt = {
|
|
|
448
451
|
}
|
|
449
452
|
},
|
|
450
453
|
created() {
|
|
451
|
-
this.$_startIndex = 0, this.$_endIndex = 0, this.$_views = /* @__PURE__ */ new Map(), this.$_unusedViews = /* @__PURE__ */ new Map(), this.$_scrollDirty = !1, this.$_lastUpdateScrollPosition = 0, this.prerender && (this.$_prerender = !0, this.updateVisibleItems(!1)), this.gridItems && this.itemSize;
|
|
454
|
+
this.$_startIndex = 0, this.$_endIndex = 0, this.$_views = /* @__PURE__ */ new Map(), this.$_unusedViews = /* @__PURE__ */ new Map(), this.$_scrollDirty = !1, this.$_lastUpdateScrollPosition = 0, this.prerender && (this.$_prerender = !0, this.updateVisibleItems(!1)), this.gridItems && !this.itemSize && console.error("[vue-recycle-scroller] You must provide an itemSize when using gridItems");
|
|
452
455
|
},
|
|
453
456
|
mounted() {
|
|
454
457
|
this.applyPageMode(), this.$nextTick(() => {
|
|
@@ -625,6 +628,7 @@ var Pt = {
|
|
|
625
628
|
},
|
|
626
629
|
itemsLimitError() {
|
|
627
630
|
throw setTimeout(() => {
|
|
631
|
+
console.log("It seems the scroller element isn't scrolling, so it tries to render all the items at once.", "Scroller:", this.$el), console.log("Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.");
|
|
628
632
|
}), new Error("Rendered items limit reached");
|
|
629
633
|
},
|
|
630
634
|
sortViews() {
|
|
@@ -2078,7 +2082,7 @@ const Ln = (t, e, i, n) => {
|
|
|
2078
2082
|
});
|
|
2079
2083
|
const a = () => {
|
|
2080
2084
|
const u = i.value;
|
|
2081
|
-
u.style.cursor = "move", o = y.create(u, {
|
|
2085
|
+
u.style.cursor = "move", console.log(t, e, i, n), o = y.create(u, {
|
|
2082
2086
|
draggable: ".selected-item.enable",
|
|
2083
2087
|
//指定样式类的元素才允许拖动
|
|
2084
2088
|
filter: ".selected-item.disableDrag",
|
|
Binary file
|
|
@@ -32,8 +32,8 @@ const G = () => ({ getDateTime: (o) => {
|
|
|
32
32
|
isInNewRange: (p) => {
|
|
33
33
|
if (!a.value.begin || !a.value.end || !d.value) return !1;
|
|
34
34
|
const t = l(g(p)), f = l(d.value);
|
|
35
|
-
let k = l(a.value.begin),
|
|
36
|
-
return s.value === "begin" ? (f > k && (k = f), t <=
|
|
35
|
+
let k = l(a.value.begin), S = l(a.value.end);
|
|
36
|
+
return s.value === "begin" ? (f > k && (k = f), t <= S && t >= k) : (f < S && (S = f), t <= S && t >= k);
|
|
37
37
|
},
|
|
38
38
|
outBeginDate: (p) => {
|
|
39
39
|
if (!a.value.begin) return !1;
|
|
@@ -86,8 +86,10 @@ const G = () => ({ getDateTime: (o) => {
|
|
|
86
86
|
}), g = () => {
|
|
87
87
|
var B, y, D;
|
|
88
88
|
o.value = (B = s.value) == null ? void 0 : B.clientWidth;
|
|
89
|
-
const { top:
|
|
90
|
-
|
|
89
|
+
const { top: C = 0, left: E = 0 } = ((y = s.value) == null ? void 0 : y.getBoundingClientRect()) ?? {};
|
|
90
|
+
console.log(C, E, "=============");
|
|
91
|
+
const R = (D = s.value) == null ? void 0 : D.clientHeight;
|
|
92
|
+
n.value.x = E, n.value.y = C + R;
|
|
91
93
|
};
|
|
92
94
|
return {
|
|
93
95
|
$dasSpecialRangeMonthPicker: s,
|
|
@@ -123,9 +125,9 @@ const G = () => ({ getDateTime: (o) => {
|
|
|
123
125
|
emits: ["update:modelValue", "change", "update:error", "show-popover"],
|
|
124
126
|
setup(u, { emit: s }) {
|
|
125
127
|
const r = u, o = s, n = h(!1), a = q(r, "modelValue"), d = h(["", ""]), l = q(r, "error"), g = h([]), m = h(void 0);
|
|
126
|
-
let
|
|
127
|
-
const
|
|
128
|
-
r.disabled || r.isView || (
|
|
128
|
+
let z = !0;
|
|
129
|
+
const C = h(0), E = V(() => !r.disabled && !r.isView && a.value[0] && a.value[1]), R = (v, c) => {
|
|
130
|
+
r.disabled || r.isView || (z = !1, n.value = !0, m.value = c, C.value = 0, d.value = [a.value[0], a.value[1]], o("show-popover"));
|
|
129
131
|
}, B = () => {
|
|
130
132
|
m.value = void 0;
|
|
131
133
|
const v = D.value;
|
|
@@ -136,11 +138,11 @@ const G = () => ({ getDateTime: (o) => {
|
|
|
136
138
|
isInHoverRange: t,
|
|
137
139
|
isInNewRange: f,
|
|
138
140
|
outBeginDate: k,
|
|
139
|
-
outEndDate:
|
|
141
|
+
outEndDate: S,
|
|
140
142
|
clickData: J,
|
|
141
143
|
mouseEnter: K,
|
|
142
144
|
mouseLeave: F
|
|
143
|
-
} = he(d, m,
|
|
145
|
+
} = he(d, m, C, a, B), {
|
|
144
146
|
$dasSpecialRangeMonthPicker: Q,
|
|
145
147
|
isHoverInInput: _,
|
|
146
148
|
errorModalBaseSyle: U,
|
|
@@ -150,8 +152,8 @@ const G = () => ({ getDateTime: (o) => {
|
|
|
150
152
|
errorModallInputMouseLeave: T
|
|
151
153
|
} = me(r), ee = () => {
|
|
152
154
|
setTimeout(() => {
|
|
153
|
-
if (!
|
|
154
|
-
|
|
155
|
+
if (!z) {
|
|
156
|
+
z = !0;
|
|
155
157
|
return;
|
|
156
158
|
}
|
|
157
159
|
d.value = ["", ""], D.value = { begin: a.value[0], end: a.value[1] }, m.value = void 0, n.value = !1;
|
|
@@ -209,12 +211,12 @@ const G = () => ({ getDateTime: (o) => {
|
|
|
209
211
|
style: { width: "16px" }
|
|
210
212
|
}, [
|
|
211
213
|
$(e(fe), {
|
|
212
|
-
class: x(["icon-date", { "has-data":
|
|
214
|
+
class: x(["icon-date", { "has-data": E.value }]),
|
|
213
215
|
size: "medium",
|
|
214
216
|
"icon-color": e(Y)("--das-ui-color-normal")
|
|
215
217
|
}, null, 8, ["class", "icon-color"]),
|
|
216
218
|
$(e(be), {
|
|
217
|
-
class: x(["icon-delete", { "has-data":
|
|
219
|
+
class: x(["icon-delete", { "has-data": E.value }]),
|
|
218
220
|
size: "medium",
|
|
219
221
|
"icon-color": e(Y)("--das-ui-special-range-picker-close-btn"),
|
|
220
222
|
onClick: ae
|
|
@@ -236,7 +238,7 @@ const G = () => ({ getDateTime: (o) => {
|
|
|
236
238
|
"new-range": e(f)(i),
|
|
237
239
|
"range-start": e(y)(e(D).begin) === e(y)(i),
|
|
238
240
|
"range-end": e(y)(e(D).end) === e(y)(i),
|
|
239
|
-
"out-range": e(k)(i) || e(
|
|
241
|
+
"out-range": e(k)(i) || e(S)(i)
|
|
240
242
|
}]),
|
|
241
243
|
onMouseenter: (re) => e(K)(i),
|
|
242
244
|
onClick: (re) => e(J)(i)
|
|
Binary file
|