@aplus-frontend/ui 0.4.23 → 0.4.25

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 (59) 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 +67 -64
  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/editable-table/form-item.vue.d.ts +2 -4
  22. package/es/src/editable-table/index.vue.d.ts +2 -4
  23. package/es/src/scroll-bar/index.vue.d.ts +2 -1
  24. package/es/src/scroll-bar/index.vue.mjs +38 -41
  25. package/es/src/scroll-bar/internal.vue.mjs +10 -11
  26. package/es/src/scroll-view/index.vue.d.ts +5 -5
  27. package/es/src/tests/wrapper.d.ts +4 -4
  28. package/es/src/work-order-modal/work-order-modal.vue.d.ts +2 -3
  29. package/lib/src/ap-form/ap-form.vue.d.ts +1 -2
  30. package/lib/src/ap-form/drawer-form/index.vue.d.ts +3 -4
  31. package/lib/src/ap-form/modal-form/index.vue.d.ts +3 -4
  32. package/lib/src/ap-form/search-form/index.vue.d.ts +3 -4
  33. package/lib/src/ap-list/index.vue.d.ts +2 -4
  34. package/lib/src/ap-table/ap-table.vue.d.ts +2 -4
  35. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  36. package/lib/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
  37. package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +1 -1
  38. package/lib/src/ap-upload/components/Picture.vue.d.ts +2 -7
  39. package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
  40. package/lib/src/business/ap-attachment/interface.d.ts +2 -2
  41. package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +6 -2
  42. package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.js +1 -1
  43. package/lib/src/business/ap-batch-action-group/index.d.ts +16 -7
  44. package/lib/src/business/ap-batch-action-group/interface.d.ts +5 -0
  45. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +2 -4
  46. package/lib/src/business/ap-expand-alert/index.d.ts +4 -6
  47. package/lib/src/business/ap-select-layout/index.d.ts +2 -4
  48. package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +2 -4
  49. package/lib/src/editable-table/form-item.vue.d.ts +2 -4
  50. package/lib/src/editable-table/index.vue.d.ts +2 -4
  51. package/lib/src/scroll-bar/index.vue.d.ts +2 -1
  52. package/lib/src/scroll-bar/index.vue.js +1 -1
  53. package/lib/src/scroll-bar/internal.vue.js +1 -1
  54. package/lib/src/scroll-view/index.vue.d.ts +5 -5
  55. package/lib/src/tests/wrapper.d.ts +4 -4
  56. package/lib/src/work-order-modal/work-order-modal.vue.d.ts +2 -3
  57. package/package.json +1 -1
  58. package/theme/ap-scroll-bar/index.css +31 -0
  59. package/theme/ap-scroll-bar/index.less +39 -0
@@ -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;
@@ -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;
@@ -2,7 +2,7 @@ import { EditableTableProps, EditableColumnType } from './interface';
2
2
  import { NamePath, ValidateOptions } from '@aplus-frontend/antdv/es/form/interface';
3
3
  import { Recordable } from '../type';
4
4
  import { StandardBehaviorOptions } from '../../node_modules/scroll-into-view-if-needed';
5
- import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode, RendererNode, RendererElement } from 'vue';
5
+ import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
6
6
  declare const _default: <RecordType extends Recordable = 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<{
7
7
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
8
8
  readonly "onUpdate:value"?: ((...args: any[]) => any) | undefined;
@@ -53,9 +53,7 @@ declare const _default: <RecordType extends Recordable = any>(__VLS_props: NonNu
53
53
  }) => void;
54
54
  };
55
55
  emit: (event: "update:value", ...args: any[]) => void;
56
- }>) => VNode<RendererNode, RendererElement, {
57
- [key: string]: any;
58
- }> & {
56
+ }>) => VNode & {
59
57
  __ctx?: Awaited<typeof __VLS_setup>;
60
58
  };
61
59
  export default _default;
@@ -1,8 +1,9 @@
1
1
  import { ScrollBarProps, ScrollBarDirection, InternalScrollBarProps } from './interface';
2
2
  import { DefineComponent, ComputedRef, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, Ref, GlobalComponents, GlobalDirectives } from 'vue';
3
+ declare function handleBarScroll(percent: number): void;
3
4
  declare const _default: DefineComponent<ScrollBarProps, {
4
5
  currentScroll: ComputedRef<number | undefined>;
5
- scroll: (percent: number) => void | undefined;
6
+ scroll: typeof handleBarScroll;
6
7
  visible: ComputedRef<boolean>;
7
8
  rootElement: ComputedRef<HTMLElement | undefined>;
8
9
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ScrollBarProps> & Readonly<{}>, {
@@ -1,4 +1,4 @@
1
- import { defineComponent as z, toRef as g, ref as d, watchEffect as x, unref as c, watch as _, computed as s, openBlock as k, createBlock as C, mergeProps as B, createCommentVNode as L } from "vue";
1
+ import { defineComponent as z, toRef as g, ref as p, watchEffect as x, unref as a, watch as _, computed as s, openBlock as k, createBlock as C, mergeProps as B, createCommentVNode as L } from "vue";
2
2
  import "./internal.vue2.mjs";
3
3
  import { omit as R } from "lodash-unified";
4
4
  import { getScrollable as u, ensureRangeValue as w } from "./utils/index.mjs";
@@ -24,71 +24,68 @@ const W = /* @__PURE__ */ z({
24
24
  onScroll: {},
25
25
  onScrollEnd: {}
26
26
  },
27
- setup(p, { expose: S }) {
28
- const t = p, l = g(t, "scrollContainer"), n = d(), a = d(t.barLength);
29
- function m() {
30
- if (!l.value || !n.value) return;
31
- const { totalSize: e, visibleSize: r, distance: o } = u(
32
- l.value,
33
- t.direction
34
- ), i = o / (e + t.extraSize - r || 1) * 100;
35
- n.value.scroll(i);
27
+ setup(S, { expose: m }) {
28
+ const r = S, o = g(r, "scrollContainer"), l = p(), n = p(r.barLength);
29
+ function v() {
30
+ if (!o.value || !l.value) return;
31
+ const { totalSize: e, visibleSize: t, distance: c } = u(
32
+ o.value,
33
+ r.direction
34
+ ), i = c / (e + r.extraSize - t || 1) * 100;
35
+ l.value.scroll(i);
36
36
  }
37
37
  function f() {
38
- const { visibleSize: e, totalSize: r } = u(
39
- l.value,
40
- t.direction
38
+ const { visibleSize: e, totalSize: t } = u(
39
+ o.value,
40
+ r.direction
41
41
  );
42
- a.value = w(
43
- e / (r + t.extraSize || 1) * 100
42
+ n.value = w(
43
+ e / (t + r.extraSize || 1) * 100
44
44
  );
45
45
  }
46
- y(l, () => {
46
+ y(o, () => {
47
47
  f();
48
48
  }), x(
49
49
  () => {
50
- const e = c(l.value);
51
- e && (f(), e.addEventListener("scroll", m));
50
+ const e = a(o.value);
51
+ e && (f(), e.addEventListener("scroll", v));
52
52
  },
53
53
  { flush: "post" }
54
54
  ), _(
55
- () => t.barLength,
55
+ () => r.barLength,
56
56
  (e) => {
57
- a.value = e;
57
+ n.value = e;
58
58
  }
59
59
  );
60
- function v(e) {
61
- const r = c(l);
62
- if (!r) return;
63
- const { totalSize: o, visibleSize: i, topOrLeft: b } = u(
64
- r,
65
- t.direction
60
+ function d(e) {
61
+ const t = a(o);
62
+ if (!t) return;
63
+ const { totalSize: c, visibleSize: i, topOrLeft: b } = u(
64
+ t,
65
+ r.direction
66
66
  );
67
- if (o <= i) return;
67
+ if (c <= i) return;
68
68
  const h = `scroll${b}`;
69
- r[h] = e * (o + t.extraSize - i) / 100;
69
+ t[h] = e * (c + r.extraSize - i) / 100;
70
70
  }
71
- return S({
71
+ return m({
72
72
  currentScroll: s(() => {
73
73
  var e;
74
- return c((e = n.value) == null ? void 0 : e.currentScroll);
74
+ return a((e = l.value) == null ? void 0 : e.currentScroll);
75
75
  }),
76
- scroll: (e) => {
77
- var r, o;
78
- return (o = (r = n.value) == null ? void 0 : r.scroll) == null ? void 0 : o.call(r, e);
79
- },
80
- visible: s(() => a.value < 100),
76
+ scroll: d,
77
+ visible: s(() => n.value < 100),
81
78
  rootElement: s(() => {
82
79
  var e;
83
- return c((e = n.value) == null ? void 0 : e.container);
80
+ return a((e = l.value) == null ? void 0 : e.container);
84
81
  })
85
- }), (e, r) => a.value !== 100 ? (k(), C(E, B({
82
+ }), (e, t) => n.value !== 100 ? (k(), C(E, B({
86
83
  key: 0,
87
84
  ref_key: "barRef",
88
- ref: n
89
- }, c(R)(t, ["onScroll", "extraSize", "scrollContainer"]), {
90
- "bar-length": a.value,
91
- onScroll: v
85
+ ref: l
86
+ }, a(R)(r, ["onScroll", "extraSize", "scrollContainer"]), {
87
+ "bar-length": n.value,
88
+ onScroll: d
92
89
  }), null, 16, ["bar-length"])) : L("", !0);
93
90
  }
94
91
  });