@aplus-frontend/ui 7.3.3 → 7.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (127) hide show
  1. package/es/index.mjs +176 -174
  2. package/es/src/ag-grid/editable/form-item.vue.d.ts +2 -4
  3. package/es/src/ag-grid/editable/index.vue.d.ts +2 -4
  4. package/es/src/ag-grid/index.vue.d.ts +2 -4
  5. package/es/src/ap-field/select/use-select-options.d.ts +2 -2
  6. package/es/src/ap-field/tree-select/use-request.d.ts +4 -4
  7. package/es/src/ap-form/ap-form.vue.d.ts +1 -2
  8. package/es/src/ap-form/drawer-form/index.vue.d.ts +3 -4
  9. package/es/src/ap-form/items/number/index.vue.d.ts +2 -2
  10. package/es/src/ap-form/items/select/index.vue.d.ts +8 -8
  11. package/es/src/ap-form/items/text/index.vue.d.ts +2 -2
  12. package/es/src/ap-form/items/text/password.vue.d.ts +2 -2
  13. package/es/src/ap-form/items/tree-select/index.vue.d.ts +2 -2
  14. package/es/src/ap-form/modal-form/index.vue.d.ts +3 -4
  15. package/es/src/ap-form/search-form/components/popover-filter.vue.d.ts +1 -1
  16. package/es/src/ap-form/search-form/index.vue.d.ts +3 -4
  17. package/es/src/ap-grid/editable/form-item.vue.d.ts +2 -4
  18. package/es/src/ap-grid/editable/index.vue.d.ts +2 -4
  19. package/es/src/ap-grid/index.vue.d.ts +2 -4
  20. package/es/src/ap-grid/utils/table.mjs +2 -2
  21. package/es/src/ap-list/index.vue.d.ts +2 -4
  22. package/es/src/ap-modal/interface.d.ts +4 -0
  23. package/es/src/ap-modal/utils/confirm.d.ts +1 -1
  24. package/es/src/ap-modal/utils/createModal.mjs +44 -41
  25. package/es/src/ap-table/ap-table.vue.d.ts +2 -4
  26. package/es/src/ap-table/constants.d.ts +10 -10
  27. package/es/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
  28. package/es/src/business/ap-batch-action-group/index.d.ts +3 -3
  29. package/es/src/business/ap-draggable-grid/ApDraggableGrid.vue.d.ts +1 -1
  30. package/es/src/business/ap-draggable-grid/index.d.ts +1 -1
  31. package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +2 -4
  32. package/es/src/business/ap-expand-alert/index.d.ts +4 -6
  33. package/es/src/business/ap-select-layout/index.d.ts +2 -4
  34. package/es/src/business/ap-select-layout/select-layout.vue.d.ts +2 -4
  35. package/es/src/business/ap-select-layout/select-layout.vue2.mjs +2 -2
  36. package/es/src/business/ap-table-modal/index.d.ts +17 -5
  37. package/es/src/business/ap-upload/components/MultipleFile.vue.d.ts +1 -1
  38. package/es/src/business/ap-upload/components/Picture.vue.d.ts +2 -7
  39. package/es/src/business/ap-value-select-card/index.vue.d.ts +2 -4
  40. package/es/src/business/ap-view/components/main-button-content.vue.d.ts +2 -3
  41. package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +2 -3
  42. package/es/src/business/batch-input-group/index.vue.d.ts +1 -1
  43. package/es/src/config-provider/hooks/use-namespace.d.ts +5 -1
  44. package/es/src/design-token/interface.d.ts +2 -0
  45. package/es/src/editable-table/form-item.vue.d.ts +2 -4
  46. package/es/src/editable-table/index.vue.d.ts +2 -4
  47. package/es/src/index.d.ts +1 -0
  48. package/es/src/index.mjs +280 -278
  49. package/es/src/loading-bar/global.d.ts +13 -0
  50. package/es/src/loading-bar/global.mjs +35 -0
  51. package/es/src/loading-bar/index.d.ts +9 -0
  52. package/es/src/loading-bar/index.mjs +9 -0
  53. package/es/src/loading-bar/index.vue.d.ts +14 -0
  54. package/es/src/loading-bar/index.vue.mjs +4 -0
  55. package/es/src/loading-bar/index.vue2.mjs +112 -0
  56. package/es/src/loading-bar/interface.d.ts +48 -0
  57. package/es/src/loading-bar/interface.mjs +1 -0
  58. package/es/src/loading-bar/style/index.d.ts +12 -0
  59. package/es/src/loading-bar/style/index.mjs +85 -0
  60. package/es/src/scroll-view/index.vue.d.ts +5 -5
  61. package/es/src/tests/wrapper.d.ts +4 -4
  62. package/es/src/version.d.ts +1 -1
  63. package/es/src/version.mjs +1 -1
  64. package/lib/index.js +1 -1
  65. package/lib/src/ag-grid/editable/form-item.vue.d.ts +2 -4
  66. package/lib/src/ag-grid/editable/index.vue.d.ts +2 -4
  67. package/lib/src/ag-grid/index.vue.d.ts +2 -4
  68. package/lib/src/ap-field/select/use-select-options.d.ts +2 -2
  69. package/lib/src/ap-field/tree-select/use-request.d.ts +4 -4
  70. package/lib/src/ap-form/ap-form.vue.d.ts +1 -2
  71. package/lib/src/ap-form/drawer-form/index.vue.d.ts +3 -4
  72. package/lib/src/ap-form/items/number/index.vue.d.ts +2 -2
  73. package/lib/src/ap-form/items/select/index.vue.d.ts +8 -8
  74. package/lib/src/ap-form/items/text/index.vue.d.ts +2 -2
  75. package/lib/src/ap-form/items/text/password.vue.d.ts +2 -2
  76. package/lib/src/ap-form/items/tree-select/index.vue.d.ts +2 -2
  77. package/lib/src/ap-form/modal-form/index.vue.d.ts +3 -4
  78. package/lib/src/ap-form/search-form/components/popover-filter.vue.d.ts +1 -1
  79. package/lib/src/ap-form/search-form/index.vue.d.ts +3 -4
  80. package/lib/src/ap-grid/editable/form-item.vue.d.ts +2 -4
  81. package/lib/src/ap-grid/editable/index.vue.d.ts +2 -4
  82. package/lib/src/ap-grid/index.vue.d.ts +2 -4
  83. package/lib/src/ap-grid/utils/table.js +1 -1
  84. package/lib/src/ap-list/index.vue.d.ts +2 -4
  85. package/lib/src/ap-modal/interface.d.ts +4 -0
  86. package/lib/src/ap-modal/utils/confirm.d.ts +1 -1
  87. package/lib/src/ap-modal/utils/createModal.js +1 -1
  88. package/lib/src/ap-table/ap-table.vue.d.ts +2 -4
  89. package/lib/src/ap-table/constants.d.ts +10 -10
  90. package/lib/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
  91. package/lib/src/business/ap-batch-action-group/index.d.ts +3 -3
  92. package/lib/src/business/ap-draggable-grid/ApDraggableGrid.vue.d.ts +1 -1
  93. package/lib/src/business/ap-draggable-grid/index.d.ts +1 -1
  94. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +2 -4
  95. package/lib/src/business/ap-expand-alert/index.d.ts +4 -6
  96. package/lib/src/business/ap-select-layout/index.d.ts +2 -4
  97. package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +2 -4
  98. package/lib/src/business/ap-select-layout/select-layout.vue2.js +1 -1
  99. package/lib/src/business/ap-table-modal/index.d.ts +17 -5
  100. package/lib/src/business/ap-upload/components/MultipleFile.vue.d.ts +1 -1
  101. package/lib/src/business/ap-upload/components/Picture.vue.d.ts +2 -7
  102. package/lib/src/business/ap-value-select-card/index.vue.d.ts +2 -4
  103. package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +2 -3
  104. package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +2 -3
  105. package/lib/src/business/batch-input-group/index.vue.d.ts +1 -1
  106. package/lib/src/config-provider/hooks/use-namespace.d.ts +5 -1
  107. package/lib/src/design-token/interface.d.ts +2 -0
  108. package/lib/src/editable-table/form-item.vue.d.ts +2 -4
  109. package/lib/src/editable-table/index.vue.d.ts +2 -4
  110. package/lib/src/index.d.ts +1 -0
  111. package/lib/src/index.js +1 -1
  112. package/lib/src/loading-bar/global.d.ts +13 -0
  113. package/lib/src/loading-bar/global.js +1 -0
  114. package/lib/src/loading-bar/index.d.ts +9 -0
  115. package/lib/src/loading-bar/index.js +1 -0
  116. package/lib/src/loading-bar/index.vue.d.ts +14 -0
  117. package/lib/src/loading-bar/index.vue.js +1 -0
  118. package/lib/src/loading-bar/index.vue2.js +1 -0
  119. package/lib/src/loading-bar/interface.d.ts +48 -0
  120. package/lib/src/loading-bar/interface.js +1 -0
  121. package/lib/src/loading-bar/style/index.d.ts +12 -0
  122. package/lib/src/loading-bar/style/index.js +17 -0
  123. package/lib/src/scroll-view/index.vue.d.ts +5 -5
  124. package/lib/src/tests/wrapper.d.ts +4 -4
  125. package/lib/src/version.d.ts +1 -1
  126. package/lib/src/version.js +1 -1
  127. package/package.json +3 -3
@@ -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;
@@ -3,8 +3,8 @@ import { ButtonType, ButtonShape, ButtonSize } from '@aplus-frontend/antdv/es/bu
3
3
  import { ButtonHTMLType, ButtonIconPosition, ButtonVariantType } 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, TableColumnsType } from '@aplus-frontend/antdv';
7
6
  import { DropdownArrowOptions, Trigger, Align } from '@aplus-frontend/antdv/es/dropdown/props';
7
+ import { ItemType, MenuTheme, MenuMode, TableColumnsType, 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';
@@ -70,7 +70,7 @@ declare const ApBatchActionGroup: {
70
70
  color: PropType<"default" | "blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "volcano" | "geekblue" | "danger" | "primary">;
71
71
  variant: PropType<ButtonVariantType>;
72
72
  }>>, "type" | "onClick"> & {
73
- type?: ButtonProps["type"] | "borderLink";
73
+ type?: ( ButtonType | undefined) | "borderLink";
74
74
  borderLinkColor?: string;
75
75
  minWidth?: boolean | number | string;
76
76
  lazy?: boolean | number;
@@ -380,7 +380,7 @@ declare const ApBatchActionGroup: {
380
380
  color: PropType<"default" | "blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "volcano" | "geekblue" | "danger" | "primary">;
381
381
  variant: PropType<ButtonVariantType>;
382
382
  }>>, "type" | "onClick"> & {
383
- type?: ButtonProps["type"] | "borderLink";
383
+ type?: ( ButtonType | undefined) | "borderLink";
384
384
  borderLinkColor?: string;
385
385
  minWidth?: boolean | number | string;
386
386
  lazy?: boolean | number;
@@ -10,7 +10,7 @@ declare function __VLS_template(): {
10
10
  span: number;
11
11
  row: number;
12
12
  col: number;
13
- showHeight?: (number | string) | undefined;
13
+ showHeight?: number | string | undefined;
14
14
  height: number | string;
15
15
  module: string;
16
16
  };
@@ -172,7 +172,7 @@ declare const ApDraggableGrid: {
172
172
  span: number;
173
173
  row: number;
174
174
  col: number;
175
- showHeight?: (number | string) | undefined;
175
+ showHeight?: number | string | undefined;
176
176
  height: number | string;
177
177
  module: string;
178
178
  };
@@ -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 onClose?: ((args_0: MouseEvent) => any) | undefined;
@@ -24,9 +24,7 @@ declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable
24
24
  }): any;
25
25
  };
26
26
  emit: ((evt: "close", args_0: MouseEvent) => void) & ((evt: "expand", args_0: "collapse" | "expand") => void) & ((evt: "choose", args_0: T) => void);
27
- }>) => VNode<RendererNode, RendererElement, {
28
- [key: string]: any;
29
- }> & {
27
+ }>) => VNode & {
30
28
  __ctx?: Awaited<typeof __VLS_setup>;
31
29
  };
32
30
  export default _default;
@@ -1,4 +1,4 @@
1
- import { Component, VNode, CSSProperties, PublicProps, ShallowUnwrapRef, RendererNode, RendererElement, Plugin } from 'vue';
1
+ import { Component, VNode, CSSProperties, PublicProps, ShallowUnwrapRef, Plugin } from 'vue';
2
2
  export * from './interface';
3
3
  declare const ApExpandAlert: (<T extends Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
4
4
  attrs: any;
@@ -21,7 +21,7 @@ declare const ApExpandAlert: (<T extends Record<string, any>>(__VLS_props: NonNu
21
21
  readonly onClose?: ((args_0: MouseEvent) => any) | undefined;
22
22
  readonly onExpand?: ((args_0: "collapse" | "expand") => any) | undefined;
23
23
  readonly onChoose?: ((args_0: T) => any) | undefined;
24
- type?: "warning" | "error" | "success" | "info" | "card" | undefined;
24
+ type?: "warning" | "error" | "success" | "info" | "card" | undefined | undefined;
25
25
  data?: string | T[] | undefined;
26
26
  prefix?: string | undefined;
27
27
  tipTitle?: string | undefined;
@@ -30,7 +30,7 @@ declare const ApExpandAlert: (<T extends Record<string, any>>(__VLS_props: NonNu
30
30
  separatorStyle?: CSSProperties | undefined;
31
31
  contentStyle?: Omit< CSSProperties, "wordBreak" | "overflow" | "display" | "webkitLineClamp" | "webkitBoxOrient"> | undefined;
32
32
  prefixStyle?: CSSProperties | undefined;
33
- rows?: (string | number) | undefined;
33
+ rows?: string | number | undefined;
34
34
  defaultExpand?: boolean | undefined;
35
35
  closable?: boolean | undefined;
36
36
  afterClose?: (() => void) | undefined;
@@ -54,9 +54,7 @@ declare const ApExpandAlert: (<T extends Record<string, any>>(__VLS_props: NonNu
54
54
  }): any;
55
55
  };
56
56
  emit: ((evt: "close", args_0: MouseEvent) => void) & ((evt: "expand", args_0: "collapse" | "expand") => void) & ((evt: "choose", args_0: T) => void);
57
- }>) => VNode<RendererNode, RendererElement, {
58
- [key: string]: any;
59
- }> & {
57
+ }>) => VNode & {
60
58
  __ctx?: Awaited<typeof __VLS_setup>;
61
59
  }) & ( Plugin & (new (...args: any[]) => {
62
60
  $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;
@@ -58,7 +58,7 @@ const X = ["onClick"], se = /* @__PURE__ */ D({
58
58
  "onUpdate:open": n[0] || (n[0] = (l) => k.value = l)
59
59
  }, {
60
60
  title: c(() => n[3] || (n[3] = [
61
- A("收起", -1)
61
+ A("收起")
62
62
  ])),
63
63
  default: c(() => [
64
64
  u(e(G), { onClick: F })
@@ -119,7 +119,7 @@ const X = ["onClick"], se = /* @__PURE__ */ D({
119
119
  "onUpdate:open": n[2] || (n[2] = (l) => T.value = l)
120
120
  }, {
121
121
  title: c(() => n[4] || (n[4] = [
122
- A("展开", -1)
122
+ A("展开")
123
123
  ])),
124
124
  default: c(() => [
125
125
  u(e(H), { onClick: F })
@@ -4,8 +4,8 @@ import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicP
4
4
  import { ApTableModalProps, OpenOptions, OpenReturnType } from './interface';
5
5
  import { Recordable } from '../../type';
6
6
  import { TableColumnsType } from '@aplus-frontend/antdv';
7
- import { InternalPagingType } from '../../ap-table/hooks/use-table-paging-ng';
8
7
  import { ApFormSearchFormPopoverSorterItem } from '../..';
8
+ import { InternalPagingType } from '../../ap-table/hooks/use-table-paging-ng';
9
9
  /**
10
10
  *
11
11
  */
@@ -43,8 +43,14 @@ declare const ApTableModal: {
43
43
  };
44
44
  y: undefined;
45
45
  };
46
- getPaging: () => InternalPagingType;
47
- setPaging: (nextPaging: InternalPagingType, refreshImmediately?: boolean) => void;
46
+ getPaging: () => Partial<{
47
+ current: number;
48
+ pageSize: number;
49
+ }>;
50
+ setPaging: (nextPaging: Partial<{
51
+ current: number;
52
+ pageSize: number;
53
+ }>, refreshImmediately?: boolean) => void;
48
54
  getSearchFormSorterItems: () => ApFormSearchFormPopoverSorterItem[];
49
55
  setSearchFormSorterItems: (sortedItems: ApFormSearchFormPopoverSorterItem[]) => void;
50
56
  resetSearchFormSorterItems: () => void;
@@ -149,8 +155,14 @@ declare const ApTableModal: {
149
155
  };
150
156
  y: undefined;
151
157
  };
152
- getPaging: () => InternalPagingType;
153
- setPaging: (nextPaging: InternalPagingType, refreshImmediately?: boolean) => void;
158
+ getPaging: () => Partial<{
159
+ current: number;
160
+ pageSize: number;
161
+ }>;
162
+ setPaging: (nextPaging: Partial<{
163
+ current: number;
164
+ pageSize: number;
165
+ }>, refreshImmediately?: boolean) => void;
154
166
  getSearchFormSorterItems: () => ApFormSearchFormPopoverSorterItem[];
155
167
  setSearchFormSorterItems: (sortedItems: ApFormSearchFormPopoverSorterItem[]) => void;
156
168
  resetSearchFormSorterItems: () => 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,5 +1,5 @@
1
1
  import { ApValueSelectCardProps, ApValueSelectCardOption } from './interface';
2
- import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, Ref, ComputedRef, VNode, RendererNode, RendererElement } from 'vue';
2
+ import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, Ref, ComputedRef, VNode } from 'vue';
3
3
  declare const _default: <T extends Record<string, any> = 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 onChange?: ((keys: (string | number)[]) => any) | undefined;
@@ -45,9 +45,7 @@ declare const _default: <T extends Record<string, any> = Record<string, any>>(__
45
45
  (e: "remove", key: string | number): void;
46
46
  (e: "highlight", keys: (string | number)[]): void;
47
47
  };
48
- }>) => VNode<RendererNode, RendererElement, {
49
- [key: string]: any;
50
- }> & {
48
+ }>) => VNode & {
51
49
  __ctx?: Awaited<typeof __VLS_setup>;
52
50
  };
53
51
  export default _default;
@@ -1,13 +1,12 @@
1
1
  import { ApFormProps, UpdateModelOptimizeFn, ApFormInternalInstance, WatchFunc } from '../../../ap-form';
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 { ColSize } from '@aplus-frontend/antdv/es/grid';
4
- import { FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity, NamePath, RuleObject, ValidateOptions, InternalNamePath } from '@aplus-frontend/antdv/es/form/interface';
4
+ import { FormLabelAlign, ValidateMessages, 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 { RuleObject } from '@aplus-frontend/antdv/es/form';
7
7
  import { Options } from '../../../../node_modules/scroll-into-view-if-needed';
8
8
  import { Recordable } from '../../../type';
9
9
  import { VueTypeDef, VueTypeValidableDef } from '../../../../node_modules/vue-types';
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
  import { OnCleanup } from '@vue/reactivity';
@@ -110,7 +109,7 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
110
109
  readonly variant?: "filled" | "outlined" | "borderless" | "underlined" | undefined;
111
110
  readonly initialValues?: Recordable | undefined;
112
111
  readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
113
- readonly syncToUrl?: (boolean | ((values: Recordable, type: "get" | "set") => Recordable)) | undefined;
112
+ readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
114
113
  readonly syncToUrlPriority?: boolean | undefined;
115
114
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
116
115
  $attrs: {
@@ -1,13 +1,12 @@
1
1
  import { ViewListModel } from '../interface';
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 { ColSize } from '@aplus-frontend/antdv/es/grid';
4
- import { FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity, NamePath, RuleObject, ValidateOptions, InternalNamePath } from '@aplus-frontend/antdv/es/form/interface';
4
+ import { FormLabelAlign, ValidateMessages, 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 { RuleObject } from '@aplus-frontend/antdv/es/form';
7
7
  import { Options } from '../../../../node_modules/scroll-into-view-if-needed';
8
8
  import { Recordable } from '../../../type';
9
9
  import { VueTypeDef, VueTypeValidableDef } from '../../../../node_modules/vue-types';
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
  import { ApFormProps, UpdateModelOptimizeFn, ApFormInternalInstance, WatchFunc } from '../../../ap-form';
@@ -111,7 +110,7 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
111
110
  readonly variant?: "filled" | "outlined" | "borderless" | "underlined" | undefined;
112
111
  readonly initialValues?: Recordable | undefined;
113
112
  readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
114
- readonly syncToUrl?: (boolean | ((values: Recordable, type: "get" | "set") => Recordable)) | undefined;
113
+ readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
115
114
  readonly syncToUrlPriority?: boolean | undefined;
116
115
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
117
116
  $attrs: {
@@ -45,7 +45,6 @@ declare const _default: DefineComponent<BatchInputGroupProps, {}, {}, {}, {}, Co
45
45
  readonly onMousedown?: MouseEventHandler | undefined;
46
46
  readonly value?: string | number | undefined;
47
47
  readonly disabled?: boolean | undefined;
48
- readonly placeholder?: string | number | undefined;
49
48
  readonly prefixCls?: string | undefined;
50
49
  readonly name?: string | undefined;
51
50
  readonly loading?: boolean | undefined;
@@ -56,6 +55,7 @@ declare const _default: DefineComponent<BatchInputGroupProps, {}, {}, {}, {}, Co
56
55
  readonly focused?: boolean | undefined;
57
56
  readonly readonly?: boolean | undefined;
58
57
  readonly autocomplete?: string | undefined;
58
+ readonly placeholder?: string | number | undefined;
59
59
  readonly maxlength?: number | undefined;
60
60
  readonly showCount?: boolean | ShowCountProps | undefined;
61
61
  readonly htmlSize?: number | undefined;
@@ -2,7 +2,11 @@ import { InjectionKey, Ref, ComputedRef } from 'vue';
2
2
  export declare const defaultNamespace = "aplus";
3
3
  export declare const namespaceContextKey: InjectionKey<Ref<string | undefined>>;
4
4
  export declare const useGetDerivedNamespace: (namespaceOverrides?: Ref<string | undefined>) => ComputedRef<string>;
5
- export declare const useNamespace: (block: string, namespaceOverrides?: Ref<string | undefined>) => {
5
+ export declare const useNamespace: (
6
+ /**
7
+ * 块 一般是指组件名
8
+ */
9
+ block: string, namespaceOverrides?: Ref<string | undefined>) => {
6
10
  namespace: ComputedRef<string>;
7
11
  b: (blockSuffix?: string) => string;
8
12
  e: (element?: string) => string;
@@ -13,6 +13,7 @@ import { BatchInputGroupToken } from '../business/batch-input-group/style';
13
13
  import { ApRadioGroupToken } from '../business/ap-radio-group/style';
14
14
  import { ApGridToken } from '../ap-grid/style';
15
15
  import { TokenUtil } from '../utils/cssinjs/TokenUtil';
16
+ import { LoadingBarToken } from '../loading-bar/style';
16
17
  /** 基础token */
17
18
  export type BaseToken = {
18
19
  /**
@@ -152,6 +153,7 @@ export type ComponentsToken = {
152
153
  BatchInputGroup: BatchInputGroupToken;
153
154
  ApRadioGroup: ApRadioGroupToken;
154
155
  ApGrid: ApGridToken;
156
+ LoadingBar: LoadingBarToken;
155
157
  };
156
158
  /** 全量token */
157
159
  export type FullToken = BaseToken & {
@@ -1,5 +1,5 @@
1
1
  import { EditableColumnType, EditableTableFormItemExpose, EditableTableFormItemProps } 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: <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<{
4
4
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & EditableTableFormItemProps<RecordType> & Partial<{}>> & PublicProps;
5
5
  expose(exposed: ShallowUnwrapRef<EditableTableFormItemExpose>): void;
@@ -36,9 +36,7 @@ declare const _default: <RecordType = any>(__VLS_props: NonNullable<Awaited<type
36
36
  }) => void;
37
37
  };
38
38
  emit: {};
39
- }>) => VNode<RendererNode, RendererElement, {
40
- [key: string]: any;
41
- }> & {
39
+ }>) => VNode & {
42
40
  __ctx?: Awaited<typeof __VLS_setup>;
43
41
  };
44
42
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import { EditableTableProps, EditableColumnType, EditableTableExpose } from './interface';
2
2
  import { Recordable } from '../type';
3
- import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode, RendererNode, RendererElement } from 'vue';
3
+ import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
4
4
  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<{
5
5
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
6
6
  readonly "onUpdate:value"?: ((...args: any[]) => any) | undefined;
@@ -39,9 +39,7 @@ declare const _default: <RecordType extends Recordable = any>(__VLS_props: NonNu
39
39
  }) => void;
40
40
  };
41
41
  emit: (event: "update:value", ...args: any[]) => void;
42
- }>) => VNode<RendererNode, RendererElement, {
43
- [key: string]: any;
44
- }> & {
42
+ }>) => VNode & {
45
43
  __ctx?: Awaited<typeof __VLS_setup>;
46
44
  };
47
45
  export default _default;
package/es/src/index.d.ts CHANGED
@@ -9,6 +9,7 @@ export * from './ap-list';
9
9
  export * from './ap-button';
10
10
  export * from './ap-drawer';
11
11
  export * from './ap-pro-card';
12
+ export * from './loading-bar';
12
13
  export * from './business';
13
14
  export * from './ap-table';
14
15
  export * from './editable-table';