@aplus-frontend/ui 0.2.0 → 0.2.2

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 (99) hide show
  1. package/es/index.mjs +1 -1
  2. package/es/src/ap-button/ap-action-button.vue.mjs +1 -0
  3. package/es/src/ap-button/ap-button.vue.d.ts +3 -0
  4. package/es/src/ap-button/ap-button.vue.mjs +47 -66
  5. package/es/src/ap-button/interface.d.ts +1 -0
  6. package/es/src/ap-button/utils/index.d.ts +3 -0
  7. package/es/src/ap-button/utils/index.mjs +33 -0
  8. package/es/src/ap-descriptions/help-message/index.vue.d.ts +2 -2
  9. package/es/src/ap-descriptions/interface.d.ts +1 -1
  10. package/es/src/ap-field/checkbox/index.vue.mjs +23 -22
  11. package/es/src/ap-field/hooks/use-options.d.ts +8 -0
  12. package/es/src/ap-field/hooks/use-options.mjs +22 -0
  13. package/es/src/ap-field/radio/index.vue.mjs +25 -24
  14. package/es/src/ap-field/segmented/index.vue.mjs +37 -33
  15. package/es/src/ap-field/select/index.vue.mjs +74 -73
  16. package/es/src/ap-table/ap-table.vue.mjs +2 -428
  17. package/es/src/ap-table/ap-table.vue2.mjs +428 -2
  18. package/es/src/ap-table/components/setting/modal/index.vue.d.ts +16 -1
  19. package/es/src/ap-table/components/setting/modal/index.vue2.mjs +22 -20
  20. package/es/src/ap-table/hooks/use-table-column-state.mjs +72 -69
  21. package/es/src/ap-table/index.d.ts +6 -1
  22. package/es/src/ap-table/index.mjs +9 -3
  23. package/es/src/ap-upload/apUpload.vue.d.ts +2 -2
  24. package/es/src/ap-upload/components/Picture.vue2.mjs +10 -10
  25. package/es/src/business/ap-batch-action/ApBatchAction.vue.d.ts +8 -3
  26. package/es/src/business/ap-batch-action/ApBatchAction.vue2.mjs +42 -29
  27. package/es/src/business/ap-batch-action/index.d.ts +8 -3
  28. package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +14 -13
  29. package/es/src/business/ap-batch-action-group/index.d.ts +4 -0
  30. package/es/src/business/ap-button-group/index.d.ts +8 -0
  31. package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +42 -40
  32. package/es/src/business/ap-summary/style/css.js +1 -1
  33. package/es/src/business/ap-table-modal/index.d.ts +38 -1
  34. package/es/src/business/ap-table-modal/interface.d.ts +17 -2
  35. package/es/src/business/ap-table-modal/style/css.js +1 -1
  36. package/es/src/business/ap-table-modal/style/index.js +1 -1
  37. package/es/src/business/ap-table-modal/table-layout/index.vue.d.ts +57 -0
  38. package/es/src/business/ap-table-modal/table-layout/index.vue.mjs +4 -0
  39. package/es/src/business/ap-table-modal/table-layout/index.vue2.mjs +74 -0
  40. package/es/src/business/ap-table-modal/table-modal.vue2.mjs +134 -79
  41. package/es/src/config-provider/config-provider.d.ts +1 -0
  42. package/es/src/config-provider/css-var.d.ts +1 -0
  43. package/es/src/config-provider/css-var.mjs +7 -5
  44. package/es/src/config-provider/index.d.ts +6 -0
  45. package/es/src/editable-table/interface.d.ts +2 -2
  46. package/es/src/index.mjs +201 -202
  47. package/es/src/locale/lang/en.mjs +3 -1
  48. package/es/src/locale/lang/zh-cn.mjs +3 -1
  49. package/es/src/path-map.mjs +2 -0
  50. package/lib/index.js +1 -1
  51. package/lib/src/ap-button/ap-action-button.vue.js +1 -1
  52. package/lib/src/ap-button/ap-button.vue.d.ts +3 -0
  53. package/lib/src/ap-button/ap-button.vue.js +1 -1
  54. package/lib/src/ap-button/interface.d.ts +1 -0
  55. package/lib/src/ap-button/utils/index.d.ts +3 -0
  56. package/lib/src/ap-button/utils/index.js +1 -0
  57. package/lib/src/ap-descriptions/help-message/index.vue.d.ts +2 -2
  58. package/lib/src/ap-descriptions/interface.d.ts +1 -1
  59. package/lib/src/ap-field/checkbox/index.vue.js +1 -1
  60. package/lib/src/ap-field/hooks/use-options.d.ts +8 -0
  61. package/lib/src/ap-field/hooks/use-options.js +1 -0
  62. package/lib/src/ap-field/radio/index.vue.js +1 -1
  63. package/lib/src/ap-field/segmented/index.vue.js +1 -1
  64. package/lib/src/ap-field/select/index.vue.js +1 -1
  65. package/lib/src/ap-table/ap-table.vue.js +1 -1
  66. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  67. package/lib/src/ap-table/components/setting/modal/index.vue.d.ts +16 -1
  68. package/lib/src/ap-table/components/setting/modal/index.vue2.js +1 -1
  69. package/lib/src/ap-table/hooks/use-table-column-state.js +1 -1
  70. package/lib/src/ap-table/index.d.ts +6 -1
  71. package/lib/src/ap-table/index.js +1 -1
  72. package/lib/src/ap-upload/apUpload.vue.d.ts +2 -2
  73. package/lib/src/ap-upload/components/Picture.vue2.js +1 -1
  74. package/lib/src/business/ap-batch-action/ApBatchAction.vue.d.ts +8 -3
  75. package/lib/src/business/ap-batch-action/ApBatchAction.vue2.js +1 -1
  76. package/lib/src/business/ap-batch-action/index.d.ts +8 -3
  77. package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.js +1 -1
  78. package/lib/src/business/ap-batch-action-group/index.d.ts +4 -0
  79. package/lib/src/business/ap-button-group/index.d.ts +8 -0
  80. package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
  81. package/lib/src/business/ap-summary/style/css.js +1 -1
  82. package/lib/src/business/ap-table-modal/index.d.ts +38 -1
  83. package/lib/src/business/ap-table-modal/interface.d.ts +17 -2
  84. package/lib/src/business/ap-table-modal/style/css.js +1 -1
  85. package/lib/src/business/ap-table-modal/style/index.js +1 -1
  86. package/lib/src/business/ap-table-modal/table-layout/index.vue.d.ts +57 -0
  87. package/lib/src/business/ap-table-modal/table-layout/index.vue.js +1 -0
  88. package/lib/src/business/ap-table-modal/table-layout/index.vue2.js +1 -0
  89. package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
  90. package/lib/src/config-provider/config-provider.d.ts +1 -0
  91. package/lib/src/config-provider/css-var.d.ts +1 -0
  92. package/lib/src/config-provider/css-var.js +1 -1
  93. package/lib/src/config-provider/index.d.ts +6 -0
  94. package/lib/src/editable-table/interface.d.ts +2 -2
  95. package/lib/src/index.js +1 -1
  96. package/lib/src/locale/lang/en.js +1 -1
  97. package/lib/src/locale/lang/zh-cn.js +1 -1
  98. package/lib/src/path-map.js +1 -1
  99. package/package.json +2 -2
@@ -1,14 +1,14 @@
1
- import { defineComponent as M, computed as r, ref as P, openBlock as m, createBlock as f, unref as t, normalizeClass as D, withCtx as n, createVNode as y, createTextVNode as x, toDisplayString as p, normalizeStyle as K, createCommentVNode as R } from "vue";
1
+ import { defineComponent as G, computed as i, ref as M, openBlock as m, createBlock as f, unref as o, normalizeClass as D, withCtx as n, createVNode as y, createTextVNode as p, toDisplayString as x, mergeProps as K, createCommentVNode as R } from "vue";
2
2
  import { DownOutlined as B } from "@ant-design/icons-vue";
3
- import { Dropdown as N, Menu as T, MenuItem as _, Button as I } from "@aplus-frontend/antdv";
3
+ import { Dropdown as N, Menu as T, MenuItem as g, Button as I } from "@aplus-frontend/antdv";
4
4
  import "../../config-provider/index.mjs";
5
5
  import { ApExportGroupActionType as u } from "./interface.mjs";
6
6
  import { usePermission as V } from "@aplus-frontend/hooks";
7
7
  import { handleExportDownload as q } from "./handleExportDownload.mjs";
8
8
  import { useNamespace as z } from "../../config-provider/hooks/use-namespace.mjs";
9
9
  import { useLocale as O } from "../../config-provider/hooks/use-locale.mjs";
10
- import { useGlobalConfig as j } from "../../config-provider/hooks/use-global-config.mjs";
11
- const te = /* @__PURE__ */ M({
10
+ import { useGlobalConfig as $ } from "../../config-provider/hooks/use-global-config.mjs";
11
+ const te = /* @__PURE__ */ G({
12
12
  __name: "ApExportGroup",
13
13
  props: {
14
14
  selectedRowKeys: {},
@@ -22,63 +22,63 @@ const te = /* @__PURE__ */ M({
22
22
  getInitialParams: { type: Function },
23
23
  beforeRequest: { type: Function }
24
24
  },
25
- setup(g) {
26
- const { hasPermission: C } = V(), e = g, { b: E } = z("ap-export-group"), { t: c } = O(), S = j("uiMode"), L = r(() => {
27
- const o = {
25
+ setup(C) {
26
+ const { hasPermission: E } = V(), e = C, { b: _ } = z("ap-export-group"), { t: c } = O(), L = $("uiMode"), S = i(() => {
27
+ const t = {
28
28
  aplus: "#0070FF",
29
29
  admin: "#34b77c"
30
30
  };
31
- return b.value ? "" : o[S.value] || o.aplus;
32
- }), b = r(() => !!(e != null && e.disabled)), A = {
31
+ return b.value ? "" : t[L.value] || t.aplus;
32
+ }), b = i(() => !!(e != null && e.disabled)), A = {
33
33
  textAlign: "center"
34
- }, d = P(!1), w = r(() => (e == null ? void 0 : e.selectedRowKeys) || []), F = r(() => {
35
- let o = e == null ? void 0 : e.ifShow;
36
- return !(e != null && e.ifShow) && (e != null && e.auth) && (o = () => C(e.auth)), (o == null ? void 0 : o()) ?? !0;
34
+ }, s = M(!1), w = i(() => (e == null ? void 0 : e.selectedRowKeys) || []), F = i(() => {
35
+ let t = e == null ? void 0 : e.ifShow;
36
+ return !(e != null && e.ifShow) && (e != null && e.auth) && (t = () => E(e.auth)), (t == null ? void 0 : t()) ?? !0;
37
37
  });
38
- async function k({ key: o }) {
38
+ async function P({ key: t }) {
39
39
  var h, v;
40
40
  const { getRequestParams: l, request: a } = e || {};
41
- let s = {};
42
- o === u.SELECT ? s = {
41
+ let d = {};
42
+ t === u.SELECT ? d = {
43
43
  [(e == null ? void 0 : e.idKey) || "ids"]: w.value
44
- } : o === u.ALL && (s = (l == null ? void 0 : l()) || {});
45
- const G = ((h = e == null ? void 0 : e.getInitialParams) == null ? void 0 : h.call(e)) || {};
44
+ } : t === u.ALL && (d = (l == null ? void 0 : l()) || {});
45
+ const k = ((h = e == null ? void 0 : e.getInitialParams) == null ? void 0 : h.call(e)) || {};
46
46
  try {
47
- d.value = !0;
48
- let i = {
49
- ...s,
50
- ...G
47
+ s.value = !0;
48
+ let r = {
49
+ ...d,
50
+ ...k
51
51
  };
52
- i = ((v = e == null ? void 0 : e.beforeRequest) == null ? void 0 : v.call(e, i)) || i, await q(async () => await (a == null ? void 0 : a(i)));
52
+ r = ((v = e == null ? void 0 : e.beforeRequest) == null ? void 0 : v.call(e, r)) || r, await q(async () => await (a == null ? void 0 : a(r)));
53
53
  } finally {
54
- d.value = !1;
54
+ s.value = !1;
55
55
  }
56
56
  }
57
- return (o, l) => F.value ? (m(), f(t(N), {
57
+ return (t, l) => F.value ? (m(), f(o(N), {
58
58
  key: 0,
59
- class: D([t(E)()]),
59
+ class: D([o(_)()]),
60
60
  overlayStyle: A,
61
61
  disabled: b.value
62
62
  }, {
63
63
  overlay: n(() => [
64
- y(t(T), { onClick: k }, {
64
+ y(o(T), { onClick: P }, {
65
65
  default: n(() => {
66
66
  var a;
67
67
  return [
68
- (m(), f(t(_), {
69
- key: t(u).SELECT,
68
+ (m(), f(o(g), {
69
+ key: o(u).SELECT,
70
70
  disabled: ((a = w.value) == null ? void 0 : a.length) === 0
71
71
  }, {
72
72
  default: n(() => [
73
- x(p(t(c)("ap.apExportGroup.exportSelected")), 1)
73
+ p(x(o(c)("ap.apExportGroup.exportSelected")), 1)
74
74
  ]),
75
75
  _: 1
76
76
  }, 8, ["disabled"])),
77
- (m(), f(t(_), {
78
- key: t(u).ALL
77
+ (m(), f(o(g), {
78
+ key: o(u).ALL
79
79
  }, {
80
80
  default: n(() => [
81
- x(p(t(c)("ap.apExportGroup.exportAll")), 1)
81
+ p(x(o(c)("ap.apExportGroup.exportAll")), 1)
82
82
  ]),
83
83
  _: 1
84
84
  }))
@@ -88,18 +88,20 @@ const te = /* @__PURE__ */ M({
88
88
  })
89
89
  ]),
90
90
  default: n(() => [
91
- y(t(I), {
92
- style: K({
93
- color: L.value
94
- }),
95
- loading: d.value
91
+ y(o(I), K({
92
+ ...t.$attrs
96
93
  }, {
94
+ style: {
95
+ color: S.value
96
+ },
97
+ loading: s.value
98
+ }), {
97
99
  default: n(() => [
98
- x(p((e == null ? void 0 : e.text) ?? t(c)("ap.apExportGroup.export")) + " ", 1),
99
- y(t(B))
100
+ p(x((e == null ? void 0 : e.text) ?? o(c)("ap.apExportGroup.export")) + " ", 1),
101
+ y(o(B))
100
102
  ]),
101
103
  _: 1
102
- }, 8, ["style", "loading"])
104
+ }, 16, ["style", "loading"])
103
105
  ]),
104
106
  _: 1
105
107
  }, 8, ["class", "disabled"])) : R("", !0);
@@ -1 +1 @@
1
- import '@aplus-frontend/ui-theme/dist/ap-summary/ap-summary.css';
1
+ import '@aplus-frontend/ui-theme/dist/ap-summary/index.css';
@@ -7,7 +7,8 @@ import { ButtonType, ButtonShape, ButtonSize } from '@aplus-frontend/antdv/es/bu
7
7
  import { VueTypeValidableDef } from '../../../node_modules/vue-types';
8
8
  import { MouseEventHandler } from '@aplus-frontend/antdv/es/_util/EventInterface';
9
9
  import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
10
- import { OpenOptions, OpenReturnType } from './interface';
10
+ import { TableRowSelection } from '@aplus-frontend/antdv/es/table/interface';
11
+ import { TableLayoutConfig, OpenOptions, OpenReturnType } from './interface';
11
12
  import { Recordable } from '../../type';
12
13
  import { TableColumnsType } from '@aplus-frontend/antdv';
13
14
  /**
@@ -247,6 +248,9 @@ declare const ApTableModal: {
247
248
  type: PropType<number>;
248
249
  default: number;
249
250
  };
251
+ rowSelection: {
252
+ type: PropType<TableRowSelection<any>>;
253
+ };
250
254
  getRowKey: {
251
255
  type: PropType<(record: any) => string | number>;
252
256
  };
@@ -263,6 +267,12 @@ declare const ApTableModal: {
263
267
  count: number;
264
268
  }) => VNodeChild>;
265
269
  };
270
+ disabledCheckbox: {
271
+ type: PropType<boolean | ((record: any, selectRows: any[]) => boolean)>;
272
+ };
273
+ tableLayoutConfig: {
274
+ type: PropType<TableLayoutConfig>;
275
+ };
266
276
  }>> & {
267
277
  onFinish?: ((selectedRowKeys: (string | number)[], selectedRows: any[]) => any) | undefined;
268
278
  }, {
@@ -522,6 +532,9 @@ declare const ApTableModal: {
522
532
  type: PropType<number>;
523
533
  default: number;
524
534
  };
535
+ rowSelection: {
536
+ type: PropType<TableRowSelection<any>>;
537
+ };
525
538
  getRowKey: {
526
539
  type: PropType<(record: any) => string | number>;
527
540
  };
@@ -538,6 +551,12 @@ declare const ApTableModal: {
538
551
  count: number;
539
552
  }) => VNodeChild>;
540
553
  };
554
+ disabledCheckbox: {
555
+ type: PropType<boolean | ((record: any, selectRows: any[]) => boolean)>;
556
+ };
557
+ tableLayoutConfig: {
558
+ type: PropType<TableLayoutConfig>;
559
+ };
541
560
  }>> & {
542
561
  onFinish?: ((selectedRowKeys: (string | number)[], selectedRows: any[]) => any) | undefined;
543
562
  }, {
@@ -797,6 +816,9 @@ declare const ApTableModal: {
797
816
  type: PropType<number>;
798
817
  default: number;
799
818
  };
819
+ rowSelection: {
820
+ type: PropType<TableRowSelection<any>>;
821
+ };
800
822
  getRowKey: {
801
823
  type: PropType<(record: any) => string | number>;
802
824
  };
@@ -813,6 +835,12 @@ declare const ApTableModal: {
813
835
  count: number;
814
836
  }) => VNodeChild>;
815
837
  };
838
+ disabledCheckbox: {
839
+ type: PropType<boolean | ((record: any, selectRows: any[]) => boolean)>;
840
+ };
841
+ tableLayoutConfig: {
842
+ type: PropType<TableLayoutConfig>;
843
+ };
816
844
  }>> & {
817
845
  onFinish?: ((selectedRowKeys: (string | number)[], selectedRows: any[]) => any) | undefined;
818
846
  }, {
@@ -1091,6 +1119,9 @@ declare const ApTableModal: {
1091
1119
  type: PropType<number>;
1092
1120
  default: number;
1093
1121
  };
1122
+ rowSelection: {
1123
+ type: PropType<TableRowSelection<any>>;
1124
+ };
1094
1125
  getRowKey: {
1095
1126
  type: PropType<(record: any) => string | number>;
1096
1127
  };
@@ -1107,6 +1138,12 @@ declare const ApTableModal: {
1107
1138
  count: number;
1108
1139
  }) => VNodeChild>;
1109
1140
  };
1141
+ disabledCheckbox: {
1142
+ type: PropType<boolean | ((record: any, selectRows: any[]) => boolean)>;
1143
+ };
1144
+ tableLayoutConfig: {
1145
+ type: PropType<TableLayoutConfig>;
1146
+ };
1110
1147
  }>> & {
1111
1148
  onFinish?: ((selectedRowKeys: (string | number)[], selectedRows: any[]) => any) | undefined;
1112
1149
  }, {
@@ -1,6 +1,6 @@
1
- import { VNodeChild } from 'vue';
1
+ import { VNode, VNodeChild } from 'vue';
2
2
  import { ApColumnType, ApTableProps } from '../../index';
3
- import { ModalProps } from '@aplus-frontend/antdv';
3
+ import { ModalProps, TableProps } from '@aplus-frontend/antdv';
4
4
  /** table-modal的props类型 */
5
5
  export interface ApTableModalProps<TableRowType = any> extends Omit<ModalProps, 'onOk' | 'open' | 'close' | 'visible'> {
6
6
  columns: ApColumnType[];
@@ -18,6 +18,12 @@ export interface ApTableModalProps<TableRowType = any> extends Omit<ModalProps,
18
18
  isRenderModalTitleSuffix?: boolean;
19
19
  /** 渲染table-modal的后缀函数 */
20
20
  renderModalTitleSuffix?: ModalTitleSlots['default'];
21
+ /** 禁用选项 */
22
+ disabledCheckbox?: boolean | ((record: TableRowType, selectRows: TableRowType[]) => boolean);
23
+ /** 其他row-selection选项 */
24
+ rowSelection?: TableProps['rowSelection'];
25
+ /** 表格布局配置 */
26
+ tableLayoutConfig?: TableLayoutConfig;
21
27
  }
22
28
  /** useCreateTableModal参数类型 */
23
29
  export interface UseCreateTableModalProps extends ApTableModalProps {
@@ -61,3 +67,12 @@ export interface ModalTitleSlots {
61
67
  count: number;
62
68
  }) => VNodeChild;
63
69
  }
70
+ /** table-layout Props */
71
+ export interface TableLayoutConfig {
72
+ /** 左侧标题 */
73
+ leftTitle?: string;
74
+ /** 已经选择item渲染, renderSelectedItem有值才为复杂布局 */
75
+ renderSelectedItem?: (record: any, actions: {
76
+ deleteItem: (record: any) => void;
77
+ }) => VNode;
78
+ }
@@ -1 +1 @@
1
- import '@aplus-frontend/ui-theme/dist/ap-table/ap-table.css';
1
+ import '@aplus-frontend/ui-theme/dist/ap-table-modal/index.css';
@@ -1 +1 @@
1
- import '@aplus-frontend/ui-theme/src/ap-table/ap-table.less';
1
+ import '@aplus-frontend/ui-theme/src/ap-table-modal/index.less';
@@ -0,0 +1,57 @@
1
+ import { TableLayoutConfig } from '../interface';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
3
+ declare function __VLS_template(): {
4
+ slots: {
5
+ default?(_: {}): any;
6
+ default?(_: {}): any;
7
+ };
8
+ refs: {};
9
+ attrs: Partial<{}>;
10
+ };
11
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
12
+ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<TableLayoutConfig & {
13
+ selectedList: any[];
14
+ }>, {
15
+ leftTitle: string;
16
+ selectedList: () => never[];
17
+ layoutType: string;
18
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
19
+ clear: () => void;
20
+ deleteItem: (record: any) => void;
21
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<TableLayoutConfig & {
22
+ selectedList: any[];
23
+ }>, {
24
+ leftTitle: string;
25
+ selectedList: () => never[];
26
+ layoutType: string;
27
+ }>>> & {
28
+ onClear?: (() => any) | undefined;
29
+ onDeleteItem?: ((record: any) => any) | undefined;
30
+ }, {
31
+ leftTitle: string;
32
+ selectedList: any[];
33
+ }, {}>;
34
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
35
+ export default _default;
36
+ type __VLS_WithDefaults<P, D> = {
37
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
38
+ default: D[K];
39
+ }> : P[K];
40
+ };
41
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
42
+ type __VLS_TypePropsToOption<T> = {
43
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
44
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
45
+ } : {
46
+ type: PropType<T[K]>;
47
+ required: true;
48
+ };
49
+ };
50
+ type __VLS_WithTemplateSlots<T, S> = T & {
51
+ new (): {
52
+ $slots: S;
53
+ };
54
+ };
55
+ type __VLS_PrettifyLocal<T> = {
56
+ [K in keyof T]: T[K];
57
+ } & {};
@@ -0,0 +1,4 @@
1
+ import f from "./index.vue2.mjs";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,74 @@
1
+ import { defineComponent as k, openBlock as o, createElementBlock as s, normalizeClass as a, unref as t, Fragment as c, createElementVNode as r, createVNode as n, renderSlot as u, withCtx as f, createTextVNode as I, toDisplayString as v, renderList as C, createBlock as S, resolveDynamicComponent as T } from "vue";
2
+ import "../../../config-provider/index.mjs";
3
+ import "../../index.mjs";
4
+ import { Button as L } from "@aplus-frontend/antdv";
5
+ import { useLocale as B } from "../../../config-provider/hooks/use-locale.mjs";
6
+ import { useNamespace as N } from "../../../config-provider/hooks/use-namespace.mjs";
7
+ import { ApTitle as y } from "../../ap-title/index.mjs";
8
+ const j = /* @__PURE__ */ k({
9
+ __name: "index",
10
+ props: {
11
+ leftTitle: { default: "" },
12
+ renderSelectedItem: {},
13
+ selectedList: { default: () => [] }
14
+ },
15
+ emits: ["clear", "deleteItem"],
16
+ setup($, { emit: b }) {
17
+ const { t: i } = B(), d = b, h = () => {
18
+ d("clear");
19
+ }, g = (e) => {
20
+ d("deleteItem", e);
21
+ }, { m: l } = N("ap-table-modal");
22
+ return (e, V) => (o(), s("div", {
23
+ class: a([t(l)("table-layout"), { "complex-layout": !!e.renderSelectedItem }])
24
+ }, [
25
+ e.renderSelectedItem ? (o(), s(c, { key: 0 }, [
26
+ r("div", {
27
+ class: a(t(l)("table-layout-left"))
28
+ }, [
29
+ n(t(y), {
30
+ style: { "margin-bottom": "16px" },
31
+ title: e.leftTitle
32
+ }, null, 8, ["title"]),
33
+ r("div", {
34
+ class: a(t(l)("table-layout-left-content"))
35
+ }, [
36
+ u(e.$slots, "default")
37
+ ], 2)
38
+ ], 2),
39
+ r("div", {
40
+ class: a(t(l)("table-layout-right"))
41
+ }, [
42
+ n(t(y), {
43
+ title: `${t(i)("ap.apTableModal.selected")} (${e.selectedList.length})`
44
+ }, {
45
+ suffix: f(() => [
46
+ n(t(L), {
47
+ type: "link",
48
+ style: { padding: "0px", height: "22px", "border-width": "0px" },
49
+ onClick: h
50
+ }, {
51
+ default: f(() => [
52
+ I(v(t(i)("ap.apTableModal.clear")), 1)
53
+ ]),
54
+ _: 1
55
+ })
56
+ ]),
57
+ _: 1
58
+ }, 8, ["title"]),
59
+ r("div", {
60
+ class: a(t(l)("table-layout-right-content"))
61
+ }, [
62
+ (o(!0), s(c, null, C(e.selectedList, (m) => {
63
+ var p;
64
+ return o(), S(T((p = e.renderSelectedItem) == null ? void 0 : p.call(e, m, { deleteItem: g })), { key: m });
65
+ }), 128))
66
+ ], 2)
67
+ ], 2)
68
+ ], 64)) : u(e.$slots, "default", { key: 1 })
69
+ ], 2));
70
+ }
71
+ });
72
+ export {
73
+ j as default
74
+ };