@aplus-frontend/ui 0.4.24 → 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 (52) 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/hooks/use-table-column-state.d.ts +4 -4
  8. package/es/src/ap-upload/components/MultipleFile.vue.d.ts +1 -1
  9. package/es/src/ap-upload/components/Picture.vue.d.ts +2 -7
  10. package/es/src/business/ap-attachment/ApAttachment.mjs +31 -31
  11. package/es/src/business/ap-attachment/interface.d.ts +2 -2
  12. package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +6 -2
  13. package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +36 -32
  14. package/es/src/business/ap-batch-action-group/index.d.ts +16 -7
  15. package/es/src/business/ap-batch-action-group/interface.d.ts +5 -0
  16. package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +2 -4
  17. package/es/src/business/ap-expand-alert/index.d.ts +4 -6
  18. package/es/src/business/ap-select-layout/index.d.ts +2 -4
  19. package/es/src/business/ap-select-layout/select-layout.vue.d.ts +2 -4
  20. package/es/src/editable-table/form-item.vue.d.ts +2 -4
  21. package/es/src/editable-table/index.vue.d.ts +2 -4
  22. package/es/src/scroll-view/index.vue.d.ts +5 -5
  23. package/es/src/tests/wrapper.d.ts +4 -4
  24. package/es/src/work-order-modal/work-order-modal.vue.d.ts +2 -3
  25. package/lib/src/ap-form/ap-form.vue.d.ts +1 -2
  26. package/lib/src/ap-form/drawer-form/index.vue.d.ts +3 -4
  27. package/lib/src/ap-form/modal-form/index.vue.d.ts +3 -4
  28. package/lib/src/ap-form/search-form/index.vue.d.ts +3 -4
  29. package/lib/src/ap-list/index.vue.d.ts +2 -4
  30. package/lib/src/ap-table/ap-table.vue.d.ts +2 -4
  31. package/lib/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
  32. package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +1 -1
  33. package/lib/src/ap-upload/components/Picture.vue.d.ts +2 -7
  34. package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
  35. package/lib/src/business/ap-attachment/interface.d.ts +2 -2
  36. package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +6 -2
  37. package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.js +1 -1
  38. package/lib/src/business/ap-batch-action-group/index.d.ts +16 -7
  39. package/lib/src/business/ap-batch-action-group/interface.d.ts +5 -0
  40. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +2 -4
  41. package/lib/src/business/ap-expand-alert/index.d.ts +4 -6
  42. package/lib/src/business/ap-select-layout/index.d.ts +2 -4
  43. package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +2 -4
  44. package/lib/src/editable-table/form-item.vue.d.ts +2 -4
  45. package/lib/src/editable-table/index.vue.d.ts +2 -4
  46. package/lib/src/scroll-view/index.vue.d.ts +5 -5
  47. package/lib/src/tests/wrapper.d.ts +4 -4
  48. package/lib/src/work-order-modal/work-order-modal.vue.d.ts +2 -3
  49. package/package.json +3 -3
  50. package/theme/ap-scroll-bar/index.css +31 -0
  51. package/theme/ap-scroll-bar/index.less +39 -0
  52. package/index.ts +0 -19
@@ -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,5 +1,5 @@
1
1
  import { ScrollOptions, ScrollViewProps } from './interface';
2
- import { ScrollBarDirection, InternalScrollBarProps, ColorType } from '../scroll-bar';
2
+ import { ScrollBarDirection, InternalScrollBarProps } from '../scroll-bar';
3
3
  import { CreateComponentPublicInstanceWithMixins, Ref, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DefineComponent, ComputedRef } from 'vue';
4
4
  declare function scroll(x?: number, y?: number): void;
5
5
  declare function scrollTo({ smooth, left, top }: ScrollOptions): void;
@@ -106,8 +106,8 @@ declare const __VLS_component: DefineComponent<ScrollViewProps, {
106
106
  onScroll?: ((percent: number) => void) | undefined;
107
107
  disabled?: boolean | undefined;
108
108
  trackSpeed?: number | undefined;
109
- barColor?: ColorType;
110
- trackColor?: ColorType;
109
+ barColor?: import("csstype").Property.BackgroundColor | undefined;
110
+ trackColor?: import("csstype").Property.BackgroundColor | undefined;
111
111
  trackWidth?: number | undefined;
112
112
  showTrack?: boolean | undefined;
113
113
  onScrollStart?: ((percent: number) => void) | undefined;
@@ -118,8 +118,8 @@ declare const __VLS_component: DefineComponent<ScrollViewProps, {
118
118
  onScroll?: ((percent: number) => void) | undefined;
119
119
  disabled?: boolean | undefined;
120
120
  trackSpeed?: number | undefined;
121
- barColor?: ColorType;
122
- trackColor?: ColorType;
121
+ barColor?: import("csstype").Property.BackgroundColor | undefined;
122
+ trackColor?: import("csstype").Property.BackgroundColor | undefined;
123
123
  trackWidth?: number | undefined;
124
124
  showTrack?: boolean | undefined;
125
125
  onScrollStart?: ((percent: number) => void) | undefined;
@@ -1,8 +1,8 @@
1
1
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
2
  export declare const Wrapper: DefineComponent<{
3
- uiMode?: ("admin" | "aplus") | undefined;
4
- lang?: ("en" | "zh-cn") | undefined;
3
+ uiMode?: "admin" | "aplus" | undefined;
4
+ lang?: "en" | "zh-cn" | undefined;
5
5
  }, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{
6
- uiMode?: ("admin" | "aplus") | undefined;
7
- lang?: ("en" | "zh-cn") | undefined;
6
+ uiMode?: "admin" | "aplus" | undefined;
7
+ lang?: "en" | "zh-cn" | undefined;
8
8
  }> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
@@ -1,14 +1,13 @@
1
1
  import { WorkOrderModalProps } from './interfaces';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, ComponentInternalInstance, ExtractPropTypes, PropType, HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, CreateComponentPublicInstanceWithMixins, GlobalComponents, GlobalDirectives, Slot, ComponentPublicInstance, ComponentOptionsBase, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties } from 'vue';
3
3
  import { ButtonSize, SizeType } from '@aplus-frontend/antdv/es/button';
4
- import { ValidateMessages, FormLabelAlign, FieldData, ValidateErrorEntity, NamePath, RuleObject, ValidateOptions, InternalNamePath } from '@aplus-frontend/antdv/es/form/interface';
4
+ import { ValidateMessages, FormLabelAlign, FieldData, ValidateErrorEntity, NamePath, ValidateOptions, InternalNamePath } from '@aplus-frontend/antdv/es/form/interface';
5
5
  import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
6
6
  import { ColSize } from '@aplus-frontend/antdv/es/grid';
7
7
  import { RuleObject } from '@aplus-frontend/antdv/es/form';
8
8
  import { Options } from '../../node_modules/scroll-into-view-if-needed';
9
9
  import { Recordable } from '../type';
10
10
  import { VueTypeDef, VueTypeValidableDef } from '../../node_modules/vue-types';
11
- import { SizeType } from '@aplus-frontend/antdv/es/config-provider';
12
11
  import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
13
12
  import { ApFormProps, ApFormInternalInstance, WatchFunc } from '..';
14
13
  import { OnCleanup } from '@vue/reactivity';
@@ -113,7 +112,7 @@ declare const _default: DefineComponent<WorkOrderModalProps, {}, {}, {}, {}, Com
113
112
  readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
114
113
  readonly initialValues?: Recordable | undefined;
115
114
  readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
116
- readonly syncToUrl?: (boolean | ((values: Recordable, type: "get" | "set") => Recordable)) | undefined;
115
+ readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
117
116
  readonly syncToUrlPriority?: boolean | undefined;
118
117
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
119
118
  $attrs: {
@@ -1,5 +1,5 @@
1
1
  import { ApFormProps, WatchFunc, ApFormInternalInstance } from './interface';
2
- import { InternalNamePath, NamePath, ValidateOptions, FormLabelAlign, RuleObject, ValidateMessages, FieldData, ValidateErrorEntity } from '@aplus-frontend/antdv/es/form/interface';
2
+ import { InternalNamePath, NamePath, ValidateOptions, FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity } from '@aplus-frontend/antdv/es/form/interface';
3
3
  import { Recordable } from '../type';
4
4
  import { CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, HTMLAttributes, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DefineComponent } from 'vue';
5
5
  import { VueTypeDef, VueTypeValidableDef } from '../../node_modules/vue-types';
@@ -7,7 +7,6 @@ import { ColSize } from '@aplus-frontend/antdv/es/grid';
7
7
  import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
8
8
  import { RuleObject } from '@aplus-frontend/antdv/es/form';
9
9
  import { Options } from '../../node_modules/scroll-into-view-if-needed';
10
- import { SizeType } from '@aplus-frontend/antdv/es/config-provider';
11
10
  import { SizeType } from '@aplus-frontend/antdv/es/button';
12
11
  import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
13
12
  declare function __VLS_template(): {
@@ -1,6 +1,6 @@
1
1
  import { ApFormDrawerFormProps, CustomizeResizeType } from '../interface';
2
2
  import { VNode, ComponentInternalInstance, ExtractPropTypes, PropType, HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, Slot, ComponentPublicInstance, ComponentOptionsBase, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, DefineComponent, CSSProperties } from 'vue';
3
- import { InternalNamePath, NamePath, ValidateOptions, ValidateMessages, FormLabelAlign, FieldData, ValidateErrorEntity, RuleObject } from '@aplus-frontend/antdv/es/form/interface';
3
+ import { InternalNamePath, NamePath, ValidateOptions, ValidateMessages, FormLabelAlign, FieldData, ValidateErrorEntity } from '@aplus-frontend/antdv/es/form/interface';
4
4
  import { ButtonSize, SizeType } from '@aplus-frontend/antdv/es/button';
5
5
  import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
6
6
  import { ColSize } from '@aplus-frontend/antdv/es/grid';
@@ -8,7 +8,6 @@ import { RuleObject } from '@aplus-frontend/antdv/es/form';
8
8
  import { Options } from '../../../node_modules/scroll-into-view-if-needed';
9
9
  import { Recordable } from '../../type';
10
10
  import { VueTypeDef, VueTypeValidableDef } from '../../../node_modules/vue-types';
11
- import { SizeType } from '@aplus-frontend/antdv/es/config-provider';
12
11
  import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
13
12
  import { ApFormProps, ApFormInternalInstance, WatchFunc, ApFormSubmitterConfig } from '..';
14
13
  import { OnCleanup } from '@vue/reactivity';
@@ -118,7 +117,7 @@ declare function __VLS_template(): {
118
117
  readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
119
118
  readonly initialValues?: Recordable | undefined;
120
119
  readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
121
- readonly syncToUrl?: (boolean | ((values: Recordable, type: "get" | "set") => Recordable)) | undefined;
120
+ readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
122
121
  readonly syncToUrlPriority?: boolean | undefined;
123
122
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
124
123
  $attrs: {
@@ -1060,7 +1059,7 @@ declare const __VLS_component: DefineComponent<ApFormDrawerFormProps, {
1060
1059
  readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
1061
1060
  readonly initialValues?: Recordable | undefined;
1062
1061
  readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
1063
- readonly syncToUrl?: (boolean | ((values: Recordable, type: "get" | "set") => Recordable)) | undefined;
1062
+ readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
1064
1063
  readonly syncToUrlPriority?: boolean | undefined;
1065
1064
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
1066
1065
  $attrs: {
@@ -1,6 +1,6 @@
1
1
  import { ApFormModalFormProps } from '../interface';
2
2
  import { VNode, ComponentInternalInstance, ExtractPropTypes, PropType, HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, Slot, ComponentPublicInstance, ComponentOptionsBase, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, DefineComponent, CSSProperties } from 'vue';
3
- import { InternalNamePath, NamePath, ValidateOptions, ValidateMessages, FormLabelAlign, FieldData, ValidateErrorEntity, RuleObject } from '@aplus-frontend/antdv/es/form/interface';
3
+ import { InternalNamePath, NamePath, ValidateOptions, ValidateMessages, FormLabelAlign, FieldData, ValidateErrorEntity } from '@aplus-frontend/antdv/es/form/interface';
4
4
  import { Recordable } from '../../type';
5
5
  import { ButtonSize, SizeType, ButtonType, ButtonShape } from '@aplus-frontend/antdv/es/button';
6
6
  import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
@@ -8,7 +8,6 @@ import { ColSize } from '@aplus-frontend/antdv/es/grid';
8
8
  import { RuleObject } from '@aplus-frontend/antdv/es/form';
9
9
  import { Options } from '../../../node_modules/scroll-into-view-if-needed';
10
10
  import { VueTypeDef, VueTypeValidableDef } from '../../../node_modules/vue-types';
11
- import { SizeType } from '@aplus-frontend/antdv/es/config-provider';
12
11
  import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
13
12
  import { ApFormProps, ApFormInternalInstance, WatchFunc, ApFormSubmitterConfig } from '..';
14
13
  import { OnCleanup } from '@vue/reactivity';
@@ -118,7 +117,7 @@ declare function __VLS_template(): {
118
117
  readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
119
118
  readonly initialValues?: Recordable | undefined;
120
119
  readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
121
- readonly syncToUrl?: (boolean | ((values: Recordable, type: "get" | "set") => Recordable)) | undefined;
120
+ readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
122
121
  readonly syncToUrlPriority?: boolean | undefined;
123
122
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
124
123
  $attrs: {
@@ -1248,7 +1247,7 @@ declare const __VLS_component: DefineComponent<ApFormModalFormProps, {
1248
1247
  readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
1249
1248
  readonly initialValues?: Recordable | undefined;
1250
1249
  readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
1251
- readonly syncToUrl?: (boolean | ((values: Recordable, type: "get" | "set") => Recordable)) | undefined;
1250
+ readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
1252
1251
  readonly syncToUrlPriority?: boolean | undefined;
1253
1252
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
1254
1253
  $attrs: {
@@ -1,14 +1,13 @@
1
1
  import { ApFormExpose, ApFormSearchFormProps } from '../interface';
2
2
  import { ComponentInternalInstance, ExtractPropTypes, PropType, HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, Slot, ComponentPublicInstance, ComponentOptionsBase, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, DefineComponent, ComputedRef } from 'vue';
3
3
  import { ButtonSize, SizeType } from '@aplus-frontend/antdv/es/button';
4
- import { ValidateMessages, FormLabelAlign, FieldData, ValidateErrorEntity, NamePath, RuleObject, ValidateOptions, InternalNamePath } from '@aplus-frontend/antdv/es/form/interface';
4
+ import { ValidateMessages, FormLabelAlign, FieldData, ValidateErrorEntity, NamePath, ValidateOptions, InternalNamePath } from '@aplus-frontend/antdv/es/form/interface';
5
5
  import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
6
6
  import { ColSize } from '@aplus-frontend/antdv/es/grid';
7
7
  import { RuleObject } from '@aplus-frontend/antdv/es/form';
8
8
  import { Options } from '../../../node_modules/scroll-into-view-if-needed';
9
9
  import { Recordable } from '../../type';
10
10
  import { VueTypeDef, VueTypeValidableDef } from '../../../node_modules/vue-types';
11
- import { SizeType } from '@aplus-frontend/antdv/es/config-provider';
12
11
  import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
13
12
  import { ApFormProps, ApFormInternalInstance, WatchFunc } from '..';
14
13
  import { OnCleanup } from '@vue/reactivity';
@@ -116,7 +115,7 @@ declare function __VLS_template(): {
116
115
  readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
117
116
  readonly initialValues?: Recordable | undefined;
118
117
  readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
119
- readonly syncToUrl?: (boolean | ((values: Recordable, type: "get" | "set") => Recordable)) | undefined;
118
+ readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
120
119
  readonly syncToUrlPriority?: boolean | undefined;
121
120
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
122
121
  $attrs: {
@@ -953,7 +952,7 @@ declare const __VLS_component: DefineComponent<ApFormSearchFormProps, {
953
952
  readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
954
953
  readonly initialValues?: Recordable | undefined;
955
954
  readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
956
- readonly syncToUrl?: (boolean | ((values: Recordable, type: "get" | "set") => Recordable)) | undefined;
955
+ readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
957
956
  readonly syncToUrlPriority?: boolean | undefined;
958
957
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
959
958
  $attrs: {
@@ -1,6 +1,6 @@
1
1
  import { ApListProps } from './interface';
2
2
  import { Recordable } from '../type';
3
- import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, Ref, VNode, RendererNode, RendererElement } from 'vue';
3
+ import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, Ref, VNode } from 'vue';
4
4
  import { ApFormSearchFormExpose } from '..';
5
5
  declare const _default: <RecordType extends Recordable>(__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> & ApListProps<RecordType> & Partial<{}>> & PublicProps;
@@ -41,9 +41,7 @@ declare const _default: <RecordType extends Recordable>(__VLS_props: NonNullable
41
41
  }): any;
42
42
  };
43
43
  emit: {};
44
- }>) => VNode<RendererNode, RendererElement, {
45
- [key: string]: any;
46
- }> & {
44
+ }>) => VNode & {
47
45
  __ctx?: Awaited<typeof __VLS_setup>;
48
46
  };
49
47
  export default _default;
@@ -1,7 +1,7 @@
1
1
  import { ApColumnType, ApTableProps } from './interface';
2
2
  import { ColumnsType, ColumnType } from '@aplus-frontend/antdv/es/table';
3
3
  import { RowSelectionReturnType } from './hooks/use-table-row-selection';
4
- import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, ComputedRef, Ref, VNode, RendererNode, RendererElement } from 'vue';
4
+ import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, ComputedRef, Ref, VNode } from 'vue';
5
5
  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<{
6
6
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & ApTableProps<RecordType> & Partial<{}>> & PublicProps;
7
7
  expose(exposed: ShallowUnwrapRef<{
@@ -83,9 +83,7 @@ declare const _default: <RecordType>(__VLS_props: NonNullable<Awaited<typeof __V
83
83
  }) => void;
84
84
  };
85
85
  emit: {};
86
- }>) => VNode<RendererNode, RendererElement, {
87
- [key: string]: any;
88
- }> & {
86
+ }>) => VNode & {
89
87
  __ctx?: Awaited<typeof __VLS_setup>;
90
88
  };
91
89
  export default _default;
@@ -4,18 +4,18 @@ export declare const useTableColumnState: (columnSetting: ApTableSettingType, pe
4
4
  columnState: Ref<{
5
5
  key: string | number;
6
6
  show?: boolean | undefined;
7
- fixed?: ("left" | "right") | undefined;
7
+ fixed?: "left" | "right" | undefined;
8
8
  disabled?: boolean | undefined;
9
9
  label?: any;
10
- children?: any[] | undefined;
10
+ children?: /*elided*/ any[] | undefined;
11
11
  order?: number | undefined;
12
12
  }[], ApColumnState[] | {
13
13
  key: string | number;
14
14
  show?: boolean | undefined;
15
- fixed?: ("left" | "right") | undefined;
15
+ fixed?: "left" | "right" | undefined;
16
16
  disabled?: boolean | undefined;
17
17
  label?: any;
18
- children?: any[] | undefined;
18
+ children?: /*elided*/ any[] | undefined;
19
19
  order?: number | undefined;
20
20
  }[]>;
21
21
  selectAll: () => void;
@@ -1,6 +1,6 @@
1
1
  import { UploadFile, UploadChangeParam } from '@aplus-frontend/antdv';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, GlobalComponents, GlobalDirectives } from 'vue';
3
- import { UploadType, UploadFile, FileType, HttpRequestHeader, ShowUploadListInterface, UploadChangeParam, UploadListType, UploadLocale, UploadListProgressProps, ItemRender } from '@aplus-frontend/antdv/es/upload/interface';
3
+ import { UploadType, UploadFile, FileType, HttpRequestHeader, ShowUploadListInterface, UploadListType, UploadLocale, UploadListProgressProps, ItemRender } from '@aplus-frontend/antdv/es/upload/interface';
4
4
  import { UploadRequestOption } from '@aplus-frontend/antdv/es/vc-upload/interface';
5
5
  import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
6
6
  declare function setValue(val: (string | Record<string, any>)[]): void;
@@ -1,4 +1,5 @@
1
1
  import { Oss } from '../hooks/useOss';
2
+ import { actionResponse } from '@aplus-frontend/oss';
2
3
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
4
  declare function setValue(val?: (string | Record<string, any>)[]): void;
4
5
  interface UploadFile extends File {
@@ -17,13 +18,7 @@ declare function __VLS_template(): {
17
18
  pictureContext?(_: {
18
19
  fileList: {
19
20
  oss: {
20
- pauseUpload: (() => Promise<{
21
- status: number;
22
- previewUrl?: string;
23
- saveUrl?: string;
24
- originalFileName?: string;
25
- message: string;
26
- }>) | undefined;
21
+ pauseUpload: (() => Promise< actionResponse>) | undefined;
27
22
  };
28
23
  }[];
29
24
  remove: typeof handleRemove;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),A=require("@aplus-frontend/antdv");require("../../config-provider/index.js");const _=require("./constans.js"),f=require("../../ap-download/utils/getFileInfo.js"),k=require("../../ap-download/hooks/index.js"),G=require("lodash-unified"),v=require("@ant-design/icons-vue"),U=require("../../config-provider/hooks/use-namespace.js"),g=require("../../config-provider/hooks/use-global-config.js"),j=require("../../config-provider/hooks/use-locale.js"),z=e.defineComponent({name:"ApAttachment",props:_.ApAttachmentProps(),setup(t){const{b:F,e:a}=U.useNamespace("ap-attachment"),w=g.useGlobalConfig("uiMode"),b=g.useGlobalConfig("apUpload"),N=g.useGlobalConfig("downloadCenterTriggerConfig"),{lang:y,t:r}=j.useLocale(),n=e.ref(!1),c=e.ref(""),d=e.useSlots(),O=e.computed(()=>y.value==="zh-cn"?"zh_CN":"en_US"),s=e.computed(()=>t.attachmentList.length===1),h=e.computed(()=>t.attachmentList.length>0?t.attachmentList[0].fileName:""),q=e.computed(()=>s.value?h.value:r("ap.apAttachment.downloadall")),p=e.computed(()=>t.color?t.color:w.value==="aplus"?"#0070FF":"#1890FF"),T=e.computed(()=>({width:s.value?"auto":"266px"})),V=e.computed(()=>({"--download-main-color":p.value,"--download-main-color-opacity":f.getHexWithOpacity(p.value,.6)})),x=e.computed(()=>{var l;return t.getOssAccess||((l=b.value)==null?void 0:l.getOssAccess)}),I=e.computed(()=>{const l=d.default?d.default()[0]:null;return l?e.cloneVNode(l,{style:{"font-size":"16px"}}):null}),m=async(l,i)=>{var o,C;if(!t.disabled){n.value=!0,i&&(c.value=i);try{const u=G.isArray(e.toRaw(l))?e.toRaw(l):[e.toRaw(l)];if((o=N.value)!=null&&o.trigger){const M=f.getFileInfo(t.needName,u).map(L=>({objectName:L.path,fileName:L.fileName}));(C=N.value)==null||C.trigger(M)}else await(await k.useOssInit(x.value,e.unref(O))).downloadFile(f.getFileInfo(t.needName,u))}catch(u){console.error(u)}finally{n.value=!1,c.value=""}}},P=l=>l&&l.length>0?e.createVNode("ul",{class:[a("file-list")],style:V.value},[l.map((i,o)=>e.createVNode("li",{key:o,class:[a("file-item")],onClick:()=>m(i,o+1)},[n.value&&c.value===o+1?e.createVNode("span",{class:[a("spin")]},[e.createVNode(v.LoadingOutlined,{spin:!0},null)]):null,i.fileName])),e.createVNode("li",{class:[a("down-load-all")],onClick:()=>m(t.attachmentList,"all")},[n.value&&c.value==="all"?e.createVNode("span",{class:[a("spin")]},[e.createVNode(v.LoadingOutlined,{spin:!0},null)]):null,r("ap.apAttachment.downloadall")])]):null;return()=>{var l;return((l=t.attachmentList)==null?void 0:l.length)>0&&e.createVNode("div",{class:[F()],style:[T.value,V.value]},[e.createVNode(A.Tooltip,{title:q.value,placement:t.textToolTipPlacement,color:t.toolTipBgColor},{default:()=>[e.createVNode("div",{class:[a("content")],onClick:()=>m(s.value?t.attachmentList[0]:t.attachmentList,"global")},[n.value&&c.value==="global"?e.createVNode("div",{class:[a("spin")]},[e.createVNode(v.LoadingOutlined,{spin:!0},null)]):null,d.default?e.createVNode("div",{class:[a("text-render")]},[I.value,e.createTextVNode(" ")]):null,e.createVNode("div",{class:[a("text-inner")]},[h.value])])]}),e.createVNode(A.Popover,{content:P(t.attachmentList),placement:t.fileMorePopoverPlacement,color:"#fff"},{default:()=>[!s.value&&e.createVNode("div",{class:[a("more")]},[r("ap.apAttachment.more")])]})])}}});exports.default=z;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),p=require("@aplus-frontend/antdv");require("../../config-provider/index.js");const _=require("./constans.js"),f=require("../../ap-download/utils/getFileInfo.js"),k=require("../../ap-download/hooks/index.js"),G=require("lodash-unified"),g=require("@ant-design/icons-vue"),U=require("../../config-provider/hooks/use-namespace.js"),v=require("../../config-provider/hooks/use-global-config.js"),j=require("../../config-provider/hooks/use-locale.js"),z=e.defineComponent({name:"ApAttachment",props:_.ApAttachmentProps(),setup(t){const{b:F,e:l}=U.useNamespace("ap-attachment"),w=v.useGlobalConfig("uiMode"),y=v.useGlobalConfig("apUpload"),N=v.useGlobalConfig("downloadCenterTriggerConfig"),{lang:b,t:r}=j.useLocale(),o=e.ref(!1),c=e.ref(""),d=e.useSlots(),O=e.computed(()=>b.value==="zh-cn"?"zh_CN":"en_US"),u=e.computed(()=>t.attachmentList.length===1),h=e.computed(()=>t.needName?t.attachmentList.length>0&&t.needName&&t.needName.nameKey?t.attachmentList[0][t.needName.nameKey]:"":t.attachmentList.length>0?t.attachmentList[0].fileName:""),q=e.computed(()=>u.value?h.value:r("ap.apAttachment.downloadall")),L=e.computed(()=>t.color?t.color:w.value==="aplus"?"#0070FF":"#1890FF"),T=e.computed(()=>({width:u.value?"auto":"266px"})),V=e.computed(()=>({"--download-main-color":L.value,"--download-main-color-opacity":f.getHexWithOpacity(L.value,.6)})),x=e.computed(()=>{var a;return t.getOssAccess||((a=y.value)==null?void 0:a.getOssAccess)}),I=e.computed(()=>{const a=d.default?d.default()[0]:null;return a?e.cloneVNode(a,{style:{"font-size":"16px"}}):null}),m=async(a,i)=>{var n,C;if(!t.disabled){o.value=!0,i&&(c.value=i);try{const s=G.isArray(e.toRaw(a))?e.toRaw(a):[e.toRaw(a)];if((n=N.value)!=null&&n.trigger){const M=f.getFileInfo(t.needName,s).map(A=>({objectName:A.path,fileName:A.fileName}));(C=N.value)==null||C.trigger(M)}else await(await k.useOssInit(x.value,e.unref(O))).downloadFile(f.getFileInfo(t.needName,s))}catch(s){console.error(s)}finally{o.value=!1,c.value=""}}},P=a=>a&&a.length>0?e.createVNode("ul",{class:[l("file-list")],style:V.value},[a.map((i,n)=>e.createVNode("li",{key:n,class:[l("file-item")],onClick:()=>m(i,n+1)},[o.value&&c.value===n+1?e.createVNode("span",{class:[l("spin")]},[e.createVNode(g.LoadingOutlined,{spin:!0},null)]):null,i.fileName])),e.createVNode("li",{class:[l("down-load-all")],onClick:()=>m(t.attachmentList,"all")},[o.value&&c.value==="all"?e.createVNode("span",{class:[l("spin")]},[e.createVNode(g.LoadingOutlined,{spin:!0},null)]):null,r("ap.apAttachment.downloadall")])]):null;return()=>{var a;return((a=t.attachmentList)==null?void 0:a.length)>0&&e.createVNode("div",{class:[F()],style:[T.value,V.value]},[e.createVNode(p.Tooltip,{title:q.value,placement:t.textToolTipPlacement,color:t.toolTipBgColor},{default:()=>[e.createVNode("div",{class:[l("content")],onClick:()=>m(u.value?t.attachmentList[0]:t.attachmentList,"global")},[o.value&&c.value==="global"?e.createVNode("div",{class:[l("spin")]},[e.createVNode(g.LoadingOutlined,{spin:!0},null)]):null,d.default?e.createVNode("div",{class:[l("text-render")]},[I.value,e.createTextVNode(" ")]):null,e.createVNode("div",{class:[l("text-inner")]},[h.value])])]}),e.createVNode(p.Popover,{content:P(t.attachmentList),placement:t.fileMorePopoverPlacement,color:"#fff"},{default:()=>[!u.value&&e.createVNode("div",{class:[l("more")]},[r("ap.apAttachment.more")])]})])}}});exports.default=z;
@@ -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 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),p=require("@aplus-frontend/antdv");require("../../ap-button/index.js");require("./MenuItemGroup.vue.js");require("../../config-provider/index.js");const w=require("@ant-design/icons-vue"),g=require("@aplus-frontend/hooks"),P=require("../../config-provider/hooks/use-namespace.js"),q=require("../../config-provider/hooks/use-locale.js"),C=require("../../config-provider/hooks/use-global-config.js"),m=require("./MenuItemGroup.vue2.js"),k=require("../../ap-button/ap-button.vue.js"),B=e.defineComponent({__name:"ApBatchActionGroup",props:{selectedRows:{},buttonProps:{},menuList:{}},setup(v){const{b:l}=P.useNamespace("ap-batch-action-group"),{t:f}=q.useLocale(),t=v,b=C.useGlobalConfig("uiMode"),{hasPermission:_}=g.usePermission(),c=e.computed(()=>{var o;return((o=t==null?void 0:t.buttonProps)==null?void 0:o.dropdownType)||"default"}),n=e.computed(()=>{var o;return((o=t==null?void 0:t.buttonProps)==null?void 0:o.type)||"borderLink"}),d=e.computed(()=>{var o;return((o=t==null?void 0:t.buttonProps)==null?void 0:o.content)||f("ap.apApBatchActionGroup.batchOperation")}),y=e.computed(()=>(t==null?void 0:t.selectedRows)||[]),s=e.computed(()=>{var o;return((o=t==null?void 0:t.buttonProps)==null?void 0:o.disabled)??(Array.isArray(t.selectedRows)?y.value.length===0:!1)}),h=e.computed(()=>{const o={aplus:"#0070FF",admin:"#34b77c"};return n.value==="borderLink"?s.value?void 0:o[b.value]||o.aplus:void 0}),r=e.computed(()=>{var o;return((o=t==null?void 0:t.menuList)==null?void 0:o.filter(u=>{let a=u==null?void 0:u.ifShow;return!(u!=null&&u.ifShow)&&(u!=null&&u.auth)&&(a=()=>_(u.auth)),(a==null?void 0:a())??!0}))||[]});function i(){return t!=null&&t.buttonProps?{...t.buttonProps,type:n.value==="borderLink"?"default":n.value}:{}}return(o,u)=>r.value.length&&c.value==="dropdown"?(e.openBlock(),e.createBlock(e.unref(p.DropdownButton),e.mergeProps({key:0,class:[e.unref(l)()]},{...o.$attrs,...i(),disabled:s.value}),{overlay:e.withCtx(()=>[e.createVNode(m.default,e.mergeProps({...t},{"menu-list":r.value}),null,16,["menu-list"])]),default:e.withCtx(()=>[e.createElementVNode("span",{style:e.normalizeStyle({color:h.value})},e.toDisplayString(d.value),5)]),_:1},16,["class"])):r.value.length&&c.value==="default"?(e.openBlock(),e.createBlock(e.unref(p.Dropdown),{key:1,class:e.normalizeClass([e.unref(l)()]),disabled:s.value},{overlay:e.withCtx(()=>[e.createVNode(m.default,e.mergeProps({...t},{"menu-list":r.value}),null,16,["menu-list"])]),default:e.withCtx(()=>[e.createVNode(e.unref(k.default),e.normalizeProps(e.guardReactiveProps({...o.$attrs,...i(),type:n.value})),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(d.value)+" ",1),e.createVNode(e.unref(w.DownOutlined))]),_:1},16)]),_:1},8,["class","disabled"])):e.createCommentVNode("",!0)}});exports.default=B;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),p=require("@aplus-frontend/antdv");require("../../ap-button/index.js");require("./MenuItemGroup.vue.js");require("../../config-provider/index.js");const q=require("@ant-design/icons-vue"),C=require("@aplus-frontend/hooks"),k=require("../../ap-table/context.js"),B=require("../../config-provider/hooks/use-namespace.js"),N=require("../../config-provider/hooks/use-locale.js"),x=require("../../config-provider/hooks/use-global-config.js"),m=require("./MenuItemGroup.vue2.js"),L=require("../../ap-button/ap-button.vue.js"),A=e.defineComponent({__name:"ApBatchActionGroup",props:{selectedRows:{},buttonProps:{},menuList:{}},setup(v,{expose:b}){const{b:l}=B.useNamespace("ap-batch-action-group"),{t:f}=N.useLocale(),{columns:_,dataSource:y}=k.useInjectApTable(),t=v,h=x.useGlobalConfig("uiMode"),{hasPermission:w}=C.usePermission(),c=e.computed(()=>{var o;return((o=t==null?void 0:t.buttonProps)==null?void 0:o.dropdownType)||"default"}),n=e.computed(()=>{var o;return((o=t==null?void 0:t.buttonProps)==null?void 0:o.type)||"borderLink"}),d=e.computed(()=>{var o;return((o=t==null?void 0:t.buttonProps)==null?void 0:o.content)||f("ap.apApBatchActionGroup.batchOperation")}),g=e.computed(()=>(t==null?void 0:t.selectedRows)||[]),s=e.computed(()=>{var o;return((o=t==null?void 0:t.buttonProps)==null?void 0:o.disabled)??(Array.isArray(t.selectedRows)?g.value.length===0:!1)}),P=e.computed(()=>{const o={aplus:"#0070FF",admin:"#34b77c"};return n.value==="borderLink"?s.value?void 0:o[h.value]||o.aplus:void 0}),r=e.computed(()=>{var o;return((o=t==null?void 0:t.menuList)==null?void 0:o.filter(u=>{let a=u==null?void 0:u.ifShow;return!(u!=null&&u.ifShow)&&(u!=null&&u.auth)&&(a=()=>w(u.auth)),(a==null?void 0:a())??!0}))||[]});function i(){return t!=null&&t.buttonProps?{...t.buttonProps,type:n.value==="borderLink"?"default":n.value}:{}}return b({columns:_,dataSource:y}),(o,u)=>r.value.length&&c.value==="dropdown"?(e.openBlock(),e.createBlock(e.unref(p.DropdownButton),e.mergeProps({key:0,class:[e.unref(l)()]},{...o.$attrs,...i(),disabled:s.value}),{overlay:e.withCtx(()=>[e.createVNode(m.default,e.mergeProps({...t},{"menu-list":r.value}),null,16,["menu-list"])]),default:e.withCtx(()=>[e.createElementVNode("span",{style:e.normalizeStyle({color:P.value})},e.toDisplayString(d.value),5)]),_:1},16,["class"])):r.value.length&&c.value==="default"?(e.openBlock(),e.createBlock(e.unref(p.Dropdown),{key:1,class:e.normalizeClass([e.unref(l)()]),disabled:s.value},{overlay:e.withCtx(()=>[e.createVNode(m.default,e.mergeProps({...t},{"menu-list":r.value}),null,16,["menu-list"])]),default:e.withCtx(()=>[e.createVNode(e.unref(L.default),e.normalizeProps(e.guardReactiveProps({...o.$attrs,...i(),type:n.value})),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(d.value)+" ",1),e.createVNode(e.unref(q.DownOutlined))]),_:1},16)]),_:1},8,["class","disabled"])):e.createCommentVNode("",!0)}});exports.default=A;
@@ -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;