@aplus-frontend/ui 0.1.27 → 0.1.29

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.
Files changed (61) hide show
  1. package/es/src/ap-download/ap-download.vue.d.ts +6 -2
  2. package/es/src/ap-download/ap-download.vue.mjs +48 -28
  3. package/es/src/ap-download/interface.d.ts +3 -2
  4. package/es/src/ap-download/style/ap-download.css +3 -0
  5. package/es/src/ap-field/date-range/index.vue.mjs +154 -109
  6. package/es/src/ap-field/interface.d.ts +4 -0
  7. package/es/src/ap-field/select/index.vue.mjs +67 -63
  8. package/es/src/ap-form/style/ap-form-item.css +2 -0
  9. package/es/src/ap-table/components/setting/modal/index.vue2.mjs +72 -97
  10. package/es/src/ap-table/components/setting/select-group/index.vue2.mjs +37 -33
  11. package/es/src/ap-table/components/setting/sorter/index.vue2.mjs +91 -87
  12. package/es/src/ap-table/components/setting/utils.d.ts +7 -1
  13. package/es/src/ap-table/components/setting/utils.mjs +37 -22
  14. package/es/src/ap-table/constants.d.ts +12 -0
  15. package/es/src/ap-table/hooks/use-table-column-state.d.ts +6 -2
  16. package/es/src/ap-table/hooks/use-table-column-state.mjs +101 -33
  17. package/es/src/ap-table/interface.d.ts +8 -1
  18. package/es/src/business/ap-attachment/ApAttachment.mjs +79 -59
  19. package/es/src/business/ap-attachment/interface.d.ts +1 -1
  20. package/es/src/business/ap-attachment/style.css +4 -0
  21. package/es/src/business/ap-input-radio/interface.d.ts +1 -1
  22. package/es/src/business/index.d.ts +0 -2
  23. package/es/src/editable-table/form-item.vue.d.ts +1 -0
  24. package/es/src/editable-table/form-item.vue.mjs +63 -59
  25. package/es/src/editable-table/index.vue.d.ts +1 -0
  26. package/es/src/editable-table/index.vue.mjs +77 -72
  27. package/es/src/editable-table/interface.d.ts +6 -0
  28. package/es/src/theme/ap-attachment/ap-attachment.css +4 -0
  29. package/es/src/theme/ap-download/ap-download.css +3 -0
  30. package/es/src/theme/ap-form/ap-form-item.css +2 -0
  31. package/lib/src/ap-download/ap-download.vue.d.ts +6 -2
  32. package/lib/src/ap-download/ap-download.vue.js +1 -1
  33. package/lib/src/ap-download/interface.d.ts +3 -2
  34. package/lib/src/ap-download/style/ap-download.css +3 -0
  35. package/lib/src/ap-field/date-range/index.vue.js +1 -1
  36. package/lib/src/ap-field/interface.d.ts +4 -0
  37. package/lib/src/ap-field/select/index.vue.js +1 -1
  38. package/lib/src/ap-form/style/ap-form-item.css +2 -0
  39. package/lib/src/ap-table/components/setting/modal/index.vue2.js +1 -1
  40. package/lib/src/ap-table/components/setting/select-group/index.vue2.js +1 -1
  41. package/lib/src/ap-table/components/setting/sorter/index.vue2.js +1 -1
  42. package/lib/src/ap-table/components/setting/utils.d.ts +7 -1
  43. package/lib/src/ap-table/components/setting/utils.js +1 -1
  44. package/lib/src/ap-table/constants.d.ts +12 -0
  45. package/lib/src/ap-table/hooks/use-table-column-state.d.ts +6 -2
  46. package/lib/src/ap-table/hooks/use-table-column-state.js +1 -1
  47. package/lib/src/ap-table/interface.d.ts +8 -1
  48. package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
  49. package/lib/src/business/ap-attachment/interface.d.ts +1 -1
  50. package/lib/src/business/ap-attachment/style.css +4 -0
  51. package/lib/src/business/ap-input-radio/interface.d.ts +1 -1
  52. package/lib/src/business/index.d.ts +0 -2
  53. package/lib/src/editable-table/form-item.vue.d.ts +1 -0
  54. package/lib/src/editable-table/form-item.vue.js +1 -1
  55. package/lib/src/editable-table/index.vue.d.ts +1 -0
  56. package/lib/src/editable-table/index.vue.js +1 -1
  57. package/lib/src/editable-table/interface.d.ts +6 -0
  58. package/lib/src/theme/ap-attachment/ap-attachment.css +4 -0
  59. package/lib/src/theme/ap-download/ap-download.css +3 -0
  60. package/lib/src/theme/ap-form/ap-form-item.css +2 -0
  61. package/package.json +1 -1
@@ -1,11 +1,11 @@
1
- import { defineComponent as k, ref as f, onMounted as q, computed as m, unref as u, openBlock as v, createElementBlock as A, toDisplayString as M, createBlock as T, mergeProps as _, createSlots as R, renderList as z, withCtx as h, renderSlot as D, normalizeProps as U, guardReactiveProps as L, createVNode as K } from "vue";
2
- import { debounce as H, isFunction as y, isArray as $, isNil as j, omit as E } from "lodash-unified";
3
- import { Select as W, Spin as G } from "ant-design-vue";
1
+ import { defineComponent as T, ref as p, onMounted as _, computed as y, unref as u, openBlock as w, createElementBlock as R, toDisplayString as z, createBlock as D, mergeProps as U, createSlots as L, renderList as K, withCtx as S, renderSlot as H, normalizeProps as $, guardReactiveProps as j, createVNode as E } from "vue";
2
+ import { debounce as W, isFunction as g, isArray as G, isNil as J, omit as Q } from "lodash-unified";
3
+ import { Select as X, Spin as Y } from "ant-design-vue";
4
4
  import "../../hooks/index.mjs";
5
- import { omitUndefined as J } from "../../utils/index.mjs";
6
- import { useDefaultPlaceholder as Q } from "../hooks/use-default-placeholder.mjs";
7
- import { useControllableValue as X } from "../../hooks/useControllableValue.mjs";
8
- const Y = { key: 0 }, re = /* @__PURE__ */ k({
5
+ import { omitUndefined as Z } from "../../utils/index.mjs";
6
+ import { useDefaultPlaceholder as ee } from "../hooks/use-default-placeholder.mjs";
7
+ import { useControllableValue as oe } from "../../hooks/useControllableValue.mjs";
8
+ const te = { key: 0 }, se = /* @__PURE__ */ T({
9
9
  name: "ApFieldSelect",
10
10
  __name: "index",
11
11
  props: {
@@ -93,27 +93,27 @@ const Y = { key: 0 }, re = /* @__PURE__ */ k({
93
93
  lazy: { type: Boolean, default: !1 }
94
94
  },
95
95
  emits: ["update:value"],
96
- setup(w, { expose: S, emit: g }) {
96
+ setup(B, { expose: F, emit: b }) {
97
97
  let n = 0;
98
- const B = H((o) => {
99
- if (!y(e.request))
98
+ const C = W((o) => {
99
+ if (!g(e.request))
100
100
  return;
101
101
  n += 1;
102
102
  const t = n;
103
- i.value = [], a.value = !0, e.request(o).then((l) => {
103
+ i.value = [], r.value = !0, e.request(o).then((l) => {
104
104
  n === t && (i.value = l);
105
105
  }).finally(() => {
106
- a.value = !1;
106
+ r.value = !1;
107
107
  });
108
- }, 300), e = w, F = (o, t) => {
109
- var r;
110
- const l = ((r = e.fieldNames) == null ? void 0 : r.label) || "label";
108
+ }, 300), e = B, N = (o, t) => {
109
+ var a;
110
+ const l = ((a = e.fieldNames) == null ? void 0 : a.label) || "label";
111
111
  return typeof (t == null ? void 0 : t[l]) == "string" && t[l].indexOf(o) > -1;
112
- }, i = f((e == null ? void 0 : e.options) || []), d = f(), a = f((e == null ? void 0 : e.loading) || !1), C = g;
113
- async function s(o = !0) {
114
- if (!y(e.request))
112
+ }, i = p((e == null ? void 0 : e.options) || []), s = p(), r = p((e == null ? void 0 : e.loading) || !1), x = b;
113
+ async function c(o = !0) {
114
+ if (!g(e.request))
115
115
  return;
116
- a.value = !0, n += 1;
116
+ r.value = !0, n += 1;
117
117
  const t = n;
118
118
  try {
119
119
  o && (i.value = []);
@@ -122,47 +122,51 @@ const Y = { key: 0 }, re = /* @__PURE__ */ k({
122
122
  return;
123
123
  i.value = l;
124
124
  } finally {
125
- a.value = !1;
125
+ r.value = !1;
126
126
  }
127
127
  }
128
- function b(o) {
128
+ function I(o) {
129
129
  var t;
130
- (t = e.onFocus) == null || t.call(e, o), e.refetchOnFocus && n > 0 && !a.value && s(!0);
130
+ (t = e.onFocus) == null || t.call(e, o), e.refetchOnFocus && n > 0 && !r.value && c(!0);
131
131
  }
132
- q(() => {
132
+ _(() => {
133
133
  if (e.lazy) {
134
134
  n += 1;
135
135
  return;
136
136
  }
137
- s();
137
+ c();
138
138
  });
139
- const { value: p, updateValue: x } = X(e, C), I = Q("Select", e), O = m(() => {
140
- const o = u(p);
139
+ const { value: m, updateValue: O } = oe(e, x), P = ee("Select", e), V = y(() => {
140
+ var d, v;
141
+ const o = u(m);
141
142
  if (!o)
142
143
  return e.emptyText;
143
- if ($(o))
144
+ const t = ((d = e.fieldNames) == null ? void 0 : d.label) || "label", l = ((v = e.fieldNames) == null ? void 0 : v.value) || "value";
145
+ if (G(o))
144
146
  return o.map(
145
- (l) => {
146
- var r;
147
- return (r = u(i).find((c) => c.value === l)) == null ? void 0 : r.label;
147
+ (f) => {
148
+ var h;
149
+ return (h = u(i).find((M) => M[l] === f)) == null ? void 0 : h[t];
148
150
  }
149
151
  ).filter(Boolean).join("、") || e.emptyText;
150
- const t = u(i).find((l) => l.value === o);
151
- return (t == null ? void 0 : t.label) || e.emptyText;
152
- }), P = m(() => {
152
+ const a = u(i).find(
153
+ (f) => f[l] === o
154
+ );
155
+ return (a == null ? void 0 : a[t]) || e.emptyText;
156
+ }), k = y(() => {
153
157
  const o = !!(e != null && e.showSearch), t = e.searchMode;
154
158
  let l = {};
155
159
  return o && (l = t === "request" ? {
156
160
  showArrow: !1,
157
161
  defaultActiveFirstOption: !1,
158
- onSearch: B,
159
- notFoundContent: a.value ? void 0 : null
162
+ onSearch: C,
163
+ notFoundContent: r.value ? void 0 : null
160
164
  } : {
161
165
  showArrow: !0,
162
- filterOption: j(e == null ? void 0 : e.filterOption) ? F : e == null ? void 0 : e.filterOption
166
+ filterOption: J(e == null ? void 0 : e.filterOption) ? N : e == null ? void 0 : e.filterOption
163
167
  }), {
164
- ...J(
165
- E(e, [
168
+ ...Z(
169
+ Q(e, [
166
170
  "mode",
167
171
  "value",
168
172
  "onUpdate:value",
@@ -172,45 +176,45 @@ const Y = { key: 0 }, re = /* @__PURE__ */ k({
172
176
  "onFocus"
173
177
  ])
174
178
  ),
175
- placeholder: u(I),
179
+ placeholder: u(P),
176
180
  ...l
177
181
  };
178
182
  });
179
- function V() {
183
+ function q() {
180
184
  var o;
181
- (o = d.value) == null || o.focus();
185
+ (o = s.value) == null || o.focus();
182
186
  }
183
- function N() {
187
+ function A() {
184
188
  var o;
185
- (o = d.value) == null || o.blur();
189
+ (o = s.value) == null || o.blur();
186
190
  }
187
- return S({
188
- focus: V,
189
- blur: N,
190
- request: s
191
- }), (o, t) => o.mode === "read" ? (v(), A("span", Y, M(O.value), 1)) : (v(), T(u(W), _({
191
+ return F({
192
+ focus: q,
193
+ blur: A,
194
+ request: c
195
+ }), (o, t) => o.mode === "read" ? (w(), R("span", te, z(V.value), 1)) : (w(), D(u(X), U({
192
196
  key: 1,
193
197
  "allow-clear": "",
194
198
  ref_key: "selectRef",
195
- ref: d
196
- }, P.value, {
199
+ ref: s
200
+ }, k.value, {
197
201
  mode: o.multiple ? "multiple" : void 0,
198
- value: u(p),
199
- "onUpdate:value": u(x),
202
+ value: u(m),
203
+ "onUpdate:value": u(O),
200
204
  options: i.value,
201
- loading: a.value,
202
- onFocus: b
203
- }), R({ _: 2 }, [
204
- z(o.$slots, (l, r) => ({
205
- name: r,
206
- fn: h((c) => [
207
- D(o.$slots, r, U(L(c || {})))
205
+ loading: r.value,
206
+ onFocus: I
207
+ }), L({ _: 2 }, [
208
+ K(o.$slots, (l, a) => ({
209
+ name: a,
210
+ fn: S((d) => [
211
+ H(o.$slots, a, $(j(d || {})))
208
212
  ])
209
213
  })),
210
- a.value ? {
214
+ r.value ? {
211
215
  name: "notFoundContent",
212
- fn: h(() => [
213
- K(u(G), { size: "small" })
216
+ fn: S(() => [
217
+ E(u(Y), { size: "small" })
214
218
  ]),
215
219
  key: "0"
216
220
  } : void 0
@@ -218,5 +222,5 @@ const Y = { key: 0 }, re = /* @__PURE__ */ k({
218
222
  }
219
223
  });
220
224
  export {
221
- re as default
225
+ se as default
222
226
  };
@@ -18,6 +18,8 @@
18
18
  }
19
19
  .aplus-ap-form-item--bordered .ant-select-selector {
20
20
  border-width: 0 !important;
21
+ }
22
+ .aplus-ap-form-item--bordered .ant-select-single .ant-select-selector {
21
23
  height: 30px !important;
22
24
  }
23
25
  .aplus-ap-form-item--bordered .ant-select-arrow,
@@ -1,152 +1,127 @@
1
- import { defineComponent as M, ref as w, unref as e, useSlots as q, cloneVNode as J, watchEffect as K, openBlock as z, createElementBlock as P, Fragment as Q, createBlock as W, resolveDynamicComponent as X, createCommentVNode as Y, createVNode as o, withCtx as u, createElementVNode as r, normalizeClass as c, toDisplayString as d, createTextVNode as h, isRef as Z } from "vue";
2
- import { Modal as ee, Button as te, RadioGroup as le, RadioButton as R, Divider as D } from "ant-design-vue";
3
- import { getSingleVNode as ne } from "../../../../utils/slot.mjs";
4
- import { useInjectApTable as oe } from "../../../context.mjs";
1
+ import { defineComponent as $, ref as x, unref as e, useSlots as j, cloneVNode as F, openBlock as y, createElementBlock as G, Fragment as H, createBlock as L, resolveDynamicComponent as M, createCommentVNode as q, createVNode as l, withCtx as i, createElementVNode as s, normalizeClass as r, toDisplayString as m, createTextVNode as v, isRef as J } from "vue";
2
+ import { Modal as K, Button as P, RadioGroup as Q, RadioButton as _, Divider as h } from "ant-design-vue";
3
+ import { getSingleVNode as W } from "../../../../utils/slot.mjs";
4
+ import { useInjectApTable as X } from "../../../context.mjs";
5
5
  import "../tree-select/index.vue.mjs";
6
- import { useTableColumnState as ae } from "../../../hooks/use-table-column-state.mjs";
7
- import { isBoolean as ie } from "lodash-unified";
6
+ import { useTableColumnState as Y } from "../../../hooks/use-table-column-state.mjs";
8
7
  import "../../../../config-provider/index.mjs";
9
8
  import "../sorter/index.vue.mjs";
10
9
  import "../../style/setting/modal.css";
11
- import se, { customCloneColumnStates as k } from "../utils.mjs";
12
- import { useLocale as re } from "../../../../config-provider/hooks/use-locale.mjs";
13
- import { useNamespace as ue } from "../../../../config-provider/hooks/use-namespace.mjs";
14
- import ce from "../tree-select/index.vue2.mjs";
15
- import me from "../sorter/index.vue2.mjs";
16
- const pe = {
10
+ import Z, { customCloneColumnStates as B } from "../utils.mjs";
11
+ import { useLocale as ee } from "../../../../config-provider/hooks/use-locale.mjs";
12
+ import { useNamespace as te } from "../../../../config-provider/hooks/use-namespace.mjs";
13
+ import le from "../tree-select/index.vue2.mjs";
14
+ import oe from "../sorter/index.vue2.mjs";
15
+ const ne = {
17
16
  style: {
18
17
  lineHeight: "22px",
19
18
  color: "#8896B0"
20
19
  }
21
- }, Ve = /* @__PURE__ */ M({
20
+ }, ke = /* @__PURE__ */ $({
22
21
  __name: "index",
23
22
  props: {
24
23
  config: {}
25
24
  },
26
- setup(E) {
27
- const m = E;
28
- let f = [];
29
- const {
30
- columnsBackup: y,
31
- size: U,
32
- updateSize: g,
33
- updateColumns: v
34
- } = oe(), C = w(e(U)), {
35
- columnState: i,
36
- setColumnState: b,
37
- isAllSelected: O,
38
- toggleSelectAll: $
39
- } = ae([]), {
40
- t: s
41
- } = re(), {
42
- b: x,
43
- be: _
44
- } = ue("ap-column-setting"), p = w(!1), j = q(), B = ne(j.trigger), T = B ? J(B, {
25
+ setup(N) {
26
+ const C = N, {
27
+ columnsBackup: T,
28
+ size: A,
29
+ updateSize: c,
30
+ updateColumns: d
31
+ } = X(), f = x(e(A)), {
32
+ columnState: n,
33
+ setColumnState: V,
34
+ isAllSelected: z,
35
+ toggleSelectAll: R,
36
+ columnStateBackup: w,
37
+ setColumnStateBackup: D,
38
+ cacheColumnStateIfNeeded: U
39
+ } = Y(C.config, []), {
40
+ t: a
41
+ } = ee(), {
42
+ b: g,
43
+ be: S
44
+ } = te("ap-column-setting"), p = x(!1), E = j(), k = W(E.trigger), b = k ? F(k, {
45
45
  onClick: () => {
46
46
  p.value = !0;
47
47
  }
48
48
  }) : null;
49
- function F() {
50
- var l;
51
- const n = ((l = m == null ? void 0 : m.config) == null ? void 0 : l.defaultValue) || {};
52
- function t(I, N) {
53
- var A;
54
- const V = [];
55
- for (const a of I) {
56
- const L = n == null ? void 0 : n[a.key], S = {
57
- key: a.key,
58
- label: a.title,
59
- show: !0,
60
- fixed: N ? N.fixed : ie(a.fixed) ? a.fixed ? "left" : void 0 : a.fixed,
61
- disabled: !1,
62
- ...L
63
- };
64
- S.children = (A = a.children) != null && A.length ? t(a.children, S) : void 0, V.push(S);
65
- }
66
- return V;
67
- }
68
- return t(e(y) || []);
69
- }
70
- function G() {
71
- b(k(f));
49
+ function I() {
50
+ V(B(w));
72
51
  }
73
- K(() => {
74
- const n = F();
75
- b(n), f = k(n);
76
- });
77
- function H() {
78
- var t, l;
79
- v == null || v(se(e(y), e(i))), g == null || g(e(C)), p.value = !1;
80
- const n = k(i.value);
81
- f = n, (l = (t = m.config) == null ? void 0 : t.onChange) == null || l.call(t, n);
52
+ function O() {
53
+ var t, o;
54
+ d == null || d(Z(e(T), e(n))), c == null || c(e(f)), p.value = !1;
55
+ const u = B(n.value);
56
+ D(u), U(u), (o = (t = C.config) == null ? void 0 : t.onChange) == null || o.call(t, u);
82
57
  }
83
- return (n, t) => (z(), P(Q, null, [e(T) ? (z(), W(X(e(T)), {
58
+ return (u, t) => (y(), G(H, null, [e(b) ? (y(), L(M(e(b)), {
84
59
  key: 0
85
- })) : Y("", !0), o(e(ee), {
86
- title: e(s)("ap.apTable.setting.title"),
60
+ })) : q("", !0), l(e(K), {
61
+ title: e(a)("ap.apTable.setting.title"),
87
62
  open: p.value,
88
- "onUpdate:open": t[2] || (t[2] = (l) => p.value = l),
63
+ "onUpdate:open": t[2] || (t[2] = (o) => p.value = o),
89
64
  width: 900,
90
- onOk: H,
65
+ onOk: O,
91
66
  "body-style": {
92
67
  padding: "0px !important",
93
68
  height: "450px"
94
69
  }
95
70
  }, {
96
- default: u(() => [r("div", {
97
- class: c(e(x)("wrapper"))
98
- }, [r("div", {
99
- class: c(e(x)("left"))
100
- }, [r("div", {
101
- class: c(e(_)("left", "header"))
102
- }, [r("div", null, [r("span", pe, d(e(s)("ap.apTable.setting.selectAllTip")), 1), o(e(te), {
71
+ default: i(() => [s("div", {
72
+ class: r(e(g)("wrapper"))
73
+ }, [s("div", {
74
+ class: r(e(g)("left"))
75
+ }, [s("div", {
76
+ class: r(e(S)("left", "header"))
77
+ }, [s("div", null, [s("span", ne, m(e(a)("ap.apTable.setting.selectAllTip")), 1), l(e(P), {
103
78
  type: "link",
104
79
  size: "small",
105
- onClick: e($)
80
+ onClick: e(R)
106
81
  }, {
107
- default: u(() => [h(d(e(O) ? e(s)("ap.apTable.setting.unSelectAll") : e(s)("ap.apTable.setting.selectAll")), 1)]),
82
+ default: i(() => [v(m(e(z) ? e(a)("ap.apTable.setting.unSelectAll") : e(a)("ap.apTable.setting.selectAll")), 1)]),
108
83
  _: 1
109
- }, 8, ["onClick"])]), o(e(le), {
110
- value: C.value,
111
- "onUpdate:value": t[0] || (t[0] = (l) => C.value = l)
84
+ }, 8, ["onClick"])]), l(e(Q), {
85
+ value: f.value,
86
+ "onUpdate:value": t[0] || (t[0] = (o) => f.value = o)
112
87
  }, {
113
- default: u(() => [o(e(R), {
88
+ default: i(() => [l(e(_), {
114
89
  value: "small"
115
90
  }, {
116
- default: u(() => [h(d(e(s)("ap.apTable.setting.sizeSmall")), 1)]),
91
+ default: i(() => [v(m(e(a)("ap.apTable.setting.sizeSmall")), 1)]),
117
92
  _: 1
118
- }), o(e(R), {
93
+ }), l(e(_), {
119
94
  value: "middle"
120
95
  }, {
121
- default: u(() => [h(d(e(s)("ap.apTable.setting.sizeNormal")), 1)]),
96
+ default: i(() => [v(m(e(a)("ap.apTable.setting.sizeNormal")), 1)]),
122
97
  _: 1
123
98
  })]),
124
99
  _: 1
125
- }, 8, ["value"])], 2), o(e(D), {
100
+ }, 8, ["value"])], 2), l(e(h), {
126
101
  dashed: "",
127
102
  style: {
128
103
  margin: "0px"
129
104
  }
130
- }), o(ce, {
131
- class: c(e(_)("left", "content")),
132
- value: e(i)
133
- }, null, 8, ["class", "value"])], 2), o(e(D), {
105
+ }), l(le, {
106
+ class: r(e(S)("left", "content")),
107
+ value: e(n)
108
+ }, null, 8, ["class", "value"])], 2), l(e(h), {
134
109
  type: "vertical",
135
110
  style: {
136
111
  height: "100%",
137
112
  margin: "0px"
138
113
  }
139
- }), r("div", {
140
- class: c(e(x)("right"))
141
- }, [o(me, {
142
- value: e(i),
143
- "onUpdate:value": t[1] || (t[1] = (l) => Z(i) ? i.value = l : null),
144
- onReset: G
114
+ }), s("div", {
115
+ class: r(e(g)("right"))
116
+ }, [l(oe, {
117
+ value: e(n),
118
+ "onUpdate:value": t[1] || (t[1] = (o) => J(n) ? n.value = o : null),
119
+ onReset: I
145
120
  }, null, 8, ["value"])], 2)], 2)]),
146
121
  _: 1
147
122
  }, 8, ["title", "open"])], 64));
148
123
  }
149
124
  });
150
125
  export {
151
- Ve as default
126
+ ke as default
152
127
  };
@@ -1,82 +1,86 @@
1
- import { defineComponent as N, ref as E, computed as p, unref as r, watch as P, openBlock as s, createElementBlock as f, createElementVNode as v, normalizeClass as U, createVNode as u, withCtx as i, createBlock as h, resolveDynamicComponent as k, Fragment as V, renderList as D, mergeProps as L } from "vue";
2
- import { Checkbox as w, Row as j, Col as z } from "ant-design-vue";
1
+ import { defineComponent as E, ref as P, computed as p, unref as r, watch as U, openBlock as a, createElementBlock as f, createElementVNode as v, normalizeClass as x, createVNode as u, withCtx as i, createBlock as h, resolveDynamicComponent as k, Fragment as D, renderList as L, mergeProps as j } from "vue";
2
+ import { Checkbox as w, Row as z, Col as F } from "ant-design-vue";
3
3
  import "../../style/setting/select-group.css";
4
4
  import "../../../../config-provider/index.mjs";
5
- import { useInjectApTable as F } from "../../../context.mjs";
5
+ import { useInjectApTable as I } from "../../../context.mjs";
6
6
  import { cloneLabelNode as b } from "../utils.mjs";
7
- import { useNamespace as I } from "../../../../config-provider/hooks/use-namespace.mjs";
8
- const M = /* @__PURE__ */ N({
7
+ import { useNamespace as R } from "../../../../config-provider/hooks/use-namespace.mjs";
8
+ const M = /* @__PURE__ */ E({
9
9
  __name: "index",
10
10
  props: {
11
11
  value: {}
12
12
  },
13
13
  setup(y) {
14
- const t = y, { b: C } = I("select-group"), c = E(!1), { columnsBackup: _ } = F(), m = p(() => {
14
+ const t = y, { b: C } = R("select-group"), c = P(!1), { columnsBackup: _ } = I(), m = p(() => {
15
15
  var e;
16
16
  return (e = r(_)) == null ? void 0 : e.find(
17
- (o) => {
17
+ (n) => {
18
18
  var l;
19
- return o.key === ((l = t.value) == null ? void 0 : l.key);
19
+ return n.key === ((l = t.value) == null ? void 0 : l.key);
20
20
  }
21
21
  );
22
22
  });
23
- function S(n) {
24
- const e = t.value.children.find((o) => o.key === n.key);
23
+ function S(o) {
24
+ const e = t.value.children.find((n) => n.key === o.key);
25
25
  return {
26
26
  checked: e == null ? void 0 : e.show,
27
27
  disabled: t.value.disabled || (e == null ? void 0 : e.disabled)
28
28
  };
29
29
  }
30
- function g(n) {
30
+ function g(o) {
31
31
  const e = t.value;
32
- e.children.forEach((o) => o.show = n), e.show = n, c.value = !1;
32
+ e.children.forEach((n) => n.show = o), e.show = o, c.value = !1;
33
33
  }
34
- function x(n, e) {
35
- const o = t.value, l = o.children.find((a) => a.key === n);
34
+ function A(o, e) {
35
+ const n = t.value, l = n.children.find((s) => s.key === o);
36
36
  if (!l)
37
37
  return;
38
38
  l.show = e;
39
- const d = o.children.every((a) => a.show), B = o.children.some((a) => a.show);
40
- o.show = d, c.value = B && !d;
39
+ const d = n.children.every((s) => s.show), N = n.children.some((s) => s.show);
40
+ n.show = d, c.value = N && !d;
41
41
  }
42
- const A = p(() => t.value.disabled || t.value.children.every((n) => n.disabled));
43
- return P(
42
+ const B = p(() => t.value.disabled || t.value.children.every((o) => o.disabled));
43
+ return U(
44
44
  () => t.value,
45
- (n) => {
46
- const e = n.children.every((l) => l.show), o = n.children.some((l) => l.show);
47
- c.value = o && !e;
45
+ (o) => {
46
+ const e = o.children.every((l) => l.show), n = o.children.some((l) => l.show);
47
+ c.value = n && !e, o.show !== e && (o.show = e);
48
+ },
49
+ {
50
+ deep: !0,
51
+ immediate: !0
48
52
  }
49
- ), (n, e) => {
50
- var o;
51
- return s(), f("div", null, [
53
+ ), (o, e) => {
54
+ var n;
55
+ return a(), f("div", null, [
52
56
  v("div", {
53
- class: U(r(C)("header"))
57
+ class: x(r(C)("header"))
54
58
  }, [
55
59
  u(r(w), {
56
60
  indeterminate: c.value,
57
- checked: (o = n.value) == null ? void 0 : o.show,
61
+ checked: (n = o.value) == null ? void 0 : n.show,
58
62
  "onUpdate:checked": g,
59
- disabled: A.value
63
+ disabled: B.value
60
64
  }, {
61
65
  default: i(() => [
62
- (s(), h(k(r(b)(m.value.title))))
66
+ (a(), h(k(r(b)(m.value.title))))
63
67
  ]),
64
68
  _: 1
65
69
  }, 8, ["indeterminate", "checked", "disabled"])
66
70
  ], 2),
67
71
  v("div", null, [
68
- u(r(j), null, {
72
+ u(r(z), null, {
69
73
  default: i(() => [
70
- (s(!0), f(V, null, D(m.value.children, (l) => (s(), h(r(z), {
74
+ (a(!0), f(D, null, L(m.value.children, (l) => (a(), h(r(F), {
71
75
  key: l.key,
72
76
  span: 8
73
77
  }, {
74
78
  default: i(() => [
75
- u(r(w), L({ ref_for: !0 }, S(l), {
76
- "onUpdate:checked": (d) => x(l.key, d)
79
+ u(r(w), j({ ref_for: !0 }, S(l), {
80
+ "onUpdate:checked": (d) => A(l.key, d)
77
81
  }), {
78
82
  default: i(() => [
79
- (s(), h(k(r(b)(l.title))))
83
+ (a(), h(k(r(b)(l.title))))
80
84
  ]),
81
85
  _: 2
82
86
  }, 1040, ["onUpdate:checked"])