@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.
- package/es/index.mjs +153 -145
- package/es/src/{business/ap-action-button/ApActionButton.vue.d.ts → ap-button/ap-action-button.vue.d.ts} +3 -3
- package/es/src/ap-button/ap-action-button.vue.mjs +43 -0
- package/es/src/ap-button/ap-action-button.vue2.mjs +4 -0
- package/es/src/ap-button/ap-button.vue.d.ts +48 -0
- package/es/src/ap-button/ap-button.vue.mjs +118 -0
- package/es/src/ap-button/ap-button.vue2.mjs +4 -0
- package/es/src/ap-button/index.d.ts +4 -0
- package/es/src/ap-button/index.mjs +3 -0
- package/es/src/{business/ap-action-button → ap-button}/interface.d.ts +3 -1
- package/es/src/ap-descriptions/ap-descriptions.vue.mjs +43 -45
- package/es/src/ap-descriptions/formatter/index.d.ts +2 -2
- package/es/src/ap-descriptions/helper.d.ts +19 -1
- package/es/src/ap-descriptions/helper.mjs +22 -12
- package/es/src/ap-descriptions/style/ap-descriptions.css +1 -5
- package/es/src/ap-download/ap-download.vue.mjs +51 -40
- package/es/src/ap-download/utils/getFileInfo.d.ts +4 -1
- package/es/src/ap-download/utils/getFileInfo.mjs +51 -26
- package/es/src/ap-form/dependency/index.vue.d.ts +28 -0
- package/es/src/ap-form/dependency/index.vue.mjs +37 -0
- package/es/src/ap-form/dependency/index.vue2.mjs +4 -0
- package/es/src/ap-form/index.d.ts +3 -1
- package/es/src/ap-form/index.mjs +10 -6
- package/es/src/ap-form/interface.d.ts +3 -0
- package/es/src/business/ap-attachment/ApAttachment.mjs +76 -68
- package/es/src/business/ap-card/ApCard.vue.d.ts +27 -0
- package/es/src/business/ap-card/ApCard.vue.mjs +4 -0
- package/es/src/business/ap-card/ApCard.vue2.mjs +60 -0
- package/es/src/business/ap-card/index.css +10 -0
- package/es/src/business/ap-card/interface.d.ts +9 -0
- package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +56 -65
- package/es/src/business/ap-export-group/handleExportDownload.d.ts +1 -0
- package/es/src/business/ap-export-group/handleExportDownload.mjs +14 -0
- package/es/src/business/hooks/useTableRefresh.d.ts +1 -1
- package/es/src/business/hooks/useTableRefresh.mjs +1 -1
- package/es/src/business/index.d.ts +21 -235
- package/es/src/business/index.mjs +30 -29
- package/es/src/config-provider/config-provider-props.d.ts +5 -1
- package/es/src/config-provider/config-provider-props.mjs +6 -2
- package/es/src/config-provider/config-provider.d.ts +10 -1
- package/es/src/config-provider/config-provider.mjs +20 -19
- package/es/src/config-provider/constants.d.ts +9 -0
- package/es/src/config-provider/hooks/use-global-config.d.ts +5 -1
- package/es/src/config-provider/index.d.ts +20 -1
- package/es/src/editable-table/interface.d.ts +3 -2
- package/es/src/index.d.ts +1 -0
- package/es/src/index.mjs +274 -265
- package/es/src/theme/ap-card/ap-card.css +10 -0
- package/es/src/theme/ap-descriptions/ap-descriptions.css +1 -5
- package/es/src/theme/css-var/index.mjs +33 -15
- package/lib/index.js +1 -1
- package/lib/src/{business/ap-action-button/ApActionButton.vue.d.ts → ap-button/ap-action-button.vue.d.ts} +3 -3
- package/lib/src/ap-button/ap-action-button.vue.js +1 -0
- package/lib/src/ap-button/ap-action-button.vue2.js +1 -0
- package/lib/src/ap-button/ap-button.vue.d.ts +48 -0
- package/lib/src/ap-button/ap-button.vue.js +1 -0
- package/lib/src/ap-button/ap-button.vue2.js +1 -0
- package/lib/src/ap-button/index.d.ts +4 -0
- package/lib/src/ap-button/index.js +1 -0
- package/lib/src/{business/ap-action-button → ap-button}/interface.d.ts +3 -1
- package/lib/src/ap-descriptions/ap-descriptions.vue.js +1 -1
- package/lib/src/ap-descriptions/formatter/index.d.ts +2 -2
- package/lib/src/ap-descriptions/helper.d.ts +19 -1
- package/lib/src/ap-descriptions/helper.js +1 -1
- package/lib/src/ap-descriptions/style/ap-descriptions.css +1 -5
- package/lib/src/ap-download/ap-download.vue.js +1 -1
- package/lib/src/ap-download/utils/getFileInfo.d.ts +4 -1
- package/lib/src/ap-download/utils/getFileInfo.js +1 -1
- package/lib/src/ap-form/dependency/index.vue.d.ts +28 -0
- package/lib/src/ap-form/dependency/index.vue.js +1 -0
- package/lib/src/ap-form/dependency/index.vue2.js +1 -0
- package/lib/src/ap-form/index.d.ts +3 -1
- package/lib/src/ap-form/index.js +1 -1
- package/lib/src/ap-form/interface.d.ts +3 -0
- package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
- package/lib/src/business/ap-card/ApCard.vue.d.ts +27 -0
- package/lib/src/business/{ap-action-button/ApActionButton.vue.js → ap-card/ApCard.vue.js} +1 -1
- package/lib/src/business/ap-card/ApCard.vue2.js +1 -0
- package/lib/src/business/ap-card/index.css +10 -0
- package/lib/src/business/ap-card/interface.d.ts +9 -0
- package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
- package/lib/src/business/ap-export-group/handleExportDownload.d.ts +1 -0
- package/lib/src/business/ap-export-group/handleExportDownload.js +1 -0
- package/lib/src/business/hooks/useTableRefresh.d.ts +1 -1
- package/lib/src/business/hooks/useTableRefresh.js +1 -1
- package/lib/src/business/index.d.ts +21 -235
- package/lib/src/business/index.js +1 -1
- package/lib/src/config-provider/config-provider-props.d.ts +5 -1
- package/lib/src/config-provider/config-provider-props.js +1 -1
- package/lib/src/config-provider/config-provider.d.ts +10 -1
- package/lib/src/config-provider/config-provider.js +1 -1
- package/lib/src/config-provider/constants.d.ts +9 -0
- package/lib/src/config-provider/hooks/use-global-config.d.ts +5 -1
- package/lib/src/config-provider/index.d.ts +20 -1
- package/lib/src/editable-table/interface.d.ts +3 -2
- package/lib/src/index.d.ts +1 -0
- package/lib/src/index.js +1 -1
- package/lib/src/theme/ap-card/ap-card.css +10 -0
- package/lib/src/theme/ap-descriptions/ap-descriptions.css +1 -5
- package/lib/src/theme/css-var/index.js +1 -1
- package/package.json +1 -1
- package/es/src/business/ap-action-button/ApActionButton.vue.mjs +0 -4
- package/es/src/business/ap-action-button/ApActionButton.vue2.mjs +0 -97
- package/lib/src/business/ap-action-button/ApActionButton.vue2.js +0 -1
- /package/es/src/{business/ap-action-button → ap-button}/index.css +0 -0
- /package/es/src/{business/ap-action-button → ap-button}/interface.mjs +0 -0
- /package/es/src/business/{title → ap-title}/ApTitle.vue.d.ts +0 -0
- /package/es/src/business/{title → ap-title}/ApTitle.vue.mjs +0 -0
- /package/es/src/business/{title → ap-title}/ApTitle.vue2.mjs +0 -0
- /package/es/src/business/{title → ap-title}/interface.d.ts +0 -0
- /package/es/src/business/{title → ap-title}/style.css +0 -0
- /package/es/src/theme/{ap-action-button/ap-action-button.css → ap-button/ap-button.css} +0 -0
- /package/lib/src/{business/ap-action-button → ap-button}/index.css +0 -0
- /package/lib/src/{business/ap-action-button → ap-button}/interface.js +0 -0
- /package/lib/src/business/{title → ap-title}/ApTitle.vue.d.ts +0 -0
- /package/lib/src/business/{title → ap-title}/ApTitle.vue.js +0 -0
- /package/lib/src/business/{title → ap-title}/ApTitle.vue2.js +0 -0
- /package/lib/src/business/{title → ap-title}/interface.d.ts +0 -0
- /package/lib/src/business/{title → ap-title}/style.css +0 -0
- /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-
|
|
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
|
|
2803
|
+
export declare const ApCard: {
|
|
2803
2804
|
new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
2804
|
-
|
|
2805
|
-
type: PropType<
|
|
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
|
-
|
|
2808
|
+
padding: {
|
|
2860
2809
|
type: PropType<string>;
|
|
2861
2810
|
};
|
|
2862
2811
|
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
2863
|
-
|
|
2864
|
-
type: PropType<
|
|
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
|
-
|
|
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
|
-
|
|
2933
|
-
type: PropType<
|
|
2826
|
+
titleProps: {
|
|
2827
|
+
type: PropType<ApCardTitleProps>;
|
|
2934
2828
|
};
|
|
2935
|
-
|
|
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
|
-
|
|
2999
|
-
type: PropType<
|
|
2837
|
+
titleProps: {
|
|
2838
|
+
type: PropType<ApCardTitleProps>;
|
|
3000
2839
|
};
|
|
3001
|
-
|
|
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
|
-
|
|
3054
|
-
|
|
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
|
|
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
|
|
17
|
-
import "./ap-
|
|
18
|
-
import { ApTransformDataHelper as
|
|
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-
|
|
21
|
-
import { default as
|
|
22
|
-
import
|
|
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
|
|
25
|
-
import
|
|
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
|
|
34
|
-
const
|
|
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
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
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
|
|
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
|
-
|
|
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
|
|
2
|
-
import { ConfigProvider as
|
|
3
|
-
import { provideGlobalConfig as
|
|
4
|
-
import { configProviderProps as
|
|
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
|
|
8
|
-
function
|
|
9
|
-
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !
|
|
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
|
|
11
|
+
const a = d({}), A = /* @__PURE__ */ f({
|
|
12
12
|
name: "AplusConfigProvider",
|
|
13
|
-
props:
|
|
13
|
+
props: s(),
|
|
14
14
|
setup(e, {
|
|
15
15
|
slots: r
|
|
16
16
|
}) {
|
|
17
|
-
const
|
|
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
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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" &&
|
|
37
|
-
b(o === "aplus" ? P :
|
|
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(
|
|
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
|
-
|
|
52
|
-
|
|
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
|
|
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