@aplus-frontend/ui 0.4.18 → 0.4.20

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 (81) hide show
  1. package/es/src/ap-form/ap-form.vue.d.ts +2 -1
  2. package/es/src/ap-form/drawer-form/index.vue.d.ts +4 -3
  3. package/es/src/ap-form/modal-form/index.vue.d.ts +4 -3
  4. package/es/src/ap-form/search-form/index.vue.d.ts +4 -3
  5. package/es/src/ap-list/index.vue.d.ts +4 -2
  6. package/es/src/ap-table/ap-table.vue.d.ts +9 -2
  7. package/es/src/ap-table/ap-table.vue2.mjs +72 -68
  8. package/es/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
  9. package/es/src/ap-table/interface.d.ts +9 -0
  10. package/es/src/ap-upload/components/MultipleFile.vue.d.ts +1 -1
  11. package/es/src/ap-upload/components/Picture.vue.d.ts +7 -2
  12. package/es/src/business/ap-batch-action-group/index.d.ts +3 -3
  13. package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +4 -2
  14. package/es/src/business/ap-expand-alert/index.d.ts +6 -4
  15. package/es/src/business/ap-select-layout/index.d.ts +4 -2
  16. package/es/src/business/ap-select-layout/select-layout.vue.d.ts +4 -2
  17. package/es/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +14 -0
  18. package/es/src/business/ap-table-modal/hooks/use-table-modal.d.ts +14 -0
  19. package/es/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +14 -0
  20. package/es/src/business/ap-table-modal/index.d.ts +48 -1
  21. package/es/src/business/ap-table-modal/table-modal.vue.d.ts +20 -1
  22. package/es/src/business/hooks/usePageListApTable.d.ts +14 -0
  23. package/es/src/business/hooks/useTableRefresh.d.ts +4 -1
  24. package/es/src/business/hooks/useTableRefresh.mjs +46 -11
  25. package/es/src/config-provider/config-provider-props.d.ts +3 -0
  26. package/es/src/config-provider/config-provider-props.mjs +3 -0
  27. package/es/src/config-provider/config-provider.d.ts +6 -0
  28. package/es/src/config-provider/config-provider.mjs +24 -23
  29. package/es/src/config-provider/hooks/use-global-config.d.ts +3 -0
  30. package/es/src/config-provider/index.d.ts +9 -0
  31. package/es/src/editable-table/form-item.vue.d.ts +4 -2
  32. package/es/src/editable-table/index.vue.d.ts +4 -2
  33. package/es/src/scroll-bar/index.vue.d.ts +1 -1
  34. package/es/src/scroll-bar/index.vue.mjs +51 -49
  35. package/es/src/scroll-bar/internal.vue.mjs +11 -10
  36. package/es/src/scroll-view/index.vue.d.ts +5 -5
  37. package/es/src/tests/wrapper.d.ts +4 -4
  38. package/es/src/utils/index.d.ts +8 -0
  39. package/es/src/work-order-modal/work-order-modal.vue.d.ts +3 -2
  40. package/lib/src/ap-form/ap-form.vue.d.ts +2 -1
  41. package/lib/src/ap-form/drawer-form/index.vue.d.ts +4 -3
  42. package/lib/src/ap-form/modal-form/index.vue.d.ts +4 -3
  43. package/lib/src/ap-form/search-form/index.vue.d.ts +4 -3
  44. package/lib/src/ap-list/index.vue.d.ts +4 -2
  45. package/lib/src/ap-table/ap-table.vue.d.ts +9 -2
  46. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  47. package/lib/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
  48. package/lib/src/ap-table/interface.d.ts +9 -0
  49. package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +1 -1
  50. package/lib/src/ap-upload/components/Picture.vue.d.ts +7 -2
  51. package/lib/src/business/ap-batch-action-group/index.d.ts +3 -3
  52. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +4 -2
  53. package/lib/src/business/ap-expand-alert/index.d.ts +6 -4
  54. package/lib/src/business/ap-select-layout/index.d.ts +4 -2
  55. package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +4 -2
  56. package/lib/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +14 -0
  57. package/lib/src/business/ap-table-modal/hooks/use-table-modal.d.ts +14 -0
  58. package/lib/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +14 -0
  59. package/lib/src/business/ap-table-modal/index.d.ts +48 -1
  60. package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +20 -1
  61. package/lib/src/business/hooks/usePageListApTable.d.ts +14 -0
  62. package/lib/src/business/hooks/useTableRefresh.d.ts +4 -1
  63. package/lib/src/business/hooks/useTableRefresh.js +1 -1
  64. package/lib/src/config-provider/config-provider-props.d.ts +3 -0
  65. package/lib/src/config-provider/config-provider-props.js +1 -1
  66. package/lib/src/config-provider/config-provider.d.ts +6 -0
  67. package/lib/src/config-provider/config-provider.js +1 -1
  68. package/lib/src/config-provider/hooks/use-global-config.d.ts +3 -0
  69. package/lib/src/config-provider/index.d.ts +9 -0
  70. package/lib/src/editable-table/form-item.vue.d.ts +4 -2
  71. package/lib/src/editable-table/index.vue.d.ts +4 -2
  72. package/lib/src/scroll-bar/index.vue.d.ts +1 -1
  73. package/lib/src/scroll-bar/index.vue.js +1 -1
  74. package/lib/src/scroll-bar/internal.vue.js +1 -1
  75. package/lib/src/scroll-view/index.vue.d.ts +5 -5
  76. package/lib/src/tests/wrapper.d.ts +4 -4
  77. package/lib/src/utils/index.d.ts +8 -0
  78. package/lib/src/work-order-modal/work-order-modal.vue.d.ts +3 -2
  79. package/package.json +2 -2
  80. package/theme/ap-scroll-bar/index.css +0 -31
  81. package/theme/ap-scroll-bar/index.less +0 -39
@@ -1,5 +1,5 @@
1
1
  import { ApFormProps, WatchFunc, ApFormInternalInstance } from './interface';
2
- import { InternalNamePath, NamePath, ValidateOptions, FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity } from '@aplus-frontend/antdv/es/form/interface';
2
+ import { InternalNamePath, NamePath, ValidateOptions, FormLabelAlign, RuleObject, 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,6 +7,7 @@ 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';
10
11
  import { SizeType } from '@aplus-frontend/antdv/es/button';
11
12
  import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
12
13
  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 } from '@aplus-frontend/antdv/es/form/interface';
3
+ import { InternalNamePath, NamePath, ValidateOptions, ValidateMessages, FormLabelAlign, FieldData, ValidateErrorEntity, RuleObject } 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,6 +8,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';
11
12
  import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
12
13
  import { ApFormProps, ApFormInternalInstance, WatchFunc, ApFormSubmitterConfig } from '..';
13
14
  import { OnCleanup } from '@vue/reactivity';
@@ -117,7 +118,7 @@ declare function __VLS_template(): {
117
118
  readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
118
119
  readonly initialValues?: Recordable | undefined;
119
120
  readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
120
- readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
121
+ readonly syncToUrl?: (boolean | ((values: Recordable, type: "get" | "set") => Recordable)) | undefined;
121
122
  readonly syncToUrlPriority?: boolean | undefined;
122
123
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
123
124
  $attrs: {
@@ -1059,7 +1060,7 @@ declare const __VLS_component: DefineComponent<ApFormDrawerFormProps, {
1059
1060
  readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
1060
1061
  readonly initialValues?: Recordable | undefined;
1061
1062
  readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
1062
- readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
1063
+ readonly syncToUrl?: (boolean | ((values: Recordable, type: "get" | "set") => Recordable)) | undefined;
1063
1064
  readonly syncToUrlPriority?: boolean | undefined;
1064
1065
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
1065
1066
  $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 } from '@aplus-frontend/antdv/es/form/interface';
3
+ import { InternalNamePath, NamePath, ValidateOptions, ValidateMessages, FormLabelAlign, FieldData, ValidateErrorEntity, RuleObject } 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,6 +8,7 @@ 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';
11
12
  import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
12
13
  import { ApFormProps, ApFormInternalInstance, WatchFunc, ApFormSubmitterConfig } from '..';
13
14
  import { OnCleanup } from '@vue/reactivity';
@@ -117,7 +118,7 @@ declare function __VLS_template(): {
117
118
  readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
118
119
  readonly initialValues?: Recordable | undefined;
119
120
  readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
120
- readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
121
+ readonly syncToUrl?: (boolean | ((values: Recordable, type: "get" | "set") => Recordable)) | undefined;
121
122
  readonly syncToUrlPriority?: boolean | undefined;
122
123
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
123
124
  $attrs: {
@@ -1247,7 +1248,7 @@ declare const __VLS_component: DefineComponent<ApFormModalFormProps, {
1247
1248
  readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
1248
1249
  readonly initialValues?: Recordable | undefined;
1249
1250
  readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
1250
- readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
1251
+ readonly syncToUrl?: (boolean | ((values: Recordable, type: "get" | "set") => Recordable)) | undefined;
1251
1252
  readonly syncToUrlPriority?: boolean | undefined;
1252
1253
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
1253
1254
  $attrs: {
@@ -1,13 +1,14 @@
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, ValidateOptions, InternalNamePath } from '@aplus-frontend/antdv/es/form/interface';
4
+ import { ValidateMessages, FormLabelAlign, FieldData, ValidateErrorEntity, NamePath, RuleObject, 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';
11
12
  import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
12
13
  import { ApFormProps, ApFormInternalInstance, WatchFunc } from '..';
13
14
  import { OnCleanup } from '@vue/reactivity';
@@ -115,7 +116,7 @@ declare function __VLS_template(): {
115
116
  readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
116
117
  readonly initialValues?: Recordable | undefined;
117
118
  readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
118
- readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
119
+ readonly syncToUrl?: (boolean | ((values: Recordable, type: "get" | "set") => Recordable)) | undefined;
119
120
  readonly syncToUrlPriority?: boolean | undefined;
120
121
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
121
122
  $attrs: {
@@ -952,7 +953,7 @@ declare const __VLS_component: DefineComponent<ApFormSearchFormProps, {
952
953
  readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
953
954
  readonly initialValues?: Recordable | undefined;
954
955
  readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
955
- readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
956
+ readonly syncToUrl?: (boolean | ((values: Recordable, type: "get" | "set") => Recordable)) | undefined;
956
957
  readonly syncToUrlPriority?: boolean | undefined;
957
958
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
958
959
  $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 } from 'vue';
3
+ import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, Ref, VNode, RendererNode, RendererElement } 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,7 +41,9 @@ declare const _default: <RecordType extends Recordable>(__VLS_props: NonNullable
41
41
  }): any;
42
42
  };
43
43
  emit: {};
44
- }>) => VNode & {
44
+ }>) => VNode<RendererNode, RendererElement, {
45
+ [key: string]: any;
46
+ }> & {
45
47
  __ctx?: Awaited<typeof __VLS_setup>;
46
48
  };
47
49
  export default _default;
@@ -1,7 +1,8 @@
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, VNode } from 'vue';
4
+ import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, ComputedRef, Ref, VNode, RendererNode, RendererElement } from 'vue';
5
+ import { ScrollBarExpose } from '../scroll-bar';
5
6
  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
7
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & ApTableProps<RecordType> & Partial<{}>> & PublicProps;
7
8
  expose(exposed: ShallowUnwrapRef<{
@@ -22,6 +23,10 @@ declare const _default: <RecordType>(__VLS_props: NonNullable<Awaited<typeof __V
22
23
  toggleSelect: (item: RecordType) => void;
23
24
  selectedRows: ComputedRef<RecordType[]>;
24
25
  };
26
+ scrollBar: {
27
+ x: Ref< ScrollBarExpose | undefined, ScrollBarExpose | undefined>;
28
+ y: undefined;
29
+ };
25
30
  }>): void;
26
31
  attrs: any;
27
32
  slots: Readonly<{
@@ -76,7 +81,9 @@ declare const _default: <RecordType>(__VLS_props: NonNullable<Awaited<typeof __V
76
81
  }) => void;
77
82
  };
78
83
  emit: {};
79
- }>) => VNode & {
84
+ }>) => VNode<RendererNode, RendererElement, {
85
+ [key: string]: any;
86
+ }> & {
80
87
  __ctx?: Awaited<typeof __VLS_setup>;
81
88
  };
82
89
  export default _default;
@@ -1,12 +1,12 @@
1
- import { defineComponent as ze, useSlots as Pe, ref as S, computed as s, unref as t, createVNode as f, Fragment as G, watchEffect as Ne, watch as J, openBlock as p, createElementBlock as B, normalizeClass as m, normalizeStyle as Q, mergeProps as h, createSlots as X, withCtx as w, renderList as Y, createBlock as Z, resolveDynamicComponent as Ie, renderSlot as R, createCommentVNode as ee, createElementVNode as N, normalizeProps as Ee, guardReactiveProps as Ke } from "vue";
1
+ import { defineComponent as ze, useSlots as Pe, ref as S, computed as s, unref as t, createVNode as f, Fragment as J, watchEffect as Ne, watch as Q, openBlock as p, createElementBlock as F, normalizeClass as m, normalizeStyle as X, mergeProps as h, createSlots as Y, withCtx as w, renderList as Z, createBlock as ee, resolveDynamicComponent as Ie, renderSlot as R, createCommentVNode as oe, createElementVNode as N, normalizeProps as Ee, guardReactiveProps as Ke } from "vue";
2
2
  import { Divider as Oe, Table as Le } from "@aplus-frontend/antdv";
3
3
  import { useToken as Ve } from "@aplus-frontend/antdv/es/theme/internal";
4
4
  import { ApForm as Ae } from "../ap-form/index.mjs";
5
- import { noRenderAsFormItemValueList as oe } from "./constants.mjs";
5
+ import { noRenderAsFormItemValueList as ae } from "./constants.mjs";
6
6
  import "../config-provider/index.mjs";
7
7
  import { useTablePaging as De } from "./hooks/use-table-paging-ng.mjs";
8
- import { isUndefined as y, omit as ae, isBoolean as $e } from "lodash-unified";
9
- import { getColumnOrder as re, updateFormProps as We, getFieldProps as je, getSearchFormItemRenderNode as _e, recursionApColumns as te, apColumnToColumn as He, getTableTitle as Ue, getTableRenderType as qe, getTableRenderProps as Me, getTableCellRenderNode as Ge, falseToUndefined as Je } from "./utils.mjs";
8
+ import { isUndefined as y, omit as re, isBoolean as $e } from "lodash-unified";
9
+ import { getColumnOrder as te, updateFormProps as We, getFieldProps as je, getSearchFormItemRenderNode as _e, recursionApColumns as le, apColumnToColumn as He, getTableTitle as Ue, getTableRenderType as qe, getTableRenderProps as Me, getTableCellRenderNode as Ge, falseToUndefined as Je } from "./utils.mjs";
10
10
  import Qe from "./hooks/use-table-content-height.mjs";
11
11
  import Xe from "./hooks/use-table-row-selection.mjs";
12
12
  import { isDef as Ye } from "../utils/index.mjs";
@@ -145,26 +145,26 @@ const No = /* @__PURE__ */ ze({
145
145
  default: void 0
146
146
  }
147
147
  },
148
- setup(le, {
149
- expose: ne
148
+ setup(ne, {
149
+ expose: se
150
150
  }) {
151
- const o = le;
151
+ const o = ne;
152
152
  let I = 0;
153
- const C = Pe(), [, se] = Ve(), {
153
+ const C = Pe(), [, de] = Ve(), {
154
154
  e: x,
155
155
  b: i,
156
156
  be: E,
157
- m: de
157
+ m: ue
158
158
  } = ao("ap-table"), K = ro("valueTypeMap"), {
159
- height: ue,
160
- contentRef: ie
159
+ height: ie,
160
+ contentRef: ce
161
161
  } = Qe(), O = S(), L = S(), {
162
162
  isStickyMode: V,
163
- scrollBarRef: ce
164
- } = eo(O), k = S(o.size), u = S([]), A = S([]);
163
+ scrollBarRef: A
164
+ } = eo(O), k = S(o.size), u = S([]), D = S([]);
165
165
  Ze({
166
166
  columns: s(() => u.value),
167
- columnsBackup: s(() => A.value),
167
+ columnsBackup: s(() => D.value),
168
168
  size: s(() => k.value),
169
169
  updateColumns(e) {
170
170
  u.value = e;
@@ -174,11 +174,11 @@ const No = /* @__PURE__ */ ze({
174
174
  },
175
175
  dataSource: s(() => t(g).records)
176
176
  });
177
- const D = s(() => {
177
+ const $ = s(() => {
178
178
  var e, l, a;
179
- return I++, ((a = (l = (e = o.columns) == null ? void 0 : e.filter((r) => !r.hideInSearch && r.dataIndex && (r.valueType || r.customRenderFormItem) && !oe.includes(r.valueType))) == null ? void 0 : l.sort((r, d) => {
180
- let n = re(r.order);
181
- return re(d.order) - n;
179
+ return I++, ((a = (l = (e = o.columns) == null ? void 0 : e.filter((r) => !r.hideInSearch && r.dataIndex && (r.valueType || r.customRenderFormItem) && !ae.includes(r.valueType))) == null ? void 0 : l.sort((r, d) => {
180
+ let n = te(r.order);
181
+ return te(d.order) - n;
182
182
  })) == null ? void 0 : a.map((r) => {
183
183
  const d = We(r, je(r.fieldProps, {})), n = {
184
184
  ...r,
@@ -192,16 +192,16 @@ const No = /* @__PURE__ */ ze({
192
192
  };
193
193
  return n.renderNode = _e(n, t(K)), n;
194
194
  })) || [];
195
- }), fe = s(() => te(t(u), (e) => {
195
+ }), fe = s(() => le(t(u), (e) => {
196
196
  if (e.sorter === !0)
197
197
  return e.key || e.dataIndex;
198
- }).filter(Boolean)), pe = s(() => te(t(u), (e) => {
198
+ }).filter(Boolean)), pe = s(() => le(t(u), (e) => {
199
199
  if (e.filters && !e.onFilter)
200
200
  return e.key || e.dataIndex;
201
201
  }).filter(Boolean)), me = s(() => y(o.dataSource) ? g.records : o.dataSource), {
202
202
  rowSelection: v,
203
203
  selectedRows: T,
204
- ...F
204
+ ...B
205
205
  } = Xe({
206
206
  fixed: !0,
207
207
  ...o.rowSelection === !0 ? {} : o.rowSelection,
@@ -209,9 +209,9 @@ const No = /* @__PURE__ */ ze({
209
209
  dataSource: me
210
210
  }), {
211
211
  formRef: z,
212
- submit: $,
213
- reset: W,
214
- tableProps: j,
212
+ submit: W,
213
+ reset: j,
214
+ tableProps: _,
215
215
  refresh: ye,
216
216
  data: g,
217
217
  setDataSource: ge,
@@ -219,7 +219,7 @@ const No = /* @__PURE__ */ ze({
219
219
  } = De({
220
220
  async request(e) {
221
221
  var a, r;
222
- if (!v.value.preserveSelectedRowKeys && y(o.dataSource) && F.clearAll(), !y(o.dataSource))
222
+ if (!v.value.preserveSelectedRowKeys && y(o.dataSource) && B.clearAll(), !y(o.dataSource))
223
223
  return {
224
224
  data: o.dataSource || [],
225
225
  total: o.dataSource.length || 0
@@ -243,35 +243,35 @@ const No = /* @__PURE__ */ ze({
243
243
  function l(r, d) {
244
244
  return r.map((n) => ({
245
245
  resizable: Ye(n.resizable) ? n.resizable : o.columnResizable,
246
- ...ae(He(n), ["ellipsis"]),
246
+ ...re(He(n), ["ellipsis"]),
247
247
  ...be(n),
248
248
  fixed: d ? d.fixed : n.fixed,
249
- title: Ue(n, E("table-header", "title"), C.headerCell, t(se).colorPrimary),
249
+ title: Ue(n, E("table-header", "title"), C.headerCell, t(de).colorPrimary),
250
250
  customRender({
251
251
  value: c,
252
252
  ...b
253
253
  }) {
254
- var q, M;
255
- const H = qe(n), Be = Me({
254
+ var M, G;
255
+ const U = qe(n), Fe = Me({
256
256
  ...n,
257
- valueType: H
257
+ valueType: U
258
258
  }, {
259
259
  value: c,
260
260
  ...b
261
- }), xe = Ge(H, Be, b.record, t(K)), U = ((q = n.renderText) == null ? void 0 : q.call(n, {
261
+ }), xe = Ge(U, Fe, b.record, t(K)), q = ((M = n.renderText) == null ? void 0 : M.call(n, {
262
262
  value: c,
263
263
  ...b
264
- })) || c, ke = n.renderText ? f(G, null, [(M = n.renderText) == null ? void 0 : M.call(n, {
264
+ })) || c, ke = n.renderText ? f(J, null, [(G = n.renderText) == null ? void 0 : G.call(n, {
265
265
  value: c,
266
266
  ...b
267
267
  })]) : xe;
268
- let P = Ce(n, U, ke);
268
+ let P = Ce(n, q, ke);
269
269
  return n.customRender && (P = n.customRender({
270
270
  value: c,
271
271
  ...b,
272
272
  column: n,
273
273
  originalNode: P,
274
- originalText: U
274
+ originalText: q
275
275
  })), P;
276
276
  },
277
277
  children: l(n.children || [], d || n)
@@ -281,13 +281,13 @@ const No = /* @__PURE__ */ ze({
281
281
  };
282
282
  Ne(() => {
283
283
  const e = Se();
284
- u.value = e, A.value = e;
284
+ u.value = e, D.value = e;
285
285
  });
286
286
  const he = s(() => {
287
287
  var l, a;
288
288
  if (o.adaptive && (g.total > 0 || ((l = o.dataSource) == null ? void 0 : l.length)))
289
289
  return {
290
- y: t(ue),
290
+ y: t(ie),
291
291
  x: ((a = o.scroll) == null ? void 0 : a.x) || "100%"
292
292
  };
293
293
  if (o.scroll)
@@ -298,9 +298,9 @@ const No = /* @__PURE__ */ ze({
298
298
  return o.tableLayout;
299
299
  if ((e = o.columns) != null && e.some((l) => l.ellipsis))
300
300
  return "fixed";
301
- }), _ = s(() => {
301
+ }), H = s(() => {
302
302
  var a;
303
- const e = t(j), l = t(v);
303
+ const e = t(_), l = t(v);
304
304
  return {
305
305
  ...o,
306
306
  ...e,
@@ -313,9 +313,9 @@ const No = /* @__PURE__ */ ze({
313
313
  pagination: o.pagination === !1 ? !1 : e.pagination,
314
314
  scroll: t(he)
315
315
  };
316
- }), Re = s(() => [i(), o.card ? null : i("wrapper"), o.adaptive ? i("adaptive") : null, V ? de(`sticky-${oo === 0 ? "absolute" : "relative"}`) : null].filter(Boolean));
316
+ }), Re = s(() => [i(), o.card ? null : i("wrapper"), o.adaptive ? i("adaptive") : null, V ? ue(`sticky-${oo === 0 ? "absolute" : "relative"}`) : null].filter(Boolean));
317
317
  function Ce(e, l, a) {
318
- return oe.includes(e.valueType) ? a : e.copyable || e.ellipsis ? f(to, {
318
+ return ae.includes(e.valueType) ? a : e.copyable || e.ellipsis ? f(to, {
319
319
  copyable: e.copyable,
320
320
  ellipsis: e.ellipsis ? $e(e.ellipsis) ? {
321
321
  tooltip: a,
@@ -327,10 +327,10 @@ const No = /* @__PURE__ */ ze({
327
327
  content: a
328
328
  }, null) : a;
329
329
  }
330
- J(() => t(g).loading, (e) => {
330
+ Q(() => t(g).loading, (e) => {
331
331
  var l;
332
332
  (l = o.onLoadingChange) == null || l.call(o, e);
333
- }), J(() => o.dataSource, (e) => {
333
+ }), Q(() => o.dataSource, (e) => {
334
334
  ge(e);
335
335
  }, {
336
336
  immediate: !0
@@ -344,38 +344,42 @@ const No = /* @__PURE__ */ ze({
344
344
  const l = e ? "getFieldsValueTransformed" : "getFieldsValue";
345
345
  return (d = (r = (a = z.value) == null ? void 0 : a.apForm) == null ? void 0 : r[l]) == null ? void 0 : d.call(r, !0);
346
346
  }
347
- function Fe() {
347
+ function Be() {
348
348
  return t(u);
349
349
  }
350
- return ne({
351
- submit: () => $(),
352
- reset: () => W(),
350
+ return se({
351
+ submit: () => W(),
352
+ reset: () => j(),
353
353
  refresh: () => ye(),
354
354
  setSearchFormValues: ve,
355
355
  getSearchFormValues: Te,
356
- getShownColumns: Fe,
356
+ getShownColumns: Be,
357
357
  dataSource: s(() => t(g).records),
358
358
  rowSelection: {
359
359
  selectedRows: s(() => t(T)),
360
- ...F
360
+ ...B
361
+ },
362
+ scrollBar: {
363
+ x: A,
364
+ y: void 0
361
365
  }
362
- }), (e, l) => (p(), B("div", {
366
+ }), (e, l) => (p(), F("div", {
363
367
  ref_key: "tableWrapperRef",
364
368
  ref: O,
365
369
  class: m(Re.value)
366
- }, [t(y)(e.dataSource) && e.searchForm !== !1 && D.value.length > 0 ? (p(), B("div", {
370
+ }, [t(y)(e.dataSource) && e.searchForm !== !1 && $.value.length > 0 ? (p(), F("div", {
367
371
  key: 0,
368
372
  class: m(e.card ? t(x)("search-wrapper") : null),
369
- style: Q(e.searchFormWrapperStyle)
373
+ style: X(e.searchFormWrapperStyle)
370
374
  }, [f(t(Ae).SearchForm, h(e.searchForm || {}, {
371
375
  ref_key: "formRef",
372
376
  ref: z,
373
377
  "custom-reset": "",
374
- "submit-loading": t(j).loading,
375
- onSubmit: t($),
376
- onReset: t(W)
377
- }), X({
378
- default: w(() => [(p(!0), B(G, null, Y(D.value, (a) => (p(), Z(Ie(a.renderNode.Comp), h({
378
+ "submit-loading": t(_).loading,
379
+ onSubmit: t(W),
380
+ onReset: t(j)
381
+ }), Y({
382
+ default: w(() => [(p(!0), F(J, null, Z($.value, (a) => (p(), ee(Ie(a.renderNode.Comp), h({
379
383
  key: a.dataIndex,
380
384
  item: a,
381
385
  ref_for: !0
@@ -388,14 +392,14 @@ const No = /* @__PURE__ */ ze({
388
392
  name: "extra",
389
393
  fn: w(() => [R(e.$slots, "searchFormExtra")]),
390
394
  key: "0"
391
- } : void 0]), 1040, ["submit-loading", "onSubmit", "onReset"])], 6)) : ee("", !0), N("div", {
395
+ } : void 0]), 1040, ["submit-loading", "onSubmit", "onReset"])], 6)) : oe("", !0), N("div", {
392
396
  ref_key: "contentRef",
393
- ref: ie,
397
+ ref: ce,
394
398
  class: m([t(x)("table-wrapper"), e.card ? t(x)("table-wrapper-card") : null]),
395
- style: Q(e.tableWrapperStyle)
399
+ style: X(e.tableWrapperStyle)
396
400
  }, [N("div", {
397
401
  class: m(t(i)("header-wrapper"))
398
- }, [e.settings ? (p(), B("div", {
402
+ }, [e.settings ? (p(), F("div", {
399
403
  key: 0,
400
404
  class: m(t(i)("header"))
401
405
  }, [N("div", {
@@ -404,29 +408,29 @@ const No = /* @__PURE__ */ ze({
404
408
  selectedRows: t(T),
405
409
  selectedRowKeys: t(v).selectedRowKeys,
406
410
  shownColumns: u.value
407
- }, F))], 2), C.title ? (p(), Z(t(Oe), {
411
+ }, B))], 2), C.title ? (p(), ee(t(Oe), {
408
412
  key: 0,
409
413
  type: "vertical"
410
- })) : ee("", !0), f(lo, {
414
+ })) : oe("", !0), f(lo, {
411
415
  config: e.settings === !0 ? {} : e.settings
412
416
  }, null, 8, ["config"])], 2)) : R(e.$slots, "title", h({
413
417
  key: 1,
414
418
  selectedRows: t(T),
415
419
  selectedRowKeys: t(v).selectedRowKeys,
416
420
  shownColumns: u.value
417
- }, F))], 2), f(t(Le), h({
421
+ }, B))], 2), f(t(Le), h({
418
422
  ref_key: "antdTableRef",
419
423
  ref: L,
420
424
  class: t(i)("table")
421
- }, _.value, {
425
+ }, H.value, {
422
426
  size: k.value,
423
427
  "table-layout": we.value,
424
428
  columns: u.value,
425
429
  onResizeColumn: l[0] || (l[0] = (a, r) => r.width = a)
426
- }), X({
430
+ }), Y({
427
431
  summary: w(() => [R(e.$slots, "summary", {
428
432
  columns: u.value,
429
- records: _.value.dataSource,
433
+ records: H.value.dataSource,
430
434
  selectedRows: t(T)
431
435
  })]),
432
436
  _: 2
@@ -436,13 +440,13 @@ const No = /* @__PURE__ */ ze({
436
440
  var a, r;
437
441
  return [f(t(no), {
438
442
  ref_key: "scrollBarRef",
439
- ref: ce,
443
+ ref: A,
440
444
  "scroll-container": (r = (a = L.value) == null ? void 0 : a.table) == null ? void 0 : r.scrollBodyRef,
441
445
  direction: "horizontal"
442
446
  }, null, 8, ["scroll-container"])];
443
447
  }),
444
448
  key: "0"
445
- } : void 0, Y(t(ae)(C, ["title", "searchFormExtra", "headerCell", "summary"]), (a, r) => ({
449
+ } : void 0, Z(t(re)(C, ["title", "searchFormExtra", "headerCell", "summary"]), (a, r) => ({
446
450
  name: r,
447
451
  fn: w((d) => [R(e.$slots, r, Ee(Ke(d || {})))])
448
452
  }))]), 1040, ["class", "size", "table-layout", "columns"])], 6)], 2));
@@ -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?: /*elided*/ any[] | undefined;
10
+ children?: 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?: /*elided*/ any[] | undefined;
18
+ children?: any[] | undefined;
19
19
  order?: number | undefined;
20
20
  }[]>;
21
21
  selectAll: () => void;
@@ -8,6 +8,8 @@ import { ApActionGroupProps } from '../ap-action';
8
8
  import { ApTableIndexProps } from './components/interface';
9
9
  import { EllipsisConfig } from '@aplus-frontend/antdv/es/typography/Base';
10
10
  import { RowSelectionReturnType } from './hooks/use-table-row-selection';
11
+ import { ScrollBarExpose } from '../scroll-bar/interface';
12
+ import { UnwrapRefProps } from '../utils';
11
13
  export type ValueEnumType = {
12
14
  text: string;
13
15
  /**
@@ -368,4 +370,11 @@ export type ApTableExpose<SearchParamsType = Recordable, RecordType = any> = {
368
370
  * @returns
369
371
  */
370
372
  getShownColumns: () => ColumnsType<RecordType>;
373
+ /**
374
+ * 滚动条实例
375
+ */
376
+ scrollBar: {
377
+ x: UnwrapRefProps<ScrollBarExpose>;
378
+ y: UnwrapRefProps<ScrollBarExpose>;
379
+ };
371
380
  };
@@ -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, UploadListType, UploadLocale, UploadListProgressProps, ItemRender } from '@aplus-frontend/antdv/es/upload/interface';
3
+ import { UploadType, UploadFile, FileType, HttpRequestHeader, ShowUploadListInterface, UploadChangeParam, 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,5 +1,4 @@
1
1
  import { Oss } from '../hooks/useOss';
2
- import { actionResponse } from '@aplus-frontend/oss';
3
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
4
3
  declare function setValue(val?: (string | Record<string, any>)[]): void;
5
4
  interface UploadFile extends File {
@@ -18,7 +17,13 @@ declare function __VLS_template(): {
18
17
  pictureContext?(_: {
19
18
  fileList: {
20
19
  oss: {
21
- pauseUpload: (() => Promise< actionResponse>) | undefined;
20
+ pauseUpload: (() => Promise<{
21
+ status: number;
22
+ previewUrl?: string;
23
+ saveUrl?: string;
24
+ originalFileName?: string;
25
+ message: string;
26
+ }>) | undefined;
22
27
  };
23
28
  }[];
24
29
  remove: typeof handleRemove;
@@ -3,8 +3,8 @@ import { ButtonType, ButtonShape, ButtonSize } from '@aplus-frontend/antdv/es/bu
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';
6
7
  import { DropdownArrowOptions, Trigger, Align } from '@aplus-frontend/antdv/es/dropdown/props';
7
- import { ItemType, MenuTheme, MenuMode, 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?: ( ButtonType | undefined) | "borderLink";
66
+ type?: ButtonProps["type"] | "borderLink";
67
67
  borderLinkColor?: string;
68
68
  minWidth?: boolean | number | string;
69
69
  lazy?: boolean | number;
@@ -361,7 +361,7 @@ declare const ApBatchActionGroup: {
361
361
  type: PropType< MouseEventHandler | MouseEventHandler[]>;
362
362
  };
363
363
  }>>, "type" | "onClick"> & {
364
- type?: ( ButtonType | undefined) | "borderLink";
364
+ type?: ButtonProps["type"] | "borderLink";
365
365
  borderLinkColor?: string;
366
366
  minWidth?: boolean | number | string;
367
367
  lazy?: boolean | number;
@@ -1,5 +1,5 @@
1
1
  import { ApExpandAlertProps } from './interface';
2
- import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
2
+ import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode, RendererNode, RendererElement } 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,7 +23,9 @@ 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 & {
26
+ }>) => VNode<RendererNode, RendererElement, {
27
+ [key: string]: any;
28
+ }> & {
27
29
  __ctx?: Awaited<typeof __VLS_setup>;
28
30
  };
29
31
  export default _default;