@juzhenfe/page-model 3.14.2 → 3.14.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 CHANGED
@@ -185,7 +185,7 @@ const _hoisted_1$z = { class: "scenes-tab" };
185
185
  const __default__$o = {
186
186
  name: "ScenesTab"
187
187
  };
188
- const _sfc_main$_ = defineComponent({
188
+ const _sfc_main$$ = defineComponent({
189
189
  ...__default__$o,
190
190
  setup(__props, { expose: __expose }) {
191
191
  const getValue2 = () => {
@@ -203,7 +203,7 @@ var index_vue_vue_type_style_index_0_lang$d = "";
203
203
  const __default__$n = {
204
204
  name: "NormalTab"
205
205
  };
206
- const _sfc_main$Z = defineComponent({
206
+ const _sfc_main$_ = defineComponent({
207
207
  ...__default__$n,
208
208
  props: {
209
209
  panes: {},
@@ -1656,7 +1656,7 @@ var index_vue_vue_type_style_index_0_lang$c = "";
1656
1656
  const __default__$m = {
1657
1657
  name: "TopTabs"
1658
1658
  };
1659
- const _sfc_main$Y = defineComponent({
1659
+ const _sfc_main$Z = defineComponent({
1660
1660
  ...__default__$m,
1661
1661
  props: {
1662
1662
  tabs: {},
@@ -1677,12 +1677,12 @@ const _sfc_main$Y = defineComponent({
1677
1677
  const tabComponent = computed(() => {
1678
1678
  if (props.tabs.useScene) {
1679
1679
  return {
1680
- component: _sfc_main$_,
1680
+ component: _sfc_main$$,
1681
1681
  props: props.tabs.sceneTab
1682
1682
  };
1683
1683
  } else {
1684
1684
  return {
1685
- component: _sfc_main$Z,
1685
+ component: _sfc_main$_,
1686
1686
  props: {
1687
1687
  panes: props.tabs.panes,
1688
1688
  props: props.tabs.props
@@ -2306,7 +2306,7 @@ var _export_sfc$1 = (sfc, props) => {
2306
2306
  }
2307
2307
  return target;
2308
2308
  };
2309
- const _sfc_main$X = defineComponent({
2309
+ const _sfc_main$Y = defineComponent({
2310
2310
  name: "ArrowDownBold"
2311
2311
  });
2312
2312
  const _hoisted_1$y = {
@@ -2326,8 +2326,8 @@ const _hoisted_3$o = [
2326
2326
  function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
2327
2327
  return openBlock(), createElementBlock("svg", _hoisted_1$y, _hoisted_3$o);
2328
2328
  }
2329
- var arrowDownBold = /* @__PURE__ */ _export_sfc$1(_sfc_main$X, [["render", _sfc_render$j]]);
2330
- const _sfc_main$W = defineComponent({
2329
+ var arrowDownBold = /* @__PURE__ */ _export_sfc$1(_sfc_main$Y, [["render", _sfc_render$j]]);
2330
+ const _sfc_main$X = defineComponent({
2331
2331
  name: "ArrowDown"
2332
2332
  });
2333
2333
  const _hoisted_1$x = {
@@ -2347,8 +2347,8 @@ const _hoisted_3$n = [
2347
2347
  function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
2348
2348
  return openBlock(), createElementBlock("svg", _hoisted_1$x, _hoisted_3$n);
2349
2349
  }
2350
- var arrowDown = /* @__PURE__ */ _export_sfc$1(_sfc_main$W, [["render", _sfc_render$i]]);
2351
- const _sfc_main$V = defineComponent({
2350
+ var arrowDown = /* @__PURE__ */ _export_sfc$1(_sfc_main$X, [["render", _sfc_render$i]]);
2351
+ const _sfc_main$W = defineComponent({
2352
2352
  name: "CaretBottom"
2353
2353
  });
2354
2354
  const _hoisted_1$w = {
@@ -2368,8 +2368,8 @@ const _hoisted_3$m = [
2368
2368
  function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
2369
2369
  return openBlock(), createElementBlock("svg", _hoisted_1$w, _hoisted_3$m);
2370
2370
  }
2371
- var caretBottom = /* @__PURE__ */ _export_sfc$1(_sfc_main$V, [["render", _sfc_render$h]]);
2372
- const _sfc_main$U = defineComponent({
2371
+ var caretBottom = /* @__PURE__ */ _export_sfc$1(_sfc_main$W, [["render", _sfc_render$h]]);
2372
+ const _sfc_main$V = defineComponent({
2373
2373
  name: "CaretRight"
2374
2374
  });
2375
2375
  const _hoisted_1$v = {
@@ -2389,8 +2389,8 @@ const _hoisted_3$l = [
2389
2389
  function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
2390
2390
  return openBlock(), createElementBlock("svg", _hoisted_1$v, _hoisted_3$l);
2391
2391
  }
2392
- var caretRight = /* @__PURE__ */ _export_sfc$1(_sfc_main$U, [["render", _sfc_render$g]]);
2393
- const _sfc_main$T = defineComponent({
2392
+ var caretRight = /* @__PURE__ */ _export_sfc$1(_sfc_main$V, [["render", _sfc_render$g]]);
2393
+ const _sfc_main$U = defineComponent({
2394
2394
  name: "CaretTop"
2395
2395
  });
2396
2396
  const _hoisted_1$u = {
@@ -2410,8 +2410,8 @@ const _hoisted_3$k = [
2410
2410
  function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
2411
2411
  return openBlock(), createElementBlock("svg", _hoisted_1$u, _hoisted_3$k);
2412
2412
  }
2413
- var caretTop = /* @__PURE__ */ _export_sfc$1(_sfc_main$T, [["render", _sfc_render$f]]);
2414
- const _sfc_main$S = defineComponent({
2413
+ var caretTop = /* @__PURE__ */ _export_sfc$1(_sfc_main$U, [["render", _sfc_render$f]]);
2414
+ const _sfc_main$T = defineComponent({
2415
2415
  name: "CirclePlusFilled"
2416
2416
  });
2417
2417
  const _hoisted_1$t = {
@@ -2431,8 +2431,8 @@ const _hoisted_3$j = [
2431
2431
  function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
2432
2432
  return openBlock(), createElementBlock("svg", _hoisted_1$t, _hoisted_3$j);
2433
2433
  }
2434
- var circlePlusFilled = /* @__PURE__ */ _export_sfc$1(_sfc_main$S, [["render", _sfc_render$e]]);
2435
- const _sfc_main$R = defineComponent({
2434
+ var circlePlusFilled = /* @__PURE__ */ _export_sfc$1(_sfc_main$T, [["render", _sfc_render$e]]);
2435
+ const _sfc_main$S = defineComponent({
2436
2436
  name: "CirclePlus"
2437
2437
  });
2438
2438
  const _hoisted_1$s = {
@@ -2462,8 +2462,8 @@ const _hoisted_5$4 = [
2462
2462
  function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
2463
2463
  return openBlock(), createElementBlock("svg", _hoisted_1$s, _hoisted_5$4);
2464
2464
  }
2465
- var circlePlus = /* @__PURE__ */ _export_sfc$1(_sfc_main$R, [["render", _sfc_render$d]]);
2466
- const _sfc_main$Q = defineComponent({
2465
+ var circlePlus = /* @__PURE__ */ _export_sfc$1(_sfc_main$S, [["render", _sfc_render$d]]);
2466
+ const _sfc_main$R = defineComponent({
2467
2467
  name: "Download"
2468
2468
  });
2469
2469
  const _hoisted_1$r = {
@@ -2483,8 +2483,8 @@ const _hoisted_3$h = [
2483
2483
  function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
2484
2484
  return openBlock(), createElementBlock("svg", _hoisted_1$r, _hoisted_3$h);
2485
2485
  }
2486
- var download = /* @__PURE__ */ _export_sfc$1(_sfc_main$Q, [["render", _sfc_render$c]]);
2487
- const _sfc_main$P = defineComponent({
2486
+ var download = /* @__PURE__ */ _export_sfc$1(_sfc_main$R, [["render", _sfc_render$c]]);
2487
+ const _sfc_main$Q = defineComponent({
2488
2488
  name: "Edit"
2489
2489
  });
2490
2490
  const _hoisted_1$q = {
@@ -2509,8 +2509,8 @@ const _hoisted_4$6 = [
2509
2509
  function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
2510
2510
  return openBlock(), createElementBlock("svg", _hoisted_1$q, _hoisted_4$6);
2511
2511
  }
2512
- var edit = /* @__PURE__ */ _export_sfc$1(_sfc_main$P, [["render", _sfc_render$b]]);
2513
- const _sfc_main$O = defineComponent({
2512
+ var edit = /* @__PURE__ */ _export_sfc$1(_sfc_main$Q, [["render", _sfc_render$b]]);
2513
+ const _sfc_main$P = defineComponent({
2514
2514
  name: "Filter"
2515
2515
  });
2516
2516
  const _hoisted_1$p = {
@@ -2530,8 +2530,8 @@ const _hoisted_3$f = [
2530
2530
  function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
2531
2531
  return openBlock(), createElementBlock("svg", _hoisted_1$p, _hoisted_3$f);
2532
2532
  }
2533
- var filter = /* @__PURE__ */ _export_sfc$1(_sfc_main$O, [["render", _sfc_render$a]]);
2534
- const _sfc_main$N = defineComponent({
2533
+ var filter = /* @__PURE__ */ _export_sfc$1(_sfc_main$P, [["render", _sfc_render$a]]);
2534
+ const _sfc_main$O = defineComponent({
2535
2535
  name: "FullScreen"
2536
2536
  });
2537
2537
  const _hoisted_1$o = {
@@ -2551,8 +2551,8 @@ const _hoisted_3$e = [
2551
2551
  function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
2552
2552
  return openBlock(), createElementBlock("svg", _hoisted_1$o, _hoisted_3$e);
2553
2553
  }
2554
- var fullScreen = /* @__PURE__ */ _export_sfc$1(_sfc_main$N, [["render", _sfc_render$9]]);
2555
- const _sfc_main$M = defineComponent({
2554
+ var fullScreen = /* @__PURE__ */ _export_sfc$1(_sfc_main$O, [["render", _sfc_render$9]]);
2555
+ const _sfc_main$N = defineComponent({
2556
2556
  name: "Grid"
2557
2557
  });
2558
2558
  const _hoisted_1$n = {
@@ -2572,8 +2572,8 @@ const _hoisted_3$d = [
2572
2572
  function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
2573
2573
  return openBlock(), createElementBlock("svg", _hoisted_1$n, _hoisted_3$d);
2574
2574
  }
2575
- var grid = /* @__PURE__ */ _export_sfc$1(_sfc_main$M, [["render", _sfc_render$8]]);
2576
- const _sfc_main$L = defineComponent({
2575
+ var grid = /* @__PURE__ */ _export_sfc$1(_sfc_main$N, [["render", _sfc_render$8]]);
2576
+ const _sfc_main$M = defineComponent({
2577
2577
  name: "Loading"
2578
2578
  });
2579
2579
  const _hoisted_1$m = {
@@ -2593,8 +2593,8 @@ const _hoisted_3$c = [
2593
2593
  function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
2594
2594
  return openBlock(), createElementBlock("svg", _hoisted_1$m, _hoisted_3$c);
2595
2595
  }
2596
- var loading = /* @__PURE__ */ _export_sfc$1(_sfc_main$L, [["render", _sfc_render$7]]);
2597
- const _sfc_main$K = defineComponent({
2596
+ var loading = /* @__PURE__ */ _export_sfc$1(_sfc_main$M, [["render", _sfc_render$7]]);
2597
+ const _sfc_main$L = defineComponent({
2598
2598
  name: "Menu"
2599
2599
  });
2600
2600
  const _hoisted_1$l = {
@@ -2614,8 +2614,8 @@ const _hoisted_3$b = [
2614
2614
  function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
2615
2615
  return openBlock(), createElementBlock("svg", _hoisted_1$l, _hoisted_3$b);
2616
2616
  }
2617
- var menu = /* @__PURE__ */ _export_sfc$1(_sfc_main$K, [["render", _sfc_render$6]]);
2618
- const _sfc_main$J = defineComponent({
2617
+ var menu = /* @__PURE__ */ _export_sfc$1(_sfc_main$L, [["render", _sfc_render$6]]);
2618
+ const _sfc_main$K = defineComponent({
2619
2619
  name: "QuestionFilled"
2620
2620
  });
2621
2621
  const _hoisted_1$k = {
@@ -2635,8 +2635,8 @@ const _hoisted_3$a = [
2635
2635
  function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
2636
2636
  return openBlock(), createElementBlock("svg", _hoisted_1$k, _hoisted_3$a);
2637
2637
  }
2638
- var questionFilled = /* @__PURE__ */ _export_sfc$1(_sfc_main$J, [["render", _sfc_render$5]]);
2639
- const _sfc_main$I = defineComponent({
2638
+ var questionFilled = /* @__PURE__ */ _export_sfc$1(_sfc_main$K, [["render", _sfc_render$5]]);
2639
+ const _sfc_main$J = defineComponent({
2640
2640
  name: "RefreshLeft"
2641
2641
  });
2642
2642
  const _hoisted_1$j = {
@@ -2656,8 +2656,8 @@ const _hoisted_3$9 = [
2656
2656
  function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
2657
2657
  return openBlock(), createElementBlock("svg", _hoisted_1$j, _hoisted_3$9);
2658
2658
  }
2659
- var refreshLeft = /* @__PURE__ */ _export_sfc$1(_sfc_main$I, [["render", _sfc_render$4]]);
2660
- const _sfc_main$H = defineComponent({
2659
+ var refreshLeft = /* @__PURE__ */ _export_sfc$1(_sfc_main$J, [["render", _sfc_render$4]]);
2660
+ const _sfc_main$I = defineComponent({
2661
2661
  name: "RemoveFilled"
2662
2662
  });
2663
2663
  const _hoisted_1$i = {
@@ -2677,8 +2677,8 @@ const _hoisted_3$8 = [
2677
2677
  function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
2678
2678
  return openBlock(), createElementBlock("svg", _hoisted_1$i, _hoisted_3$8);
2679
2679
  }
2680
- var removeFilled = /* @__PURE__ */ _export_sfc$1(_sfc_main$H, [["render", _sfc_render$3]]);
2681
- const _sfc_main$G = defineComponent({
2680
+ var removeFilled = /* @__PURE__ */ _export_sfc$1(_sfc_main$I, [["render", _sfc_render$3]]);
2681
+ const _sfc_main$H = defineComponent({
2682
2682
  name: "Remove"
2683
2683
  });
2684
2684
  const _hoisted_1$h = {
@@ -2703,8 +2703,8 @@ const _hoisted_4$5 = [
2703
2703
  function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
2704
2704
  return openBlock(), createElementBlock("svg", _hoisted_1$h, _hoisted_4$5);
2705
2705
  }
2706
- var remove = /* @__PURE__ */ _export_sfc$1(_sfc_main$G, [["render", _sfc_render$2]]);
2707
- const _sfc_main$F = defineComponent({
2706
+ var remove = /* @__PURE__ */ _export_sfc$1(_sfc_main$H, [["render", _sfc_render$2]]);
2707
+ const _sfc_main$G = defineComponent({
2708
2708
  name: "Select"
2709
2709
  });
2710
2710
  const _hoisted_1$g = {
@@ -2724,8 +2724,8 @@ const _hoisted_3$6 = [
2724
2724
  function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
2725
2725
  return openBlock(), createElementBlock("svg", _hoisted_1$g, _hoisted_3$6);
2726
2726
  }
2727
- var select = /* @__PURE__ */ _export_sfc$1(_sfc_main$F, [["render", _sfc_render$1]]);
2728
- const _sfc_main$E = defineComponent({
2727
+ var select = /* @__PURE__ */ _export_sfc$1(_sfc_main$G, [["render", _sfc_render$1]]);
2728
+ const _sfc_main$F = defineComponent({
2729
2729
  name: "Tools"
2730
2730
  });
2731
2731
  const _hoisted_1$f = {
@@ -2745,12 +2745,12 @@ const _hoisted_3$5 = [
2745
2745
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
2746
2746
  return openBlock(), createElementBlock("svg", _hoisted_1$f, _hoisted_3$5);
2747
2747
  }
2748
- var tools = /* @__PURE__ */ _export_sfc$1(_sfc_main$E, [["render", _sfc_render]]);
2748
+ var tools = /* @__PURE__ */ _export_sfc$1(_sfc_main$F, [["render", _sfc_render]]);
2749
2749
  const formManagerProvideKey = Symbol("form-manager");
2750
2750
  const registerPropertyProvideKey = Symbol("registerProperty");
2751
2751
  const isOpenAuthButtonProvideKey = Symbol("isOpenAuthButton");
2752
2752
  const authButtonsProvideKey = Symbol("authButtons");
2753
- const _sfc_main$D = {
2753
+ const _sfc_main$E = {
2754
2754
  name: "ButtonItemRender",
2755
2755
  props: {
2756
2756
  text: {
@@ -2778,7 +2778,7 @@ var index_vue_vue_type_style_index_0_lang$b = "";
2778
2778
  const __default__$l = {
2779
2779
  name: "ButtonRenderer"
2780
2780
  };
2781
- const _sfc_main$C = defineComponent({
2781
+ const _sfc_main$D = defineComponent({
2782
2782
  ...__default__$l,
2783
2783
  props: {
2784
2784
  els: {},
@@ -2920,7 +2920,7 @@ const _sfc_main$C = defineComponent({
2920
2920
  onClick: withModifiers(($event) => handleButtonClick(index2), ["stop"])
2921
2921
  }), {
2922
2922
  default: withCtx(() => [
2923
- createVNode(_sfc_main$D, {
2923
+ createVNode(_sfc_main$E, {
2924
2924
  context: _ctx.context,
2925
2925
  "render-fn": button.renderFn,
2926
2926
  text: button.text
@@ -2944,7 +2944,7 @@ const _sfc_main$C = defineComponent({
2944
2944
  default: withCtx(() => {
2945
2945
  var _a2;
2946
2946
  return [
2947
- button.renderFn ? (openBlock(), createBlock(_sfc_main$D, {
2947
+ button.renderFn ? (openBlock(), createBlock(_sfc_main$E, {
2948
2948
  key: 0,
2949
2949
  context: _ctx.context,
2950
2950
  "render-fn": button.renderFn,
@@ -2972,7 +2972,7 @@ const _sfc_main$C = defineComponent({
2972
2972
  };
2973
2973
  }
2974
2974
  });
2975
- var index_vue_vue_type_style_index_0_scoped_true_lang$8 = "";
2975
+ var index_vue_vue_type_style_index_0_scoped_true_lang$9 = "";
2976
2976
  var _export_sfc = (sfc, props) => {
2977
2977
  const target = sfc.__vccOpts || sfc;
2978
2978
  for (const [key, val] of props) {
@@ -2985,7 +2985,7 @@ const __default__$k = {
2985
2985
  name: "SelectableOpearte",
2986
2986
  inheritAttrs: false
2987
2987
  };
2988
- const _sfc_main$B = defineComponent({
2988
+ const _sfc_main$C = defineComponent({
2989
2989
  ...__default__$k,
2990
2990
  props: {
2991
2991
  els: {},
@@ -3000,7 +3000,7 @@ const _sfc_main$B = defineComponent({
3000
3000
  });
3001
3001
  return (_ctx, _cache) => {
3002
3002
  return openBlock(), createElementBlock("div", _hoisted_1$e, [
3003
- createVNode(_sfc_main$C, mergeProps({
3003
+ createVNode(_sfc_main$D, mergeProps({
3004
3004
  els: props.els,
3005
3005
  "execute-data": [executeData.value],
3006
3006
  context: props.manager
@@ -3009,7 +3009,7 @@ const _sfc_main$B = defineComponent({
3009
3009
  };
3010
3010
  }
3011
3011
  });
3012
- var SelectableOperate = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-4e4544c2"]]);
3012
+ var SelectableOperate = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-4e4544c2"]]);
3013
3013
  class SearchFormManager extends IManager {
3014
3014
  constructor(form) {
3015
3015
  super();
@@ -3077,7 +3077,7 @@ class SearchFormManager extends IManager {
3077
3077
  this.manager = manager;
3078
3078
  }
3079
3079
  }
3080
- const _sfc_main$A = defineComponent({
3080
+ const _sfc_main$B = defineComponent({
3081
3081
  name: "FormItemRenderer",
3082
3082
  props: {
3083
3083
  modelValue: null,
@@ -3299,7 +3299,7 @@ var index_vue_vue_type_style_index_0_lang$a = "";
3299
3299
  const _hoisted_1$d = { class: "el-dialog__title" };
3300
3300
  const MIN_WIDTH = 300;
3301
3301
  const MIN_HEIGHT = 160;
3302
- const _sfc_main$z = defineComponent({
3302
+ const _sfc_main$A = defineComponent({
3303
3303
  __name: "index",
3304
3304
  props: {
3305
3305
  modelValue: { type: Boolean },
@@ -3392,7 +3392,7 @@ const _sfc_main$z = defineComponent({
3392
3392
  }
3393
3393
  });
3394
3394
  var index_vue_vue_type_style_index_0_lang$9 = "";
3395
- const _sfc_main$y = defineComponent({
3395
+ const _sfc_main$z = defineComponent({
3396
3396
  __name: "index",
3397
3397
  emits: ["filter"],
3398
3398
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -3427,7 +3427,7 @@ const _sfc_main$y = defineComponent({
3427
3427
  const _component_el_form_item = resolveComponent("el-form-item");
3428
3428
  const _component_el_form = resolveComponent("el-form");
3429
3429
  const _component_el_button = resolveComponent("el-button");
3430
- return openBlock(), createBlock(_sfc_main$z, {
3430
+ return openBlock(), createBlock(_sfc_main$A, {
3431
3431
  modelValue: isShow.value,
3432
3432
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isShow.value = $event),
3433
3433
  title: "\u7B5B\u9009\u6761\u4EF6",
@@ -3473,7 +3473,7 @@ const _sfc_main$y = defineComponent({
3473
3473
  prop: item.prop
3474
3474
  }), {
3475
3475
  default: withCtx(() => [
3476
- createVNode(_sfc_main$A, {
3476
+ createVNode(_sfc_main$B, {
3477
3477
  modelValue: formData.value[item.prop],
3478
3478
  "onUpdate:modelValue": ($event) => formData.value[item.prop] = $event,
3479
3479
  renderFn: item.renderFn,
@@ -4142,7 +4142,7 @@ var index_vue_vue_type_style_index_0_lang$8 = "";
4142
4142
  const __default__$j = {
4143
4143
  name: "PageModelSearchForm"
4144
4144
  };
4145
- const _sfc_main$x = defineComponent({
4145
+ const _sfc_main$y = defineComponent({
4146
4146
  ...__default__$j,
4147
4147
  props: {
4148
4148
  form: {},
@@ -4296,7 +4296,7 @@ const _sfc_main$x = defineComponent({
4296
4296
  style: { width: ((_a = item.style) == null ? void 0 : _a.width) || unref(searchFormItemWidth) }
4297
4297
  }), {
4298
4298
  default: withCtx(() => [
4299
- createVNode(_sfc_main$A, {
4299
+ createVNode(_sfc_main$B, {
4300
4300
  modelValue: searchFormManager.formData[item.prop],
4301
4301
  "onUpdate:modelValue": ($event) => searchFormManager.formData[item.prop] = $event,
4302
4302
  renderFn: item.renderFn,
@@ -4379,7 +4379,7 @@ const _sfc_main$x = defineComponent({
4379
4379
  }, [
4380
4380
  renderSlot(_ctx.$slots, "default")
4381
4381
  ], 2),
4382
- searchFormManager.expandMode === "dialog" && showFormEls.value.length && unref(showMoreButton) ? (openBlock(), createBlock(_sfc_main$y, {
4382
+ searchFormManager.expandMode === "dialog" && showFormEls.value.length && unref(showMoreButton) ? (openBlock(), createBlock(_sfc_main$z, {
4383
4383
  key: 0,
4384
4384
  ref_key: "SearchFormFullRef",
4385
4385
  ref: SearchFormFullRef,
@@ -5160,6 +5160,13 @@ class TableManager extends IManager {
5160
5160
  }
5161
5161
  updateCurrentRenderTableEls(els) {
5162
5162
  this.currentRenderTableEls = els;
5163
+ this.onCurrentRenderTableElsChange();
5164
+ }
5165
+ onCurrentRenderTableElsChange() {
5166
+ const propList = this.currentRenderTableEls.map((a) => a.prop).filter((a) => a);
5167
+ this.columnParamsList = this.columnParamsList.filter((a) => {
5168
+ return propList.includes(a.prop);
5169
+ });
5163
5170
  }
5164
5171
  get hiddeenFieldCount() {
5165
5172
  return this.table.els.length - this.currentRenderTableEls.length;
@@ -5201,7 +5208,7 @@ class TableManager extends IManager {
5201
5208
  this.removeCellOutClickEvent();
5202
5209
  }
5203
5210
  }
5204
- const _sfc_main$w = defineComponent({
5211
+ const _sfc_main$x = defineComponent({
5205
5212
  name: "TableCellRenderer",
5206
5213
  props: {
5207
5214
  renderFn: {
@@ -5239,14 +5246,15 @@ const _sfc_main$w = defineComponent({
5239
5246
  };
5240
5247
  }
5241
5248
  });
5242
- var index_vue_vue_type_style_index_0_scoped_true_lang$7 = "";
5249
+ var index_vue_vue_type_style_index_0_scoped_true_lang$8 = "";
5243
5250
  const __default__$i = {
5244
5251
  name: "SimplePopover"
5245
5252
  };
5246
- const _sfc_main$v = defineComponent({
5253
+ const _sfc_main$w = defineComponent({
5247
5254
  ...__default__$i,
5248
5255
  props: {
5249
- width: { default: 200 }
5256
+ width: { default: 200 },
5257
+ placement: { default: "right" }
5250
5258
  },
5251
5259
  setup(__props, { expose: __expose }) {
5252
5260
  const { BEMSpace } = createBEMSpace("simple-popover");
@@ -5281,7 +5289,12 @@ const _sfc_main$v = defineComponent({
5281
5289
  if (top == null) {
5282
5290
  return {};
5283
5291
  }
5284
- let _left = left - props.width + width - 2;
5292
+ let _left = 0;
5293
+ if (props.placement === "left") {
5294
+ _left = left - props.width + width - 2;
5295
+ } else {
5296
+ _left = left;
5297
+ }
5285
5298
  _left = Math.max(_left, 10);
5286
5299
  return {
5287
5300
  top: top + height + 4 + "px",
@@ -5366,7 +5379,7 @@ const _sfc_main$v = defineComponent({
5366
5379
  };
5367
5380
  }
5368
5381
  });
5369
- var SimplePopover = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-7a8bb01c"]]);
5382
+ var SimplePopover = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-6ec51dc6"]]);
5370
5383
  var FilterItemTypeEnum$1 = /* @__PURE__ */ ((FilterItemTypeEnum2) => {
5371
5384
  FilterItemTypeEnum2["\u6587\u5B57"] = "string";
5372
5385
  FilterItemTypeEnum2["\u6570\u5B57"] = "number";
@@ -5376,6 +5389,19 @@ var FilterItemTypeEnum$1 = /* @__PURE__ */ ((FilterItemTypeEnum2) => {
5376
5389
  FilterItemTypeEnum2["\u5355\u9009\u503C"] = "select";
5377
5390
  return FilterItemTypeEnum2;
5378
5391
  })(FilterItemTypeEnum$1 || {});
5392
+ var FilterMatchModeEnum$1 = /* @__PURE__ */ ((FilterMatchModeEnum2) => {
5393
+ FilterMatchModeEnum2["\u5305\u542B"] = "contain";
5394
+ FilterMatchModeEnum2["\u4E0D\u5305\u542B"] = "notContain";
5395
+ FilterMatchModeEnum2["\u5F00\u59CB\u4E8E"] = "StartsWith";
5396
+ FilterMatchModeEnum2["\u7ED3\u675F\u4E8E"] = "EndsWith";
5397
+ FilterMatchModeEnum2["\u7B49\u4E8E"] = "eq";
5398
+ FilterMatchModeEnum2["\u4E0D\u7B49\u4E8E"] = "neq";
5399
+ FilterMatchModeEnum2["\u5927\u4E8E"] = "gt";
5400
+ FilterMatchModeEnum2["\u5C0F\u4E8E"] = "lt";
5401
+ FilterMatchModeEnum2["\u5927\u4E8E\u7B49\u4E8E"] = "ge";
5402
+ FilterMatchModeEnum2["\u5C0F\u4E8E\u7B49\u4E8E"] = "le";
5403
+ return FilterMatchModeEnum2;
5404
+ })(FilterMatchModeEnum$1 || {});
5379
5405
  const compareOptions$1 = {
5380
5406
  ["string"]: [
5381
5407
  {
@@ -5456,9 +5482,9 @@ const compareOptions$1 = {
5456
5482
  }
5457
5483
  ]
5458
5484
  };
5459
- var index_vue_vue_type_style_index_0_scoped_true_lang$6 = "";
5485
+ var index_vue_vue_type_style_index_0_scoped_true_lang$7 = "";
5460
5486
  const _hoisted_1$c = { key: 1 };
5461
- const _sfc_main$u = defineComponent({
5487
+ const _sfc_main$v = defineComponent({
5462
5488
  __name: "index",
5463
5489
  props: {
5464
5490
  tableManager: {}
@@ -5473,6 +5499,27 @@ const _sfc_main$u = defineComponent({
5473
5499
  const filterMultiple = ref(false);
5474
5500
  const hasCompare = ref(false);
5475
5501
  const filterList = ref([]);
5502
+ const multSelectDatas = computed(() => {
5503
+ const listFilter = filterList.value.filter(
5504
+ (a) => a.filterType === FilterItemTypeEnum$1.\u591A\u9009\u503C
5505
+ );
5506
+ return listFilter.reduce((memo, item) => {
5507
+ var _a;
5508
+ const selectedValue = item.value || [];
5509
+ const allSelected = selectedValue.length === ((_a = item.filterOptions) == null ? void 0 : _a.length);
5510
+ memo[item.prop] = {
5511
+ modelValue: allSelected,
5512
+ indeterminate: !allSelected && selectedValue.length > 0
5513
+ };
5514
+ return memo;
5515
+ }, {});
5516
+ });
5517
+ const handleMultSelectChange = (prop, value) => {
5518
+ const multItem = filterList.value.find((a) => a.prop === prop);
5519
+ const filterOptions = multItem.filterOptions || [];
5520
+ const newValue = value ? filterOptions.map((a) => a.value) : [];
5521
+ multItem.value = newValue;
5522
+ };
5476
5523
  const getAddFilterItem = () => {
5477
5524
  const formData = {
5478
5525
  prop: currentColumn.value.prop,
@@ -5777,6 +5824,14 @@ const _sfc_main$u = defineComponent({
5777
5824
  createElementVNode("div", {
5778
5825
  class: normalizeClass(unref(createBEMName)("input"))
5779
5826
  }, [
5827
+ createVNode(_component_el_checkbox, mergeProps({ ref_for: true }, multSelectDatas.value[item.prop], {
5828
+ onChange: ($event) => handleMultSelectChange(item.prop, $event)
5829
+ }), {
5830
+ default: withCtx(() => [
5831
+ createTextVNode("\u5168\u9009")
5832
+ ]),
5833
+ _: 2
5834
+ }, 1040, ["onChange"]),
5780
5835
  createVNode(_component_el_checkbox_group, {
5781
5836
  modelValue: item.value,
5782
5837
  "onUpdate:modelValue": ($event) => item.value = $event
@@ -5839,7 +5894,7 @@ const _sfc_main$u = defineComponent({
5839
5894
  };
5840
5895
  }
5841
5896
  });
5842
- var FilterZone$1 = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-1bc1589a"]]);
5897
+ var FilterZone$1 = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-41c68f2e"]]);
5843
5898
  var index_vue_vue_type_style_index_0_lang$7 = "";
5844
5899
  const _hoisted_1$b = ["data-key", "title"];
5845
5900
  const _hoisted_2$7 = {
@@ -5866,7 +5921,7 @@ const _hoisted_10 = ["onClick"];
5866
5921
  const __default__$h = {
5867
5922
  name: "TableColumn"
5868
5923
  };
5869
- const _sfc_main$t = defineComponent({
5924
+ const _sfc_main$u = defineComponent({
5870
5925
  ...__default__$h,
5871
5926
  props: {
5872
5927
  els: {},
@@ -6053,7 +6108,7 @@ const _sfc_main$t = defineComponent({
6053
6108
  ) ? (openBlock(), createElementBlock("div", _hoisted_5$3, [
6054
6109
  column.editData ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
6055
6110
  createElementVNode("div", _hoisted_6$2, [
6056
- createVNode(_sfc_main$A, {
6111
+ createVNode(_sfc_main$B, {
6057
6112
  modelValue: row[column.editData.prop || column.prop],
6058
6113
  renderFn: column.editData.renderFn,
6059
6114
  context: props.context,
@@ -6089,7 +6144,7 @@ const _sfc_main$t = defineComponent({
6089
6144
  ])) : createCommentVNode("", true)
6090
6145
  ], 64)) : (openBlock(), createElementBlock("div", _hoisted_8, "\u8BE5\u5217\u672A\u8BBE\u7F6E\u7F16\u8F91\u7EC4\u4EF6"))
6091
6146
  ])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
6092
- column.renderFn && $index !== -1 ? (openBlock(), createBlock(_sfc_main$w, {
6147
+ column.renderFn && $index !== -1 ? (openBlock(), createBlock(_sfc_main$x, {
6093
6148
  key: 0,
6094
6149
  "render-fn": column.renderFn,
6095
6150
  context: props.context,
@@ -7093,7 +7148,7 @@ var Sortable = Sortable_min.exports;
7093
7148
  const __default__$g = {
7094
7149
  name: "DraggableList"
7095
7150
  };
7096
- const _sfc_main$s = defineComponent({
7151
+ const _sfc_main$t = defineComponent({
7097
7152
  ...__default__$g,
7098
7153
  props: {
7099
7154
  modelValue: {},
@@ -7194,7 +7249,7 @@ var setting_vue_vue_type_style_index_1_lang$2 = "";
7194
7249
  const __default__$f = {
7195
7250
  name: "SaveColumnSetting"
7196
7251
  };
7197
- const _sfc_main$r = defineComponent({
7252
+ const _sfc_main$s = defineComponent({
7198
7253
  ...__default__$f,
7199
7254
  props: {
7200
7255
  onlyShow: { type: Boolean, default: false }
@@ -7270,7 +7325,7 @@ const _sfc_main$r = defineComponent({
7270
7325
  const _component_el_radio_group = resolveComponent("el-radio-group");
7271
7326
  const _component_el_input_number = resolveComponent("el-input-number");
7272
7327
  const _component_el_button = resolveComponent("el-button");
7273
- return openBlock(), createBlock(_sfc_main$z, {
7328
+ return openBlock(), createBlock(_sfc_main$A, {
7274
7329
  modelValue: visible.value,
7275
7330
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => visible.value = $event),
7276
7331
  title: "\u7F16\u8F91\u8868\u683C",
@@ -7319,7 +7374,7 @@ const _sfc_main$r = defineComponent({
7319
7374
  createElementVNode("div", {
7320
7375
  class: normalizeClass(unref(createBEMName)("column-table-wrap"))
7321
7376
  }, [
7322
- createVNode(_sfc_main$s, {
7377
+ createVNode(_sfc_main$t, {
7323
7378
  modelValue: innerEls.value,
7324
7379
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => innerEls.value = $event),
7325
7380
  "item-key": "_key"
@@ -7514,7 +7569,7 @@ var userConfig_vue_vue_type_style_index_1_lang = "";
7514
7569
  const __default__$e = {
7515
7570
  name: "SaveUserConfig"
7516
7571
  };
7517
- const _sfc_main$q = defineComponent({
7572
+ const _sfc_main$r = defineComponent({
7518
7573
  ...__default__$e,
7519
7574
  emits: ["submit", "closed"],
7520
7575
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -7578,7 +7633,7 @@ const _sfc_main$q = defineComponent({
7578
7633
  };
7579
7634
  return (_ctx, _cache) => {
7580
7635
  const _component_el_button = resolveComponent("el-button");
7581
- return openBlock(), createBlock(_sfc_main$z, {
7636
+ return openBlock(), createBlock(_sfc_main$A, {
7582
7637
  modelValue: visible.value,
7583
7638
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => visible.value = $event),
7584
7639
  title: "\u7F16\u8F91\u79C1\u4EBA\u914D\u7F6E",
@@ -7653,7 +7708,7 @@ const _hoisted_2$6 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ create
7653
7708
  const _hoisted_3$3 = ["title"];
7654
7709
  const _hoisted_4$3 = ["title", "onClick"];
7655
7710
  const _hoisted_5$2 = ["title", "onClick"];
7656
- const _sfc_main$p = defineComponent({
7711
+ const _sfc_main$q = defineComponent({
7657
7712
  __name: "index",
7658
7713
  props: {
7659
7714
  els: {}
@@ -7785,7 +7840,7 @@ const _sfc_main$p = defineComponent({
7785
7840
  createElementVNode("div", {
7786
7841
  class: normalizeClass(unref(createBEMName)("list"))
7787
7842
  }, [
7788
- createVNode(_sfc_main$s, {
7843
+ createVNode(_sfc_main$t, {
7789
7844
  modelValue: innerEls.value,
7790
7845
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => innerEls.value = $event),
7791
7846
  class: normalizeClass(unref(BEMSpace))
@@ -7851,14 +7906,14 @@ const _sfc_main$p = defineComponent({
7851
7906
  _: 1
7852
7907
  })
7853
7908
  ], 2),
7854
- unref(isRenderColumnToolsSetting) ? (openBlock(), createBlock(_sfc_main$r, {
7909
+ unref(isRenderColumnToolsSetting) ? (openBlock(), createBlock(_sfc_main$s, {
7855
7910
  key: 0,
7856
7911
  ref_key: "columnToolsSettingRef",
7857
7912
  ref: columnToolsSettingRef,
7858
7913
  onSubmit: onSubmitColumns,
7859
7914
  onClosed: unref(onColumnToolsSettingClosed)
7860
7915
  }, null, 8, ["onClosed"])) : createCommentVNode("", true),
7861
- unref(isRenderUserConfig) ? (openBlock(), createBlock(_sfc_main$q, {
7916
+ unref(isRenderUserConfig) ? (openBlock(), createBlock(_sfc_main$r, {
7862
7917
  key: 1,
7863
7918
  ref_key: "userConfigRef",
7864
7919
  ref: userConfigRef,
@@ -7869,8 +7924,8 @@ const _sfc_main$p = defineComponent({
7869
7924
  };
7870
7925
  }
7871
7926
  });
7872
- var ColumnTools$1 = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-7bf8eedc"]]);
7873
- var index_vue_vue_type_style_index_0_scoped_true_lang$5 = "";
7927
+ var ColumnTools$1 = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-7bf8eedc"]]);
7928
+ var index_vue_vue_type_style_index_0_scoped_true_lang$6 = "";
7874
7929
  const _withScopeId$1 = (n) => (pushScopeId("data-v-15dbe923"), n = n(), popScopeId(), n);
7875
7930
  const _hoisted_1$9 = { key: 0 };
7876
7931
  const _hoisted_2$5 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("span", { class: "export-wrod" }, "\u4ECE\u7B2C", -1));
@@ -7879,7 +7934,7 @@ const _hoisted_4$2 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ create
7879
7934
  const _hoisted_5$1 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("div", null, null, -1));
7880
7935
  const _hoisted_6$1 = { class: "export-columns" };
7881
7936
  const _hoisted_7$1 = { class: "bottom-box" };
7882
- const _sfc_main$o = defineComponent({
7937
+ const _sfc_main$p = defineComponent({
7883
7938
  __name: "index",
7884
7939
  emits: ["closed"],
7885
7940
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -8032,7 +8087,7 @@ const _sfc_main$o = defineComponent({
8032
8087
  const _component_el_empty = resolveComponent("el-empty");
8033
8088
  const _component_el_button = resolveComponent("el-button");
8034
8089
  const _directive_loading = resolveDirective("loading");
8035
- return openBlock(), createBlock(_sfc_main$z, {
8090
+ return openBlock(), createBlock(_sfc_main$A, {
8036
8091
  modelValue: visible.value,
8037
8092
  "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => visible.value = $event),
8038
8093
  title: "\u5BFC\u51FA\u8868\u683C\u6570\u636E",
@@ -8206,7 +8261,7 @@ const _sfc_main$o = defineComponent({
8206
8261
  };
8207
8262
  }
8208
8263
  });
8209
- var ExportForm = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-15dbe923"]]);
8264
+ var ExportForm = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-15dbe923"]]);
8210
8265
  const SAVE_NAME$2 = "table-columns";
8211
8266
  const columnsSaver$1 = new ConfigSaver(SAVE_NAME$2);
8212
8267
  const saveTableColumns = columnsSaver$1.setContents.bind(columnsSaver$1);
@@ -8217,7 +8272,7 @@ const _hoisted_1$8 = { class: "el-table__empty-data" };
8217
8272
  const __default__$d = {
8218
8273
  name: "EmptyData"
8219
8274
  };
8220
- const _sfc_main$n = defineComponent({
8275
+ const _sfc_main$o = defineComponent({
8221
8276
  ...__default__$d,
8222
8277
  props: {
8223
8278
  text: {}
@@ -8230,11 +8285,11 @@ const _sfc_main$n = defineComponent({
8230
8285
  };
8231
8286
  }
8232
8287
  });
8233
- var index_vue_vue_type_style_index_0_scoped_true_lang$4 = "";
8288
+ var index_vue_vue_type_style_index_0_scoped_true_lang$5 = "";
8234
8289
  const __default__$c = {
8235
8290
  name: "SelectionsTable"
8236
8291
  };
8237
- const _sfc_main$m = defineComponent({
8292
+ const _sfc_main$n = defineComponent({
8238
8293
  ...__default__$c,
8239
8294
  emits: ["closed"],
8240
8295
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -8301,7 +8356,7 @@ const _sfc_main$m = defineComponent({
8301
8356
  });
8302
8357
  return (_ctx, _cache) => {
8303
8358
  const _component_el_button = resolveComponent("el-button");
8304
- return openBlock(), createBlock(_sfc_main$z, {
8359
+ return openBlock(), createBlock(_sfc_main$A, {
8305
8360
  modelValue: visible.value,
8306
8361
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => visible.value = $event),
8307
8362
  title: "\u5DF2\u9009\u6570\u636E",
@@ -8350,7 +8405,7 @@ const _sfc_main$m = defineComponent({
8350
8405
  };
8351
8406
  }
8352
8407
  });
8353
- var SelectionsTable = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-3b4b4ed8"]]);
8408
+ var SelectionsTable = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-3b4b4ed8"]]);
8354
8409
  const useSelectionsTable = () => {
8355
8410
  const selectionsTableRef = ref();
8356
8411
  const isRenderSelectionsTable = ref(false);
@@ -8512,7 +8567,7 @@ const useExportForm = () => {
8512
8567
  onExportFormClosed: onClosed
8513
8568
  };
8514
8569
  };
8515
- const _sfc_main$l = {
8570
+ const _sfc_main$m = {
8516
8571
  props: {
8517
8572
  isLoading: {
8518
8573
  type: Boolean,
@@ -8561,12 +8616,7 @@ const useColumnDrag = () => {
8561
8616
  if (oldDraggableIndex === newDraggableIndex) {
8562
8617
  return;
8563
8618
  }
8564
- const _list = jsonClone(opt.getEls());
8565
- const [spliceItem] = _list.splice(oldDraggableIndex, 1);
8566
- let insertIndex;
8567
- insertIndex = newDraggableIndex;
8568
- _list.splice(insertIndex, 0, spliceItem);
8569
- opt.cb(_list);
8619
+ opt.cb(oldDraggableIndex, newDraggableIndex);
8570
8620
  }
8571
8621
  });
8572
8622
  };
@@ -8583,7 +8633,7 @@ const __default__$b = {
8583
8633
  name: "PageModelTable",
8584
8634
  inheritAttrs: false
8585
8635
  };
8586
- const _sfc_main$k = defineComponent({
8636
+ const _sfc_main$l = defineComponent({
8587
8637
  ...__default__$b,
8588
8638
  props: {
8589
8639
  table: {},
@@ -8715,11 +8765,11 @@ const _sfc_main$k = defineComponent({
8715
8765
  (_a = tableRef.value) == null ? void 0 : _a.doLayout();
8716
8766
  };
8717
8767
  const simplePopoverRef = ref();
8718
- const showSimplePopover = (element) => {
8768
+ const showColumnToolSimplePopover = (element) => {
8719
8769
  var _a;
8720
8770
  (_a = simplePopoverRef.value) == null ? void 0 : _a.show(element);
8721
8771
  };
8722
- const hideSimplePopover = () => {
8772
+ const hideColumnToolSimplePopover = () => {
8723
8773
  var _a;
8724
8774
  (_a = simplePopoverRef.value) == null ? void 0 : _a.hide();
8725
8775
  };
@@ -8731,10 +8781,18 @@ const _sfc_main$k = defineComponent({
8731
8781
  if (tableManager.table.dragable) {
8732
8782
  initTableDrag({
8733
8783
  element: tableRef.value.$el.querySelector(".el-table__header thead tr"),
8734
- getEls() {
8735
- return renderedTableEls.value;
8736
- },
8737
- cb(newList) {
8784
+ cb(oldIndex, newIndex) {
8785
+ const oldItem = renderedTableEls.value[oldIndex];
8786
+ const newItem = renderedTableEls.value[newIndex];
8787
+ const newList = jsonClone(filteredUserEls.value);
8788
+ const realOldItemIndex = newList.findIndex(
8789
+ (a) => a.prop === oldItem.prop && a.label === oldItem.label
8790
+ );
8791
+ const realNewIemndex = newList.findIndex(
8792
+ (a) => a.prop === newItem.prop && a.label === newItem.label
8793
+ );
8794
+ const [spliceItem] = newList.splice(realOldItemIndex, 1);
8795
+ newList.splice(realNewIemndex, 0, spliceItem);
8738
8796
  onSaveColumns(newList);
8739
8797
  }
8740
8798
  });
@@ -8747,20 +8805,7 @@ const _sfc_main$k = defineComponent({
8747
8805
  if (newWidth === oldWidth) {
8748
8806
  return false;
8749
8807
  }
8750
- const originTableEls = table.value.els;
8751
- const userConfig = getUserConfig(originTableEls) || {};
8752
- const filteredUserEls2 = tableManager.saveContent.map((item) => {
8753
- const fItem = originTableEls[item.index];
8754
- fItem.userConfigShow = !!item.show;
8755
- fItem.showSummary = item.sum;
8756
- fItem.userLabel = item.ul;
8757
- fItem.width = item.w || void 0;
8758
- fItem.minWidth = item.mw || void 0;
8759
- fItem.fixed = item.fix || void 0;
8760
- fItem.showRowNumbers = userConfig.showRowNumbers;
8761
- return fItem;
8762
- });
8763
- const newList = jsonClone(filteredUserEls2);
8808
+ const newList = jsonClone(filteredUserEls.value);
8764
8809
  const _column = newList.find(
8765
8810
  (item) => item.label === column.label && item.prop === column.property
8766
8811
  );
@@ -8787,8 +8832,9 @@ const _sfc_main$k = defineComponent({
8787
8832
  showExport,
8788
8833
  clearSelection,
8789
8834
  getRenderedEls,
8790
- showSimplePopover,
8791
- hideSimplePopover
8835
+ showColumnToolSimplePopover,
8836
+ hideColumnToolSimplePopover,
8837
+ handleColumnScreen
8792
8838
  });
8793
8839
  return (_ctx, _cache) => {
8794
8840
  const _component_el_radio = resolveComponent("el-radio");
@@ -8799,7 +8845,7 @@ const _sfc_main$k = defineComponent({
8799
8845
  const _component_el_popconfirm = resolveComponent("el-popconfirm");
8800
8846
  const _component_el_pagination = resolveComponent("el-pagination");
8801
8847
  return openBlock(), createElementBlock(Fragment, null, [
8802
- createVNode(_sfc_main$l, {
8848
+ createVNode(_sfc_main$m, {
8803
8849
  class: normalizeClass([unref(createBEMName)("table")]),
8804
8850
  isLoading: tableManager.loadingData,
8805
8851
  directiveName: table.value.loadingDirectiveName
@@ -8823,7 +8869,7 @@ const _sfc_main$k = defineComponent({
8823
8869
  unref(PageModelManager).emptyTableComponent ? (openBlock(), createBlock(resolveDynamicComponent(unref(PageModelManager).emptyTableComponent), {
8824
8870
  key: 0,
8825
8871
  text: (_a = tableManager == null ? void 0 : tableManager.tableProps) == null ? void 0 : _a.emptyText
8826
- }, null, 8, ["text"])) : (openBlock(), createBlock(_sfc_main$n, {
8872
+ }, null, 8, ["text"])) : (openBlock(), createBlock(_sfc_main$o, {
8827
8873
  key: 1,
8828
8874
  text: (_b = tableManager == null ? void 0 : tableManager.tableProps) == null ? void 0 : _b.emptyText
8829
8875
  }, null, 8, ["text"]))
@@ -8884,7 +8930,7 @@ const _sfc_main$k = defineComponent({
8884
8930
  width: table.value.operate.width
8885
8931
  }, table.value.operate.props), {
8886
8932
  default: withCtx(({ row, $index }) => [
8887
- createVNode(_sfc_main$C, mergeProps({
8933
+ createVNode(_sfc_main$D, mergeProps({
8888
8934
  els: table.value.operate.els,
8889
8935
  context: tableManager,
8890
8936
  executeData: [row, $index]
@@ -8893,7 +8939,7 @@ const _sfc_main$k = defineComponent({
8893
8939
  _: 1
8894
8940
  }, 16, ["width"])) : createCommentVNode("", true)
8895
8941
  ], 64)) : createCommentVNode("", true),
8896
- createVNode(_sfc_main$t, {
8942
+ createVNode(_sfc_main$u, {
8897
8943
  els: renderedTableEls.value,
8898
8944
  context: tableManager,
8899
8945
  onColumnScreen: handleColumnScreen
@@ -8905,7 +8951,7 @@ const _sfc_main$k = defineComponent({
8905
8951
  width: table.value.operate.width
8906
8952
  }, table.value.operate.props), {
8907
8953
  default: withCtx(({ row, $index }) => [
8908
- createVNode(_sfc_main$C, mergeProps({
8954
+ createVNode(_sfc_main$D, mergeProps({
8909
8955
  els: table.value.operate.els,
8910
8956
  context: tableManager,
8911
8957
  executeData: [row, $index]
@@ -8923,7 +8969,7 @@ const _sfc_main$k = defineComponent({
8923
8969
  createVNode(_component_el_icon, {
8924
8970
  size: "16px",
8925
8971
  class: normalizeClass(unref(createBEMName)("tools")),
8926
- onClick: _cache[0] || (_cache[0] = ($event) => showSimplePopover($event.currentTarget))
8972
+ onClick: _cache[0] || (_cache[0] = ($event) => showColumnToolSimplePopover($event.currentTarget))
8927
8973
  }, {
8928
8974
  default: withCtx(() => [
8929
8975
  createVNode(unref(tools))
@@ -9168,13 +9214,13 @@ class FormManager extends IManager {
9168
9214
  this.destroyReflect();
9169
9215
  }
9170
9216
  }
9171
- var index_vue_vue_type_style_index_0_scoped_true_lang$3 = "";
9217
+ var index_vue_vue_type_style_index_0_scoped_true_lang$4 = "";
9172
9218
  const _hoisted_1$7 = ["onClick"];
9173
9219
  const _hoisted_2$4 = { class: "section-item__title-text" };
9174
9220
  const __default__$a = {
9175
9221
  name: "SectionTitleEl"
9176
9222
  };
9177
- const _sfc_main$j = defineComponent({
9223
+ const _sfc_main$k = defineComponent({
9178
9224
  ...__default__$a,
9179
9225
  props: {
9180
9226
  els: {},
@@ -9313,11 +9359,11 @@ const _sfc_main$j = defineComponent({
9313
9359
  };
9314
9360
  }
9315
9361
  });
9316
- var SectionTitleEl = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-7a2c16fe"]]);
9362
+ var SectionTitleEl = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-7a2c16fe"]]);
9317
9363
  const __default__$9 = {
9318
9364
  name: "TabsModeContainer"
9319
9365
  };
9320
- const _sfc_main$i = defineComponent({
9366
+ const _sfc_main$j = defineComponent({
9321
9367
  ...__default__$9,
9322
9368
  props: {
9323
9369
  props: {},
@@ -9413,7 +9459,7 @@ const _sfc_main$i = defineComponent({
9413
9459
  const __default__$8 = {
9414
9460
  name: "ModuleContainer"
9415
9461
  };
9416
- const _sfc_main$h = defineComponent({
9462
+ const _sfc_main$i = defineComponent({
9417
9463
  ...__default__$8,
9418
9464
  props: {
9419
9465
  els: {},
@@ -9426,7 +9472,7 @@ const _sfc_main$h = defineComponent({
9426
9472
  const props = __props;
9427
9473
  const containerConfig = computed(() => {
9428
9474
  return {
9429
- component: markRaw(_sfc_main$i),
9475
+ component: markRaw(_sfc_main$j),
9430
9476
  props: {
9431
9477
  props: props.moduleConfig.props,
9432
9478
  els: props.els,
@@ -9463,7 +9509,7 @@ columnsSaver.setContents.bind(columnsSaver);
9463
9509
  columnsSaver.genScopeItemKey.bind(columnsSaver);
9464
9510
  const saveColumns = columnsSaver.saveContentItem.bind(columnsSaver);
9465
9511
  const getColumns = columnsSaver.getContentItem.bind(columnsSaver);
9466
- const _sfc_main$g = defineComponent({
9512
+ const _sfc_main$h = defineComponent({
9467
9513
  __name: "index",
9468
9514
  props: {
9469
9515
  els: {},
@@ -9500,7 +9546,7 @@ const _sfc_main$g = defineComponent({
9500
9546
  return sectionConfig;
9501
9547
  });
9502
9548
  return (_ctx, _cache) => {
9503
- return useModule.value ? (openBlock(), createBlock(_sfc_main$h, {
9549
+ return useModule.value ? (openBlock(), createBlock(_sfc_main$i, {
9504
9550
  key: 0,
9505
9551
  rowProps: _ctx.form.rowProps,
9506
9552
  sectionConfig: useSectionConfig.value,
@@ -9526,7 +9572,7 @@ const _sfc_main$g = defineComponent({
9526
9572
  };
9527
9573
  }
9528
9574
  });
9529
- const _sfc_main$f = defineComponent({
9575
+ const _sfc_main$g = defineComponent({
9530
9576
  __name: "index",
9531
9577
  props: {
9532
9578
  form: {},
@@ -9538,7 +9584,7 @@ const _sfc_main$f = defineComponent({
9538
9584
  const props = __props;
9539
9585
  const containerConfig = computed(() => {
9540
9586
  return {
9541
- component: markRaw(_sfc_main$g),
9587
+ component: markRaw(_sfc_main$h),
9542
9588
  props: {
9543
9589
  els: props.els,
9544
9590
  form: props.form,
@@ -9574,7 +9620,7 @@ const _hoisted_4$1 = {
9574
9620
  const __default__$7 = {
9575
9621
  name: "SaveColumnSetting"
9576
9622
  };
9577
- const _sfc_main$e = defineComponent({
9623
+ const _sfc_main$f = defineComponent({
9578
9624
  ...__default__$7,
9579
9625
  emits: ["submit", "closed"],
9580
9626
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -9686,7 +9732,7 @@ const _sfc_main$e = defineComponent({
9686
9732
  const _component_el_tab_pane = resolveComponent("el-tab-pane");
9687
9733
  const _component_el_tabs = resolveComponent("el-tabs");
9688
9734
  const _component_el_button = resolveComponent("el-button");
9689
- return openBlock(), createBlock(_sfc_main$z, {
9735
+ return openBlock(), createBlock(_sfc_main$A, {
9690
9736
  modelValue: visible.value,
9691
9737
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => visible.value = $event),
9692
9738
  title: "\u8868\u5355\u914D\u7F6E",
@@ -9752,7 +9798,7 @@ const _sfc_main$e = defineComponent({
9752
9798
  ], 2);
9753
9799
  }), 128))
9754
9800
  ], 2),
9755
- createVNode(_sfc_main$s, {
9801
+ createVNode(_sfc_main$t, {
9756
9802
  modelValue: innerEls.value,
9757
9803
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => innerEls.value = $event),
9758
9804
  "item-key": "_key"
@@ -9880,7 +9926,7 @@ var index_vue_vue_type_style_index_0_lang$4 = "";
9880
9926
  const __default__$6 = {
9881
9927
  name: "PageModelForm"
9882
9928
  };
9883
- const _sfc_main$d = defineComponent({
9929
+ const _sfc_main$e = defineComponent({
9884
9930
  ...__default__$6,
9885
9931
  props: {
9886
9932
  form: {},
@@ -10090,7 +10136,7 @@ const _sfc_main$d = defineComponent({
10090
10136
  class: unref(BEMSpace)
10091
10137
  }), {
10092
10138
  default: withCtx(() => [
10093
- createVNode(_sfc_main$f, {
10139
+ createVNode(_sfc_main$g, {
10094
10140
  els: totalShowFormEls.value,
10095
10141
  form: form.value,
10096
10142
  formManager,
@@ -10112,7 +10158,7 @@ const _sfc_main$d = defineComponent({
10112
10158
  key: 0,
10113
10159
  class: normalizeClass(unref(createBEMName)("prefix"))
10114
10160
  }, toDisplayString(renderDeText(item.prefix, formManager.formData)), 3)) : createCommentVNode("", true),
10115
- createVNode(_sfc_main$A, {
10161
+ createVNode(_sfc_main$B, {
10116
10162
  modelValue: formManager.formData[item.prop],
10117
10163
  renderFn: item.renderFn,
10118
10164
  context: formManager,
@@ -10141,7 +10187,7 @@ const _sfc_main$d = defineComponent({
10141
10187
  ]),
10142
10188
  _: 1
10143
10189
  }, 8, ["els", "form", "formManager", "errorProp"]),
10144
- unref(isRenderColumnToolsSetting) ? (openBlock(), createBlock(_sfc_main$e, {
10190
+ unref(isRenderColumnToolsSetting) ? (openBlock(), createBlock(_sfc_main$f, {
10145
10191
  key: 0,
10146
10192
  ref_key: "columnToolsSettingRef",
10147
10193
  ref: columnToolsSettingRef,
@@ -10154,8 +10200,8 @@ const _sfc_main$d = defineComponent({
10154
10200
  };
10155
10201
  }
10156
10202
  });
10157
- var PageModelForm = _sfc_main$d;
10158
- const _sfc_main$c = defineComponent({
10203
+ var PageModelForm = _sfc_main$e;
10204
+ const _sfc_main$d = defineComponent({
10159
10205
  __name: "index",
10160
10206
  props: {
10161
10207
  props: {},
@@ -10239,7 +10285,7 @@ const _sfc_main$c = defineComponent({
10239
10285
  });
10240
10286
  return (_ctx, _cache) => {
10241
10287
  const _component_el_button = resolveComponent("el-button");
10242
- return formVisible.value ? (openBlock(), createBlock(_sfc_main$z, {
10288
+ return formVisible.value ? (openBlock(), createBlock(_sfc_main$A, {
10243
10289
  key: 0,
10244
10290
  modelValue: formVisible.value,
10245
10291
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => formVisible.value = $event),
@@ -10283,7 +10329,7 @@ const _sfc_main$c = defineComponent({
10283
10329
  }
10284
10330
  });
10285
10331
  var index_vue_vue_type_style_index_0_lang$3 = "";
10286
- const _sfc_main$b = defineComponent({
10332
+ const _sfc_main$c = defineComponent({
10287
10333
  __name: "index",
10288
10334
  props: {
10289
10335
  props: {},
@@ -10435,7 +10481,7 @@ const _sfc_main$b = defineComponent({
10435
10481
  });
10436
10482
  var index_vue_vue_type_style_index_0_lang$2 = "";
10437
10483
  const _hoisted_1$5 = { class: "el-drawer_title" };
10438
- const _sfc_main$a = defineComponent({
10484
+ const _sfc_main$b = defineComponent({
10439
10485
  __name: "index",
10440
10486
  props: {
10441
10487
  modelValue: { type: Boolean },
@@ -10491,7 +10537,7 @@ const _sfc_main$a = defineComponent({
10491
10537
  };
10492
10538
  }
10493
10539
  });
10494
- const _sfc_main$9 = defineComponent({
10540
+ const _sfc_main$a = defineComponent({
10495
10541
  __name: "index",
10496
10542
  props: {
10497
10543
  props: {},
@@ -10584,7 +10630,7 @@ const _sfc_main$9 = defineComponent({
10584
10630
  });
10585
10631
  return (_ctx, _cache) => {
10586
10632
  const _component_el_button = resolveComponent("el-button");
10587
- return formVisible.value ? (openBlock(), createBlock(_sfc_main$a, {
10633
+ return formVisible.value ? (openBlock(), createBlock(_sfc_main$b, {
10588
10634
  key: 0,
10589
10635
  ref_key: "formDrawerRef",
10590
10636
  ref: formDrawerRef,
@@ -10630,7 +10676,7 @@ const _sfc_main$9 = defineComponent({
10630
10676
  };
10631
10677
  }
10632
10678
  });
10633
- const _sfc_main$8 = defineComponent({
10679
+ const _sfc_main$9 = defineComponent({
10634
10680
  __name: "index",
10635
10681
  props: {
10636
10682
  form: {},
@@ -10645,27 +10691,27 @@ const _sfc_main$8 = defineComponent({
10645
10691
  const mode = (_a = props.form.mode) != null ? _a : "dialog";
10646
10692
  if (mode === "dialog") {
10647
10693
  return {
10648
- component: _sfc_main$c,
10694
+ component: _sfc_main$d,
10649
10695
  props: props.form.dialogProps
10650
10696
  };
10651
10697
  } else if (mode === "fullpage") {
10652
10698
  return {
10653
- component: _sfc_main$b,
10699
+ component: _sfc_main$c,
10654
10700
  props: props.form.fullpageProps
10655
10701
  };
10656
10702
  } else if (mode === "drawer") {
10657
10703
  return {
10658
- component: _sfc_main$9,
10704
+ component: _sfc_main$a,
10659
10705
  props: props.form.drawerProps
10660
10706
  };
10661
10707
  } else if (mode === "custom") {
10662
10708
  return {
10663
- component: props.form.formContainer || _sfc_main$c,
10709
+ component: props.form.formContainer || _sfc_main$d,
10664
10710
  props: props.form.formContainerProps
10665
10711
  };
10666
10712
  } else {
10667
10713
  return {
10668
- component: _sfc_main$c,
10714
+ component: _sfc_main$d,
10669
10715
  props: props.form.dialogProps
10670
10716
  };
10671
10717
  }
@@ -10821,9 +10867,9 @@ class FilterTools {
10821
10867
  this.filterList = [];
10822
10868
  }
10823
10869
  }
10824
- var index_vue_vue_type_style_index_0_scoped_true_lang$2 = "";
10870
+ var index_vue_vue_type_style_index_0_scoped_true_lang$3 = "";
10825
10871
  const _hoisted_1$4 = ["onClick"];
10826
- const _sfc_main$7 = defineComponent({
10872
+ const _sfc_main$8 = defineComponent({
10827
10873
  __name: "index",
10828
10874
  props: {
10829
10875
  manager: {},
@@ -11063,7 +11109,7 @@ const _sfc_main$7 = defineComponent({
11063
11109
  };
11064
11110
  }
11065
11111
  });
11066
- var FilterZone = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-3b3a557e"]]);
11112
+ var FilterZone = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-3b3a557e"]]);
11067
11113
  function getDateValue(value) {
11068
11114
  return value == null ? void 0 : value.split(" ")[0];
11069
11115
  }
@@ -11157,7 +11203,7 @@ const getFilters = configSaver.getContentItem.bind(configSaver);
11157
11203
  const __default__$5 = {
11158
11204
  name: "FilterTools"
11159
11205
  };
11160
- const _sfc_main$6 = defineComponent({
11206
+ const _sfc_main$7 = defineComponent({
11161
11207
  ...__default__$5,
11162
11208
  props: {
11163
11209
  manager: {}
@@ -11244,6 +11290,363 @@ const _sfc_main$6 = defineComponent({
11244
11290
  };
11245
11291
  }
11246
11292
  });
11293
+ var index_vue_vue_type_style_index_0_scoped_true_lang$2 = "";
11294
+ const _sfc_main$6 = defineComponent({
11295
+ __name: "index",
11296
+ props: {
11297
+ manager: {}
11298
+ },
11299
+ emits: ["screen"],
11300
+ setup(__props, { expose: __expose, emit: __emit }) {
11301
+ const props = __props;
11302
+ const emit = __emit;
11303
+ const { BEMSpace, createBEMName } = createBEMSpace("f_z");
11304
+ const filterColumnList = ref([]);
11305
+ const filterList = ref([]);
11306
+ const simplePopoverRef = ref();
11307
+ const showPopover = (element) => {
11308
+ var _a;
11309
+ (_a = simplePopoverRef.value) == null ? void 0 : _a.show(element);
11310
+ const tableManager = props.manager.tableManager;
11311
+ const currentRenderTableEls = tableManager.currentRenderTableEls;
11312
+ filterColumnList.value = currentRenderTableEls.filter(
11313
+ (a) => a.filterable && a.filters
11314
+ );
11315
+ filterList.value = tableManager.columnParamsList.map((item) => {
11316
+ const columnEl = currentRenderTableEls.find((el) => el.prop === item.prop);
11317
+ return {
11318
+ prop: columnEl.prop,
11319
+ filterType: columnEl.filters.filterType,
11320
+ filterLabel: columnEl.filters.filterLabel,
11321
+ filterOptions: columnEl.filters.filterOptions,
11322
+ condition: item.condition,
11323
+ value: item.value
11324
+ };
11325
+ });
11326
+ };
11327
+ const hidePopover = () => {
11328
+ var _a;
11329
+ (_a = simplePopoverRef.value) == null ? void 0 : _a.hide();
11330
+ };
11331
+ const getAddFilterItem = (columnEl) => {
11332
+ const formData = {
11333
+ prop: columnEl.prop,
11334
+ filterType: columnEl.filters.filterType,
11335
+ filterLabel: columnEl.filters.filterLabel,
11336
+ filterOptions: columnEl.filters.filterOptions,
11337
+ condition: FilterMatchModeEnum$1.\u7B49\u4E8E,
11338
+ value: null
11339
+ };
11340
+ if (formData.filterType === FilterItemTypeEnum$1.\u591A\u9009\u503C) {
11341
+ formData.value = [];
11342
+ }
11343
+ return formData;
11344
+ };
11345
+ const handleFieldChange = (index2, prop) => {
11346
+ const columnEl = filterColumnList.value.find((a) => a.prop === prop);
11347
+ const newItem = getAddFilterItem(columnEl);
11348
+ filterList.value[index2] = newItem;
11349
+ };
11350
+ const handleAddItem = () => {
11351
+ if (filterColumnList.value[0]) {
11352
+ filterList.value.push(getAddFilterItem(filterColumnList.value[0]));
11353
+ }
11354
+ };
11355
+ const handleRemoveItem = (index2) => {
11356
+ filterList.value.splice(index2, 1);
11357
+ };
11358
+ const handleClear = () => {
11359
+ filterList.value = [];
11360
+ props.manager.tableManager.columnParamsList = [];
11361
+ hidePopover();
11362
+ emit("screen");
11363
+ };
11364
+ const handleScreen = () => {
11365
+ const list = filterList.value.filter((a) => {
11366
+ var _a;
11367
+ const hasCompare = [
11368
+ FilterItemTypeEnum$1["\u6587\u5B57"],
11369
+ FilterItemTypeEnum$1["\u65E5\u671F"],
11370
+ FilterItemTypeEnum$1["\u6570\u5B57"]
11371
+ ].includes(a.filterType);
11372
+ if (hasCompare) {
11373
+ return a.condition && a.value != null;
11374
+ } else {
11375
+ if (a.filterType === FilterItemTypeEnum$1.\u591A\u9009\u503C) {
11376
+ return (_a = a.value) == null ? void 0 : _a.length;
11377
+ } else {
11378
+ return a.value !== null;
11379
+ }
11380
+ }
11381
+ });
11382
+ props.manager.tableManager.columnParamsList = list.map((item) => {
11383
+ return {
11384
+ prop: item.prop,
11385
+ filterType: item.filterType,
11386
+ condition: item.condition,
11387
+ value: item.value
11388
+ };
11389
+ });
11390
+ hidePopover();
11391
+ emit("screen");
11392
+ };
11393
+ __expose({
11394
+ showPopover,
11395
+ hidePopover
11396
+ });
11397
+ return (_ctx, _cache) => {
11398
+ const _component_el_option = resolveComponent("el-option");
11399
+ const _component_el_select = resolveComponent("el-select");
11400
+ const _component_el_input = resolveComponent("el-input");
11401
+ const _component_el_input_number = resolveComponent("el-input-number");
11402
+ const _component_el_date_picker = resolveComponent("el-date-picker");
11403
+ const _component_el_icon = resolveComponent("el-icon");
11404
+ const _component_el_button = resolveComponent("el-button");
11405
+ return openBlock(), createBlock(SimplePopover, {
11406
+ ref_key: "simplePopoverRef",
11407
+ ref: simplePopoverRef,
11408
+ width: 560
11409
+ }, {
11410
+ default: withCtx(() => [
11411
+ createElementVNode("div", {
11412
+ class: normalizeClass(unref(BEMSpace))
11413
+ }, [
11414
+ createElementVNode("div", {
11415
+ class: normalizeClass(unref(createBEMName)("title"))
11416
+ }, "\u7B5B\u9009", 2),
11417
+ createElementVNode("div", {
11418
+ class: normalizeClass(unref(createBEMName)("list"))
11419
+ }, [
11420
+ (openBlock(true), createElementBlock(Fragment, null, renderList(filterList.value, (item, index2) => {
11421
+ return openBlock(), createElementBlock("div", {
11422
+ class: normalizeClass(unref(createBEMName)("item")),
11423
+ key: index2
11424
+ }, [
11425
+ createVNode(_component_el_select, {
11426
+ modelValue: item.prop,
11427
+ "onUpdate:modelValue": ($event) => item.prop = $event,
11428
+ class: normalizeClass(unref(createBEMName)("key")),
11429
+ placeholder: "\u7B5B\u9009\u5B57\u6BB5",
11430
+ onChange: ($event) => handleFieldChange(index2, $event)
11431
+ }, {
11432
+ default: withCtx(() => [
11433
+ (openBlock(true), createElementBlock(Fragment, null, renderList(filterColumnList.value, (filterItem, iindex) => {
11434
+ return openBlock(), createBlock(_component_el_option, {
11435
+ key: iindex,
11436
+ label: filterItem.label,
11437
+ value: filterItem.prop
11438
+ }, null, 8, ["label", "value"]);
11439
+ }), 128))
11440
+ ]),
11441
+ _: 2
11442
+ }, 1032, ["modelValue", "onUpdate:modelValue", "class", "onChange"]),
11443
+ item.filterType === unref(FilterItemTypeEnum$1).\u6587\u5B57 ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
11444
+ createVNode(_component_el_select, {
11445
+ modelValue: item.condition,
11446
+ "onUpdate:modelValue": ($event) => item.condition = $event,
11447
+ class: normalizeClass(unref(createBEMName)("operate")),
11448
+ placeholder: "\u7B5B\u9009\u7C7B\u578B"
11449
+ }, {
11450
+ default: withCtx(() => [
11451
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(compareOptions$1)[item.filterType], (opt) => {
11452
+ return openBlock(), createBlock(_component_el_option, {
11453
+ key: opt.label + opt.value,
11454
+ label: opt.label,
11455
+ value: opt.value
11456
+ }, null, 8, ["label", "value"]);
11457
+ }), 128))
11458
+ ]),
11459
+ _: 2
11460
+ }, 1032, ["modelValue", "onUpdate:modelValue", "class"]),
11461
+ createElementVNode("div", {
11462
+ class: normalizeClass(unref(createBEMName)("input"))
11463
+ }, [
11464
+ createVNode(_component_el_input, {
11465
+ modelValue: item.value,
11466
+ "onUpdate:modelValue": ($event) => item.value = $event,
11467
+ placeholder: "\u8BF7\u8F93\u5165",
11468
+ clearable: ""
11469
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])
11470
+ ], 2)
11471
+ ], 64)) : item.filterType === unref(FilterItemTypeEnum$1).\u6570\u5B57 ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
11472
+ createVNode(_component_el_select, {
11473
+ modelValue: item.condition,
11474
+ "onUpdate:modelValue": ($event) => item.condition = $event,
11475
+ class: normalizeClass(unref(createBEMName)("operate")),
11476
+ placeholder: "\u7B5B\u9009\u7C7B\u578B"
11477
+ }, {
11478
+ default: withCtx(() => [
11479
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(compareOptions$1)[item.filterType], (opt, iindex) => {
11480
+ return openBlock(), createBlock(_component_el_option, {
11481
+ key: opt.label + opt.value,
11482
+ label: opt.label,
11483
+ value: opt.value
11484
+ }, null, 8, ["label", "value"]);
11485
+ }), 128))
11486
+ ]),
11487
+ _: 2
11488
+ }, 1032, ["modelValue", "onUpdate:modelValue", "class"]),
11489
+ createElementVNode("div", {
11490
+ class: normalizeClass(unref(createBEMName)("input"))
11491
+ }, [
11492
+ createVNode(_component_el_input_number, {
11493
+ modelValue: item.value,
11494
+ "onUpdate:modelValue": ($event) => item.value = $event,
11495
+ "controls-position": "right",
11496
+ clearable: "",
11497
+ placeholder: "\u8BF7\u8F93\u5165"
11498
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])
11499
+ ], 2)
11500
+ ], 64)) : item.filterType === unref(FilterItemTypeEnum$1).\u65E5\u671F ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
11501
+ createVNode(_component_el_select, {
11502
+ modelValue: item.condition,
11503
+ "onUpdate:modelValue": ($event) => item.condition = $event,
11504
+ class: normalizeClass(unref(createBEMName)("operate")),
11505
+ placeholder: "\u7B5B\u9009\u7C7B\u578B"
11506
+ }, {
11507
+ default: withCtx(() => [
11508
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(compareOptions$1)[item.filterType], (opt, iindex) => {
11509
+ return openBlock(), createBlock(_component_el_option, {
11510
+ key: opt.label + opt.value,
11511
+ label: opt.label,
11512
+ value: opt.value
11513
+ }, null, 8, ["label", "value"]);
11514
+ }), 128))
11515
+ ]),
11516
+ _: 2
11517
+ }, 1032, ["modelValue", "onUpdate:modelValue", "class"]),
11518
+ createElementVNode("div", {
11519
+ class: normalizeClass(unref(createBEMName)("input"))
11520
+ }, [
11521
+ createVNode(_component_el_date_picker, {
11522
+ modelValue: item.value,
11523
+ "onUpdate:modelValue": ($event) => item.value = $event,
11524
+ placeholder: "\u8BF7\u9009\u62E9\u65E5\u671F",
11525
+ "value-format": "YYYY-MM-DD",
11526
+ clearable: ""
11527
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])
11528
+ ], 2)
11529
+ ], 64)) : item.filterType === unref(FilterItemTypeEnum$1).\u5E03\u5C14\u503C ? (openBlock(), createElementBlock("div", {
11530
+ key: 3,
11531
+ class: normalizeClass(unref(createBEMName)("input"))
11532
+ }, [
11533
+ createVNode(_component_el_select, {
11534
+ modelValue: item.value,
11535
+ "onUpdate:modelValue": ($event) => item.value = $event,
11536
+ placeholder: "\u8BF7\u9009\u62E9"
11537
+ }, {
11538
+ default: withCtx(() => [
11539
+ createVNode(_component_el_option, {
11540
+ label: "\u662F",
11541
+ value: true
11542
+ }),
11543
+ createVNode(_component_el_option, {
11544
+ label: "\u5426",
11545
+ value: false
11546
+ })
11547
+ ]),
11548
+ _: 2
11549
+ }, 1032, ["modelValue", "onUpdate:modelValue"])
11550
+ ], 2)) : item.filterType === unref(FilterItemTypeEnum$1).\u5355\u9009\u503C ? (openBlock(), createElementBlock("div", {
11551
+ key: 4,
11552
+ class: normalizeClass(unref(createBEMName)("input"))
11553
+ }, [
11554
+ createVNode(_component_el_select, {
11555
+ modelValue: item.value,
11556
+ "onUpdate:modelValue": ($event) => item.value = $event,
11557
+ filterable: "",
11558
+ placeholder: "\u8BF7\u9009\u62E9"
11559
+ }, {
11560
+ default: withCtx(() => [
11561
+ (openBlock(true), createElementBlock(Fragment, null, renderList(item.filterOptions, (opt, index22) => {
11562
+ return openBlock(), createBlock(_component_el_option, {
11563
+ key: index22,
11564
+ style: { "width": "100%" },
11565
+ label: opt.label,
11566
+ value: opt.value
11567
+ }, null, 8, ["label", "value"]);
11568
+ }), 128))
11569
+ ]),
11570
+ _: 2
11571
+ }, 1032, ["modelValue", "onUpdate:modelValue"])
11572
+ ], 2)) : item.filterType === unref(FilterItemTypeEnum$1).\u591A\u9009\u503C ? (openBlock(), createElementBlock("div", {
11573
+ key: 5,
11574
+ class: normalizeClass(unref(createBEMName)("input"))
11575
+ }, [
11576
+ createVNode(_component_el_select, {
11577
+ modelValue: item.value,
11578
+ "onUpdate:modelValue": ($event) => item.value = $event,
11579
+ multiple: "",
11580
+ filterable: "",
11581
+ placeholder: "\u8BF7\u9009\u62E9"
11582
+ }, {
11583
+ default: withCtx(() => [
11584
+ (openBlock(true), createElementBlock(Fragment, null, renderList(item.filterOptions, (opt, index22) => {
11585
+ return openBlock(), createBlock(_component_el_option, {
11586
+ key: index22,
11587
+ style: { "width": "100%" },
11588
+ label: opt.label,
11589
+ value: opt.value
11590
+ }, null, 8, ["label", "value"]);
11591
+ }), 128))
11592
+ ]),
11593
+ _: 2
11594
+ }, 1032, ["modelValue", "onUpdate:modelValue"])
11595
+ ], 2)) : createCommentVNode("", true),
11596
+ createVNode(_component_el_icon, {
11597
+ size: 18,
11598
+ class: normalizeClass(unref(createBEMName)("remove-icon")),
11599
+ title: "\u79FB\u9664\u8BE5\u9879",
11600
+ onClick: ($event) => handleRemoveItem(index2)
11601
+ }, {
11602
+ default: withCtx(() => [
11603
+ createVNode(unref(remove))
11604
+ ]),
11605
+ _: 2
11606
+ }, 1032, ["class", "onClick"])
11607
+ ], 2);
11608
+ }), 128))
11609
+ ], 2),
11610
+ createElementVNode("div", {
11611
+ class: normalizeClass(unref(createBEMName)("actions"))
11612
+ }, [
11613
+ createVNode(_component_el_button, {
11614
+ type: "primary",
11615
+ link: "",
11616
+ icon: unref(circlePlus),
11617
+ onClick: handleAddItem
11618
+ }, {
11619
+ default: withCtx(() => [
11620
+ createTextVNode("\u6DFB\u52A0\u7B5B\u9009\u6761\u4EF6")
11621
+ ]),
11622
+ _: 1
11623
+ }, 8, ["icon"]),
11624
+ createElementVNode("div", null, [
11625
+ createVNode(_component_el_button, { onClick: handleClear }, {
11626
+ default: withCtx(() => [
11627
+ createTextVNode("\u6E05\u7A7A\u503C")
11628
+ ]),
11629
+ _: 1
11630
+ }),
11631
+ createVNode(_component_el_button, {
11632
+ type: "primary",
11633
+ onClick: handleScreen
11634
+ }, {
11635
+ default: withCtx(() => [
11636
+ createTextVNode("\u7B5B\u9009")
11637
+ ]),
11638
+ _: 1
11639
+ })
11640
+ ])
11641
+ ], 2)
11642
+ ], 2)
11643
+ ]),
11644
+ _: 1
11645
+ }, 512);
11646
+ };
11647
+ }
11648
+ });
11649
+ var ColumnFilterTools = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-497856a9"]]);
11247
11650
  var index_vue_vue_type_style_index_0_scoped_true_lang$1 = "";
11248
11651
  const _hoisted_1$3 = { class: "table-toolbox" };
11249
11652
  const _hoisted_2$2 = ["onClick"];
@@ -11283,10 +11686,17 @@ const _sfc_main$5 = defineComponent({
11283
11686
  event: "show-column-tool",
11284
11687
  desc: "",
11285
11688
  bg: false
11689
+ },
11690
+ filter: {
11691
+ icon: filter,
11692
+ text: "\u7B5B\u9009",
11693
+ event: "filter",
11694
+ desc: "",
11695
+ bg: false
11286
11696
  }
11287
11697
  };
11288
11698
  const showToolbox = computed(() => {
11289
- const _innerTools = props.toolbox ? props.toolbox.map((toolKey) => innerTools[toolKey]).map((item) => {
11699
+ const _innerTools = props.toolbox ? props.toolbox.map((toolKey) => innerTools[toolKey]).filter((a) => a).map((item) => {
11290
11700
  var _a, _b;
11291
11701
  let desc = "";
11292
11702
  let bg = false;
@@ -11295,6 +11705,11 @@ const _sfc_main$5 = defineComponent({
11295
11705
  bg = props.tableManager.hiddeenFieldCount > 0;
11296
11706
  } else if (item.event === "fullscreen") {
11297
11707
  bg = (_b = (_a = props.tableManager) == null ? void 0 : _a.manager) == null ? void 0 : _b.isTableFullscreen;
11708
+ } else if (item.event === "filter" && props.tableManager) {
11709
+ if (props.tableManager.columnParamsList.length) {
11710
+ desc = `(${props.tableManager.columnParamsList.length})`;
11711
+ bg = true;
11712
+ }
11298
11713
  }
11299
11714
  return {
11300
11715
  ...item,
@@ -11361,7 +11776,7 @@ const _sfc_main$5 = defineComponent({
11361
11776
  };
11362
11777
  }
11363
11778
  });
11364
- var TableToolsbox = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-67a33bbc"]]);
11779
+ var TableToolsbox = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-99e15350"]]);
11365
11780
  function patchConfig(config, patches) {
11366
11781
  return patches.reduce((memoConfig, patchFn) => {
11367
11782
  return patchFn.call(this, memoConfig);
@@ -11850,7 +12265,11 @@ const _sfc_main$4 = defineComponent({
11850
12265
  manager.isTableFullscreen = isTableFullscreen.value;
11851
12266
  };
11852
12267
  const handleShowColumnTool = (item, e) => {
11853
- pageModelTableRef.value.showSimplePopover(e.currentTarget);
12268
+ pageModelTableRef.value.showColumnToolSimplePopover(e.currentTarget);
12269
+ };
12270
+ const columnFilterToolsRef = ref();
12271
+ const handleShowFilter = (item, e) => {
12272
+ columnFilterToolsRef.value.showPopover(e.currentTarget);
11854
12273
  };
11855
12274
  const handleToolboxCustomEvent = (eventName, item, event) => {
11856
12275
  switch (eventName) {
@@ -11863,11 +12282,17 @@ const _sfc_main$4 = defineComponent({
11863
12282
  case "show-column-tool":
11864
12283
  handleShowColumnTool(item, event);
11865
12284
  break;
12285
+ case "filter":
12286
+ handleShowFilter(item, event);
12287
+ break;
11866
12288
  default:
11867
12289
  emitCustomEvent(eventName);
11868
12290
  break;
11869
12291
  }
11870
12292
  };
12293
+ const handleColumnToolsFilter = () => {
12294
+ pageModelTableRef.value.handleColumnScreen();
12295
+ };
11871
12296
  __expose({
11872
12297
  manager,
11873
12298
  doTableLayout,
@@ -11900,6 +12325,7 @@ const _sfc_main$4 = defineComponent({
11900
12325
  setFormTabsActiveName
11901
12326
  });
11902
12327
  return (_ctx, _cache) => {
12328
+ var _a, _b;
11903
12329
  const _component_el_scrollbar = resolveComponent("el-scrollbar");
11904
12330
  return openBlock(), createElementBlock("div", {
11905
12331
  class: normalizeClass([
@@ -11922,7 +12348,7 @@ const _sfc_main$4 = defineComponent({
11922
12348
  key: 0,
11923
12349
  class: normalizeClass(unref(createBEMName)("top-tabs"))
11924
12350
  }, [
11925
- hasTabs.value ? (openBlock(), createBlock(_sfc_main$Y, {
12351
+ hasTabs.value ? (openBlock(), createBlock(_sfc_main$Z, {
11926
12352
  key: 0,
11927
12353
  tabs: uConfig.value.tabs,
11928
12354
  manager,
@@ -11938,7 +12364,7 @@ const _sfc_main$4 = defineComponent({
11938
12364
  key: 1,
11939
12365
  class: normalizeClass(unref(createBEMName)("search"))
11940
12366
  }, [
11941
- createVNode(_sfc_main$x, {
12367
+ createVNode(_sfc_main$y, {
11942
12368
  ref_key: "searchFormRef",
11943
12369
  ref: searchFormRef,
11944
12370
  manager
@@ -11990,7 +12416,7 @@ const _sfc_main$4 = defineComponent({
11990
12416
  createElementVNode("div", null, [
11991
12417
  renderSlot(_ctx.$slots, "selectable-right")
11992
12418
  ]),
11993
- hasFilterTools.value ? (openBlock(), createBlock(_sfc_main$6, {
12419
+ hasFilterTools.value ? (openBlock(), createBlock(_sfc_main$7, {
11994
12420
  key: 0,
11995
12421
  manager,
11996
12422
  onScreen: handleInnerScreen
@@ -12006,7 +12432,7 @@ const _sfc_main$4 = defineComponent({
12006
12432
  createElementVNode("div", {
12007
12433
  class: normalizeClass(unref(createBEMName)("main"))
12008
12434
  }, [
12009
- createVNode(_sfc_main$k, {
12435
+ createVNode(_sfc_main$l, {
12010
12436
  ref_key: "pageModelTableRef",
12011
12437
  ref: pageModelTableRef,
12012
12438
  manager,
@@ -12026,7 +12452,7 @@ const _sfc_main$4 = defineComponent({
12026
12452
  }, 8, ["manager"])
12027
12453
  ], 2)
12028
12454
  ], 2),
12029
- uConfig.value.hasForm && Boolean(uConfig.value.form) ? (openBlock(), createBlock(_sfc_main$8, {
12455
+ uConfig.value.hasForm && Boolean(uConfig.value.form) ? (openBlock(), createBlock(_sfc_main$9, {
12030
12456
  key: 1,
12031
12457
  form: uConfig.value.form,
12032
12458
  formManager: manager.formManager,
@@ -12047,13 +12473,20 @@ const _sfc_main$4 = defineComponent({
12047
12473
  ]),
12048
12474
  _: 3
12049
12475
  }, 8, ["form", "formManager"])) : createCommentVNode("", true),
12050
- unref(isRenderColumnToolsSetting) ? (openBlock(), createBlock(_sfc_main$e, {
12476
+ unref(isRenderColumnToolsSetting) ? (openBlock(), createBlock(_sfc_main$f, {
12051
12477
  key: 2,
12052
12478
  ref_key: "columnToolsSettingRef",
12053
12479
  ref: columnToolsSettingRef,
12054
12480
  onClosed: unref(onColumnToolsSettingClosed),
12055
12481
  onSubmit: handleFormColumnToolsSubmit
12056
- }, null, 8, ["onClosed"])) : createCommentVNode("", true)
12482
+ }, null, 8, ["onClosed"])) : createCommentVNode("", true),
12483
+ ((_b = (_a = _ctx.config.table) == null ? void 0 : _a.toolbox) == null ? void 0 : _b.includes("filter")) ? (openBlock(), createBlock(ColumnFilterTools, {
12484
+ key: 3,
12485
+ ref_key: "columnFilterToolsRef",
12486
+ ref: columnFilterToolsRef,
12487
+ manager,
12488
+ onScreen: handleColumnToolsFilter
12489
+ }, null, 8, ["manager"])) : createCommentVNode("", true)
12057
12490
  ], 64))
12058
12491
  ], 6);
12059
12492
  };
@@ -12197,7 +12630,7 @@ const _sfc_main$2 = defineComponent({
12197
12630
  const _component_el_radio_button = resolveComponent("el-radio-button");
12198
12631
  const _component_el_radio_group = resolveComponent("el-radio-group");
12199
12632
  const _component_el_button = resolveComponent("el-button");
12200
- return openBlock(), createBlock(_sfc_main$z, {
12633
+ return openBlock(), createBlock(_sfc_main$A, {
12201
12634
  modelValue: visible.value,
12202
12635
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => visible.value = $event),
12203
12636
  title: "\u7F16\u8F91\u8868\u683C",
@@ -12240,7 +12673,7 @@ const _sfc_main$2 = defineComponent({
12240
12673
  ], 2);
12241
12674
  }), 128))
12242
12675
  ], 2),
12243
- createVNode(_sfc_main$s, {
12676
+ createVNode(_sfc_main$t, {
12244
12677
  modelValue: innerEls.value,
12245
12678
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => innerEls.value = $event),
12246
12679
  "item-key": "_key"
@@ -12404,7 +12837,7 @@ const _sfc_main$1 = defineComponent({
12404
12837
  createElementVNode("div", {
12405
12838
  class: normalizeClass(unref(createBEMName)("list"))
12406
12839
  }, [
12407
- createVNode(_sfc_main$s, {
12840
+ createVNode(_sfc_main$t, {
12408
12841
  modelValue: innerEls.value,
12409
12842
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => innerEls.value = $event),
12410
12843
  class: normalizeClass(unref(BEMSpace)),
@@ -12867,7 +13300,7 @@ const _sfc_main = defineComponent({
12867
13300
  }, {
12868
13301
  default: withCtx(() => [
12869
13302
  _ctx.alwaysShowEdit || isCurrentRowFocus($index) ? (openBlock(), createElementBlock("div", _hoisted_5, [
12870
- createVNode(_sfc_main$w, {
13303
+ createVNode(_sfc_main$x, {
12871
13304
  "render-fn": column.renderFn,
12872
13305
  pure: "",
12873
13306
  row,
@@ -12921,7 +13354,7 @@ const _sfc_main = defineComponent({
12921
13354
  }, 16, ["data"]),
12922
13355
  bottomActions.value.length || hasSlots.value ? (openBlock(), createElementBlock("div", _hoisted_7, [
12923
13356
  renderSlot(_ctx.$slots, "action-prefix", {}, void 0, true),
12924
- createVNode(_sfc_main$C, {
13357
+ createVNode(_sfc_main$D, {
12925
13358
  els: bottomActions.value,
12926
13359
  onCustom: handleBottomActionsEvent
12927
13360
  }, null, 8, ["els"]),
@@ -12937,7 +13370,7 @@ const defineEditableTable = function(config) {
12937
13370
  };
12938
13371
  var iconfont = "";
12939
13372
  const name = "@juzhenfe/page-model";
12940
- const version = "3.14.2";
13373
+ const version = "3.14.3";
12941
13374
  const types = "dist/main.d.ts";
12942
13375
  const main = "dist/index.umd.js";
12943
13376
  const keywords = [
@@ -13017,4 +13450,4 @@ const ModelComponent = {
13017
13450
  saveTableColumns(content);
13018
13451
  }
13019
13452
  };
13020
- export { _sfc_main$C as ButtonsRenderer, _sfc_main$s as DraggableList, index as EditableTable, _sfc_main$z as FormDialog, _sfc_main$a as FormDrawer, PageModelForm, _sfc_main$w as TableCellRenderer, _sfc_main$r as TableColumnSetting, columnTools, ModelComponent as default, defineConfig, defineEditableTable, defineForm };
13453
+ export { _sfc_main$D as ButtonsRenderer, _sfc_main$t as DraggableList, index as EditableTable, _sfc_main$A as FormDialog, _sfc_main$b as FormDrawer, PageModelForm, _sfc_main$x as TableCellRenderer, _sfc_main$s as TableColumnSetting, columnTools, ModelComponent as default, defineConfig, defineEditableTable, defineForm };