@dazhicheng/ui 1.5.202 → 1.5.204
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/dist/_virtual/___vite-browser-external.js +6 -0
- package/dist/_virtual/__vite-browser-external.js +4 -0
- package/dist/_virtual/_commonjs-dynamic-modules.js +6 -0
- package/dist/_virtual/_commonjsHelpers.js +24 -0
- package/dist/_virtual/aes.js +4 -0
- package/dist/_virtual/cipher-core.js +4 -0
- package/dist/_virtual/core.js +4 -0
- package/dist/_virtual/enc-base64.js +4 -0
- package/dist/_virtual/enc-utf8.js +4 -0
- package/dist/_virtual/evpkdf.js +4 -0
- package/dist/_virtual/hmac.js +4 -0
- package/dist/_virtual/md5.js +4 -0
- package/dist/_virtual/mode-ecb.js +4 -0
- package/dist/_virtual/pad-pkcs7.js +4 -0
- package/dist/_virtual/sha1.js +4 -0
- package/dist/components/tt-api-component/index.js +17 -4
- package/dist/components/tt-api-component/index.vue2.js +24 -13
- package/dist/components/tt-area/TtArea.vue3.js +24 -13
- package/dist/components/tt-button/index.js +18 -5
- package/dist/components/tt-button/index.vue2.js +27 -16
- package/dist/components/tt-checkbox/index.js +17 -4
- package/dist/components/tt-checkbox/index.vue.js +38 -28
- package/dist/components/tt-drawer/index.js +17 -7
- package/dist/components/tt-drawer/src/RenderDrawer.vue.js +48 -36
- package/dist/components/tt-drawer/src/components/DrawerFooter.vue.js +39 -26
- package/dist/components/tt-drawer/src/components/DrawerHeader.vue2.js +23 -10
- package/dist/components/tt-drawer/src/props.js +22 -9
- package/dist/components/tt-drawer/src/utils/drawer-api.js +42 -33
- package/dist/components/tt-empty/index.js +28 -18
- package/dist/components/tt-form/index.js +22 -14
- package/dist/components/tt-form/src/components/ExpandableArrow.vue2.js +23 -14
- package/dist/components/tt-form/src/components/FormActions.vue2.js +42 -32
- package/dist/components/tt-form/src/form/FormDescription.vue.js +19 -10
- package/dist/components/tt-form/src/form/FormItem.vue.js +18 -9
- package/dist/components/tt-form/src/form/FormLabel.vue.js +18 -9
- package/dist/components/tt-form/src/form/RenderContent.vue.js +25 -13
- package/dist/components/tt-form/src/form-render/FormField.vue2.js +62 -55
- package/dist/components/tt-form/src/form-render/FormLabel.vue2.js +36 -28
- package/dist/components/tt-form/src/form-render/array-register/FormArrayRegister.js +64 -56
- package/dist/components/tt-form/src/form-render/array-register/utils.js +18 -8
- package/dist/components/tt-form/src/form-render/dependencies.js +36 -24
- package/dist/components/tt-form/src/form-render/form.vue2.js +17 -7
- package/dist/components/tt-form/src/form-render/helper.js +29 -16
- package/dist/components/tt-form/src/form-render/rootWrapperClass.js +17 -7
- package/dist/components/tt-form/src/formApi.js +59 -48
- package/dist/components/tt-form/src/group-form/GroupForm.vue2.js +17 -4
- package/dist/components/tt-form/src/group-form/GroupSection.vue2.js +67 -57
- package/dist/components/tt-form/src/group-form/LazyFormField.vue.js +55 -46
- package/dist/components/tt-form/src/group-form/groupFormApi.js +21 -10
- package/dist/components/tt-form/src/hooks/useForwardPriorityValues.js +27 -17
- package/dist/components/tt-form/src/hooks/useSelectCollapse.js +32 -23
- package/dist/components/tt-form/src/index.vue2.js +53 -45
- package/dist/components/tt-form/src/useFormContext.js +74 -62
- package/dist/components/tt-form-item-error-tooltip/index.js +18 -5
- package/dist/components/tt-form-item-error-tooltip/index.vue.js +32 -21
- package/dist/components/tt-icon/index.js +20 -7
- package/dist/components/tt-image/index.js +19 -6
- package/dist/components/tt-image/src/components/ImageViewer.js +27 -17
- package/dist/components/tt-loading/index.js +16 -4
- package/dist/components/tt-loading/src/directive.js +34 -22
- package/dist/components/tt-log/index.js +17 -4
- package/dist/components/tt-log/index.vue.js +21 -8
- package/dist/components/tt-modal/index.js +16 -5
- package/dist/components/tt-modal/src/RenderModal.vue.js +163 -151
- package/dist/components/tt-modal/src/components/ModalFooter.vue2.js +38 -28
- package/dist/components/tt-modal/src/components/ModalHeader.vue2.js +24 -11
- package/dist/components/tt-modal/src/components/ModalWrapper.vue.js +36 -23
- package/dist/components/tt-modal/src/props.js +22 -9
- package/dist/components/tt-modal/src/utils/modal-api.js +39 -29
- package/dist/components/tt-modal-form/index.vue.js +44 -36
- package/dist/components/tt-nav-anchor/index.js +17 -4
- package/dist/components/tt-nav-anchor/src/TtNavAnchor.vue.js +69 -57
- package/dist/components/tt-panel-select/index.js +17 -4
- package/dist/components/tt-panel-select/src/hooks/usePanelData.js +51 -40
- package/dist/components/tt-panel-select/src/index.vue.js +35 -24
- package/dist/components/tt-select/index.js +17 -4
- package/dist/components/tt-select/src/Select.vue.js +79 -68
- package/dist/components/tt-select/src/components/SelectTable.vue.js +41 -30
- package/dist/components/tt-select/src/components/Table.vue.js +86 -76
- package/dist/components/tt-select/src/hooks/useDataSource.js +59 -49
- package/dist/components/tt-select/src/hooks/useSelect.js +46 -38
- package/dist/components/tt-select/src/hooks/useSelectTableEvent.js +123 -112
- package/dist/components/tt-table/index.js +19 -12
- package/dist/components/tt-table/src/Table.vue.js +82 -71
- package/dist/components/tt-table/src/TableForm.vue.js +77 -65
- package/dist/components/tt-table/src/components/TableAction.vue.js +49 -39
- package/dist/components/tt-table/src/components/TableButtons.js +73 -60
- package/dist/components/tt-table/src/components/TableColumnModal.vue2.js +14 -3
- package/dist/components/tt-table/src/components/TableToobalTools.vue.js +36 -25
- package/dist/components/tt-table/src/hooks/useColumns.js +72 -65
- package/dist/components/tt-table/src/hooks/useCustomColumns.js +43 -31
- package/dist/components/tt-table/src/hooks/useDataSource.js +50 -42
- package/dist/components/tt-table/src/hooks/usePagination.js +36 -25
- package/dist/components/tt-table/src/props.js +55 -42
- package/dist/components/tt-table/src/utils/table-api.js +33 -22
- package/dist/components/tt-table/src/utils/table-form-api.js +35 -24
- package/dist/components/tt-text/index.js +17 -4
- package/dist/components/tt-upload/index.js +19 -6
- package/dist/components/tt-upload/src/TtUpload.vue.js +77 -66
- package/dist/directives/disabled-tip/index.js +37 -26
- package/dist/hooks/useFormSchemasLink.js +90 -79
- package/dist/hooks/useScreenshotOss.js +49 -35
- package/dist/node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js +17 -0
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.js +64 -0
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/cipher-core.js +545 -0
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/core.js +508 -0
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-base64.js +81 -0
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8.js +10 -0
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/evpkdf.js +71 -0
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/hmac.js +84 -0
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/md5.js +72 -0
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js +22 -0
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js +11 -0
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha1.js +50 -0
- package/dist/node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js +1024 -0
- package/dist/node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.js +32 -0
- package/dist/node_modules/.pnpm/html-to-image@1.11.13/node_modules/html-to-image/es/apply-style.js +11 -0
- package/dist/node_modules/.pnpm/html-to-image@1.11.13/node_modules/html-to-image/es/clone-node.js +92 -0
- package/dist/node_modules/.pnpm/html-to-image@1.11.13/node_modules/html-to-image/es/clone-pseudos.js +34 -0
- package/dist/node_modules/.pnpm/html-to-image@1.11.13/node_modules/html-to-image/es/dataurl.js +52 -0
- package/dist/node_modules/.pnpm/html-to-image@1.11.13/node_modules/html-to-image/es/embed-images.js +43 -0
- package/dist/node_modules/.pnpm/html-to-image@1.11.13/node_modules/html-to-image/es/embed-resources.js +47 -0
- package/dist/node_modules/.pnpm/html-to-image@1.11.13/node_modules/html-to-image/es/embed-webfonts.js +122 -0
- package/dist/node_modules/.pnpm/html-to-image@1.11.13/node_modules/html-to-image/es/index.js +30 -0
- package/dist/node_modules/.pnpm/html-to-image@1.11.13/node_modules/html-to-image/es/mimes.js +24 -0
- package/dist/node_modules/.pnpm/html-to-image@1.11.13/node_modules/html-to-image/es/util.js +106 -0
- package/dist/node_modules/.pnpm/is-plain-object@5.0.0/node_modules/is-plain-object/dist/is-plain-object.js +16 -0
- package/dist/node_modules/.pnpm/klona@2.0.6/node_modules/klona/full/index.js +21 -0
- package/dist/node_modules/.pnpm/tailwind-merge@3.5.0/node_modules/tailwind-merge/dist/bundle-mjs.js +2922 -0
- package/dist/node_modules/.pnpm/vue-types@5.1.3_vue@3.5.21_typescript@5.9.3_/node_modules/vue-types/shim/index.modern.js +93 -0
- package/dist/packages/hooks/src/propTypes.js +17 -0
- package/dist/packages/hooks/src/tools.js +6 -0
- package/dist/packages/hooks/src/useDebounce.js +32 -0
- package/dist/packages/hooks/src/useDesign.js +12 -0
- package/dist/packages/hooks/src/useElementScreenshot.js +136 -0
- package/dist/packages/hooks/src/useIsScroll.js +12 -0
- package/dist/packages/hooks/src/usePriorityValue.js +45 -0
- package/dist/packages/utils/src/calc.js +14 -0
- package/dist/packages/utils/src/check.js +10 -0
- package/dist/packages/utils/src/install.js +11 -0
- package/dist/packages/utils/src/is.js +64 -0
- package/dist/packages/utils/src/merge.js +13 -0
- package/dist/packages/utils/src/stateHandler.js +33 -0
- package/dist/packages/utils/src/string.js +6 -0
- package/dist/packages/utils/src/testid-helper.js +14 -0
- package/dist/packages/utils/src/tool.js +181 -0
- package/dist/plugins/default/renderCellContent.js +39 -28
- package/dist/plugins/vxeTable/switchStatus.js +37 -26
- package/package.json +3 -3
|
@@ -1,23 +1,34 @@
|
|
|
1
|
-
import { defineComponent as Ne, useAttrs as Re, ref as g, useSlots as Ae, computed as
|
|
1
|
+
import { defineComponent as Ne, useAttrs as Re, ref as g, useSlots as Ae, computed as a, unref as l, watch as Be, createElementBlock as ie, openBlock as x, mergeProps as h, createBlock as We, createCommentVNode as Ke, resolveDynamicComponent as ze, createSlots as I, withCtx as c, renderSlot as p, normalizeProps as P, guardReactiveProps as y, createElementVNode as He, normalizeClass as re, toDisplayString as _e, renderList as O, createVNode as u, toHandlers as ae, withModifiers as Ge, withDirectives as Ue, resolveComponent as qe, toValue as Je, isRef as Qe, isReactive as Xe } from "vue";
|
|
2
2
|
import Ye from "./components/Table.vue.js";
|
|
3
3
|
/* empty css */
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
4
|
+
import "../../../node_modules/.pnpm/vue-types@5.1.3_vue@3.5.21_typescript@5.9.3_/node_modules/vue-types/shim/index.modern.js";
|
|
5
|
+
import { useDesign as Ze } from "../../../packages/hooks/src/useDesign.js";
|
|
6
|
+
import "axios";
|
|
7
|
+
import { ElIcon as et, ElSelect as tt } from "element-plus";
|
|
8
|
+
import { isArray as ne, isObject as ot, isEmpty as lt } from "../../../packages/utils/src/is.js";
|
|
9
|
+
import "xe-utils";
|
|
10
|
+
import "dayjs";
|
|
11
|
+
import "dayjs/plugin/utc";
|
|
12
|
+
import "dayjs/plugin/timezone";
|
|
13
|
+
import "../../../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js";
|
|
14
|
+
import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.js";
|
|
15
|
+
import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8.js";
|
|
16
|
+
import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
|
|
17
|
+
import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
|
|
18
|
+
import { omit as st, pick as it, cloneDeep as j, isEqual as rt } from "lodash-es";
|
|
19
|
+
import { useLoading as at } from "../../../hooks/useLoading.js";
|
|
20
|
+
import { CopyDocument as nt } from "@element-plus/icons-vue";
|
|
21
|
+
import ct from "../../../directives/disabled-tip/index.js";
|
|
22
|
+
import { useTableSlot as dt } from "../../../hooks/useTable.js";
|
|
23
|
+
import { useResizeObserver as pt } from "@vueuse/core";
|
|
13
24
|
import ut from "./components/SelectTable.vue.js";
|
|
14
25
|
/* empty css */
|
|
15
|
-
import { useDataSource as
|
|
16
|
-
import { usePagination as
|
|
26
|
+
import { useDataSource as mt } from "./hooks/useDataSource.js";
|
|
27
|
+
import { usePagination as ft } from "./hooks/usePagination.js";
|
|
17
28
|
import { useSelect as gt } from "./hooks/useSelect.js";
|
|
18
29
|
import { useSelectTableEvent as vt } from "./hooks/useSelectTableEvent.js";
|
|
19
30
|
import { selectProps as bt, configDefault as ht } from "./props.js";
|
|
20
|
-
const Pt = ["title"],
|
|
31
|
+
const Pt = ["title"], Qt = /* @__PURE__ */ Ne({
|
|
21
32
|
name: "TtSelect",
|
|
22
33
|
inheritAttrs: !1,
|
|
23
34
|
__name: "Select",
|
|
@@ -28,26 +39,26 @@ const Pt = ["title"], At = /* @__PURE__ */ Ne({
|
|
|
28
39
|
emit: pe
|
|
29
40
|
}) {
|
|
30
41
|
var X, Y, Z, ee;
|
|
31
|
-
const t = ce,
|
|
42
|
+
const t = ce, m = pe, S = Re(), f = g(null), v = g(), n = g((X = t.selectProps) != null && X.multiple ? [] : void 0), i = g(void 0), C = g(!1), {
|
|
32
43
|
prefixCls: w
|
|
33
44
|
} = Ze("select-v2"), ue = Ae(), {
|
|
34
45
|
getTableSlotKeys: M,
|
|
35
46
|
replaceTableSlotKey: N
|
|
36
|
-
} =
|
|
47
|
+
} = dt(ue), {
|
|
37
48
|
getLoading: V,
|
|
38
|
-
setLoading:
|
|
39
|
-
} =
|
|
49
|
+
setLoading: me
|
|
50
|
+
} = at(a(() => t.loading || !1)), R = a(() => {
|
|
40
51
|
var e;
|
|
41
52
|
return (((e = t.gridProps) == null ? void 0 : e.columns) || []).map((o) => o.field || "");
|
|
42
53
|
}), {
|
|
43
|
-
setShowPager:
|
|
54
|
+
setShowPager: fe,
|
|
44
55
|
showPager: k,
|
|
45
56
|
getPaginationInfo: A,
|
|
46
57
|
setPagination: b,
|
|
47
58
|
getPagination: E,
|
|
48
59
|
hasNextPage: B,
|
|
49
60
|
setHasNextPage: ge
|
|
50
|
-
} =
|
|
61
|
+
} = ft(), {
|
|
51
62
|
options: $,
|
|
52
63
|
reload: W,
|
|
53
64
|
isLoaded: ve,
|
|
@@ -61,13 +72,13 @@ const Pt = ["title"], At = /* @__PURE__ */ Ne({
|
|
|
61
72
|
searchValue: Ce,
|
|
62
73
|
getImmediate: we,
|
|
63
74
|
updateOptionsDisabled: Ve
|
|
64
|
-
} =
|
|
75
|
+
} = mt(a(() => ({
|
|
65
76
|
...ht,
|
|
66
77
|
...t.configProps
|
|
67
78
|
})), {
|
|
68
|
-
setLoading:
|
|
79
|
+
setLoading: me,
|
|
69
80
|
getPaginationInfo: A,
|
|
70
|
-
setShowPager:
|
|
81
|
+
setShowPager: fe,
|
|
71
82
|
setPagination: b,
|
|
72
83
|
getPagination: E,
|
|
73
84
|
setSelectValue: q,
|
|
@@ -76,17 +87,17 @@ const Pt = ["title"], At = /* @__PURE__ */ Ne({
|
|
|
76
87
|
columnsFields: l(R),
|
|
77
88
|
setHasNextPage: ge,
|
|
78
89
|
getSelectEvent: () => D,
|
|
79
|
-
extra:
|
|
80
|
-
selectValue:
|
|
90
|
+
extra: a(() => t.extra),
|
|
91
|
+
selectValue: n,
|
|
81
92
|
renderType: t.renderType,
|
|
82
|
-
multipleLimit:
|
|
83
|
-
},
|
|
93
|
+
multipleLimit: a(() => t.selectProps.multipleLimit)
|
|
94
|
+
}, m), ke = a(() => {
|
|
84
95
|
if (S.disabled !== void 0)
|
|
85
96
|
return !!S.disabled;
|
|
86
97
|
if (t.disabled || t.configProps.disabled)
|
|
87
98
|
return !0;
|
|
88
99
|
const e = t.disabledTip;
|
|
89
|
-
return
|
|
100
|
+
return ne(e) && e.length > 0 ? e.some((o) => !!(o != null && o.condition)) : ot(e) ? !!e.condition : !1;
|
|
90
101
|
}), {
|
|
91
102
|
getOtherSelectProps: Ee,
|
|
92
103
|
calcMaxCollapseTags: H,
|
|
@@ -95,10 +106,10 @@ const Pt = ["title"], At = /* @__PURE__ */ Ne({
|
|
|
95
106
|
showPopup: De,
|
|
96
107
|
setShowPopup: Fe,
|
|
97
108
|
getSelectWidth: Te
|
|
98
|
-
} = gt(
|
|
109
|
+
} = gt(a(() => t.selectProps), {
|
|
99
110
|
collapse: t.configProps.collapse,
|
|
100
|
-
selectOption:
|
|
101
|
-
selectRef:
|
|
111
|
+
selectOption: i,
|
|
112
|
+
selectRef: f,
|
|
102
113
|
disabled: ke,
|
|
103
114
|
autoSelectWidth: t.configProps.autoSelectWidth,
|
|
104
115
|
showPager: k,
|
|
@@ -117,12 +128,12 @@ const Pt = ["title"], At = /* @__PURE__ */ Ne({
|
|
|
117
128
|
selectEvent: D,
|
|
118
129
|
keyboardEvent: U,
|
|
119
130
|
defaultDataSelect: Le
|
|
120
|
-
} = vt(
|
|
131
|
+
} = vt(a(() => t), {
|
|
121
132
|
tableRef: v,
|
|
122
|
-
selectRef:
|
|
133
|
+
selectRef: f,
|
|
123
134
|
options: $,
|
|
124
|
-
selectValue:
|
|
125
|
-
selectOption:
|
|
135
|
+
selectValue: n,
|
|
136
|
+
selectOption: i,
|
|
126
137
|
setSelectValue: q,
|
|
127
138
|
multiple: ((Z = t.selectProps) == null ? void 0 : Z.multiple) || !1,
|
|
128
139
|
reload: W,
|
|
@@ -147,16 +158,16 @@ const Pt = ["title"], At = /* @__PURE__ */ Ne({
|
|
|
147
158
|
persistent: ((ee = t.selectProps) == null ? void 0 : ee.persistent) || !1,
|
|
148
159
|
updateOptionsDisabled: Ve,
|
|
149
160
|
getIsSelectFirstOption: ye
|
|
150
|
-
},
|
|
161
|
+
}, m), F = a(() => ({
|
|
151
162
|
popperClass: `${w}-popper vxe-table--ignore-clear`,
|
|
152
163
|
valueKey: "value",
|
|
153
164
|
placement: "bottom-end",
|
|
154
165
|
clearable: !0,
|
|
155
166
|
persistent: !1,
|
|
156
|
-
...
|
|
167
|
+
...st(t.selectProps, ["allowCreate"]),
|
|
157
168
|
...l(Ee),
|
|
158
169
|
loading: l(V)
|
|
159
|
-
})), T =
|
|
170
|
+
})), T = a(() => {
|
|
160
171
|
var o;
|
|
161
172
|
return {
|
|
162
173
|
grid: t.gridProps ?? {},
|
|
@@ -166,7 +177,7 @@ const Pt = ["title"], At = /* @__PURE__ */ Ne({
|
|
|
166
177
|
pagination: l(A),
|
|
167
178
|
multiple: t.selectProps.multiple,
|
|
168
179
|
disableFn: t.configProps.disableFn,
|
|
169
|
-
selectValue: l(
|
|
180
|
+
selectValue: l(n),
|
|
170
181
|
selectWidth: l(_),
|
|
171
182
|
deleteField: t.configProps.deleteField,
|
|
172
183
|
hasNextPage: l(B),
|
|
@@ -178,8 +189,8 @@ const Pt = ["title"], At = /* @__PURE__ */ Ne({
|
|
|
178
189
|
};
|
|
179
190
|
});
|
|
180
191
|
function q(e, o, s = !0) {
|
|
181
|
-
const
|
|
182
|
-
|
|
192
|
+
const r = j(n.value);
|
|
193
|
+
i.value = o, n.value = j(e), !(rt(j(e), r) || !s) && (m("update:modelValue", n.value), m("change", n.value, i.value), m("select-change", n.value, i.value), Ie());
|
|
183
194
|
}
|
|
184
195
|
function xe() {
|
|
185
196
|
return Object.keys(D).reduce((e, o) => (e[`on${o.charAt(0).toUpperCase()}${o.slice(1)}`] = D[o], e), {});
|
|
@@ -187,25 +198,25 @@ const Pt = ["title"], At = /* @__PURE__ */ Ne({
|
|
|
187
198
|
function Ie() {
|
|
188
199
|
var e;
|
|
189
200
|
if (t.configProps.bindFields && t.configProps.model) {
|
|
190
|
-
const o = (e = t.configProps.bindFields) == null ? void 0 : e.reduce((
|
|
201
|
+
const o = (e = t.configProps.bindFields) == null ? void 0 : e.reduce((r, te) => {
|
|
191
202
|
var oe;
|
|
192
203
|
if (te) {
|
|
193
|
-
const [L, le] = te.split("|"), d = Je(
|
|
194
|
-
|
|
204
|
+
const [L, le] = te.split("|"), d = Je(i);
|
|
205
|
+
r[L || ""] = t.selectProps.multiple ? d == null ? void 0 : d.map((Me) => {
|
|
195
206
|
var se;
|
|
196
207
|
return (se = Me.item) == null ? void 0 : se[le || L || ""];
|
|
197
208
|
}) : (oe = d == null ? void 0 : d.item) == null ? void 0 : oe[le || L || ""];
|
|
198
209
|
}
|
|
199
|
-
return
|
|
210
|
+
return r;
|
|
200
211
|
}, {}), s = t.configProps.model;
|
|
201
212
|
Qe(s) ? Object.assign(s.value, o) : (Xe(s), Object.assign(s, o));
|
|
202
213
|
}
|
|
203
214
|
}
|
|
204
215
|
function Oe() {
|
|
205
|
-
return Ue(u(
|
|
206
|
-
ref:
|
|
207
|
-
modelValue:
|
|
208
|
-
"onUpdate:modelValue": (e) =>
|
|
216
|
+
return Ue(u(tt, h({
|
|
217
|
+
ref: f,
|
|
218
|
+
modelValue: i.value,
|
|
219
|
+
"onUpdate:modelValue": (e) => i.value = e,
|
|
209
220
|
class: {
|
|
210
221
|
"is-not-border": !t.border
|
|
211
222
|
},
|
|
@@ -214,13 +225,13 @@ const Pt = ["title"], At = /* @__PURE__ */ Ne({
|
|
|
214
225
|
}
|
|
215
226
|
}, l(F), xe()), {
|
|
216
227
|
default: () => [u(qe("slot"), null, null)]
|
|
217
|
-
}), [[
|
|
228
|
+
}), [[ct, t.disabledTip]]);
|
|
218
229
|
}
|
|
219
|
-
Be(() =>
|
|
230
|
+
Be(() => i.value, () => {
|
|
220
231
|
H();
|
|
221
232
|
}, {
|
|
222
233
|
deep: !0
|
|
223
|
-
}),
|
|
234
|
+
}), pt(f, () => {
|
|
224
235
|
H(), _.value = Te();
|
|
225
236
|
});
|
|
226
237
|
function J(e) {
|
|
@@ -236,9 +247,9 @@ const Pt = ["title"], At = /* @__PURE__ */ Ne({
|
|
|
236
247
|
}) : J(e);
|
|
237
248
|
}
|
|
238
249
|
function je() {
|
|
239
|
-
if (!
|
|
240
|
-
const e =
|
|
241
|
-
if (
|
|
250
|
+
if (!lt(i.value)) {
|
|
251
|
+
const e = i.value;
|
|
252
|
+
if (ne(e)) {
|
|
242
253
|
const o = e.map((s) => s.label).join(",");
|
|
243
254
|
Q(o);
|
|
244
255
|
} else
|
|
@@ -246,7 +257,7 @@ const Pt = ["title"], At = /* @__PURE__ */ Ne({
|
|
|
246
257
|
}
|
|
247
258
|
}
|
|
248
259
|
return de({
|
|
249
|
-
getSelectInstance: () =>
|
|
260
|
+
getSelectInstance: () => f.value,
|
|
250
261
|
getTableInstance: () => {
|
|
251
262
|
var e;
|
|
252
263
|
return ((e = l(v)) == null ? void 0 : e.getGridInstance()) ?? void 0;
|
|
@@ -255,15 +266,15 @@ const Pt = ["title"], At = /* @__PURE__ */ Ne({
|
|
|
255
266
|
getGridProps: T,
|
|
256
267
|
setModelValue: Le,
|
|
257
268
|
setPagination: b,
|
|
258
|
-
getSelectOption: () =>
|
|
259
|
-
}), (e, o) => (x(),
|
|
269
|
+
getSelectOption: () => i.value
|
|
270
|
+
}), (e, o) => (x(), ie("div", h(l(it)(l(S), ["data-component-config", "data-testid", "data-validation-rules"]), {
|
|
260
271
|
class: [[l(w), e.$attrs.class], "w-full line-height-normal"],
|
|
261
272
|
onMouseenter: o[1] || (o[1] = (s) => C.value = !0),
|
|
262
273
|
onMouseleave: o[2] || (o[2] = (s) => C.value = !1)
|
|
263
274
|
}), [(x(), We(ze(Oe()), null, I({
|
|
264
275
|
label: c((s) => [p(e.$slots, "label", P(y(s)), () => [He("span", {
|
|
265
276
|
title: s.label,
|
|
266
|
-
class:
|
|
277
|
+
class: re({
|
|
267
278
|
"line-through": s.value.isDelete
|
|
268
279
|
})
|
|
269
280
|
}, _e(s.label), 11, Pt)])]),
|
|
@@ -273,11 +284,11 @@ const Pt = ["title"], At = /* @__PURE__ */ Ne({
|
|
|
273
284
|
fn: c(() => [p(e.$slots, "empty", {}, () => [u(ut, h({
|
|
274
285
|
ref_key: "tableRef",
|
|
275
286
|
ref: v
|
|
276
|
-
}, T.value,
|
|
287
|
+
}, T.value, ae(l(G))), I({
|
|
277
288
|
_: 2
|
|
278
289
|
}, [O(l(M), (s) => ({
|
|
279
290
|
name: l(N)(s),
|
|
280
|
-
fn: c((
|
|
291
|
+
fn: c((r) => [p(e.$slots, s, P(y(r || {})))])
|
|
281
292
|
}))]), 1040)])]),
|
|
282
293
|
key: "0"
|
|
283
294
|
} : e.renderType === "table" ? {
|
|
@@ -287,29 +298,29 @@ const Pt = ["title"], At = /* @__PURE__ */ Ne({
|
|
|
287
298
|
ref: v
|
|
288
299
|
}, T.value, {
|
|
289
300
|
"config-props": e.configProps
|
|
290
|
-
},
|
|
301
|
+
}, ae(l(G))), I({
|
|
291
302
|
_: 2
|
|
292
303
|
}, [O(l(M), (s) => ({
|
|
293
304
|
name: l(N)(s),
|
|
294
|
-
fn: c((
|
|
305
|
+
fn: c((r) => [p(e.$slots, s, P(y(r || {})))])
|
|
295
306
|
}))]), 1040, ["config-props"])])]),
|
|
296
307
|
key: "1"
|
|
297
308
|
} : void 0, O(Object.keys(e.$slots), (s) => ({
|
|
298
309
|
name: s,
|
|
299
|
-
fn: c((
|
|
300
|
-
}))]), 1024)), t.configProps.isCopy &&
|
|
310
|
+
fn: c((r) => [p(e.$slots, s, P(y(r || {})))])
|
|
311
|
+
}))]), 1024)), t.configProps.isCopy && i.value ? (x(), ie("div", {
|
|
301
312
|
key: 0,
|
|
302
|
-
class:
|
|
313
|
+
class: re([`${l(w)}__copy`, C.value ? "is-show" : "is-hidden"]),
|
|
303
314
|
title: "复制",
|
|
304
315
|
onMousedown: o[0] || (o[0] = Ge(() => {
|
|
305
316
|
}, ["stop"])),
|
|
306
317
|
onClick: je
|
|
307
|
-
}, [u(l(
|
|
308
|
-
default: c(() => [u(l(
|
|
318
|
+
}, [u(l(et), null, {
|
|
319
|
+
default: c(() => [u(l(nt))]),
|
|
309
320
|
_: 1
|
|
310
321
|
})], 34)) : Ke("", !0)], 16));
|
|
311
322
|
}
|
|
312
323
|
});
|
|
313
324
|
export {
|
|
314
|
-
|
|
325
|
+
Qt as default
|
|
315
326
|
};
|
|
@@ -1,22 +1,33 @@
|
|
|
1
|
-
import { defineComponent as C, useSlots as y, computed as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import
|
|
1
|
+
import { defineComponent as C, useSlots as y, computed as i, unref as r, withDirectives as I, createElementBlock as b, openBlock as P, normalizeClass as R, createVNode as p, mergeProps as S, toHandlers as T, createSlots as k, withCtx as a, createElementVNode as D, renderList as V, renderSlot as z, normalizeProps as N, guardReactiveProps as O } from "vue";
|
|
2
|
+
import "../../../../node_modules/.pnpm/vue-types@5.1.3_vue@3.5.21_typescript@5.9.3_/node_modules/vue-types/shim/index.modern.js";
|
|
3
|
+
import { useDesign as j } from "../../../../packages/hooks/src/useDesign.js";
|
|
4
|
+
import "axios";
|
|
5
|
+
import { vLoading as B } from "element-plus";
|
|
6
|
+
import "dayjs";
|
|
7
|
+
import L from "xe-utils";
|
|
8
|
+
import "dayjs/plugin/utc";
|
|
9
|
+
import "dayjs/plugin/timezone";
|
|
10
|
+
import "../../../../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js";
|
|
11
|
+
import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.js";
|
|
12
|
+
import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8.js";
|
|
13
|
+
import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
|
|
14
|
+
import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
|
|
15
|
+
import "lodash-es";
|
|
16
|
+
import { TtEmpty as M } from "../../../tt-empty/index.js";
|
|
17
|
+
import { VxeGrid as X } from "vxe-table";
|
|
18
|
+
import { tableEmits as c } from "vxe-table/es/table/src/emits";
|
|
8
19
|
import { GRID_MIN_HEIGHT as A, GRID_MAX_HEIGHT as U } from "../const.js";
|
|
9
20
|
import { useGrid as Y } from "../hooks/useGrid.js";
|
|
10
21
|
import { selectTableProps as $ } from "../props.js";
|
|
11
|
-
const q = { class: "flex flex-col items-center justify-center" },
|
|
22
|
+
const q = { class: "flex flex-col items-center justify-center" }, ge = /* @__PURE__ */ C({
|
|
12
23
|
__name: "SelectTable",
|
|
13
24
|
props: $,
|
|
14
|
-
emits:
|
|
15
|
-
setup(
|
|
16
|
-
const e =
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
),
|
|
25
|
+
emits: c,
|
|
26
|
+
setup(d, { expose: f, emit: u }) {
|
|
27
|
+
const e = d, g = u, h = y(), s = {}, { prefixCls: v } = j("select-v2-grid"), { getColumns: w, rowStyle: _, gridRef: m, getOtherGridConfig: x } = Y(
|
|
28
|
+
i(() => e.grid),
|
|
29
|
+
i(() => e)
|
|
30
|
+
), n = i(() => {
|
|
20
31
|
const t = x();
|
|
21
32
|
return {
|
|
22
33
|
maxHeight: U,
|
|
@@ -39,48 +50,48 @@ const q = { class: "flex flex-col items-center justify-center" }, se = /* @__PUR
|
|
|
39
50
|
// autoResize: false,
|
|
40
51
|
};
|
|
41
52
|
});
|
|
42
|
-
|
|
43
|
-
const
|
|
44
|
-
|
|
53
|
+
c.forEach((t) => {
|
|
54
|
+
const l = L.camelCase(t);
|
|
55
|
+
s[l] = (...o) => g(t, ...o);
|
|
45
56
|
});
|
|
46
|
-
const G =
|
|
47
|
-
...
|
|
57
|
+
const G = i(() => ({
|
|
58
|
+
...s
|
|
48
59
|
}));
|
|
49
60
|
function H() {
|
|
50
|
-
return r(
|
|
61
|
+
return r(m);
|
|
51
62
|
}
|
|
52
63
|
return f({
|
|
53
64
|
getGridInstance: H
|
|
54
|
-
}), (t,
|
|
65
|
+
}), (t, l) => I((P(), b("div", {
|
|
55
66
|
class: R(["w-full", {
|
|
56
67
|
[r(v)]: !0,
|
|
57
|
-
"pt-5px": !
|
|
68
|
+
"pt-5px": !n.value.showHeader
|
|
58
69
|
}])
|
|
59
70
|
}, [
|
|
60
|
-
|
|
71
|
+
p(r(X), S({
|
|
61
72
|
ref_key: "gridRef",
|
|
62
|
-
ref:
|
|
73
|
+
ref: m,
|
|
63
74
|
class: "max-w-1000px min-w-100%"
|
|
64
|
-
},
|
|
65
|
-
empty:
|
|
75
|
+
}, n.value, T(G.value)), k({
|
|
76
|
+
empty: a(() => [
|
|
66
77
|
D("div", q, [
|
|
67
|
-
|
|
78
|
+
p(r(M))
|
|
68
79
|
])
|
|
69
80
|
]),
|
|
70
81
|
_: 2
|
|
71
82
|
}, [
|
|
72
83
|
V(Object.keys(r(h)), (o) => ({
|
|
73
84
|
name: o,
|
|
74
|
-
fn:
|
|
85
|
+
fn: a((E) => [
|
|
75
86
|
z(t.$slots, o, N(O(E)))
|
|
76
87
|
])
|
|
77
88
|
}))
|
|
78
89
|
]), 1040)
|
|
79
90
|
], 2)), [
|
|
80
|
-
[r(
|
|
91
|
+
[r(B), t.loading]
|
|
81
92
|
]);
|
|
82
93
|
}
|
|
83
94
|
});
|
|
84
95
|
export {
|
|
85
|
-
|
|
96
|
+
ge as default
|
|
86
97
|
};
|