@aplus-frontend/ui 0.5.3 → 0.5.5

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 (193) hide show
  1. package/es/index.mjs +37 -33
  2. package/es/src/ap-action/group/index.vue.mjs +3 -3
  3. package/es/src/ap-action/item/index.vue2.mjs +5 -5
  4. package/es/src/ap-action/item-dropdown/index.vue.mjs +7 -7
  5. package/es/src/ap-action/item-modal/index.vue.mjs +2 -2
  6. package/es/src/ap-action/item-popconfirm/index.vue.mjs +2 -2
  7. package/es/src/ap-button/ap-action-button.vue.mjs +2 -2
  8. package/es/src/ap-button/ap-button.vue.mjs +2 -2
  9. package/es/src/ap-button/ap-confirm-button.vue.mjs +2 -2
  10. package/es/src/ap-descriptions/ap-descriptions.vue.mjs +3 -3
  11. package/es/src/ap-descriptions/help-message/index.vue2.mjs +4 -4
  12. package/es/src/ap-download/ap-download.vue.mjs +1 -1
  13. package/es/src/ap-field/checkbox/index.vue.mjs +1 -1
  14. package/es/src/ap-field/date/index.vue.mjs +4 -4
  15. package/es/src/ap-field/date-range/index.vue.mjs +8 -8
  16. package/es/src/ap-field/index.mjs +30 -30
  17. package/es/src/ap-field/number/index.vue.mjs +8 -8
  18. package/es/src/ap-field/radio/index.vue.mjs +1 -1
  19. package/es/src/ap-field/rate/index.vue.mjs +2 -2
  20. package/es/src/ap-field/segmented/index.vue.mjs +1 -1
  21. package/es/src/ap-field/select/index.vue.mjs +2 -2
  22. package/es/src/ap-field/slider/index.vue.mjs +4 -4
  23. package/es/src/ap-field/switch/index.vue.mjs +3 -3
  24. package/es/src/ap-field/text/index.vue2.mjs +13 -13
  25. package/es/src/ap-field/text/password.vue.mjs +2 -2
  26. package/es/src/ap-field/text-area/index.vue.mjs +3 -3
  27. package/es/src/ap-form/ap-form.vue2.mjs +2 -2
  28. package/es/src/ap-form/drawer-form/index.vue.mjs +9 -9
  29. package/es/src/ap-form/item/index.vue.mjs +7 -7
  30. package/es/src/ap-form/item-group/index.vue.mjs +3 -3
  31. package/es/src/ap-form/items/checkbox/index.vue.mjs +2 -2
  32. package/es/src/ap-form/items/date/index.vue.mjs +2 -2
  33. package/es/src/ap-form/items/date-range/index.vue.mjs +2 -2
  34. package/es/src/ap-form/items/number/index.vue.mjs +2 -2
  35. package/es/src/ap-form/items/radio/index.vue.mjs +2 -2
  36. package/es/src/ap-form/items/select/index.vue.mjs +2 -2
  37. package/es/src/ap-form/items/switch/index.vue.mjs +2 -2
  38. package/es/src/ap-form/items/text/group.vue2.mjs +2 -2
  39. package/es/src/ap-form/items/text/index.vue2.mjs +2 -2
  40. package/es/src/ap-form/items/text/password.vue.mjs +2 -2
  41. package/es/src/ap-form/items/text-area/index.vue.mjs +2 -2
  42. package/es/src/ap-form/modal-form/index.vue.mjs +7 -7
  43. package/es/src/ap-form/render/item.vue.mjs +2 -2
  44. package/es/src/ap-form/search-form/index.vue.mjs +1 -1
  45. package/es/src/ap-form/set/index.vue.mjs +1 -1
  46. package/es/src/ap-grid/editable/form-item.vue.d.ts +16 -0
  47. package/es/src/ap-grid/editable/form-item.vue.mjs +257 -0
  48. package/es/src/ap-grid/editable/form-item.vue2.mjs +4 -0
  49. package/es/src/ap-grid/editable/index.vue.d.ts +18 -0
  50. package/es/src/ap-grid/editable/index.vue.mjs +288 -0
  51. package/es/src/ap-grid/editable/index.vue2.mjs +4 -0
  52. package/es/src/ap-grid/editable/interface.d.ts +95 -0
  53. package/es/src/ap-grid/editable/interface.mjs +1 -0
  54. package/es/src/ap-grid/editable/style/css.d.ts +0 -0
  55. package/es/src/ap-grid/editable/style/css.js +1 -0
  56. package/es/src/ap-grid/editable/style/index.d.ts +0 -0
  57. package/es/src/ap-grid/editable/style/index.js +1 -0
  58. package/es/src/ap-grid/hooks/use-editable-columns.d.ts +6 -0
  59. package/es/src/ap-grid/hooks/use-editable-columns.mjs +68 -0
  60. package/es/src/ap-grid/hooks/use-inner-params.mjs +3 -3
  61. package/es/src/ap-grid/index.d.ts +4 -1
  62. package/es/src/ap-grid/index.mjs +3 -0
  63. package/es/src/ap-grid/index.vue.mjs +113 -103
  64. package/es/src/ap-grid/interface.d.ts +15 -0
  65. package/es/src/ap-grid/utils/col.mjs +39 -39
  66. package/es/src/ap-grid/utils/editable.d.ts +3 -0
  67. package/es/src/ap-grid/utils/editable.mjs +27 -0
  68. package/es/src/ap-grid/utils/table.mjs +24 -17
  69. package/es/src/ap-info-layout/ApInfoLayout.vue.mjs +2 -2
  70. package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue2.mjs +2 -2
  71. package/es/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue2.mjs +1 -1
  72. package/es/src/ap-list/index.vue.mjs +4 -4
  73. package/es/src/ap-table/ap-table.vue2.mjs +172 -159
  74. package/es/src/ap-table/components/dynamic-component/index.vue2.mjs +2 -2
  75. package/es/src/ap-table/components/index/index.vue2.mjs +2 -2
  76. package/es/src/ap-table/components/paragraph-ellipsis/index.vue2.mjs +3 -3
  77. package/es/src/ap-table/components/setting/modal/index.vue2.mjs +3 -3
  78. package/es/src/ap-table/components/setting/select-group/index.vue2.mjs +1 -1
  79. package/es/src/ap-table/components/setting/sortable/index.vue2.mjs +1 -1
  80. package/es/src/ap-table/components/setting/sortable/item.vue2.mjs +1 -1
  81. package/es/src/ap-table/components/setting/sorter/index.vue2.mjs +11 -11
  82. package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +1 -1
  83. package/es/src/ap-table/components/status/index.vue2.mjs +2 -2
  84. package/es/src/ap-table/constants.mjs +40 -40
  85. package/es/src/ap-table/context.d.ts +4 -4
  86. package/es/src/ap-table/hooks/use-sorted-filtered.d.ts +4 -1
  87. package/es/src/ap-table/hooks/use-sorted-filtered.mjs +11 -9
  88. package/es/src/ap-table/hooks/use-table-column-state.mjs +3 -3
  89. package/es/src/ap-table/hooks/use-table-paging-ng.d.ts +3 -1
  90. package/es/src/ap-table/hooks/use-table-paging-ng.mjs +53 -49
  91. package/es/src/ap-table/hooks/use-table-paging.d.ts +1 -1
  92. package/es/src/ap-tag/ap-tag-group.vue.mjs +8 -8
  93. package/es/src/ap-tag/ap-tag.vue.mjs +2 -2
  94. package/es/src/ap-upload/apUpload.vue.mjs +5 -5
  95. package/es/src/ap-upload/components/MultipleFile.vue2.mjs +3 -3
  96. package/es/src/ap-upload/components/Picture.vue2.mjs +6 -6
  97. package/es/src/ap-upload/components/SingleFile.vue2.mjs +7 -7
  98. package/es/src/business/ap-appendix/ap-appendix.vue2.mjs +1 -1
  99. package/es/src/business/ap-appendix/icons/file-icon.vue.mjs +2 -2
  100. package/es/src/business/ap-batch-action/ApBatchAction.vue2.mjs +2 -2
  101. package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +2 -2
  102. package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +10 -10
  103. package/es/src/business/ap-batch-action-group/MenuItemGroup.vue2.mjs +1 -1
  104. package/es/src/business/ap-batch-action-group/index.d.ts +4 -4
  105. package/es/src/business/ap-button-group/ApButtonGroup.vue2.mjs +1 -1
  106. package/es/src/business/ap-card/ApCard.vue2.mjs +7 -7
  107. package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +11 -11
  108. package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +9 -9
  109. package/es/src/business/ap-group-search/ap-group-search.vue2.mjs +5 -5
  110. package/es/src/business/ap-group-search/extension-select/index.vue2.mjs +4 -4
  111. package/es/src/business/ap-group-search/images/icon-down.vue.mjs +2 -2
  112. package/es/src/business/ap-group-search/images/icon-line-select.vue.mjs +2 -2
  113. package/es/src/business/ap-group-search/popover-select/index.vue2.mjs +2 -2
  114. package/es/src/business/ap-image/ApImage.vue2.mjs +1 -1
  115. package/es/src/business/ap-input-radio/ApInputRadio.vue2.mjs +2 -2
  116. package/es/src/business/ap-ladder/ApLadder.vue2.mjs +1 -1
  117. package/es/src/business/ap-ladder/HelpMessageIcon.vue2.mjs +1 -1
  118. package/es/src/business/ap-select-layout/select-layout.vue2.mjs +4 -4
  119. package/es/src/business/ap-status/ApStatus.vue2.mjs +8 -8
  120. package/es/src/business/ap-status/group/ApStatusGroup.vue2.mjs +4 -4
  121. package/es/src/business/ap-summary/ap-summary.vue2.mjs +1 -1
  122. package/es/src/business/ap-table-modal/modal-title.vue2.mjs +2 -2
  123. package/es/src/business/ap-table-modal/table-layout/index.vue2.mjs +14 -14
  124. package/es/src/business/ap-table-modal/table-modal.vue2.mjs +3 -3
  125. package/es/src/business/ap-title/ApTitle.vue2.mjs +7 -7
  126. package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs +1 -1
  127. package/es/src/business/ap-upload-file/icon/delete-icon.vue.mjs +2 -2
  128. package/es/src/business/ap-upload-file/icon/file-icon.vue.mjs +2 -2
  129. package/es/src/business/batch-input-group/form-item.vue.mjs +2 -2
  130. package/es/src/business/batch-input-group/index.vue.mjs +7 -6
  131. package/es/src/business/batch-input-group/popover-input/index.vue2.mjs +2 -2
  132. package/es/src/check-card/index.vue2.mjs +3 -3
  133. package/es/src/config-provider/config-provider-props.mjs +1 -1
  134. package/es/src/editable-table/form-item.vue.mjs +2 -2
  135. package/es/src/editable-table/index.vue.mjs +2 -2
  136. package/es/src/editable-table/utils.d.ts +3 -2
  137. package/es/src/full-screen/index.vue.mjs +3 -3
  138. package/es/src/hooks/useFullScreen.mjs +5 -5
  139. package/es/src/index.mjs +24 -20
  140. package/es/src/path-map.mjs +3 -1
  141. package/es/src/portal/index.vue.mjs +2 -2
  142. package/es/src/scroll-bar/index.vue.mjs +3 -3
  143. package/es/src/scroll-bar/internal.vue.mjs +2 -2
  144. package/es/src/scroll-view/index.vue.mjs +9 -9
  145. package/es/src/work-order-modal/help-message.vue2.mjs +2 -2
  146. package/es/src/work-order-modal/work-order-modal.vue.mjs +2 -2
  147. package/lib/index.js +1 -1
  148. package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
  149. package/lib/src/ap-field/index.js +1 -1
  150. package/lib/src/ap-field/text/index.vue2.js +1 -1
  151. package/lib/src/ap-grid/editable/form-item.vue.d.ts +16 -0
  152. package/lib/src/ap-grid/editable/form-item.vue.js +1 -0
  153. package/lib/src/ap-grid/editable/form-item.vue2.js +1 -0
  154. package/lib/src/ap-grid/editable/index.vue.d.ts +18 -0
  155. package/lib/src/ap-grid/editable/index.vue.js +1 -0
  156. package/lib/src/ap-grid/editable/index.vue2.js +1 -0
  157. package/lib/src/ap-grid/editable/interface.d.ts +95 -0
  158. package/lib/src/ap-grid/editable/interface.js +1 -0
  159. package/lib/src/ap-grid/editable/style/css.cjs +1 -0
  160. package/lib/src/ap-grid/editable/style/css.d.ts +0 -0
  161. package/lib/src/ap-grid/editable/style/index.cjs +1 -0
  162. package/lib/src/ap-grid/editable/style/index.d.ts +0 -0
  163. package/lib/src/ap-grid/hooks/use-editable-columns.d.ts +6 -0
  164. package/lib/src/ap-grid/hooks/use-editable-columns.js +1 -0
  165. package/lib/src/ap-grid/index.d.ts +4 -1
  166. package/lib/src/ap-grid/index.js +1 -1
  167. package/lib/src/ap-grid/index.vue.js +1 -1
  168. package/lib/src/ap-grid/interface.d.ts +15 -0
  169. package/lib/src/ap-grid/utils/col.js +1 -1
  170. package/lib/src/ap-grid/utils/editable.d.ts +3 -0
  171. package/lib/src/ap-grid/utils/editable.js +1 -0
  172. package/lib/src/ap-grid/utils/table.js +1 -1
  173. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  174. package/lib/src/ap-table/constants.js +1 -1
  175. package/lib/src/ap-table/context.d.ts +4 -4
  176. package/lib/src/ap-table/hooks/use-sorted-filtered.d.ts +4 -1
  177. package/lib/src/ap-table/hooks/use-sorted-filtered.js +1 -1
  178. package/lib/src/ap-table/hooks/use-table-paging-ng.d.ts +3 -1
  179. package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
  180. package/lib/src/ap-table/hooks/use-table-paging.d.ts +1 -1
  181. package/lib/src/ap-upload/apUpload.vue.js +1 -1
  182. package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +2 -2
  183. package/lib/src/business/ap-batch-action-group/index.d.ts +4 -4
  184. package/lib/src/business/batch-input-group/index.vue.js +2 -2
  185. package/lib/src/config-provider/config-provider-props.js +1 -1
  186. package/lib/src/editable-table/utils.d.ts +3 -2
  187. package/lib/src/index.js +1 -1
  188. package/lib/src/path-map.js +1 -1
  189. package/package.json +1 -1
  190. package/theme/ap-grid/editable.css +22 -0
  191. package/theme/ap-grid/editable.less +28 -0
  192. package/theme/index.css +22 -0
  193. package/theme/index.less +1 -0
@@ -1,12 +1,12 @@
1
- import { createVNode as F, Fragment as M } from "vue";
2
- import { isUndefined as S, isArray as c, isString as v, isBoolean as A, isNumber as B, pick as R } from "lodash-unified";
1
+ import { createVNode as F, Fragment as w } from "vue";
2
+ import { isUndefined as M, isArray as S, isString as v, isBoolean as A, isNumber as B, pick as R } from "lodash-unified";
3
3
  import { valueEnumToArray as N, getTableTitle as E, getTableRenderType as W, getTableRenderProps as _, getTableCellRenderNode as j } from "../../ap-table/utils.mjs";
4
4
  import { noRenderAsFormItemValueList as k } from "../../ap-table/constants.mjs";
5
5
  import "../../ap-table/components/paragraph-ellipsis/index.vue.mjs";
6
6
  import z from "../../ap-table/components/paragraph-ellipsis/index.vue2.mjs";
7
7
  function O(e) {
8
- if (!S(e))
9
- return c(e) ? e.reduce((r, t) => v(t) ? `${r}.${t}` : `${r}[${t}]`, "") : String(e);
8
+ if (!M(e))
9
+ return S(e) ? e.reduce((r, t) => v(t) ? `${r}.${t}` : `${r}[${t}]`, "") : String(e);
10
10
  }
11
11
  function b(e) {
12
12
  if (e)
@@ -51,59 +51,59 @@ function V(e, r, t) {
51
51
  if (k.includes(e.valueType))
52
52
  return t;
53
53
  if (e.copyable || e.ellipsis) {
54
- const l = U(e.ellipsis, r, t);
54
+ const n = U(e.ellipsis, r, t);
55
55
  return F(z, {
56
56
  copyable: e.copyable,
57
- ellipsis: l,
57
+ ellipsis: n,
58
58
  content: t
59
59
  }, null);
60
60
  }
61
61
  return t;
62
62
  }
63
- function x(e, r, t) {
64
- const l = R(e, ["width", "minWidth", "align"]);
65
- return l.field = O(e.dataIndex), l.fixed = b(e.fixed), l.title = e.title, l.slots = {
63
+ function y(e, r, t) {
64
+ const n = R(e, ["width", "minWidth", "align"]);
65
+ return n.field = O(e.dataIndex), n.fixed = b(e.fixed), n.slots = {
66
66
  header: () => E(e, t, void 0, r)
67
- }, l.headerAlign = e.align, l.showOverflow = !1, l.showFooterOverflow = !1, l;
67
+ }, n.headerAlign = e.align, n.showOverflow = !1, n.showFooterOverflow = !1, n;
68
68
  }
69
- function o(e, r, t, l) {
69
+ function x(e, r, t, n) {
70
70
  const i = R(e, ["width", "minWidth", "align", "resizable"]);
71
- i.field = O(e.dataIndex), i.fixed = b(e.fixed), i.headerAlign = e.align, i.footerAlign = e.align, i.showOverflow = !1, i.showFooterOverflow = !1, Object.assign(i, G(e.sorter)), i.filters = I(e), i.filterMultiple = e.filterMultiple, i.filterMethod = L(e.onFilter), i.title = e.title;
71
+ i.field = O(e.dataIndex), i.fixed = b(e.fixed), i.headerAlign = e.align, i.footerAlign = e.align, i.showOverflow = !1, i.showFooterOverflow = !1, Object.assign(i, G(e.sorter)), i.filters = I(e), i.filterMultiple = e.filterMultiple, i.filterMethod = L(e.onFilter);
72
72
  const a = ({
73
73
  value: d,
74
- ...n
74
+ ...l
75
75
  }) => {
76
- var T, y;
77
- const f = W(e), p = _({
76
+ var T, o;
77
+ const f = W(e), u = _({
78
78
  ...e,
79
79
  valueType: f
80
80
  }, {
81
81
  value: d,
82
- ...n
83
- }), $ = j(f, p, n.record, l), h = ((T = e.renderText) == null ? void 0 : T.call(e, {
82
+ ...l
83
+ }), c = j(f, u, l.record, n), h = ((T = e.renderText) == null ? void 0 : T.call(e, {
84
84
  value: d,
85
- ...n
86
- })) || d, w = e.renderText ? F(M, null, [(y = e.renderText) == null ? void 0 : y.call(e, {
85
+ ...l
86
+ })) || d, $ = e.renderText ? F(w, null, [(o = e.renderText) == null ? void 0 : o.call(e, {
87
87
  value: d,
88
- ...n
89
- })]) : $;
90
- let u = V(e, h, w);
91
- return e.customRender && (u = e.customRender({
88
+ ...l
89
+ })]) : c;
90
+ let p = V(e, h, $);
91
+ return e.customRender && (p = e.customRender({
92
92
  value: d,
93
- ...n,
93
+ ...l,
94
94
  column: e,
95
- originalNode: u,
95
+ originalNode: p,
96
96
  originalText: h
97
- })), u;
97
+ })), p;
98
98
  }, s = ({
99
99
  row: d,
100
- rowIndex: n
100
+ rowIndex: l
101
101
  }) => a({
102
102
  value: d[i.field],
103
103
  text: d[i.field],
104
104
  record: d,
105
- index: n,
106
- renderIndex: n,
105
+ index: l,
106
+ renderIndex: l,
107
107
  column: e
108
108
  });
109
109
  return i.slots = {
@@ -112,25 +112,25 @@ function o(e, r, t, l) {
112
112
  footer: s
113
113
  }, i;
114
114
  }
115
- function X(e, r, t, l) {
115
+ function X(e, r, t, n) {
116
116
  var s;
117
117
  if (!((s = e.children) != null && s.length))
118
- return o(e, r, t, l);
118
+ return x(e, r, t, n);
119
119
  function i(d) {
120
- return d.map((n) => {
120
+ return d.map((l) => {
121
121
  var f;
122
- if ((f = n.children) != null && f.length) {
123
- const p = x(n, r, t);
124
- return p.children = i(n.children), p;
122
+ if ((f = l.children) != null && f.length) {
123
+ const u = y(l, r, t);
124
+ return u.children = i(l.children), u;
125
125
  }
126
- return o(n, r, t, l);
126
+ return x(l, r, t, n);
127
127
  });
128
128
  }
129
- const a = x(e, r, t);
129
+ const a = y(e, r, t);
130
130
  return a.children = i(e.children), a;
131
131
  }
132
132
  export {
133
133
  X as transformCol,
134
- x as transformToColGroup,
135
- o as transformToColumn
134
+ y as transformToColGroup,
135
+ x as transformToColumn
136
136
  };
@@ -0,0 +1,3 @@
1
+ import { ValueTypeRenderConfig } from '../../config-provider';
2
+ import { EditableGridColumnType } from '../editable/interface';
3
+ export declare function getFinalEditableNode(column: EditableGridColumnType, innerProps: Record<string, any>, record: any, extraRenderMap?: Record<string, ValueTypeRenderConfig>): import("vue/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,27 @@
1
+ import { isVNode as p, createVNode as l } from "vue";
2
+ import "../../ap-form/index.mjs";
3
+ import { omit as F } from "lodash-unified";
4
+ import { getEditableComponent as N } from "../../editable-table/utils.mjs";
5
+ import d from "../../ap-form/item/index.vue.mjs";
6
+ function r(t) {
7
+ return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !p(t);
8
+ }
9
+ function _(t, o, b, i) {
10
+ var c;
11
+ if (t.customRenderFormItem) {
12
+ const f = t.customRenderFormItem(t, o.field, !0, b);
13
+ return l(d, F(o, ["field"]), r(f) ? f : {
14
+ default: () => [f]
15
+ });
16
+ }
17
+ const u = N(t.valueType);
18
+ if (u)
19
+ return l(u, o, null);
20
+ const e = i == null ? void 0 : i[t.valueType], m = (c = e == null ? void 0 : e.renderFormItem) == null ? void 0 : c.call(e, o.field);
21
+ return m ? l(d, o, r(m) ? m : {
22
+ default: () => [m]
23
+ }) : null;
24
+ }
25
+ export {
26
+ _ as getFinalEditableNode
27
+ };
@@ -1,9 +1,16 @@
1
1
  import { omit as u, isUndefined as d, isFunction as c, isNumber as f } from "lodash-unified";
2
2
  const h = 30, b = 50;
3
- function R(e) {
4
- var i, l, n;
3
+ function v(e) {
4
+ var r, l, n;
5
5
  const t = {
6
- ...u(e, ["columns", "request", "searchForm", "dataSource"])
6
+ ...u(e, [
7
+ "columns",
8
+ "request",
9
+ "searchForm",
10
+ "dataSource",
11
+ "rowKey",
12
+ "value"
13
+ ])
7
14
  };
8
15
  if (e.adaptive && (t.autoResize = !0, t.height = "100%"), e.columnResizable && (t.columnConfig ? t.columnConfig.resizable = !0 : t.columnConfig = {
9
16
  resizable: !0
@@ -11,15 +18,15 @@ function R(e) {
11
18
  const o = e.rowSelection === !0 ? {} : e.rowSelection;
12
19
  o.type === "radio" ? t.radioConfig = {
13
20
  highlight: !0,
14
- checkMethod({ row: r }) {
15
- return o.disabled ? !o.disabled(r) : !0;
21
+ checkMethod({ row: i }) {
22
+ return o.disabled ? !o.disabled(i) : !0;
16
23
  },
17
- checkRowKey: (i = o.defaultSelectedRowKeys) == null ? void 0 : i[0],
24
+ checkRowKey: (r = o.defaultSelectedRowKeys) == null ? void 0 : r[0],
18
25
  reserve: d(o.preserveSelectedRowKeys) ? !0 : o.preserveSelectedRowKeys
19
26
  } : t.checkboxConfig = {
20
27
  highlight: !0,
21
- checkMethod({ row: r }) {
22
- return o.disabled ? !o.disabled(r) : !0;
28
+ checkMethod({ row: i }) {
29
+ return o.disabled ? !o.disabled(i) : !0;
23
30
  },
24
31
  checkRowKeys: o.defaultSelectedRowKeys,
25
32
  reserve: d(o.preserveSelectedRowKeys) ? !0 : o.preserveSelectedRowKeys
@@ -35,21 +42,21 @@ function R(e) {
35
42
  enabled: !1
36
43
  }) : (a(t, "X", (l = e.virtual) == null ? void 0 : l.x), a(t, "Y", (n = e.virtual) == null ? void 0 : n.y)), t;
37
44
  }
38
- function a(e, t, i) {
39
- const l = t === "X", n = l ? "virtualXConfig" : "virtualYConfig", o = i !== !1, r = l ? h : b, s = f(i) && i >= 0 ? i : r;
45
+ function a(e, t, r) {
46
+ const l = t === "X", n = l ? "virtualXConfig" : "virtualYConfig", o = r !== !1, i = l ? h : b, s = f(r) && r >= 0 ? r : i;
40
47
  e[n] = {
41
48
  enabled: o,
42
49
  gt: s
43
50
  };
44
51
  }
45
- function v(e) {
46
- const t = e === !0 || !e.type ? "checkbox" : e.type, i = e === !0 ? 60 : e.columnWidth || 60;
52
+ function y(e) {
53
+ const t = e === !0 || !e.type ? "checkbox" : e.type, r = e === !0 ? 60 : e.columnWidth || 60;
47
54
  return {
48
55
  type: t,
49
- width: i
56
+ width: r
50
57
  };
51
58
  }
52
- function y(e) {
59
+ function R(e) {
53
60
  const t = (e == null ? void 0 : e.width) || "auto";
54
61
  return {
55
62
  type: "expand",
@@ -58,7 +65,7 @@ function y(e) {
58
65
  };
59
66
  }
60
67
  export {
61
- y as getRowExpandProps,
62
- v as getRowSelectionProps,
63
- R as toVxeProps
68
+ R as getRowExpandProps,
69
+ y as getRowSelectionProps,
70
+ v as toVxeProps
64
71
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as a, computed as n, openBlock as p, createBlock as s, resolveDynamicComponent as i, normalizeProps as l, guardReactiveProps as m, createSlots as c, renderList as u, withCtx as d, renderSlot as f } from "vue";
1
+ import { defineComponent as a, computed as n, createBlock as p, openBlock as s, resolveDynamicComponent as i, normalizeProps as l, guardReactiveProps as m, createSlots as c, renderList as u, withCtx as d, renderSlot as f } from "vue";
2
2
  import "./ap-info-layout-aplus/ap-info-layout.vue.mjs";
3
3
  import "./ap-info-layout-admin/ApInfoLayoutAdmin.vue.mjs";
4
4
  import "../config-provider/index.mjs";
@@ -26,7 +26,7 @@ const D = /* @__PURE__ */ a({
26
26
  }
27
27
  return e;
28
28
  });
29
- return (e, h) => (p(), s(i(t.value), l(m(e.$props)), c({ _: 2 }, [
29
+ return (e, h) => (s(), p(i(t.value), l(m(e.$props)), c({ _: 2 }, [
30
30
  u(e.$slots, (k, o) => ({
31
31
  name: o,
32
32
  fn: d(() => [
@@ -1,4 +1,4 @@
1
- import { defineComponent as u, ref as t, openBlock as p, createElementBlock as y, normalizeClass as s, unref as e, createElementVNode as n, normalizeStyle as h, renderSlot as d } from "vue";
1
+ import { defineComponent as u, ref as t, createElementBlock as p, openBlock as y, normalizeClass as s, unref as e, createElementVNode as n, normalizeStyle as h, renderSlot as d } from "vue";
2
2
  import "../../config-provider/index.mjs";
3
3
  import { useNamespace as v } from "../../config-provider/hooks/use-namespace.mjs";
4
4
  import { useGlobalConfig as _ } from "../../config-provider/hooks/use-global-config.mjs";
@@ -12,7 +12,7 @@ const L = /* @__PURE__ */ u({
12
12
  const l = t(), a = t(), f = () => {
13
13
  l.value && a.value && (l.value.scrollTop > 0 ? a.value.classList.add(o("header-shadow")) : a.value.classList.remove(o("header-shadow")));
14
14
  }, { b: i, e: o, m: c } = v("ap-info-layout-admin"), m = _("uiMode", "admin");
15
- return (r, k) => (p(), y("div", {
15
+ return (r, k) => (y(), p("div", {
16
16
  ref_key: "containerRef",
17
17
  ref: l,
18
18
  class: s([e(i)(), `${e(c)(e(m))}`]),
@@ -1,4 +1,4 @@
1
- import { defineComponent as $, computed as t, onActivated as y, onDeactivated as B, openBlock as d, createElementBlock as E, normalizeClass as a, createBlock as H, Teleport as k, renderSlot as s, createElementVNode as o, createVNode as A, unref as N } from "vue";
1
+ import { defineComponent as $, computed as t, onActivated as y, onDeactivated as B, createElementBlock as E, openBlock as d, normalizeClass as a, createBlock as H, createElementVNode as o, Teleport as k, renderSlot as s, createVNode as A, unref as N } from "vue";
2
2
  import { Divider as T } from "@aplus-frontend/antdv";
3
3
  import "../../config-provider/index.mjs";
4
4
  import { useNamespace as V } from "../../config-provider/hooks/use-namespace.mjs";
@@ -1,4 +1,4 @@
1
- import { defineComponent as H, ref as J, unref as t, computed as d, watch as Q, openBlock as i, createBlock as S, normalizeClass as u, withCtx as f, createElementVNode as X, normalizeStyle as h, renderSlot as l, createVNode as v, createElementBlock as p, Fragment as I, renderList as Y, mergeProps as Z, createCommentVNode as _ } from "vue";
1
+ import { defineComponent as H, ref as J, unref as t, computed as d, watch as Q, createBlock as S, openBlock as i, normalizeClass as u, withCtx as f, createElementVNode as X, normalizeStyle as h, renderSlot as l, createElementBlock as p, createCommentVNode as Y, createVNode as v, Fragment as I, renderList as Z, mergeProps as _ } from "vue";
2
2
  import { Empty as E, Spin as x, Pagination as ee } from "@aplus-frontend/antdv";
3
3
  import { useTablePaging as te } from "../ap-table/hooks/use-table-paging-ng.mjs";
4
4
  import "../config-provider/index.mjs";
@@ -165,7 +165,7 @@ const he = /* @__PURE__ */ H({
165
165
  key: 1,
166
166
  dataSource: s.value
167
167
  }, () => [
168
- (i(!0), p(I, null, Y(s.value, (r, o) => l(e.$slots, "renderItem", {
168
+ (i(!0), p(I, null, Z(s.value, (r, o) => l(e.$slots, "renderItem", {
169
169
  item: r,
170
170
  index: o
171
171
  })), 256))
@@ -176,11 +176,11 @@ const he = /* @__PURE__ */ H({
176
176
  class: u(t(N)("footer")),
177
177
  style: h(e.footerWarpperStyle)
178
178
  }, [
179
- v(t(ee), Z(
179
+ v(t(ee), _(
180
180
  c.value ? t(B) : t(ne)(t(z).pagination, ["showTotal"]),
181
181
  { onChange: K }
182
182
  ), null, 16)
183
- ], 6)) : _("", !0)
183
+ ], 6)) : Y("", !0)
184
184
  ], 6)
185
185
  ]),
186
186
  _: 3