@juzhenfe/page-model 3.9.49 → 3.10.1

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 CHANGED
@@ -4,35 +4,11 @@ var __publicField = (obj, key, value) => {
4
4
  __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
5
5
  return value;
6
6
  };
7
- import { reactive, defineComponent, openBlock, createElementBlock, computed, ref, resolveComponent, normalizeClass, unref, createVNode, mergeProps, withCtx, Fragment, renderList, createBlock, createElementVNode, toDisplayString, nextTick, watch, markRaw, getCurrentInstance, resolveDynamicComponent, renderSlot, inject, createTextVNode, withModifiers, toRefs, h, onUnmounted, toHandlers, onMounted, createCommentVNode, render, pushScopeId, popScopeId, resolveDirective, withDirectives, vShow, Teleport, normalizeStyle, useSlots, onActivated, watchEffect, normalizeProps, guardReactiveProps, provide, Transition, createSlots } from "vue";
7
+ import { reactive, defineComponent, openBlock, createElementBlock, computed, ref, resolveComponent, normalizeClass, unref, createVNode, mergeProps, withCtx, Fragment, renderList, createBlock, createElementVNode, toDisplayString, nextTick, watch, markRaw, getCurrentInstance, resolveDynamicComponent, renderSlot, inject, createTextVNode, withModifiers, toRefs, h, onUnmounted, useSlots, toHandlers, createSlots, onMounted, createCommentVNode, render, pushScopeId, popScopeId, resolveDirective, withDirectives, vShow, Teleport, normalizeStyle, onActivated, watchEffect, normalizeProps, guardReactiveProps, provide, Transition } from "vue";
8
8
  import { ElMessage, ElLoading, ElMessageBox } from "element-plus";
9
9
  function defineConfig(config) {
10
10
  return reactive(config);
11
11
  }
12
- const patchFilterCreator = (opt) => {
13
- return function(config) {
14
- if (config.searchForm) {
15
- config.searchForm.useFilter = true;
16
- config.searchForm.filters = {
17
- url: opt.url
18
- };
19
- }
20
- return config;
21
- };
22
- };
23
- const patchScenesCreator = (opt) => {
24
- return function(config) {
25
- let tabs = config.tabs;
26
- if (!tabs) {
27
- tabs = {};
28
- }
29
- tabs.useScene = true;
30
- tabs.sceneTab = {
31
- url: opt.url
32
- };
33
- return config;
34
- };
35
- };
36
12
  const createBEMSpace = (space) => {
37
13
  return {
38
14
  BEMSpace: space,
@@ -206,11 +182,11 @@ const randomStr = (len = 16) => {
206
182
  }).join("");
207
183
  };
208
184
  const _hoisted_1$x = { class: "scenes-tab" };
209
- const __default__$p = {
185
+ const __default__$o = {
210
186
  name: "ScenesTab"
211
187
  };
212
- const _sfc_main$Z = defineComponent({
213
- ...__default__$p,
188
+ const _sfc_main$Y = defineComponent({
189
+ ...__default__$o,
214
190
  setup(__props, { expose: __expose }) {
215
191
  const getValue2 = () => {
216
192
  return {};
@@ -224,11 +200,11 @@ const _sfc_main$Z = defineComponent({
224
200
  }
225
201
  });
226
202
  var index_vue_vue_type_style_index_0_lang$d = "";
227
- const __default__$o = {
203
+ const __default__$n = {
228
204
  name: "NormalTab"
229
205
  };
230
- const _sfc_main$Y = defineComponent({
231
- ...__default__$o,
206
+ const _sfc_main$X = defineComponent({
207
+ ...__default__$n,
232
208
  props: {
233
209
  panes: {},
234
210
  props: {}
@@ -1448,11 +1424,11 @@ class TopTabsManager extends IManager {
1448
1424
  }
1449
1425
  }
1450
1426
  var index_vue_vue_type_style_index_0_lang$c = "";
1451
- const __default__$n = {
1427
+ const __default__$m = {
1452
1428
  name: "TopTabs"
1453
1429
  };
1454
- const _sfc_main$X = defineComponent({
1455
- ...__default__$n,
1430
+ const _sfc_main$W = defineComponent({
1431
+ ...__default__$m,
1456
1432
  props: {
1457
1433
  tabs: {},
1458
1434
  manager: {}
@@ -1472,12 +1448,12 @@ const _sfc_main$X = defineComponent({
1472
1448
  const tabComponent = computed(() => {
1473
1449
  if (props.tabs.useScene) {
1474
1450
  return {
1475
- component: _sfc_main$Z,
1451
+ component: _sfc_main$Y,
1476
1452
  props: props.tabs.sceneTab
1477
1453
  };
1478
1454
  } else {
1479
1455
  return {
1480
- component: _sfc_main$Y,
1456
+ component: _sfc_main$X,
1481
1457
  props: {
1482
1458
  panes: props.tabs.panes,
1483
1459
  props: props.tabs.props
@@ -2101,7 +2077,7 @@ var _export_sfc$1 = (sfc, props) => {
2101
2077
  }
2102
2078
  return target;
2103
2079
  };
2104
- const _sfc_main$W = defineComponent({
2080
+ const _sfc_main$V = defineComponent({
2105
2081
  name: "ArrowDownBold"
2106
2082
  });
2107
2083
  const _hoisted_1$w = {
@@ -2111,18 +2087,18 @@ const _hoisted_1$w = {
2111
2087
  viewBox: "0 0 1024 1024",
2112
2088
  xmlns: "http://www.w3.org/2000/svg"
2113
2089
  };
2114
- const _hoisted_2$p = /* @__PURE__ */ createElementVNode("path", {
2090
+ const _hoisted_2$q = /* @__PURE__ */ createElementVNode("path", {
2115
2091
  fill: "currentColor",
2116
2092
  d: "M104.704 338.752a64 64 0 0190.496 0l316.8 316.8 316.8-316.8a64 64 0 0190.496 90.496L557.248 791.296a64 64 0 01-90.496 0L104.704 429.248a64 64 0 010-90.496z"
2117
2093
  }, null, -1);
2118
2094
  const _hoisted_3$o = [
2119
- _hoisted_2$p
2095
+ _hoisted_2$q
2120
2096
  ];
2121
2097
  function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
2122
2098
  return openBlock(), createElementBlock("svg", _hoisted_1$w, _hoisted_3$o);
2123
2099
  }
2124
- var arrowDownBold = /* @__PURE__ */ _export_sfc$1(_sfc_main$W, [["render", _sfc_render$j]]);
2125
- const _sfc_main$V = defineComponent({
2100
+ var arrowDownBold = /* @__PURE__ */ _export_sfc$1(_sfc_main$V, [["render", _sfc_render$j]]);
2101
+ const _sfc_main$U = defineComponent({
2126
2102
  name: "ArrowDown"
2127
2103
  });
2128
2104
  const _hoisted_1$v = {
@@ -2132,18 +2108,18 @@ const _hoisted_1$v = {
2132
2108
  viewBox: "0 0 1024 1024",
2133
2109
  xmlns: "http://www.w3.org/2000/svg"
2134
2110
  };
2135
- const _hoisted_2$o = /* @__PURE__ */ createElementVNode("path", {
2111
+ const _hoisted_2$p = /* @__PURE__ */ createElementVNode("path", {
2136
2112
  fill: "currentColor",
2137
2113
  d: "M831.872 340.864L512 652.672 192.128 340.864a30.592 30.592 0 00-42.752 0 29.12 29.12 0 000 41.6L489.664 714.24a32 32 0 0044.672 0l340.288-331.712a29.12 29.12 0 000-41.728 30.592 30.592 0 00-42.752 0z"
2138
2114
  }, null, -1);
2139
2115
  const _hoisted_3$n = [
2140
- _hoisted_2$o
2116
+ _hoisted_2$p
2141
2117
  ];
2142
2118
  function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
2143
2119
  return openBlock(), createElementBlock("svg", _hoisted_1$v, _hoisted_3$n);
2144
2120
  }
2145
- var arrowDown = /* @__PURE__ */ _export_sfc$1(_sfc_main$V, [["render", _sfc_render$i]]);
2146
- const _sfc_main$U = defineComponent({
2121
+ var arrowDown = /* @__PURE__ */ _export_sfc$1(_sfc_main$U, [["render", _sfc_render$i]]);
2122
+ const _sfc_main$T = defineComponent({
2147
2123
  name: "CaretBottom"
2148
2124
  });
2149
2125
  const _hoisted_1$u = {
@@ -2153,18 +2129,18 @@ const _hoisted_1$u = {
2153
2129
  viewBox: "0 0 1024 1024",
2154
2130
  xmlns: "http://www.w3.org/2000/svg"
2155
2131
  };
2156
- const _hoisted_2$n = /* @__PURE__ */ createElementVNode("path", {
2132
+ const _hoisted_2$o = /* @__PURE__ */ createElementVNode("path", {
2157
2133
  fill: "currentColor",
2158
2134
  d: "M192 384l320 384 320-384z"
2159
2135
  }, null, -1);
2160
2136
  const _hoisted_3$m = [
2161
- _hoisted_2$n
2137
+ _hoisted_2$o
2162
2138
  ];
2163
2139
  function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
2164
2140
  return openBlock(), createElementBlock("svg", _hoisted_1$u, _hoisted_3$m);
2165
2141
  }
2166
- var caretBottom = /* @__PURE__ */ _export_sfc$1(_sfc_main$U, [["render", _sfc_render$h]]);
2167
- const _sfc_main$T = defineComponent({
2142
+ var caretBottom = /* @__PURE__ */ _export_sfc$1(_sfc_main$T, [["render", _sfc_render$h]]);
2143
+ const _sfc_main$S = defineComponent({
2168
2144
  name: "CaretRight"
2169
2145
  });
2170
2146
  const _hoisted_1$t = {
@@ -2174,18 +2150,18 @@ const _hoisted_1$t = {
2174
2150
  viewBox: "0 0 1024 1024",
2175
2151
  xmlns: "http://www.w3.org/2000/svg"
2176
2152
  };
2177
- const _hoisted_2$m = /* @__PURE__ */ createElementVNode("path", {
2153
+ const _hoisted_2$n = /* @__PURE__ */ createElementVNode("path", {
2178
2154
  fill: "currentColor",
2179
2155
  d: "M384 192v640l384-320.064z"
2180
2156
  }, null, -1);
2181
2157
  const _hoisted_3$l = [
2182
- _hoisted_2$m
2158
+ _hoisted_2$n
2183
2159
  ];
2184
2160
  function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
2185
2161
  return openBlock(), createElementBlock("svg", _hoisted_1$t, _hoisted_3$l);
2186
2162
  }
2187
- var caretRight = /* @__PURE__ */ _export_sfc$1(_sfc_main$T, [["render", _sfc_render$g]]);
2188
- const _sfc_main$S = defineComponent({
2163
+ var caretRight = /* @__PURE__ */ _export_sfc$1(_sfc_main$S, [["render", _sfc_render$g]]);
2164
+ const _sfc_main$R = defineComponent({
2189
2165
  name: "CaretTop"
2190
2166
  });
2191
2167
  const _hoisted_1$s = {
@@ -2195,18 +2171,18 @@ const _hoisted_1$s = {
2195
2171
  viewBox: "0 0 1024 1024",
2196
2172
  xmlns: "http://www.w3.org/2000/svg"
2197
2173
  };
2198
- const _hoisted_2$l = /* @__PURE__ */ createElementVNode("path", {
2174
+ const _hoisted_2$m = /* @__PURE__ */ createElementVNode("path", {
2199
2175
  fill: "currentColor",
2200
2176
  d: "M512 320L192 704h639.936z"
2201
2177
  }, null, -1);
2202
2178
  const _hoisted_3$k = [
2203
- _hoisted_2$l
2179
+ _hoisted_2$m
2204
2180
  ];
2205
2181
  function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
2206
2182
  return openBlock(), createElementBlock("svg", _hoisted_1$s, _hoisted_3$k);
2207
2183
  }
2208
- var caretTop = /* @__PURE__ */ _export_sfc$1(_sfc_main$S, [["render", _sfc_render$f]]);
2209
- const _sfc_main$R = defineComponent({
2184
+ var caretTop = /* @__PURE__ */ _export_sfc$1(_sfc_main$R, [["render", _sfc_render$f]]);
2185
+ const _sfc_main$Q = defineComponent({
2210
2186
  name: "CirclePlusFilled"
2211
2187
  });
2212
2188
  const _hoisted_1$r = {
@@ -2216,18 +2192,18 @@ const _hoisted_1$r = {
2216
2192
  viewBox: "0 0 1024 1024",
2217
2193
  xmlns: "http://www.w3.org/2000/svg"
2218
2194
  };
2219
- const _hoisted_2$k = /* @__PURE__ */ createElementVNode("path", {
2195
+ const _hoisted_2$l = /* @__PURE__ */ createElementVNode("path", {
2220
2196
  fill: "currentColor",
2221
2197
  d: "M512 64a448 448 0 110 896 448 448 0 010-896zm-38.4 409.6H326.4a38.4 38.4 0 100 76.8h147.2v147.2a38.4 38.4 0 0076.8 0V550.4h147.2a38.4 38.4 0 000-76.8H550.4V326.4a38.4 38.4 0 10-76.8 0v147.2z"
2222
2198
  }, null, -1);
2223
2199
  const _hoisted_3$j = [
2224
- _hoisted_2$k
2200
+ _hoisted_2$l
2225
2201
  ];
2226
2202
  function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
2227
2203
  return openBlock(), createElementBlock("svg", _hoisted_1$r, _hoisted_3$j);
2228
2204
  }
2229
- var circlePlusFilled = /* @__PURE__ */ _export_sfc$1(_sfc_main$R, [["render", _sfc_render$e]]);
2230
- const _sfc_main$Q = defineComponent({
2205
+ var circlePlusFilled = /* @__PURE__ */ _export_sfc$1(_sfc_main$Q, [["render", _sfc_render$e]]);
2206
+ const _sfc_main$P = defineComponent({
2231
2207
  name: "CirclePlus"
2232
2208
  });
2233
2209
  const _hoisted_1$q = {
@@ -2237,7 +2213,7 @@ const _hoisted_1$q = {
2237
2213
  viewBox: "0 0 1024 1024",
2238
2214
  xmlns: "http://www.w3.org/2000/svg"
2239
2215
  };
2240
- const _hoisted_2$j = /* @__PURE__ */ createElementVNode("path", {
2216
+ const _hoisted_2$k = /* @__PURE__ */ createElementVNode("path", {
2241
2217
  fill: "currentColor",
2242
2218
  d: "M352 480h320a32 32 0 110 64H352a32 32 0 010-64z"
2243
2219
  }, null, -1);
@@ -2249,16 +2225,16 @@ const _hoisted_4$7 = /* @__PURE__ */ createElementVNode("path", {
2249
2225
  fill: "currentColor",
2250
2226
  d: "M512 896a384 384 0 100-768 384 384 0 000 768zm0 64a448 448 0 110-896 448 448 0 010 896z"
2251
2227
  }, null, -1);
2252
- const _hoisted_5$3 = [
2253
- _hoisted_2$j,
2228
+ const _hoisted_5$4 = [
2229
+ _hoisted_2$k,
2254
2230
  _hoisted_3$i,
2255
2231
  _hoisted_4$7
2256
2232
  ];
2257
2233
  function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
2258
- return openBlock(), createElementBlock("svg", _hoisted_1$q, _hoisted_5$3);
2234
+ return openBlock(), createElementBlock("svg", _hoisted_1$q, _hoisted_5$4);
2259
2235
  }
2260
- var circlePlus = /* @__PURE__ */ _export_sfc$1(_sfc_main$Q, [["render", _sfc_render$d]]);
2261
- const _sfc_main$P = defineComponent({
2236
+ var circlePlus = /* @__PURE__ */ _export_sfc$1(_sfc_main$P, [["render", _sfc_render$d]]);
2237
+ const _sfc_main$O = defineComponent({
2262
2238
  name: "Download"
2263
2239
  });
2264
2240
  const _hoisted_1$p = {
@@ -2268,18 +2244,18 @@ const _hoisted_1$p = {
2268
2244
  viewBox: "0 0 1024 1024",
2269
2245
  xmlns: "http://www.w3.org/2000/svg"
2270
2246
  };
2271
- const _hoisted_2$i = /* @__PURE__ */ createElementVNode("path", {
2247
+ const _hoisted_2$j = /* @__PURE__ */ createElementVNode("path", {
2272
2248
  fill: "currentColor",
2273
2249
  d: "M160 832h704a32 32 0 110 64H160a32 32 0 110-64zm384-253.696l236.288-236.352 45.248 45.248L508.8 704 192 387.2l45.248-45.248L480 584.704V128h64v450.304z"
2274
2250
  }, null, -1);
2275
2251
  const _hoisted_3$h = [
2276
- _hoisted_2$i
2252
+ _hoisted_2$j
2277
2253
  ];
2278
2254
  function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
2279
2255
  return openBlock(), createElementBlock("svg", _hoisted_1$p, _hoisted_3$h);
2280
2256
  }
2281
- var download = /* @__PURE__ */ _export_sfc$1(_sfc_main$P, [["render", _sfc_render$c]]);
2282
- const _sfc_main$O = defineComponent({
2257
+ var download = /* @__PURE__ */ _export_sfc$1(_sfc_main$O, [["render", _sfc_render$c]]);
2258
+ const _sfc_main$N = defineComponent({
2283
2259
  name: "Edit"
2284
2260
  });
2285
2261
  const _hoisted_1$o = {
@@ -2289,7 +2265,7 @@ const _hoisted_1$o = {
2289
2265
  viewBox: "0 0 1024 1024",
2290
2266
  xmlns: "http://www.w3.org/2000/svg"
2291
2267
  };
2292
- const _hoisted_2$h = /* @__PURE__ */ createElementVNode("path", {
2268
+ const _hoisted_2$i = /* @__PURE__ */ createElementVNode("path", {
2293
2269
  fill: "currentColor",
2294
2270
  d: "M832 512a32 32 0 1164 0v352a32 32 0 01-32 32H160a32 32 0 01-32-32V160a32 32 0 0132-32h352a32 32 0 010 64H192v640h640V512z"
2295
2271
  }, null, -1);
@@ -2298,14 +2274,14 @@ const _hoisted_3$g = /* @__PURE__ */ createElementVNode("path", {
2298
2274
  d: "M469.952 554.24l52.8-7.552L847.104 222.4a32 32 0 10-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 010 135.808l-331.84 331.84a32 32 0 01-18.112 9.088L436.8 623.68a32 32 0 01-36.224-36.224l15.104-105.6a32 32 0 019.024-18.112l331.904-331.84a96 96 0 01135.744 0z"
2299
2275
  }, null, -1);
2300
2276
  const _hoisted_4$6 = [
2301
- _hoisted_2$h,
2277
+ _hoisted_2$i,
2302
2278
  _hoisted_3$g
2303
2279
  ];
2304
2280
  function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
2305
2281
  return openBlock(), createElementBlock("svg", _hoisted_1$o, _hoisted_4$6);
2306
2282
  }
2307
- var edit = /* @__PURE__ */ _export_sfc$1(_sfc_main$O, [["render", _sfc_render$b]]);
2308
- const _sfc_main$N = defineComponent({
2283
+ var edit = /* @__PURE__ */ _export_sfc$1(_sfc_main$N, [["render", _sfc_render$b]]);
2284
+ const _sfc_main$M = defineComponent({
2309
2285
  name: "Filter"
2310
2286
  });
2311
2287
  const _hoisted_1$n = {
@@ -2315,18 +2291,18 @@ const _hoisted_1$n = {
2315
2291
  viewBox: "0 0 1024 1024",
2316
2292
  xmlns: "http://www.w3.org/2000/svg"
2317
2293
  };
2318
- const _hoisted_2$g = /* @__PURE__ */ createElementVNode("path", {
2294
+ const _hoisted_2$h = /* @__PURE__ */ createElementVNode("path", {
2319
2295
  fill: "currentColor",
2320
2296
  d: "M384 523.392V928a32 32 0 0046.336 28.608l192-96A32 32 0 00640 832V523.392l280.768-343.104a32 32 0 10-49.536-40.576l-288 352A32 32 0 00576 512v300.224l-128 64V512a32 32 0 00-7.232-20.288L195.52 192H704a32 32 0 100-64H128a32 32 0 00-24.768 52.288L384 523.392z"
2321
2297
  }, null, -1);
2322
2298
  const _hoisted_3$f = [
2323
- _hoisted_2$g
2299
+ _hoisted_2$h
2324
2300
  ];
2325
2301
  function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
2326
2302
  return openBlock(), createElementBlock("svg", _hoisted_1$n, _hoisted_3$f);
2327
2303
  }
2328
- var filter = /* @__PURE__ */ _export_sfc$1(_sfc_main$N, [["render", _sfc_render$a]]);
2329
- const _sfc_main$M = defineComponent({
2304
+ var filter = /* @__PURE__ */ _export_sfc$1(_sfc_main$M, [["render", _sfc_render$a]]);
2305
+ const _sfc_main$L = defineComponent({
2330
2306
  name: "FullScreen"
2331
2307
  });
2332
2308
  const _hoisted_1$m = {
@@ -2336,18 +2312,18 @@ const _hoisted_1$m = {
2336
2312
  viewBox: "0 0 1024 1024",
2337
2313
  xmlns: "http://www.w3.org/2000/svg"
2338
2314
  };
2339
- const _hoisted_2$f = /* @__PURE__ */ createElementVNode("path", {
2315
+ const _hoisted_2$g = /* @__PURE__ */ createElementVNode("path", {
2340
2316
  fill: "currentColor",
2341
2317
  d: "M160 96.064l192 .192a32 32 0 010 64l-192-.192V352a32 32 0 01-64 0V96h64v.064zm0 831.872V928H96V672a32 32 0 1164 0v191.936l192-.192a32 32 0 110 64l-192 .192zM864 96.064V96h64v256a32 32 0 11-64 0V160.064l-192 .192a32 32 0 110-64l192-.192zm0 831.872l-192-.192a32 32 0 010-64l192 .192V672a32 32 0 1164 0v256h-64v-.064z"
2342
2318
  }, null, -1);
2343
2319
  const _hoisted_3$e = [
2344
- _hoisted_2$f
2320
+ _hoisted_2$g
2345
2321
  ];
2346
2322
  function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
2347
2323
  return openBlock(), createElementBlock("svg", _hoisted_1$m, _hoisted_3$e);
2348
2324
  }
2349
- var fullScreen = /* @__PURE__ */ _export_sfc$1(_sfc_main$M, [["render", _sfc_render$9]]);
2350
- const _sfc_main$L = defineComponent({
2325
+ var fullScreen = /* @__PURE__ */ _export_sfc$1(_sfc_main$L, [["render", _sfc_render$9]]);
2326
+ const _sfc_main$K = defineComponent({
2351
2327
  name: "Grid"
2352
2328
  });
2353
2329
  const _hoisted_1$l = {
@@ -2357,18 +2333,18 @@ const _hoisted_1$l = {
2357
2333
  viewBox: "0 0 1024 1024",
2358
2334
  xmlns: "http://www.w3.org/2000/svg"
2359
2335
  };
2360
- const _hoisted_2$e = /* @__PURE__ */ createElementVNode("path", {
2336
+ const _hoisted_2$f = /* @__PURE__ */ createElementVNode("path", {
2361
2337
  fill: "currentColor",
2362
2338
  d: "M640 384v256H384V384h256zm64 0h192v256H704V384zm-64 512H384V704h256v192zm64 0V704h192v192H704zm-64-768v192H384V128h256zm64 0h192v192H704V128zM320 384v256H128V384h192zm0 512H128V704h192v192zm0-768v192H128V128h192z"
2363
2339
  }, null, -1);
2364
2340
  const _hoisted_3$d = [
2365
- _hoisted_2$e
2341
+ _hoisted_2$f
2366
2342
  ];
2367
2343
  function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
2368
2344
  return openBlock(), createElementBlock("svg", _hoisted_1$l, _hoisted_3$d);
2369
2345
  }
2370
- var grid = /* @__PURE__ */ _export_sfc$1(_sfc_main$L, [["render", _sfc_render$8]]);
2371
- const _sfc_main$K = defineComponent({
2346
+ var grid = /* @__PURE__ */ _export_sfc$1(_sfc_main$K, [["render", _sfc_render$8]]);
2347
+ const _sfc_main$J = defineComponent({
2372
2348
  name: "Loading"
2373
2349
  });
2374
2350
  const _hoisted_1$k = {
@@ -2378,18 +2354,18 @@ const _hoisted_1$k = {
2378
2354
  viewBox: "0 0 1024 1024",
2379
2355
  xmlns: "http://www.w3.org/2000/svg"
2380
2356
  };
2381
- const _hoisted_2$d = /* @__PURE__ */ createElementVNode("path", {
2357
+ const _hoisted_2$e = /* @__PURE__ */ createElementVNode("path", {
2382
2358
  fill: "currentColor",
2383
2359
  d: "M512 64a32 32 0 0132 32v192a32 32 0 01-64 0V96a32 32 0 0132-32zm0 640a32 32 0 0132 32v192a32 32 0 11-64 0V736a32 32 0 0132-32zm448-192a32 32 0 01-32 32H736a32 32 0 110-64h192a32 32 0 0132 32zm-640 0a32 32 0 01-32 32H96a32 32 0 010-64h192a32 32 0 0132 32zM195.2 195.2a32 32 0 0145.248 0L376.32 331.008a32 32 0 01-45.248 45.248L195.2 240.448a32 32 0 010-45.248zm452.544 452.544a32 32 0 0145.248 0L828.8 783.552a32 32 0 01-45.248 45.248L647.744 692.992a32 32 0 010-45.248zM828.8 195.264a32 32 0 010 45.184L692.992 376.32a32 32 0 01-45.248-45.248l135.808-135.808a32 32 0 0145.248 0zm-452.544 452.48a32 32 0 010 45.248L240.448 828.8a32 32 0 01-45.248-45.248l135.808-135.808a32 32 0 0145.248 0z"
2384
2360
  }, null, -1);
2385
2361
  const _hoisted_3$c = [
2386
- _hoisted_2$d
2362
+ _hoisted_2$e
2387
2363
  ];
2388
2364
  function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
2389
2365
  return openBlock(), createElementBlock("svg", _hoisted_1$k, _hoisted_3$c);
2390
2366
  }
2391
- var loading = /* @__PURE__ */ _export_sfc$1(_sfc_main$K, [["render", _sfc_render$7]]);
2392
- const _sfc_main$J = defineComponent({
2367
+ var loading = /* @__PURE__ */ _export_sfc$1(_sfc_main$J, [["render", _sfc_render$7]]);
2368
+ const _sfc_main$I = defineComponent({
2393
2369
  name: "Menu"
2394
2370
  });
2395
2371
  const _hoisted_1$j = {
@@ -2399,18 +2375,18 @@ const _hoisted_1$j = {
2399
2375
  viewBox: "0 0 1024 1024",
2400
2376
  xmlns: "http://www.w3.org/2000/svg"
2401
2377
  };
2402
- const _hoisted_2$c = /* @__PURE__ */ createElementVNode("path", {
2378
+ const _hoisted_2$d = /* @__PURE__ */ createElementVNode("path", {
2403
2379
  fill: "currentColor",
2404
2380
  d: "M160 448a32 32 0 01-32-32V160.064a32 32 0 0132-32h256a32 32 0 0132 32V416a32 32 0 01-32 32H160zm448 0a32 32 0 01-32-32V160.064a32 32 0 0132-32h255.936a32 32 0 0132 32V416a32 32 0 01-32 32H608zM160 896a32 32 0 01-32-32V608a32 32 0 0132-32h256a32 32 0 0132 32v256a32 32 0 01-32 32H160zm448 0a32 32 0 01-32-32V608a32 32 0 0132-32h255.936a32 32 0 0132 32v256a32 32 0 01-32 32H608z"
2405
2381
  }, null, -1);
2406
2382
  const _hoisted_3$b = [
2407
- _hoisted_2$c
2383
+ _hoisted_2$d
2408
2384
  ];
2409
2385
  function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
2410
2386
  return openBlock(), createElementBlock("svg", _hoisted_1$j, _hoisted_3$b);
2411
2387
  }
2412
- var menu = /* @__PURE__ */ _export_sfc$1(_sfc_main$J, [["render", _sfc_render$6]]);
2413
- const _sfc_main$I = defineComponent({
2388
+ var menu = /* @__PURE__ */ _export_sfc$1(_sfc_main$I, [["render", _sfc_render$6]]);
2389
+ const _sfc_main$H = defineComponent({
2414
2390
  name: "QuestionFilled"
2415
2391
  });
2416
2392
  const _hoisted_1$i = {
@@ -2420,18 +2396,18 @@ const _hoisted_1$i = {
2420
2396
  viewBox: "0 0 1024 1024",
2421
2397
  xmlns: "http://www.w3.org/2000/svg"
2422
2398
  };
2423
- const _hoisted_2$b = /* @__PURE__ */ createElementVNode("path", {
2399
+ const _hoisted_2$c = /* @__PURE__ */ createElementVNode("path", {
2424
2400
  fill: "currentColor",
2425
2401
  d: "M512 64a448 448 0 110 896 448 448 0 010-896zm23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592 0-42.944-14.08-76.736-42.24-101.376-28.16-25.344-65.472-37.312-111.232-37.312zm-12.672 406.208a54.272 54.272 0 00-38.72 14.784 49.408 49.408 0 00-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.848 54.848 0 00523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0016.192-38.72 51.968 51.968 0 00-15.488-38.016 55.936 55.936 0 00-39.424-14.784z"
2426
2402
  }, null, -1);
2427
2403
  const _hoisted_3$a = [
2428
- _hoisted_2$b
2404
+ _hoisted_2$c
2429
2405
  ];
2430
2406
  function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
2431
2407
  return openBlock(), createElementBlock("svg", _hoisted_1$i, _hoisted_3$a);
2432
2408
  }
2433
- var questionFilled = /* @__PURE__ */ _export_sfc$1(_sfc_main$I, [["render", _sfc_render$5]]);
2434
- const _sfc_main$H = defineComponent({
2409
+ var questionFilled = /* @__PURE__ */ _export_sfc$1(_sfc_main$H, [["render", _sfc_render$5]]);
2410
+ const _sfc_main$G = defineComponent({
2435
2411
  name: "RefreshLeft"
2436
2412
  });
2437
2413
  const _hoisted_1$h = {
@@ -2441,18 +2417,18 @@ const _hoisted_1$h = {
2441
2417
  viewBox: "0 0 1024 1024",
2442
2418
  xmlns: "http://www.w3.org/2000/svg"
2443
2419
  };
2444
- const _hoisted_2$a = /* @__PURE__ */ createElementVNode("path", {
2420
+ const _hoisted_2$b = /* @__PURE__ */ createElementVNode("path", {
2445
2421
  fill: "currentColor",
2446
2422
  d: "M289.088 296.704h92.992a32 32 0 010 64H232.96a32 32 0 01-32-32V179.712a32 32 0 0164 0v50.56a384 384 0 01643.84 282.88 384 384 0 01-383.936 384 384 384 0 01-384-384h64a320 320 0 10640 0 320 320 0 00-555.712-216.448z"
2447
2423
  }, null, -1);
2448
2424
  const _hoisted_3$9 = [
2449
- _hoisted_2$a
2425
+ _hoisted_2$b
2450
2426
  ];
2451
2427
  function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
2452
2428
  return openBlock(), createElementBlock("svg", _hoisted_1$h, _hoisted_3$9);
2453
2429
  }
2454
- var refreshLeft = /* @__PURE__ */ _export_sfc$1(_sfc_main$H, [["render", _sfc_render$4]]);
2455
- const _sfc_main$G = defineComponent({
2430
+ var refreshLeft = /* @__PURE__ */ _export_sfc$1(_sfc_main$G, [["render", _sfc_render$4]]);
2431
+ const _sfc_main$F = defineComponent({
2456
2432
  name: "RemoveFilled"
2457
2433
  });
2458
2434
  const _hoisted_1$g = {
@@ -2462,18 +2438,18 @@ const _hoisted_1$g = {
2462
2438
  viewBox: "0 0 1024 1024",
2463
2439
  xmlns: "http://www.w3.org/2000/svg"
2464
2440
  };
2465
- const _hoisted_2$9 = /* @__PURE__ */ createElementVNode("path", {
2441
+ const _hoisted_2$a = /* @__PURE__ */ createElementVNode("path", {
2466
2442
  fill: "currentColor",
2467
2443
  d: "M512 64a448 448 0 110 896 448 448 0 010-896zM288 512a38.4 38.4 0 0038.4 38.4h371.2a38.4 38.4 0 000-76.8H326.4A38.4 38.4 0 00288 512z"
2468
2444
  }, null, -1);
2469
2445
  const _hoisted_3$8 = [
2470
- _hoisted_2$9
2446
+ _hoisted_2$a
2471
2447
  ];
2472
2448
  function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
2473
2449
  return openBlock(), createElementBlock("svg", _hoisted_1$g, _hoisted_3$8);
2474
2450
  }
2475
- var removeFilled = /* @__PURE__ */ _export_sfc$1(_sfc_main$G, [["render", _sfc_render$3]]);
2476
- const _sfc_main$F = defineComponent({
2451
+ var removeFilled = /* @__PURE__ */ _export_sfc$1(_sfc_main$F, [["render", _sfc_render$3]]);
2452
+ const _sfc_main$E = defineComponent({
2477
2453
  name: "Remove"
2478
2454
  });
2479
2455
  const _hoisted_1$f = {
@@ -2483,7 +2459,7 @@ const _hoisted_1$f = {
2483
2459
  viewBox: "0 0 1024 1024",
2484
2460
  xmlns: "http://www.w3.org/2000/svg"
2485
2461
  };
2486
- const _hoisted_2$8 = /* @__PURE__ */ createElementVNode("path", {
2462
+ const _hoisted_2$9 = /* @__PURE__ */ createElementVNode("path", {
2487
2463
  fill: "currentColor",
2488
2464
  d: "M352 480h320a32 32 0 110 64H352a32 32 0 010-64z"
2489
2465
  }, null, -1);
@@ -2492,14 +2468,14 @@ const _hoisted_3$7 = /* @__PURE__ */ createElementVNode("path", {
2492
2468
  d: "M512 896a384 384 0 100-768 384 384 0 000 768zm0 64a448 448 0 110-896 448 448 0 010 896z"
2493
2469
  }, null, -1);
2494
2470
  const _hoisted_4$5 = [
2495
- _hoisted_2$8,
2471
+ _hoisted_2$9,
2496
2472
  _hoisted_3$7
2497
2473
  ];
2498
2474
  function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
2499
2475
  return openBlock(), createElementBlock("svg", _hoisted_1$f, _hoisted_4$5);
2500
2476
  }
2501
- var remove = /* @__PURE__ */ _export_sfc$1(_sfc_main$F, [["render", _sfc_render$2]]);
2502
- const _sfc_main$E = defineComponent({
2477
+ var remove = /* @__PURE__ */ _export_sfc$1(_sfc_main$E, [["render", _sfc_render$2]]);
2478
+ const _sfc_main$D = defineComponent({
2503
2479
  name: "Select"
2504
2480
  });
2505
2481
  const _hoisted_1$e = {
@@ -2509,18 +2485,18 @@ const _hoisted_1$e = {
2509
2485
  viewBox: "0 0 1024 1024",
2510
2486
  xmlns: "http://www.w3.org/2000/svg"
2511
2487
  };
2512
- const _hoisted_2$7 = /* @__PURE__ */ createElementVNode("path", {
2488
+ const _hoisted_2$8 = /* @__PURE__ */ createElementVNode("path", {
2513
2489
  fill: "currentColor",
2514
2490
  d: "M77.248 415.04a64 64 0 0190.496 0l226.304 226.304L846.528 188.8a64 64 0 1190.56 90.496l-543.04 543.04-316.8-316.8a64 64 0 010-90.496z"
2515
2491
  }, null, -1);
2516
2492
  const _hoisted_3$6 = [
2517
- _hoisted_2$7
2493
+ _hoisted_2$8
2518
2494
  ];
2519
2495
  function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
2520
2496
  return openBlock(), createElementBlock("svg", _hoisted_1$e, _hoisted_3$6);
2521
2497
  }
2522
- var select = /* @__PURE__ */ _export_sfc$1(_sfc_main$E, [["render", _sfc_render$1]]);
2523
- const _sfc_main$D = defineComponent({
2498
+ var select = /* @__PURE__ */ _export_sfc$1(_sfc_main$D, [["render", _sfc_render$1]]);
2499
+ const _sfc_main$C = defineComponent({
2524
2500
  name: "Tools"
2525
2501
  });
2526
2502
  const _hoisted_1$d = {
@@ -2530,27 +2506,27 @@ const _hoisted_1$d = {
2530
2506
  viewBox: "0 0 1024 1024",
2531
2507
  xmlns: "http://www.w3.org/2000/svg"
2532
2508
  };
2533
- const _hoisted_2$6 = /* @__PURE__ */ createElementVNode("path", {
2509
+ const _hoisted_2$7 = /* @__PURE__ */ createElementVNode("path", {
2534
2510
  fill: "currentColor",
2535
2511
  d: "M764.416 254.72a351.68 351.68 0 0186.336 149.184H960v192.064H850.752a351.68 351.68 0 01-86.336 149.312l54.72 94.72-166.272 96-54.592-94.72a352.64 352.64 0 01-172.48 0L371.136 936l-166.272-96 54.72-94.72a351.68 351.68 0 01-86.336-149.312H64v-192h109.248a351.68 351.68 0 0186.336-149.312L204.8 160l166.208-96h.192l54.656 94.592a352.64 352.64 0 01172.48 0L652.8 64h.128L819.2 160l-54.72 94.72zM704 499.968a192 192 0 10-384 0 192 192 0 00384 0z"
2536
2512
  }, null, -1);
2537
2513
  const _hoisted_3$5 = [
2538
- _hoisted_2$6
2514
+ _hoisted_2$7
2539
2515
  ];
2540
2516
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
2541
2517
  return openBlock(), createElementBlock("svg", _hoisted_1$d, _hoisted_3$5);
2542
2518
  }
2543
- var tools = /* @__PURE__ */ _export_sfc$1(_sfc_main$D, [["render", _sfc_render]]);
2519
+ var tools = /* @__PURE__ */ _export_sfc$1(_sfc_main$C, [["render", _sfc_render]]);
2544
2520
  const formManagerProvideKey = Symbol("form-manager");
2545
2521
  const registerPropertyProvideKey = Symbol("registerProperty");
2546
2522
  const isOpenAuthButtonProvideKey = Symbol("isOpenAuthButton");
2547
2523
  const authButtonsProvideKey = Symbol("authButtons");
2548
2524
  var index_vue_vue_type_style_index_0_lang$b = "";
2549
- const __default__$m = {
2525
+ const __default__$l = {
2550
2526
  name: "ButtonRenderer"
2551
2527
  };
2552
- const _sfc_main$C = defineComponent({
2553
- ...__default__$m,
2528
+ const _sfc_main$B = defineComponent({
2529
+ ...__default__$l,
2554
2530
  props: {
2555
2531
  els: {},
2556
2532
  context: {},
@@ -2730,12 +2706,12 @@ const _sfc_main$C = defineComponent({
2730
2706
  };
2731
2707
  }
2732
2708
  });
2733
- const __default__$l = {
2709
+ const __default__$k = {
2734
2710
  name: "SelectableOpearte",
2735
2711
  inheritAttrs: false
2736
2712
  };
2737
- const _sfc_main$B = defineComponent({
2738
- ...__default__$l,
2713
+ const _sfc_main$A = defineComponent({
2714
+ ...__default__$k,
2739
2715
  props: {
2740
2716
  els: {},
2741
2717
  tableManager: {},
@@ -2748,7 +2724,7 @@ const _sfc_main$B = defineComponent({
2748
2724
  return ((_a = props.tableManager) == null ? void 0 : _a.selection) || [];
2749
2725
  });
2750
2726
  return (_ctx, _cache) => {
2751
- return openBlock(), createBlock(_sfc_main$C, mergeProps({
2727
+ return openBlock(), createBlock(_sfc_main$B, mergeProps({
2752
2728
  els: props.els,
2753
2729
  "execute-data": [executeData.value],
2754
2730
  context: props.manager
@@ -2756,28 +2732,6 @@ const _sfc_main$B = defineComponent({
2756
2732
  };
2757
2733
  }
2758
2734
  });
2759
- const __default__$k = {
2760
- name: "ActionTools",
2761
- inheritAttrs: false
2762
- };
2763
- const _sfc_main$A = defineComponent({
2764
- ...__default__$k,
2765
- props: {
2766
- action: {},
2767
- manager: {}
2768
- },
2769
- setup(__props) {
2770
- const props = __props;
2771
- return (_ctx, _cache) => {
2772
- return openBlock(), createElementBlock("div", null, [
2773
- createVNode(_sfc_main$C, mergeProps({
2774
- els: props.action.els,
2775
- context: props.manager
2776
- }, _ctx.$attrs), null, 16, ["els", "context"])
2777
- ]);
2778
- };
2779
- }
2780
- });
2781
2735
  class SearchFormManager extends IManager {
2782
2736
  constructor(form) {
2783
2737
  super();
@@ -3120,6 +3074,10 @@ const _sfc_main$y = defineComponent({
3120
3074
  immediate: true
3121
3075
  }
3122
3076
  );
3077
+ const slots = useSlots();
3078
+ const hasFooterSlot = computed(() => {
3079
+ return !!slots.bottom;
3080
+ });
3123
3081
  return (_ctx, _cache) => {
3124
3082
  const _component_el_dialog = resolveComponent("el-dialog");
3125
3083
  return openBlock(), createBlock(_component_el_dialog, mergeProps({
@@ -3130,23 +3088,28 @@ const _sfc_main$y = defineComponent({
3130
3088
  draggable: "",
3131
3089
  width: props.width,
3132
3090
  class: `${unref(BEMSpace)} ${props.customClass}`
3133
- }, props.dialogProps || {}, toHandlers(props.dialogEvents || {}), { "onUpdate:modelValue": onUpdateModelValue }), {
3091
+ }, props.dialogProps || {}, toHandlers(props.dialogEvents || {}), { "onUpdate:modelValue": onUpdateModelValue }), createSlots({
3134
3092
  header: withCtx(() => [
3135
3093
  createElementVNode("span", _hoisted_1$c, toDisplayString(_ctx.title), 1)
3136
3094
  ]),
3137
- footer: withCtx(() => [
3138
- renderSlot(_ctx.$slots, "bottom"),
3095
+ default: withCtx(() => [
3096
+ renderSlot(_ctx.$slots, "default"),
3139
3097
  createElementVNode("span", {
3140
3098
  ref_key: "dragElRef",
3141
3099
  ref: dragElRef,
3142
3100
  class: normalizeClass(unref(createBEMName)("dragable-icon"))
3143
3101
  }, null, 2)
3144
3102
  ]),
3145
- default: withCtx(() => [
3146
- renderSlot(_ctx.$slots, "default")
3147
- ]),
3148
- _: 3
3149
- }, 16, ["model-value", "title", "width", "class"]);
3103
+ _: 2
3104
+ }, [
3105
+ hasFooterSlot.value ? {
3106
+ name: "footer",
3107
+ fn: withCtx(() => [
3108
+ renderSlot(_ctx.$slots, "bottom")
3109
+ ]),
3110
+ key: "0"
3111
+ } : void 0
3112
+ ]), 1040, ["model-value", "title", "width", "class"]);
3150
3113
  };
3151
3114
  }
3152
3115
  });
@@ -3273,8 +3236,6 @@ const getPageModelDefaultConfig = () => {
3273
3236
  getImmediate: true,
3274
3237
  size: "default",
3275
3238
  getMethod: "get",
3276
- isAutoAddButton: true,
3277
- isAutoImportButton: true,
3278
3239
  getReqResultProcessFn(result) {
3279
3240
  return {
3280
3241
  total: result.total,
@@ -4020,11 +3981,10 @@ const _sfc_main$w = defineComponent({
4020
3981
  doSearchFormLayout
4021
3982
  });
4022
3983
  return (_ctx, _cache) => {
4023
- var _a;
4024
3984
  const _component_el_form_item = resolveComponent("el-form-item");
4025
3985
  const _component_el_form = resolveComponent("el-form");
4026
- const _component_el_button = resolveComponent("el-button");
4027
3986
  const _component_el_icon = resolveComponent("el-icon");
3987
+ const _component_el_button = resolveComponent("el-button");
4028
3988
  return openBlock(), createElementBlock("div", {
4029
3989
  ref_key: "searchFormRef",
4030
3990
  ref: searchFormRef,
@@ -4044,13 +4004,13 @@ const _sfc_main$w = defineComponent({
4044
4004
  }, {
4045
4005
  default: withCtx(() => [
4046
4006
  (openBlock(true), createElementBlock(Fragment, null, renderList(showFormEls.value, (item, index2) => {
4047
- var _a2;
4007
+ var _a;
4048
4008
  return openBlock(), createBlock(_component_el_form_item, mergeProps({
4049
4009
  key: index2,
4050
4010
  ref_for: true
4051
4011
  }, item.formItemProps, {
4052
4012
  label: "",
4053
- style: { width: ((_a2 = item.style) == null ? void 0 : _a2.width) || unref(searchFormItemWidth) }
4013
+ style: { width: ((_a = item.style) == null ? void 0 : _a.width) || unref(searchFormItemWidth) }
4054
4014
  }), {
4055
4015
  default: withCtx(() => [
4056
4016
  createVNode(_sfc_main$z, {
@@ -4068,78 +4028,78 @@ const _sfc_main$w = defineComponent({
4068
4028
  }), 128))
4069
4029
  ]),
4070
4030
  _: 1
4071
- }, 8, ["model", "class"])
4072
- ], 2),
4073
- createVNode(_component_el_button, {
4074
- loading: isFetchingData.value,
4075
- size: searchFormManager.size,
4076
- icon: unref(refreshLeft),
4077
- onClick: onReset
4078
- }, {
4079
- default: withCtx(() => [
4080
- createTextVNode("\u91CD\u7F6E")
4081
- ]),
4082
- _: 1
4083
- }, 8, ["loading", "size", "icon"]),
4084
- createVNode(_component_el_button, {
4085
- loading: isFetchingData.value,
4086
- size: searchFormManager.size,
4087
- type: "primary",
4088
- icon: unref(filter),
4089
- onClick: onSearch
4090
- }, {
4091
- default: withCtx(() => [
4092
- createTextVNode("\u7B5B\u9009")
4093
- ]),
4094
- _: 1
4095
- }, 8, ["loading", "size", "icon"]),
4096
- searchFormManager.expandMode === "dialog" && showFormEls.value.length && unref(showMoreButton) ? (openBlock(), createBlock(_component_el_button, {
4097
- key: 0,
4098
- link: "",
4099
- size: searchFormManager.size,
4100
- onClick: handleShowExpandDialog
4101
- }, {
4102
- default: withCtx(() => [
4103
- createTextVNode(" \u66F4\u591A\u7B5B\u9009"),
4104
- createVNode(_component_el_icon, { class: "el-icon--right" }, {
4031
+ }, 8, ["model", "class"]),
4032
+ createElementVNode("div", {
4033
+ class: normalizeClass(unref(createBEMName)("expand-button"))
4034
+ }, [
4035
+ searchFormManager.expandMode === "expanded" && needExpand.value ? (openBlock(), createBlock(_component_el_button, {
4036
+ key: 0,
4037
+ size: searchFormManager.size,
4038
+ link: "",
4039
+ onClick: toggleExpand
4040
+ }, {
4105
4041
  default: withCtx(() => [
4106
- createVNode(unref(arrowDownBold))
4042
+ createTextVNode(toDisplayString(searchFormManager.isExpanded ? "\u6536\u8D77" : "\u5C55\u5F00") + " ", 1),
4043
+ createVNode(_component_el_icon, { class: "el-icon--right" }, {
4044
+ default: withCtx(() => [
4045
+ (openBlock(), createBlock(resolveDynamicComponent(searchFormManager.isExpanded ? unref(caretTop) : unref(caretBottom))))
4046
+ ]),
4047
+ _: 1
4048
+ })
4107
4049
  ]),
4108
4050
  _: 1
4109
- })
4110
- ]),
4111
- _: 1
4112
- }, 8, ["size"])) : createCommentVNode("", true),
4113
- searchFormManager.expandMode === "expanded" && needExpand.value ? (openBlock(), createBlock(_component_el_button, {
4114
- key: 1,
4115
- size: searchFormManager.size,
4116
- link: "",
4117
- onClick: toggleExpand,
4118
- icon: searchFormManager.isExpanded ? unref(caretTop) : unref(caretBottom)
4119
- }, {
4120
- default: withCtx(() => [
4121
- createTextVNode(toDisplayString(searchFormManager.isExpanded ? "\u6536\u8D77" : "\u5C55\u5F00"), 1)
4122
- ]),
4123
- _: 1
4124
- }, 8, ["size", "icon"])) : createCommentVNode("", true),
4125
- ((_a = searchFormManager.form) == null ? void 0 : _a.useFilter) ? (openBlock(), createBlock(_component_el_button, {
4126
- key: 2,
4127
- size: searchFormManager.size,
4128
- icon: unref(filter),
4129
- link: ""
4130
- }, {
4131
- default: withCtx(() => [
4132
- createTextVNode("\u9AD8\u7EA7\u7B5B\u9009")
4133
- ]),
4134
- _: 1
4135
- }, 8, ["size", "icon"])) : createCommentVNode("", true),
4051
+ }, 8, ["size"])) : createCommentVNode("", true),
4052
+ searchFormManager.expandMode === "dialog" && showFormEls.value.length && unref(showMoreButton) ? (openBlock(), createBlock(_component_el_button, {
4053
+ key: 1,
4054
+ link: "",
4055
+ size: searchFormManager.size,
4056
+ onClick: handleShowExpandDialog
4057
+ }, {
4058
+ default: withCtx(() => [
4059
+ createTextVNode(" \u66F4\u591A\u7B5B\u9009"),
4060
+ createVNode(_component_el_icon, { class: "el-icon--right" }, {
4061
+ default: withCtx(() => [
4062
+ createVNode(unref(arrowDownBold))
4063
+ ]),
4064
+ _: 1
4065
+ })
4066
+ ]),
4067
+ _: 1
4068
+ }, 8, ["size"])) : createCommentVNode("", true)
4069
+ ], 2)
4070
+ ], 2),
4071
+ createElementVNode("div", {
4072
+ class: normalizeClass(unref(createBEMName)("search-btn-group"))
4073
+ }, [
4074
+ createVNode(_component_el_button, {
4075
+ loading: isFetchingData.value,
4076
+ size: searchFormManager.size,
4077
+ type: "primary",
4078
+ onClick: onSearch
4079
+ }, {
4080
+ default: withCtx(() => [
4081
+ createTextVNode("\u7B5B\u9009")
4082
+ ]),
4083
+ _: 1
4084
+ }, 8, ["loading", "size"]),
4085
+ createVNode(_component_el_button, {
4086
+ loading: isFetchingData.value,
4087
+ size: searchFormManager.size,
4088
+ onClick: onReset
4089
+ }, {
4090
+ default: withCtx(() => [
4091
+ createTextVNode("\u91CD\u7F6E")
4092
+ ]),
4093
+ _: 1
4094
+ }, 8, ["loading", "size"])
4095
+ ], 2),
4136
4096
  createElementVNode("div", {
4137
4097
  class: normalizeClass(unref(createBEMName)("slots"))
4138
4098
  }, [
4139
4099
  renderSlot(_ctx.$slots, "default")
4140
4100
  ], 2),
4141
4101
  searchFormManager.expandMode === "dialog" && showFormEls.value.length && unref(showMoreButton) ? (openBlock(), createBlock(_sfc_main$x, {
4142
- key: 3,
4102
+ key: 0,
4143
4103
  ref_key: "SearchFormFullRef",
4144
4104
  ref: SearchFormFullRef,
4145
4105
  onFilter: doFilter
@@ -4881,13 +4841,13 @@ const _sfc_main$v = defineComponent({
4881
4841
  });
4882
4842
  var index_vue_vue_type_style_index_0_lang$7 = "";
4883
4843
  const _hoisted_1$b = { class: "el-table__header-cell" };
4884
- const _hoisted_2$5 = ["data-index", "editable", "cell-key"];
4844
+ const _hoisted_2$6 = ["data-index", "editable", "cell-key"];
4885
4845
  const _hoisted_3$4 = {
4886
4846
  key: 0,
4887
4847
  class: "el-table-cell_editable"
4888
4848
  };
4889
4849
  const _hoisted_4$4 = { class: "el-table-cell_editable-inputer" };
4890
- const _hoisted_5$2 = {
4850
+ const _hoisted_5$3 = {
4891
4851
  key: 0,
4892
4852
  class: "el-table-cell_loading"
4893
4853
  };
@@ -5064,7 +5024,7 @@ const _sfc_main$u = defineComponent({
5064
5024
  columnEl.columnKey,
5065
5025
  row[tableManager.value.rowKey]
5066
5026
  ) + "-loading"
5067
- ) ? (openBlock(), createElementBlock("div", _hoisted_5$2, [
5027
+ ) ? (openBlock(), createElementBlock("div", _hoisted_5$3, [
5068
5028
  createVNode(_component_el_icon, { class: "is-loading" }, {
5069
5029
  default: withCtx(() => [
5070
5030
  createVNode(unref(loading))
@@ -5097,7 +5057,7 @@ const _sfc_main$u = defineComponent({
5097
5057
  })
5098
5058
  ], 8, _hoisted_8)) : createCommentVNode("", true)
5099
5059
  ], 64))
5100
- ], 10, _hoisted_2$5))
5060
+ ], 10, _hoisted_2$6))
5101
5061
  ]),
5102
5062
  _: 2
5103
5063
  }, 1040, ["label", "prop", "width", "min-width", "fixed", "column-key"]);
@@ -6678,14 +6638,15 @@ var _export_sfc = (sfc, props) => {
6678
6638
  }
6679
6639
  return target;
6680
6640
  };
6681
- const _withScopeId$2 = (n) => (pushScopeId("data-v-c1518e38"), n = n(), popScopeId(), n);
6641
+ const _withScopeId$2 = (n) => (pushScopeId("data-v-62ecd909"), n = n(), popScopeId(), n);
6682
6642
  const _hoisted_1$a = { title: "\u5168\u9009/\u53D6\u6D88" };
6683
- const _hoisted_2$4 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("i", {
6643
+ const _hoisted_2$5 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("i", {
6684
6644
  class: "pm-icon icon-drag-dot",
6685
6645
  title: "\u62D6\u52A8\u8C03\u6574\u663E\u793A\u987A\u5E8F"
6686
6646
  }, null, -1));
6687
- const _hoisted_3$3 = ["title", "onClick"];
6647
+ const _hoisted_3$3 = ["title"];
6688
6648
  const _hoisted_4$3 = ["title", "onClick"];
6649
+ const _hoisted_5$2 = ["title", "onClick"];
6689
6650
  const _sfc_main$q = defineComponent({
6690
6651
  __name: "index",
6691
6652
  props: {
@@ -6834,10 +6795,11 @@ const _sfc_main$q = defineComponent({
6834
6795
  "onUpdate:modelValue": ($event) => element.userConfigShow = $event,
6835
6796
  class: normalizeClass(unref(createBEMName)("checkbox"))
6836
6797
  }, null, 8, ["modelValue", "onUpdate:modelValue", "class"]),
6837
- _hoisted_2$4,
6798
+ _hoisted_2$5,
6838
6799
  createElementVNode("span", {
6800
+ title: element.label,
6839
6801
  class: normalizeClass(unref(createBEMName)("item-label"))
6840
- }, toDisplayString(element.label), 3),
6802
+ }, toDisplayString(element.label), 11, _hoisted_3$3),
6841
6803
  createElementVNode("i", {
6842
6804
  title: element.fixed === "left" ? "\u53D6\u6D88\u51BB\u7ED3\u5217" : "\u51BB\u7ED3\u5728\u5DE6\u4FA7",
6843
6805
  class: normalizeClass([
@@ -6845,7 +6807,7 @@ const _sfc_main$q = defineComponent({
6845
6807
  element.fixed === "left" ? "icon-draw_affix_fill-copy primary" : "icon-draw_affix-copy"
6846
6808
  ]),
6847
6809
  onClick: ($event) => handleToggleElementFixedLeft(element)
6848
- }, null, 10, _hoisted_3$3),
6810
+ }, null, 10, _hoisted_4$3),
6849
6811
  createElementVNode("i", {
6850
6812
  title: element.fixed === "right" ? "\u53D6\u6D88\u51BB\u7ED3\u5217" : "\u51BB\u7ED3\u5728\u53F3\u4FA7",
6851
6813
  class: normalizeClass([
@@ -6853,7 +6815,7 @@ const _sfc_main$q = defineComponent({
6853
6815
  element.fixed === "right" ? "icon-draw_affix_fill primary" : "icon-draw_affix"
6854
6816
  ]),
6855
6817
  onClick: ($event) => handleToggleElementFixedRight(element)
6856
- }, null, 10, _hoisted_4$3)
6818
+ }, null, 10, _hoisted_5$2)
6857
6819
  ], 2)
6858
6820
  ]),
6859
6821
  _: 1
@@ -6902,11 +6864,11 @@ const _sfc_main$q = defineComponent({
6902
6864
  };
6903
6865
  }
6904
6866
  });
6905
- var ColumnTools$1 = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-c1518e38"]]);
6867
+ var ColumnTools$1 = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-62ecd909"]]);
6906
6868
  var index_vue_vue_type_style_index_0_scoped_true_lang$6 = "";
6907
6869
  const _withScopeId$1 = (n) => (pushScopeId("data-v-3858fcba"), n = n(), popScopeId(), n);
6908
6870
  const _hoisted_1$9 = { key: 0 };
6909
- const _hoisted_2$3 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("span", { class: "export-wrod" }, "\u4ECE\u7B2C", -1));
6871
+ const _hoisted_2$4 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("span", { class: "export-wrod" }, "\u4ECE\u7B2C", -1));
6910
6872
  const _hoisted_3$2 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("span", { class: "export-wrod" }, "\u9875\u5F00\u59CB\u5BFC\u51FA\uFF0C\u6BCF\u9875", -1));
6911
6873
  const _hoisted_4$2 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("span", { class: "export-wrod" }, "\u6761\u6570\u636E", -1));
6912
6874
  const _hoisted_5$1 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("div", null, null, -1));
@@ -7134,7 +7096,7 @@ const _sfc_main$p = defineComponent({
7134
7096
  _: 1
7135
7097
  }, 8, ["modelValue"]),
7136
7098
  formData.fromApi ? (openBlock(), createElementBlock("div", _hoisted_1$9, [
7137
- _hoisted_2$3,
7099
+ _hoisted_2$4,
7138
7100
  createVNode(_component_el_input_number, {
7139
7101
  modelValue: formData.pageIndex,
7140
7102
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => formData.pageIndex = $event),
@@ -7880,7 +7842,7 @@ const _sfc_main$k = defineComponent({
7880
7842
  width: table.value.operate.width
7881
7843
  }, table.value.operate.props), {
7882
7844
  default: withCtx(({ row, $index }) => [
7883
- table.value.filterable && $index === 0 ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [], 64)) : (openBlock(), createBlock(_sfc_main$C, mergeProps({
7845
+ table.value.filterable && $index === 0 ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [], 64)) : (openBlock(), createBlock(_sfc_main$B, mergeProps({
7884
7846
  key: 1,
7885
7847
  els: table.value.operate.els,
7886
7848
  context: tableManager,
@@ -7901,7 +7863,7 @@ const _sfc_main$k = defineComponent({
7901
7863
  width: table.value.operate.width
7902
7864
  }, table.value.operate.props), {
7903
7865
  default: withCtx(({ row, $index }) => [
7904
- table.value.filterable && $index === 0 ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [], 64)) : (openBlock(), createBlock(_sfc_main$C, mergeProps({
7866
+ table.value.filterable && $index === 0 ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [], 64)) : (openBlock(), createBlock(_sfc_main$B, mergeProps({
7905
7867
  key: 1,
7906
7868
  els: table.value.operate.els,
7907
7869
  context: tableManager,
@@ -8144,7 +8106,7 @@ class FormManager extends IManager {
8144
8106
  }
8145
8107
  var index_vue_vue_type_style_index_0_scoped_true_lang$3 = "";
8146
8108
  const _hoisted_1$7 = ["onClick"];
8147
- const _hoisted_2$2 = { class: "section-item__title-text" };
8109
+ const _hoisted_2$3 = { class: "section-item__title-text" };
8148
8110
  const __default__$a = {
8149
8111
  name: "SectionTitleEl"
8150
8112
  };
@@ -8235,7 +8197,7 @@ const _sfc_main$j = defineComponent({
8235
8197
  class: "section-item__title",
8236
8198
  onClick: ($event) => toggleSectionHidden(index2)
8237
8199
  }, [
8238
- createElementVNode("span", _hoisted_2$2, toDisplayString(section.text), 1),
8200
+ createElementVNode("span", _hoisted_2$3, toDisplayString(section.text), 1),
8239
8201
  isUseCollapseList.value[index2] ? (openBlock(), createBlock(_component_el_icon, {
8240
8202
  key: 0,
8241
8203
  size: 16
@@ -8536,7 +8498,7 @@ const defineForm = (form) => {
8536
8498
  var setting_vue_vue_type_style_index_0_lang$1 = "";
8537
8499
  var setting_vue_vue_type_style_index_1_lang$1 = "";
8538
8500
  const _hoisted_1$6 = { key: 0 };
8539
- const _hoisted_2$1 = {
8501
+ const _hoisted_2$2 = {
8540
8502
  key: 1,
8541
8503
  style: { "color": "#999" }
8542
8504
  };
@@ -8743,7 +8705,7 @@ const _sfc_main$e = defineComponent({
8743
8705
  createElementVNode("div", {
8744
8706
  class: normalizeClass(unref(createBEMName)("cell"))
8745
8707
  }, [
8746
- element.sectionName ? (openBlock(), createElementBlock("span", _hoisted_1$6, toDisplayString(element.sectionName), 1)) : (openBlock(), createElementBlock("span", _hoisted_2$1, "\u672A\u914D\u7F6E"))
8708
+ element.sectionName ? (openBlock(), createElementBlock("span", _hoisted_1$6, toDisplayString(element.sectionName), 1)) : (openBlock(), createElementBlock("span", _hoisted_2$2, "\u672A\u914D\u7F6E"))
8747
8709
  ], 2),
8748
8710
  createElementVNode("div", {
8749
8711
  class: normalizeClass(unref(createBEMName)("cell"))
@@ -9375,6 +9337,10 @@ const _sfc_main$a = defineComponent({
9375
9337
  emit("update:model-value", value);
9376
9338
  };
9377
9339
  const drawerRef = ref();
9340
+ const slots = useSlots();
9341
+ const hasFooterSlot = computed(() => {
9342
+ return !!slots.bottom;
9343
+ });
9378
9344
  __expose({
9379
9345
  drawerRef
9380
9346
  });
@@ -9387,18 +9353,23 @@ const _sfc_main$a = defineComponent({
9387
9353
  title: _ctx.title,
9388
9354
  width: props.width,
9389
9355
  class: `${unref(BEMSpace)} ${props.customClass || ""} ${_ctx.noPaddingTop ? "no-padding-top" : ""}`
9390
- }, props.dialogProps || {}, toHandlers(props.dialogEvents || {}), { "onUpdate:modelValue": onUpdateModelValue }), {
9356
+ }, props.dialogProps || {}, toHandlers(props.dialogEvents || {}), { "onUpdate:modelValue": onUpdateModelValue }), createSlots({
9391
9357
  header: withCtx(() => [
9392
9358
  createElementVNode("span", _hoisted_1$5, toDisplayString(_ctx.title), 1)
9393
9359
  ]),
9394
- footer: withCtx(() => [
9395
- renderSlot(_ctx.$slots, "bottom")
9396
- ]),
9397
9360
  default: withCtx(() => [
9398
9361
  renderSlot(_ctx.$slots, "default")
9399
9362
  ]),
9400
- _: 3
9401
- }, 16, ["model-value", "title", "width", "class"]);
9363
+ _: 2
9364
+ }, [
9365
+ hasFooterSlot.value ? {
9366
+ name: "footer",
9367
+ fn: withCtx(() => [
9368
+ renderSlot(_ctx.$slots, "bottom")
9369
+ ]),
9370
+ key: "0"
9371
+ } : void 0
9372
+ ]), 1040, ["model-value", "title", "width", "class"]);
9402
9373
  };
9403
9374
  }
9404
9375
  });
@@ -10130,73 +10101,80 @@ const _sfc_main$6 = defineComponent({
10130
10101
  });
10131
10102
  var index_vue_vue_type_style_index_0_scoped_true_lang$1 = "";
10132
10103
  const _hoisted_1$3 = { class: "table-toolbox" };
10104
+ const _hoisted_2$1 = ["onClick"];
10133
10105
  const __default__$4 = {
10134
10106
  name: "TableToolsbox"
10135
10107
  };
10136
10108
  const _sfc_main$5 = defineComponent({
10137
10109
  ...__default__$4,
10138
10110
  props: {
10139
- toolbox: {}
10111
+ toolbox: {},
10112
+ extendsToolbox: {}
10140
10113
  },
10141
- emits: ["export", "fullscreen", "show-column-tool"],
10114
+ emits: ["custom-event"],
10142
10115
  setup(__props, { emit: __emit }) {
10116
+ const props = __props;
10143
10117
  const emit = __emit;
10144
- const handleExport = () => {
10145
- emit("export");
10146
- };
10147
- const handleToggleFullscreen = () => {
10148
- emit("fullscreen");
10118
+ const innerTools = {
10119
+ export: {
10120
+ icon: download,
10121
+ text: "\u5BFC\u51FA\u8868\u683C",
10122
+ event: "export"
10123
+ },
10124
+ fullscreen: {
10125
+ icon: fullScreen,
10126
+ text: "\u5207\u6362\u5168\u5C4F",
10127
+ event: "fullscreen"
10128
+ },
10129
+ "colunm-tool": {
10130
+ icon: tools,
10131
+ text: "\u5217\u8BBE\u7F6E",
10132
+ event: "show-column-tool"
10133
+ }
10149
10134
  };
10150
- const handleShowColumnTool = (e) => {
10151
- emit("show-column-tool", e.currentTarget);
10135
+ const showToolbox = computed(() => {
10136
+ const _innerTools = props.toolbox ? props.toolbox.map((toolKey) => innerTools[toolKey]) : [];
10137
+ const extendsTools = (props.extendsToolbox || []).filter(
10138
+ (item) => typeof item.icon === "object"
10139
+ );
10140
+ return extendsTools.concat(_innerTools);
10141
+ });
10142
+ const handleClickTool = (index2, e) => {
10143
+ const item = showToolbox.value[index2];
10144
+ emit("custom-event", item.event, item, e);
10152
10145
  };
10153
10146
  return (_ctx, _cache) => {
10154
10147
  const _component_el_icon = resolveComponent("el-icon");
10148
+ const _component_el_tooltip = resolveComponent("el-tooltip");
10155
10149
  return openBlock(), createElementBlock("div", _hoisted_1$3, [
10156
- _ctx.toolbox.includes("export") ? (openBlock(), createElementBlock("div", {
10157
- key: 0,
10158
- class: "tool-item",
10159
- title: "\u5BFC\u51FA\u8868\u683C",
10160
- onClick: handleExport
10161
- }, [
10162
- createVNode(_component_el_icon, null, {
10163
- default: withCtx(() => [
10164
- createVNode(unref(download))
10165
- ]),
10166
- _: 1
10167
- })
10168
- ])) : createCommentVNode("", true),
10169
- _ctx.toolbox.includes("fullscreen") ? (openBlock(), createElementBlock("div", {
10170
- key: 1,
10171
- class: "tool-item",
10172
- title: "\u5207\u6362\u5168\u5C4F",
10173
- onClick: handleToggleFullscreen
10174
- }, [
10175
- createVNode(_component_el_icon, null, {
10176
- default: withCtx(() => [
10177
- createVNode(unref(fullScreen))
10178
- ]),
10179
- _: 1
10180
- })
10181
- ])) : createCommentVNode("", true),
10182
- _ctx.toolbox.includes("colunm-tool") ? (openBlock(), createElementBlock("div", {
10183
- key: 2,
10184
- class: "tool-item",
10185
- title: "\u5217\u8BBE\u7F6E",
10186
- onClick: handleShowColumnTool
10187
- }, [
10188
- createVNode(_component_el_icon, null, {
10189
- default: withCtx(() => [
10190
- createVNode(unref(tools))
10191
- ]),
10192
- _: 1
10193
- })
10194
- ])) : createCommentVNode("", true)
10150
+ (openBlock(true), createElementBlock(Fragment, null, renderList(showToolbox.value, (tool, index2) => {
10151
+ return openBlock(), createElementBlock("div", {
10152
+ class: "tool-item",
10153
+ key: index2,
10154
+ onClick: ($event) => handleClickTool(index2, $event)
10155
+ }, [
10156
+ createVNode(_component_el_tooltip, {
10157
+ effect: "dark",
10158
+ content: tool.text,
10159
+ placement: "top-start"
10160
+ }, {
10161
+ default: withCtx(() => [
10162
+ tool.icon ? (openBlock(), createBlock(_component_el_icon, { key: 0 }, {
10163
+ default: withCtx(() => [
10164
+ (openBlock(), createBlock(resolveDynamicComponent({ ...tool.icon })))
10165
+ ]),
10166
+ _: 2
10167
+ }, 1024)) : createCommentVNode("", true)
10168
+ ]),
10169
+ _: 2
10170
+ }, 1032, ["content"])
10171
+ ], 8, _hoisted_2$1);
10172
+ }), 128))
10195
10173
  ]);
10196
10174
  };
10197
10175
  }
10198
10176
  });
10199
- var TableToolsbox = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-7df58703"]]);
10177
+ var TableToolsbox = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-cff47a5e"]]);
10200
10178
  function patchConfig(config, patches) {
10201
10179
  return patches.reduce((memoConfig, patchFn) => {
10202
10180
  return patchFn.call(this, memoConfig);
@@ -10218,32 +10196,6 @@ const patchConfigUrl = (config) => {
10218
10196
  console.log("patchConfigUrl completed =====>");
10219
10197
  return innerConfig;
10220
10198
  };
10221
- const patchConfigAction = (config) => {
10222
- var _a, _b;
10223
- if (!config.action) {
10224
- config.action = {
10225
- els: []
10226
- };
10227
- }
10228
- if (config.addUrl && config.isAutoAddButton && !config.addButtonInSelectButtonsArea) {
10229
- const addButton = config.addButton;
10230
- config.action.els.push({
10231
- text: (_b = addButton == null ? void 0 : addButton.text) != null ? _b : `\u6DFB\u52A0${(_a = config.name) != null ? _a : ""}`,
10232
- isAdd: true,
10233
- props: addButton == null ? void 0 : addButton.props
10234
- });
10235
- }
10236
- if (config.importUrl && config.isAutoImportButton) {
10237
- config.action.els.push({
10238
- text: "\u5BFC\u5165",
10239
- isImport: true
10240
- });
10241
- if (!config.importMethod) {
10242
- config.importMethod = "post";
10243
- }
10244
- }
10245
- return config;
10246
- };
10247
10199
  const PROCESS_STATUS_CODE = 400;
10248
10200
  function patchServerError(config) {
10249
10201
  if (config.hasForm === false || !config.form) {
@@ -10481,16 +10433,13 @@ const _sfc_main$4 = defineComponent({
10481
10433
  });
10482
10434
  const hasTableToolbox = computed(() => {
10483
10435
  var _a, _b;
10484
- return !!((_b = (_a = manager.config.table) == null ? void 0 : _a.toolbox) == null ? void 0 : _b.length);
10436
+ const table = manager.config.table;
10437
+ return ((_a = table == null ? void 0 : table.toolbox) == null ? void 0 : _a.length) || ((_b = table == null ? void 0 : table.extendsToolbox) == null ? void 0 : _b.length);
10485
10438
  });
10486
10439
  const showSelectableButtonsArea = computed(() => {
10487
10440
  const tableConfig = manager.config.table;
10488
10441
  return hasSelectableActions.value && (tableConfig.selectable || tableConfig.selectableButtonLiveAlone) || hasFilterTools.value || hasTableToolbox.value;
10489
10442
  });
10490
- const hasActions = computed(() => {
10491
- var _a, _b;
10492
- return !!((_b = (_a = uConfig.value.action) == null ? void 0 : _a.els) == null ? void 0 : _b.length);
10493
- });
10494
10443
  watch(
10495
10444
  () => {
10496
10445
  return props.config;
@@ -10536,7 +10485,6 @@ const _sfc_main$4 = defineComponent({
10536
10485
  patchConfig.call(manager, cloneDeep(config), [
10537
10486
  patchDefaultConfig,
10538
10487
  patchConfigUrl,
10539
- patchConfigAction,
10540
10488
  patchConfigSize,
10541
10489
  patchSelectable,
10542
10490
  ...configPatches,
@@ -10628,9 +10576,6 @@ const _sfc_main$4 = defineComponent({
10628
10576
  const showImport = () => {
10629
10577
  manager.triggerImport();
10630
10578
  };
10631
- const handleImportEvent = async () => {
10632
- showImport();
10633
- };
10634
10579
  const handleDelEvent = async (row, index2) => {
10635
10580
  if (!row) {
10636
10581
  return false;
@@ -10707,8 +10652,24 @@ const _sfc_main$4 = defineComponent({
10707
10652
  const handleToggleTableFullscreen = () => {
10708
10653
  isTableFullscreen.value = !isTableFullscreen.value;
10709
10654
  };
10710
- const handleShowColumnTool = (element) => {
10711
- pageModelTableRef.value.showSimplePopover(element);
10655
+ const handleShowColumnTool = (item, e) => {
10656
+ pageModelTableRef.value.showSimplePopover(e.currentTarget);
10657
+ };
10658
+ const handleToolboxCustomEvent = (eventName, item, event) => {
10659
+ switch (eventName) {
10660
+ case "export":
10661
+ showExport();
10662
+ break;
10663
+ case "fullscreen":
10664
+ handleToggleTableFullscreen();
10665
+ break;
10666
+ case "show-column-tool":
10667
+ handleShowColumnTool(item, event);
10668
+ break;
10669
+ default:
10670
+ emitCustomEvent(eventName);
10671
+ break;
10672
+ }
10712
10673
  };
10713
10674
  __expose({
10714
10675
  manager,
@@ -10746,7 +10707,6 @@ const _sfc_main$4 = defineComponent({
10746
10707
  unref(BEMSpace),
10747
10708
  {
10748
10709
  "with-tab": hasTabs.value,
10749
- "with-action": hasActions.value,
10750
10710
  "with-search": isRenderForm.value,
10751
10711
  "with-selectable-buttons": showSelectableButtonsArea.value
10752
10712
  }
@@ -10754,51 +10714,41 @@ const _sfc_main$4 = defineComponent({
10754
10714
  style: normalizeStyle({ height: props.height })
10755
10715
  }, [
10756
10716
  !uConfig.value ? (openBlock(), createElementBlock("span", _hoisted_1$2, "\u914D\u7F6E\u51C6\u5907\u4E2D")) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
10757
- hasTabs.value || hasActions.value ? (openBlock(), createElementBlock("div", {
10717
+ hasTabs.value || isRenderForm.value ? (openBlock(), createElementBlock("div", {
10758
10718
  key: 0,
10759
- class: normalizeClass(unref(createBEMName)("top-tabs"))
10719
+ class: normalizeClass(unref(createBEMName)("top-filter"))
10760
10720
  }, [
10761
- hasTabs.value ? (openBlock(), createBlock(_sfc_main$X, {
10721
+ hasTabs.value ? (openBlock(), createElementBlock("div", {
10762
10722
  key: 0,
10763
- tabs: uConfig.value.tabs,
10764
- manager,
10765
- class: normalizeClass(unref(createBEMName)("holding-tab")),
10766
- onCustom: handleCustomEvent
10767
- }, {
10768
- default: withCtx(() => [
10769
- renderSlot(_ctx.$slots, "tabs-right")
10770
- ]),
10771
- _: 3
10772
- }, 8, ["tabs", "manager", "class"])) : (openBlock(), createElementBlock("div", {
10723
+ class: normalizeClass(unref(createBEMName)("top-tabs"))
10724
+ }, [
10725
+ hasTabs.value ? (openBlock(), createBlock(_sfc_main$W, {
10726
+ key: 0,
10727
+ tabs: uConfig.value.tabs,
10728
+ manager,
10729
+ onCustom: handleCustomEvent
10730
+ }, {
10731
+ default: withCtx(() => [
10732
+ renderSlot(_ctx.$slots, "tabs-right")
10733
+ ]),
10734
+ _: 3
10735
+ }, 8, ["tabs", "manager"])) : createCommentVNode("", true)
10736
+ ], 2)) : createCommentVNode("", true),
10737
+ isRenderForm.value ? (openBlock(), createElementBlock("div", {
10773
10738
  key: 1,
10774
- class: normalizeClass(unref(createBEMName)("holding-tab"))
10775
- }, null, 2)),
10776
- uConfig.value.action ? (openBlock(), createBlock(_sfc_main$A, {
10777
- key: 2,
10778
- action: uConfig.value.action,
10779
- manager,
10780
- class: normalizeClass(unref(createBEMName)("action")),
10781
- onCustom: handleCustomEvent,
10782
- onAdd: handleAddEvent,
10783
- onUpd: handleUpdEvent,
10784
- onDel: handleDelEvent,
10785
- onImport: handleImportEvent
10786
- }, null, 8, ["action", "manager", "class"])) : createCommentVNode("", true)
10787
- ], 2)) : createCommentVNode("", true),
10788
- isRenderForm.value ? (openBlock(), createElementBlock("div", {
10789
- key: 1,
10790
- class: normalizeClass(unref(createBEMName)("search"))
10791
- }, [
10792
- createVNode(_sfc_main$w, {
10793
- ref_key: "searchFormRef",
10794
- ref: searchFormRef,
10795
- manager
10796
- }, {
10797
- default: withCtx(() => [
10798
- renderSlot(_ctx.$slots, "search")
10799
- ]),
10800
- _: 3
10801
- }, 8, ["manager"])
10739
+ class: normalizeClass(unref(createBEMName)("search"))
10740
+ }, [
10741
+ createVNode(_sfc_main$w, {
10742
+ ref_key: "searchFormRef",
10743
+ ref: searchFormRef,
10744
+ manager
10745
+ }, {
10746
+ default: withCtx(() => [
10747
+ renderSlot(_ctx.$slots, "search")
10748
+ ]),
10749
+ _: 3
10750
+ }, 8, ["manager"])
10751
+ ], 2)) : createCommentVNode("", true)
10802
10752
  ], 2)) : createCommentVNode("", true),
10803
10753
  createElementVNode("div", {
10804
10754
  class: normalizeClass([unref(createBEMName)("main-wrap"), { fullscreen: isTableFullscreen.value }])
@@ -10812,7 +10762,7 @@ const _sfc_main$4 = defineComponent({
10812
10762
  }, [
10813
10763
  createVNode(_component_el_scrollbar, null, {
10814
10764
  default: withCtx(() => [
10815
- hasSelectableActions.value ? (openBlock(), createBlock(_sfc_main$B, {
10765
+ hasSelectableActions.value ? (openBlock(), createBlock(_sfc_main$A, {
10816
10766
  key: 0,
10817
10767
  els: manager.config.table.selectableButtons,
10818
10768
  tableManager: manager.tableManager,
@@ -10838,10 +10788,12 @@ const _sfc_main$4 = defineComponent({
10838
10788
  hasTableToolbox.value ? (openBlock(), createBlock(TableToolsbox, {
10839
10789
  key: 1,
10840
10790
  toolbox: manager.config.table.toolbox,
10791
+ extendsToolbox: manager.config.table.extendsToolbox,
10792
+ onCustomEvent: handleToolboxCustomEvent,
10841
10793
  onExport: showExport,
10842
10794
  onFullscreen: handleToggleTableFullscreen,
10843
10795
  onShowColumnTool: handleShowColumnTool
10844
- }, null, 8, ["toolbox"])) : createCommentVNode("", true)
10796
+ }, null, 8, ["toolbox", "extendsToolbox"])) : createCommentVNode("", true)
10845
10797
  ], 2)
10846
10798
  ], 2)) : createCommentVNode("", true),
10847
10799
  createElementVNode("div", {
@@ -10867,7 +10819,7 @@ const _sfc_main$4 = defineComponent({
10867
10819
  ], 2)
10868
10820
  ], 2),
10869
10821
  uConfig.value.hasForm && Boolean(uConfig.value.form) ? (openBlock(), createBlock(_sfc_main$8, {
10870
- key: 2,
10822
+ key: 1,
10871
10823
  form: uConfig.value.form,
10872
10824
  formManager: manager.formManager,
10873
10825
  ref_key: "formContainerRef",
@@ -10888,7 +10840,7 @@ const _sfc_main$4 = defineComponent({
10888
10840
  _: 3
10889
10841
  }, 8, ["form", "formManager"])) : createCommentVNode("", true),
10890
10842
  unref(isRenderColumnToolsSetting) ? (openBlock(), createBlock(_sfc_main$e, {
10891
- key: 3,
10843
+ key: 2,
10892
10844
  ref_key: "columnToolsSettingRef",
10893
10845
  ref: columnToolsSettingRef,
10894
10846
  onClosed: unref(onColumnToolsSettingClosed),
@@ -11761,7 +11713,7 @@ const _sfc_main = defineComponent({
11761
11713
  }, 16, ["data"]),
11762
11714
  bottomActions.value.length || hasSlots.value ? (openBlock(), createElementBlock("div", _hoisted_7, [
11763
11715
  renderSlot(_ctx.$slots, "action-prefix", {}, void 0, true),
11764
- createVNode(_sfc_main$C, {
11716
+ createVNode(_sfc_main$B, {
11765
11717
  els: bottomActions.value,
11766
11718
  onCustom: handleBottomActionsEvent
11767
11719
  }, null, 8, ["els"]),
@@ -11777,7 +11729,7 @@ const defineEditableTable = function(config) {
11777
11729
  };
11778
11730
  var iconfont = "";
11779
11731
  const name = "@juzhenfe/page-model";
11780
- const version = "3.9.49";
11732
+ const version = "3.10.1";
11781
11733
  const types = "dist/main.d.ts";
11782
11734
  const main = "dist/index.umd.js";
11783
11735
  const keywords = [
@@ -11857,4 +11809,4 @@ const ModelComponent = {
11857
11809
  saveTableColumns(content);
11858
11810
  }
11859
11811
  };
11860
- export { _sfc_main$C as ButtonsRenderer, index as EditableTable, _sfc_main$y as FormDialog, _sfc_main$a as FormDrawer, PageModelForm, _sfc_main$v as TableCellRenderer, _sfc_main$s as TableColumnSetting, columnTools, ModelComponent as default, defineConfig, defineEditableTable, defineForm, patchFilterCreator as useFilter, patchScenesCreator as useScene };
11812
+ export { _sfc_main$B as ButtonsRenderer, index as EditableTable, _sfc_main$y as FormDialog, _sfc_main$a as FormDrawer, PageModelForm, _sfc_main$v as TableCellRenderer, _sfc_main$s as TableColumnSetting, columnTools, ModelComponent as default, defineConfig, defineEditableTable, defineForm };