@aplus-frontend/ui 0.3.0 → 0.3.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 (139) hide show
  1. package/es/src/ap-action/item/index.vue2.mjs +11 -11
  2. package/es/src/ap-action/item-popconfirm/index.vue.mjs +2 -2
  3. package/es/src/ap-descriptions/ap-descriptions.vue.mjs +24 -24
  4. package/es/src/ap-drawer/utils/createDrawer.mjs +10 -10
  5. package/es/src/ap-field/checkbox/index.vue.mjs +3 -3
  6. package/es/src/ap-field/date/index.vue.mjs +2 -2
  7. package/es/src/ap-field/date-range/index.vue.mjs +2 -2
  8. package/es/src/ap-field/number/index.vue.mjs +3 -3
  9. package/es/src/ap-field/radio/index.vue.mjs +5 -5
  10. package/es/src/ap-field/rate/index.vue.mjs +4 -4
  11. package/es/src/ap-field/segmented/index.vue.mjs +3 -3
  12. package/es/src/ap-field/select/index.vue.mjs +4 -4
  13. package/es/src/ap-field/slider/index.vue.mjs +3 -3
  14. package/es/src/ap-field/switch/index.vue.mjs +4 -4
  15. package/es/src/ap-field/text-area/index.vue.mjs +3 -3
  16. package/es/src/ap-form/ap-form.vue.d.ts +5 -6
  17. package/es/src/ap-form/ap-form.vue2.mjs +5 -5
  18. package/es/src/ap-form/drawer-form/index.vue.d.ts +4 -4
  19. package/es/src/ap-form/drawer-form/index.vue.mjs +2 -2
  20. package/es/src/ap-form/interface.d.ts +12 -3
  21. package/es/src/ap-form/modal-form/index.vue.d.ts +4 -4
  22. package/es/src/ap-form/modal-form/index.vue.mjs +3 -3
  23. package/es/src/ap-form/search-form/index.vue.d.ts +5 -5
  24. package/es/src/ap-form/search-form/index.vue.mjs +2 -2
  25. package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue2.mjs +6 -6
  26. package/es/src/ap-list/index.vue.mjs +27 -27
  27. package/es/src/ap-modal/utils/createModal.mjs +10 -10
  28. package/es/src/ap-scroll-bar/ap-scroll-bar.vue2.mjs +3 -3
  29. package/es/src/ap-table/ap-table.vue2.mjs +3 -3
  30. package/es/src/ap-table/components/index/index.vue2.mjs +3 -3
  31. package/es/src/ap-table/components/setting/modal/index.vue2.mjs +4 -4
  32. package/es/src/ap-table/components/setting/select-group/index.vue2.mjs +2 -2
  33. package/es/src/ap-table/components/setting/sortable/index.vue2.mjs +3 -3
  34. package/es/src/ap-table/components/setting/sortable/item.vue2.mjs +8 -8
  35. package/es/src/ap-table/components/setting/sorter/index.vue2.mjs +6 -6
  36. package/es/src/ap-table/components/status/index.vue2.mjs +4 -4
  37. package/es/src/ap-table/hooks/use-table-content-height.mjs +13 -11
  38. package/es/src/ap-tag/ap-tag-group.vue.mjs +1 -1
  39. package/es/src/ap-upload/apUpload.vue.d.ts +57 -8
  40. package/es/src/ap-upload/apUpload.vue.mjs +56 -37
  41. package/es/src/ap-upload/components/MultipleFile.vue2.mjs +10 -10
  42. package/es/src/ap-upload/components/Picture.vue2.mjs +26 -26
  43. package/es/src/ap-upload/components/SingleFile.vue2.mjs +27 -27
  44. package/es/src/business/ap-appendix/ap-appendix.vue2.mjs +49 -49
  45. package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +10 -10
  46. package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +5 -5
  47. package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +11 -11
  48. package/es/src/business/ap-group-search/ap-group-search.vue.d.ts +1 -1
  49. package/es/src/business/ap-group-search/ap-group-search.vue2.mjs +26 -26
  50. package/es/src/business/ap-group-search/extension-select/index.vue2.mjs +15 -15
  51. package/es/src/business/ap-group-search/index.d.ts +1 -1
  52. package/es/src/business/ap-group-search/popover-select/index.vue2.mjs +15 -15
  53. package/es/src/business/ap-image/ApImage.vue2.mjs +28 -28
  54. package/es/src/business/ap-summary/ap-summary.vue2.mjs +1 -1
  55. package/es/src/business/ap-table-modal/table-modal.vue2.mjs +8 -9
  56. package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.d.ts +5 -2
  57. package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs +74 -70
  58. package/es/src/business/ap-upload-file/hook/useProps.mjs +8 -8
  59. package/es/src/business/ap-upload-file/icon/file-icon.vue.mjs +1 -1
  60. package/es/src/business/ap-upload-file/interface.d.ts +2 -0
  61. package/es/src/business/ap-upload-file/utils/fileList.d.ts +2 -2
  62. package/es/src/business/ap-upload-file/utils/fileList.mjs +12 -12
  63. package/es/src/business/ap-upload-file/utils/upload.d.ts +3 -0
  64. package/es/src/business/ap-upload-file/utils/upload.mjs +23 -23
  65. package/es/src/business/batch-input-group/index.vue.mjs +5 -5
  66. package/es/src/business/batch-input-group/popover-input/index.vue2.mjs +15 -15
  67. package/es/src/editable-table/form-item.vue.mjs +3 -3
  68. package/es/src/editable-table/index.vue.mjs +6 -6
  69. package/es/src/work-order-modal/work-order-modal.vue.mjs +28 -28
  70. package/lib/src/ap-action/item/index.vue2.js +1 -1
  71. package/lib/src/ap-action/item-popconfirm/index.vue.js +1 -1
  72. package/lib/src/ap-descriptions/ap-descriptions.vue.js +1 -1
  73. package/lib/src/ap-drawer/utils/createDrawer.js +1 -1
  74. package/lib/src/ap-field/checkbox/index.vue.js +1 -1
  75. package/lib/src/ap-field/date/index.vue.js +1 -1
  76. package/lib/src/ap-field/date-range/index.vue.js +1 -1
  77. package/lib/src/ap-field/number/index.vue.js +1 -1
  78. package/lib/src/ap-field/radio/index.vue.js +1 -1
  79. package/lib/src/ap-field/rate/index.vue.js +1 -1
  80. package/lib/src/ap-field/segmented/index.vue.js +1 -1
  81. package/lib/src/ap-field/select/index.vue.js +1 -1
  82. package/lib/src/ap-field/slider/index.vue.js +1 -1
  83. package/lib/src/ap-field/switch/index.vue.js +1 -1
  84. package/lib/src/ap-field/text-area/index.vue.js +1 -1
  85. package/lib/src/ap-form/ap-form.vue.d.ts +5 -6
  86. package/lib/src/ap-form/ap-form.vue2.js +1 -1
  87. package/lib/src/ap-form/drawer-form/index.vue.d.ts +4 -4
  88. package/lib/src/ap-form/drawer-form/index.vue.js +1 -1
  89. package/lib/src/ap-form/interface.d.ts +12 -3
  90. package/lib/src/ap-form/modal-form/index.vue.d.ts +4 -4
  91. package/lib/src/ap-form/modal-form/index.vue.js +1 -1
  92. package/lib/src/ap-form/search-form/index.vue.d.ts +5 -5
  93. package/lib/src/ap-form/search-form/index.vue.js +1 -1
  94. package/lib/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue2.js +1 -1
  95. package/lib/src/ap-list/index.vue.js +1 -1
  96. package/lib/src/ap-modal/utils/createModal.js +1 -1
  97. package/lib/src/ap-scroll-bar/ap-scroll-bar.vue2.js +1 -1
  98. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  99. package/lib/src/ap-table/components/index/index.vue2.js +1 -1
  100. package/lib/src/ap-table/components/setting/modal/index.vue2.js +1 -1
  101. package/lib/src/ap-table/components/setting/select-group/index.vue2.js +1 -1
  102. package/lib/src/ap-table/components/setting/sortable/index.vue2.js +1 -1
  103. package/lib/src/ap-table/components/setting/sortable/item.vue2.js +1 -1
  104. package/lib/src/ap-table/components/setting/sorter/index.vue2.js +1 -1
  105. package/lib/src/ap-table/components/status/index.vue2.js +1 -1
  106. package/lib/src/ap-table/hooks/use-table-content-height.js +1 -1
  107. package/lib/src/ap-tag/ap-tag-group.vue.js +1 -1
  108. package/lib/src/ap-upload/apUpload.vue.d.ts +57 -8
  109. package/lib/src/ap-upload/apUpload.vue.js +1 -1
  110. package/lib/src/ap-upload/components/MultipleFile.vue2.js +1 -1
  111. package/lib/src/ap-upload/components/Picture.vue2.js +1 -1
  112. package/lib/src/ap-upload/components/SingleFile.vue2.js +1 -1
  113. package/lib/src/business/ap-appendix/ap-appendix.vue2.js +1 -1
  114. package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.js +1 -1
  115. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue2.js +1 -1
  116. package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
  117. package/lib/src/business/ap-group-search/ap-group-search.vue.d.ts +1 -1
  118. package/lib/src/business/ap-group-search/ap-group-search.vue2.js +1 -1
  119. package/lib/src/business/ap-group-search/extension-select/index.vue2.js +1 -1
  120. package/lib/src/business/ap-group-search/index.d.ts +1 -1
  121. package/lib/src/business/ap-group-search/popover-select/index.vue2.js +2 -2
  122. package/lib/src/business/ap-image/ApImage.vue2.js +1 -1
  123. package/lib/src/business/ap-summary/ap-summary.vue2.js +1 -1
  124. package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
  125. package/lib/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.d.ts +5 -2
  126. package/lib/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.js +1 -1
  127. package/lib/src/business/ap-upload-file/hook/useProps.js +1 -1
  128. package/lib/src/business/ap-upload-file/icon/file-icon.vue.js +1 -1
  129. package/lib/src/business/ap-upload-file/interface.d.ts +2 -0
  130. package/lib/src/business/ap-upload-file/utils/fileList.d.ts +2 -2
  131. package/lib/src/business/ap-upload-file/utils/fileList.js +1 -1
  132. package/lib/src/business/ap-upload-file/utils/upload.d.ts +3 -0
  133. package/lib/src/business/ap-upload-file/utils/upload.js +1 -1
  134. package/lib/src/business/batch-input-group/index.vue.js +1 -1
  135. package/lib/src/business/batch-input-group/popover-input/index.vue2.js +2 -2
  136. package/lib/src/editable-table/form-item.vue.js +1 -1
  137. package/lib/src/editable-table/index.vue.js +1 -1
  138. package/lib/src/work-order-modal/work-order-modal.vue.js +1 -1
  139. package/package.json +2 -2
@@ -1,7 +1,7 @@
1
1
  import { ApFormExpose, ApFormSearchFormProps } from '../interface';
2
2
  import { ComponentInternalInstance, ExtractPropTypes, PropType, HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, ComponentOptionsMixin, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, DefineComponent, ComputedRef, PublicProps } from 'vue';
3
3
  import { ButtonSize } from '@aplus-frontend/antdv/es/button';
4
- import { ValidateMessages, FormLabelAlign, FieldData, ValidateErrorEntity, NamePath, ValidateOptions, InternalNamePath } from '@aplus-frontend/antdv/es/form/interface';
4
+ import { ValidateMessages, FormLabelAlign, NamePath, FieldData, ValidateErrorEntity, ValidateOptions, InternalNamePath } from '@aplus-frontend/antdv/es/form/interface';
5
5
  import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
6
6
  import { ColSize } from '@aplus-frontend/antdv/es/grid';
7
7
  import { RuleObject } from '@aplus-frontend/antdv/es/form';
@@ -107,7 +107,7 @@ declare function __VLS_template(): {
107
107
  readonly hideRequiredMark?: boolean | undefined;
108
108
  readonly validateOnRuleChange?: boolean | undefined;
109
109
  readonly scrollToFirstError?: boolean | Options<any> | undefined;
110
- readonly onValuesChange?: (((changedValues: any, values: any) => void) & ((changedValues: Recordable, allValues: Recordable) => void)) | undefined;
110
+ readonly onValuesChange?: (((changedValues: any, values: any) => void) & ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void)) | undefined;
111
111
  readonly onFieldsChange?: ((changedFields: FieldData[], allFields: FieldData[]) => void) | undefined;
112
112
  readonly onFinish?: ((values: any) => void) | undefined;
113
113
  readonly onFinishFailed?: ((errorInfo: ValidateErrorEntity<any>) => void) | undefined;
@@ -144,7 +144,7 @@ declare function __VLS_template(): {
144
144
  }> | undefined;
145
145
  scrollToField: (name: NamePath, options?: {}) => void;
146
146
  setFieldsValue: (values: Record<string, any>) => void;
147
- setFieldValue: (name: NamePath, newValue: any) => void;
147
+ setFieldValue: (name: NamePath, newValue: any, triggerChange?: boolean) => void;
148
148
  registerWatch: (callback: WatchFunc, inner: boolean) => () => void;
149
149
  validateFieldsReturnTransformed: (nameList?: NamePath[] | string, options?: ValidateOptions) => Promise<any>;
150
150
  getFieldsValueTransformed: (nameList?: InternalNamePath[] | true) => any;
@@ -188,7 +188,7 @@ declare function __VLS_template(): {
188
188
  hideRequiredMark: boolean;
189
189
  validateOnRuleChange: boolean;
190
190
  syncToUrl: boolean | ((values: Recordable, type: "get" | "set") => Recordable);
191
- }> & Omit<Readonly< ApFormProps> & Readonly<{}>, "validate" | "setFieldValue" | "setFieldsValue" | "resetFields" | "clearValidate" | "validateFields" | "getFieldsValue" | "scrollToField" | "getInternalInstance" | "validateFieldsReturnTransformed" | "getFieldsValueTransformed" | "registerWatch" | ("layout" | "colon" | "labelAlign" | "validateTrigger" | "hideRequiredMark" | "validateOnRuleChange" | "syncToUrl")> & ShallowUnwrapRef<{
191
+ }> & Omit<Readonly< ApFormProps> & Readonly<{}>, "validate" | "resetFields" | "clearValidate" | "validateFields" | "getFieldsValue" | "scrollToField" | "registerWatch" | "setFieldValue" | "setFieldsValue" | "validateFieldsReturnTransformed" | "getFieldsValueTransformed" | "getInternalInstance" | ("layout" | "colon" | "labelAlign" | "validateTrigger" | "hideRequiredMark" | "validateOnRuleChange" | "syncToUrl")> & ShallowUnwrapRef<{
192
192
  resetFields: () => Promise<void>;
193
193
  clearValidate: (name?: NamePath | NamePath[]) => void;
194
194
  validateFields: (nameList?: NamePath[] | string, options?: ValidateOptions) => Promise<{
@@ -202,7 +202,7 @@ declare function __VLS_template(): {
202
202
  }> | undefined;
203
203
  scrollToField: (name: NamePath, options?: {}) => void;
204
204
  setFieldsValue: (values: Record<string, any>) => void;
205
- setFieldValue: (name: NamePath, newValue: any) => void;
205
+ setFieldValue: (name: NamePath, newValue: any, triggerChange?: boolean) => void;
206
206
  registerWatch: (callback: WatchFunc, inner: boolean) => () => void;
207
207
  validateFieldsReturnTransformed: (nameList?: NamePath[] | string, options?: ValidateOptions) => Promise<any>;
208
208
  getFieldsValueTransformed: (nameList?: InternalNamePath[] | true) => any;
@@ -223,9 +223,9 @@ const i = 24, qe = /* @__PURE__ */ re({
223
223
  return W({
224
224
  apForm: g(() => o(C))
225
225
  }), (e, t) => (m(), y(Se, ce({
226
- class: o(G)(),
227
226
  ref_key: "apForm",
228
- ref: C
227
+ ref: C,
228
+ class: o(G)()
229
229
  }, o(Ce)(n, ["collapse", "defaultCollapse", "onUpdate:collapse", "searchText", "resetText", "onSubmit", "onReset", "extraInAction", "forceExpand", "countPerRow"])), {
230
230
  default: S(() => [(m(), y(A(R.value.hideNode))), a(o(me), {
231
231
  gutter: 16
@@ -13,18 +13,18 @@ const L = /* @__PURE__ */ u({
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
15
  return (r, k) => (p(), y("div", {
16
- class: s([e(i)(), `${e(c)(e(m))}`]),
17
- onScroll: f,
18
16
  ref_key: "containerRef",
19
- ref: l
17
+ ref: l,
18
+ class: s([e(i)(), `${e(c)(e(m))}`]),
19
+ onScroll: f
20
20
  }, [
21
21
  n("div", {
22
+ ref_key: "headerRef",
23
+ ref: a,
22
24
  class: s([e(o)("sticky_box"), r.bordered ? e(o)("sticky_box-bordered") : ""]),
23
25
  style: h({
24
26
  ...r.headerStyle
25
- }),
26
- ref_key: "headerRef",
27
- ref: a
27
+ })
28
28
  }, [
29
29
  d(r.$slots, "header")
30
30
  ], 6),
@@ -1,4 +1,4 @@
1
- import { defineComponent as H, ref as J, unref as t, computed as c, watch as Q, openBlock as i, createBlock as y, normalizeClass as u, withCtx as f, createElementVNode as X, normalizeStyle as v, renderSlot as l, createVNode as h, createElementBlock as p, Fragment as B, renderList as Y, mergeProps as Z, createCommentVNode as _ } from "vue";
1
+ import { defineComponent as H, ref as J, unref as t, computed as c, watch as Q, openBlock as i, createBlock as S, normalizeClass as u, withCtx as f, createElementVNode as X, normalizeStyle as v, renderSlot as l, createVNode as h, createElementBlock as p, Fragment as I, renderList as Y, mergeProps as Z, createCommentVNode as _ } from "vue";
2
2
  import { Empty as E, Spin as x, Pagination as ee } from "@aplus-frontend/antdv";
3
3
  import "../ap-table/index.mjs";
4
4
  import "../config-provider/index.mjs";
@@ -30,13 +30,13 @@ const he = /* @__PURE__ */ H({
30
30
  setup(V, { expose: F }) {
31
31
  const L = E.PRESENTED_IMAGE_SIMPLE, n = V, { b: d, e: N } = le("ap-list"), b = J(), {
32
32
  formRef: k,
33
- submit: D,
34
- reset: z,
33
+ submit: z,
34
+ reset: C,
35
35
  handleTableChange: R,
36
36
  data: g,
37
37
  refresh: T,
38
38
  refreshByDelete: $,
39
- tableProps: C
39
+ tableProps: P
40
40
  } = se({
41
41
  async request(e) {
42
42
  var r;
@@ -53,7 +53,7 @@ const he = /* @__PURE__ */ H({
53
53
  defaultPageSize: n.pagination ? n.pagination.defaultPageSize : void 0,
54
54
  formatParams: n.beforeSearchSubmit
55
55
  }), j = { form: k }, {
56
- pagination: I,
56
+ pagination: D,
57
57
  dataSource: q,
58
58
  onChange: A
59
59
  } = ne(n);
@@ -69,12 +69,12 @@ const he = /* @__PURE__ */ H({
69
69
  { currentDataSource: [], action: "paginate" }
70
70
  );
71
71
  }
72
- const s = c(() => t(m) ? t(q) : t(g).records), S = c(() => O(n.loading) ? t(g).loading : n.loading), M = c(() => {
72
+ const s = c(() => t(m) ? t(q) : t(g).records), y = c(() => O(n.loading) ? t(g).loading : n.loading), M = c(() => {
73
73
  var e, a;
74
- return n.pagination === !1 || n.virtual ? !1 : ((e = n.pagination) == null ? void 0 : e.hideOnSinglePage) !== !0 ? !0 : t(m) ? (((a = n.dataSource) == null ? void 0 : a.length) || 0) > t(I).pageSize : t(g).total > t(C).pagination.pageSize;
74
+ return n.pagination === !1 || n.virtual ? !1 : ((e = n.pagination) == null ? void 0 : e.hideOnSinglePage) !== !0 ? !0 : t(m) ? (((a = n.dataSource) == null ? void 0 : a.length) || 0) > t(D).pageSize : t(g).total > t(P).pagination.pageSize;
75
75
  }), m = c(() => !O(n.dataSource));
76
76
  Q(
77
- () => t(S),
77
+ () => t(y),
78
78
  (e) => {
79
79
  var a;
80
80
  (a = n.onLoadingChange) == null || a.call(n, e);
@@ -90,14 +90,14 @@ const he = /* @__PURE__ */ H({
90
90
  return (r == null ? void 0 : r()) || {};
91
91
  }
92
92
  return F({
93
- submit: () => D(),
94
- reset: () => z(),
93
+ submit: () => z(),
94
+ reset: () => C(),
95
95
  refresh: () => T(),
96
96
  refreshByDelete: (e) => $(e),
97
97
  scrollToFirstRow: W,
98
98
  getSearchFormValuesIfSetted: G
99
- }), (e, a) => (i(), y(t(x), {
100
- spinning: S.value,
99
+ }), (e, a) => (i(), S(t(x), {
100
+ spinning: y.value,
101
101
  class: u(t(d)("spin"))
102
102
  }, {
103
103
  default: f(() => [
@@ -107,12 +107,12 @@ const he = /* @__PURE__ */ H({
107
107
  }, [
108
108
  l(e.$slots, "header", {
109
109
  formIns: j,
110
- submit: t(D),
111
- reset: t(z)
110
+ submit: t(z),
111
+ reset: t(C)
112
112
  }),
113
113
  s.value.length === 0 ? l(e.$slots, "empty", {
114
114
  key: 0,
115
- loading: S.value
115
+ loading: y.value
116
116
  }, () => [
117
117
  h(t(E), { image: t(L) }, null, 8, ["image"])
118
118
  ]) : (i(), p("div", {
@@ -121,12 +121,12 @@ const he = /* @__PURE__ */ H({
121
121
  ref: b,
122
122
  style: v(e.contentStyle)
123
123
  }, [
124
- e.virtual ? (i(), p(B, { key: 0 }, [
125
- t(te)(e.virtual) ? (i(), y(t(re), {
124
+ e.virtual ? (i(), p(I, { key: 0 }, [
125
+ t(te)(e.virtual) ? (i(), S(t(re), {
126
126
  key: 0,
127
127
  class: u(t(d)("scroll-wrapper")),
128
128
  items: s.value,
129
- itemSize: e.virtual,
129
+ "item-size": e.virtual,
130
130
  "key-field": n.rowKey || "id"
131
131
  }, {
132
132
  default: f(({ item: r, index: o }) => [
@@ -136,20 +136,20 @@ const he = /* @__PURE__ */ H({
136
136
  })
137
137
  ]),
138
138
  _: 3
139
- }, 8, ["class", "items", "itemSize", "key-field"])) : (i(), y(t(oe), {
139
+ }, 8, ["class", "items", "item-size", "key-field"])) : (i(), S(t(oe), {
140
140
  key: 1,
141
141
  items: s.value,
142
- minItemSize: e.virtual.minItemSize,
142
+ "min-item-size": e.virtual.minItemSize,
143
143
  class: u(t(d)("scroll-wrapper"))
144
144
  }, {
145
145
  default: f(({ item: r, index: o, active: U }) => {
146
- var P, w;
146
+ var w, B;
147
147
  return [
148
148
  h(t(ie), {
149
149
  item: r,
150
150
  active: U,
151
- dataIndex: o,
152
- sizeDependencies: (w = (P = e.virtual).sizeDependencies) == null ? void 0 : w.call(P, r)
151
+ "data-index": o,
152
+ "size-dependencies": (B = (w = e.virtual).sizeDependencies) == null ? void 0 : B.call(w, r)
153
153
  }, {
154
154
  default: f(() => [
155
155
  l(e.$slots, "renderItem", {
@@ -158,16 +158,16 @@ const he = /* @__PURE__ */ H({
158
158
  })
159
159
  ]),
160
160
  _: 2
161
- }, 1032, ["item", "active", "dataIndex", "sizeDependencies"])
161
+ }, 1032, ["item", "active", "data-index", "size-dependencies"])
162
162
  ];
163
163
  }),
164
164
  _: 3
165
- }, 8, ["items", "minItemSize", "class"]))
165
+ }, 8, ["items", "min-item-size", "class"]))
166
166
  ], 64)) : l(e.$slots, "renderContent", {
167
167
  key: 1,
168
168
  dataSource: s.value
169
169
  }, () => [
170
- (i(!0), p(B, null, Y(s.value, (r, o) => l(e.$slots, "renderItem", {
170
+ (i(!0), p(I, null, Y(s.value, (r, o) => l(e.$slots, "renderItem", {
171
171
  item: r,
172
172
  index: o
173
173
  })), 256))
@@ -179,7 +179,7 @@ const he = /* @__PURE__ */ H({
179
179
  style: v(e.footerWarpperStyle)
180
180
  }, [
181
181
  h(t(ee), Z(
182
- m.value ? t(I) : t(ae)(t(C).pagination, ["showTotal"]),
182
+ m.value ? t(D) : t(ae)(t(P).pagination, ["showTotal"]),
183
183
  { onChange: K }
184
184
  ), null, 16)
185
185
  ], 6)) : _("", !0)
@@ -31,6 +31,16 @@ const V = (d) => {
31
31
  props: d
32
32
  };
33
33
  },
34
+ created() {
35
+ n = (e) => {
36
+ this.open = e;
37
+ }, t = (e) => {
38
+ this.props = {
39
+ ...this.props,
40
+ ...e
41
+ };
42
+ };
43
+ },
34
44
  methods: {
35
45
  async handleCancel() {
36
46
  var e, o, s, i, p;
@@ -59,16 +69,6 @@ const V = (d) => {
59
69
  }
60
70
  }
61
71
  },
62
- created() {
63
- n = (e) => {
64
- this.open = e;
65
- }, t = (e) => {
66
- this.props = {
67
- ...this.props,
68
- ...e
69
- };
70
- };
71
- },
72
72
  render() {
73
73
  const e = L(this.props, ["onCancel", "onOk", "open", "onUpdate:open", "getContainer", "icon"]);
74
74
  return f(P, b.value, {
@@ -92,12 +92,12 @@ const ve = /* @__PURE__ */ O({
92
92
  em: I
93
93
  } = ce("ap-scroll-bar");
94
94
  return (e, l) => (te(), le("div", {
95
+ ref_key: "containerRef",
96
+ ref: r,
95
97
  class: N(`${u(V)()} ${o.type === "horizontal" ? u(D)("horizontal") : u(D)("vertical")}`),
96
98
  style: U({
97
99
  display: w.value ? "none" : "block"
98
- }),
99
- ref_key: "containerRef",
100
- ref: r
100
+ })
101
101
  }, [oe("div", {
102
102
  id: "bar",
103
103
  class: N(`${u(G)("bar")} ${o.type === "horizontal" ? u(I)("bar", "horizontal") : u(I)("bar", "vertical")}`),
@@ -362,9 +362,9 @@ const wa = /* @__PURE__ */ Te({
362
362
  ref_key: "formRef",
363
363
  ref: k,
364
364
  "custom-reset": "",
365
+ "submit-loading": r(V).loading,
365
366
  onSubmit: r(A),
366
- onReset: r(D),
367
- "submit-loading": r(V).loading
367
+ onReset: r(D)
368
368
  }), _({
369
369
  default: F(() => [(p(!0), T(U, null, J(O.value, (t) => (p(), Q(Be(t.renderNode), w({
370
370
  key: t.dataIndex,
@@ -377,7 +377,7 @@ const wa = /* @__PURE__ */ Te({
377
377
  name: "extra",
378
378
  fn: F(() => [h(e.$slots, "searchFormExtra")]),
379
379
  key: "0"
380
- } : void 0]), 1040, ["onSubmit", "onReset", "submit-loading"])], 6)) : X("", !0), I("div", {
380
+ } : void 0]), 1040, ["submit-loading", "onSubmit", "onReset"])], 6)) : X("", !0), I("div", {
381
381
  ref_key: "contentRef",
382
382
  ref: ne,
383
383
  class: f([r(x)("table-wrapper"), e.card ? r(x)("table-wrapper-card") : null]),
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as n, computed as l, openBlock as s, createElementBlock as p, normalizeClass as d, toDisplayString as m } from "vue";
2
2
  import "../../../config-provider/index.mjs";
3
3
  import { useNamespace as c } from "../../../config-provider/hooks/use-namespace.mjs";
4
- const b = /* @__PURE__ */ n({
5
- name: "_ApTableIndex",
4
+ const _ = /* @__PURE__ */ n({
5
+ name: "ApTableIndex",
6
6
  __name: "index",
7
7
  props: {
8
8
  bordered: { type: Boolean, default: !1 },
@@ -16,5 +16,5 @@ const b = /* @__PURE__ */ n({
16
16
  }
17
17
  });
18
18
  export {
19
- b as default
19
+ _ as default
20
20
  };
@@ -65,15 +65,15 @@ const ie = {
65
65
  return (p, t) => (y(), M(q, null, [e(k) ? (y(), J(K(e(k)), {
66
66
  key: 0
67
67
  })) : P("", !0), l(e(W), {
68
- title: e(a)("ap.apTable.setting.title"),
69
68
  open: u.value,
70
69
  "onUpdate:open": t[2] || (t[2] = (o) => u.value = o),
70
+ title: e(a)("ap.apTable.setting.title"),
71
71
  width: 900,
72
- onOk: F,
73
72
  "body-style": {
74
73
  padding: "0px !important",
75
74
  height: "450px"
76
- }
75
+ },
76
+ onOk: F
77
77
  }, {
78
78
  default: s(() => [i("div", {
79
79
  class: r(e(g)("wrapper"))
@@ -126,7 +126,7 @@ const ie = {
126
126
  onReset: j
127
127
  }, null, 8, ["value"])], 2)], 2)]),
128
128
  _: 1
129
- }, 8, ["title", "open"])], 64));
129
+ }, 8, ["open", "title"])], 64));
130
130
  }
131
131
  });
132
132
  export {
@@ -58,8 +58,8 @@ const K = /* @__PURE__ */ E({
58
58
  u(r(w), {
59
59
  indeterminate: c.value,
60
60
  checked: (n = o.value) == null ? void 0 : n.show,
61
- "onUpdate:checked": g,
62
- disabled: B.value
61
+ disabled: B.value,
62
+ "onUpdate:checked": g
63
63
  }, {
64
64
  default: i(() => [
65
65
  (s(), h(k(r(b)(m.value.title))))
@@ -18,10 +18,10 @@ const w = /* @__PURE__ */ f({
18
18
  class: m(r(d)())
19
19
  }, [
20
20
  i(s, {
21
- value: l.value,
22
21
  open: a.value,
23
- "onUpdate:open": o[0] || (o[0] = (e) => a.value = e)
24
- }, null, 8, ["value", "open"]),
22
+ "onUpdate:open": o[0] || (o[0] = (e) => a.value = e),
23
+ value: l.value
24
+ }, null, 8, ["open", "value"]),
25
25
  (t = l.value.children) != null && t.length ? (n(), u("div", {
26
26
  key: 0,
27
27
  class: m(r(v)("hidden", a.value))
@@ -83,8 +83,8 @@ const G = ["src"], le = /* @__PURE__ */ E({
83
83
  default: d(() => [
84
84
  c(e(k), {
85
85
  rotate: 270,
86
- onClick: _,
87
- class: t(e(a)("action-icon"))
86
+ class: t(e(a)("action-icon")),
87
+ onClick: _
88
88
  }, null, 8, ["class"])
89
89
  ]),
90
90
  _: 1
@@ -95,8 +95,8 @@ const G = ["src"], le = /* @__PURE__ */ E({
95
95
  }, {
96
96
  default: d(() => [
97
97
  c(e(z), {
98
- onClick: L,
99
- class: t(e(a)("action-icon"))
98
+ class: t(e(a)("action-icon")),
99
+ onClick: L
100
100
  }, null, 8, ["class"])
101
101
  ]),
102
102
  _: 1
@@ -108,8 +108,8 @@ const G = ["src"], le = /* @__PURE__ */ E({
108
108
  default: d(() => [
109
109
  c(e(k), {
110
110
  rotate: 90,
111
- onClick: F,
112
- class: t(e(a)("action-icon"))
111
+ class: t(e(a)("action-icon")),
112
+ onClick: F
113
113
  }, null, 8, ["class"])
114
114
  ]),
115
115
  _: 1
@@ -120,8 +120,8 @@ const G = ["src"], le = /* @__PURE__ */ E({
120
120
  }, {
121
121
  default: d(() => [
122
122
  c(e(A), {
123
- onClick: R,
124
- class: t(e(a)("action-icon"))
123
+ class: t(e(a)("action-icon")),
124
+ onClick: R
125
125
  }, null, 8, ["class"])
126
126
  ]),
127
127
  _: 1
@@ -140,8 +140,8 @@ const W = { key: 0 }, X = { key: 1 }, Y = { key: 2 }, re = /* @__PURE__ */ A({
140
140
  }, k(n(h)("ap.apTable.setting.fixToLeft")), 3),
141
141
  m(n(N), {
142
142
  "model-value": i.value,
143
- "onUpdate:modelValue": D,
144
- "item-key": "key"
143
+ "item-key": "key",
144
+ "onUpdate:modelValue": D
145
145
  }, {
146
146
  item: v(({ element: o }) => [
147
147
  C(o) ? (c(), b(R, {
@@ -158,8 +158,8 @@ const W = { key: 0 }, X = { key: 1 }, Y = { key: 2 }, re = /* @__PURE__ */ A({
158
158
  }, k(n(h)("ap.apTable.setting.unFixed")), 3),
159
159
  m(n(N), {
160
160
  "model-value": s.value,
161
- "onUpdate:modelValue": E,
162
- "item-key": "key"
161
+ "item-key": "key",
162
+ "onUpdate:modelValue": E
163
163
  }, {
164
164
  item: v(({ element: o }) => [
165
165
  C(o) ? (c(), b(R, {
@@ -176,8 +176,8 @@ const W = { key: 0 }, X = { key: 1 }, Y = { key: 2 }, re = /* @__PURE__ */ A({
176
176
  }, k(n(h)("ap.apTable.setting.fixToRight")), 3),
177
177
  m(n(N), {
178
178
  "model-value": u.value,
179
- "onUpdate:modelValue": j,
180
- "item-key": "key"
179
+ "item-key": "key",
180
+ "onUpdate:modelValue": j
181
181
  }, {
182
182
  item: v(({ element: o }) => [
183
183
  C(o) ? (c(), b(R, {
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as n, computed as o, openBlock as u, createBlock as a, unref as m, normalizeProps as p, mergeProps as l, createCommentVNode as c } from "vue";
2
2
  import { Badge as s } from "@aplus-frontend/antdv";
3
- const v = /* @__PURE__ */ n({
4
- name: "_ApTableStatus",
3
+ const _ = /* @__PURE__ */ n({
4
+ name: "ApTableStatus",
5
5
  __name: "index",
6
6
  props: {
7
7
  valueEnum: {},
@@ -9,9 +9,9 @@ const v = /* @__PURE__ */ n({
9
9
  },
10
10
  setup(t) {
11
11
  const e = t, r = o(() => e.valueEnum[e.value]);
12
- return (_, d) => r.value ? (u(), a(m(s), p(l({ key: 0 }, r.value)), null, 16)) : c("", !0);
12
+ return (d, f) => r.value ? (u(), a(m(s), p(l({ key: 0 }, r.value)), null, 16)) : c("", !0);
13
13
  }
14
14
  });
15
15
  export {
16
- v as default
16
+ _ as default
17
17
  };
@@ -1,5 +1,7 @@
1
- import { useElementSize as b } from "@vueuse/core";
2
- import { ref as s, computed as y, unref as f, onUpdated as v } from "vue";
1
+ import "../../config-provider/index.mjs";
2
+ import { useElementSize as y } from "@vueuse/core";
3
+ import { ref as f, computed as v, unref as h, onUpdated as q } from "vue";
4
+ import { useGlobalConfig as N } from "../../config-provider/hooks/use-global-config.mjs";
3
5
  function p(t) {
4
6
  if (!t)
5
7
  return 0;
@@ -12,17 +14,17 @@ function m(t) {
12
14
  const e = getComputedStyle(t);
13
15
  return t.clientHeight + p(e.marginTop) + p(e.marginBottom);
14
16
  }
15
- const T = (t) => {
16
- const e = s(), { height: d } = b(e), a = s();
17
+ const _ = (t) => {
18
+ const e = f(), { height: d } = y(e), H = N("namespace"), a = f();
17
19
  let i = !1;
18
- const H = y(() => {
19
- var u, c, l, g, h;
20
- const n = ((c = (u = e.value) == null ? void 0 : u.querySelector(".aplus-ap-table-header-wrapper")) == null ? void 0 : c.clientHeight) || 0, r = ((g = (l = e.value) == null ? void 0 : l.querySelector(".ant-table-header")) == null ? void 0 : g.clientHeight) || 47, o = (h = e.value) == null ? void 0 : h.querySelector(".ant-pagination"), S = o ? m(o) : f(a);
20
+ const S = v(() => {
21
+ var u, c, l, g, s;
22
+ const n = ((c = (u = e.value) == null ? void 0 : u.querySelector(`.${H}-ap-table-header-wrapper`)) == null ? void 0 : c.clientHeight) || 0, r = ((g = (l = e.value) == null ? void 0 : l.querySelector(".ant-table-header")) == null ? void 0 : g.clientHeight) || 47, o = (s = e.value) == null ? void 0 : s.querySelector(".ant-pagination"), b = o ? m(o) : h(a);
21
23
  return o && (i = !0), Math.ceil(
22
- f(d) - r - n - (S || 0) - ((t == null ? void 0 : t.offset) || 0)
24
+ h(d) - r - n - (b || 0) - ((t == null ? void 0 : t.offset) || 0)
23
25
  );
24
26
  });
25
- return v(() => {
27
+ return q(() => {
26
28
  var r;
27
29
  if (i)
28
30
  return;
@@ -32,8 +34,8 @@ const T = (t) => {
32
34
  return;
33
35
  }
34
36
  a.value = m(n), i = !0;
35
- }), { contentRef: e, height: H };
37
+ }), { contentRef: e, height: S };
36
38
  };
37
39
  export {
38
- T as default
40
+ _ as default
39
41
  };
@@ -85,9 +85,9 @@ const ue = /* @__PURE__ */ D({
85
85
  ]),
86
86
  default: g(() => [
87
87
  o("div", {
88
- class: W(M.value),
89
88
  ref_key: "container",
90
89
  ref: u,
90
+ class: W(M.value),
91
91
  style: _({
92
92
  pointerEvents: p.value ? "auto" : "none"
93
93
  // opacity: isUpdating ? '0' : '1'