@das-fed/ui 7.1.0-dev.17 → 7.1.0-dev.18
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/device-panel/index.js +5569 -5565
- 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/components/search-form/index.js +503 -498
- package/packages/components/search-form/index.js.gz +0 -0
- package/packages/components/search-form/src/Index.vue.d.ts +2 -0
- package/packages/components/search-form/src/type.d.ts +9 -5
- package/packages/components/search-form/style.css +1 -1
- package/packages/components/search-form/style.css.gz +0 -0
- package/packages/components/tree-select/index.js +43 -42
- package/packages/components/tree-select/index.js.gz +0 -0
- package/packages/components/tree-select/src/App.vue.d.ts +1 -0
|
Binary file
|
|
@@ -31,6 +31,8 @@ type __VLS_Slots = {} & {
|
|
|
31
31
|
declare const __VLS_component: import("vue").DefineComponent<DasSearchFormProp, {
|
|
32
32
|
/**treeSelect 调用懒加载树刷新 */
|
|
33
33
|
treeSelectResetLazyLoad: (key: string) => void;
|
|
34
|
+
getTreeSelectRefByKey: (key: string) => any;
|
|
35
|
+
optionsHandle: () => void;
|
|
34
36
|
closeSearch: (data: SearchFormProp | any[]) => Promise<void>;
|
|
35
37
|
resetSearch: (isTriggerEvent?: boolean) => Promise<void>;
|
|
36
38
|
getCollapseStatus: () => any;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Ref } from 'vue'
|
|
1
2
|
type DateType = 'date' | 'dateTime' | 'week' | 'month' | 'quarter' | 'year' | 'time'
|
|
2
3
|
type DateRangeType = 'dateRange' | 'dateTimeRange' | 'weekRange' | 'monthRange' | 'yearRange' | 'timeRange'
|
|
3
4
|
type FormType =
|
|
@@ -34,11 +35,11 @@ interface Props {
|
|
|
34
35
|
|
|
35
36
|
options?: SearchFormItemProp[]
|
|
36
37
|
|
|
37
|
-
|
|
38
|
-
|
|
38
|
+
|
|
39
|
+
isExpandAtFocus?: boolean
|
|
39
40
|
|
|
40
|
-
|
|
41
|
-
|
|
41
|
+
|
|
42
|
+
isExpandFilter?: boolean
|
|
42
43
|
}
|
|
43
44
|
|
|
44
45
|
interface SearchFormItemProp {
|
|
@@ -97,7 +98,7 @@ interface SearchFormItemProp {
|
|
|
97
98
|
marginRight?: string
|
|
98
99
|
|
|
99
100
|
|
|
100
|
-
labelWidth?:string
|
|
101
|
+
labelWidth?: string
|
|
101
102
|
|
|
102
103
|
[idx: string]: any
|
|
103
104
|
}
|
|
@@ -107,6 +108,9 @@ export type Exposes = {
|
|
|
107
108
|
treeSelectResetLazyLoad: (key: any) => void
|
|
108
109
|
|
|
109
110
|
|
|
111
|
+
getTreeSelectRefByKey: (key: any) => Ref<HTMLElement | null>
|
|
112
|
+
|
|
113
|
+
|
|
110
114
|
closeSearch: (data: SearchFormProp | any[]) => void
|
|
111
115
|
|
|
112
116
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.das-input-select-search-container[data-v-72fa1cba]{display:flex;align-items:center}.das-input-select-search-container .label[data-v-72fa1cba]{color:var(--das-ui-search-form-filter-font-color);margin-right:8px;font-size:var(--das-ui-font-size-sm);text-align:right;max-width:84px;text-overflow:ellipsis;overflow:hidden;display:flex;align-items:center;white-space:nowrap;justify-content:flex-end}.das-input-select-search-container-en .label[data-v-72fa1cba]{max-width:170px!important;width:170px!important}[data-v-b9b880e5] .das-ui-date-range-picker{margin-left:16px}[data-v-b9b880e5] .das-ui-date-range-picker .ant-picker{height:24px}[data-v-b9b880e5] .das-ui-select .ant-select-selection-item{text-align:right}.das-select-date-select-container{width:120px}.optional-select-item{margin-right:8px}.optional-select-item .ant-select-selection-item{text-align:left!important}.das-select-date-range{display:flex;align-items:center}.das-select-date-range .label{color:var(--das-ui-search-form-filter-font-color);margin-right:8px;font-size:var(--das-ui-font-size-sm);max-width:84px;text-overflow:ellipsis;overflow:hidden;display:flex;align-items:center;white-space:nowrap;justify-content:flex-end}.das-select-date-range .das-ui-date-range-picker{margin-left:0!important}.das-select-date-range .das-ui-select{margin-right:12px}.das-select-date-range-en-filter .label{max-width:170px!important;width:170px!important}.das-select-date-range-en-nonefilter .label{max-width:90px!important;width:90px!important}.das-ui-search-form[data-v-
|
|
1
|
+
.das-input-select-search-container[data-v-72fa1cba]{display:flex;align-items:center}.das-input-select-search-container .label[data-v-72fa1cba]{color:var(--das-ui-search-form-filter-font-color);margin-right:8px;font-size:var(--das-ui-font-size-sm);text-align:right;max-width:84px;text-overflow:ellipsis;overflow:hidden;display:flex;align-items:center;white-space:nowrap;justify-content:flex-end}.das-input-select-search-container-en .label[data-v-72fa1cba]{max-width:170px!important;width:170px!important}[data-v-b9b880e5] .das-ui-date-range-picker{margin-left:16px}[data-v-b9b880e5] .das-ui-date-range-picker .ant-picker{height:24px}[data-v-b9b880e5] .das-ui-select .ant-select-selection-item{text-align:right}.das-select-date-select-container{width:120px}.optional-select-item{margin-right:8px}.optional-select-item .ant-select-selection-item{text-align:left!important}.das-select-date-range{display:flex;align-items:center}.das-select-date-range .label{color:var(--das-ui-search-form-filter-font-color);margin-right:8px;font-size:var(--das-ui-font-size-sm);max-width:84px;text-overflow:ellipsis;overflow:hidden;display:flex;align-items:center;white-space:nowrap;justify-content:flex-end}.das-select-date-range .das-ui-date-range-picker{margin-left:0!important}.das-select-date-range .das-ui-select{margin-right:12px}.das-select-date-range-en-filter .label{max-width:170px!important;width:170px!important}.das-select-date-range-en-nonefilter .label{max-width:90px!important;width:90px!important}.das-ui-search-form[data-v-609bb1d7]{width:100%;box-sizing:border-box}.das-ui-search-form.expand-hasbtn-padding[data-v-609bb1d7]{padding-bottom:10px}.das-ui-search-form.packup-hasbtn-padding[data-v-609bb1d7]{padding-bottom:14px}.das-ui-search-form.packup-nobtn-padding[data-v-609bb1d7]{padding-bottom:2px}.das-ui-search-form.nofilter-hasbtn-padding[data-v-609bb1d7]{padding-bottom:14px}.das-ui-search-form.expand-nobtn-padding[data-v-609bb1d7]{padding-bottom:0}.das-ui-search-form .search-content[data-v-609bb1d7]{width:100%;display:flex;justify-content:space-between;padding-top:8px;box-sizing:border-box;align-items:flex-end}.das-ui-search-form .search-form-left[data-v-609bb1d7]{display:flex;flex:1;align-items:flex-end!important}.das-ui-search-form .search-form-left.align-center[data-v-609bb1d7]{align-items:center}.das-ui-search-form .search-form-left .search-title[data-v-609bb1d7]{font-size:var(--das-ui-font-size-lg);color:var(--das-ui-search-form-font-color);line-height:26px;font-weight:600;margin-right:16px}.das-ui-search-form .search-form-left .search-selected-content[data-v-609bb1d7]{display:flex;flex:1;align-items:flex-end}.das-ui-search-form .search-form-left .search-selected-content .label[data-v-609bb1d7]{min-width:60px;font-size:var(--das-ui-font-size-sm);color:var(--das-ui-search-form-tip-color);line-height:24px}.das-ui-search-form .search-form-right[data-v-609bb1d7]{display:flex}.das-ui-search-form .search-form-right.filter-panel-left[data-v-609bb1d7]{margin-left:80px}.das-ui-search-form .search-form-right .margin-filter[data-v-609bb1d7]{margin-right:132px}.das-ui-search-form .search-form-right .filter-handle-status[data-v-609bb1d7]{display:flex;align-items:center;color:var(--das-ui-search-form-primary-color);cursor:pointer}.das-ui-search-form .search-form-right .filter-handle-status .status[data-v-609bb1d7]{margin-right:5px;font-size:var(--das-ui-font-size-sm)}.das-ui-search-form .search-form-right .filter-handle-status .arrowTransform[data-v-609bb1d7]{transition:.2s;transform-origin:center;transform:rotate(180deg)}.das-ui-search-form .search-form-right .filter-handle-status .arrowTransformReturn[data-v-609bb1d7]{transition:.2s;transform-origin:center;transform:rotate(0)}.das-ui-search-form .filter-content[data-v-609bb1d7]{width:100%;height:auto;background-color:var(--das-ui-search-form-filter-bgcolor);padding:0 12px;box-sizing:border-box;border:1px solid var(--das-ui-search-form-filter-border-color);border-radius:2px;margin-top:12px}.das-ui-search-form .filter-content.horizontal-filter-content[data-v-609bb1d7]{max-height:200px;padding:0 40px!important}.das-ui-search-form .filter-content.horizontal-filter-content .filter-scroll-content[data-v-609bb1d7]{width:100%;height:100%}.das-ui-search-form .filter-content.horizontal-filter-content[data-v-609bb1d7] .das-ui-form-item-label{max-width:84px}.das-ui-search-form .filter-content.horizontal-filter-content[data-v-609bb1d7] .das-ui-form-item-label .label{max-width:84px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.das-ui-search-form .filter-content .filter-item[data-v-609bb1d7]{flex:0 0 calc(var(--209c1c8c) - 30px)!important}.das-ui-search-form .filter-content .filter-item.das-select-date-range[data-v-609bb1d7]{margin-right:var(--2b59870e)}.filter-line[data-v-609bb1d7]{width:100%;height:16px;background-color:transparent}.das-ui-search-form .treeSelect-item{align-items:flex-start!important}.das-ui-search-form .treeSelect-item .das-ui-form-item-label{margin-top:2px}.das-ui-search-form .align-left-filter-content .das-ui-form{flex-direction:row!important;min-height:32px;align-items:flex-end!important;align-content:flex-end!important}.das-ui-search-form .align-left-filter-content .das-ui-form .das-ui-form-item{margin-bottom:0!important;margin-right:20px!important}.das-ui-search-form .align-left-filter-content .das-ui-form .das-ui-form-item .das-ui-form-item-label{color:var(--das-ui-search-form-filter-font-color)}.das-ui-search-form .search-selected-content .tag-content .el-tag__content{display:flex!important}.das-ui-search-form .search-selected-content .tag-content .das-ui-tag{margin-left:5px;background-color:#fff}.das-ui-search-form .search-selected-content .tag-content .das-ui-tag .el-tag{height:24px!important}.das-ui-search-form .search-selected-content .tag-content .das-ui-tag .el-tag .el-tag__close{color:var(--das-ui-search-form-filter-font-color)}.das-ui-search-form .out-filter-content{margin-right:58px}.das-ui-search-form .out-filter-content.no-fileter-panel{margin-right:0}.das-ui-search-form .out-filter-content .das-ui-form{flex-direction:row!important}.das-ui-search-form .out-filter-content .das-ui-form .das-ui-form-item{margin-bottom:0!important;margin-right:10px!important}.das-ui-search-form .out-filter-content .das-ui-form .das-ui-form-item .das-ui-form-item-label{margin-right:10px!important}.das-ui-search-form .filter-content .das-ui-form-item{height:40px;margin-bottom:0!important;border-bottom:1px solid var(--das-ui-search-form-filter-border-color)}.das-ui-search-form .filter-content .das-ui-form-item:last-of-type{border-bottom:0}.das-ui-search-form .filter-content .das-ui-form-item .das-ui-form-item-label{margin-right:24px!important}.das-ui-search-form .filter-content .das-ui-form-item .das-ui-form-item-label .label{color:var(--das-ui-search-form-filter-font-color)}.das-ui-search-form .filter-content .das-ui-form-item.child-form-item{width:auto!important}.das-ui-search-form .filter-content .das-ui-form-item.child-form-item .das-ui-form-item-label{display:none}.das-ui-search-form .filter-content.horizontal-filter-content .das-ui-form .das-select-date-range.filter-item,.das-ui-search-form .filter-content.horizontal-filter-content .das-ui-form .das-input-select-search-container.filter-input-select-item{margin-top:16px!important}.das-ui-search-form .filter-content.horizontal-filter-content .das-ui-form .das-input-select-search-container.filter-input-select-item{margin-right:var(--2b59870e)}.das-ui-search-form .filter-content.horizontal-filter-content .das-ui-form .das-input-select-search-container.filter-input-select-item .filter-input-select-item{margin-right:0!important}.das-ui-search-form .filter-content.horizontal-filter-content .das-ui-form .das-ui-form-item{height:auto;border:none;margin-right:var(--2b59870e);margin-top:16px!important}.das-ui-search-form .filter-content.horizontal-filter-content .das-ui-form .das-ui-form-item .das-ui-form-item-label{margin-right:8px!important}.das-ui-search-form.das-ui-search-form-en-filter .das-ui-form-item-label,.das-ui-search-form.das-ui-search-form-en-filter .das-ui-form-item-label .label{max-width:170px!important;width:170px!important}.das-ui-search-form.das-ui-search-form-en-filter .align-left-filter-content .das-ui-form-item-label{width:auto!important}.das-ui-search-form.das-ui-search-form-en-filter .das-ui-form-item-label{max-width:170px!important;width:170px!important}.das-ui-search-form.das-ui-search-form-en-filter .das-ui-form-item-label .label{max-width:170px!important}.das-ui-search-form.das-ui-search-form-en-nonefilter .align-left-filter-content .das-ui-form-item-label{width:auto!important}.das-ui-search-form.das-ui-search-form-en-nonefilter .das-ui-form-item-label{max-width:120px!important;width:120px!important}.das-ui-search-form.das-ui-search-form-en-nonefilter .das-ui-form-item-label .label{max-width:120px!important}
|
|
Binary file
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/components/tree-select/style.css';
|
|
2
|
-
import { ref as L, computed as b, watch as ve, nextTick as
|
|
2
|
+
import { ref as L, computed as b, watch as ve, nextTick as X, unref as o, onMounted as De, onBeforeUnmount as xe, defineComponent as Le, useAttrs as Ne, withDirectives as pe, createElementBlock as se, openBlock as ue, normalizeStyle as he, normalizeClass as Pe, createCommentVNode as Oe, createVNode as J, withCtx as R, createElementVNode as Ve, withModifiers as de, mergeProps as me, isRef as ce, createSlots as Re, renderSlot as G, createTextVNode as Me, toDisplayString as Be } from "vue";
|
|
3
3
|
import { withInstall as Ee } from "@das-fed/utils/with-install/index";
|
|
4
4
|
import { ElPopover as We } from "element-plus";
|
|
5
5
|
import "element-plus/es/components/popover/style/css";
|
|
@@ -12,7 +12,7 @@ import { SizeWatcher as _e } from "@das-fed/utils/size-watcher";
|
|
|
12
12
|
import { flatTree as qe } from "@das-fed/utils/common-tools";
|
|
13
13
|
import { vClickOutside as Xe } from "@das-fed/utils/directive";
|
|
14
14
|
import { setThemeRule as Je } from "@das-fed/web/packages/theme/index";
|
|
15
|
-
var
|
|
15
|
+
var Q = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
16
16
|
function Qe(e) {
|
|
17
17
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
18
18
|
}
|
|
@@ -20,7 +20,7 @@ function Ye(e) {
|
|
|
20
20
|
var i = typeof e;
|
|
21
21
|
return e != null && (i == "object" || i == "function");
|
|
22
22
|
}
|
|
23
|
-
var we = Ye, Ze = typeof
|
|
23
|
+
var we = Ye, Ze = typeof Q == "object" && Q && Q.Object === Object && Q, Ke = Ze, et = Ke, tt = typeof self == "object" && self && self.Object === Object && self, rt = et || tt || Function("return this")(), Ce = rt, lt = Ce, at = function() {
|
|
24
24
|
return lt.Date.now();
|
|
25
25
|
}, ot = at, nt = /\s/;
|
|
26
26
|
function it(e) {
|
|
@@ -124,7 +124,7 @@ function Xt(e, i, c) {
|
|
|
124
124
|
return m.cancel = M, m.flush = D, m;
|
|
125
125
|
}
|
|
126
126
|
var Jt = Xt;
|
|
127
|
-
const Qt = /* @__PURE__ */ Qe(Jt), Yt = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|%)$/.test(e),
|
|
127
|
+
const Qt = /* @__PURE__ */ Qe(Jt), Yt = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|%)$/.test(e), Y = (e) => typeof e == "string" && Yt(e) ? e : e + "px", Zt = (e, i, c, d, g, j) => {
|
|
128
128
|
const y = L(null), p = L(null), f = Ge(), x = L(), C = L(!1), T = L(""), V = L(""), h = b(() => e.mode === "multiple" || e.mode === "tags"), k = b(() => ({ label: "name", children: "children", pathName: "pathName", disabled: "disabled", ...d.props ?? {} })), W = Fe.value === "zh-CN" ? "," : ", ", u = b({
|
|
129
129
|
get: () => e.modelValue ? e.modelValue : void 0,
|
|
130
130
|
set: (t) => {
|
|
@@ -190,23 +190,23 @@ const Qt = /* @__PURE__ */ Qe(Jt), Yt = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
190
190
|
{ immediate: !0 }
|
|
191
191
|
);
|
|
192
192
|
const O = b(() => ({
|
|
193
|
-
height: e.poppverHeight ?
|
|
194
|
-
maxHeight: e.poppverMaxHeight ?
|
|
193
|
+
height: e.poppverHeight ? Y(e.poppverHeight) : void 0,
|
|
194
|
+
maxHeight: e.poppverMaxHeight ? Y(e.poppverMaxHeight) : void 0
|
|
195
195
|
})), I = () => {
|
|
196
196
|
i("visible-change", !0);
|
|
197
|
-
},
|
|
197
|
+
}, Z = () => {
|
|
198
198
|
var t;
|
|
199
199
|
N.value = "", (t = f.value) == null || t.searchClear(), i("visible-change", !1);
|
|
200
|
-
},
|
|
200
|
+
}, K = Qt(() => {
|
|
201
201
|
e.disabled || e.isView || (C.value ? C.value = !1 : (document.body.click(), C.value = !0));
|
|
202
202
|
}, 200), A = async () => {
|
|
203
203
|
var l, n;
|
|
204
|
-
await
|
|
204
|
+
await X();
|
|
205
205
|
let t = [];
|
|
206
206
|
h.value || (u.value || u.value === 0) && (g.value && await ((l = f.value) == null ? void 0 : l.lazyDataNextTick(u.value)), t = D.value.filter((r) => r[c.value] === u.value)), h.value && (u.value || u.value.length) && (g.value && await ((n = f.value) == null ? void 0 : n.lazyDataNextTick(u.value)), t = D.value.filter((r) => u.value.includes(r[c.value]))), i("change", u.value, t);
|
|
207
|
-
}, B = L(!1),
|
|
207
|
+
}, B = L(!1), ee = async () => {
|
|
208
208
|
C.value = !1, u.value = h.value ? [] : "", A(), B.value = !0;
|
|
209
|
-
},
|
|
209
|
+
}, z = async (t) => {
|
|
210
210
|
var l, n, r, S, P, a;
|
|
211
211
|
if (!B.value && h.value) {
|
|
212
212
|
if (!g.value && !j.value) {
|
|
@@ -232,14 +232,14 @@ const Qt = /* @__PURE__ */ Qe(Jt), Yt = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
232
232
|
}, re = () => {
|
|
233
233
|
var t, l;
|
|
234
234
|
h.value || (C.value = !1, e.filter && ((l = (t = p.value) == null ? void 0 : t.$select) == null || l.focus()));
|
|
235
|
-
},
|
|
236
|
-
|
|
237
|
-
T.value = e.width ?
|
|
235
|
+
}, U = () => y != null && y.value && y.value.offsetWidth ? y.value.offsetWidth + "px" : "100%", _ = () => {
|
|
236
|
+
X(() => {
|
|
237
|
+
T.value = e.width ? Y(e.width) : U(), V.value = e.poppverWidth ? Y(e.poppverWidth) : U();
|
|
238
238
|
});
|
|
239
239
|
}, le = (t) => {
|
|
240
240
|
var l;
|
|
241
241
|
B.value && (B.value = !1), (l = p.value) == null || l.toChangeMaxCount(!0), i("focus", t);
|
|
242
|
-
},
|
|
242
|
+
}, q = (t) => {
|
|
243
243
|
i("blur", t);
|
|
244
244
|
};
|
|
245
245
|
ve(
|
|
@@ -247,7 +247,7 @@ const Qt = /* @__PURE__ */ Qe(Jt), Yt = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
247
247
|
(t) => {
|
|
248
248
|
var n, r;
|
|
249
249
|
const l = (n = y.value) == null ? void 0 : n.querySelector(".ant-select-arrow>.das-icon");
|
|
250
|
-
t ? l.style.transform = "rotate(180deg)" : l.style.transform = "", (r = p.value) == null || r.toChangeMaxCount(t),
|
|
250
|
+
t ? l.style.transform = "rotate(180deg)" : l.style.transform = "", (r = p.value) == null || r.toChangeMaxCount(t), X(() => {
|
|
251
251
|
var S, P, a;
|
|
252
252
|
(a = (P = (S = o(x)) == null ? void 0 : S.popperRef) == null ? void 0 : P.popperInstanceRef) == null || a.update();
|
|
253
253
|
});
|
|
@@ -265,12 +265,12 @@ const Qt = /* @__PURE__ */ Qe(Jt), Yt = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
265
265
|
u.value = t;
|
|
266
266
|
};
|
|
267
267
|
return De(async () => {
|
|
268
|
-
|
|
268
|
+
_();
|
|
269
269
|
const t = await ae();
|
|
270
270
|
t && (E.value = _e((l) => {
|
|
271
|
-
|
|
271
|
+
X(() => {
|
|
272
272
|
var n, r, S;
|
|
273
|
-
(S = (r = (n = o(x)) == null ? void 0 : n.popperRef) == null ? void 0 : r.popperInstanceRef) == null || S.update(),
|
|
273
|
+
(S = (r = (n = o(x)) == null ? void 0 : n.popperRef) == null ? void 0 : r.popperInstanceRef) == null || S.update(), _();
|
|
274
274
|
});
|
|
275
275
|
}, t));
|
|
276
276
|
}), xe(() => {
|
|
@@ -291,17 +291,17 @@ const Qt = /* @__PURE__ */ Qe(Jt), Yt = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
291
291
|
selectOptions: D,
|
|
292
292
|
currentLabel: m,
|
|
293
293
|
poppverShow: I,
|
|
294
|
-
poppverHide:
|
|
294
|
+
poppverHide: Z,
|
|
295
295
|
treeChange: A,
|
|
296
296
|
nodeChange: re,
|
|
297
|
-
deselect:
|
|
297
|
+
deselect: z,
|
|
298
298
|
selectSearch: te,
|
|
299
|
-
selectClear:
|
|
299
|
+
selectClear: ee,
|
|
300
300
|
popoverVisible: C,
|
|
301
|
-
selectMouseDown:
|
|
301
|
+
selectMouseDown: K,
|
|
302
302
|
resetDefaultVal: oe,
|
|
303
303
|
focus: le,
|
|
304
|
-
blur:
|
|
304
|
+
blur: q,
|
|
305
305
|
checkselectOptionsData: $,
|
|
306
306
|
textHide: s,
|
|
307
307
|
showCheckbox: h
|
|
@@ -362,18 +362,18 @@ const Qt = /* @__PURE__ */ Qe(Jt), Yt = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
362
362
|
realWidth: $,
|
|
363
363
|
poppverContentStyle: O,
|
|
364
364
|
realPoppverWidth: I,
|
|
365
|
-
treeChange:
|
|
366
|
-
nodeChange:
|
|
365
|
+
treeChange: Z,
|
|
366
|
+
nodeChange: K,
|
|
367
367
|
treePath: A,
|
|
368
368
|
treeProps: B,
|
|
369
|
-
selectOptions:
|
|
370
|
-
currentLabel:
|
|
369
|
+
selectOptions: ee,
|
|
370
|
+
currentLabel: z,
|
|
371
371
|
popoverRef: te,
|
|
372
372
|
deselect: re,
|
|
373
|
-
poppverShow:
|
|
374
|
-
poppverHide:
|
|
373
|
+
poppverShow: U,
|
|
374
|
+
poppverHide: _,
|
|
375
375
|
selectSearch: le,
|
|
376
|
-
selectMouseDown:
|
|
376
|
+
selectMouseDown: q,
|
|
377
377
|
popoverVisible: E,
|
|
378
378
|
resetDefaultVal: ae,
|
|
379
379
|
selectClear: oe,
|
|
@@ -388,6 +388,7 @@ const Qt = /* @__PURE__ */ Qe(Jt), Yt = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
388
388
|
$select: D,
|
|
389
389
|
/** das-tree */
|
|
390
390
|
$tree: M,
|
|
391
|
+
currentLabel: z,
|
|
391
392
|
/** 设置默认值,当默认值为动态设置时使用(兼容老版本) */
|
|
392
393
|
resetDefaultVal: ae
|
|
393
394
|
}), (a, v) => pe((ue(), se(
|
|
@@ -400,7 +401,7 @@ const Qt = /* @__PURE__ */ Qe(Jt), Yt = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
400
401
|
},
|
|
401
402
|
[
|
|
402
403
|
Oe(` 在使用 2.x 版本的element-UI时,里面的Popover气泡卡片组件,有自带的自动适应位置的功能;在 element plus 中,直接使用,已经无法自适应气泡弹窗的位置了;需要自行配置:fallback-placements="['bottom', 'top', 'right', 'left']" `),
|
|
403
|
-
|
|
404
|
+
J(o(We), {
|
|
404
405
|
ref_key: "popoverRef",
|
|
405
406
|
ref: te,
|
|
406
407
|
visible: o(E),
|
|
@@ -411,8 +412,8 @@ const Qt = /* @__PURE__ */ Qe(Jt), Yt = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
411
412
|
disabled: k.value,
|
|
412
413
|
"fallback-placements": ["bottom", "top", "right", "left"],
|
|
413
414
|
offset: 3,
|
|
414
|
-
onShow: o(
|
|
415
|
-
onHide: o(
|
|
415
|
+
onShow: o(U),
|
|
416
|
+
onHide: o(_)
|
|
416
417
|
}, {
|
|
417
418
|
reference: R(() => [
|
|
418
419
|
a.showSelectDom ? (ue(), se(
|
|
@@ -422,12 +423,12 @@ const Qt = /* @__PURE__ */ Qe(Jt), Yt = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
422
423
|
class: "das-tree-select__select-content",
|
|
423
424
|
onMousedown: v[1] || (v[1] = de(
|
|
424
425
|
//@ts-ignore
|
|
425
|
-
(...w) => o(
|
|
426
|
+
(...w) => o(q) && o(q)(...w),
|
|
426
427
|
["stop"]
|
|
427
428
|
))
|
|
428
429
|
},
|
|
429
430
|
[
|
|
430
|
-
|
|
431
|
+
J(o(Ae), me({
|
|
431
432
|
ref_key: "$select",
|
|
432
433
|
ref: D,
|
|
433
434
|
class: { "is-active": o(E) },
|
|
@@ -436,7 +437,7 @@ const Qt = /* @__PURE__ */ Qe(Jt), Yt = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
436
437
|
"onUpdate:modelValue": v[0] || (v[0] = (w) => ce(m) ? m.value = w : null)
|
|
437
438
|
}, h.value, {
|
|
438
439
|
searchValue: o(s),
|
|
439
|
-
options: o(
|
|
440
|
+
options: o(ee),
|
|
440
441
|
disabled: a.disabled,
|
|
441
442
|
isView: a.isView,
|
|
442
443
|
size: a.size,
|
|
@@ -464,7 +465,7 @@ const Qt = /* @__PURE__ */ Qe(Jt), Yt = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
464
465
|
onClear: o(oe)
|
|
465
466
|
}), {
|
|
466
467
|
suffixIcon: R(() => [
|
|
467
|
-
|
|
468
|
+
J(o(ze), {
|
|
468
469
|
size: "medium",
|
|
469
470
|
style: { transition: "transform 0.5s" },
|
|
470
471
|
iconColor: o(E) ? "#5582F3" : "currentColor"
|
|
@@ -478,7 +479,7 @@ const Qt = /* @__PURE__ */ Qe(Jt), Yt = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
478
479
|
/* NEED_HYDRATION */
|
|
479
480
|
)) : pe((ue(), se("div", Kt, [
|
|
480
481
|
Me(
|
|
481
|
-
Be(o(
|
|
482
|
+
Be(o(z)),
|
|
482
483
|
1
|
|
483
484
|
/* TEXT */
|
|
484
485
|
)
|
|
@@ -498,7 +499,7 @@ const Qt = /* @__PURE__ */ Qe(Jt), Yt = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
498
499
|
}, ["stop"]))
|
|
499
500
|
},
|
|
500
501
|
[
|
|
501
|
-
|
|
502
|
+
J(o(He), me({
|
|
502
503
|
ref_key: "$tree",
|
|
503
504
|
ref: M
|
|
504
505
|
}, o(j), {
|
|
@@ -520,8 +521,8 @@ const Qt = /* @__PURE__ */ Qe(Jt), Yt = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
520
521
|
parentLinkChildrenStrictly: a.parentLinkChildrenStrictly,
|
|
521
522
|
getGrandChildren: C.value,
|
|
522
523
|
childLinkParentStrictly: a.childLinkParentStrictly,
|
|
523
|
-
onChange: o(
|
|
524
|
-
onNodeChange: o(
|
|
524
|
+
onChange: o(Z),
|
|
525
|
+
onNodeChange: o(K)
|
|
525
526
|
}), Re({
|
|
526
527
|
default: R(({ node: w, data: ne }) => [
|
|
527
528
|
G(a.$slots, "default", {
|
|
Binary file
|
|
@@ -6813,6 +6813,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<Props, {
|
|
|
6813
6813
|
'container-bottom'?: (props: {}) => any;
|
|
6814
6814
|
};
|
|
6815
6815
|
}) | null>;
|
|
6816
|
+
currentLabel: import("vue").Ref<string, string>;
|
|
6816
6817
|
/** 设置默认值,当默认值为动态设置时使用(兼容老版本) */
|
|
6817
6818
|
resetDefaultVal: (val: any) => void;
|
|
6818
6819
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|