slw 1.0.0-beta.17.5 → 1.0.0-beta.17.6

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.
@@ -1,5 +1,5 @@
1
1
  import { pushScopeId as P, popScopeId as V, createElementVNode as h, resolveComponent as g, openBlock as o, createElementBlock as p, createBlock as f, normalizeClass as T, normalizeStyle as A, withModifiers as R, withCtx as r, renderSlot as q, createCommentVNode as _, Fragment as B, createVNode as s, mergeProps as k, renderList as j, toDisplayString as E, normalizeProps as K, guardReactiveProps as Q, resolveDynamicComponent as Z, defineAsyncComponent as $, computed as F, unref as D, withDirectives as ee, vShow as te } from "vue";
2
- import { _ as x, d as S, a as L, u as N } from "./index-8784112f.js";
2
+ import { _ as x, d as S, a as L, u as N } from "./index-15cc6030.js";
3
3
  import "vue-router";
4
4
  const I = {
5
5
  computed: {},
@@ -53257,7 +53257,7 @@ WindowCharts.name = "slw-window-charts";
53257
53257
  WindowCharts.install = (G) => {
53258
53258
  G.component(WindowCharts.name, WindowCharts);
53259
53259
  };
53260
- const windowGrid_vue_vue_type_style_index_0_scoped_44fc9c10_lang = "", _withScopeId$9 = (G) => (pushScopeId("data-v-44fc9c10"), G = G(), popScopeId(), G), _hoisted_1$l3 = {
53260
+ const windowGrid_vue_vue_type_style_index_0_scoped_8ea81e88_lang = "", _withScopeId$9 = (G) => (pushScopeId("data-v-8ea81e88"), G = G(), popScopeId(), G), _hoisted_1$l3 = {
53261
53261
  class: "slw-window-grid-container",
53262
53262
  style: { height: "100%" }
53263
53263
  }, _hoisted_2$k_ = /* @__PURE__ */ _withScopeId$9(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-main-area" }, null, -1)), _hoisted_3$h_ = /* @__PURE__ */ _withScopeId$9(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-active-area" }, null, -1)), _hoisted_4$aA = /* @__PURE__ */ _withScopeId$9(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-copy-area" }, null, -1)), _hoisted_5$4_ = [
@@ -53267,14 +53267,20 @@ const windowGrid_vue_vue_type_style_index_0_scoped_44fc9c10_lang = "", _withScop
53267
53267
  ], _hoisted_6$22 = {
53268
53268
  key: 0,
53269
53269
  style: { verticalAlign: "middle" }
53270
- }, _hoisted_7$15 = ["id"], _hoisted_8$I = { class: "vxe-grid--form-wrapper" }, _hoisted_9$o = ["id"], _hoisted_10$r = ["onClick"], _hoisted_11$h = { class: "slw-form-item" }, _hoisted_12$8 = /* @__PURE__ */ _withScopeId$9(() => /* @__PURE__ */ createElementVNode("span", { class: "el-input__icon" }, "下限:", -1)), _hoisted_13$4 = /* @__PURE__ */ _withScopeId$9(() => /* @__PURE__ */ createElementVNode("span", null, "—", -1)), _hoisted_14$1 = /* @__PURE__ */ _withScopeId$9(() => /* @__PURE__ */ createElementVNode("span", { class: "el-input__icon" }, "上限:", -1)), _hoisted_15$1 = ["id"], _hoisted_16$3 = /* @__PURE__ */ _withScopeId$9(() => /* @__PURE__ */ createElementVNode("i", {
53270
+ }, _hoisted_7$15 = ["id"], _hoisted_8$I = { class: "vxe-grid--form-wrapper" }, _hoisted_9$o = ["id"], _hoisted_10$r = ["onClick"], _hoisted_11$h = { class: "slw-form-item" }, _hoisted_12$8 = /* @__PURE__ */ _withScopeId$9(() => /* @__PURE__ */ createElementVNode("span", { class: "el-input__icon" }, "下限:", -1)), _hoisted_13$4 = /* @__PURE__ */ _withScopeId$9(() => /* @__PURE__ */ createElementVNode("span", null, "—", -1)), _hoisted_14$1 = /* @__PURE__ */ _withScopeId$9(() => /* @__PURE__ */ createElementVNode("span", { class: "el-input__icon" }, "上限:", -1)), _hoisted_15$1 = {
53271
+ key: 0,
53272
+ class: "vxe-form--item-trigger-text"
53273
+ }, _hoisted_16$3 = {
53274
+ key: 1,
53275
+ class: "vxe-form--item-trigger-text"
53276
+ }, _hoisted_17 = ["id"], _hoisted_18 = /* @__PURE__ */ _withScopeId$9(() => /* @__PURE__ */ createElementVNode("i", {
53271
53277
  class: "iconfont icon-carryout",
53272
53278
  style: { cursor: "pointer", padding: "0" }
53273
- }, null, -1)), _hoisted_17 = { style: { "font-size": "18px", "margin-right": "8px" } }, _hoisted_18 = {
53279
+ }, null, -1)), _hoisted_19 = { style: { "font-size": "18px", "margin-right": "8px" } }, _hoisted_20 = {
53274
53280
  key: 0,
53275
53281
  class: "pager-left-wrapper",
53276
53282
  title: "全量数据全选/取消"
53277
- }, _hoisted_19 = { style: { padding: "20px 0" } }, _sfc_main$g = {
53283
+ }, _hoisted_21 = { style: { padding: "20px 0" } }, _sfc_main$g = {
53278
53284
  __name: "window-grid",
53279
53285
  props: {
53280
53286
  gridData: {
@@ -54855,6 +54861,10 @@ const windowGrid_vue_vue_type_style_index_0_scoped_44fc9c10_lang = "", _withScop
54855
54861
  }, setColumnElement = (G, H, X) => {
54856
54862
  let Q = gridData.value.columns.filter((K) => K.field == G.toUpperCase())[0];
54857
54863
  Q && (Q.editRender.name = H, X && X instanceof Object && (Q.editRender.props.elementProps = X));
54864
+ }, headerFormCollapse = () => {
54865
+ gridData.value.params.expandQueryTool = !gridData.value.params.expandQueryTool, gridData.value.formConfig.items.forEach((G, H) => {
54866
+ H > 2 && (G.folding = !G.folding);
54867
+ });
54858
54868
  };
54859
54869
  return onMounted(async () => {
54860
54870
  gridData.value.addListener && getCurRegion() && addListener(), gridData.value.type === "TREE_STRUCTURE" && (gridData.value.menuConfig = {
@@ -54896,8 +54906,8 @@ const windowGrid_vue_vue_type_style_index_0_scoped_44fc9c10_lang = "", _withScop
54896
54906
  }), gridData.value.columns.forEach((G) => {
54897
54907
  G.hasOwnProperty("field") && !G.hasOwnProperty("treeNode") && (G.events.change = onFieldChange, G.events["on-change"] = onFieldChange, G.events.keyup = onFieldEnter, G.editRender.events = G.events, G.itemRender.events = G.events), G.itemRender && G.itemRender.props._select_id && (formSelectMap.value[G.id] = G);
54898
54908
  }), searchData(), regionMap.value[gridData.value.params.code + "-" + preTag.value] = curRegion.value, regionMap.value[gridData.value.params.code] = curRegion.value, evalEvent(gridData.value.params.formEvents.regionInit, "GRID", "表格页面初始化事件"), gridData.value.params.parentRegionId && addGridClickEvent(rowClickEmitFun), setTimeout(() => {
54899
- let G = getCurRegion().$el.querySelector(".vxe-table--main-wrapper .vxe-table--header-wrapper .vxe-cell--checkbox");
54900
- G.title = "当页全选/取消";
54909
+ let G = getCurRegion().$el.querySelector(".vxe-table--header-wrapper .vxe-cell--checkbox");
54910
+ G && (G.title = "当页全选/取消");
54901
54911
  }, 1500), curRegion.value.closeModal = () => {
54902
54912
  closeModal && closeModal();
54903
54913
  }, curRegion.value.closeDrawer = () => {
@@ -55079,10 +55089,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_44fc9c10_lang = "", _withScop
55079
55089
  key: "1"
55080
55090
  } : void 0
55081
55091
  ]), 1032, ["field", "title", "span", "folding", "item-render", "visible"]))), 128)),
55082
- computeQueryBtnDisplay.value ? (openBlock(), createBlock(Z, {
55083
- key: 0,
55084
- collapseNode: unref(gridData).formConfig.items.length > 3
55085
- }, {
55092
+ computeQueryBtnDisplay.value ? (openBlock(), createBlock(Z, { key: 0 }, {
55086
55093
  default: withCtx(() => [
55087
55094
  createVNode$1(K, {
55088
55095
  type: "primary",
@@ -55108,10 +55115,19 @@ const windowGrid_vue_vue_type_style_index_0_scoped_44fc9c10_lang = "", _withScop
55108
55115
  createTextVNode(" 重置 ")
55109
55116
  ]),
55110
55117
  _: 1
55111
- }, 8, ["size"])
55118
+ }, 8, ["size"]),
55119
+ createElementVNode("div", {
55120
+ class: "vxe-form--item-trigger-node",
55121
+ onClick: headerFormCollapse
55122
+ }, [
55123
+ unref(gridData).params.expandQueryTool ? (openBlock(), createElementBlock("span", _hoisted_16$3, "收起")) : (openBlock(), createElementBlock("span", _hoisted_15$1, "展开")),
55124
+ createElementVNode("i", {
55125
+ class: normalizeClass(["vxe-form--item-trigger-icon vxe-icon-arrow-up", { " rotate180": !unref(gridData).params.expandQueryTool }])
55126
+ }, null, 2)
55127
+ ])
55112
55128
  ]),
55113
55129
  _: 1
55114
- }, 8, ["collapseNode"])) : createCommentVNode("", !0),
55130
+ })) : createCommentVNode("", !0),
55115
55131
  createVNode$1(Z, { span: "24" }, {
55116
55132
  default: withCtx(() => {
55117
55133
  var fe;
@@ -55125,7 +55141,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_44fc9c10_lang = "", _withScop
55125
55141
  ref_key: "otherItem",
55126
55142
  ref: otherItem
55127
55143
  }, null, 512)) : createCommentVNode("", !0)
55128
- ], 8, _hoisted_15$1)
55144
+ ], 8, _hoisted_17)
55129
55145
  ];
55130
55146
  }),
55131
55147
  _: 1
@@ -55151,7 +55167,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_44fc9c10_lang = "", _withScop
55151
55167
  title: "已勾选数据"
55152
55168
  }, {
55153
55169
  default: withCtx(() => [
55154
- _hoisted_16$3
55170
+ _hoisted_18
55155
55171
  ]),
55156
55172
  _: 1
55157
55173
  }, 8, ["size"])
@@ -55159,7 +55175,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_44fc9c10_lang = "", _withScop
55159
55175
  default: withCtx(() => [
55160
55176
  createVNode$1(oe, normalizeProps(guardReactiveProps(unref(checkedGridOptions))), {
55161
55177
  toolbar_buttons: withCtx(() => [
55162
- createElementVNode("b", _hoisted_17, toDisplayString(unref($T)("已勾选数据")), 1),
55178
+ createElementVNode("b", _hoisted_19, toDisplayString(unref($T)("已勾选数据")), 1),
55163
55179
  createVNode$1(ne, {
55164
55180
  status: "danger",
55165
55181
  size: "mini",
@@ -55185,7 +55201,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_44fc9c10_lang = "", _withScop
55185
55201
  pager_left: withCtx(() => {
55186
55202
  var fe;
55187
55203
  return [
55188
- (fe = unref(gridData).pagerConfig.slots) != null && fe.left ? (openBlock(), createElementBlock("div", _hoisted_18, [
55204
+ (fe = unref(gridData).pagerConfig.slots) != null && fe.left ? (openBlock(), createElementBlock("div", _hoisted_20, [
55189
55205
  createElementVNode("span", {
55190
55206
  style: { width: "45px", "text-align": "center", background: "#409eff", color: "#fff", "border-radius": "5px", cursor: "pointer" },
55191
55207
  onClick: headerPagerToolCheckedClick
@@ -55257,7 +55273,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_44fc9c10_lang = "", _withScop
55257
55273
  "on-success": importSuccess
55258
55274
  }, {
55259
55275
  default: withCtx(() => [
55260
- createElementVNode("div", _hoisted_19, [
55276
+ createElementVNode("div", _hoisted_21, [
55261
55277
  createVNode$1(le, { width: 50 }),
55262
55278
  createElementVNode("p", null, toDisplayString(unref($T)("点击或拖文件到此处上传")), 1)
55263
55279
  ])
@@ -55309,7 +55325,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_44fc9c10_lang = "", _withScop
55309
55325
  ]);
55310
55326
  };
55311
55327
  }
55312
- }, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-44fc9c10"]]);
55328
+ }, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-8ea81e88"]]);
55313
55329
  WindowGrid.name = "slw-window-grid";
55314
55330
  WindowGrid.install = (G) => {
55315
55331
  G.component(WindowGrid.name, WindowGrid);
@@ -91828,7 +91844,7 @@ const windowDesigner_vue_vue_type_style_index_0_scoped_a3ebe962_lang = "", _with
91828
91844
  emits: ["update:type", "update:rootLayout", "update:viewData", "update:rowData"],
91829
91845
  setup(G, { emit: H }) {
91830
91846
  const X = G, Q = defineAsyncComponent(
91831
- () => import("./index-b69133f9.js")
91847
+ () => import("./index-03c56869.js")
91832
91848
  );
91833
91849
  let K = useVModel(X, "type", H), Z = useVModel(X, "rootLayout", H), ee = useVModel(X, "viewData", H), te = useVModel(X, "rowData", H), ne = ref$2(0), re = ref$2(null);
91834
91850
  re.value = createDesigner();
@@ -91913,7 +91929,7 @@ WindowDesigner.name = "slw-window-designer";
91913
91929
  WindowDesigner.install = (G) => {
91914
91930
  G.component(WindowDesigner.name, WindowDesigner);
91915
91931
  };
91916
- const windowIndex_vue_vue_type_style_index_0_scoped_c354513b_lang = "", _withScopeId$1 = (G) => (pushScopeId("data-v-c354513b"), G = G(), popScopeId(), G), _hoisted_1$kS = { class: "slw-config-window-container" }, _hoisted_2$kR = { class: "child-table-p" }, _sfc_main$2 = {
91932
+ const windowIndex_vue_vue_type_style_index_0_scoped_61076c31_lang = "", _withScopeId$1 = (G) => (pushScopeId("data-v-61076c31"), G = G(), popScopeId(), G), _hoisted_1$kS = { class: "slw-config-window-container" }, _hoisted_2$kR = { class: "child-table-p" }, _sfc_main$2 = {
91917
91933
  __name: "window-index",
91918
91934
  props: {
91919
91935
  windowId: {
@@ -92218,8 +92234,10 @@ const windowIndex_vue_vue_type_style_index_0_scoped_c354513b_lang = "", _withSco
92218
92234
  // 表单操作按钮布局位置 TOP_LEFT, TOP_CENTER, TOP_RIGHT, BOTTOM_LEFT, BOTTOM_CENTER(默认), BOTTOM_RIGHT
92219
92235
  queryFieldChangeNoQuery: ue.queryFieldChangeNoQuery,
92220
92236
  // 控制查询条件值更改是否触发表格查询
92221
- fullCheckboxLinkage: ((oe = $VXETableConfig == null ? void 0 : $VXETableConfig.grid) == null ? void 0 : oe.fullCheckboxLinkage) || !1
92237
+ fullCheckboxLinkage: ((oe = $VXETableConfig == null ? void 0 : $VXETableConfig.grid) == null ? void 0 : oe.fullCheckboxLinkage) || !1,
92222
92238
  // 表格全量复选框联动
92239
+ expandQueryTool: ue.expandQueryTool
92240
+ // 展开所有查询条件
92223
92241
  }, ue.buttonPosition && ue.buttonPosition != "null" && (Q.params.buttonPosition = ue.buttonPosition), ue.linkUrl && $components && $componentsPath) {
92224
92242
  let $e = `${$componentsPath}/${ue.linkUrl}`, Se = await $components[$e]();
92225
92243
  Q.params.linkComponentView = markRaw(Se.default);
@@ -92354,7 +92372,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_c354513b_lang = "", _withSco
92354
92372
  return ye.setHours(23), ye.setMinutes(59), ye.setSeconds(59), _e.valueOf() > ye.valueOf();
92355
92373
  };
92356
92374
  }
92357
- Oe.itemRender.props.clearable = !0, Q.formConfig.items.push(Oe), $e = $e && fe[be].hide;
92375
+ ue.expandQueryTool && (Oe.folding = !1), Oe.itemRender.props.clearable = !0, Q.formConfig.items.push(Oe), $e = $e && fe[be].hide;
92358
92376
  }
92359
92377
  }
92360
92378
  let pe = ue.buttons, me = !1, ge = !1;
@@ -93112,7 +93130,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_c354513b_lang = "", _withSco
93112
93130
  ]);
93113
93131
  };
93114
93132
  }
93115
- }, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-c354513b"]]);
93133
+ }, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-61076c31"]]);
93116
93134
  WindowIndex.name = "slw-window-index";
93117
93135
  WindowIndex.install = (G) => {
93118
93136
  G.component(WindowIndex.name, WindowIndex);
@@ -224444,7 +224462,7 @@ function reConsole() {
224444
224462
  }
224445
224463
  }
224446
224464
  console.info(
224447
- `%cSLW %cVer 1.0.0-beta.17.5%c
224465
+ `%cSLW %cVer 1.0.0-beta.17.6%c
224448
224466
  %c指引文档:%chttp://slwdoc.js.sforcecon.com:5900/%c
224449
224467
  %c启光文档:%chttp://docs.js.sforcecon.com:5900/notepad/view/592`,
224450
224468
  "color:#409EFF;font-size: 22px;font-weight:bolder;text-shadow: 2px 2px 4px #84c1ff;",
package/lib/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { i as m } from "./index-8784112f.js";
1
+ import { i as m } from "./index-15cc6030.js";
2
2
  import "vue";
3
3
  import "vue-router";
4
4
  export {