@aplus-frontend/ui 0.6.0-beta.6 → 0.6.0-beta.8

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 (98) hide show
  1. package/es/src/ap-form/search-form/components/popover-sorter/index.vue2.mjs +57 -51
  2. package/es/src/ap-grid/constants.d.ts +3 -3
  3. package/es/src/ap-grid/constants.mjs +9 -9
  4. package/es/src/ap-grid/index.vue.mjs +45 -47
  5. package/es/src/ap-grid/interface.d.ts +1 -1
  6. package/es/src/ap-table/ap-table.vue2.mjs +17 -17
  7. package/es/src/business/ap-view/ap-view.vue.d.ts +1 -0
  8. package/es/src/business/ap-view/ap-view.vue2.mjs +135 -124
  9. package/es/src/business/ap-view/index.d.ts +3 -0
  10. package/es/src/business/ap-view/interface.d.ts +4 -0
  11. package/lib/src/ap-form/search-form/components/popover-sorter/index.vue2.js +1 -1
  12. package/lib/src/ap-grid/constants.d.ts +3 -3
  13. package/lib/src/ap-grid/constants.js +1 -1
  14. package/lib/src/ap-grid/index.vue.js +1 -1
  15. package/lib/src/ap-grid/interface.d.ts +1 -1
  16. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  17. package/lib/src/business/ap-view/ap-view.vue.d.ts +1 -0
  18. package/lib/src/business/ap-view/ap-view.vue2.js +1 -1
  19. package/lib/src/business/ap-view/index.d.ts +3 -0
  20. package/lib/src/business/ap-view/interface.d.ts +4 -0
  21. package/package.json +3 -3
  22. package/theme/ap-action/item-dropdown.css +3 -2
  23. package/theme/ap-action/item.css +3 -2
  24. package/theme/ap-appendix/ap-appendix.css +3 -2
  25. package/theme/ap-attachment/ap-attachment.css +3 -2
  26. package/theme/ap-batch-action/ap-batch-action.css +3 -2
  27. package/theme/ap-button/ap-button.css +3 -2
  28. package/theme/ap-card/ap-card.css +3 -2
  29. package/theme/ap-descriptions/ap-descriptions.css +3 -2
  30. package/theme/ap-download/ap-download.css +3 -2
  31. package/theme/ap-expand-alert/ap-expand-alert.css +3 -2
  32. package/theme/ap-field/checkbox.css +3 -2
  33. package/theme/ap-field/index.css +3 -2
  34. package/theme/ap-field/number.css +3 -2
  35. package/theme/ap-field/radio.css +3 -2
  36. package/theme/ap-field/text-area.css +3 -2
  37. package/theme/ap-form/ap-form-item-group.css +3 -2
  38. package/theme/ap-form/ap-form-item.css +3 -2
  39. package/theme/ap-form/drawer-form.css +3 -2
  40. package/theme/ap-form/index.css +3 -2
  41. package/theme/ap-form/item-text-group.css +3 -2
  42. package/theme/ap-form/item-text.css +3 -2
  43. package/theme/ap-form/modal-form.css +3 -2
  44. package/theme/ap-form/search-form-sorter.css +3 -2
  45. package/theme/ap-form/search-form.css +3 -2
  46. package/theme/ap-grid/editable.css +3 -2
  47. package/theme/ap-grid/index.css +17 -4
  48. package/theme/ap-grid/index.less +11 -0
  49. package/theme/ap-group-search/ap-extension-select.css +3 -2
  50. package/theme/ap-group-search/ap-group-search.css +3 -2
  51. package/theme/ap-group-search/ap-popover-select.css +3 -2
  52. package/theme/ap-image/ap-image.css +3 -2
  53. package/theme/ap-input-radio/ap-input-radio.css +3 -2
  54. package/theme/ap-label/ap-label.css +3 -2
  55. package/theme/ap-ladder/ap-ladder.css +3 -2
  56. package/theme/ap-layout/ap-info-layout.css +3 -2
  57. package/theme/ap-list/index.css +3 -2
  58. package/theme/ap-product-info/ap-product-info.css +3 -2
  59. package/theme/ap-select-layout/ap-select-layout.css +3 -2
  60. package/theme/ap-size-input/ap-size-input.css +3 -2
  61. package/theme/ap-status/ap-status.css +3 -2
  62. package/theme/ap-summary/index.css +3 -2
  63. package/theme/ap-table/ap-table-index.css +3 -2
  64. package/theme/ap-table/ap-table-paragraph-ellipsis.css +3 -2
  65. package/theme/ap-table/ap-table.css +10 -8
  66. package/theme/ap-table/ap-table.less +4 -4
  67. package/theme/ap-table/setting/index.css +3 -2
  68. package/theme/ap-table/setting/modal.css +3 -2
  69. package/theme/ap-table/setting/select-group.css +3 -2
  70. package/theme/ap-table/setting/sortable-item-meta.css +3 -2
  71. package/theme/ap-table/setting/sortable-item.css +3 -2
  72. package/theme/ap-table/setting/sorter.css +3 -2
  73. package/theme/ap-table-modal/index.css +10 -8
  74. package/theme/ap-tag/ap-tag-group.css +3 -2
  75. package/theme/ap-tag/ap-tag.css +3 -2
  76. package/theme/ap-title/ap-title.css +3 -2
  77. package/theme/ap-upload/index.css +3 -2
  78. package/theme/ap-upload/multiple-file.css +3 -2
  79. package/theme/ap-upload/picture.css +3 -2
  80. package/theme/ap-upload/single-file.css +3 -2
  81. package/theme/ap-upload/upload.css +3 -2
  82. package/theme/ap-upload-single/index.css +3 -2
  83. package/theme/ap-view/ap-view.css +3 -2
  84. package/theme/batch-input-group/index.css +3 -2
  85. package/theme/batch-input-group/popover-input.css +3 -2
  86. package/theme/check-card/index.css +3 -2
  87. package/theme/editable-table/index.css +3 -2
  88. package/theme/full-screen/index.css +3 -2
  89. package/theme/index.css +24 -10
  90. package/theme/mask/index.css +3 -2
  91. package/theme/mixins/mixins.css +3 -2
  92. package/theme/mixins/mixins.less +3 -6
  93. package/theme/scroll-bar/index.css +3 -2
  94. package/theme/scroll-view/index.css +3 -2
  95. package/theme/splitter/index.css +3 -2
  96. package/theme/text/group.css +3 -2
  97. package/theme/text/index.css +3 -2
  98. package/theme/work-order-modal/index.css +3 -2
@@ -1,40 +1,46 @@
1
- import { defineComponent as T, ref as h, unref as e, createBlock as w, openBlock as B, withCtx as t, createVNode as o, createElementVNode as n, normalizeClass as r, toDisplayString as l, createTextVNode as y } from "vue";
2
- import { Popover as S, Tooltip as D, Button as v, Flex as C, Divider as L } from "@aplus-frontend/antdv";
3
- import { IconApLayoutOutlined as P } from "@aplus-frontend/icon";
1
+ import { defineComponent as N, ref as y, watch as T, unref as e, createBlock as B, openBlock as S, withCtx as t, createVNode as o, createElementVNode as s, normalizeClass as r, toDisplayString as p, createTextVNode as C } from "vue";
2
+ import { Popover as D, Tooltip as P, Button as v, Flex as g, Divider as V } from "@aplus-frontend/antdv";
3
+ import { IconApLayoutOutlined as j } from "@aplus-frontend/icon";
4
4
  import "../../../../config-provider/index.mjs";
5
- import V from "vuedraggable";
5
+ import A from "vuedraggable";
6
6
  import "./sortable-item.vue.mjs";
7
- import { getStringName as j } from "../../../item-group/helper.mjs";
8
- import { useNamespace as g } from "../../../../config-provider/hooks/use-namespace.mjs";
9
- import { useLocale as A } from "../../../../config-provider/hooks/use-locale.mjs";
10
- import I from "./sortable-item.vue2.mjs";
11
- const J = /* @__PURE__ */ T({
7
+ import { getStringName as I } from "../../../item-group/helper.mjs";
8
+ import { useNamespace as k } from "../../../../config-provider/hooks/use-namespace.mjs";
9
+ import { useLocale as L } from "../../../../config-provider/hooks/use-locale.mjs";
10
+ import R from "./sortable-item.vue2.mjs";
11
+ const M = /* @__PURE__ */ N({
12
12
  name: "ApFormSearchFormPopoverSorter",
13
13
  __name: "index",
14
14
  props: {
15
15
  children: {},
16
16
  onClickConfirm: { type: Function }
17
17
  },
18
- setup(k) {
19
- const d = k, p = h(d.children);
20
- let _ = [...d.children];
21
- const { e: c } = g("ap-form-search-form"), { b: a } = g("search-form-sorter"), { t: s } = A(), i = h(!1);
22
- function F(m) {
23
- return m.closest(".ant-form") || document.body;
18
+ setup(_) {
19
+ const i = _, c = y(i.children);
20
+ let h = [...i.children];
21
+ T(
22
+ () => i.children,
23
+ (n) => {
24
+ c.value = n, h = n;
25
+ }
26
+ );
27
+ const { e: m } = k("ap-form-search-form"), { b: a } = k("search-form-sorter"), { t: l } = L(), f = y(!1);
28
+ function F(n) {
29
+ return n.closest(".ant-form") || document.body;
24
30
  }
25
31
  function b() {
26
- i.value = !1, console.log(e(p)), d.onClickConfirm(e(p));
32
+ f.value = !1, console.log(e(c)), i.onClickConfirm(e(c));
27
33
  }
28
34
  function x() {
29
- p.value = [..._];
35
+ c.value = [...h];
30
36
  }
31
- function N(m) {
32
- return j(m.props.name);
37
+ function w(n) {
38
+ return I(n.props.name);
33
39
  }
34
- return (m, f) => (B(), w(e(S), {
35
- open: i.value,
36
- "onUpdate:open": f[1] || (f[1] = (u) => i.value = u),
37
- "overlay-class-name": e(c)("popover"),
40
+ return (n, u) => (S(), B(e(D), {
41
+ open: f.value,
42
+ "onUpdate:open": u[1] || (u[1] = (d) => f.value = d),
43
+ "overlay-class-name": e(m)("popover"),
38
44
  trigger: "click",
39
45
  placement: "bottom",
40
46
  mask: "",
@@ -42,64 +48,64 @@ const J = /* @__PURE__ */ T({
42
48
  "get-popup-container": F
43
49
  }, {
44
50
  content: t(() => [
45
- n("div", {
51
+ s("div", {
46
52
  class: r(e(a)("header"))
47
53
  }, [
48
- n("span", {
54
+ s("span", {
49
55
  class: r(e(a)("header-title"))
50
- }, l(e(s)("ap.apForm.search.sorterTitle")), 3),
51
- o(e(C), { justify: "space-between" }, {
56
+ }, p(e(l)("ap.apForm.search.sorterTitle")), 3),
57
+ o(e(g), { justify: "space-between" }, {
52
58
  default: t(() => [
53
- n("span", {
59
+ s("span", {
54
60
  class: r(e(a)("header-desc"))
55
- }, l(e(s)("ap.apForm.search.sorterDesc")), 3),
56
- n("div", {
61
+ }, p(e(l)("ap.apForm.search.sorterDesc")), 3),
62
+ s("div", {
57
63
  class: r(e(a)("header-action-wrapper")),
58
64
  onClick: x
59
65
  }, [
60
- n("span", {
66
+ s("span", {
61
67
  class: r(e(a)("header-reset-btn"))
62
- }, l(e(s)("ap.apForm.search.sorterReset")), 3)
68
+ }, p(e(l)("ap.apForm.search.sorterReset")), 3)
63
69
  ], 2)
64
70
  ]),
65
71
  _: 1
66
72
  })
67
73
  ], 2),
68
- n("div", {
69
- class: r([e(c)("popover-content"), e(a)("content")])
74
+ s("div", {
75
+ class: r([e(m)("popover-content"), e(a)("content")])
70
76
  }, [
71
- o(e(V), {
72
- list: p.value,
77
+ o(e(A), {
78
+ list: c.value,
73
79
  class: r(e(a)("sorter-wrapper")),
74
- "item-key": N
80
+ "item-key": w
75
81
  }, {
76
- item: t(({ element: u }) => [
77
- o(I, { item: u }, null, 8, ["item"])
82
+ item: t(({ element: d }) => [
83
+ o(R, { item: d }, null, 8, ["item"])
78
84
  ]),
79
85
  _: 1
80
86
  }, 8, ["list", "class"])
81
87
  ], 2),
82
- o(e(L), { style: { margin: "0" } }),
83
- n("div", {
84
- class: r(e(c)("popover-footer"))
88
+ o(e(V), { style: { margin: "0" } }),
89
+ s("div", {
90
+ class: r(e(m)("popover-footer"))
85
91
  }, [
86
- o(e(C), { justify: "end" }, {
92
+ o(e(g), { justify: "end" }, {
87
93
  default: t(() => [
88
94
  o(e(v), {
89
- onClick: f[0] || (f[0] = (u) => i.value = !1)
95
+ onClick: u[0] || (u[0] = (d) => f.value = !1)
90
96
  }, {
91
97
  default: t(() => [
92
- y(l(e(s)("ap.common.cancelText")), 1)
98
+ C(p(e(l)("ap.common.cancelText")), 1)
93
99
  ]),
94
100
  _: 1
95
101
  }),
96
102
  o(e(v), {
97
- class: r(e(c)("popover-footer-confirm-btn")),
103
+ class: r(e(m)("popover-footer-confirm-btn")),
98
104
  type: "primary",
99
105
  onClick: b
100
106
  }, {
101
107
  default: t(() => [
102
- y(l(e(s)("ap.apForm.search.sorterConfirmBtn")), 1)
108
+ C(p(e(l)("ap.apForm.search.sorterConfirmBtn")), 1)
103
109
  ]),
104
110
  _: 1
105
111
  }, 8, ["class"])
@@ -109,14 +115,14 @@ const J = /* @__PURE__ */ T({
109
115
  ], 2)
110
116
  ]),
111
117
  default: t(() => [
112
- o(e(D), {
113
- title: e(s)("ap.apForm.search.sorterTitle"),
118
+ o(e(P), {
119
+ title: e(l)("ap.apForm.search.sorterTitle"),
114
120
  placement: "top"
115
121
  }, {
116
122
  default: t(() => [
117
123
  o(e(v), null, {
118
124
  icon: t(() => [
119
- o(e(P))
125
+ o(e(j))
120
126
  ]),
121
127
  _: 1
122
128
  })
@@ -129,5 +135,5 @@ const J = /* @__PURE__ */ T({
129
135
  }
130
136
  });
131
137
  export {
132
- J as default
138
+ M as default
133
139
  };
@@ -1,10 +1,10 @@
1
1
  export declare const sizeMap: {
2
2
  readonly mini: "small";
3
3
  readonly small: "small";
4
- readonly medium: "small";
4
+ readonly medium: "middle";
5
5
  };
6
6
  export declare const sizeReverseMap: {
7
- readonly small: "medium";
8
- readonly middle: undefined;
7
+ readonly small: "mini";
8
+ readonly middle: "medium";
9
9
  };
10
10
  export declare const ROW_SELECTION_FIELD = "_ap-grid-row-selection-field";
@@ -1,13 +1,13 @@
1
- const l = {
1
+ const e = {
2
2
  mini: "small",
3
3
  small: "small",
4
- medium: "small"
5
- }, e = {
6
- small: "medium",
7
- middle: void 0
8
- }, s = "_ap-grid-row-selection-field";
4
+ medium: "middle"
5
+ }, i = {
6
+ small: "mini",
7
+ middle: "medium"
8
+ }, l = "_ap-grid-row-selection-field";
9
9
  export {
10
- s as ROW_SELECTION_FIELD,
11
- l as sizeMap,
12
- e as sizeReverseMap
10
+ l as ROW_SELECTION_FIELD,
11
+ e as sizeMap,
12
+ i as sizeReverseMap
13
13
  };
@@ -1,9 +1,9 @@
1
- import { defineComponent as Be, useSlots as Fe, getCurrentInstance as Ie, ref as B, computed as n, unref as o, watch as F, createElementBlock as I, openBlock as s, normalizeStyle as V, normalizeClass as g, createCommentVNode as S, createElementVNode as E, createVNode as X, mergeProps as h, createSlots as J, withCtx as v, Fragment as Q, renderList as L, createBlock as p, resolveDynamicComponent as D, renderSlot as O, normalizeProps as Ee, guardReactiveProps as Pe } from "vue";
1
+ import { defineComponent as Be, useSlots as Fe, getCurrentInstance as Ie, ref as B, computed as n, unref as o, watch as F, createElementBlock as I, openBlock as s, normalizeStyle as V, normalizeClass as g, createCommentVNode as y, createElementVNode as E, createVNode as X, mergeProps as h, createSlots as J, withCtx as v, Fragment as Q, renderList as L, createBlock as p, resolveDynamicComponent as D, renderSlot as O, normalizeProps as Ee, guardReactiveProps as Pe } from "vue";
2
2
  import { VxeTable as Ne, VxeColumn as Y } from "vxe-table";
3
3
  import "vxe-table/es/style.css";
4
4
  import "vxe-pc-ui/es/style.css";
5
5
  import { VxeUI as Z } from "vxe-pc-ui";
6
- import { isUndefined as w, omit as Te } from "lodash-unified";
6
+ import { isUndefined as S, omit as Te } from "lodash-unified";
7
7
  import { ApForm as ze } from "../ap-form/index.mjs";
8
8
  import "../config-provider/index.mjs";
9
9
  import { noRenderAsFormItemValueList as _e } from "../ap-table/constants.mjs";
@@ -115,13 +115,13 @@ const No = /* @__PURE__ */ Be({
115
115
  },
116
116
  setup(re, { expose: te }) {
117
117
  var G;
118
- const C = Fe(), a = re, x = (G = Ie()) == null ? void 0 : G.appContext.app;
119
- x && !x.__VXE_PC_UI_INSTALLED__ && (x.use(Z), x.__VXE_PC_UI_INSTALLED__ = !0);
120
- const { e: P, b: c, be: le } = Ze("ap-grid"), ne = eo("valueTypeMap"), i = B([]), $ = B([]), m = B(), b = B(a.size), [, d] = Je(), { t: se } = oo();
118
+ const C = Fe(), a = re, w = (G = Ie()) == null ? void 0 : G.appContext.app;
119
+ w && !w.__VXE_PC_UI_INSTALLED__ && (w.use(Z), w.__VXE_PC_UI_INSTALLED__ = !0);
120
+ const { e: P, b: c, be: le } = Ze("ap-grid"), ne = eo("valueTypeMap"), d = B([]), $ = B([]), m = B(), x = B(a.size), [, i] = Je(), { t: se } = oo();
121
121
  Z.setConfig({
122
122
  i18n: (e, r) => se(`ap.${e}`, r)
123
123
  });
124
- const { renderConfig: ie, updateSignal: de } = Xe(i);
124
+ const { renderConfig: de, updateSignal: ie } = Xe(d);
125
125
  let K = 0;
126
126
  const ce = n(() => {
127
127
  if (m.value)
@@ -133,13 +133,13 @@ const No = /* @__PURE__ */ Be({
133
133
  return K++, ((l = (r = (e = a.columns) == null ? void 0 : e.filter(
134
134
  (t) => !t.hideInSearch && t.dataIndex && (t.valueType || t.customRenderFormItem) && !_e.includes(t.valueType)
135
135
  )) == null ? void 0 : r.sort((t, u) => {
136
- let y = ee(t.order);
137
- return ee(u.order) - y;
136
+ let b = ee(t.order);
137
+ return ee(u.order) - b;
138
138
  })) == null ? void 0 : l.map((t) => {
139
139
  const u = Ae(
140
140
  t,
141
141
  Ve(t.fieldProps, {})
142
- ), y = {
142
+ ), b = {
143
143
  ...t,
144
144
  fieldProps: {
145
145
  label: t.title,
@@ -151,10 +151,10 @@ const No = /* @__PURE__ */ Be({
151
151
  },
152
152
  renderNode: void 0
153
153
  };
154
- return y.renderNode = Le(
155
- y,
154
+ return b.renderNode = Le(
155
+ b,
156
156
  o(ne)
157
- ), y;
157
+ ), b;
158
158
  })) || [];
159
159
  }), ue = n(() => {
160
160
  var r;
@@ -167,10 +167,10 @@ const No = /* @__PURE__ */ Be({
167
167
  a.card ? null : c("wrapper"),
168
168
  a.adaptive ? c("adaptive") : null,
169
169
  a.sticky ? c("sticky") : null
170
- ].filter(Boolean)), j = n(() => oe(o(i), (e) => {
170
+ ].filter(Boolean)), j = n(() => oe(o(d), (e) => {
171
171
  if (e.sorter === !0)
172
172
  return e.key || e.dataIndex;
173
- }).filter(Boolean)), H = n(() => oe(o(i), (e) => {
173
+ }).filter(Boolean)), H = n(() => oe(o(d), (e) => {
174
174
  if (e.filters && !e.onFilter)
175
175
  return e.key || e.dataIndex;
176
176
  }).filter(Boolean)), {
@@ -185,7 +185,7 @@ const No = /* @__PURE__ */ Be({
185
185
  } = De({
186
186
  async request(e) {
187
187
  var l;
188
- if (!k.value.preserveSelectedRowKeys && w(a.dataSource) && A(), !w(a.dataSource)) {
188
+ if (!k.value.preserveSelectedRowKeys && S(a.dataSource) && A(), !S(a.dataSource)) {
189
189
  const t = e.pageSize * (e.current - 1);
190
190
  return {
191
191
  data: (a.pagination === !1 ? a.dataSource : a.dataSource.slice(t, t + e.pageSize)) || [],
@@ -208,19 +208,19 @@ const No = /* @__PURE__ */ Be({
208
208
  pagination: a.pagination
209
209
  }), { sortChangeEvent: he, filterChangeEvent: ve, paginationChangeEvent: Ce } = $e(ge);
210
210
  Me({
211
- columns: n(() => i.value),
211
+ columns: n(() => d.value),
212
212
  columnsBackup: n(() => $.value),
213
- size: n(() => b.value ? Ue[b.value] : "middle"),
213
+ size: n(() => Ue[x.value]),
214
214
  updateColumns(e) {
215
215
  var r;
216
- i.value = e, (r = a.onShownColumnsChange) == null || r.call(a, e);
216
+ d.value = e, (r = a.onShownColumnsChange) == null || r.call(a, e);
217
217
  },
218
218
  updateSize(e) {
219
- b.value = qe[e];
219
+ x.value = qe[e];
220
220
  },
221
221
  renderConfig: n(() => ({
222
222
  className: le("table-header", "title"),
223
- color: d.value.colorPrimary
223
+ color: i.value.colorPrimary
224
224
  })),
225
225
  dataSource: n(() => o(f).records),
226
226
  getSearchFormValues: U,
@@ -229,13 +229,13 @@ const No = /* @__PURE__ */ Be({
229
229
  reset: z
230
230
  });
231
231
  const be = n(
232
- () => i.value.some(
232
+ () => d.value.some(
233
233
  (e) => e.fixed === "left" || e.fixed === !0
234
234
  ) ? "left" : void 0
235
235
  ), ye = n(
236
- () => w(a.loading) ? f.loading : a.loading
236
+ () => S(a.loading) ? f.loading : a.loading
237
237
  ), Se = n(
238
- () => w(a.dataSource) ? f.records : a.dataSource
238
+ () => S(a.dataSource) ? f.records : a.dataSource
239
239
  ), { selectedRows: R, rowSelection: k, ...we } = He({
240
240
  ...a.rowSelection === !0 ? {} : a.rowSelection,
241
241
  dataSource: Se,
@@ -279,7 +279,7 @@ const No = /* @__PURE__ */ Be({
279
279
  () => {
280
280
  var r;
281
281
  const e = Re();
282
- i.value = e, (r = a.onShownColumnsChange) == null || r.call(a, e), $.value = e;
282
+ d.value = e, (r = a.onShownColumnsChange) == null || r.call(a, e), $.value = e;
283
283
  },
284
284
  {
285
285
  deep: !0,
@@ -300,7 +300,7 @@ const No = /* @__PURE__ */ Be({
300
300
  ), F(
301
301
  () => a.size,
302
302
  (e) => {
303
- b.value = e;
303
+ x.value = e;
304
304
  }
305
305
  ), te({
306
306
  submit: T,
@@ -308,7 +308,7 @@ const No = /* @__PURE__ */ Be({
308
308
  refresh: me,
309
309
  setSearchFormValues: q,
310
310
  getSearchFormValues: U,
311
- getShowColumns: () => o(i),
311
+ getShowColumns: () => o(d),
312
312
  rowSelection: {
313
313
  selectedRows: n(() => R.value),
314
314
  clearAll: A
@@ -319,7 +319,7 @@ const No = /* @__PURE__ */ Be({
319
319
  class: g(pe.value),
320
320
  style: V(e.wrapperStyle)
321
321
  }, [
322
- o(w)(e.dataSource) && e.searchForm !== !1 && W.value.length > 0 ? (s(), I("div", {
322
+ o(S)(e.dataSource) && e.searchForm !== !1 && W.value.length > 0 ? (s(), I("div", {
323
323
  key: 0,
324
324
  class: g(e.card ? o(P)("search-wrapper") : null),
325
325
  style: V(e.searchFormWrapperStyle)
@@ -352,7 +352,7 @@ const No = /* @__PURE__ */ Be({
352
352
  key: "0"
353
353
  } : void 0
354
354
  ]), 1040, ["submit-loading", "onSubmit", "onReset"])
355
- ], 6)) : S("", !0),
355
+ ], 6)) : y("", !0),
356
356
  E("div", {
357
357
  class: g([o(P)("table-wrapper"), e.card ? o(P)("table-wrapper-card") : null]),
358
358
  style: V(e.tableWrapperStyle)
@@ -363,7 +363,7 @@ const No = /* @__PURE__ */ Be({
363
363
  O(e.$slots, "title", {
364
364
  selectedRows: o(R),
365
365
  selectedRowKeys: o(k).selectedRowKeys,
366
- shownColumns: i.value,
366
+ shownColumns: d.value,
367
367
  clearAll: A
368
368
  })
369
369
  ], 2),
@@ -373,27 +373,25 @@ const No = /* @__PURE__ */ Be({
373
373
  (s(), p(o(Ne), h(o(Ke)(a), {
374
374
  ref_key: "tableRef",
375
375
  ref: m,
376
- key: o(de),
376
+ key: o(ie),
377
377
  data: o(f).records,
378
378
  "sort-config": { remote: j.value.length > 0 },
379
379
  "filter-config": { remote: H.value.length > 0 },
380
380
  loading: ye.value,
381
381
  style: {
382
- "--vxe-ui-table-row-checkbox-checked-background-color": o(d).controlItemBgActive,
383
- "--vxe-ui-table-row-hover-checkbox-checked-background-color": o(d).controlItemBgActiveHover,
384
- "--vxe-ui-font-primary-color": o(d).colorPrimary,
382
+ "--vxe-ui-table-row-checkbox-checked-background-color": o(i).controlItemBgActive,
383
+ "--vxe-ui-table-row-hover-checkbox-checked-background-color": o(i).controlItemBgActiveHover,
384
+ "--vxe-ui-font-primary-color": o(i).colorPrimary,
385
385
  "--vxe-ui-table-header-background-color": "var(--ap-table-header-bg)",
386
386
  "--vxe-ui-table-cell-padding-default": "12px",
387
387
  "--vxe-ui-table-cell-padding-medium": "9px",
388
- "--vxe-ui-table-row-radio-checked-background-color": o(d).controlItemBgActive,
389
- "--vxe-ui-table-row-hover-radio-checked-background-color": o(d).controlItemBgActiveHover,
390
- "--vxe-ui-font-color": o(d).colorTextBase,
391
- "--vxe-ui-table-border-color": o(d).colorBorderSecondary,
392
- "--vxe-ui-table-header-font-color": o(d).colorTextBase,
393
- "--vxe-ui-table-cell-padding-mini": "8px",
394
- "--vxe-ui-table-row-line-height": "18px"
388
+ "--vxe-ui-table-row-radio-checked-background-color": o(i).controlItemBgActive,
389
+ "--vxe-ui-table-row-hover-radio-checked-background-color": o(i).controlItemBgActiveHover,
390
+ "--vxe-ui-font-color": o(i).colorTextBase,
391
+ "--vxe-ui-table-border-color": o(i).colorBorderSecondary,
392
+ "--vxe-ui-table-header-font-color": o(i).colorTextBase
395
393
  },
396
- size: b.value,
394
+ size: x.value,
397
395
  onSortChange: o(he),
398
396
  onFilterChange: o(ve),
399
397
  onCheckboxChange: _,
@@ -412,9 +410,9 @@ const No = /* @__PURE__ */ Be({
412
410
  (s(), p(D(a.expandable.renderContent(l))))
413
411
  ]),
414
412
  _: 1
415
- }, 16, ["fixed"])) : S("", !0),
416
- a.rowSelection ? (s(), p(o(Y), h({ key: 1 }, o(je)(o(k), i.value), { field: o(Ge) }), null, 16, ["field"])) : S("", !0),
417
- (s(!0), I(Q, null, L(o(ie), (l) => (s(), p(D(l), {
413
+ }, 16, ["fixed"])) : y("", !0),
414
+ a.rowSelection ? (s(), p(o(Y), h({ key: 1 }, o(je)(o(k), d.value), { field: o(Ge) }), null, 16, ["field"])) : y("", !0),
415
+ (s(!0), I(Q, null, L(o(de), (l) => (s(), p(D(l), {
418
416
  key: l.props.colId
419
417
  }))), 128))
420
418
  ]),
@@ -437,12 +435,12 @@ const No = /* @__PURE__ */ Be({
437
435
  "scroll-container": ce.value,
438
436
  "extra-size": -4.2,
439
437
  "bar-color": "var(--basic-scrollbar-thumb-color-base, #bfbfbf)",
440
- "track-color": "#fff"
441
- }, null, 8, ["scroll-container"])) : S("", !0),
438
+ "track-color": "var(--ap-table-header-bg, #f2f6f9)"
439
+ }, null, 8, ["scroll-container"])) : y("", !0),
442
440
  e.pagination !== !1 ? (s(), p(o(Oe), h({
443
441
  key: 1,
444
442
  class: o(c)("pagination")
445
- }, o(M).pagination, { onChange: o(Ce) }), null, 16, ["class", "onChange"])) : S("", !0)
443
+ }, o(M).pagination, { onChange: o(Ce) }), null, 16, ["class", "onChange"])) : y("", !0)
446
444
  ], 2)
447
445
  ], 6)
448
446
  ], 6));
@@ -200,7 +200,7 @@ export type ApGridProps<RecordType = any, ParamsType = any> = Omit<TableProps<Re
200
200
  /**
201
201
  * 表格尺寸(只支持中等大小和小尺寸)
202
202
  */
203
- size?: 'medium' | 'small' | 'mini';
203
+ size?: 'medium' | 'mini';
204
204
  /**
205
205
  * 表格是否自适应高度
206
206
  */
@@ -1,4 +1,4 @@
1
- import { defineComponent as Le, useSlots as Oe, ref as w, computed as s, unref as l, createVNode as m, Fragment as re, watch as k, createElementBlock as B, openBlock as y, normalizeStyle as K, normalizeClass as b, createCommentVNode as oe, createElementVNode as L, mergeProps as v, createSlots as ae, withCtx as R, renderList as te, createBlock as le, resolveDynamicComponent as Ae, renderSlot as C, normalizeProps as $e, guardReactiveProps as De } from "vue";
1
+ import { defineComponent as Le, useSlots as Oe, ref as w, computed as s, unref as l, createVNode as m, Fragment as re, watch as k, createElementBlock as B, openBlock as b, normalizeStyle as K, normalizeClass as y, createCommentVNode as oe, createElementVNode as L, mergeProps as v, createSlots as ae, withCtx as R, renderList as te, createBlock as le, resolveDynamicComponent as Ae, renderSlot as C, normalizeProps as $e, guardReactiveProps as De } from "vue";
2
2
  import { Divider as je, Table as We } from "@aplus-frontend/antdv";
3
3
  import { useToken as _e } from "@aplus-frontend/antdv/es/theme/internal";
4
4
  import { ApForm as He } from "../ap-form/index.mjs";
@@ -155,9 +155,9 @@ const Or = /* @__PURE__ */ Le({
155
155
  b: f,
156
156
  be: A,
157
157
  m: me,
158
- cssVar: ye
158
+ cssVar: be
159
159
  } = ur("ap-table"), $ = ir("valueTypeMap"), {
160
- height: be,
160
+ height: ye,
161
161
  contentRef: ge
162
162
  } = ar(), D = w(), j = w(), {
163
163
  isStickyMode: W,
@@ -317,7 +317,7 @@ const Or = /* @__PURE__ */ Le({
317
317
  var a, o;
318
318
  if (r.adaptive && (S.total > 0 || ((a = r.dataSource) == null ? void 0 : a.length)))
319
319
  return {
320
- y: l(be),
320
+ y: l(ye),
321
321
  x: ((o = r.scroll) == null ? void 0 : o.x) || "100%"
322
322
  };
323
323
  if (r.scroll)
@@ -409,16 +409,16 @@ const Or = /* @__PURE__ */ Le({
409
409
  },
410
410
  y: void 0
411
411
  }
412
- }), (e, a) => (y(), B("div", {
412
+ }), (e, a) => (b(), B("div", {
413
413
  ref_key: "tableWrapperRef",
414
414
  ref: D,
415
- class: b(Ne.value),
416
- style: K(l(ye)({
415
+ class: y(Ne.value),
416
+ style: K(l(be)({
417
417
  "scroll-bar-width": `${l(H)}px`
418
418
  }))
419
- }, [l(g)(e.dataSource) && e.searchForm !== !1 && U.value.length > 0 ? (y(), B("div", {
419
+ }, [l(g)(e.dataSource) && e.searchForm !== !1 && U.value.length > 0 ? (b(), B("div", {
420
420
  key: 0,
421
- class: b(e.card ? l(z)("search-wrapper") : null),
421
+ class: y(e.card ? l(z)("search-wrapper") : null),
422
422
  style: K(e.searchFormWrapperStyle)
423
423
  }, [m(l(He).SearchForm, v(e.searchForm || {}, {
424
424
  ref_key: "formRef",
@@ -428,7 +428,7 @@ const Or = /* @__PURE__ */ Le({
428
428
  onSubmit: l(I),
429
429
  onReset: l(V)
430
430
  }), ae({
431
- default: R(() => [(y(!0), B(re, null, te(U.value, (o) => (y(), le(Ae(o.renderNode.Comp), v({
431
+ default: R(() => [(b(!0), B(re, null, te(U.value, (o) => (b(), le(Ae(o.renderNode.Comp), v({
432
432
  key: o.dataIndex,
433
433
  item: o,
434
434
  ref_for: !0
@@ -444,20 +444,20 @@ const Or = /* @__PURE__ */ Le({
444
444
  } : void 0]), 1040, ["submit-loading", "onSubmit", "onReset"])], 6)) : oe("", !0), L("div", {
445
445
  ref_key: "contentRef",
446
446
  ref: ge,
447
- class: b([l(z)("table-wrapper"), e.card ? l(z)("table-wrapper-card") : null]),
447
+ class: y([l(z)("table-wrapper"), e.card ? l(z)("table-wrapper-card") : null]),
448
448
  style: K(e.tableWrapperStyle)
449
449
  }, [L("div", {
450
- class: b(l(f)("header-wrapper"))
451
- }, [e.settings ? (y(), B("div", {
450
+ class: y(l(f)("header-wrapper"))
451
+ }, [e.settings ? (b(), B("div", {
452
452
  key: 0,
453
- class: b(l(f)("header"))
453
+ class: y(l(f)("header"))
454
454
  }, [L("div", {
455
- class: b(l(A)("header", "title"))
455
+ class: y(l(A)("header", "title"))
456
456
  }, [C(e.$slots, "title", v({
457
457
  selectedRows: l(x),
458
458
  selectedRowKeys: l(T).selectedRowKeys,
459
459
  shownColumns: u.value
460
- }, F))], 2), c.title ? (y(), le(l(je), {
460
+ }, F))], 2), c.title ? (b(), le(l(je), {
461
461
  key: 0,
462
462
  type: "vertical"
463
463
  })) : oe("", !0), m(fr, {
@@ -493,7 +493,7 @@ const Or = /* @__PURE__ */ Le({
493
493
  "scroll-container": (t = (o = j.value) == null ? void 0 : o.table) == null ? void 0 : t.scrollBodyRef,
494
494
  direction: "horizontal",
495
495
  "bar-color": "var(--basic-scrollbar-thumb-color-base, #bfbfbf)",
496
- "track-color": "#fff"
496
+ "track-color": "var(--ap-table-header-bg, #f2f6f9)"
497
497
  }, null, 8, ["scroll-container"])];
498
498
  }),
499
499
  key: "0"
@@ -2,5 +2,6 @@ import { ApViewProps } from './interface';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  declare const _default: DefineComponent<ApViewProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApViewProps> & Readonly<{}>, {
4
4
  maxViewNum: number;
5
+ isDefaultSystemView: boolean;
5
6
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
6
7
  export default _default;