@aplus-frontend/ui 0.0.40 → 0.1.0

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 (57) hide show
  1. package/es/src/ap-action/item/index.vue2.mjs +19 -20
  2. package/es/src/ap-action/item-modal/index.vue.mjs +7 -6
  3. package/es/src/ap-action/style/item.css +10 -25
  4. package/es/src/ap-field/checkbox/index.vue.mjs +32 -27
  5. package/es/src/ap-field/checkbox/style.css +7 -0
  6. package/es/src/ap-field/interface.d.ts +2 -0
  7. package/es/src/ap-field/radio/index.vue.d.ts +3 -0
  8. package/es/src/ap-field/radio/index.vue.mjs +44 -29
  9. package/es/src/ap-field/radio/style.css +4 -0
  10. package/es/src/ap-table/ap-table.vue.mjs +125 -126
  11. package/es/src/ap-table/constants.d.ts +15 -0
  12. package/es/src/ap-table/style/ap-table.css +1 -21
  13. package/es/src/business/ap-status/ApStatusGroup.vue2.mjs +10 -9
  14. package/es/src/check-card/index.vue2.mjs +44 -48
  15. package/es/src/check-card/style/index.css +10 -42
  16. package/es/src/design-token/index.mjs +4 -2
  17. package/es/src/editable-table/form-item.vue.mjs +57 -58
  18. package/es/src/editable-table/index.vue.mjs +54 -55
  19. package/es/src/editable-table/style/index.css +1 -21
  20. package/es/src/locale/lang/en.mjs +1 -1
  21. package/es/src/locale/lang/zh-cn.mjs +22 -22
  22. package/es/src/theme/ap-action/item.css +10 -25
  23. package/es/src/theme/ap-field/checkbox.css +7 -0
  24. package/es/src/theme/ap-field/radio.css +4 -0
  25. package/es/src/theme/ap-table/ap-table.css +1 -21
  26. package/es/src/theme/check-card/index.css +10 -42
  27. package/es/src/theme/css-var/index.mjs +83 -19
  28. package/es/src/theme/editable-table/index.css +1 -21
  29. package/lib/src/ap-action/item/index.vue2.js +1 -1
  30. package/lib/src/ap-action/item-modal/index.vue.js +1 -1
  31. package/lib/src/ap-action/style/item.css +10 -25
  32. package/lib/src/ap-field/checkbox/index.vue.js +1 -1
  33. package/lib/src/ap-field/checkbox/style.css +7 -0
  34. package/lib/src/ap-field/interface.d.ts +2 -0
  35. package/lib/src/ap-field/radio/index.vue.d.ts +3 -0
  36. package/lib/src/ap-field/radio/index.vue.js +1 -1
  37. package/lib/src/ap-field/radio/style.css +4 -0
  38. package/lib/src/ap-table/ap-table.vue.js +1 -1
  39. package/lib/src/ap-table/constants.d.ts +15 -0
  40. package/lib/src/ap-table/style/ap-table.css +1 -21
  41. package/lib/src/business/ap-status/ApStatusGroup.vue2.js +1 -1
  42. package/lib/src/check-card/index.vue2.js +1 -1
  43. package/lib/src/check-card/style/index.css +10 -42
  44. package/lib/src/design-token/index.js +1 -1
  45. package/lib/src/editable-table/form-item.vue.js +1 -1
  46. package/lib/src/editable-table/index.vue.js +1 -1
  47. package/lib/src/editable-table/style/index.css +1 -21
  48. package/lib/src/locale/lang/en.js +1 -1
  49. package/lib/src/locale/lang/zh-cn.js +1 -1
  50. package/lib/src/theme/ap-action/item.css +10 -25
  51. package/lib/src/theme/ap-field/checkbox.css +7 -0
  52. package/lib/src/theme/ap-field/radio.css +4 -0
  53. package/lib/src/theme/ap-table/ap-table.css +1 -21
  54. package/lib/src/theme/check-card/index.css +10 -42
  55. package/lib/src/theme/css-var/index.js +1 -1
  56. package/lib/src/theme/editable-table/index.css +1 -21
  57. package/package.json +2 -2
@@ -1,23 +1,22 @@
1
- import { defineComponent as ne, useSlots as se, computed as s, createVNode as d, mergeProps as p, unref as r, watch as de, openBlock as c, createElementBlock as g, normalizeClass as T, normalizeStyle as x, createSlots as K, withCtx as f, Fragment as ue, renderList as V, createBlock as ie, resolveDynamicComponent as pe, renderSlot as v, createCommentVNode as z, createElementVNode as D, toDisplayString as ce, normalizeProps as fe, guardReactiveProps as me } from "vue";
2
- import { Typography as ye, Table as ge, Tooltip as be } from "ant-design-vue";
1
+ import { defineComponent as le, useSlots as ne, computed as s, createVNode as d, mergeProps as i, unref as l, watch as se, openBlock as p, createElementBlock as g, normalizeClass as T, normalizeStyle as x, createSlots as K, withCtx as c, Fragment as de, renderList as V, createBlock as ue, resolveDynamicComponent as ie, renderSlot as v, createCommentVNode as z, createElementVNode as D, toDisplayString as pe, normalizeProps as ce, guardReactiveProps as fe } from "vue";
2
+ import { Typography as me, Table as ye, Tooltip as ge } from "ant-design-vue";
3
3
  import { useToken as Se } from "ant-design-vue/es/theme/internal";
4
- import { ApForm as he } from "../ap-form/index.mjs";
5
- import { apTableRenderItemMap as we, noRenderAsFormItemValueList as N, apTableFormItemMap as Re } from "./constants.mjs";
4
+ import { ApForm as be } from "../ap-form/index.mjs";
5
+ import { apTableRenderItemMap as he, noRenderAsFormItemValueList as N, apTableFormItemMap as we } from "./constants.mjs";
6
6
  import "../config-provider/index.mjs";
7
- import { useTablePaging as Ce } from "./hooks/use-table-paging.mjs";
8
- import { omit as j, isUndefined as u, isBoolean as Fe } from "lodash-unified";
7
+ import { useTablePaging as Re } from "./hooks/use-table-paging.mjs";
8
+ import { omit as j, isUndefined as u, isBoolean as Ce } from "lodash-unified";
9
9
  import "./style/ap-table.css";
10
- import { QuestionCircleOutlined as Te } from "@ant-design/icons-vue";
11
- import { apColumnToColumn as xe, getTableRenderType as ve, getTableRenderProps as Be, getColumnOrder as W, updateFormProps as Pe, getFieldProps as Ie, getPlaceholder as ke } from "./utils.mjs";
12
- import Le from "./hooks/use-table-content-height.mjs";
13
- import { getRawDisplayValue as Ee } from "../editable-table/utils.mjs";
14
- import Oe from "./hooks/use-table-row-selection.mjs";
15
- import { useLocale as Ke } from "../config-provider/hooks/use-locale.mjs";
16
- import { useNamespace as Ve } from "../config-provider/hooks/use-namespace.mjs";
17
- import { useGlobalConfig as ze } from "../config-provider/hooks/use-global-config.mjs";
18
- const De = {
10
+ import { QuestionCircleOutlined as Fe } from "@ant-design/icons-vue";
11
+ import { apColumnToColumn as Te, getTableRenderType as xe, getTableRenderProps as ve, getColumnOrder as W, updateFormProps as Be, getFieldProps as Pe, getPlaceholder as Ie } from "./utils.mjs";
12
+ import ke from "./hooks/use-table-content-height.mjs";
13
+ import { getRawDisplayValue as Le } from "../editable-table/utils.mjs";
14
+ import Ee from "./hooks/use-table-row-selection.mjs";
15
+ import { useLocale as Oe } from "../config-provider/hooks/use-locale.mjs";
16
+ import { useNamespace as Ke } from "../config-provider/hooks/use-namespace.mjs";
17
+ const Ve = {
19
18
  key: 0
20
- }, aa = /* @__PURE__ */ ne({
19
+ }, Ye = /* @__PURE__ */ le({
21
20
  name: "ApTable",
22
21
  __name: "ap-table",
23
22
  props: {
@@ -138,223 +137,223 @@ const De = {
138
137
  }) {
139
138
  const a = _;
140
139
  let B = 0;
141
- const P = se(), [, M] = Se(), {
142
- t: q
143
- } = Ke(), {
144
- e: b,
145
- b: i
146
- } = Ve("ap-table"), H = ze("uiMode", "aplus"), {
140
+ const P = ne(), [, q] = Se(), {
141
+ t: H
142
+ } = Oe(), {
143
+ e: S,
144
+ b: f
145
+ } = Ke("ap-table"), {
147
146
  height: $,
148
- contentRef: G
149
- } = Le(), S = s(() => {
150
- var t;
151
- let e = ((t = a.columns) == null ? void 0 : t.filter((o) => !o.hideInTable)) || [];
152
- return e = e.map((o) => ({
153
- ...j(xe(o), ["ellipsis"]),
147
+ contentRef: M
148
+ } = ke(), b = s(() => {
149
+ var o;
150
+ let e = ((o = a.columns) == null ? void 0 : o.filter((t) => !t.hideInTable)) || [];
151
+ return e = e.map((t) => ({
152
+ ...j(Te(t), ["ellipsis"]),
154
153
  customRender({
155
- value: l,
154
+ value: r,
156
155
  ...n
157
156
  }) {
158
- const C = ve(o), O = we[C], le = Be(o, {
159
- value: l,
157
+ const C = xe(t), O = he[C], re = ve(t, {
158
+ value: r,
160
159
  ...n
161
160
  });
162
- let F = oe(o, l, d(O, p(le, {
161
+ let F = ae(t, r, d(O, i(re, {
163
162
  mode: "read"
164
163
  }), null));
165
- return o.customRender && (F = o.customRender({
166
- value: l,
164
+ return t.customRender && (F = t.customRender({
165
+ value: r,
167
166
  ...n,
168
- column: o,
167
+ column: t,
169
168
  originalNode: F
170
169
  })), F;
171
170
  }
172
171
  })), e;
173
172
  }), I = s(() => {
174
- var e, t, o;
175
- return B++, ((o = (t = (e = a.columns) == null ? void 0 : e.filter((l) => !l.hideInSearch && l.dataIndex && (l.valueType || l.customRenderFormItem) && !N.includes(l.valueType))) == null ? void 0 : t.sort((l, n) => {
176
- let C = W(l.order);
173
+ var e, o, t;
174
+ return B++, ((t = (o = (e = a.columns) == null ? void 0 : e.filter((r) => !r.hideInSearch && r.dataIndex && (r.valueType || r.customRenderFormItem) && !N.includes(r.valueType))) == null ? void 0 : o.sort((r, n) => {
175
+ let C = W(r.order);
177
176
  return W(n.order) - C;
178
- })) == null ? void 0 : o.map((l) => {
179
- const n = Pe(l, Ie(l.fieldProps, {}));
177
+ })) == null ? void 0 : t.map((r) => {
178
+ const n = Be(r, Pe(r.fieldProps, {}));
180
179
  return {
181
- ...l,
180
+ ...r,
182
181
  fieldProps: {
183
- label: l.title,
184
- name: l.dataIndex,
182
+ label: r.title,
183
+ name: r.dataIndex,
185
184
  ...n || {},
186
185
  // 格式化placeholder
187
- placeholder: ke(q, l.valueType, n == null ? void 0 : n.placeholder),
186
+ placeholder: Ie(H, r.valueType, n == null ? void 0 : n.placeholder),
188
187
  _signal: B
189
188
  }
190
189
  };
191
190
  })) || [];
192
- }), Q = s(() => r(S).filter((e) => e.sorter === !0).map((e) => e.dataIndex)), U = s(() => r(S).filter((e) => e.filters && !e.onFilter).map((e) => e.dataIndex)), J = s(() => u(a.dataSource) ? y.value.records : a.dataSource), {
191
+ }), Q = s(() => l(b).filter((e) => e.sorter === !0).map((e) => e.dataIndex)), U = s(() => l(b).filter((e) => e.filters && !e.onFilter).map((e) => e.dataIndex)), G = s(() => u(a.dataSource) ? y.value.records : a.dataSource), {
193
192
  rowSelection: h,
194
193
  selectedRows: k,
195
194
  ...w
196
- } = Oe({
195
+ } = Ee({
197
196
  ...a.rowSelection === !0 ? {} : a.rowSelection,
198
197
  rowKey: a.rowKey,
199
- dataSource: J
198
+ dataSource: G
200
199
  }), {
201
200
  formRef: R,
202
201
  submit: L,
203
202
  reset: E,
204
203
  tableProps: m,
205
- handleTableChange: X,
204
+ handleTableChange: J,
206
205
  data: y
207
- } = Ce({
206
+ } = Re({
208
207
  async request(e) {
209
- var o, l;
208
+ var t, r;
210
209
  !h.value.preserveSelectedRowKeys && u(a.dataSource) && w.clearAll();
211
- const t = await ((o = a.request) == null ? void 0 : o.call(a, e));
212
- return (l = a.onLoad) == null || l.call(a, (t == null ? void 0 : t.data) || []), {
213
- data: (t == null ? void 0 : t.data) || [],
214
- total: (t == null ? void 0 : t.total) || 0
210
+ const o = await ((t = a.request) == null ? void 0 : t.call(a, e));
211
+ return (r = a.onLoad) == null || r.call(a, (o == null ? void 0 : o.data) || []), {
212
+ data: (o == null ? void 0 : o.data) || [],
213
+ total: (o == null ? void 0 : o.total) || 0
215
214
  };
216
215
  },
217
- filterFields: r(U),
218
- sortFields: r(Q),
216
+ filterFields: l(U),
217
+ sortFields: l(Q),
219
218
  defaultParams: a.params,
220
219
  defaultData: a.defaultData,
221
220
  manual: a.manual,
222
221
  defaultCurrent: a.pagination ? a.pagination.defaultCurrent : void 0,
223
222
  defaultPageSize: a.pagination ? a.pagination.defaultPageSize : void 0,
224
223
  formatParams: a.beforeSearchSubmit
225
- }), Y = s(() => {
224
+ }), X = s(() => {
226
225
  var e;
227
226
  return a.scroll ? a.scroll : a.adaptive && (y.value.total > 0 || (e = a.dataSource) != null && e.length) ? {
228
- y: r($),
227
+ y: l($),
229
228
  x: "100%"
230
229
  } : {
231
230
  x: !0
232
231
  };
233
- }), Z = s(() => {
232
+ }), Y = s(() => {
234
233
  var e;
235
234
  if (a.tableLayout)
236
235
  return a.tableLayout;
237
- if ((e = a.columns) != null && e.some((t) => t.ellipsis))
236
+ if ((e = a.columns) != null && e.some((o) => o.ellipsis))
238
237
  return "fixed";
239
- }), ee = s(() => {
240
- var l;
241
- const e = r(m), t = u(a.dataSource) ? e : {
238
+ }), Z = s(() => {
239
+ var r;
240
+ const e = l(m), o = u(a.dataSource) ? e : {
242
241
  ...e,
243
242
  dataSource: a.dataSource,
244
243
  onChange: a.onChange
245
- }, o = r(h);
244
+ }, t = l(h);
246
245
  return {
247
246
  ...a,
248
- ...t,
249
- rowSelection: a.rowSelection === !0 || ((l = a.rowSelection) == null ? void 0 : l.mode) === "internal" ? {
250
- ...o,
247
+ ...o,
248
+ rowSelection: a.rowSelection === !0 || ((r = a.rowSelection) == null ? void 0 : r.mode) === "internal" ? {
249
+ ...t,
251
250
  // tips 如果是前端分页,则默认会走缓存
252
- preserveSelectedRowKeys: u(a.dataSource) ? o.preserveSelectedRowKeys : !0
251
+ preserveSelectedRowKeys: u(a.dataSource) ? t.preserveSelectedRowKeys : !0
253
252
  } : a.rowSelection,
254
- loading: u(a.loading) ? r(m).loading : a.loading,
255
- pagination: a.pagination === !1 ? !1 : r(m).pagination,
256
- scroll: r(Y)
253
+ loading: u(a.loading) ? l(m).loading : a.loading,
254
+ pagination: a.pagination === !1 ? !1 : l(m).pagination,
255
+ scroll: l(X)
257
256
  };
258
- }), ae = s(() => [i(), a.card ? null : i("wrapper"), a.adaptive ? i("adaptive") : null].filter(Boolean));
259
- function oe(e, t, o) {
260
- return N.includes(e.valueType) ? o : e.copyable || e.ellipsis ? d(ye.Paragraph, {
257
+ }), ee = s(() => [f(), a.card ? null : f("wrapper"), a.adaptive ? f("adaptive") : null].filter(Boolean));
258
+ function ae(e, o, t) {
259
+ return N.includes(e.valueType) ? t : e.copyable || e.ellipsis ? d(me.Paragraph, {
261
260
  copyable: e.copyable ? {
262
- text: t,
261
+ text: o,
263
262
  tooltip: !1
264
263
  } : !1,
265
- ellipsis: e.ellipsis ? Fe(e.ellipsis) ? {
266
- tooltip: t
264
+ ellipsis: e.ellipsis ? Ce(e.ellipsis) ? {
265
+ tooltip: o
267
266
  } : {
268
267
  ...e.ellipsis,
269
- tooltip: t
268
+ tooltip: o
270
269
  } : !1,
271
- content: e.ellipsis ? Ee(e, t) : o
272
- }, null) : o;
270
+ content: e.ellipsis ? Le(e, o) : t
271
+ }, null) : t;
273
272
  }
274
- de(() => r(y).loading, (e) => {
275
- var t;
276
- (t = a.onLoadingChange) == null || t.call(a, e);
273
+ se(() => l(y).loading, (e) => {
274
+ var o;
275
+ (o = a.onLoadingChange) == null || o.call(a, e);
277
276
  });
278
277
  function te(e) {
279
- var t, o, l;
280
- (l = (o = (t = R.value) == null ? void 0 : t.apForm) == null ? void 0 : o.setFieldsValue) == null || l.call(o, e);
278
+ var o, t, r;
279
+ (r = (t = (o = R.value) == null ? void 0 : o.apForm) == null ? void 0 : t.setFieldsValue) == null || r.call(t, e);
281
280
  }
282
- function re() {
283
- var e, t, o;
284
- return (o = (t = (e = R.value) == null ? void 0 : e.apForm) == null ? void 0 : t.getFieldsValue) == null ? void 0 : o.call(t, !0);
281
+ function oe() {
282
+ var e, o, t;
283
+ return (t = (o = (e = R.value) == null ? void 0 : e.apForm) == null ? void 0 : o.getFieldsValue) == null ? void 0 : t.call(o, !0);
285
284
  }
286
285
  return A({
287
286
  submit: () => L(),
288
287
  reset: () => E(),
289
288
  setSearchFormValues: te,
290
- getSearchFormValues: re,
291
- dataSource: s(() => r(y).records),
289
+ getSearchFormValues: oe,
290
+ dataSource: s(() => l(y).records),
292
291
  rowSelection: {
293
- selectedRows: s(() => r(k)),
292
+ selectedRows: s(() => l(k)),
294
293
  ...w
295
294
  }
296
- }), (e, t) => (c(), g("div", {
297
- class: T(ae.value)
298
- }, [r(u)(e.dataSource) && e.searchForm !== !1 && I.value.length > 0 ? (c(), g("div", {
295
+ }), (e, o) => (p(), g("div", {
296
+ class: T(ee.value)
297
+ }, [l(u)(e.dataSource) && e.searchForm !== !1 && I.value.length > 0 ? (p(), g("div", {
299
298
  key: 0,
300
- class: T(e.card ? r(b)("search-wrapper") : null),
299
+ class: T(e.card ? l(S)("search-wrapper") : null),
301
300
  style: x(e.searchFormWrapperStyle)
302
- }, [d(r(he).SearchForm, p(e.searchForm || {}, {
301
+ }, [d(l(be).SearchForm, i(e.searchForm || {}, {
303
302
  ref_key: "formRef",
304
303
  ref: R,
305
304
  "custom-reset": "",
306
- onSubmit: r(L),
307
- onReset: r(E),
308
- "submit-loading": r(m).loading
305
+ onSubmit: l(L),
306
+ onReset: l(E),
307
+ "submit-loading": l(m).loading
309
308
  }), K({
310
- default: f(() => [(c(!0), g(ue, null, V(I.value, (o) => (c(), ie(pe(o.customRenderFormItem ? o.customRenderFormItem(o) : r(Re)[o.valueType || "text"]), p({
311
- key: o.dataIndex,
309
+ default: c(() => [(p(!0), g(de, null, V(I.value, (t) => (p(), ue(ie(t.customRenderFormItem ? t.customRenderFormItem(t) : l(we)[t.valueType || "text"]), i({
310
+ key: t.dataIndex,
312
311
  ref_for: !0
313
- }, o.fieldProps || {}, {
314
- span: o.span
312
+ }, t.fieldProps || {}, {
313
+ span: t.span
315
314
  }), null, 16, ["span"]))), 128))]),
316
315
  _: 2
317
316
  }, [P.searchFormExtra ? {
318
317
  name: "extra",
319
- fn: f(() => [v(e.$slots, "searchFormExtra")]),
318
+ fn: c(() => [v(e.$slots, "searchFormExtra")]),
320
319
  key: "0"
321
320
  } : void 0]), 1040, ["onSubmit", "onReset", "submit-loading"])], 6)) : z("", !0), D("div", {
322
321
  ref_key: "contentRef",
323
- ref: G,
324
- class: T([r(b)("table-wrapper"), e.card ? r(b)("table-wrapper-card") : null]),
322
+ ref: M,
323
+ class: T([l(S)("table-wrapper"), e.card ? l(S)("table-wrapper-card") : null]),
325
324
  style: x(e.tableWrapperStyle)
326
- }, [v(e.$slots, "title", p({
327
- selectedRows: r(k),
328
- selectedRowKeys: r(h).selectedRowKeys
329
- }, w)), d(r(ge), p({
330
- class: r(H) === "admin" ? r(i)("table-admin") : r(i)("table")
331
- }, ee.value, {
332
- "table-layout": Z.value,
333
- onChange: r(X),
334
- columns: S.value
325
+ }, [v(e.$slots, "title", i({
326
+ selectedRows: l(k),
327
+ selectedRowKeys: l(h).selectedRowKeys
328
+ }, w)), d(l(ye), i({
329
+ class: l(f)("table")
330
+ }, Z.value, {
331
+ "table-layout": Y.value,
332
+ onChange: l(J),
333
+ columns: b.value
335
334
  }), K({
336
- headerCell: f(({
337
- column: o,
338
- title: l
339
- }) => [o.tooltip ? (c(), g("span", De, [D("span", null, ce(l), 1), d(r(be), {
340
- title: o.tooltip,
335
+ headerCell: c(({
336
+ column: t,
337
+ title: r
338
+ }) => [t.tooltip ? (p(), g("span", Ve, [D("span", null, pe(r), 1), d(l(ge), {
339
+ title: t.tooltip,
341
340
  placement: "bottom"
342
341
  }, {
343
- default: f(() => [d(r(Te), {
342
+ default: c(() => [d(l(Fe), {
344
343
  style: x({
345
344
  paddingLeft: "4px",
346
- color: r(M).colorPrimary
345
+ color: l(q).colorPrimary
347
346
  })
348
347
  }, null, 8, ["style"])]),
349
348
  _: 2
350
349
  }, 1032, ["title"])])) : z("", !0)]),
351
350
  _: 2
352
- }, [V(r(j)(P, ["title", "searchFormExtra"]), (o, l) => ({
353
- name: l,
354
- fn: f((n) => [v(e.$slots, l, fe(me(n || {})))])
351
+ }, [V(l(j)(P, ["title", "searchFormExtra"]), (t, r) => ({
352
+ name: r,
353
+ fn: c((n) => [v(e.$slots, r, ce(fe(n || {})))])
355
354
  }))]), 1040, ["class", "table-layout", "onChange", "columns"])], 6)], 2));
356
355
  }
357
356
  });
358
357
  export {
359
- aa as default
358
+ Ye as default
360
359
  };
@@ -11802,6 +11802,10 @@ export declare const apTableRenderItemMap: {
11802
11802
  options: {
11803
11803
  type: PropType<(string | number | RadioGroupChildOption)[]>;
11804
11804
  };
11805
+ vertical: {
11806
+ type: PropType<boolean>;
11807
+ default: boolean;
11808
+ };
11805
11809
  'onUpdate:value': {
11806
11810
  type: PropType<(val: any) => void>;
11807
11811
  };
@@ -11858,6 +11862,10 @@ export declare const apTableRenderItemMap: {
11858
11862
  options: {
11859
11863
  type: PropType<(string | number | RadioGroupChildOption)[]>;
11860
11864
  };
11865
+ vertical: {
11866
+ type: PropType<boolean>;
11867
+ default: boolean;
11868
+ };
11861
11869
  'onUpdate:value': {
11862
11870
  type: PropType<(val: any) => void>;
11863
11871
  };
@@ -11878,6 +11886,7 @@ export declare const apTableRenderItemMap: {
11878
11886
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
11879
11887
  }, {
11880
11888
  mode: FieldMode;
11889
+ vertical: boolean;
11881
11890
  emptyText: string;
11882
11891
  }, {}>;
11883
11892
  select: {
@@ -16284,6 +16293,9 @@ export declare const apTableRenderItemMap: {
16284
16293
  type: PropType<(string | number | CheckboxOptionType)[]>;
16285
16294
  default: () => never[];
16286
16295
  };
16296
+ vertical: {
16297
+ type: PropType<boolean>;
16298
+ };
16287
16299
  defaultValue: {
16288
16300
  type: PropType< CheckboxValueType[]>;
16289
16301
  };
@@ -16332,6 +16344,9 @@ export declare const apTableRenderItemMap: {
16332
16344
  type: PropType<(string | number | CheckboxOptionType)[]>;
16333
16345
  default: () => never[];
16334
16346
  };
16347
+ vertical: {
16348
+ type: PropType<boolean>;
16349
+ };
16335
16350
  defaultValue: {
16336
16351
  type: PropType< CheckboxValueType[]>;
16337
16352
  };
@@ -48,31 +48,11 @@
48
48
  flex: 1;
49
49
  }
50
50
  .aplus-ap-table-table tr > th.ant-table-cell {
51
- background-color: #F2F6F9;
52
- border-bottom-color: #E9EDF3;
51
+ background-color: var(--ap-table-header-bg);
53
52
  }
54
53
  .aplus-ap-table-table tr > th.ant-table-cell::before {
55
54
  display: none;
56
55
  }
57
- .aplus-ap-table-table tr > td.ant-table-cell {
58
- border-top-color: #E9EDF3;
59
- }
60
- .aplus-ap-table-table-admin .ant-pagination {
61
- margin-bottom: 0 !important;
62
- }
63
- .aplus-ap-table-table-admin .ant-pagination .ant-pagination-total-text {
64
- flex: 1;
65
- }
66
- .aplus-ap-table-table-admin tr > th.ant-table-cell {
67
- background-color: #FAFAFA;
68
- border-bottom-color: #E9E9E9;
69
- }
70
- .aplus-ap-table-table-admin tr > th.ant-table-cell::before {
71
- display: none;
72
- }
73
- .aplus-ap-table-table-admin tr > td.ant-table-cell {
74
- border-top-color: #E9E9E9;
75
- }
76
56
  .aplus-ap-table .ant-table.ant-table-middle .ant-table-row .ant-table-cell {
77
57
  padding: 12px 16px;
78
58
  }
@@ -1,9 +1,9 @@
1
- import { defineComponent as l, computed as p, openBlock as a, createElementBlock as r, normalizeClass as d, unref as c, normalizeStyle as i, Fragment as m, renderList as f, createBlock as g, createCommentVNode as y } from "vue";
1
+ import { defineComponent as p, computed as d, openBlock as a, createElementBlock as r, normalizeClass as c, unref as i, normalizeStyle as o, Fragment as m, renderList as f, createBlock as g, createCommentVNode as y } from "vue";
2
2
  import "../../config-provider/index.mjs";
3
3
  import "./ApStatus.vue.mjs";
4
4
  import { useNamespace as _ } from "../../config-provider/hooks/use-namespace.mjs";
5
5
  import x from "./ApStatus.vue2.mjs";
6
- const w = /* @__PURE__ */ l({
6
+ const w = /* @__PURE__ */ p({
7
7
  name: "ApStatusGroup",
8
8
  __name: "ApStatusGroup",
9
9
  props: {
@@ -13,24 +13,25 @@ const w = /* @__PURE__ */ l({
13
13
  style: {},
14
14
  show: { type: Boolean, default: !0 }
15
15
  },
16
- setup(o) {
17
- const t = o, n = p(() => ({
16
+ setup(s) {
17
+ const t = s, l = d(() => ({
18
18
  "padding-left": t.padding + "px",
19
19
  "padding-right": t.padding + "px",
20
20
  ...t.style
21
- })), { b: s } = _("ap-status-group");
21
+ })), { b: n } = _("ap-status-group");
22
22
  return (u, h) => t.statusList ? (a(), r("div", {
23
23
  key: 0,
24
- class: d([c(s)()]),
25
- style: i(n.value)
24
+ class: c([i(n)()]),
25
+ style: o(l.value)
26
26
  }, [
27
27
  (a(!0), r(m, null, f(t.statusList, (e) => (a(), g(x, {
28
28
  key: e.value,
29
29
  show: e.value === u.currentValue,
30
30
  color: e.color,
31
31
  text: e.text,
32
- padding: t.padding
33
- }, null, 8, ["show", "color", "text", "padding"]))), 128))
32
+ padding: t.padding,
33
+ style: o(t.style)
34
+ }, null, 8, ["show", "color", "text", "padding", "style"]))), 128))
34
35
  ], 6)) : y("", !0);
35
36
  }
36
37
  });