@gct-paas/word 0.1.47-beta.3 → 0.1.47-beta.4
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/index.es.js +140 -74
- package/dist/runtime/renderer/dropdowns/components/tables/composables/useTableDropdown.d.ts +1 -0
- package/dist/runtime/renderer/dropdowns/components/tables/strategy/selectStrategy.d.ts +2 -0
- package/dist/runtime/renderer/dropdowns/components/tree/tree-node.vue.d.ts +2 -0
- package/dist/word.css +20 -15
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -33027,7 +33027,7 @@ const _hoisted_2$1r = { class: "gct-dtp-date" };
|
|
|
33027
33027
|
const _hoisted_3$17 = { class: "gct-dtp-header" };
|
|
33028
33028
|
const _hoisted_4$Q = { class: "text" };
|
|
33029
33029
|
const _hoisted_5$E = { class: "gct-dtp-head" };
|
|
33030
|
-
const _hoisted_6$
|
|
33030
|
+
const _hoisted_6$r = { class: "gct-dtp-rows-wrapper" };
|
|
33031
33031
|
const _hoisted_7$n = ["onClick"];
|
|
33032
33032
|
const _hoisted_8$h = { class: "dtp-day-label" };
|
|
33033
33033
|
const _hoisted_9$b = {
|
|
@@ -33243,7 +33243,7 @@ const _sfc_main$3o = /* @__PURE__ */ defineComponent({
|
|
|
33243
33243
|
}, toDisplayString(d), 1);
|
|
33244
33244
|
}), 128))
|
|
33245
33245
|
]),
|
|
33246
|
-
createElementVNode("div", _hoisted_6$
|
|
33246
|
+
createElementVNode("div", _hoisted_6$r, [
|
|
33247
33247
|
createVNode(Transition, {
|
|
33248
33248
|
name: transitionName.value,
|
|
33249
33249
|
mode: "out-in"
|
|
@@ -33440,7 +33440,7 @@ const _hoisted_3$15 = {
|
|
|
33440
33440
|
};
|
|
33441
33441
|
const _hoisted_4$P = ["onClick"];
|
|
33442
33442
|
const _hoisted_5$D = { class: "option-label" };
|
|
33443
|
-
const _hoisted_6$
|
|
33443
|
+
const _hoisted_6$q = { class: "option-right" };
|
|
33444
33444
|
const _hoisted_7$m = {
|
|
33445
33445
|
key: 1,
|
|
33446
33446
|
class: "divider"
|
|
@@ -33559,7 +33559,7 @@ const _sfc_main$3k = /* @__PURE__ */ defineComponent({
|
|
|
33559
33559
|
]),
|
|
33560
33560
|
_: 2
|
|
33561
33561
|
}, 1032, ["disabled"]),
|
|
33562
|
-
createElementVNode("div", _hoisted_6$
|
|
33562
|
+
createElementVNode("div", _hoisted_6$q, [
|
|
33563
33563
|
withDirectives(createVNode(unref(GctIcon), {
|
|
33564
33564
|
class: "edit-icon",
|
|
33565
33565
|
icon: "icon-sheji-2",
|
|
@@ -33871,7 +33871,7 @@ const _hoisted_5$C = {
|
|
|
33871
33871
|
key: 2,
|
|
33872
33872
|
class: "upload-loading"
|
|
33873
33873
|
};
|
|
33874
|
-
const _hoisted_6$
|
|
33874
|
+
const _hoisted_6$p = ["accept"];
|
|
33875
33875
|
const _hoisted_7$l = ["src"];
|
|
33876
33876
|
const _sfc_main$3f = /* @__PURE__ */ defineComponent({
|
|
33877
33877
|
__name: "image-upload",
|
|
@@ -33972,7 +33972,7 @@ const _sfc_main$3f = /* @__PURE__ */ defineComponent({
|
|
|
33972
33972
|
class: "gct-upload-hidden-input",
|
|
33973
33973
|
accept: __props.accept,
|
|
33974
33974
|
onChange: handleChange
|
|
33975
|
-
}, null, 40, _hoisted_6$
|
|
33975
|
+
}, null, 40, _hoisted_6$p),
|
|
33976
33976
|
previewUrl.value ? (openBlock(), createElementBlock("div", {
|
|
33977
33977
|
key: 0,
|
|
33978
33978
|
class: "preview-mask",
|
|
@@ -33999,7 +33999,7 @@ const _hoisted_4$N = {
|
|
|
33999
33999
|
class: "gct-input-count"
|
|
34000
34000
|
};
|
|
34001
34001
|
const _hoisted_5$B = { key: 0 };
|
|
34002
|
-
const _hoisted_6$
|
|
34002
|
+
const _hoisted_6$o = {
|
|
34003
34003
|
key: 3,
|
|
34004
34004
|
class: "gct-input-suffix"
|
|
34005
34005
|
};
|
|
@@ -34208,7 +34208,7 @@ const _sfc_main$3e = /* @__PURE__ */ defineComponent({
|
|
|
34208
34208
|
createTextVNode(toDisplayString(countValue.value), 1),
|
|
34209
34209
|
props.maxLength ? (openBlock(), createElementBlock("span", _hoisted_5$B, " / " + toDisplayString(props.maxLength), 1)) : createCommentVNode("", true)
|
|
34210
34210
|
])) : createCommentVNode("", true),
|
|
34211
|
-
props.suffix ? (openBlock(), createElementBlock("span", _hoisted_6$
|
|
34211
|
+
props.suffix ? (openBlock(), createElementBlock("span", _hoisted_6$o, [
|
|
34212
34212
|
createElementVNode("span", _hoisted_7$k, toDisplayString(__props.suffix), 1)
|
|
34213
34213
|
])) : createCommentVNode("", true)
|
|
34214
34214
|
], 2)
|
|
@@ -36044,7 +36044,7 @@ const _hoisted_5$z = {
|
|
|
36044
36044
|
key: 2,
|
|
36045
36045
|
class: "empty"
|
|
36046
36046
|
};
|
|
36047
|
-
const _hoisted_6$
|
|
36047
|
+
const _hoisted_6$n = ["title"];
|
|
36048
36048
|
const _hoisted_7$j = { class: "selection-tag-content" };
|
|
36049
36049
|
const _hoisted_8$f = {
|
|
36050
36050
|
key: 2,
|
|
@@ -36260,7 +36260,7 @@ const _sfc_main$33 = /* @__PURE__ */ defineComponent({
|
|
|
36260
36260
|
key: 0,
|
|
36261
36261
|
class: "select-selection-item",
|
|
36262
36262
|
title: selectedOptions.value[0].label
|
|
36263
|
-
}, toDisplayString(selectedOptions.value[0].label), 9, _hoisted_6$
|
|
36263
|
+
}, toDisplayString(selectedOptions.value[0].label), 9, _hoisted_6$n)) : createCommentVNode("", true),
|
|
36264
36264
|
__props.multiple ? (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(selectedOptions.value, (item, idx) => {
|
|
36265
36265
|
return openBlock(), createElementBlock("span", {
|
|
36266
36266
|
class: "select-selection-tag",
|
|
@@ -37314,7 +37314,7 @@ const _hoisted_3$S = {
|
|
|
37314
37314
|
};
|
|
37315
37315
|
const _hoisted_4$G = ["title"];
|
|
37316
37316
|
const _hoisted_5$v = { class: "rdo-tree-select__value-text" };
|
|
37317
|
-
const _hoisted_6$
|
|
37317
|
+
const _hoisted_6$m = {
|
|
37318
37318
|
key: 0,
|
|
37319
37319
|
class: "rdo-tree-select__value-tag"
|
|
37320
37320
|
};
|
|
@@ -37540,7 +37540,7 @@ const _sfc_main$2Y = /* @__PURE__ */ defineComponent({
|
|
|
37540
37540
|
title: selectedDisplay.value.text
|
|
37541
37541
|
}, [
|
|
37542
37542
|
createElementVNode("span", _hoisted_5$v, toDisplayString(selectedDisplay.value.text), 1),
|
|
37543
|
-
selectedDisplay.value.showDefaultTag ? (openBlock(), createElementBlock("span", _hoisted_6$
|
|
37543
|
+
selectedDisplay.value.showDefaultTag ? (openBlock(), createElementBlock("span", _hoisted_6$m, "默认")) : createCommentVNode("", true)
|
|
37544
37544
|
], 8, _hoisted_4$G)) : (openBlock(), createElementBlock("span", _hoisted_7$i, toDisplayString(__props.placeholder), 1)),
|
|
37545
37545
|
innerValue.value && __props.allowClear && !__props.disabled ? (openBlock(), createBlock(unref(GctIcon), {
|
|
37546
37546
|
key: 2,
|
|
@@ -53875,7 +53875,7 @@ const apiFetchers = {
|
|
|
53875
53875
|
const { isLinkQuery, ...otherQueryData } = queryData || {};
|
|
53876
53876
|
let result;
|
|
53877
53877
|
if (isLinkQuery) {
|
|
53878
|
-
const { dataIds, refModelChain } = otherQueryData || {};
|
|
53878
|
+
const { dataIds, refModelChain, ...searchQuery } = otherQueryData || {};
|
|
53879
53879
|
result = await api.apaas.modelComprehensive.postQueryRefChainDataModelCategory(
|
|
53880
53880
|
{ modelCategory: API_CONFIG.ENTITY_CATEGORY },
|
|
53881
53881
|
{
|
|
@@ -53884,7 +53884,8 @@ const apiFetchers = {
|
|
|
53884
53884
|
dataIds,
|
|
53885
53885
|
refModelChain,
|
|
53886
53886
|
pageSize,
|
|
53887
|
-
pageNo
|
|
53887
|
+
pageNo,
|
|
53888
|
+
...exp ? { exp, query: searchQuery } : {}
|
|
53888
53889
|
}
|
|
53889
53890
|
);
|
|
53890
53891
|
} else {
|
|
@@ -107292,7 +107293,7 @@ const _hoisted_2$15 = ["onMouseenter"];
|
|
|
107292
107293
|
const _hoisted_3$O = ["onClick"];
|
|
107293
107294
|
const _hoisted_4$E = ["onMousedown"];
|
|
107294
107295
|
const _hoisted_5$t = { class: "row-headers" };
|
|
107295
|
-
const _hoisted_6$
|
|
107296
|
+
const _hoisted_6$l = ["onMouseenter"];
|
|
107296
107297
|
const _hoisted_7$h = ["onClick"];
|
|
107297
107298
|
const _hoisted_8$e = ["onMousedown"];
|
|
107298
107299
|
const _sfc_main$2v = /* @__PURE__ */ defineComponent({
|
|
@@ -107618,7 +107619,7 @@ const _sfc_main$2v = /* @__PURE__ */ defineComponent({
|
|
|
107618
107619
|
size: "14"
|
|
107619
107620
|
}, null, 8, ["class"])
|
|
107620
107621
|
], 32)) : createCommentVNode("", true)
|
|
107621
|
-
], 40, _hoisted_6$
|
|
107622
|
+
], 40, _hoisted_6$l),
|
|
107622
107623
|
!unref(isTableAllSelected)(__props.widget.id) && unref(isTableRowSelected)(__props.widget.id, rowIndex) ? (openBlock(), createElementBlock("div", {
|
|
107623
107624
|
key: 0,
|
|
107624
107625
|
class: "row-remove-btn",
|
|
@@ -107881,7 +107882,7 @@ const _hoisted_2$14 = { class: "action-group" };
|
|
|
107881
107882
|
const _hoisted_3$N = { class: "insert-row-container" };
|
|
107882
107883
|
const _hoisted_4$D = { class: "insert-row-item" };
|
|
107883
107884
|
const _hoisted_5$s = { class: "insert-row-item" };
|
|
107884
|
-
const _hoisted_6$
|
|
107885
|
+
const _hoisted_6$k = { class: "sub-table-btn" };
|
|
107885
107886
|
const _hoisted_7$g = { class: "sub-table-action-bar" };
|
|
107886
107887
|
const _hoisted_8$d = { class: "sub-table-btn" };
|
|
107887
107888
|
const _sfc_main$2r = /* @__PURE__ */ defineComponent({
|
|
@@ -108036,7 +108037,7 @@ const _sfc_main$2r = /* @__PURE__ */ defineComponent({
|
|
|
108036
108037
|
])
|
|
108037
108038
|
]),
|
|
108038
108039
|
default: withCtx(() => [
|
|
108039
|
-
createElementVNode("div", _hoisted_6$
|
|
108040
|
+
createElementVNode("div", _hoisted_6$k, [
|
|
108040
108041
|
createVNode(unref(GctIcon), {
|
|
108041
108042
|
icon: "icon-gengduo1",
|
|
108042
108043
|
color: "#fff"
|
|
@@ -109813,7 +109814,7 @@ const _hoisted_2$$ = { class: "color-content-auto" };
|
|
|
109813
109814
|
const _hoisted_3$L = { class: "color-content-theme" };
|
|
109814
109815
|
const _hoisted_4$C = ["onClick"];
|
|
109815
109816
|
const _hoisted_5$r = { class: "color-content-standard" };
|
|
109816
|
-
const _hoisted_6$
|
|
109817
|
+
const _hoisted_6$j = { class: "items" };
|
|
109817
109818
|
const _hoisted_7$f = ["onClick"];
|
|
109818
109819
|
const _hoisted_8$c = { class: "color-content-used" };
|
|
109819
109820
|
const _hoisted_9$9 = { class: "items" };
|
|
@@ -109904,7 +109905,7 @@ const _sfc_main$2i = /* @__PURE__ */ defineComponent({
|
|
|
109904
109905
|
]),
|
|
109905
109906
|
createElementVNode("div", _hoisted_5$r, [
|
|
109906
109907
|
_cache[4] || (_cache[4] = createElementVNode("div", { class: "title" }, "标准色", -1)),
|
|
109907
|
-
createElementVNode("div", _hoisted_6$
|
|
109908
|
+
createElementVNode("div", _hoisted_6$j, [
|
|
109908
109909
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(colorUtils).standard, (c2, idx) => {
|
|
109909
109910
|
return openBlock(), createBlock(unref(_sfc_main$2$), {
|
|
109910
109911
|
distance: 12,
|
|
@@ -110388,7 +110389,7 @@ const _hoisted_2$_ = { class: "ribbon-tab-item" };
|
|
|
110388
110389
|
const _hoisted_3$K = { class: "ribbon-tab-item" };
|
|
110389
110390
|
const _hoisted_4$B = { class: "ribbon-tab-item" };
|
|
110390
110391
|
const _hoisted_5$q = { class: "ribbon-tab-item" };
|
|
110391
|
-
const _hoisted_6$
|
|
110392
|
+
const _hoisted_6$i = { class: "ribbon-tab-item" };
|
|
110392
110393
|
const _hoisted_7$e = { class: "ribbon-tab-item" };
|
|
110393
110394
|
const _sfc_main$2e = /* @__PURE__ */ defineComponent({
|
|
110394
110395
|
__name: "word-tab",
|
|
@@ -110747,7 +110748,7 @@ const _sfc_main$2e = /* @__PURE__ */ defineComponent({
|
|
|
110747
110748
|
}, null, 8, ["active"])
|
|
110748
110749
|
]),
|
|
110749
110750
|
_cache[28] || (_cache[28] = createElementVNode("div", { class: "split-divider" }, null, -1)),
|
|
110750
|
-
createElementVNode("div", _hoisted_6$
|
|
110751
|
+
createElementVNode("div", _hoisted_6$i, [
|
|
110751
110752
|
createVNode(ButtonIcon, {
|
|
110752
110753
|
tooltip: "表格",
|
|
110753
110754
|
iconExtraProps: { icon: "icon-dongtaibiao" },
|
|
@@ -111061,7 +111062,7 @@ const _hoisted_5$o = {
|
|
|
111061
111062
|
key: 0,
|
|
111062
111063
|
class: "field-list-wrap"
|
|
111063
111064
|
};
|
|
111064
|
-
const _hoisted_6$
|
|
111065
|
+
const _hoisted_6$h = { class: "field-list" };
|
|
111065
111066
|
const _hoisted_7$d = ["draggable", "onDragstart"];
|
|
111066
111067
|
const _hoisted_8$b = ["innerHTML", "title"];
|
|
111067
111068
|
const _hoisted_9$8 = {
|
|
@@ -111168,7 +111169,7 @@ const _sfc_main$2b = /* @__PURE__ */ defineComponent({
|
|
|
111168
111169
|
filteredFields.value.length ? (openBlock(), createElementBlock("div", _hoisted_5$o, [
|
|
111169
111170
|
createVNode(unref(GctScrollbar), null, {
|
|
111170
111171
|
default: withCtx(() => [
|
|
111171
|
-
createElementVNode("div", _hoisted_6$
|
|
111172
|
+
createElementVNode("div", _hoisted_6$h, [
|
|
111172
111173
|
(openBlock(true), createElementBlock(Fragment, null, renderList(filteredFields.value, (f) => {
|
|
111173
111174
|
return openBlock(), createElementBlock("div", {
|
|
111174
111175
|
key: f.field.id,
|
|
@@ -112275,7 +112276,7 @@ const _hoisted_2$T = { class: "validation-comment-panel-container" };
|
|
|
112275
112276
|
const _hoisted_3$E = { class: "comment-header" };
|
|
112276
112277
|
const _hoisted_4$w = { class: "comment-messages" };
|
|
112277
112278
|
const _hoisted_5$m = { class: "message-item" };
|
|
112278
|
-
const _hoisted_6$
|
|
112279
|
+
const _hoisted_6$g = { class: "field-name" };
|
|
112279
112280
|
const _hoisted_7$c = { class: "error-text" };
|
|
112280
112281
|
const _sfc_main$20 = /* @__PURE__ */ defineComponent({
|
|
112281
112282
|
__name: "validation-comment-item",
|
|
@@ -112362,7 +112363,7 @@ const _sfc_main$20 = /* @__PURE__ */ defineComponent({
|
|
|
112362
112363
|
createElementVNode("div", _hoisted_4$w, [
|
|
112363
112364
|
(openBlock(true), createElementBlock(Fragment, null, renderList(fieldErrorList.value, (item) => {
|
|
112364
112365
|
return openBlock(), createElementBlock("div", _hoisted_5$m, [
|
|
112365
|
-
createElementVNode("div", _hoisted_6$
|
|
112366
|
+
createElementVNode("div", _hoisted_6$g, toDisplayString(unref(fieldInfo)?.name) + ":", 1),
|
|
112366
112367
|
createElementVNode("div", _hoisted_7$c, toDisplayString(item.message), 1)
|
|
112367
112368
|
]);
|
|
112368
112369
|
}), 256))
|
|
@@ -112465,7 +112466,7 @@ const _hoisted_5$l = {
|
|
|
112465
112466
|
key: 0,
|
|
112466
112467
|
class: "cl__hdr-flag"
|
|
112467
112468
|
};
|
|
112468
|
-
const _hoisted_6$
|
|
112469
|
+
const _hoisted_6$f = { class: "cl__user" };
|
|
112469
112470
|
const _hoisted_7$b = ["dateTime"];
|
|
112470
112471
|
const _hoisted_8$a = {
|
|
112471
112472
|
key: 0,
|
|
@@ -112578,7 +112579,7 @@ const _sfc_main$1_ = /* @__PURE__ */ defineComponent({
|
|
|
112578
112579
|
createElementVNode("div", _hoisted_4$v, toDisplayString(getHeaderLabel(__props.data.changeType)), 1),
|
|
112579
112580
|
__props.data.isCurrentChange ? (openBlock(), createElementBlock("div", _hoisted_5$l, "本次变更")) : createCommentVNode("", true)
|
|
112580
112581
|
]),
|
|
112581
|
-
createElementVNode("div", _hoisted_6$
|
|
112582
|
+
createElementVNode("div", _hoisted_6$f, [
|
|
112582
112583
|
createVNode(unref(GctAvatar), {
|
|
112583
112584
|
class: "cl__avatar",
|
|
112584
112585
|
name: __props.data.userName,
|
|
@@ -113177,7 +113178,7 @@ const _hoisted_5$k = {
|
|
|
113177
113178
|
key: 1,
|
|
113178
113179
|
class: "design-footer"
|
|
113179
113180
|
};
|
|
113180
|
-
const _hoisted_6$
|
|
113181
|
+
const _hoisted_6$e = { style: { "padding": "0 12px" } };
|
|
113181
113182
|
const _hoisted_7$a = { style: { "padding": "0 12px" } };
|
|
113182
113183
|
const _sfc_main$1W = /* @__PURE__ */ defineComponent({
|
|
113183
113184
|
__name: "doc-design-layout",
|
|
@@ -113269,7 +113270,7 @@ const _sfc_main$1W = /* @__PURE__ */ defineComponent({
|
|
|
113269
113270
|
]),
|
|
113270
113271
|
!isPreview.value ? (openBlock(), createElementBlock("footer", _hoisted_5$k, [
|
|
113271
113272
|
createElementVNode("div", null, [
|
|
113272
|
-
createElementVNode("span", _hoisted_6$
|
|
113273
|
+
createElementVNode("span", _hoisted_6$e, " 布局刷新次数:" + toDisplayString(unref(docInfo).updateTick), 1),
|
|
113273
113274
|
createElementVNode("span", _hoisted_7$a, " 模式:" + toDisplayString(unref(docInst)?.modeLabel), 1)
|
|
113274
113275
|
])
|
|
113275
113276
|
])) : createCommentVNode("", true)
|
|
@@ -117564,7 +117565,7 @@ const _hoisted_5$j = {
|
|
|
117564
117565
|
key: 1,
|
|
117565
117566
|
class: "link"
|
|
117566
117567
|
};
|
|
117567
|
-
const _hoisted_6$
|
|
117568
|
+
const _hoisted_6$d = {
|
|
117568
117569
|
key: 2,
|
|
117569
117570
|
class: "body"
|
|
117570
117571
|
};
|
|
@@ -117619,7 +117620,7 @@ const _sfc_main$1y = /* @__PURE__ */ defineComponent({
|
|
|
117619
117620
|
color: "#797a7d"
|
|
117620
117621
|
})
|
|
117621
117622
|
])) : createCommentVNode("", true),
|
|
117622
|
-
item ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
117623
|
+
item ? (openBlock(), createElementBlock("div", _hoisted_6$d, [
|
|
117623
117624
|
createElementVNode("span", _hoisted_7$9, toDisplayString(item.name || "[空]"), 1),
|
|
117624
117625
|
createVNode(unref(GctIcon), {
|
|
117625
117626
|
class: "icon",
|
|
@@ -120335,7 +120336,7 @@ const _hoisted_2$A = { class: "field-map-container" };
|
|
|
120335
120336
|
const _hoisted_3$p = { class: "field-map-content" };
|
|
120336
120337
|
const _hoisted_4$k = { class: "field-map-item" };
|
|
120337
120338
|
const _hoisted_5$g = { class: "blank last" };
|
|
120338
|
-
const _hoisted_6$
|
|
120339
|
+
const _hoisted_6$c = ["onClick"];
|
|
120339
120340
|
const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
120340
120341
|
__name: "data-source-field-map",
|
|
120341
120342
|
props: {
|
|
@@ -120550,7 +120551,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
120550
120551
|
createElementVNode("i", {
|
|
120551
120552
|
class: "iconfont icon-shanchu",
|
|
120552
120553
|
onClick: ($event) => removeFieldItem(field)
|
|
120553
|
-
}, null, 8, _hoisted_6$
|
|
120554
|
+
}, null, 8, _hoisted_6$c)
|
|
120554
120555
|
])
|
|
120555
120556
|
]);
|
|
120556
120557
|
}), 128))
|
|
@@ -121032,7 +121033,7 @@ const _hoisted_2$x = { class: "form-row current-component" };
|
|
|
121032
121033
|
const _hoisted_3$m = { class: "control" };
|
|
121033
121034
|
const _hoisted_4$i = { class: "field-icon" };
|
|
121034
121035
|
const _hoisted_5$e = { class: "form-row" };
|
|
121035
|
-
const _hoisted_6$
|
|
121036
|
+
const _hoisted_6$b = { class: "control" };
|
|
121036
121037
|
const _hoisted_7$8 = { class: "form-row" };
|
|
121037
121038
|
const _hoisted_8$8 = { class: "control" };
|
|
121038
121039
|
const _hoisted_9$6 = { class: "form-row current-component" };
|
|
@@ -121161,7 +121162,7 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
121161
121162
|
]),
|
|
121162
121163
|
createElementVNode("div", _hoisted_5$e, [
|
|
121163
121164
|
_cache[8] || (_cache[8] = createElementVNode("div", { class: "label" }, "组件行为", -1)),
|
|
121164
|
-
createElementVNode("div", _hoisted_6$
|
|
121165
|
+
createElementVNode("div", _hoisted_6$b, [
|
|
121165
121166
|
createVNode(unref(GctRadioGroup), {
|
|
121166
121167
|
modelValue: formState.type,
|
|
121167
121168
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => formState.type = $event),
|
|
@@ -121265,7 +121266,7 @@ const _hoisted_2$w = { class: "field-dependency-list" };
|
|
|
121265
121266
|
const _hoisted_3$l = { class: "item-header" };
|
|
121266
121267
|
const _hoisted_4$h = { class: "title" };
|
|
121267
121268
|
const _hoisted_5$d = { class: "main" };
|
|
121268
|
-
const _hoisted_6$
|
|
121269
|
+
const _hoisted_6$a = {
|
|
121269
121270
|
key: 0,
|
|
121270
121271
|
class: "label"
|
|
121271
121272
|
};
|
|
@@ -121408,7 +121409,7 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
121408
121409
|
createElementVNode("div", _hoisted_3$l, [
|
|
121409
121410
|
createElementVNode("div", _hoisted_4$h, [
|
|
121410
121411
|
createElementVNode("span", _hoisted_5$d, toDisplayString(unref(FieldDependencyTypeCh)[type4]), 1),
|
|
121411
|
-
type4 === unref(FieldDependencyTypeConst).Assignment ? (openBlock(), createElementBlock("span", _hoisted_6$
|
|
121412
|
+
type4 === unref(FieldDependencyTypeConst).Assignment ? (openBlock(), createElementBlock("span", _hoisted_6$a, " 公式计算 ")) : createCommentVNode("", true)
|
|
121412
121413
|
]),
|
|
121413
121414
|
createElementVNode("div", _hoisted_7$7, [
|
|
121414
121415
|
createVNode(unref(GctIcon), {
|
|
@@ -122751,7 +122752,7 @@ const _hoisted_2$q = { class: "container" };
|
|
|
122751
122752
|
const _hoisted_3$f = { class: "header" };
|
|
122752
122753
|
const _hoisted_4$d = { class: "header-action" };
|
|
122753
122754
|
const _hoisted_5$b = { class: "autofill-form" };
|
|
122754
|
-
const _hoisted_6$
|
|
122755
|
+
const _hoisted_6$9 = { class: "form-col" };
|
|
122755
122756
|
const _hoisted_7$6 = {
|
|
122756
122757
|
key: 0,
|
|
122757
122758
|
class: "error-text"
|
|
@@ -122934,7 +122935,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
122934
122935
|
key: rule.id,
|
|
122935
122936
|
class: "form-row rule-item"
|
|
122936
122937
|
}, [
|
|
122937
|
-
createElementVNode("div", _hoisted_6$
|
|
122938
|
+
createElementVNode("div", _hoisted_6$9, [
|
|
122938
122939
|
createVNode(unref(GctSelect), {
|
|
122939
122940
|
modelValue: rule.fromField,
|
|
122940
122941
|
"onUpdate:modelValue": ($event) => rule.fromField = $event,
|
|
@@ -123188,7 +123189,7 @@ const _hoisted_5$a = {
|
|
|
123188
123189
|
key: 1,
|
|
123189
123190
|
class: "date-format-editor__row"
|
|
123190
123191
|
};
|
|
123191
|
-
const _hoisted_6$
|
|
123192
|
+
const _hoisted_6$8 = { class: "date-format-editor__col" };
|
|
123192
123193
|
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
123193
123194
|
__name: "date-format-editor",
|
|
123194
123195
|
props: {
|
|
@@ -123248,7 +123249,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
123248
123249
|
}, null, 8, ["modelValue", "options"])
|
|
123249
123250
|
])
|
|
123250
123251
|
])) : (openBlock(), createElementBlock("div", _hoisted_5$a, [
|
|
123251
|
-
createElementVNode("div", _hoisted_6$
|
|
123252
|
+
createElementVNode("div", _hoisted_6$8, [
|
|
123252
123253
|
createVNode(unref(GctInput), {
|
|
123253
123254
|
modelValue: unref(customFormatValue),
|
|
123254
123255
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => isRef(customFormatValue) ? customFormatValue.value = $event : null),
|
|
@@ -123704,7 +123705,7 @@ const _hoisted_4$b = {
|
|
|
123704
123705
|
class: "error"
|
|
123705
123706
|
};
|
|
123706
123707
|
const _hoisted_5$9 = { class: "form-row" };
|
|
123707
|
-
const _hoisted_6$
|
|
123708
|
+
const _hoisted_6$7 = { class: "control" };
|
|
123708
123709
|
const _hoisted_7$5 = {
|
|
123709
123710
|
key: 0,
|
|
123710
123711
|
class: "error"
|
|
@@ -123819,7 +123820,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
123819
123820
|
]),
|
|
123820
123821
|
createElementVNode("div", _hoisted_5$9, [
|
|
123821
123822
|
_cache[7] || (_cache[7] = createElementVNode("div", { class: "label" }, "实际值", -1)),
|
|
123822
|
-
createElementVNode("div", _hoisted_6$
|
|
123823
|
+
createElementVNode("div", _hoisted_6$7, [
|
|
123823
123824
|
createVNode(unref(GctInput), {
|
|
123824
123825
|
modelValue: formState.value,
|
|
123825
123826
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => formState.value = $event),
|
|
@@ -125122,7 +125123,7 @@ const _hoisted_5$8 = {
|
|
|
125122
125123
|
key: 0,
|
|
125123
125124
|
class: "error-text"
|
|
125124
125125
|
};
|
|
125125
|
-
const _hoisted_6$
|
|
125126
|
+
const _hoisted_6$6 = { class: "qrcode-parse-modal__divider" };
|
|
125126
125127
|
const _hoisted_7$4 = {
|
|
125127
125128
|
key: 0,
|
|
125128
125129
|
class: "error-text"
|
|
@@ -125312,7 +125313,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
125312
125313
|
]),
|
|
125313
125314
|
_: 2
|
|
125314
125315
|
}, 1024),
|
|
125315
|
-
createElementVNode("div", _hoisted_6$
|
|
125316
|
+
createElementVNode("div", _hoisted_6$6, [
|
|
125316
125317
|
createVNode(unref(GctIcon), {
|
|
125317
125318
|
icon: "icon-lianjie",
|
|
125318
125319
|
color: "#c6c6c6",
|
|
@@ -126416,7 +126417,7 @@ const _hoisted_2$b = { class: "line-direction-item" };
|
|
|
126416
126417
|
const _hoisted_3$9 = { class: "line-direction-item" };
|
|
126417
126418
|
const _hoisted_4$8 = { class: "content" };
|
|
126418
126419
|
const _hoisted_5$6 = { class: "content" };
|
|
126419
|
-
const _hoisted_6$
|
|
126420
|
+
const _hoisted_6$5 = { class: "value" };
|
|
126420
126421
|
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
126421
126422
|
__name: "widget-line-config",
|
|
126422
126423
|
props: {
|
|
@@ -126540,7 +126541,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
126540
126541
|
]),
|
|
126541
126542
|
createElementVNode("div", _hoisted_5$6, [
|
|
126542
126543
|
_cache[10] || (_cache[10] = createElementVNode("div", { class: "label" }, "线条外观", -1)),
|
|
126543
|
-
createElementVNode("div", _hoisted_6$
|
|
126544
|
+
createElementVNode("div", _hoisted_6$5, [
|
|
126544
126545
|
createVNode(unref(GctSelect), {
|
|
126545
126546
|
modelValue: formState.value.borderStyle,
|
|
126546
126547
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => formState.value.borderStyle = $event),
|
|
@@ -127043,7 +127044,7 @@ const _hoisted_2$9 = { class: "options-search" };
|
|
|
127043
127044
|
const _hoisted_3$7 = { class: "options-dropdown-container" };
|
|
127044
127045
|
const _hoisted_4$6 = ["onClick"];
|
|
127045
127046
|
const _hoisted_5$5 = ["innerHTML", "title"];
|
|
127046
|
-
const _hoisted_6$
|
|
127047
|
+
const _hoisted_6$4 = { class: "option-right" };
|
|
127047
127048
|
const _hoisted_7$3 = {
|
|
127048
127049
|
key: 0,
|
|
127049
127050
|
class: "empty"
|
|
@@ -127202,7 +127203,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
127202
127203
|
]),
|
|
127203
127204
|
_: 2
|
|
127204
127205
|
}, 1032, ["disabled"]),
|
|
127205
|
-
createElementVNode("div", _hoisted_6$
|
|
127206
|
+
createElementVNode("div", _hoisted_6$4, [
|
|
127206
127207
|
__props.isMultiple && isSelected(item) ? (openBlock(), createBlock(unref(GctIcon), {
|
|
127207
127208
|
key: 0,
|
|
127208
127209
|
class: "check-icon",
|
|
@@ -127242,7 +127243,7 @@ const optionDropdown$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.de
|
|
|
127242
127243
|
__proto__: null,
|
|
127243
127244
|
default: optionDropdown
|
|
127244
127245
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
127245
|
-
const _hoisted_1$d =
|
|
127246
|
+
const _hoisted_1$d = ["innerHTML"];
|
|
127246
127247
|
const _hoisted_2$8 = { class: "node-right" };
|
|
127247
127248
|
const _hoisted_3$6 = { key: 0 };
|
|
127248
127249
|
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
@@ -127251,13 +127252,26 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
127251
127252
|
node: {},
|
|
127252
127253
|
level: {},
|
|
127253
127254
|
modelValue: {},
|
|
127254
|
-
multiple: { type: Boolean }
|
|
127255
|
+
multiple: { type: Boolean },
|
|
127256
|
+
forceExpand: { type: Boolean },
|
|
127257
|
+
highlightName: { type: Function }
|
|
127255
127258
|
},
|
|
127256
127259
|
emits: ["select"],
|
|
127257
127260
|
setup(__props, { emit: __emit }) {
|
|
127258
127261
|
const props = __props;
|
|
127259
127262
|
const emit = __emit;
|
|
127260
127263
|
const expanded = ref(true);
|
|
127264
|
+
watch(
|
|
127265
|
+
() => props.forceExpand,
|
|
127266
|
+
(val) => {
|
|
127267
|
+
if (val) expanded.value = true;
|
|
127268
|
+
},
|
|
127269
|
+
{ immediate: true }
|
|
127270
|
+
);
|
|
127271
|
+
const highlightLabel = computed(() => {
|
|
127272
|
+
const label = props.node.label ?? "";
|
|
127273
|
+
return props.highlightName ? props.highlightName(label) : label;
|
|
127274
|
+
});
|
|
127261
127275
|
const hasChildren = computed(() => {
|
|
127262
127276
|
return props.node.children?.length;
|
|
127263
127277
|
});
|
|
@@ -127302,7 +127316,10 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
127302
127316
|
size: "14"
|
|
127303
127317
|
}, null, 8, ["icon"])
|
|
127304
127318
|
])) : createCommentVNode("", true),
|
|
127305
|
-
createElementVNode("span",
|
|
127319
|
+
createElementVNode("span", {
|
|
127320
|
+
class: "node-label",
|
|
127321
|
+
innerHTML: highlightLabel.value
|
|
127322
|
+
}, null, 8, _hoisted_1$d),
|
|
127306
127323
|
createElementVNode("div", _hoisted_2$8, [
|
|
127307
127324
|
__props.multiple && isSelected.value ? (openBlock(), createBlock(unref(GctIcon), {
|
|
127308
127325
|
key: 0,
|
|
@@ -127320,26 +127337,29 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
127320
127337
|
level: __props.level + 1,
|
|
127321
127338
|
multiple: __props.multiple,
|
|
127322
127339
|
"model-value": __props.modelValue,
|
|
127340
|
+
"force-expand": __props.forceExpand,
|
|
127341
|
+
"highlight-name": __props.highlightName,
|
|
127323
127342
|
onSelect: emitSelect
|
|
127324
|
-
}, null, 8, ["node", "level", "multiple", "model-value"]);
|
|
127343
|
+
}, null, 8, ["node", "level", "multiple", "model-value", "force-expand", "highlight-name"]);
|
|
127325
127344
|
}), 128))
|
|
127326
127345
|
])) : createCommentVNode("", true)
|
|
127327
127346
|
]);
|
|
127328
127347
|
};
|
|
127329
127348
|
}
|
|
127330
127349
|
});
|
|
127331
|
-
const TreeNode = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-
|
|
127350
|
+
const TreeNode = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-0b367b10"]]);
|
|
127332
127351
|
const _hoisted_1$c = { class: "tree-dropdown" };
|
|
127333
|
-
const _hoisted_2$7 = { class: "tree-
|
|
127334
|
-
const _hoisted_3$5 = {
|
|
127352
|
+
const _hoisted_2$7 = { class: "tree-search" };
|
|
127353
|
+
const _hoisted_3$5 = { class: "tree-dropdown-container" };
|
|
127354
|
+
const _hoisted_4$5 = {
|
|
127335
127355
|
key: 0,
|
|
127336
127356
|
class: "empty"
|
|
127337
127357
|
};
|
|
127338
|
-
const
|
|
127358
|
+
const _hoisted_5$4 = {
|
|
127339
127359
|
key: 0,
|
|
127340
127360
|
class: "options-footer"
|
|
127341
127361
|
};
|
|
127342
|
-
const
|
|
127362
|
+
const _hoisted_6$3 = {
|
|
127343
127363
|
key: 1,
|
|
127344
127364
|
class: "options-footer"
|
|
127345
127365
|
};
|
|
@@ -127356,6 +127376,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
127356
127376
|
const props = __props;
|
|
127357
127377
|
const emit = __emit;
|
|
127358
127378
|
const { runtimeValuePath } = useWidgetMeta(props.widget);
|
|
127379
|
+
const { keyword, highlightName } = useHighlightSearch();
|
|
127359
127380
|
const innerValue = ref(props.modelValue);
|
|
127360
127381
|
const options = ref([]);
|
|
127361
127382
|
onBeforeMount(async () => {
|
|
@@ -127393,6 +127414,22 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
127393
127414
|
deepDept(valueList);
|
|
127394
127415
|
return valueList;
|
|
127395
127416
|
});
|
|
127417
|
+
function filterTreeNodes(nodes, kw) {
|
|
127418
|
+
return nodes.reduce((acc, node) => {
|
|
127419
|
+
const children = node.children?.length ? filterTreeNodes(node.children, kw) : [];
|
|
127420
|
+
const fields = [node.label, node.ch_full_path, node._item?.name, node._item?.code].map((v) => String(v ?? "").toLowerCase());
|
|
127421
|
+
const matched = fields.some((v) => v.includes(kw));
|
|
127422
|
+
if (matched || children.length) {
|
|
127423
|
+
acc.push({ ...node, children });
|
|
127424
|
+
}
|
|
127425
|
+
return acc;
|
|
127426
|
+
}, []);
|
|
127427
|
+
}
|
|
127428
|
+
const displayTreeOptions = computed(() => {
|
|
127429
|
+
const kw = keyword.value?.trim().toLowerCase();
|
|
127430
|
+
if (!kw) return treeOptions.value;
|
|
127431
|
+
return filterTreeNodes(treeOptions.value, kw);
|
|
127432
|
+
});
|
|
127396
127433
|
const flatOptions = computed(() => flattenTree(treeOptions.value));
|
|
127397
127434
|
const onSelect = (value) => {
|
|
127398
127435
|
if (props.isMultiple) {
|
|
@@ -127421,25 +127458,44 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
127421
127458
|
}
|
|
127422
127459
|
return (_ctx, _cache) => {
|
|
127423
127460
|
return openBlock(), createElementBlock("div", _hoisted_1$c, [
|
|
127461
|
+
createElementVNode("div", _hoisted_2$7, [
|
|
127462
|
+
createVNode(unref(GctInput), {
|
|
127463
|
+
modelValue: unref(keyword),
|
|
127464
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(keyword) ? keyword.value = $event : null),
|
|
127465
|
+
placeholder: "请输入关键字",
|
|
127466
|
+
allowClear: ""
|
|
127467
|
+
}, {
|
|
127468
|
+
prependIcon: withCtx(() => [
|
|
127469
|
+
createVNode(unref(GctIcon), {
|
|
127470
|
+
icon: "icon-sousuo",
|
|
127471
|
+
color: "rgba(0, 0, 0, 0.45)",
|
|
127472
|
+
size: "14"
|
|
127473
|
+
})
|
|
127474
|
+
]),
|
|
127475
|
+
_: 1
|
|
127476
|
+
}, 8, ["modelValue"])
|
|
127477
|
+
]),
|
|
127424
127478
|
createVNode(unref(GctScrollbar), { class: "tree-dropdown-scrollbar" }, {
|
|
127425
127479
|
default: withCtx(() => [
|
|
127426
|
-
createElementVNode("div",
|
|
127427
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(
|
|
127480
|
+
createElementVNode("div", _hoisted_3$5, [
|
|
127481
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(displayTreeOptions.value, (item) => {
|
|
127428
127482
|
return openBlock(), createBlock(TreeNode, {
|
|
127429
127483
|
key: item.value,
|
|
127430
127484
|
node: item,
|
|
127431
127485
|
level: 0,
|
|
127432
127486
|
multiple: __props.isMultiple,
|
|
127433
127487
|
"model-value": innerValue.value,
|
|
127488
|
+
"force-expand": !!unref(keyword)?.trim(),
|
|
127489
|
+
"highlight-name": unref(highlightName),
|
|
127434
127490
|
onSelect
|
|
127435
|
-
}, null, 8, ["node", "multiple", "model-value"]);
|
|
127491
|
+
}, null, 8, ["node", "multiple", "model-value", "force-expand", "highlight-name"]);
|
|
127436
127492
|
}), 128)),
|
|
127437
|
-
!
|
|
127493
|
+
!displayTreeOptions.value.length ? (openBlock(), createElementBlock("div", _hoisted_4$5, "暂无数据")) : createCommentVNode("", true)
|
|
127438
127494
|
])
|
|
127439
127495
|
]),
|
|
127440
127496
|
_: 1
|
|
127441
127497
|
}),
|
|
127442
|
-
__props.isMultiple ? (openBlock(), createElementBlock("div",
|
|
127498
|
+
__props.isMultiple ? (openBlock(), createElementBlock("div", _hoisted_5$4, [
|
|
127443
127499
|
createElementVNode("div", {
|
|
127444
127500
|
class: "btn-item",
|
|
127445
127501
|
onClick: withModifiers(handleSelectAll, ["stop"])
|
|
@@ -127448,7 +127504,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
127448
127504
|
class: "btn-item",
|
|
127449
127505
|
onClick: withModifiers(handleOk, ["stop"])
|
|
127450
127506
|
}, "确认")
|
|
127451
|
-
])) : innerValue.value ? (openBlock(), createElementBlock("div",
|
|
127507
|
+
])) : innerValue.value ? (openBlock(), createElementBlock("div", _hoisted_6$3, [
|
|
127452
127508
|
createElementVNode("div", {
|
|
127453
127509
|
class: "btn-center",
|
|
127454
127510
|
onClick: withModifiers(handleClear, ["stop"])
|
|
@@ -127458,7 +127514,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
127458
127514
|
};
|
|
127459
127515
|
}
|
|
127460
127516
|
});
|
|
127461
|
-
const treeDropdown = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-
|
|
127517
|
+
const treeDropdown = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-733d54b7"]]);
|
|
127462
127518
|
const treeDropdown$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
127463
127519
|
__proto__: null,
|
|
127464
127520
|
default: treeDropdown
|
|
@@ -128045,10 +128101,10 @@ const selectStrategyMap = {
|
|
|
128045
128101
|
columnsKey: "scrap-reason",
|
|
128046
128102
|
fetcher: "ref",
|
|
128047
128103
|
linkFieldId: "scrap_group_1_",
|
|
128048
|
-
buildQuery({ keyword, isLinkQuery }) {
|
|
128104
|
+
buildQuery({ keyword, isLinkQuery, linkDataId }) {
|
|
128049
128105
|
if (isLinkQuery) {
|
|
128050
128106
|
const queryData = {
|
|
128051
|
-
dataIds:
|
|
128107
|
+
dataIds: linkDataId,
|
|
128052
128108
|
refModelChain: [
|
|
128053
128109
|
{ modelKey: "em_scrap_group", modelCategory: "entity", fieldKey: "entries_" },
|
|
128054
128110
|
{
|
|
@@ -128060,6 +128116,10 @@ const selectStrategyMap = {
|
|
|
128060
128116
|
],
|
|
128061
128117
|
isLinkQuery: true
|
|
128062
128118
|
};
|
|
128119
|
+
if (keyword?.trim()) {
|
|
128120
|
+
const { queryData: searchQuery, exp } = buildLikeQuery(["name_", "code_"], keyword);
|
|
128121
|
+
return { queryData: { ...queryData, ...searchQuery }, exp };
|
|
128122
|
+
}
|
|
128063
128123
|
return {
|
|
128064
128124
|
queryData,
|
|
128065
128125
|
exp: ""
|
|
@@ -128082,10 +128142,10 @@ const selectStrategyMap = {
|
|
|
128082
128142
|
columnsKey: "notGood-reason",
|
|
128083
128143
|
fetcher: "ref",
|
|
128084
128144
|
linkFieldId: "not_good_group_1_",
|
|
128085
|
-
buildQuery({ keyword, isLinkQuery }) {
|
|
128145
|
+
buildQuery({ keyword, isLinkQuery, linkDataId }) {
|
|
128086
128146
|
if (isLinkQuery) {
|
|
128087
128147
|
const queryData = {
|
|
128088
|
-
dataIds:
|
|
128148
|
+
dataIds: linkDataId,
|
|
128089
128149
|
refModelChain: [
|
|
128090
128150
|
{ modelKey: "em_not_good_group", modelCategory: "entity", fieldKey: "entries_" },
|
|
128091
128151
|
{
|
|
@@ -128097,6 +128157,10 @@ const selectStrategyMap = {
|
|
|
128097
128157
|
],
|
|
128098
128158
|
isLinkQuery: true
|
|
128099
128159
|
};
|
|
128160
|
+
if (keyword?.trim()) {
|
|
128161
|
+
const { queryData: searchQuery, exp } = buildLikeQuery(["name_", "code_"], keyword);
|
|
128162
|
+
return { queryData: { ...queryData, ...searchQuery }, exp };
|
|
128163
|
+
}
|
|
128100
128164
|
return {
|
|
128101
128165
|
queryData,
|
|
128102
128166
|
exp: ""
|
|
@@ -128176,6 +128240,7 @@ function useTableDropdown(props, searchFilters) {
|
|
|
128176
128240
|
}
|
|
128177
128241
|
return "";
|
|
128178
128242
|
});
|
|
128243
|
+
const showSearch = computed(() => !enableLinkage.value || !!linkDataValue.value);
|
|
128179
128244
|
const fetcher = async ({
|
|
128180
128245
|
keyword = "",
|
|
128181
128246
|
pageNo,
|
|
@@ -128200,11 +128265,11 @@ function useTableDropdown(props, searchFilters) {
|
|
|
128200
128265
|
}
|
|
128201
128266
|
const { buildQuery, fetcher: fetcher2, transform } = strategy.value;
|
|
128202
128267
|
const isLinkQuery = enableLinkage.value;
|
|
128203
|
-
const queryKeyword = isLinkQuery ? String(linkDataValue.value ?? "") : keyword;
|
|
128204
128268
|
const filters = unref(searchFilters);
|
|
128205
128269
|
const { queryData = {}, exp = "" } = buildQuery?.({
|
|
128206
|
-
keyword
|
|
128270
|
+
keyword,
|
|
128207
128271
|
isLinkQuery,
|
|
128272
|
+
linkDataId: isLinkQuery ? String(linkDataValue.value ?? "") : void 0,
|
|
128208
128273
|
searchField: widgetProps.value.searchField,
|
|
128209
128274
|
deviceTypeId: deviceTypeId ?? filters?.deviceTypeId
|
|
128210
128275
|
}) ?? {};
|
|
@@ -128232,6 +128297,7 @@ function useTableDropdown(props, searchFilters) {
|
|
|
128232
128297
|
fieldInfo,
|
|
128233
128298
|
strategy,
|
|
128234
128299
|
message,
|
|
128300
|
+
showSearch,
|
|
128235
128301
|
enableLinkage,
|
|
128236
128302
|
clearValuePath,
|
|
128237
128303
|
allowManualInput,
|
|
@@ -128265,9 +128331,9 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
128265
128331
|
const deviceTypeId = ref();
|
|
128266
128332
|
const searchFilters = computed(() => ({ deviceTypeId: deviceTypeId.value }));
|
|
128267
128333
|
const {
|
|
128268
|
-
enableLinkage,
|
|
128269
128334
|
clearValuePath,
|
|
128270
128335
|
message,
|
|
128336
|
+
showSearch,
|
|
128271
128337
|
columns: columns2,
|
|
128272
128338
|
fetcher: baseFetcher,
|
|
128273
128339
|
allowManualInput,
|
|
@@ -128331,7 +128397,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
128331
128397
|
});
|
|
128332
128398
|
return (_ctx, _cache) => {
|
|
128333
128399
|
return openBlock(), createElementBlock("div", _hoisted_1$7, [
|
|
128334
|
-
|
|
128400
|
+
unref(showSearch) ? (openBlock(), createElementBlock("div", _hoisted_2$5, [
|
|
128335
128401
|
unref(isDeviceField) ? (openBlock(), createElementBlock("div", _hoisted_3$3, [
|
|
128336
128402
|
_cache[5] || (_cache[5] = createElementVNode("span", { class: "table-search__label" }, "设备类型", -1)),
|
|
128337
128403
|
createVNode(_sfc_main$9, {
|
|
@@ -14,6 +14,7 @@ export declare function useTableDropdown(props: any, searchFilters?: MaybeRef<Ta
|
|
|
14
14
|
fieldInfo: import('vue').ComputedRef<import('../../../../../../capabilities/model-field-runtime').FieldMeta | null>;
|
|
15
15
|
strategy: import('vue').ComputedRef<import('../strategy/selectStrategy').SelectStrategy>;
|
|
16
16
|
message: import('vue').ComputedRef<string>;
|
|
17
|
+
showSearch: import('vue').ComputedRef<boolean>;
|
|
17
18
|
enableLinkage: import('vue').ComputedRef<boolean>;
|
|
18
19
|
clearValuePath: import('vue').ComputedRef<string | undefined>;
|
|
19
20
|
allowManualInput: import('vue').ComputedRef<boolean>;
|
|
@@ -6,6 +6,8 @@ type __VLS_Props = {
|
|
|
6
6
|
level: number;
|
|
7
7
|
modelValue?: any;
|
|
8
8
|
multiple?: boolean;
|
|
9
|
+
forceExpand?: boolean;
|
|
10
|
+
highlightName?: (name?: string) => string;
|
|
9
11
|
};
|
|
10
12
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
11
13
|
select: (...args: any[]) => void;
|
package/dist/word.css
CHANGED
|
@@ -11866,7 +11866,7 @@ svg.portrait-icon[data-v-8bdb451e] {
|
|
|
11866
11866
|
.options-dropdown .options-footer .btn-center[data-v-d81082a4]:hover {
|
|
11867
11867
|
color: #ff4d4f;
|
|
11868
11868
|
}
|
|
11869
|
-
.tree-node[data-v-
|
|
11869
|
+
.tree-node[data-v-0b367b10] {
|
|
11870
11870
|
display: flex;
|
|
11871
11871
|
align-items: center;
|
|
11872
11872
|
height: 30px;
|
|
@@ -11874,24 +11874,24 @@ svg.portrait-icon[data-v-8bdb451e] {
|
|
|
11874
11874
|
cursor: pointer;
|
|
11875
11875
|
transition: all 0.2s ease;
|
|
11876
11876
|
}
|
|
11877
|
-
.tree-node[data-v-
|
|
11877
|
+
.tree-node[data-v-0b367b10]:hover:not(.disabled) {
|
|
11878
11878
|
background: rgba(13, 13, 13, 0.06);
|
|
11879
11879
|
}
|
|
11880
|
-
.tree-node.selected[data-v-
|
|
11880
|
+
.tree-node.selected[data-v-0b367b10] {
|
|
11881
11881
|
background: #e3eafc;
|
|
11882
11882
|
}
|
|
11883
|
-
.tree-node.disabled[data-v-
|
|
11883
|
+
.tree-node.disabled[data-v-0b367b10] {
|
|
11884
11884
|
opacity: 0.3;
|
|
11885
11885
|
pointer-events: none;
|
|
11886
11886
|
}
|
|
11887
|
-
.tree-node .expand-icon[data-v-
|
|
11887
|
+
.tree-node .expand-icon[data-v-0b367b10] {
|
|
11888
11888
|
width: 16px;
|
|
11889
11889
|
display: inline-flex;
|
|
11890
11890
|
align-items: center;
|
|
11891
11891
|
justify-content: center;
|
|
11892
11892
|
margin-right: 4px;
|
|
11893
11893
|
}
|
|
11894
|
-
.tree-node .node-label[data-v-
|
|
11894
|
+
.tree-node .node-label[data-v-0b367b10] {
|
|
11895
11895
|
flex: 1;
|
|
11896
11896
|
font-size: 13px;
|
|
11897
11897
|
color: #212528;
|
|
@@ -11899,28 +11899,33 @@ svg.portrait-icon[data-v-8bdb451e] {
|
|
|
11899
11899
|
overflow: hidden;
|
|
11900
11900
|
text-overflow: ellipsis;
|
|
11901
11901
|
}
|
|
11902
|
-
.tree-node .node-right[data-v-
|
|
11902
|
+
.tree-node .node-right[data-v-0b367b10] {
|
|
11903
11903
|
margin-left: 8px;
|
|
11904
11904
|
display: inline-flex;
|
|
11905
11905
|
align-items: center;
|
|
11906
11906
|
}
|
|
11907
|
-
.tree-dropdown[data-v-
|
|
11907
|
+
.tree-dropdown[data-v-733d54b7] {
|
|
11908
11908
|
position: relative;
|
|
11909
11909
|
width: 100%;
|
|
11910
11910
|
height: 100%;
|
|
11911
11911
|
min-width: 200px;
|
|
11912
11912
|
max-width: 300px;
|
|
11913
11913
|
}
|
|
11914
|
-
.tree-dropdown .tree-
|
|
11914
|
+
.tree-dropdown .tree-search[data-v-733d54b7] {
|
|
11915
|
+
padding: 8px 6px 4px;
|
|
11916
|
+
min-width: 180px;
|
|
11917
|
+
max-width: 300px;
|
|
11918
|
+
}
|
|
11919
|
+
.tree-dropdown .tree-dropdown-scrollbar[data-v-733d54b7] {
|
|
11915
11920
|
position: relative;
|
|
11916
11921
|
padding: 4px;
|
|
11917
11922
|
}
|
|
11918
|
-
.tree-dropdown .tree-dropdown-scrollbar .tree-dropdown-container[data-v-
|
|
11923
|
+
.tree-dropdown .tree-dropdown-scrollbar .tree-dropdown-container[data-v-733d54b7] {
|
|
11919
11924
|
position: relative;
|
|
11920
11925
|
width: 100%;
|
|
11921
11926
|
max-height: 300px;
|
|
11922
11927
|
}
|
|
11923
|
-
.tree-dropdown .tree-dropdown-scrollbar .empty[data-v-
|
|
11928
|
+
.tree-dropdown .tree-dropdown-scrollbar .empty[data-v-733d54b7] {
|
|
11924
11929
|
width: 100%;
|
|
11925
11930
|
height: 90px;
|
|
11926
11931
|
display: flex;
|
|
@@ -11929,14 +11934,14 @@ svg.portrait-icon[data-v-8bdb451e] {
|
|
|
11929
11934
|
color: #c3c3c3;
|
|
11930
11935
|
font-size: 13px;
|
|
11931
11936
|
}
|
|
11932
|
-
.tree-dropdown .options-footer[data-v-
|
|
11937
|
+
.tree-dropdown .options-footer[data-v-733d54b7] {
|
|
11933
11938
|
display: flex;
|
|
11934
11939
|
justify-content: space-between;
|
|
11935
11940
|
align-items: center;
|
|
11936
11941
|
padding: 8px 8px;
|
|
11937
11942
|
border-top: 1px solid #f0f0f0;
|
|
11938
11943
|
}
|
|
11939
|
-
.tree-dropdown .options-footer .btn-item[data-v-
|
|
11944
|
+
.tree-dropdown .options-footer .btn-item[data-v-733d54b7] {
|
|
11940
11945
|
width: 36px;
|
|
11941
11946
|
height: 22px;
|
|
11942
11947
|
line-height: 22px;
|
|
@@ -11946,7 +11951,7 @@ svg.portrait-icon[data-v-8bdb451e] {
|
|
|
11946
11951
|
cursor: pointer;
|
|
11947
11952
|
color: #026ac8;
|
|
11948
11953
|
}
|
|
11949
|
-
.tree-dropdown .options-footer .btn-center[data-v-
|
|
11954
|
+
.tree-dropdown .options-footer .btn-center[data-v-733d54b7] {
|
|
11950
11955
|
line-height: 22px;
|
|
11951
11956
|
text-align: center;
|
|
11952
11957
|
border-radius: 4px;
|
|
@@ -11955,7 +11960,7 @@ svg.portrait-icon[data-v-8bdb451e] {
|
|
|
11955
11960
|
color: #212528;
|
|
11956
11961
|
flex: 1;
|
|
11957
11962
|
}
|
|
11958
|
-
.tree-dropdown .options-footer .btn-center[data-v-
|
|
11963
|
+
.tree-dropdown .options-footer .btn-center[data-v-733d54b7]:hover {
|
|
11959
11964
|
color: #ff4d4f;
|
|
11960
11965
|
}
|
|
11961
11966
|
.gct-datetime-dropdown[data-v-f7cd5521] {
|