@aplus-frontend/ui 0.1.30 → 0.1.32

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 (120) hide show
  1. package/es/index.mjs +153 -145
  2. package/es/src/{business/ap-action-button/ApActionButton.vue.d.ts → ap-button/ap-action-button.vue.d.ts} +3 -3
  3. package/es/src/ap-button/ap-action-button.vue.mjs +43 -0
  4. package/es/src/ap-button/ap-action-button.vue2.mjs +4 -0
  5. package/es/src/ap-button/ap-button.vue.d.ts +48 -0
  6. package/es/src/ap-button/ap-button.vue.mjs +118 -0
  7. package/es/src/ap-button/ap-button.vue2.mjs +4 -0
  8. package/es/src/ap-button/index.d.ts +4 -0
  9. package/es/src/ap-button/index.mjs +3 -0
  10. package/es/src/{business/ap-action-button → ap-button}/interface.d.ts +3 -1
  11. package/es/src/ap-descriptions/ap-descriptions.vue.mjs +43 -45
  12. package/es/src/ap-descriptions/formatter/index.d.ts +2 -2
  13. package/es/src/ap-descriptions/helper.d.ts +19 -1
  14. package/es/src/ap-descriptions/helper.mjs +22 -12
  15. package/es/src/ap-descriptions/style/ap-descriptions.css +1 -5
  16. package/es/src/ap-download/ap-download.vue.mjs +51 -40
  17. package/es/src/ap-download/utils/getFileInfo.d.ts +4 -1
  18. package/es/src/ap-download/utils/getFileInfo.mjs +51 -26
  19. package/es/src/ap-form/dependency/index.vue.d.ts +28 -0
  20. package/es/src/ap-form/dependency/index.vue.mjs +37 -0
  21. package/es/src/ap-form/dependency/index.vue2.mjs +4 -0
  22. package/es/src/ap-form/index.d.ts +3 -1
  23. package/es/src/ap-form/index.mjs +10 -6
  24. package/es/src/ap-form/interface.d.ts +3 -0
  25. package/es/src/business/ap-attachment/ApAttachment.mjs +76 -68
  26. package/es/src/business/ap-card/ApCard.vue.d.ts +27 -0
  27. package/es/src/business/ap-card/ApCard.vue.mjs +4 -0
  28. package/es/src/business/ap-card/ApCard.vue2.mjs +60 -0
  29. package/es/src/business/ap-card/index.css +10 -0
  30. package/es/src/business/ap-card/interface.d.ts +9 -0
  31. package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +56 -65
  32. package/es/src/business/ap-export-group/handleExportDownload.d.ts +1 -0
  33. package/es/src/business/ap-export-group/handleExportDownload.mjs +14 -0
  34. package/es/src/business/hooks/useTableRefresh.d.ts +1 -1
  35. package/es/src/business/hooks/useTableRefresh.mjs +1 -1
  36. package/es/src/business/index.d.ts +21 -235
  37. package/es/src/business/index.mjs +30 -29
  38. package/es/src/config-provider/config-provider-props.d.ts +5 -1
  39. package/es/src/config-provider/config-provider-props.mjs +6 -2
  40. package/es/src/config-provider/config-provider.d.ts +10 -1
  41. package/es/src/config-provider/config-provider.mjs +20 -19
  42. package/es/src/config-provider/constants.d.ts +9 -0
  43. package/es/src/config-provider/hooks/use-global-config.d.ts +5 -1
  44. package/es/src/config-provider/index.d.ts +20 -1
  45. package/es/src/editable-table/interface.d.ts +3 -2
  46. package/es/src/index.d.ts +1 -0
  47. package/es/src/index.mjs +274 -265
  48. package/es/src/theme/ap-card/ap-card.css +10 -0
  49. package/es/src/theme/ap-descriptions/ap-descriptions.css +1 -5
  50. package/es/src/theme/css-var/index.mjs +33 -15
  51. package/lib/index.js +1 -1
  52. package/lib/src/{business/ap-action-button/ApActionButton.vue.d.ts → ap-button/ap-action-button.vue.d.ts} +3 -3
  53. package/lib/src/ap-button/ap-action-button.vue.js +1 -0
  54. package/lib/src/ap-button/ap-action-button.vue2.js +1 -0
  55. package/lib/src/ap-button/ap-button.vue.d.ts +48 -0
  56. package/lib/src/ap-button/ap-button.vue.js +1 -0
  57. package/lib/src/ap-button/ap-button.vue2.js +1 -0
  58. package/lib/src/ap-button/index.d.ts +4 -0
  59. package/lib/src/ap-button/index.js +1 -0
  60. package/lib/src/{business/ap-action-button → ap-button}/interface.d.ts +3 -1
  61. package/lib/src/ap-descriptions/ap-descriptions.vue.js +1 -1
  62. package/lib/src/ap-descriptions/formatter/index.d.ts +2 -2
  63. package/lib/src/ap-descriptions/helper.d.ts +19 -1
  64. package/lib/src/ap-descriptions/helper.js +1 -1
  65. package/lib/src/ap-descriptions/style/ap-descriptions.css +1 -5
  66. package/lib/src/ap-download/ap-download.vue.js +1 -1
  67. package/lib/src/ap-download/utils/getFileInfo.d.ts +4 -1
  68. package/lib/src/ap-download/utils/getFileInfo.js +1 -1
  69. package/lib/src/ap-form/dependency/index.vue.d.ts +28 -0
  70. package/lib/src/ap-form/dependency/index.vue.js +1 -0
  71. package/lib/src/ap-form/dependency/index.vue2.js +1 -0
  72. package/lib/src/ap-form/index.d.ts +3 -1
  73. package/lib/src/ap-form/index.js +1 -1
  74. package/lib/src/ap-form/interface.d.ts +3 -0
  75. package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
  76. package/lib/src/business/ap-card/ApCard.vue.d.ts +27 -0
  77. package/lib/src/business/{ap-action-button/ApActionButton.vue.js → ap-card/ApCard.vue.js} +1 -1
  78. package/lib/src/business/ap-card/ApCard.vue2.js +1 -0
  79. package/lib/src/business/ap-card/index.css +10 -0
  80. package/lib/src/business/ap-card/interface.d.ts +9 -0
  81. package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
  82. package/lib/src/business/ap-export-group/handleExportDownload.d.ts +1 -0
  83. package/lib/src/business/ap-export-group/handleExportDownload.js +1 -0
  84. package/lib/src/business/hooks/useTableRefresh.d.ts +1 -1
  85. package/lib/src/business/hooks/useTableRefresh.js +1 -1
  86. package/lib/src/business/index.d.ts +21 -235
  87. package/lib/src/business/index.js +1 -1
  88. package/lib/src/config-provider/config-provider-props.d.ts +5 -1
  89. package/lib/src/config-provider/config-provider-props.js +1 -1
  90. package/lib/src/config-provider/config-provider.d.ts +10 -1
  91. package/lib/src/config-provider/config-provider.js +1 -1
  92. package/lib/src/config-provider/constants.d.ts +9 -0
  93. package/lib/src/config-provider/hooks/use-global-config.d.ts +5 -1
  94. package/lib/src/config-provider/index.d.ts +20 -1
  95. package/lib/src/editable-table/interface.d.ts +3 -2
  96. package/lib/src/index.d.ts +1 -0
  97. package/lib/src/index.js +1 -1
  98. package/lib/src/theme/ap-card/ap-card.css +10 -0
  99. package/lib/src/theme/ap-descriptions/ap-descriptions.css +1 -5
  100. package/lib/src/theme/css-var/index.js +1 -1
  101. package/package.json +1 -1
  102. package/es/src/business/ap-action-button/ApActionButton.vue.mjs +0 -4
  103. package/es/src/business/ap-action-button/ApActionButton.vue2.mjs +0 -97
  104. package/lib/src/business/ap-action-button/ApActionButton.vue2.js +0 -1
  105. /package/es/src/{business/ap-action-button → ap-button}/index.css +0 -0
  106. /package/es/src/{business/ap-action-button → ap-button}/interface.mjs +0 -0
  107. /package/es/src/business/{title → ap-title}/ApTitle.vue.d.ts +0 -0
  108. /package/es/src/business/{title → ap-title}/ApTitle.vue.mjs +0 -0
  109. /package/es/src/business/{title → ap-title}/ApTitle.vue2.mjs +0 -0
  110. /package/es/src/business/{title → ap-title}/interface.d.ts +0 -0
  111. /package/es/src/business/{title → ap-title}/style.css +0 -0
  112. /package/es/src/theme/{ap-action-button/ap-action-button.css → ap-button/ap-button.css} +0 -0
  113. /package/lib/src/{business/ap-action-button → ap-button}/index.css +0 -0
  114. /package/lib/src/{business/ap-action-button → ap-button}/interface.js +0 -0
  115. /package/lib/src/business/{title → ap-title}/ApTitle.vue.d.ts +0 -0
  116. /package/lib/src/business/{title → ap-title}/ApTitle.vue.js +0 -0
  117. /package/lib/src/business/{title → ap-title}/ApTitle.vue2.js +0 -0
  118. /package/lib/src/business/{title → ap-title}/interface.d.ts +0 -0
  119. /package/lib/src/business/{title → ap-title}/style.css +0 -0
  120. /package/lib/src/theme/{ap-action-button/ap-action-button.css → ap-button/ap-button.css} +0 -0
@@ -19,8 +19,9 @@ import { PresetColorType } from 'ant-design-vue/es/_util/colors';
19
19
  import { AlignType, BuildInPlacements } from 'ant-design-vue/es/vc-trigger/interface';
20
20
  import { ApLadderSlots } from './ap-ladder/interface';
21
21
  import { AttachmentItemProps, ApAttachmentProps } from './ap-attachment';
22
+ import { ApCardTitleProps } from './ap-card/interface';
22
23
  export * from './hooks/index';
23
- export type { ApTitleProps } from './title/interface';
24
+ export type { ApTitleProps } from './ap-title/interface';
24
25
  export type { ApExpandAlertProps } from './ap-expand-alert/interface';
25
26
  export type { ApLabelProps, ApLabelGroupProps, ApLabelGroupItemProps } from './ap-label/interface';
26
27
  export type { ApStatusProps, ApStatusGroupProps, ApStatusGroupItemProps } from './ap-status/interface';
@@ -30,7 +31,7 @@ export type { ApExportGroupProps } from './ap-export-group/interface';
30
31
  export type { ApLadderProps, ApLadderLabelValue, CurrencyCode, TooltipNeedProps } from './ap-ladder/interface';
31
32
  export * from './ap-batch-action-group/interface';
32
33
  export type { AttachmentItemProps, ApAttachmentProps } from './ap-attachment';
33
- export * from './ap-action-button/interface';
34
+ export * from './ap-export-group/handleExportDownload';
34
35
  export declare const ApTitle: {
35
36
  new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
36
37
  title: {
@@ -2799,129 +2800,22 @@ export declare const ApAttachment: DefineComponent<{
2799
2800
  attachmentList: AttachmentItemProps[];
2800
2801
  fileMorePopoverPlacement: TooltipPlacement;
2801
2802
  }, {}>;
2802
- export declare const ApActionButton: {
2803
+ export declare const ApCard: {
2803
2804
  new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
2804
- size: {
2805
- type: PropType<"small" | "large" | "middle">;
2806
- };
2807
- type: {
2808
- type: PropType< ButtonType | "borderLink">;
2809
- default: string;
2810
- };
2811
- title: {
2812
- type: PropType<string>;
2813
- };
2814
- onClick: {
2815
- type: PropType< MouseEventHandler | MouseEventHandler[]>;
2816
- };
2817
- onMousedown: {
2818
- type: PropType< MouseEventHandler | MouseEventHandler[]>;
2819
- };
2820
- block: {
2821
- type: PropType<boolean>;
2822
- };
2823
- icon: {
2824
- type: PropType<any>;
2825
- };
2826
- disabled: {
2827
- type: PropType<boolean>;
2828
- };
2829
- minWidth: {
2830
- type: PropType<string | number | boolean>;
2831
- default: boolean;
2832
- };
2833
- target: {
2834
- type: PropType<string>;
2835
- };
2836
- prefixCls: {
2837
- type: PropType<string>;
2838
- };
2839
- htmlType: {
2840
- type: PropType<ButtonHTMLType>;
2841
- };
2842
- shape: {
2843
- type: PropType<ButtonShape>;
2844
- };
2845
- loading: {
2846
- type: PropType<boolean | {
2847
- delay?: number;
2848
- }>;
2849
- };
2850
- ghost: {
2851
- type: PropType<boolean>;
2852
- };
2853
- danger: {
2854
- type: PropType<boolean>;
2855
- };
2856
- href: {
2857
- type: PropType<string>;
2805
+ titleProps: {
2806
+ type: PropType<ApCardTitleProps>;
2858
2807
  };
2859
- borderLinkColor: {
2808
+ padding: {
2860
2809
  type: PropType<string>;
2861
2810
  };
2862
2811
  }>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
2863
- size: {
2864
- type: PropType<"small" | "large" | "middle">;
2865
- };
2866
- type: {
2867
- type: PropType< ButtonType | "borderLink">;
2868
- default: string;
2869
- };
2870
- title: {
2871
- type: PropType<string>;
2872
- };
2873
- onClick: {
2874
- type: PropType< MouseEventHandler | MouseEventHandler[]>;
2875
- };
2876
- onMousedown: {
2877
- type: PropType< MouseEventHandler | MouseEventHandler[]>;
2878
- };
2879
- block: {
2880
- type: PropType<boolean>;
2881
- };
2882
- icon: {
2883
- type: PropType<any>;
2884
- };
2885
- disabled: {
2886
- type: PropType<boolean>;
2887
- };
2888
- minWidth: {
2889
- type: PropType<string | number | boolean>;
2890
- default: boolean;
2891
- };
2892
- target: {
2893
- type: PropType<string>;
2894
- };
2895
- prefixCls: {
2896
- type: PropType<string>;
2812
+ titleProps: {
2813
+ type: PropType<ApCardTitleProps>;
2897
2814
  };
2898
- htmlType: {
2899
- type: PropType<ButtonHTMLType>;
2900
- };
2901
- shape: {
2902
- type: PropType<ButtonShape>;
2903
- };
2904
- loading: {
2905
- type: PropType<boolean | {
2906
- delay?: number;
2907
- }>;
2908
- };
2909
- ghost: {
2910
- type: PropType<boolean>;
2911
- };
2912
- danger: {
2913
- type: PropType<boolean>;
2914
- };
2915
- href: {
2916
- type: PropType<string>;
2917
- };
2918
- borderLinkColor: {
2815
+ padding: {
2919
2816
  type: PropType<string>;
2920
2817
  };
2921
- }>>, {
2922
- type: ButtonType | "borderLink";
2923
- minWidth: boolean | number | string;
2924
- }, true, {}, {}, {
2818
+ }>>, {}, true, {}, {}, {
2925
2819
  P: {};
2926
2820
  B: {};
2927
2821
  D: {};
@@ -2929,135 +2823,27 @@ export declare const ApActionButton: {
2929
2823
  M: {};
2930
2824
  Defaults: {};
2931
2825
  }, Readonly< ExtractPropTypes<{
2932
- size: {
2933
- type: PropType<"small" | "large" | "middle">;
2826
+ titleProps: {
2827
+ type: PropType<ApCardTitleProps>;
2934
2828
  };
2935
- type: {
2936
- type: PropType< ButtonType | "borderLink">;
2937
- default: string;
2938
- };
2939
- title: {
2940
- type: PropType<string>;
2941
- };
2942
- onClick: {
2943
- type: PropType< MouseEventHandler | MouseEventHandler[]>;
2944
- };
2945
- onMousedown: {
2946
- type: PropType< MouseEventHandler | MouseEventHandler[]>;
2947
- };
2948
- block: {
2949
- type: PropType<boolean>;
2950
- };
2951
- icon: {
2952
- type: PropType<any>;
2953
- };
2954
- disabled: {
2955
- type: PropType<boolean>;
2956
- };
2957
- minWidth: {
2958
- type: PropType<string | number | boolean>;
2959
- default: boolean;
2960
- };
2961
- target: {
2962
- type: PropType<string>;
2963
- };
2964
- prefixCls: {
2965
- type: PropType<string>;
2966
- };
2967
- htmlType: {
2968
- type: PropType<ButtonHTMLType>;
2969
- };
2970
- shape: {
2971
- type: PropType<ButtonShape>;
2972
- };
2973
- loading: {
2974
- type: PropType<boolean | {
2975
- delay?: number;
2976
- }>;
2977
- };
2978
- ghost: {
2979
- type: PropType<boolean>;
2980
- };
2981
- danger: {
2982
- type: PropType<boolean>;
2983
- };
2984
- href: {
2985
- type: PropType<string>;
2986
- };
2987
- borderLinkColor: {
2829
+ padding: {
2988
2830
  type: PropType<string>;
2989
2831
  };
2990
- }>>, {}, {}, {}, {}, {
2991
- type: ButtonType | "borderLink";
2992
- minWidth: boolean | number | string;
2993
- }>;
2832
+ }>>, {}, {}, {}, {}, {}>;
2994
2833
  __isFragment?: never;
2995
2834
  __isTeleport?: never;
2996
2835
  __isSuspense?: never;
2997
2836
  } & ComponentOptionsBase<Readonly< ExtractPropTypes<{
2998
- size: {
2999
- type: PropType<"small" | "large" | "middle">;
2837
+ titleProps: {
2838
+ type: PropType<ApCardTitleProps>;
3000
2839
  };
3001
- type: {
3002
- type: PropType< ButtonType | "borderLink">;
3003
- default: string;
3004
- };
3005
- title: {
3006
- type: PropType<string>;
3007
- };
3008
- onClick: {
3009
- type: PropType< MouseEventHandler | MouseEventHandler[]>;
3010
- };
3011
- onMousedown: {
3012
- type: PropType< MouseEventHandler | MouseEventHandler[]>;
3013
- };
3014
- block: {
3015
- type: PropType<boolean>;
3016
- };
3017
- icon: {
3018
- type: PropType<any>;
3019
- };
3020
- disabled: {
3021
- type: PropType<boolean>;
3022
- };
3023
- minWidth: {
3024
- type: PropType<string | number | boolean>;
3025
- default: boolean;
3026
- };
3027
- target: {
3028
- type: PropType<string>;
3029
- };
3030
- prefixCls: {
3031
- type: PropType<string>;
3032
- };
3033
- htmlType: {
3034
- type: PropType<ButtonHTMLType>;
3035
- };
3036
- shape: {
3037
- type: PropType<ButtonShape>;
3038
- };
3039
- loading: {
3040
- type: PropType<boolean | {
3041
- delay?: number;
3042
- }>;
3043
- };
3044
- ghost: {
3045
- type: PropType<boolean>;
3046
- };
3047
- danger: {
3048
- type: PropType<boolean>;
3049
- };
3050
- href: {
2840
+ padding: {
3051
2841
  type: PropType<string>;
3052
2842
  };
3053
- borderLinkColor: {
3054
- type: PropType<string>;
2843
+ }>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
2844
+ $slots: {
2845
+ default?(_: {}): any;
3055
2846
  };
3056
- }>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
3057
- type: ButtonType | "borderLink";
3058
- minWidth: boolean | number | string;
3059
- }, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
3060
- $slots: Partial<Record<string, (_: any) => any>>;
3061
2847
  }) & ( Plugin & (new (...args: any[]) => {
3062
2848
  $props: {
3063
2849
  onClick?: () => void;
@@ -1,9 +1,9 @@
1
1
  import { withInstall as o } from "@aplus-frontend/utils";
2
2
  import "./hooks/index.mjs";
3
- import "./title/ApTitle.vue.mjs";
3
+ import "./ap-title/ApTitle.vue.mjs";
4
4
  import "./ap-expand-alert/ApExpandAlert.vue.mjs";
5
5
  import t from "./ap-label/ApLabel.mjs";
6
- import m from "./ap-label/ApLabelGroup.mjs";
6
+ import r from "./ap-label/ApLabelGroup.mjs";
7
7
  import "./ap-status/ApStatus.vue.mjs";
8
8
  import "./ap-status/ApStatusGroup.vue.mjs";
9
9
  import "./ap-select-layout/select-layout.vue.mjs";
@@ -13,16 +13,16 @@ import "./ap-batch-action/ApBatchAction.vue.mjs";
13
13
  import "./ap-batch-action-group/ApBatchActionGroup.vue.mjs";
14
14
  import "./ap-image/ApImage.vue.mjs";
15
15
  import "./ap-ladder/ApLadder.vue.mjs";
16
- import p from "./ap-attachment/ApAttachment.mjs";
17
- import "./ap-action-button/ApActionButton.vue.mjs";
18
- import { ApTransformDataHelper as so } from "../utils/ap-trans-data/index.mjs";
16
+ import m from "./ap-attachment/ApAttachment.mjs";
17
+ import "./ap-card/ApCard.vue.mjs";
18
+ import { ApTransformDataHelper as fo } from "../utils/ap-trans-data/index.mjs";
19
19
  import "./ap-batch-action-group/interface.mjs";
20
- import "./ap-action-button/interface.mjs";
21
- import { default as Ao } from "./ap-table-modal/index.mjs";
22
- import r from "./title/ApTitle.vue2.mjs";
20
+ import { handleExportDownload as _o } from "./ap-export-group/handleExportDownload.mjs";
21
+ import { default as eo } from "./ap-table-modal/index.mjs";
22
+ import p from "./ap-title/ApTitle.vue2.mjs";
23
23
  import i from "./ap-expand-alert/ApExpandAlert.vue2.mjs";
24
- import n from "./ap-status/ApStatus.vue2.mjs";
25
- import a from "./ap-status/ApStatusGroup.vue2.mjs";
24
+ import a from "./ap-status/ApStatus.vue2.mjs";
25
+ import n from "./ap-status/ApStatusGroup.vue2.mjs";
26
26
  import c from "./ap-select-layout/select-layout.vue2.mjs";
27
27
  import f from "./ap-export-group/ApExportGroup.vue2.mjs";
28
28
  import s from "./ap-input-radio/ApInputRadio.vue2.mjs";
@@ -30,24 +30,25 @@ import _ from "./ap-batch-action/ApBatchAction.vue2.mjs";
30
30
  import A from "./ap-batch-action-group/ApBatchActionGroup.vue2.mjs";
31
31
  import e from "./ap-image/ApImage.vue2.mjs";
32
32
  import l from "./ap-ladder/ApLadder.vue2.mjs";
33
- import u from "./ap-action-button/ApActionButton.vue2.mjs";
34
- const Q = o(r), U = i, V = o(t), W = o(n), X = o(a), Y = o(c), Z = o(f), oo = s, to = _, mo = m, po = A, ro = e, io = o(l), no = p, ao = o(u);
33
+ import $ from "./ap-card/ApCard.vue2.mjs";
34
+ const P = o(p), Q = i, U = o(t), V = o(a), W = o(n), X = o(c), Y = o(f), Z = s, oo = _, to = r, ro = A, mo = e, po = o(l), io = m, ao = o($);
35
35
  export {
36
- ao as ApActionButton,
37
- no as ApAttachment,
38
- to as ApBatchAction,
39
- po as ApBatchActionGroup,
40
- U as ApExpandAlert,
41
- Z as ApExportGroup,
42
- ro as ApImage,
43
- oo as ApInputRadio,
44
- V as ApLabel,
45
- mo as ApLabelGroup,
46
- io as ApLadder,
47
- Y as ApSelectLayout,
48
- W as ApStatus,
49
- X as ApStatusGroup,
50
- Ao as ApTableModal,
51
- Q as ApTitle,
52
- so as ApTransformDataHelper
36
+ io as ApAttachment,
37
+ oo as ApBatchAction,
38
+ ro as ApBatchActionGroup,
39
+ ao as ApCard,
40
+ Q as ApExpandAlert,
41
+ Y as ApExportGroup,
42
+ mo as ApImage,
43
+ Z as ApInputRadio,
44
+ U as ApLabel,
45
+ to as ApLabelGroup,
46
+ po as ApLadder,
47
+ X as ApSelectLayout,
48
+ V as ApStatus,
49
+ W as ApStatusGroup,
50
+ eo as ApTableModal,
51
+ P as ApTitle,
52
+ fo as ApTransformDataHelper,
53
+ _o as handleExportDownload
53
54
  };
@@ -1,6 +1,6 @@
1
1
  import { ExtractPropTypes, PropType } from 'vue';
2
2
  import { LocaleType } from '../locale/interface';
3
- import { ApiType, ScrollbarGlobalConfig, TableDefaultConfig, ApUploadConfig, ApDescriptionsConfig, ValueTypeRenderConfig } from './constants';
3
+ import { ApiType, ScrollbarGlobalConfig, TableDefaultConfig, ApUploadConfig, ApDescriptionsConfig, ValueTypeRenderConfig, downloadCenterTriggerConfig } from './constants';
4
4
  import { default as __DTS_DEFAULT_0__ } from 'ant-design-vue/es/config-provider/renderEmpty';
5
5
  import { TransformCellTextProps } from 'ant-design-vue/es/table/interface';
6
6
  import { CSPConfig } from 'ant-design-vue/es/config-provider';
@@ -161,5 +161,9 @@ export declare const configProviderProps: () => {
161
161
  type: PropType<Record<string, ValueTypeRenderConfig>>;
162
162
  default: () => {};
163
163
  };
164
+ downloadCenterTriggerConfig: {
165
+ type: PropType<downloadCenterTriggerConfig>;
166
+ default: () => {};
167
+ };
164
168
  };
165
169
  export type ConfigProviderProps = Partial<ExtractPropTypes<ReturnType<typeof configProviderProps>>>;
@@ -1,5 +1,5 @@
1
1
  import { configProviderProps as e } from "ant-design-vue/es/config-provider/context";
2
- const p = () => ({
2
+ const a = () => ({
3
3
  /**
4
4
  * @description aplus-ui的locale
5
5
  */
@@ -37,8 +37,12 @@ const p = () => ({
37
37
  type: Object,
38
38
  default: () => ({})
39
39
  },
40
+ downloadCenterTriggerConfig: {
41
+ type: Object,
42
+ default: () => ({})
43
+ },
40
44
  ...e()
41
45
  });
42
46
  export {
43
- p as configProviderProps
47
+ a as configProviderProps
44
48
  };
@@ -9,7 +9,7 @@ import { ValidateMessages } from 'ant-design-vue/es/form/interface';
9
9
  import { RequiredMark } from 'ant-design-vue/es/form/Form';
10
10
  import { ThemeConfig } from 'ant-design-vue/es/config-provider/context';
11
11
  import { LocaleType } from '..';
12
- import { ApiType, TableDefaultConfig, ScrollbarGlobalConfig, ApUploadConfig, ApDescriptionsConfig, ValueTypeRenderConfig } from './constants';
12
+ import { ApiType, TableDefaultConfig, ScrollbarGlobalConfig, ApUploadConfig, ApDescriptionsConfig, ValueTypeRenderConfig, downloadCenterTriggerConfig } from './constants';
13
13
  export declare const globalConfigCached: Ref<ConfigProviderProps>;
14
14
  export declare const ConfigProvider: DefineComponent<{
15
15
  iconPrefixCls: StringConstructor;
@@ -160,6 +160,10 @@ export declare const ConfigProvider: DefineComponent<{
160
160
  type: PropType<Record<string, ValueTypeRenderConfig>>;
161
161
  default: () => {};
162
162
  };
163
+ downloadCenterTriggerConfig: {
164
+ type: PropType<downloadCenterTriggerConfig>;
165
+ default: () => {};
166
+ };
163
167
  }, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
164
168
  iconPrefixCls: StringConstructor;
165
169
  getTargetContainer: {
@@ -309,6 +313,10 @@ export declare const ConfigProvider: DefineComponent<{
309
313
  type: PropType<Record<string, ValueTypeRenderConfig>>;
310
314
  default: () => {};
311
315
  };
316
+ downloadCenterTriggerConfig: {
317
+ type: PropType<downloadCenterTriggerConfig>;
318
+ default: () => {};
319
+ };
312
320
  }>>, {
313
321
  input: {
314
322
  autocomplete?: string;
@@ -348,5 +356,6 @@ export declare const ConfigProvider: DefineComponent<{
348
356
  apUpload: ApUploadConfig;
349
357
  apDescriptions: ApDescriptionsConfig;
350
358
  valueTypeMap: Record<string, ValueTypeRenderConfig>;
359
+ downloadCenterTriggerConfig: downloadCenterTriggerConfig;
351
360
  }, {}>;
352
361
  export type ConfigProviderInstance = InstanceType<typeof ConfigProvider>;
@@ -1,20 +1,20 @@
1
- import { isVNode as n, ref as d, defineComponent as f, computed as u, watch as a, createVNode as m, renderSlot as c } from "vue";
2
- import { ConfigProvider as p } from "ant-design-vue";
3
- import { provideGlobalConfig as s } from "./hooks/use-global-config.mjs";
4
- import { configProviderProps as g } from "./config-provider-props.mjs";
1
+ import { isVNode as l, ref as d, defineComponent as f, computed as u, watch as i, createVNode as m, renderSlot as c } from "vue";
2
+ import { ConfigProvider as g } from "ant-design-vue";
3
+ import { provideGlobalConfig as p } from "./hooks/use-global-config.mjs";
4
+ import { configProviderProps as s } from "./config-provider-props.mjs";
5
5
  import { tableDefaultConfig as C } from "./constants.mjs";
6
6
  import { mergeAntdProvideConfig as v } from "../utils/config-provider-preset.mjs";
7
- import { setCSSVariables as b, aplusCssVar as P, adminCssVar as y } from "../theme/css-var/index.mjs";
8
- function M(e) {
9
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !n(e);
7
+ import { setCSSVariables as b, aplusCssVar as P, adminCssVar as w } from "../theme/css-var/index.mjs";
8
+ function y(e) {
9
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !l(e);
10
10
  }
11
- const i = d({}), L = /* @__PURE__ */ f({
11
+ const a = d({}), A = /* @__PURE__ */ f({
12
12
  name: "AplusConfigProvider",
13
- props: g(),
13
+ props: s(),
14
14
  setup(e, {
15
15
  slots: r
16
16
  }) {
17
- const l = u(() => ({
17
+ const n = u(() => ({
18
18
  namespace: e.namespace,
19
19
  aplusLocale: e.aplusLocale,
20
20
  api: e.api,
@@ -26,20 +26,21 @@ const i = d({}), L = /* @__PURE__ */ f({
26
26
  uiMode: e.uiMode,
27
27
  apUpload: e.apUpload,
28
28
  apDescriptions: e.apDescriptions,
29
- valueTypeMap: e.valueTypeMap
30
- })), t = s(l);
31
- return a(() => e, (o) => {
32
- i.value = v(o);
29
+ valueTypeMap: e.valueTypeMap,
30
+ downloadCenterTriggerConfig: e.downloadCenterTriggerConfig
31
+ })), t = p(n);
32
+ return i(() => e, (o) => {
33
+ a.value = v(o);
33
34
  }, {
34
35
  deep: !0,
35
36
  immediate: !0
36
- }), typeof window < "u" && a(() => e.uiMode, (o) => {
37
- b(o === "aplus" ? P : y);
37
+ }), typeof window < "u" && i(() => e.uiMode, (o) => {
38
+ b(o === "aplus" ? P : w);
38
39
  }, {
39
40
  immediate: !0
40
41
  }), () => {
41
42
  let o;
42
- return m(p, i.value, M(o = c(r, "default", {
43
+ return m(g, a.value, y(o = c(r, "default", {
43
44
  config: t == null ? void 0 : t.value
44
45
  })) ? o : {
45
46
  default: () => [o]
@@ -48,6 +49,6 @@ const i = d({}), L = /* @__PURE__ */ f({
48
49
  }
49
50
  });
50
51
  export {
51
- L as ConfigProvider,
52
- i as globalConfigCached
52
+ A as ConfigProvider,
53
+ a as globalConfigCached
53
54
  };
@@ -45,4 +45,13 @@ export type ValueTypeRenderConfig = {
45
45
  export type ApDescriptionsConfig = {
46
46
  downloadFile?: (url: string, name: string) => void;
47
47
  };
48
+ export type downloadCenterTriggerConfigParams = {
49
+ fileName?: string;
50
+ fileSource?: string;
51
+ objectName?: string;
52
+ [propName: string]: unknown;
53
+ };
54
+ export type downloadCenterTriggerConfig = {
55
+ trigger: (fileList: downloadCenterTriggerConfigParams[]) => Promise<any>;
56
+ };
48
57
  export {};
@@ -10,7 +10,7 @@ import { ValidateMessages } from 'ant-design-vue/es/form/interface';
10
10
  import { RequiredMark } from 'ant-design-vue/es/form/Form';
11
11
  import { ThemeConfig } from 'ant-design-vue/es/config-provider/context';
12
12
  import { LocaleType } from '../..';
13
- import { ApiType, TableDefaultConfig, ScrollbarGlobalConfig, ApUploadConfig, ApDescriptionsConfig, ValueTypeRenderConfig } from '..';
13
+ import { ApiType, TableDefaultConfig, ScrollbarGlobalConfig, ApUploadConfig, ApDescriptionsConfig, ValueTypeRenderConfig, downloadCenterTriggerConfig } from '..';
14
14
  export declare const keysOf: <T extends Record<string, any>>(arr: T) => Array<keyof T>;
15
15
  export declare function useGlobalConfig<K extends keyof ConfigProviderContext, D extends ConfigProviderContext[K]>(key: K, defaultValue?: D): Ref<Exclude<ConfigProviderContext[K], undefined> | D>;
16
16
  export declare function useGlobalConfig(): Ref<ConfigProviderContext>;
@@ -163,4 +163,8 @@ export declare const provideGlobalConfig: (config: MaybeRef<ConfigProviderContex
163
163
  type: PropType<Record<string, ValueTypeRenderConfig>>;
164
164
  default: () => {};
165
165
  };
166
+ downloadCenterTriggerConfig: {
167
+ type: PropType<downloadCenterTriggerConfig>;
168
+ default: () => {};
169
+ };
166
170
  }>>>> | undefined;
@@ -8,7 +8,7 @@ import { ValidateMessages } from 'ant-design-vue/es/form/interface';
8
8
  import { RequiredMark } from 'ant-design-vue/es/form/Form';
9
9
  import { ThemeConfig } from 'ant-design-vue/es/config-provider/context';
10
10
  import { LocaleType } from '..';
11
- import { ApiType, TableDefaultConfig, ScrollbarGlobalConfig, ApUploadConfig, ApDescriptionsConfig, ValueTypeRenderConfig } from './constants';
11
+ import { ApiType, TableDefaultConfig, ScrollbarGlobalConfig, ApUploadConfig, ApDescriptionsConfig, ValueTypeRenderConfig, downloadCenterTriggerConfig } from './constants';
12
12
  export * from './config-provider-props';
13
13
  export * from './constants';
14
14
  export * from './hooks/use-global-config';
@@ -165,6 +165,10 @@ export declare const APConfigProvider: {
165
165
  type: PropType<Record<string, ValueTypeRenderConfig>>;
166
166
  default: () => {};
167
167
  };
168
+ downloadCenterTriggerConfig: {
169
+ type: PropType<downloadCenterTriggerConfig>;
170
+ default: () => {};
171
+ };
168
172
  }>>, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
169
173
  iconPrefixCls: StringConstructor;
170
174
  getTargetContainer: {
@@ -314,6 +318,10 @@ export declare const APConfigProvider: {
314
318
  type: PropType<Record<string, ValueTypeRenderConfig>>;
315
319
  default: () => {};
316
320
  };
321
+ downloadCenterTriggerConfig: {
322
+ type: PropType<downloadCenterTriggerConfig>;
323
+ default: () => {};
324
+ };
317
325
  }>>, {
318
326
  input: {
319
327
  autocomplete?: string;
@@ -353,6 +361,7 @@ export declare const APConfigProvider: {
353
361
  apUpload: ApUploadConfig;
354
362
  apDescriptions: ApDescriptionsConfig;
355
363
  valueTypeMap: Record<string, ValueTypeRenderConfig>;
364
+ downloadCenterTriggerConfig: downloadCenterTriggerConfig;
356
365
  }, true, {}, {}, {
357
366
  P: {};
358
367
  B: {};
@@ -509,6 +518,10 @@ export declare const APConfigProvider: {
509
518
  type: PropType<Record<string, ValueTypeRenderConfig>>;
510
519
  default: () => {};
511
520
  };
521
+ downloadCenterTriggerConfig: {
522
+ type: PropType<downloadCenterTriggerConfig>;
523
+ default: () => {};
524
+ };
512
525
  }>>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
513
526
  input: {
514
527
  autocomplete?: string;
@@ -548,6 +561,7 @@ export declare const APConfigProvider: {
548
561
  apUpload: ApUploadConfig;
549
562
  apDescriptions: ApDescriptionsConfig;
550
563
  valueTypeMap: Record<string, ValueTypeRenderConfig>;
564
+ downloadCenterTriggerConfig: downloadCenterTriggerConfig;
551
565
  }>;
552
566
  __isFragment?: never;
553
567
  __isTeleport?: never;
@@ -701,6 +715,10 @@ export declare const APConfigProvider: {
701
715
  type: PropType<Record<string, ValueTypeRenderConfig>>;
702
716
  default: () => {};
703
717
  };
718
+ downloadCenterTriggerConfig: {
719
+ type: PropType<downloadCenterTriggerConfig>;
720
+ default: () => {};
721
+ };
704
722
  }>>, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
705
723
  input: {
706
724
  autocomplete?: string;
@@ -740,6 +758,7 @@ export declare const APConfigProvider: {
740
758
  apUpload: ApUploadConfig;
741
759
  apDescriptions: ApDescriptionsConfig;
742
760
  valueTypeMap: Record<string, ValueTypeRenderConfig>;
761
+ downloadCenterTriggerConfig: downloadCenterTriggerConfig;
743
762
  }, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & ( Plugin & (new (...args: any[]) => {
744
763
  $props: {
745
764
  onClick?: () => void;
@@ -150,12 +150,13 @@ export type EditableTableExpose<ModelType = any, RecordType = any> = {
150
150
  */
151
151
  getRowData: (index: number) => RecordType | undefined;
152
152
  /**
153
- * 设置表格行数据(数据会进行浅层合并)
153
+ * 设置表格行数据
154
154
  * @param index
155
155
  * @param data
156
+ * @param merge 是否进行数据的浅层合并(默认为true)
156
157
  * @returns
157
158
  */
158
- setRowData: (index: number, data: Partial<RecordType>) => void;
159
+ setRowData: (index: number, data: Partial<RecordType>, merge?: boolean) => void;
159
160
  /**
160
161
  * 滚动到表格的某行
161
162
  * @param index
package/es/src/index.d.ts CHANGED
@@ -29,6 +29,7 @@ export * from './ap-download';
29
29
  export * from './check-card';
30
30
  export * from './ap-modal';
31
31
  export * from './ap-list';
32
+ export * from './ap-button';
32
33
  export * from './business';
33
34
  export * from './ap-table';
34
35
  export * from './editable-table';