@aplus-frontend/ui 0.1.28 → 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 (39) hide show
  1. package/es/src/ap-field/date-range/index.vue.mjs +154 -109
  2. package/es/src/ap-field/interface.d.ts +4 -0
  3. package/es/src/ap-field/select/index.vue.mjs +4 -2
  4. package/es/src/ap-form/style/ap-form-item.css +2 -0
  5. package/es/src/ap-table/components/setting/modal/index.vue2.mjs +72 -97
  6. package/es/src/ap-table/components/setting/select-group/index.vue2.mjs +37 -33
  7. package/es/src/ap-table/components/setting/sorter/index.vue2.mjs +91 -87
  8. package/es/src/ap-table/components/setting/utils.d.ts +7 -1
  9. package/es/src/ap-table/components/setting/utils.mjs +37 -22
  10. package/es/src/ap-table/constants.d.ts +12 -0
  11. package/es/src/ap-table/hooks/use-table-column-state.d.ts +6 -2
  12. package/es/src/ap-table/hooks/use-table-column-state.mjs +101 -33
  13. package/es/src/ap-table/interface.d.ts +8 -1
  14. package/es/src/editable-table/form-item.vue.d.ts +1 -0
  15. package/es/src/editable-table/form-item.vue.mjs +63 -59
  16. package/es/src/editable-table/index.vue.d.ts +1 -0
  17. package/es/src/editable-table/index.vue.mjs +77 -72
  18. package/es/src/editable-table/interface.d.ts +6 -0
  19. package/es/src/theme/ap-form/ap-form-item.css +2 -0
  20. package/lib/src/ap-field/date-range/index.vue.js +1 -1
  21. package/lib/src/ap-field/interface.d.ts +4 -0
  22. package/lib/src/ap-field/select/index.vue.js +1 -1
  23. package/lib/src/ap-form/style/ap-form-item.css +2 -0
  24. package/lib/src/ap-table/components/setting/modal/index.vue2.js +1 -1
  25. package/lib/src/ap-table/components/setting/select-group/index.vue2.js +1 -1
  26. package/lib/src/ap-table/components/setting/sorter/index.vue2.js +1 -1
  27. package/lib/src/ap-table/components/setting/utils.d.ts +7 -1
  28. package/lib/src/ap-table/components/setting/utils.js +1 -1
  29. package/lib/src/ap-table/constants.d.ts +12 -0
  30. package/lib/src/ap-table/hooks/use-table-column-state.d.ts +6 -2
  31. package/lib/src/ap-table/hooks/use-table-column-state.js +1 -1
  32. package/lib/src/ap-table/interface.d.ts +8 -1
  33. package/lib/src/editable-table/form-item.vue.d.ts +1 -0
  34. package/lib/src/editable-table/form-item.vue.js +1 -1
  35. package/lib/src/editable-table/index.vue.d.ts +1 -0
  36. package/lib/src/editable-table/index.vue.js +1 -1
  37. package/lib/src/editable-table/interface.d.ts +6 -0
  38. package/lib/src/theme/ap-form/ap-form-item.css +2 -0
  39. package/package.json +1 -1
@@ -1,29 +1,37 @@
1
- import { defineComponent as V, computed as c, unref as t, openBlock as h, createElementBlock as k, Fragment as B, createTextVNode as O, toDisplayString as P, renderSlot as T, createVNode as I, createBlock as j, mergeProps as U, createSlots as H, renderList as $, withCtx as K, normalizeProps as L, guardReactiveProps as W } from "vue";
2
- import { ApFieldDatePresetFormats as Y, PRESET_FORMAT_MAP as Z, PRESET_FORMAT_PICK_MAP as q, PRESET_FORMAT_TIME_MAP as G } from "../date/constant.mjs";
1
+ import { defineComponent as U, useSlots as H, computed as p, unref as n, isVNode as K, createVNode as M, Fragment as y, openBlock as h, createElementBlock as B, createTextVNode as O, toDisplayString as P, createBlock as D, resolveDynamicComponent as $, mergeProps as L, createSlots as W, renderList as Y, withCtx as Z, renderSlot as q, normalizeProps as G, guardReactiveProps as J } from "vue";
2
+ import { ApFieldDatePresetFormats as Q, PRESET_FORMAT_MAP as X, PRESET_FORMAT_PICK_MAP as ee, PRESET_FORMAT_TIME_MAP as oe } from "../date/constant.mjs";
3
3
  import "../../hooks/index.mjs";
4
- import { isNil as D, omit as S, isString as f } from "lodash-unified";
5
- import i from "dayjs";
6
- import { DatePicker as J } from "ant-design-vue";
7
- import { formatDayWithTimezone as Q, formatValue as b } from "../date/helper.mjs";
8
- import { SwapRightOutlined as X } from "@ant-design/icons-vue";
9
- import { omitUndefined as ee } from "../../utils/index.mjs";
10
- import { getTimeFormatToZone as R } from "@aplus-frontend/utils";
11
- import { useDefaultPlaceholder as oe } from "../hooks/use-default-placeholder.mjs";
12
- import { useControllableValue as te } from "../../hooks/useControllableValue.mjs";
13
- const ve = /* @__PURE__ */ V({
4
+ import { isNil as T, omit as b, isString as m, isFunction as ne } from "lodash-unified";
5
+ import d from "dayjs";
6
+ import { DatePicker as te } from "ant-design-vue";
7
+ import { formatDayWithTimezone as ae, formatValue as R } from "../date/helper.mjs";
8
+ import { SwapRightOutlined as re } from "@ant-design/icons-vue";
9
+ import { omitUndefined as le } from "../../utils/index.mjs";
10
+ import { getTimeFormatToZone as w } from "@aplus-frontend/utils";
11
+ import { useDefaultPlaceholder as ue } from "../hooks/use-default-placeholder.mjs";
12
+ import { useControllableValue as de } from "../../hooks/useControllableValue.mjs";
13
+ const Be = /* @__PURE__ */ U({
14
14
  __name: "index",
15
15
  props: {
16
- mode: { default: "edit" },
16
+ mode: {
17
+ default: "edit"
18
+ },
17
19
  class: {},
18
20
  style: {},
19
21
  id: {},
20
22
  defaultPickerValue: {},
21
23
  placeholder: {},
22
- disabled: { type: [Boolean, Array], default: void 0 },
24
+ disabled: {
25
+ type: [Boolean, Array],
26
+ default: void 0
27
+ },
23
28
  disabledTime: {},
24
29
  presets: {},
25
30
  ranges: {},
26
- separator: { type: [Object, String, Number, Boolean, null, Array], default: void 0 },
31
+ separator: {
32
+ type: [Object, String, Number, Boolean, null, Array],
33
+ default: void 0
34
+ },
27
35
  allowEmpty: {},
28
36
  onCalendarChange: {},
29
37
  onFocus: {},
@@ -42,14 +50,35 @@ const ve = /* @__PURE__ */ V({
42
50
  dropdownAlign: {},
43
51
  popupStyle: {},
44
52
  transitionName: {},
45
- allowClear: { type: Boolean, default: !0 },
46
- autofocus: { type: Boolean, default: void 0 },
53
+ allowClear: {
54
+ type: Boolean,
55
+ default: !0
56
+ },
57
+ autofocus: {
58
+ type: Boolean,
59
+ default: void 0
60
+ },
47
61
  tabindex: {},
48
- open: { type: Boolean, default: void 0 },
49
- defaultOpen: { type: Boolean, default: void 0 },
50
- inputReadOnly: { type: Boolean, default: void 0 },
51
- suffixIcon: { type: [Object, String, Number, Boolean, null, Array], default: void 0 },
52
- clearIcon: { type: [Object, String, Number, Boolean, null, Array], default: void 0 },
62
+ open: {
63
+ type: Boolean,
64
+ default: void 0
65
+ },
66
+ defaultOpen: {
67
+ type: Boolean,
68
+ default: void 0
69
+ },
70
+ inputReadOnly: {
71
+ type: Boolean,
72
+ default: void 0
73
+ },
74
+ suffixIcon: {
75
+ type: [Object, String, Number, Boolean, null, Array],
76
+ default: void 0
77
+ },
78
+ clearIcon: {
79
+ type: [Object, String, Number, Boolean, null, Array],
80
+ default: void 0
81
+ },
53
82
  getPopupContainer: {},
54
83
  inputRender: {},
55
84
  onOpenChange: {},
@@ -63,125 +92,141 @@ const ve = /* @__PURE__ */ V({
63
92
  monthCellRender: {},
64
93
  locale: {},
65
94
  size: {},
66
- bordered: { type: Boolean, default: void 0 },
67
- showTime: { type: Boolean, default: void 0 },
68
- showNow: { type: Boolean, default: void 0 },
69
- order: { type: Boolean, default: void 0 },
95
+ bordered: {
96
+ type: Boolean,
97
+ default: void 0
98
+ },
99
+ showTime: {
100
+ type: Boolean,
101
+ default: void 0
102
+ },
103
+ showNow: {
104
+ type: Boolean,
105
+ default: void 0
106
+ },
107
+ order: {
108
+ type: Boolean,
109
+ default: void 0
110
+ },
70
111
  defaultOpenValue: {},
71
- showHour: { type: Boolean, default: void 0 },
72
- showMinute: { type: Boolean, default: void 0 },
73
- showSecond: { type: Boolean, default: void 0 },
74
- use12Hours: { type: Boolean, default: void 0 },
112
+ showHour: {
113
+ type: Boolean,
114
+ default: void 0
115
+ },
116
+ showMinute: {
117
+ type: Boolean,
118
+ default: void 0
119
+ },
120
+ showSecond: {
121
+ type: Boolean,
122
+ default: void 0
123
+ },
124
+ use12Hours: {
125
+ type: Boolean,
126
+ default: void 0
127
+ },
75
128
  hourStep: {},
76
129
  minuteStep: {},
77
130
  secondStep: {},
78
- hideDisabledOptions: { type: Boolean, default: void 0 },
131
+ hideDisabledOptions: {
132
+ type: Boolean,
133
+ default: void 0
134
+ },
79
135
  disabledHours: {},
80
136
  disabledMinutes: {},
81
137
  disabledSeconds: {},
82
138
  valueFormat: {},
83
- emptyText: { default: "--" },
139
+ emptyText: {
140
+ default: "--"
141
+ },
84
142
  value: {},
85
143
  defaultValue: {},
86
144
  onChange: {},
87
145
  onOk: {},
88
- format: { default: "Y-D" },
89
- timezone: {}
146
+ format: {
147
+ default: "Y-D"
148
+ },
149
+ timezone: {},
150
+ readModeSeparator: {}
90
151
  },
91
152
  emits: ["update:value"],
92
- setup(M, { emit: w }) {
93
- const o = M, _ = w, u = c(
94
- () => Y.indexOf(o.format) > -1
95
- ), r = c(
96
- () => u.value ? Z[o.format] : o.format
97
- ), { value: p, updateValue: g } = te(
98
- o,
99
- _
100
- ), A = oe("DateRange", o), m = Q(o.timezone), v = c(() => {
101
- var l, d;
102
- const e = t(p);
103
- if (D(e) || !(e != null && e.length))
153
+ setup(_, {
154
+ emit: A
155
+ }) {
156
+ const o = _, F = A, S = H(), u = p(() => Q.indexOf(o.format) > -1), l = p(() => u.value ? X[o.format] : o.format), {
157
+ value: c,
158
+ updateValue: k
159
+ } = de(o, F), N = ue("DateRange", o), s = ae(o.timezone), v = p(() => {
160
+ var r, i;
161
+ const e = n(c);
162
+ if (T(e) || !(e != null && e.length))
104
163
  return e;
105
- const n = o.timezone ? R(
106
- t(p)[0],
107
- o.timezone
108
- ) : (l = t(p)) == null ? void 0 : l[0], a = o.timezone ? R(
109
- t(p)[1],
110
- o.timezone
111
- ) : (d = t(p)) == null ? void 0 : d[1];
112
- return [i(n), i(a)];
113
- }), F = c(() => t(u) ? o.picker ?? q[o.format] : o.picker), z = c(() => {
114
- const e = t(u) ? G[o.format] : {};
164
+ const a = o.timezone ? w(n(c)[0], o.timezone) : (r = n(c)) == null ? void 0 : r[0], t = o.timezone ? w(n(c)[1], o.timezone) : (i = n(c)) == null ? void 0 : i[1];
165
+ return [d(a), d(t)];
166
+ }), x = p(() => n(u) ? o.picker ?? ee[o.format] : o.picker), z = p(() => {
167
+ const e = n(u) ? oe[o.format] : {};
115
168
  return {
116
- ...ee(
117
- S(o, [
118
- "value",
119
- "onUpdate:value",
120
- "onChange",
121
- "onOk",
122
- "format",
123
- "mode"
124
- ])
125
- ),
126
- placeholder: t(A),
169
+ ...le(b(o, ["value", "onUpdate:value", "onChange", "onOk", "format", "mode"])),
170
+ placeholder: n(N),
127
171
  ...e
128
172
  };
129
173
  });
130
174
  function E(e) {
131
175
  if (!e) {
132
- g(e);
176
+ k(e);
133
177
  return;
134
178
  }
135
- let n = f(e[0]) ? i(e[0]) : e[0], a = f(e[1]) ? i(e[1]) : e[1];
136
- t(u) ? g([
137
- m(n, t(r)),
138
- m(a, t(r), !1)
139
- ]) : g([b(n), b(a)]);
179
+ let a = m(e[0]) ? d(e[0]) : e[0], t = m(e[1]) ? d(e[1]) : e[1];
180
+ n(u) ? k([s(a, n(l)), s(t, n(l), !1)]) : k([R(a), R(t)]);
140
181
  }
141
- function N(e) {
142
- var s;
143
- const n = f(e[0]) ? i(e[0]) : e[0], a = f(e[1]) ? i(e[1]) : e[1], l = e[0] ? t(u) ? m(n, t(r)) : n.valueOf() : null, d = e[1] ? t(u) ? m(a, t(r), !1) : a.valueOf() : null;
144
- (s = o.onOk) == null || s.call(o, [l, d]);
182
+ function V(e) {
183
+ var f;
184
+ const a = m(e[0]) ? d(e[0]) : e[0], t = m(e[1]) ? d(e[1]) : e[1], r = e[0] ? n(u) ? s(a, n(l)) : a.valueOf() : null, i = e[1] ? n(u) ? s(t, n(l), !1) : t.valueOf() : null;
185
+ (f = o.onOk) == null || f.call(o, [r, i]);
145
186
  }
146
- function x(e, n) {
147
- var y, C;
148
- if (D(e)) {
149
- (y = o.onChange) == null || y.call(o, e, n);
187
+ function I(e, a) {
188
+ var g, C;
189
+ if (T(e)) {
190
+ (g = o.onChange) == null || g.call(o, e, a);
150
191
  return;
151
192
  }
152
- const a = f(e[0]) ? i(e[0]) : e[0], l = f(e[1]) ? i(e[1]) : e[1], d = e[0] ? t(u) ? m(a, t(r)) : a.valueOf() : null, s = e[1] ? t(u) ? m(l, t(r), !1) : l.valueOf() : null;
153
- (C = o.onChange) == null || C.call(o, [d, s], n);
193
+ const t = m(e[0]) ? d(e[0]) : e[0], r = m(e[1]) ? d(e[1]) : e[1], i = e[0] ? n(u) ? s(t, n(l)) : t.valueOf() : null, f = e[1] ? n(u) ? s(r, n(l), !1) : r.valueOf() : null;
194
+ (C = o.onChange) == null || C.call(o, [i, f], a);
154
195
  }
155
- return (e, n) => {
156
- var a, l;
157
- return e.mode === "read" ? (h(), k(B, { key: 0 }, [
158
- v.value ? (h(), k(B, { key: 0 }, [
159
- O(P((a = v.value[0]) == null ? void 0 : a.format(r.value)) + " ", 1),
160
- T(e.$slots, "readModeSeparator", {}, () => [
161
- I(t(X))
162
- ]),
163
- O(" " + P((l = v.value[1]) == null ? void 0 : l.format(r.value)), 1)
164
- ], 64)) : (h(), k(B, { key: 1 }, [
165
- O(P(e.emptyText), 1)
166
- ], 64))
167
- ], 64)) : (h(), j(t(J).RangePicker, U({ key: 1 }, z.value, {
196
+ const j = p(() => {
197
+ var t;
198
+ const e = o.readModeSeparator;
199
+ if (e)
200
+ return K(e) || ne(e) ? o.readModeSeparator : M(y, null, [o.readModeSeparator]);
201
+ const a = (t = S.readModeSeparator) == null ? void 0 : t.call(S);
202
+ return a ? M(y, null, [a]) : re;
203
+ });
204
+ return (e, a) => {
205
+ var t, r;
206
+ return e.mode === "read" ? (h(), B(y, {
207
+ key: 0
208
+ }, [v.value ? (h(), B(y, {
209
+ key: 0
210
+ }, [O(P((t = v.value[0]) == null ? void 0 : t.format(l.value)) + " ", 1), (h(), D($(j.value))), O(" " + P((r = v.value[1]) == null ? void 0 : r.format(l.value)), 1)], 64)) : (h(), B(y, {
211
+ key: 1
212
+ }, [O(P(e.emptyText), 1)], 64))], 64)) : (h(), D(n(te).RangePicker, L({
213
+ key: 1
214
+ }, z.value, {
168
215
  value: v.value,
169
216
  "onUpdate:value": E,
170
- onChange: x,
171
- picker: F.value,
172
- format: r.value,
173
- onOk: N
174
- }), H({ _: 2 }, [
175
- $(t(S)(e.$slots, "readModeSeparator"), (d, s) => ({
176
- name: s,
177
- fn: K((y) => [
178
- T(e.$slots, s, L(W(y || {})))
179
- ])
180
- }))
181
- ]), 1040, ["value", "picker", "format"]));
217
+ onChange: I,
218
+ picker: x.value,
219
+ format: l.value,
220
+ onOk: V
221
+ }), W({
222
+ _: 2
223
+ }, [Y(n(b)(e.$slots, "readModeSeparator"), (i, f) => ({
224
+ name: f,
225
+ fn: Z((g) => [q(e.$slots, f, G(J(g || {})))])
226
+ }))]), 1040, ["value", "picker", "format"]));
182
227
  };
183
228
  }
184
229
  });
185
230
  export {
186
- ve as default
231
+ Be as default
187
232
  };
@@ -94,6 +94,10 @@ export type ApFieldDateRangeProps = BasicApFieldProps<Omit<RangePickerProps, 'va
94
94
  * 指定时区,指定后value会变为特定时区下的timestamp
95
95
  */
96
96
  timezone?: ZoneAlias;
97
+ /**
98
+ * 只读模式下的分隔符(比插槽优先级更高)
99
+ */
100
+ readModeSeparator?: any;
97
101
  };
98
102
  export type ApFieldSelectProps = BasicApFieldProps<Omit<SelectProps, 'mode' | 'value' | 'onUpdate:value' | 'onSearch'>> & {
99
103
  emptyText?: string;
@@ -149,8 +149,10 @@ const te = { key: 0 }, se = /* @__PURE__ */ T({
149
149
  return (h = u(i).find((M) => M[l] === f)) == null ? void 0 : h[t];
150
150
  }
151
151
  ).filter(Boolean).join("、") || e.emptyText;
152
- const a = u(i).find((f) => f.value === o);
153
- return (a == null ? void 0 : a.label) || e.emptyText;
152
+ const a = u(i).find(
153
+ (f) => f[l] === o
154
+ );
155
+ return (a == null ? void 0 : a[t]) || e.emptyText;
154
156
  }), k = y(() => {
155
157
  const o = !!(e != null && e.showSearch), t = e.searchMode;
156
158
  let l = {};
@@ -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
  };