@aplus-frontend/ui 0.4.24 → 0.4.26

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 (72) hide show
  1. package/es/src/ap-form/ap-form.vue.d.ts +1 -2
  2. package/es/src/ap-form/drawer-form/index.vue.d.ts +3 -4
  3. package/es/src/ap-form/modal-form/index.vue.d.ts +3 -4
  4. package/es/src/ap-form/search-form/index.vue.d.ts +3 -4
  5. package/es/src/ap-list/index.vue.d.ts +2 -4
  6. package/es/src/ap-table/ap-table.vue.d.ts +2 -4
  7. package/es/src/ap-table/ap-table.vue2.mjs +157 -154
  8. package/es/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
  9. package/es/src/ap-upload/components/MultipleFile.vue.d.ts +1 -1
  10. package/es/src/ap-upload/components/Picture.vue.d.ts +2 -7
  11. package/es/src/business/ap-attachment/ApAttachment.mjs +31 -31
  12. package/es/src/business/ap-attachment/interface.d.ts +2 -2
  13. package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +6 -2
  14. package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +36 -32
  15. package/es/src/business/ap-batch-action-group/index.d.ts +16 -7
  16. package/es/src/business/ap-batch-action-group/interface.d.ts +5 -0
  17. package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +2 -4
  18. package/es/src/business/ap-expand-alert/index.d.ts +4 -6
  19. package/es/src/business/ap-select-layout/index.d.ts +2 -4
  20. package/es/src/business/ap-select-layout/select-layout.vue.d.ts +2 -4
  21. package/es/src/config-provider/config-provider.d.ts +0 -3
  22. package/es/src/config-provider/css-var.d.ts +0 -4
  23. package/es/src/config-provider/css-var.mjs +14 -22
  24. package/es/src/config-provider/index.d.ts +0 -15
  25. package/es/src/editable-table/form-item.vue.d.ts +2 -4
  26. package/es/src/editable-table/index.vue.d.ts +2 -4
  27. package/es/src/locale/lang/en.mjs +4 -2
  28. package/es/src/locale/lang/zh-cn.mjs +3 -2
  29. package/es/src/scroll-view/index.vue.d.ts +5 -5
  30. package/es/src/tests/wrapper.d.ts +4 -4
  31. package/es/src/work-order-modal/work-order-modal.vue.d.ts +3 -4
  32. package/es/src/work-order-modal/work-order-modal.vue.mjs +24 -21
  33. package/lib/src/ap-form/ap-form.vue.d.ts +1 -2
  34. package/lib/src/ap-form/drawer-form/index.vue.d.ts +3 -4
  35. package/lib/src/ap-form/modal-form/index.vue.d.ts +3 -4
  36. package/lib/src/ap-form/search-form/index.vue.d.ts +3 -4
  37. package/lib/src/ap-list/index.vue.d.ts +2 -4
  38. package/lib/src/ap-table/ap-table.vue.d.ts +2 -4
  39. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  40. package/lib/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
  41. package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +1 -1
  42. package/lib/src/ap-upload/components/Picture.vue.d.ts +2 -7
  43. package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
  44. package/lib/src/business/ap-attachment/interface.d.ts +2 -2
  45. package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +6 -2
  46. package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.js +1 -1
  47. package/lib/src/business/ap-batch-action-group/index.d.ts +16 -7
  48. package/lib/src/business/ap-batch-action-group/interface.d.ts +5 -0
  49. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +2 -4
  50. package/lib/src/business/ap-expand-alert/index.d.ts +4 -6
  51. package/lib/src/business/ap-select-layout/index.d.ts +2 -4
  52. package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +2 -4
  53. package/lib/src/config-provider/config-provider.d.ts +0 -3
  54. package/lib/src/config-provider/css-var.d.ts +0 -4
  55. package/lib/src/config-provider/css-var.js +1 -1
  56. package/lib/src/config-provider/index.d.ts +0 -15
  57. package/lib/src/editable-table/form-item.vue.d.ts +2 -4
  58. package/lib/src/editable-table/index.vue.d.ts +2 -4
  59. package/lib/src/locale/lang/en.js +1 -1
  60. package/lib/src/locale/lang/zh-cn.js +1 -1
  61. package/lib/src/scroll-view/index.vue.d.ts +5 -5
  62. package/lib/src/tests/wrapper.d.ts +4 -4
  63. package/lib/src/work-order-modal/work-order-modal.vue.d.ts +3 -4
  64. package/lib/src/work-order-modal/work-order-modal.vue.js +1 -1
  65. package/package.json +3 -3
  66. package/theme/ap-scroll-bar/index.css +31 -0
  67. package/theme/ap-scroll-bar/index.less +39 -0
  68. package/theme/ap-table/ap-table.css +2 -2
  69. package/theme/ap-table/ap-table.less +5 -2
  70. package/theme/ap-table-modal/index.css +2 -2
  71. package/theme/index.css +2 -2
  72. package/index.ts +0 -19
@@ -1,55 +1,55 @@
1
- import { defineComponent as _, ref as w, useSlots as j, computed as n, cloneVNode as B, toRaw as v, unref as G, createVNode as l, createTextVNode as H } from "vue";
2
- import { Tooltip as R, Popover as W } from "@aplus-frontend/antdv";
1
+ import { defineComponent as _, ref as F, useSlots as j, computed as n, cloneVNode as K, toRaw as v, unref as B, createVNode as l, createTextVNode as G } from "vue";
2
+ import { Tooltip as H, Popover as R } from "@aplus-frontend/antdv";
3
3
  import "../../config-provider/index.mjs";
4
- import { ApAttachmentProps as q } from "./constans.mjs";
5
- import { getHexWithOpacity as D, getFileInfo as y } from "../../ap-download/utils/getFileInfo.mjs";
6
- import { useOssInit as E } from "../../ap-download/hooks/index.mjs";
7
- import { isArray as J } from "lodash-unified";
4
+ import { ApAttachmentProps as W } from "./constans.mjs";
5
+ import { getHexWithOpacity as q, getFileInfo as w } from "../../ap-download/utils/getFileInfo.mjs";
6
+ import { useOssInit as D } from "../../ap-download/hooks/index.mjs";
7
+ import { isArray as E } from "lodash-unified";
8
8
  import { LoadingOutlined as g } from "@ant-design/icons-vue";
9
- import { useNamespace as K } from "../../config-provider/hooks/use-namespace.mjs";
10
- import { useGlobalConfig as p } from "../../config-provider/hooks/use-global-config.mjs";
9
+ import { useNamespace as J } from "../../config-provider/hooks/use-namespace.mjs";
10
+ import { useGlobalConfig as h } from "../../config-provider/hooks/use-global-config.mjs";
11
11
  import { useLocale as Q } from "../../config-provider/hooks/use-locale.mjs";
12
12
  const ce = /* @__PURE__ */ _({
13
13
  name: "ApAttachment",
14
- props: q(),
14
+ props: W(),
15
15
  setup(e) {
16
16
  const {
17
17
  b: O,
18
18
  e: a
19
- } = K("ap-attachment"), T = p("uiMode"), b = p("apUpload"), h = p("downloadCenterTriggerConfig"), {
19
+ } = J("ap-attachment"), T = h("uiMode"), b = h("apUpload"), N = h("downloadCenterTriggerConfig"), {
20
20
  lang: x,
21
21
  t: m
22
- } = Q(), i = w(!1), c = w(""), d = j(), P = n(() => x.value === "zh-cn" ? "zh_CN" : "en_US"), r = n(() => e.attachmentList.length === 1), A = n(() => e.attachmentList.length > 0 ? e.attachmentList[0].fileName : ""), k = n(() => r.value ? A.value : m("ap.apAttachment.downloadall")), C = n(() => e.color ? e.color : T.value === "aplus" ? "#0070FF" : "#1890FF"), S = n(() => ({
23
- width: r.value ? "auto" : "266px"
22
+ } = Q(), i = F(!1), c = F(""), d = j(), P = n(() => x.value === "zh-cn" ? "zh_CN" : "en_US"), u = n(() => e.attachmentList.length === 1), p = n(() => e.needName ? e.attachmentList.length > 0 && e.needName && e.needName.nameKey ? e.attachmentList[0][e.needName.nameKey] : "" : e.attachmentList.length > 0 ? e.attachmentList[0].fileName : ""), k = n(() => u.value ? p.value : m("ap.apAttachment.downloadall")), A = n(() => e.color ? e.color : T.value === "aplus" ? "#0070FF" : "#1890FF"), S = n(() => ({
23
+ width: u.value ? "auto" : "266px"
24
24
  })), L = n(() => ({
25
- "--download-main-color": C.value,
26
- "--download-main-color-opacity": D(C.value, 0.6)
25
+ "--download-main-color": A.value,
26
+ "--download-main-color-opacity": q(A.value, 0.6)
27
27
  })), V = n(() => {
28
28
  var t;
29
29
  return e.getOssAccess || ((t = b.value) == null ? void 0 : t.getOssAccess);
30
30
  }), z = n(() => {
31
31
  const t = d.default ? d.default()[0] : null;
32
- return t ? B(t, {
32
+ return t ? K(t, {
33
33
  style: {
34
34
  "font-size": "16px"
35
35
  }
36
36
  }) : null;
37
37
  }), f = async (t, s) => {
38
- var o, N;
38
+ var o, C;
39
39
  if (!e.disabled) {
40
40
  i.value = !0, s && (c.value = s);
41
41
  try {
42
- const u = J(v(t)) ? v(t) : [v(t)];
43
- if ((o = h.value) != null && o.trigger) {
44
- const U = y(e.needName, u).map((F) => ({
45
- objectName: F.path,
46
- fileName: F.fileName
42
+ const r = E(v(t)) ? v(t) : [v(t)];
43
+ if ((o = N.value) != null && o.trigger) {
44
+ const U = w(e.needName, r).map((y) => ({
45
+ objectName: y.path,
46
+ fileName: y.fileName
47
47
  }));
48
- (N = h.value) == null || N.trigger(U);
48
+ (C = N.value) == null || C.trigger(U);
49
49
  } else
50
- await (await E(V.value, G(P))).downloadFile(y(e.needName, u));
51
- } catch (u) {
52
- console.error(u);
50
+ await (await D(V.value, B(P))).downloadFile(w(e.needName, r));
51
+ } catch (r) {
52
+ console.error(r);
53
53
  } finally {
54
54
  i.value = !1, c.value = "";
55
55
  }
@@ -78,29 +78,29 @@ const ce = /* @__PURE__ */ _({
78
78
  return ((t = e.attachmentList) == null ? void 0 : t.length) > 0 && l("div", {
79
79
  class: [O()],
80
80
  style: [S.value, L.value]
81
- }, [l(R, {
81
+ }, [l(H, {
82
82
  title: k.value,
83
83
  placement: e.textToolTipPlacement,
84
84
  color: e.toolTipBgColor
85
85
  }, {
86
86
  default: () => [l("div", {
87
87
  class: [a("content")],
88
- onClick: () => f(r.value ? e.attachmentList[0] : e.attachmentList, "global")
88
+ onClick: () => f(u.value ? e.attachmentList[0] : e.attachmentList, "global")
89
89
  }, [i.value && c.value === "global" ? l("div", {
90
90
  class: [a("spin")]
91
91
  }, [l(g, {
92
92
  spin: !0
93
93
  }, null)]) : null, d.default ? l("div", {
94
94
  class: [a("text-render")]
95
- }, [z.value, H(" ")]) : null, l("div", {
95
+ }, [z.value, G(" ")]) : null, l("div", {
96
96
  class: [a("text-inner")]
97
- }, [A.value])])]
98
- }), l(W, {
97
+ }, [p.value])])]
98
+ }), l(R, {
99
99
  content: I(e.attachmentList),
100
100
  placement: e.fileMorePopoverPlacement,
101
101
  color: "#fff"
102
102
  }, {
103
- default: () => [!r.value && l("div", {
103
+ default: () => [!u.value && l("div", {
104
104
  class: [a("more")]
105
105
  }, [m("ap.apAttachment.more")])]
106
106
  })]);
@@ -1,8 +1,8 @@
1
1
  import { ApDownLoadProps } from '../../ap-download/interface';
2
2
  import { TooltipPlacement } from '@aplus-frontend/antdv/es/tooltip';
3
3
  export type AttachmentItemProps = {
4
- fileName: string;
5
- filePath: string;
4
+ fileName?: string;
5
+ filePath?: string;
6
6
  [key: string]: any;
7
7
  };
8
8
  export type ApAttachmentProps = Required<{
@@ -1,5 +1,9 @@
1
1
  import { ApBatchActionGroupProps } from './interface';
2
- import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ import { DefineComponent, ComputedRef, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ import { TableColumnType } from '@aplus-frontend/antdv';
3
4
  type __VLS_Props = ApBatchActionGroupProps;
4
- declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
5
+ declare const _default: DefineComponent<__VLS_Props, {
6
+ columns: ComputedRef< TableColumnType<any>[]> | undefined;
7
+ dataSource: ComputedRef<any[]> | undefined;
8
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
5
9
  export default _default;
@@ -1,24 +1,25 @@
1
- import { defineComponent as A, computed as n, openBlock as v, createBlock as y, unref as a, mergeProps as m, withCtx as r, createVNode as c, createElementVNode as C, normalizeStyle as D, toDisplayString as h, normalizeClass as N, normalizeProps as R, guardReactiveProps as T, createTextVNode as V, createCommentVNode as $ } from "vue";
2
- import { DropdownButton as x, Dropdown as z } from "@aplus-frontend/antdv";
1
+ import { defineComponent as D, computed as n, openBlock as v, createBlock as y, unref as a, mergeProps as d, withCtx as r, createVNode as c, createElementVNode as N, normalizeStyle as R, toDisplayString as h, normalizeClass as x, normalizeProps as S, guardReactiveProps as V, createTextVNode as $, createCommentVNode as z } from "vue";
2
+ import { DropdownButton as G, Dropdown as M } from "@aplus-frontend/antdv";
3
3
  import "../../ap-button/index.mjs";
4
4
  import "./MenuItemGroup.vue.mjs";
5
5
  import "../../config-provider/index.mjs";
6
- import { DownOutlined as G } from "@ant-design/icons-vue";
7
- import { usePermission as M } from "@aplus-frontend/hooks";
8
- import { useNamespace as S } from "../../config-provider/hooks/use-namespace.mjs";
9
- import { useLocale as F } from "../../config-provider/hooks/use-locale.mjs";
10
- import { useGlobalConfig as O } from "../../config-provider/hooks/use-global-config.mjs";
6
+ import { DownOutlined as F } from "@ant-design/icons-vue";
7
+ import { usePermission as O } from "@aplus-frontend/hooks";
8
+ import { useInjectApTable as j } from "../../ap-table/context.mjs";
9
+ import { useNamespace as E } from "../../config-provider/hooks/use-namespace.mjs";
10
+ import { useLocale as I } from "../../config-provider/hooks/use-locale.mjs";
11
+ import { useGlobalConfig as q } from "../../config-provider/hooks/use-global-config.mjs";
11
12
  import w from "./MenuItemGroup.vue2.mjs";
12
- import E from "../../ap-button/ap-button.vue.mjs";
13
- const ee = /* @__PURE__ */ A({
13
+ import H from "../../ap-button/ap-button.vue.mjs";
14
+ const re = /* @__PURE__ */ D({
14
15
  __name: "ApBatchActionGroup",
15
16
  props: {
16
17
  selectedRows: {},
17
18
  buttonProps: {},
18
19
  menuList: {}
19
20
  },
20
- setup(P) {
21
- const { b: i } = S("ap-batch-action-group"), { t: _ } = F(), e = P, g = O("uiMode"), { hasPermission: k } = M(), p = n(
21
+ setup(P, { expose: _ }) {
22
+ const { b: i } = E("ap-batch-action-group"), { t: g } = I(), { columns: k, dataSource: A } = j(), e = P, B = q("uiMode"), { hasPermission: L } = O(), p = n(
22
23
  () => {
23
24
  var t;
24
25
  return ((t = e == null ? void 0 : e.buttonProps) == null ? void 0 : t.dropdownType) || "default";
@@ -31,24 +32,24 @@ const ee = /* @__PURE__ */ A({
31
32
  ), f = n(
32
33
  () => {
33
34
  var t;
34
- return ((t = e == null ? void 0 : e.buttonProps) == null ? void 0 : t.content) || _("ap.apApBatchActionGroup.batchOperation");
35
+ return ((t = e == null ? void 0 : e.buttonProps) == null ? void 0 : t.content) || g("ap.apApBatchActionGroup.batchOperation");
35
36
  }
36
- ), B = n(() => (e == null ? void 0 : e.selectedRows) || []), d = n(
37
+ ), C = n(() => (e == null ? void 0 : e.selectedRows) || []), m = n(
37
38
  () => {
38
39
  var t;
39
- return ((t = e == null ? void 0 : e.buttonProps) == null ? void 0 : t.disabled) ?? (Array.isArray(e.selectedRows) ? B.value.length === 0 : !1);
40
+ return ((t = e == null ? void 0 : e.buttonProps) == null ? void 0 : t.disabled) ?? (Array.isArray(e.selectedRows) ? C.value.length === 0 : !1);
40
41
  }
41
- ), L = n(() => {
42
+ ), T = n(() => {
42
43
  const t = {
43
44
  aplus: "#0070FF",
44
45
  admin: "#34b77c"
45
46
  };
46
- return u.value === "borderLink" ? d.value ? void 0 : t[g.value] || t.aplus : void 0;
47
+ return u.value === "borderLink" ? m.value ? void 0 : t[B.value] || t.aplus : void 0;
47
48
  }), l = n(() => {
48
49
  var t;
49
50
  return ((t = e == null ? void 0 : e.menuList) == null ? void 0 : t.filter((o) => {
50
51
  let s = o == null ? void 0 : o.ifShow;
51
- return !(o != null && o.ifShow) && (o != null && o.auth) && (s = () => k(o.auth)), (s == null ? void 0 : s()) ?? !0;
52
+ return !(o != null && o.ifShow) && (o != null && o.auth) && (s = () => L(o.auth)), (s == null ? void 0 : s()) ?? !0;
52
53
  })) || [];
53
54
  });
54
55
  function b() {
@@ -57,54 +58,57 @@ const ee = /* @__PURE__ */ A({
57
58
  type: u.value === "borderLink" ? "default" : u.value
58
59
  } : {};
59
60
  }
60
- return (t, o) => l.value.length && p.value === "dropdown" ? (v(), y(a(x), m({
61
+ return _({
62
+ columns: k,
63
+ dataSource: A
64
+ }), (t, o) => l.value.length && p.value === "dropdown" ? (v(), y(a(G), d({
61
65
  key: 0,
62
66
  class: [a(i)()]
63
67
  }, {
64
68
  ...t.$attrs,
65
69
  ...b(),
66
- disabled: d.value
70
+ disabled: m.value
67
71
  }), {
68
72
  overlay: r(() => [
69
- c(w, m({
73
+ c(w, d({
70
74
  ...e
71
75
  }, { "menu-list": l.value }), null, 16, ["menu-list"])
72
76
  ]),
73
77
  default: r(() => [
74
- C("span", {
75
- style: D({
76
- color: L.value
78
+ N("span", {
79
+ style: R({
80
+ color: T.value
77
81
  })
78
82
  }, h(f.value), 5)
79
83
  ]),
80
84
  _: 1
81
- }, 16, ["class"])) : l.value.length && p.value === "default" ? (v(), y(a(z), {
85
+ }, 16, ["class"])) : l.value.length && p.value === "default" ? (v(), y(a(M), {
82
86
  key: 1,
83
- class: N([a(i)()]),
84
- disabled: d.value
87
+ class: x([a(i)()]),
88
+ disabled: m.value
85
89
  }, {
86
90
  overlay: r(() => [
87
- c(w, m({
91
+ c(w, d({
88
92
  ...e
89
93
  }, { "menu-list": l.value }), null, 16, ["menu-list"])
90
94
  ]),
91
95
  default: r(() => [
92
- c(a(E), R(T({
96
+ c(a(H), S(V({
93
97
  ...t.$attrs,
94
98
  ...b(),
95
99
  type: u.value
96
100
  })), {
97
101
  default: r(() => [
98
- V(h(f.value) + " ", 1),
99
- c(a(G))
102
+ $(h(f.value) + " ", 1),
103
+ c(a(F))
100
104
  ]),
101
105
  _: 1
102
106
  }, 16)
103
107
  ]),
104
108
  _: 1
105
- }, 8, ["class", "disabled"])) : $("", !0);
109
+ }, 8, ["class", "disabled"])) : z("", !0);
106
110
  }
107
111
  });
108
112
  export {
109
- ee as default
113
+ re as default
110
114
  };
@@ -1,10 +1,10 @@
1
- import { CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, CSSProperties, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps, Plugin } from 'vue';
1
+ import { CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, CSSProperties, ComputedRef, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps, Plugin } from 'vue';
2
2
  import { ButtonType, ButtonShape, ButtonSize } from '@aplus-frontend/antdv/es/button';
3
3
  import { ButtonHTMLType } from '@aplus-frontend/antdv/es/button/buttonTypes';
4
4
  import { VueTypeValidableDef } from '../../../node_modules/vue-types';
5
5
  import { MouseEventHandler, FocusEventHandler } from '@aplus-frontend/antdv/es/_util/EventInterface';
6
- import { ButtonProps, ItemType, MenuTheme, MenuMode } from '@aplus-frontend/antdv';
7
6
  import { DropdownArrowOptions, Trigger, Align } from '@aplus-frontend/antdv/es/dropdown/props';
7
+ import { ItemType, MenuTheme, MenuMode, TableColumnType, ButtonProps } from '@aplus-frontend/antdv';
8
8
  import { Key } from '@aplus-frontend/antdv/es/_util/type';
9
9
  import { CSSMotionProps } from '@aplus-frontend/antdv/es/_util/transition';
10
10
  import { BuiltinPlacements, TriggerSubMenuAction, SelectEventHandler, MenuClickEventHandler } from '@aplus-frontend/antdv/es/menu/src/interface';
@@ -63,7 +63,7 @@ declare const ApBatchActionGroup: {
63
63
  type: PropType< MouseEventHandler | MouseEventHandler[]>;
64
64
  };
65
65
  }>>, "type" | "onClick"> & {
66
- type?: ButtonProps["type"] | "borderLink";
66
+ type?: ( ButtonType | undefined) | "borderLink";
67
67
  borderLinkColor?: string;
68
68
  minWidth?: boolean | number | string;
69
69
  lazy?: boolean | number;
@@ -302,7 +302,10 @@ declare const ApBatchActionGroup: {
302
302
  content?: string;
303
303
  }) | undefined;
304
304
  menuList?: ApBatchActionGroupMenuProps<any>[] | undefined;
305
- }> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
305
+ }> & Readonly<{}>, {
306
+ columns: ComputedRef< TableColumnType<any>[]> | undefined;
307
+ dataSource: ComputedRef<any[]> | undefined;
308
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
306
309
  P: {};
307
310
  B: {};
308
311
  D: {};
@@ -361,7 +364,7 @@ declare const ApBatchActionGroup: {
361
364
  type: PropType< MouseEventHandler | MouseEventHandler[]>;
362
365
  };
363
366
  }>>, "type" | "onClick"> & {
364
- type?: ButtonProps["type"] | "borderLink";
367
+ type?: ( ButtonType | undefined) | "borderLink";
365
368
  borderLinkColor?: string;
366
369
  minWidth?: boolean | number | string;
367
370
  lazy?: boolean | number;
@@ -600,7 +603,10 @@ declare const ApBatchActionGroup: {
600
603
  content?: string;
601
604
  }) | undefined;
602
605
  menuList?: ApBatchActionGroupMenuProps<any>[] | undefined;
603
- }> & Readonly<{}>, {}, {}, {}, {}, {}>;
606
+ }> & Readonly<{}>, {
607
+ columns: ComputedRef< TableColumnType<any>[]> | undefined;
608
+ dataSource: ComputedRef<any[]> | undefined;
609
+ }, {}, {}, {}, {}>;
604
610
  __isFragment?: never;
605
611
  __isTeleport?: never;
606
612
  __isSuspense?: never;
@@ -895,7 +901,10 @@ declare const ApBatchActionGroup: {
895
901
  content?: string;
896
902
  }) | undefined;
897
903
  menuList?: ApBatchActionGroupMenuProps<any>[] | undefined;
898
- }> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & ( Plugin & (new (...args: any[]) => {
904
+ }> & Readonly<{}>, {
905
+ columns: ComputedRef< TableColumnType<any>[]> | undefined;
906
+ dataSource: ComputedRef<any[]> | undefined;
907
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & ( Plugin & (new (...args: any[]) => {
899
908
  $props: {
900
909
  onClick?: () => void;
901
910
  };
@@ -2,6 +2,7 @@ import { ButtonProps, MenuItemProps } from '@aplus-frontend/antdv';
2
2
  import { ApButtonProps } from '../../ap-button/interface';
3
3
  import { DropdownButtonProps } from '@aplus-frontend/antdv/es/dropdown';
4
4
  import { VNodeChild } from 'vue';
5
+ import { ColumnType } from '@aplus-frontend/antdv/es/table';
5
6
  type ApBatchActionGroupButtonType = ButtonProps['type'] | 'borderLink';
6
7
  type MixinButton<T> = Omit<T, 'type'> & {
7
8
  type?: ApBatchActionGroupButtonType;
@@ -41,4 +42,8 @@ export type ApBatchActionGroupProps<RecordType = any> = {
41
42
  */
42
43
  menuList?: ApBatchActionGroupMenuProps<RecordType>[];
43
44
  };
45
+ export type ApBatchActionGroupExpose<RecordType = any> = {
46
+ columns?: ColumnType<any>[];
47
+ dataSource?: RecordType[];
48
+ };
44
49
  export {};
@@ -1,5 +1,5 @@
1
1
  import { ApExpandAlertProps } from './interface';
2
- import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode, RendererNode, RendererElement } from 'vue';
2
+ import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
3
3
  declare const _default: <T extends Record<string, any>>(__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<{
5
5
  readonly onExpand?: ((...args: any[]) => any) | undefined;
@@ -23,9 +23,7 @@ declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable
23
23
  }): any;
24
24
  };
25
25
  emit: (event: "expand" | "choose", ...args: any[]) => void;
26
- }>) => VNode<RendererNode, RendererElement, {
27
- [key: string]: any;
28
- }> & {
26
+ }>) => VNode & {
29
27
  __ctx?: Awaited<typeof __VLS_setup>;
30
28
  };
31
29
  export default _default;
@@ -1,4 +1,4 @@
1
- import { Component, VNode, CSSProperties, PublicProps, ShallowUnwrapRef, RendererNode, RendererElement, Plugin } from 'vue';
1
+ import { Component, VNode, CSSProperties, PublicProps, ShallowUnwrapRef, Plugin } from 'vue';
2
2
  export * from './interface';
3
3
  declare const ApExpandAlert: (<T extends Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
4
4
  attrs: any;
@@ -20,7 +20,7 @@ declare const ApExpandAlert: (<T extends Record<string, any>>(__VLS_props: NonNu
20
20
  props: {
21
21
  readonly onExpand?: ((...args: any[]) => any) | undefined;
22
22
  readonly onChoose?: ((...args: any[]) => any) | undefined;
23
- type?: "warning" | "error" | "success" | "info" | "card" | undefined;
23
+ type?: "warning" | "error" | "success" | "info" | "card" | undefined | undefined;
24
24
  data?: string | T[] | undefined;
25
25
  prefix?: string | undefined;
26
26
  tipTitle?: string | undefined;
@@ -29,7 +29,7 @@ declare const ApExpandAlert: (<T extends Record<string, any>>(__VLS_props: NonNu
29
29
  separatorStyle?: CSSProperties | undefined;
30
30
  contentStyle?: Omit< CSSProperties, "wordBreak" | "overflow" | "display" | "webkitLineClamp" | "webkitBoxOrient"> | undefined;
31
31
  prefixStyle?: CSSProperties | undefined;
32
- rows?: (string | number) | undefined;
32
+ rows?: string | number | undefined;
33
33
  defaultExpand?: boolean | undefined;
34
34
  showIcon?: boolean | undefined;
35
35
  } & PublicProps;
@@ -51,9 +51,7 @@ declare const ApExpandAlert: (<T extends Record<string, any>>(__VLS_props: NonNu
51
51
  }): any;
52
52
  };
53
53
  emit: (event: "expand" | "choose", ...args: any[]) => void;
54
- }>) => VNode<RendererNode, RendererElement, {
55
- [key: string]: any;
56
- }> & {
54
+ }>) => VNode & {
57
55
  __ctx?: Awaited<typeof __VLS_setup>;
58
56
  }) & ( Plugin & (new (...args: any[]) => {
59
57
  $props: {
@@ -1,5 +1,5 @@
1
1
  import { ApSelectItem } from './interface';
2
- import { PublicProps, ShallowUnwrapRef, VNode, RendererNode, RendererElement, Plugin } from 'vue';
2
+ import { PublicProps, ShallowUnwrapRef, VNode, Plugin } from 'vue';
3
3
  export * from './interface';
4
4
  declare const ApSelectLayout: (<T extends ApSelectItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
5
5
  attrs: any;
@@ -38,9 +38,7 @@ declare const ApSelectLayout: (<T extends ApSelectItem>(__VLS_props: NonNullable
38
38
  (event: "afterEnter", el: Element): void;
39
39
  (event: "afterLeave", el: Element): void;
40
40
  };
41
- }>) => VNode<RendererNode, RendererElement, {
42
- [key: string]: any;
43
- }> & {
41
+ }>) => VNode & {
44
42
  __ctx?: Awaited<typeof __VLS_setup>;
45
43
  }) & ( Plugin & (new (...args: any[]) => {
46
44
  $props: {
@@ -1,5 +1,5 @@
1
1
  import { ApSelectItem, ApSelectLayoutProps } from './interface';
2
- import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode, RendererNode, RendererElement } from 'vue';
2
+ import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
3
3
  declare const _default: <T extends ApSelectItem>(__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<{
5
5
  readonly onOnSelect?: ((value: T) => any) | undefined;
@@ -19,9 +19,7 @@ declare const _default: <T extends ApSelectItem>(__VLS_props: NonNullable<Awaite
19
19
  (event: "afterEnter", el: Element): void;
20
20
  (event: "afterLeave", el: Element): void;
21
21
  };
22
- }>) => VNode<RendererNode, RendererElement, {
23
- [key: string]: any;
24
- }> & {
22
+ }>) => VNode & {
25
23
  __ctx?: Awaited<typeof __VLS_setup>;
26
24
  };
27
25
  export default _default;
@@ -423,9 +423,6 @@ export declare const ConfigProvider: DefineComponent<ExtractPropTypes<{
423
423
  color: {
424
424
  primary: string;
425
425
  };
426
- scrollbar: {
427
- size: string;
428
- };
429
426
  };
430
427
  'ap-descriptions': {
431
428
  item: {
@@ -1,5 +1,4 @@
1
1
  import { RecursivePartial } from '../type';
2
- export declare const scrollbarSize: number;
3
2
  declare const aplusCssVarObj: {
4
3
  'ap-form': {
5
4
  bordered: {
@@ -67,9 +66,6 @@ declare const aplusCssVarObj: {
67
66
  color: {
68
67
  primary: string;
69
68
  };
70
- scrollbar: {
71
- size: string;
72
- };
73
69
  };
74
70
  'ap-descriptions': {
75
71
  item: {
@@ -1,5 +1,4 @@
1
- import { getScrollbarSize as F } from "../utils/index.mjs";
2
- const l = F(), p = {
1
+ const F = {
3
2
  "ap-form": {
4
3
  bordered: {
5
4
  "border-color": {
@@ -65,9 +64,6 @@ const l = F(), p = {
65
64
  basic: {
66
65
  color: {
67
66
  primary: "#0070ff"
68
- },
69
- scrollbar: {
70
- size: `${l}px`
71
67
  }
72
68
  },
73
69
  "ap-descriptions": {
@@ -104,7 +100,7 @@ const l = F(), p = {
104
100
  "color-disabled": "rgba(24, 41, 72, 0.25)"
105
101
  }
106
102
  }
107
- }, d = {
103
+ }, b = {
108
104
  "ap-form": {
109
105
  bordered: {
110
106
  "border-color": {
@@ -170,9 +166,6 @@ const l = F(), p = {
170
166
  basic: {
171
167
  color: {
172
168
  primary: "#34b77c"
173
- },
174
- scrollbar: {
175
- size: `${l}px`
176
169
  }
177
170
  },
178
171
  "ap-descriptions": {
@@ -210,27 +203,26 @@ const l = F(), p = {
210
203
  }
211
204
  }
212
205
  };
213
- function n(t) {
206
+ function i(t) {
214
207
  const o = {};
215
- function r(a, s) {
216
- const b = Object.keys(a);
217
- for (const c of b) {
218
- const e = a[c], i = [...s, c];
219
- e !== null && typeof e == "object" ? r(e, i) : o[`--${i.join("-")}`] = e;
208
+ function r(a, l) {
209
+ const s = Object.keys(a);
210
+ for (const c of s) {
211
+ const e = a[c], n = [...l, c];
212
+ e !== null && typeof e == "object" ? r(e, n) : o[`--${n.join("-")}`] = e;
220
213
  }
221
214
  }
222
215
  return r(t, []), o;
223
216
  }
224
- const g = n(p), m = n(d);
225
- function D(t) {
217
+ const d = i(F), p = i(b);
218
+ function u(t) {
226
219
  Object.entries(t).forEach(([o, r]) => {
227
220
  document.documentElement.style.setProperty(o, r);
228
221
  });
229
222
  }
230
223
  export {
231
- m as adminCssVar,
232
- g as aplusCssVar,
233
- n as generateCssVar,
234
- l as scrollbarSize,
235
- D as setCSSVariables
224
+ p as adminCssVar,
225
+ d as aplusCssVar,
226
+ i as generateCssVar,
227
+ u as setCSSVariables
236
228
  };
@@ -228,9 +228,6 @@ export declare const APConfigProvider: {
228
228
  color: {
229
229
  primary: string;
230
230
  };
231
- scrollbar: {
232
- size: string;
233
- };
234
231
  };
235
232
  'ap-descriptions': {
236
233
  item: {
@@ -380,9 +377,6 @@ export declare const APConfigProvider: {
380
377
  color: {
381
378
  primary: string;
382
379
  };
383
- scrollbar: {
384
- size: string;
385
- };
386
380
  };
387
381
  'ap-descriptions': {
388
382
  item: {
@@ -637,9 +631,6 @@ export declare const APConfigProvider: {
637
631
  color: {
638
632
  primary: string;
639
633
  };
640
- scrollbar: {
641
- size: string;
642
- };
643
634
  };
644
635
  'ap-descriptions': {
645
636
  item: {
@@ -789,9 +780,6 @@ export declare const APConfigProvider: {
789
780
  color: {
790
781
  primary: string;
791
782
  };
792
- scrollbar: {
793
- size: string;
794
- };
795
783
  };
796
784
  'ap-descriptions': {
797
785
  item: {
@@ -1090,9 +1078,6 @@ export declare const APConfigProvider: {
1090
1078
  color: {
1091
1079
  primary: string;
1092
1080
  };
1093
- scrollbar: {
1094
- size: string;
1095
- };
1096
1081
  };
1097
1082
  'ap-descriptions': {
1098
1083
  item: {
@@ -1,6 +1,6 @@
1
1
  import { EditableColumnType, EditableTableFormItemProps } from './interface';
2
2
  import { StandardBehaviorOptions } from '../../node_modules/scroll-into-view-if-needed';
3
- import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode, RendererNode, RendererElement } from 'vue';
3
+ import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
4
4
  import { UnwrapRefSimple } from '@vue/reactivity';
5
5
  declare const _default: <RecordType = any>(__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<{
6
6
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & EditableTableFormItemProps<RecordType> & Partial<{}>> & PublicProps;
@@ -48,9 +48,7 @@ declare const _default: <RecordType = any>(__VLS_props: NonNullable<Awaited<type
48
48
  }) => void;
49
49
  };
50
50
  emit: {};
51
- }>) => VNode<RendererNode, RendererElement, {
52
- [key: string]: any;
53
- }> & {
51
+ }>) => VNode & {
54
52
  __ctx?: Awaited<typeof __VLS_setup>;
55
53
  };
56
54
  export default _default;