@aplus-frontend/ui 6.35.2 → 6.37.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 (144) hide show
  1. package/es/src/ag-grid/index.vue.d.ts +2 -30
  2. package/es/src/ag-grid/index.vue.mjs +1 -1
  3. package/es/src/ag-grid/interface.d.ts +15 -0
  4. package/es/src/ap-action/group/index.vue.mjs +41 -34
  5. package/es/src/ap-action/interface.d.ts +17 -0
  6. package/es/src/ap-action/item/index.vue2.mjs +34 -25
  7. package/es/src/ap-action/item-dropdown/index.vue.mjs +22 -20
  8. package/es/src/ap-action/item-modal/index.vue.mjs +14 -12
  9. package/es/src/ap-action/item-popconfirm/index.vue.mjs +13 -11
  10. package/es/src/ap-field/date/index.vue.mjs +6 -5
  11. package/es/src/ap-field/date/read.vue2.mjs +8 -7
  12. package/es/src/ap-field/date-range/index.vue.mjs +20 -17
  13. package/es/src/ap-field/date-range/read.vue2.mjs +3 -2
  14. package/es/src/ap-field/index.d.ts +3 -3
  15. package/es/src/ap-field/text/index.vue.d.ts +1 -1
  16. package/es/src/ap-field/text/password.vue.d.ts +1 -1
  17. package/es/src/ap-field/text/read-password.vue.d.ts +1 -1
  18. package/es/src/ap-field/text/read.vue.d.ts +1 -1
  19. package/es/src/ap-field/text-area/index.vue.d.ts +1 -1
  20. package/es/src/ap-field/text-area/read.vue.d.ts +1 -1
  21. package/es/src/ap-form/ap-form.vue.d.ts +1 -1
  22. package/es/src/ap-form/drawer-form/index.vue.d.ts +20 -20
  23. package/es/src/ap-form/interface.d.ts +12 -1
  24. package/es/src/ap-form/item/index.vue.d.ts +34 -34
  25. package/es/src/ap-form/items/checkbox/index.vue.d.ts +2 -2
  26. package/es/src/ap-form/items/date/index.vue.d.ts +2 -2
  27. package/es/src/ap-form/items/date-range/index.vue.d.ts +2 -2
  28. package/es/src/ap-form/items/number/index.vue.d.ts +2 -2
  29. package/es/src/ap-form/items/radio/index.vue.d.ts +2 -2
  30. package/es/src/ap-form/items/select/index.vue.d.ts +2 -2
  31. package/es/src/ap-form/items/switch/index.vue.d.ts +2 -2
  32. package/es/src/ap-form/items/text/index.vue.d.ts +8 -8
  33. package/es/src/ap-form/items/text/password.vue.d.ts +8 -8
  34. package/es/src/ap-form/items/text-area/index.vue.d.ts +6 -6
  35. package/es/src/ap-form/items/tree-select/index.vue.d.ts +2 -2
  36. package/es/src/ap-form/modal-form/index.vue.d.ts +30 -21
  37. package/es/src/ap-form/render/item.vue.d.ts +2 -2
  38. package/es/src/ap-form/search-form/hooks/use-count-per-row.d.ts +13 -2
  39. package/es/src/ap-form/search-form/hooks/use-count-per-row.mjs +32 -22
  40. package/es/src/ap-form/search-form/index.vue.d.ts +298 -20
  41. package/es/src/ap-form/search-form/index.vue.mjs +94 -88
  42. package/es/src/ap-modal/utils/createModal.mjs +38 -35
  43. package/es/src/ap-pro-card/components/card/index.vue.d.ts +1 -1
  44. package/es/src/ap-table/constants.d.ts +77 -77
  45. package/es/src/ap-upload/components/MultipleFile.vue2.mjs +132 -109
  46. package/es/src/business/ap-attachment/ApAttachment.d.ts +9 -0
  47. package/es/src/business/ap-attachment/ApAttachment.mjs +48 -47
  48. package/es/src/business/ap-attachment/constans.d.ts +4 -0
  49. package/es/src/business/ap-attachment/constans.mjs +4 -0
  50. package/es/src/business/ap-attachment/index.d.ts +15 -0
  51. package/es/src/business/ap-attachment/interface.d.ts +1 -0
  52. package/es/src/business/ap-table-modal/table-modal.vue2.mjs +15 -13
  53. package/es/src/business/ap-view/components/main-button-content.vue.d.ts +10 -10
  54. package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +10 -10
  55. package/es/src/business/batch-input-group/form-item.vue.d.ts +2 -2
  56. package/es/src/business/batch-input-group/index.vue.d.ts +4 -4
  57. package/es/src/config-provider/config-provider-props.d.ts +5 -1
  58. package/es/src/config-provider/config-provider.d.ts +10 -1
  59. package/es/src/config-provider/hooks/use-global-config.d.ts +5 -1
  60. package/es/src/config-provider/index.d.ts +16 -1
  61. package/es/src/utils/config-provider-preset.d.ts +3 -1
  62. package/es/src/version.d.ts +1 -1
  63. package/es/src/version.mjs +1 -1
  64. package/es/src/work-order-modal/work-order-modal.vue.d.ts +10 -10
  65. package/es/src/work-order-modal/work-order-modal.vue.mjs +6 -4
  66. package/lib/src/ag-grid/index.vue.d.ts +2 -30
  67. package/lib/src/ag-grid/index.vue.js +1 -1
  68. package/lib/src/ag-grid/interface.d.ts +15 -0
  69. package/lib/src/ap-action/group/index.vue.js +1 -1
  70. package/lib/src/ap-action/interface.d.ts +17 -0
  71. package/lib/src/ap-action/item/index.vue2.js +1 -1
  72. package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
  73. package/lib/src/ap-action/item-modal/index.vue.js +1 -1
  74. package/lib/src/ap-action/item-popconfirm/index.vue.js +1 -1
  75. package/lib/src/ap-field/date/index.vue.js +1 -1
  76. package/lib/src/ap-field/date/read.vue2.js +1 -1
  77. package/lib/src/ap-field/date-range/index.vue.js +1 -1
  78. package/lib/src/ap-field/date-range/read.vue2.js +1 -1
  79. package/lib/src/ap-field/index.d.ts +3 -3
  80. package/lib/src/ap-field/text/index.vue.d.ts +1 -1
  81. package/lib/src/ap-field/text/password.vue.d.ts +1 -1
  82. package/lib/src/ap-field/text/read-password.vue.d.ts +1 -1
  83. package/lib/src/ap-field/text/read.vue.d.ts +1 -1
  84. package/lib/src/ap-field/text-area/index.vue.d.ts +1 -1
  85. package/lib/src/ap-field/text-area/read.vue.d.ts +1 -1
  86. package/lib/src/ap-form/ap-form.vue.d.ts +1 -1
  87. package/lib/src/ap-form/drawer-form/index.vue.d.ts +20 -20
  88. package/lib/src/ap-form/interface.d.ts +12 -1
  89. package/lib/src/ap-form/item/index.vue.d.ts +34 -34
  90. package/lib/src/ap-form/items/checkbox/index.vue.d.ts +2 -2
  91. package/lib/src/ap-form/items/date/index.vue.d.ts +2 -2
  92. package/lib/src/ap-form/items/date-range/index.vue.d.ts +2 -2
  93. package/lib/src/ap-form/items/number/index.vue.d.ts +2 -2
  94. package/lib/src/ap-form/items/radio/index.vue.d.ts +2 -2
  95. package/lib/src/ap-form/items/select/index.vue.d.ts +2 -2
  96. package/lib/src/ap-form/items/switch/index.vue.d.ts +2 -2
  97. package/lib/src/ap-form/items/text/index.vue.d.ts +8 -8
  98. package/lib/src/ap-form/items/text/password.vue.d.ts +8 -8
  99. package/lib/src/ap-form/items/text-area/index.vue.d.ts +6 -6
  100. package/lib/src/ap-form/items/tree-select/index.vue.d.ts +2 -2
  101. package/lib/src/ap-form/modal-form/index.vue.d.ts +30 -21
  102. package/lib/src/ap-form/render/item.vue.d.ts +2 -2
  103. package/lib/src/ap-form/search-form/hooks/use-count-per-row.d.ts +13 -2
  104. package/lib/src/ap-form/search-form/hooks/use-count-per-row.js +1 -1
  105. package/lib/src/ap-form/search-form/index.vue.d.ts +298 -20
  106. package/lib/src/ap-form/search-form/index.vue.js +1 -1
  107. package/lib/src/ap-modal/utils/createModal.js +1 -1
  108. package/lib/src/ap-pro-card/components/card/index.vue.d.ts +1 -1
  109. package/lib/src/ap-table/constants.d.ts +77 -77
  110. package/lib/src/ap-upload/components/MultipleFile.vue2.js +1 -1
  111. package/lib/src/business/ap-attachment/ApAttachment.d.ts +9 -0
  112. package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
  113. package/lib/src/business/ap-attachment/constans.d.ts +4 -0
  114. package/lib/src/business/ap-attachment/constans.js +1 -1
  115. package/lib/src/business/ap-attachment/index.d.ts +15 -0
  116. package/lib/src/business/ap-attachment/interface.d.ts +1 -0
  117. package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
  118. package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +10 -10
  119. package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +10 -10
  120. package/lib/src/business/batch-input-group/form-item.vue.d.ts +2 -2
  121. package/lib/src/business/batch-input-group/index.vue.d.ts +4 -4
  122. package/lib/src/config-provider/config-provider-props.d.ts +5 -1
  123. package/lib/src/config-provider/config-provider.d.ts +10 -1
  124. package/lib/src/config-provider/hooks/use-global-config.d.ts +5 -1
  125. package/lib/src/config-provider/index.d.ts +16 -1
  126. package/lib/src/utils/config-provider-preset.d.ts +3 -1
  127. package/lib/src/version.d.ts +1 -1
  128. package/lib/src/version.js +1 -1
  129. package/lib/src/work-order-modal/work-order-modal.vue.d.ts +10 -10
  130. package/lib/src/work-order-modal/work-order-modal.vue.js +1 -1
  131. package/package.json +3 -3
  132. package/theme/ag-grid/index.css +6 -0
  133. package/theme/ap-action/item.css +6 -0
  134. package/theme/ap-action/item.less +9 -0
  135. package/theme/ap-attachment/ap-attachment.css +8 -4
  136. package/theme/ap-attachment/ap-attachment.less +8 -4
  137. package/theme/ap-grid/index.css +6 -0
  138. package/theme/ap-table/ap-table.css +6 -0
  139. package/theme/ap-table-modal/index.css +6 -0
  140. package/theme/ap-upload/index.css +6 -0
  141. package/theme/ap-upload/multiple-file.css +6 -0
  142. package/theme/ap-upload/multiple-file.less +7 -0
  143. package/theme/editable-table/index.css +6 -0
  144. package/theme/index.css +20 -4
@@ -1,38 +1,10 @@
1
- import { AgGridColumnType, AgGridExpose, AgGridProps } from './interface';
1
+ import { AgGridExpose, AgGridProps, AgGridSlots } from './interface';
2
2
  import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
3
3
  declare const _default: <RecordType>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
4
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & AgGridProps<RecordType> & Partial<{}>> & PublicProps;
5
5
  expose(exposed: ShallowUnwrapRef<AgGridExpose>): void;
6
6
  attrs: any;
7
- slots: Readonly<{
8
- /**
9
- * 自定义查询表单额外的区域
10
- */
11
- searchFormExtra?: any;
12
- /**
13
- * 自定义表格上部查询表单下部分区域的渲染
14
- */
15
- title?: (params: {
16
- selectedRows: RecordType[];
17
- selectedRowKeys: (string | number)[];
18
- shownColumns: AgGridColumnType<RecordType>[];
19
- clearAll: () => void;
20
- }) => any;
21
- }> & {
22
- /**
23
- * 自定义查询表单额外的区域
24
- */
25
- searchFormExtra?: any;
26
- /**
27
- * 自定义表格上部查询表单下部分区域的渲染
28
- */
29
- title?: (params: {
30
- selectedRows: RecordType[];
31
- selectedRowKeys: (string | number)[];
32
- shownColumns: AgGridColumnType<RecordType>[];
33
- clearAll: () => void;
34
- }) => any;
35
- };
7
+ slots: Readonly<AgGridSlots<RecordType>> & AgGridSlots<RecordType>;
36
8
  emit: {};
37
9
  }>) => VNode & {
38
10
  __ctx?: Awaited<typeof __VLS_setup>;
@@ -196,7 +196,7 @@ const mt = /* @__PURE__ */ oo({
196
196
  clearAll: ze,
197
197
  selectMultiByKeys: Ae
198
198
  } = ho({
199
- ...S,
199
+ ...S.value,
200
200
  dataSource: Ne,
201
201
  rowKey: o.rowKey
202
202
  }), Ve = {
@@ -392,3 +392,18 @@ export type AgGridExpose<SearchParamsType = Recordable, RecordType = any> = {
392
392
  */
393
393
  _internalGridApi?: GridApi | undefined;
394
394
  };
395
+ export type AgGridSlots<RecordType> = {
396
+ /**
397
+ * 自定义查询表单额外的区域
398
+ */
399
+ searchFormExtra?: any;
400
+ /**
401
+ * 自定义表格上部查询表单下部分区域的渲染
402
+ */
403
+ title?: (params: {
404
+ selectedRows: RecordType[];
405
+ selectedRowKeys: (string | number)[];
406
+ shownColumns: AgGridColumnType<RecordType>[];
407
+ clearAll: () => void;
408
+ }) => any;
409
+ };
@@ -1,67 +1,74 @@
1
- import { defineComponent as h, computed as s, unref as c, createBlock as r, openBlock as t, withCtx as k, createElementBlock as u, createCommentVNode as A, Fragment as a, renderList as v, mergeProps as i } from "vue";
2
- import { Space as y } from "@aplus-frontend/antdv";
1
+ import { defineComponent as k, computed as m, unref as c, createBlock as n, openBlock as o, withCtx as A, createElementBlock as a, createCommentVNode as y, Fragment as p, renderList as v, mergeProps as s } from "vue";
2
+ import { Space as w } from "@aplus-frontend/antdv";
3
3
  import "../item/index.vue.mjs";
4
4
  import "../item-modal/index.vue2.mjs";
5
5
  import "../item-popconfirm/index.vue2.mjs";
6
6
  import "../item-dropdown/index.vue2.mjs";
7
7
  import "../../config-provider/index.mjs";
8
- import { isUndefined as w } from "lodash-unified";
9
- import { useLocale as x } from "../../config-provider/hooks/use-locale.mjs";
10
- import p from "../item-dropdown/index.vue.mjs";
11
- import $ from "../item-modal/index.vue.mjs";
12
- import b from "../item-popconfirm/index.vue.mjs";
13
- import B from "../item/index.vue2.mjs";
14
- const q = /* @__PURE__ */ h({
8
+ import { isUndefined as x } from "lodash-unified";
9
+ import { useLocale as B } from "../../config-provider/hooks/use-locale.mjs";
10
+ import f from "../item-dropdown/index.vue.mjs";
11
+ import F from "../item-modal/index.vue.mjs";
12
+ import $ from "../item-popconfirm/index.vue.mjs";
13
+ import b from "../item/index.vue2.mjs";
14
+ const q = /* @__PURE__ */ k({
15
15
  name: "ApActionGroup",
16
16
  __name: "index",
17
17
  props: {
18
18
  count: { default: 3 },
19
19
  trigger: { default: () => ["hover"] },
20
20
  placement: { default: "bottomRight" },
21
- actions: { default: () => [] }
21
+ actions: { default: () => [] },
22
+ iconFirst: { type: Boolean }
22
23
  },
23
- setup(f) {
24
- const n = f, { t: _ } = x(), m = s(
25
- () => n.actions.filter(
26
- (e) => e.visible || w(e.visible)
24
+ setup(_) {
25
+ const r = _, { t: g } = B(), l = m(
26
+ () => r.actions.filter(
27
+ (e) => e.visible || x(e.visible)
27
28
  )
28
- ), g = s(() => c(m).length > n.count), l = s(() => {
29
- const e = c(m);
30
- return e.length <= n.count ? {
31
- showActions: e,
32
- menuActions: []
33
- } : {
34
- showActions: e.slice(0, n.count - 1),
35
- menuActions: e.slice(n.count - 1)
29
+ ), d = m(() => c(l).length > r.count), u = m(() => {
30
+ const e = c(l);
31
+ if (e.length <= r.count)
32
+ return {
33
+ showActions: e,
34
+ menuActions: []
35
+ };
36
+ let i = e.slice(0, r.count - 1);
37
+ return r.iconFirst && (i = i.map((t) => ({
38
+ ...t,
39
+ iconFirst: !0
40
+ }))), {
41
+ showActions: i,
42
+ menuActions: e.slice(r.count - 1)
36
43
  };
37
44
  });
38
- return (e, C) => (t(), r(c(y), {
45
+ return (e, i) => (o(), n(c(w), {
39
46
  size: 16,
40
47
  align: "center"
41
48
  }, {
42
- default: k(() => [
43
- (t(!0), u(a, null, v(l.value.showActions, (o, d) => (t(), u(a, { key: d }, [
44
- o.actions ? (t(), r(p, i({
49
+ default: A(() => [
50
+ (o(!0), a(p, null, v(u.value.showActions, (t, h) => (o(), a(p, { key: h }, [
51
+ t.actions ? (o(), n(f, s({
45
52
  key: 0,
46
53
  ref_for: !0
47
- }, o), null, 16)) : o.modalProps ? (t(), r($, i({
54
+ }, t), null, 16)) : t.modalProps ? (o(), n(F, s({
48
55
  key: 1,
49
56
  ref_for: !0
50
- }, o), null, 16)) : o.popconfirmProps ? (t(), r(b, i({
57
+ }, t), null, 16)) : t.popconfirmProps ? (o(), n($, s({
51
58
  key: 2,
52
59
  ref_for: !0
53
- }, o), null, 16)) : (t(), r(B, i({
60
+ }, t), null, 16)) : (o(), n(b, s({
54
61
  key: 3,
55
62
  ref_for: !0
56
- }, o), null, 16))
63
+ }, t), null, 16))
57
64
  ], 64))), 128)),
58
- g.value ? (t(), r(p, {
65
+ d.value ? (o(), n(f, {
59
66
  key: 0,
60
- actions: l.value.menuActions,
67
+ actions: u.value.menuActions,
61
68
  placement: e.placement,
62
69
  trigger: e.trigger,
63
- text: c(_)("ap.common.more")
64
- }, null, 8, ["actions", "placement", "trigger", "text"])) : A("", !0)
70
+ text: c(g)("ap.common.more")
71
+ }, null, 8, ["actions", "placement", "trigger", "text"])) : y("", !0)
65
72
  ]),
66
73
  _: 1
67
74
  }));
@@ -34,6 +34,15 @@ export type ApActionItemProps = {
34
34
  * 是否显示loading效果
35
35
  */
36
36
  loading?: boolean;
37
+ /**
38
+ * 配置左侧显示的图标
39
+ * @since 6.37.0
40
+ */
41
+ icon?: any;
42
+ /**
43
+ * 是否优先显示图标
44
+ */
45
+ iconFirst?: boolean;
37
46
  };
38
47
  export type MixedActionTypes = ApActionItemProps | ApActionItemModalProps | ApActionItemPopconfirmProps;
39
48
  export type GroupActionTypes = MixedActionTypes | ApActionItemDropdownProps;
@@ -69,6 +78,10 @@ export type ApActionGroupProps = {
69
78
  * 菜单项配置
70
79
  */
71
80
  actions?: GroupActionTypes[];
81
+ /**
82
+ * 对于平铺Action,优先显示图标
83
+ */
84
+ iconFirst?: boolean;
72
85
  };
73
86
  export type ApActionItemModalProps = ApActionItemProps & {
74
87
  /**
@@ -89,4 +102,8 @@ export type ApActionItemSlots = {
89
102
  disabled: boolean;
90
103
  onClick: (e: MouseEvent) => void;
91
104
  }) => any;
105
+ /**
106
+ * 自定义左侧图标
107
+ */
108
+ icon?: any;
92
109
  };
@@ -1,8 +1,8 @@
1
- import { defineComponent as y, createPropsRestProxy as b, ref as k, unref as s, computed as d, renderSlot as c, createElementBlock as u, createCommentVNode as f, openBlock as n, mergeProps as v, createBlock as m, isVNode as C, resolveDynamicComponent as B, toDisplayString as A } from "vue";
1
+ import { defineComponent as C, useSlots as B, createPropsRestProxy as A, ref as F, computed as d, unref as l, renderSlot as y, createElementBlock as u, createCommentVNode as a, openBlock as n, mergeProps as h, createBlock as f, normalizeClass as L, resolveDynamicComponent as g, isVNode as N, toDisplayString as P } from "vue";
2
2
  import "../../config-provider/index.mjs";
3
- import h from "@aplus-frontend/antdv/es/button/LoadingIcon";
4
- import { useNamespace as L } from "../../config-provider/hooks/use-namespace.mjs";
5
- const N = { key: 1 }, I = /* @__PURE__ */ y({
3
+ import S from "@aplus-frontend/antdv/es/button/LoadingIcon";
4
+ import { useNamespace as $ } from "../../config-provider/hooks/use-namespace.mjs";
5
+ const D = { key: 1 }, E = /* @__PURE__ */ C({
6
6
  name: "ApActionItem",
7
7
  __name: "index",
8
8
  props: {
@@ -12,41 +12,50 @@ const N = { key: 1 }, I = /* @__PURE__ */ y({
12
12
  visible: { type: Boolean, default: !0 },
13
13
  onAction: { type: Function },
14
14
  onClick: { type: Function },
15
- loading: { type: Boolean, default: !1 }
15
+ loading: { type: Boolean, default: !1 },
16
+ icon: {},
17
+ iconFirst: { type: Boolean, default: !1 }
16
18
  },
17
19
  setup(o) {
18
- const l = b(o, ["color", "disabled", "visible", "loading"]), { b: p, m: a } = L("action-item"), i = k(!1);
19
- function r(e) {
20
- s(t) || o.disabled || (l.onClick?.(e), l.onAction && (i.value = !0, l.onAction(e).finally(() => i.value = !1)));
20
+ const s = B(), r = A(o, ["color", "disabled", "visible", "loading", "iconFirst", "icon"]), { b: k, m: t, e: b } = $("action-item"), c = F(!1), m = d(() => o.iconFirst && (o.icon || s.icon));
21
+ function p(e) {
22
+ l(i) || o.disabled || (r.onClick?.(e), r.onAction && (c.value = !0, r.onAction(e).finally(() => c.value = !1)));
21
23
  }
22
- const t = d(() => o.loading || s(i)), g = d(() => [
23
- p(),
24
- a(o.color),
25
- o.disabled ? a("disabled") : null,
26
- t.value ? a("loading") : null
24
+ const i = d(() => o.loading || l(c)), v = d(() => [
25
+ k(),
26
+ t(o.color),
27
+ m.value ? t("icon-first") : null,
28
+ o.disabled ? t("disabled") : null,
29
+ i.value ? t("loading") : null
27
30
  ].filter(Boolean));
28
- return (e, P) => c(e.$slots, "trigger", {
29
- loading: t.value,
31
+ return (e, I) => y(e.$slots, "trigger", {
32
+ loading: i.value,
30
33
  disabled: e.disabled,
31
- onClick: r
34
+ onClick: p
32
35
  }, () => [
33
- e.visible ? (n(), u("span", v({ key: 0 }, e.$attrs, {
34
- class: g.value,
35
- onClick: r
36
+ e.visible ? (n(), u("span", h({ key: 0 }, e.$attrs, {
37
+ class: v.value,
38
+ onClick: p
36
39
  }), [
37
- t.value ? (n(), m(s(h), {
40
+ i.value ? (n(), f(l(S), {
38
41
  key: 0,
39
42
  "prefix-cls": "btn",
40
43
  "exist-icon": !1,
41
44
  loading: ""
42
- })) : f("", !0),
43
- c(e.$slots, "default", {}, () => [
44
- C(e.text) ? (n(), m(B(e.text), { key: 0 })) : (n(), u("span", N, A(e.text || ""), 1))
45
+ })) : a("", !0),
46
+ e.icon || s.icon ? (n(), u("span", {
47
+ key: 1,
48
+ class: L(l(b)("icon-wrapper"))
49
+ }, [
50
+ (n(), f(g(e.icon || s.icon)))
51
+ ], 2)) : a("", !0),
52
+ m.value ? a("", !0) : y(e.$slots, "default", { key: 2 }, () => [
53
+ N(e.text) ? (n(), f(g(e.text), { key: 0 })) : (n(), u("span", D, P(e.text || ""), 1))
45
54
  ])
46
- ], 16)) : f("", !0)
55
+ ], 16)) : a("", !0)
47
56
  ]);
48
57
  }
49
58
  });
50
59
  export {
51
- I as default
60
+ E as default
52
61
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as _, ref as v, computed as k, createBlock as n, openBlock as t, unref as o, withCtx as l, createElementVNode as w, normalizeClass as i, createVNode as u, createCommentVNode as A, normalizeProps as B, guardReactiveProps as b, renderSlot as C, createElementBlock as I, Fragment as P, renderList as D, mergeProps as m } from "vue";
1
+ import { defineComponent as _, ref as v, computed as k, createBlock as n, openBlock as r, unref as o, withCtx as l, createElementVNode as w, normalizeClass as s, createVNode as u, createCommentVNode as B, normalizeProps as A, guardReactiveProps as b, renderSlot as C, createElementBlock as I, Fragment as P, renderList as D, mergeProps as m } from "vue";
2
2
  import { Dropdown as N, Menu as $, MenuItem as h } from "@aplus-frontend/antdv";
3
3
  import "../item/index.vue.mjs";
4
4
  import "../item-modal/index.vue2.mjs";
@@ -8,8 +8,8 @@ import "../../config-provider/index.mjs";
8
8
  import { isUndefined as V, omit as z } from "lodash-unified";
9
9
  import { useNamespace as E } from "../../config-provider/hooks/use-namespace.mjs";
10
10
  import c from "../item/index.vue2.mjs";
11
- import M from "../item-modal/index.vue.mjs";
12
- import U from "../item-popconfirm/index.vue.mjs";
11
+ import F from "../item-modal/index.vue.mjs";
12
+ import M from "../item-popconfirm/index.vue.mjs";
13
13
  const T = /* @__PURE__ */ _({
14
14
  name: "ApActionItemDropDown",
15
15
  __name: "index",
@@ -23,43 +23,45 @@ const T = /* @__PURE__ */ _({
23
23
  disabled: { type: Boolean, default: !1 },
24
24
  visible: { type: Boolean, default: !0 },
25
25
  onClick: {},
26
- loading: { type: Boolean, default: !1 }
26
+ loading: { type: Boolean, default: !1 },
27
+ icon: {},
28
+ iconFirst: { type: Boolean }
27
29
  },
28
30
  setup(d) {
29
- const f = d, p = v(!1), { e: s } = E("action-item-dropdown"), g = k(() => f.actions.filter((e) => e.visible || V(e.visible)).map((e) => ({
31
+ const f = d, i = v(!1), { e: p } = E("action-item-dropdown"), g = k(() => f.actions.filter((e) => e.visible || V(e.visible)).map((e) => ({
30
32
  ...e,
31
33
  onAction: async (a) => {
32
34
  try {
33
35
  await e.onAction?.(a);
34
36
  } finally {
35
- p.value = !1;
37
+ i.value = !1;
36
38
  }
37
39
  }
38
40
  })));
39
- return (e, a) => (t(), n(o(N), {
40
- open: p.value,
41
- "onUpdate:open": a[0] || (a[0] = (r) => p.value = r),
41
+ return (e, a) => (r(), n(o(N), {
42
+ open: i.value,
43
+ "onUpdate:open": a[0] || (a[0] = (t) => i.value = t),
42
44
  trigger: e.trigger,
43
45
  placement: e.placement
44
46
  }, {
45
47
  overlay: l(() => [
46
48
  u(o($), null, {
47
49
  default: l(() => [
48
- (t(!0), I(P, null, D(g.value, (r, y) => (t(), n(o(h), {
50
+ (r(!0), I(P, null, D(g.value, (t, y) => (r(), n(o(h), {
49
51
  key: y,
50
- class: i(o(s)("item"))
52
+ class: s(o(p)("item"))
51
53
  }, {
52
54
  default: l(() => [
53
- r.modalProps ? (t(), n(M, m({
55
+ t.modalProps ? (r(), n(F, m({
54
56
  key: 0,
55
57
  ref_for: !0
56
- }, r), null, 16)) : r.popconfirmProps ? (t(), n(U, m({
58
+ }, t), null, 16)) : t.popconfirmProps ? (r(), n(M, m({
57
59
  key: 1,
58
60
  ref_for: !0
59
- }, r), null, 16)) : (t(), n(c, m({
61
+ }, t), null, 16)) : (r(), n(c, m({
60
62
  key: 2,
61
63
  ref_for: !0
62
- }, r), null, 16))
64
+ }, t), null, 16))
63
65
  ]),
64
66
  _: 2
65
67
  }, 1032, ["class"]))), 128))
@@ -69,18 +71,18 @@ const T = /* @__PURE__ */ _({
69
71
  ]),
70
72
  default: l(() => [
71
73
  w("span", {
72
- class: i(o(s)("wrapper"))
74
+ class: s(o(p)("wrapper"))
73
75
  }, [
74
- u(c, B(b(o(z)(f, ["actions", "trigger", "placement"]))), {
76
+ u(c, A(b(o(z)(f, ["actions", "trigger", "placement"]))), {
75
77
  default: l(() => [
76
78
  C(e.$slots, "default")
77
79
  ]),
78
80
  _: 3
79
81
  }, 16),
80
- e.showIcon ? (t(), n(o(L), {
82
+ e.showIcon ? (r(), n(o(L), {
81
83
  key: 0,
82
- class: i(o(s)("icon"))
83
- }, null, 8, ["class"])) : A("", !0)
84
+ class: s(o(p)("icon"))
85
+ }, null, 8, ["class"])) : B("", !0)
84
86
  ], 2)
85
87
  ]),
86
88
  _: 3
@@ -1,9 +1,9 @@
1
- import { defineComponent as s, useSlots as i, createBlock as p, openBlock as c, mergeProps as m, unref as d, createSlots as f, renderList as u, withCtx as _, renderSlot as A, normalizeProps as P, guardReactiveProps as y } from "vue";
2
- import { Modal as k } from "@aplus-frontend/antdv";
1
+ import { defineComponent as i, useSlots as s, createBlock as c, openBlock as p, mergeProps as m, unref as d, createSlots as f, renderList as u, withCtx as _, renderSlot as y, normalizeProps as A, guardReactiveProps as P } from "vue";
2
+ import { Modal as B } from "@aplus-frontend/antdv";
3
3
  import "../item/index.vue.mjs";
4
- import { omit as x } from "lodash-unified";
5
- import B from "../item/index.vue2.mjs";
6
- const z = /* @__PURE__ */ s({
4
+ import { omit as k } from "lodash-unified";
5
+ import x from "../item/index.vue2.mjs";
6
+ const z = /* @__PURE__ */ i({
7
7
  name: "ApActionItemModal",
8
8
  __name: "index",
9
9
  props: {
@@ -14,12 +14,14 @@ const z = /* @__PURE__ */ s({
14
14
  onAction: {},
15
15
  onClick: {},
16
16
  loading: { type: Boolean, default: !1 },
17
+ icon: {},
18
+ iconFirst: { type: Boolean },
17
19
  modalProps: { default: () => ({}) }
18
20
  },
19
- setup(n) {
20
- const r = i(), o = n;
21
+ setup(t) {
22
+ const r = s(), o = t;
21
23
  async function a(e) {
22
- k.confirm({
24
+ B.confirm({
23
25
  ...o.modalProps,
24
26
  zIndex: 1060,
25
27
  onOk: async () => {
@@ -27,11 +29,11 @@ const z = /* @__PURE__ */ s({
27
29
  }
28
30
  });
29
31
  }
30
- return (e, g) => (c(), p(B, m(d(x)(o, ["modalProps", "onAction"]), { onAction: a }), f({ _: 2 }, [
31
- u(r, (h, t) => ({
32
- name: t,
32
+ return (e, g) => (p(), c(x, m(d(k)(o, ["modalProps", "onAction"]), { onAction: a }), f({ _: 2 }, [
33
+ u(r, (h, n) => ({
34
+ name: n,
33
35
  fn: _((l) => [
34
- A(e.$slots, t, P(y(l || {})))
36
+ y(e.$slots, n, A(P(l || {})))
35
37
  ])
36
38
  }))
37
39
  ]), 1040));
@@ -1,9 +1,9 @@
1
- import { defineComponent as m, useSlots as c, createBlock as d, openBlock as u, unref as n, mergeProps as P, withCtx as t, createVNode as _, normalizeProps as p, guardReactiveProps as i, createSlots as y, renderList as C, renderSlot as x } from "vue";
2
- import { Popconfirm as A } from "@aplus-frontend/antdv";
1
+ import { defineComponent as f, useSlots as m, createBlock as d, openBlock as u, unref as r, mergeProps as P, withCtx as t, createVNode as _, normalizeProps as i, guardReactiveProps as p, createSlots as y, renderList as B, renderSlot as C } from "vue";
2
+ import { Popconfirm as x } from "@aplus-frontend/antdv";
3
3
  import "../item/index.vue.mjs";
4
- import { omit as B } from "lodash-unified";
4
+ import { omit as A } from "lodash-unified";
5
5
  import b from "../item/index.vue2.mjs";
6
- const I = /* @__PURE__ */ m({
6
+ const I = /* @__PURE__ */ f({
7
7
  name: "ApActionItemPopconfirm",
8
8
  __name: "index",
9
9
  props: {
@@ -14,24 +14,26 @@ const I = /* @__PURE__ */ m({
14
14
  onAction: {},
15
15
  onClick: {},
16
16
  loading: { type: Boolean, default: !1 },
17
+ icon: {},
18
+ iconFirst: { type: Boolean },
17
19
  popconfirmProps: { default: () => ({}) }
18
20
  },
19
21
  setup(a) {
20
- const s = c(), o = a;
22
+ const s = m(), o = a;
21
23
  async function l(e) {
22
24
  o.popconfirmProps.onConfirm?.(e), await o.onAction?.(e);
23
25
  }
24
- return (e, g) => (u(), d(n(A), P(o.popconfirmProps, {
26
+ return (e, g) => (u(), d(r(x), P(o.popconfirmProps, {
25
27
  disabled: !o.popconfirmProps,
26
28
  "overlay-style": { zIndex: 1060 },
27
29
  onConfirm: l
28
30
  }), {
29
31
  default: t(() => [
30
- _(b, p(i(n(B)(o, ["popconfirmProps", "onAction"]))), y({ _: 2 }, [
31
- C(s, (h, r) => ({
32
- name: r,
33
- fn: t((f) => [
34
- x(e.$slots, r, p(i(f || {})))
32
+ _(b, i(p(r(A)(o, ["popconfirmProps", "onAction"]))), y({ _: 2 }, [
33
+ B(s, (h, n) => ({
34
+ name: n,
35
+ fn: t((c) => [
36
+ C(e.$slots, n, i(p(c || {})))
35
37
  ])
36
38
  }))
37
39
  ]), 1040)
@@ -1,6 +1,6 @@
1
- import { defineComponent as z, computed as r, unref as t, createElementBlock as B, createBlock as y, openBlock as i, Fragment as g, createTextVNode as k, toDisplayString as w, normalizeStyle as E, withCtx as p, createCommentVNode as N, createVNode as j, isRef as I, renderList as P, mergeProps as U, createSlots as H, renderSlot as K, normalizeProps as $, guardReactiveProps as G } from "vue";
1
+ import { defineComponent as z, computed as r, unref as t, createElementBlock as B, createBlock as y, openBlock as i, Fragment as g, createTextVNode as k, toDisplayString as w, normalizeStyle as E, withCtx as p, createCommentVNode as N, createVNode as j, isRef as I, renderList as P, mergeProps as U, createSlots as H, renderSlot as K, normalizeProps as W, guardReactiveProps as $ } from "vue";
2
2
  import u from "dayjs";
3
- import { InputGroup as L, Select as W, SelectOption as Y, DatePicker as Z } from "@aplus-frontend/antdv";
3
+ import { InputGroup as G, Select as L, SelectOption as Y, DatePicker as Z } from "@aplus-frontend/antdv";
4
4
  import { ApFieldDatePresetFormats as q, PRESET_FORMAT_MAP as b, PRESET_FORMAT_PICK_MAP as J, PRESET_FORMAT_TIME_MAP as Q } from "./constant.mjs";
5
5
  import "../../hooks/index.mjs";
6
6
  import { isNil as C, omit as X } from "lodash-unified";
@@ -56,6 +56,7 @@ const ye = /* @__PURE__ */ z({
56
56
  prefixCls: {},
57
57
  defaultPickerValue: {},
58
58
  disabledDate: {},
59
+ showWeek: { type: Boolean },
59
60
  dateRender: {},
60
61
  monthCellRender: {},
61
62
  renderExtraFooter: {},
@@ -151,7 +152,7 @@ const ye = /* @__PURE__ */ z({
151
152
  }
152
153
  return (o, n) => o.mode === "read" ? (i(), B(g, { key: 0 }, [
153
154
  k(w(c.value ? t(u)(c.value).format(s.value) : o.emptyText), 1)
154
- ], 64)) : (i(), y(t(L), {
155
+ ], 64)) : (i(), y(t(G), {
155
156
  key: 1,
156
157
  compact: "",
157
158
  style: E({
@@ -159,7 +160,7 @@ const ye = /* @__PURE__ */ z({
159
160
  })
160
161
  }, {
161
162
  default: p(() => [
162
- Array.isArray(e.timezone) && e.timezone.length ? (i(), y(t(W), {
163
+ Array.isArray(e.timezone) && e.timezone.length ? (i(), y(t(L), {
163
164
  key: 0,
164
165
  value: t(d),
165
166
  "onUpdate:value": n[0] || (n[0] = (a) => I(d) ? d.value = a : null),
@@ -192,7 +193,7 @@ const ye = /* @__PURE__ */ z({
192
193
  P(o.$slots, (a, m) => ({
193
194
  name: m,
194
195
  fn: p((x) => [
195
- K(o.$slots, m, $(G(x || {})))
196
+ K(o.$slots, m, W($(x || {})))
196
197
  ])
197
198
  }))
198
199
  ]), 1040, ["value", "format", "picker"])
@@ -1,10 +1,10 @@
1
- import { defineComponent as s, computed as t, toDisplayString as u, unref as d } from "vue";
1
+ import { defineComponent as i, computed as t, toDisplayString as u, unref as d } from "vue";
2
2
  import n from "dayjs";
3
3
  import { isNil as m } from "lodash-unified";
4
4
  import { getTimeFormatToZone as c } from "@aplus-frontend/utils";
5
5
  import { useDateTimezone as f } from "../hooks/use-date-timezone.mjs";
6
6
  import { ApFieldDatePresetFormats as y, PRESET_FORMAT_MAP as B } from "./constant.mjs";
7
- const T = /* @__PURE__ */ s({
7
+ const T = /* @__PURE__ */ i({
8
8
  name: "ApFieldDateRead",
9
9
  __name: "read",
10
10
  props: {
@@ -51,6 +51,7 @@ const T = /* @__PURE__ */ s({
51
51
  prefixCls: {},
52
52
  defaultPickerValue: {},
53
53
  disabledDate: {},
54
+ showWeek: { type: Boolean },
54
55
  dateRender: {},
55
56
  monthCellRender: {},
56
57
  renderExtraFooter: {},
@@ -84,18 +85,18 @@ const T = /* @__PURE__ */ s({
84
85
  formatBegins: { type: Boolean },
85
86
  timezone: {}
86
87
  },
87
- setup(r) {
88
- const e = r, { currentTimezone: l } = f(e), p = t(
88
+ setup(l) {
89
+ const e = l, { currentTimezone: r } = f(e), p = t(
89
90
  () => y.indexOf(e.format) > -1
90
- ), i = t(
91
+ ), s = t(
91
92
  () => p.value ? B[e.format] : e.format
92
93
  ), a = t(() => {
93
94
  if (m(e.value))
94
95
  return;
95
96
  let o = n(e.value);
96
- return e.timezone && (o = n(c(e.value, l.value))), o;
97
+ return e.timezone && (o = n(c(e.value, r.value))), o;
97
98
  });
98
- return (o, h) => u(a.value ? d(n)(a.value).format(i.value) : o.emptyText);
99
+ return (o, h) => u(a.value ? d(n)(a.value).format(s.value) : o.emptyText);
99
100
  }
100
101
  });
101
102
  export {