@zat-design/sisyphus-react 3.11.14-beta.5 → 3.11.14-beta.6
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/dist/index.esm.css +22 -15
- package/dist/less.esm.css +22 -15
- package/es/ProAction/index.d.ts +2 -2
- package/es/ProAction/propsType.d.ts +16 -10
- package/es/ProConfigProvider/index.d.ts +6 -6
- package/es/ProDownload/index.d.ts +2 -2
- package/es/ProDownload/propsType.d.ts +2 -1
- package/es/ProEditLabel/components/RenderProForm.d.ts +2 -2
- package/es/ProEditLabel/index.d.ts +2 -2
- package/es/ProEditLabel/propsType.d.ts +133 -6
- package/es/ProEditLabel/style/index.less +24 -25
- package/es/ProEnum/components/Group.d.ts +2 -2
- package/es/ProEnum/components/Tag.d.ts +2 -2
- package/es/ProEnum/hooks/useEnumRequest.d.ts +2 -2
- package/es/ProEnum/index.d.ts +2 -2
- package/es/ProEnum/propsType.d.ts +228 -39
- package/es/ProEnum/propsType.js +0 -6
- package/es/ProEnum/utils/index.d.ts +1 -1
- package/es/ProForm/components/combination/ProCascader/index.d.ts +1 -2
- package/es/ProForm/components/combination/ProCascader/propsType.d.ts +2 -1
- package/es/ProForm/components/combination/ProModalSelect/propsType.d.ts +3 -2
- package/es/ProIcon/symbolIcon.js +80 -39
- package/es/ProLayout/components/Layout/Header/index.d.ts +2 -2
- package/es/ProLayout/components/Layout/Menu/index.d.ts +2 -2
- package/es/ProLayout/components/Layout/Notice/index.d.ts +2 -2
- package/es/ProLayout/components/ProCollapse/PropTypes.d.ts +4 -2
- package/es/ProLayout/components/ProCollapse/index.d.ts +2 -2
- package/es/ProLayout/components/ProFooter/PropTypes.d.ts +2 -1
- package/es/ProLayout/components/ProFooter/index.d.ts +2 -2
- package/es/ProLayout/components/ProHeader/PropTypes.d.ts +13 -9
- package/es/ProLayout/components/ProHeader/index.d.ts +2 -2
- package/es/ProLayout/index.d.ts +5 -5
- package/es/ProLayout/index.js +6 -2
- package/es/ProLayout/propTypes.d.ts +62 -21
- package/es/ProLayout/utils/index.d.ts +2 -2
- package/es/ProSelect/index.d.ts +3 -3
- package/es/ProSelect/propsType.d.ts +139 -29
- package/es/ProTable/style/index.less +3 -0
- package/es/ProTabs/index.d.ts +2 -2
- package/es/ProTabs/index.js +4 -4
- package/es/ProTabs/propType.d.ts +66 -9
- package/es/ProThemeTools/index.d.ts +2 -2
- package/es/ProThemeTools/propsType.d.ts +136 -14
- package/es/ProUpload/components/ButtonRender.d.ts +2 -2
- package/es/ProUpload/components/DraggableUploadListItem.d.ts +2 -2
- package/es/ProUpload/components/Example.d.ts +2 -2
- package/es/ProUpload/components/ImageRender.d.ts +2 -2
- package/es/ProUpload/index.d.ts +2 -2
- package/es/ProUpload/index.js +0 -7
- package/es/ProUpload/propsType.d.ts +59 -8
- package/es/ProWaterMark/index.d.ts +2 -2
- package/es/ProWaterMark/propsType.d.ts +2 -1
- package/lib/ProAction/index.d.ts +2 -2
- package/lib/ProAction/propsType.d.ts +16 -10
- package/lib/ProConfigProvider/index.d.ts +6 -6
- package/lib/ProDownload/index.d.ts +2 -2
- package/lib/ProDownload/propsType.d.ts +2 -1
- package/lib/ProEditLabel/components/RenderProForm.d.ts +2 -2
- package/lib/ProEditLabel/index.d.ts +2 -2
- package/lib/ProEditLabel/propsType.d.ts +133 -6
- package/lib/ProEditLabel/style/index.less +24 -25
- package/lib/ProEnum/components/Group.d.ts +2 -2
- package/lib/ProEnum/components/Tag.d.ts +2 -2
- package/lib/ProEnum/hooks/useEnumRequest.d.ts +2 -2
- package/lib/ProEnum/index.d.ts +2 -2
- package/lib/ProEnum/propsType.d.ts +228 -39
- package/lib/ProEnum/propsType.js +1 -7
- package/lib/ProEnum/utils/index.d.ts +1 -1
- package/lib/ProForm/components/combination/ProCascader/index.d.ts +1 -2
- package/lib/ProForm/components/combination/ProCascader/propsType.d.ts +2 -1
- package/lib/ProForm/components/combination/ProModalSelect/propsType.d.ts +3 -2
- package/lib/ProIcon/symbolIcon.js +85 -39
- package/lib/ProLayout/components/Layout/Header/index.d.ts +2 -2
- package/lib/ProLayout/components/Layout/Menu/index.d.ts +2 -2
- package/lib/ProLayout/components/Layout/Notice/index.d.ts +2 -2
- package/lib/ProLayout/components/ProCollapse/PropTypes.d.ts +4 -2
- package/lib/ProLayout/components/ProCollapse/index.d.ts +2 -2
- package/lib/ProLayout/components/ProFooter/PropTypes.d.ts +2 -1
- package/lib/ProLayout/components/ProFooter/index.d.ts +2 -2
- package/lib/ProLayout/components/ProHeader/PropTypes.d.ts +13 -9
- package/lib/ProLayout/components/ProHeader/index.d.ts +2 -2
- package/lib/ProLayout/index.d.ts +5 -5
- package/lib/ProLayout/index.js +6 -2
- package/lib/ProLayout/propTypes.d.ts +62 -21
- package/lib/ProLayout/utils/index.d.ts +2 -2
- package/lib/ProSelect/index.d.ts +3 -3
- package/lib/ProSelect/propsType.d.ts +139 -29
- package/lib/ProTable/style/index.less +3 -0
- package/lib/ProTabs/index.d.ts +2 -2
- package/lib/ProTabs/index.js +4 -4
- package/lib/ProTabs/propType.d.ts +66 -9
- package/lib/ProThemeTools/index.d.ts +2 -2
- package/lib/ProThemeTools/propsType.d.ts +136 -14
- package/lib/ProUpload/components/ButtonRender.d.ts +2 -2
- package/lib/ProUpload/components/DraggableUploadListItem.d.ts +2 -2
- package/lib/ProUpload/components/Example.d.ts +2 -2
- package/lib/ProUpload/components/ImageRender.d.ts +2 -2
- package/lib/ProUpload/index.d.ts +2 -2
- package/lib/ProUpload/index.js +0 -7
- package/lib/ProUpload/propsType.d.ts +59 -8
- package/lib/ProWaterMark/index.d.ts +2 -2
- package/lib/ProWaterMark/propsType.d.ts +2 -1
- package/package.json +1 -1
@@ -7,7 +7,7 @@ export interface fieldNamesProps {
|
|
7
7
|
children?: string;
|
8
8
|
[key: string]: string;
|
9
9
|
}
|
10
|
-
export interface
|
10
|
+
export interface ProCascaderType {
|
11
11
|
className?: string;
|
12
12
|
mode?: 'address' | 'default';
|
13
13
|
isView?: boolean;
|
@@ -38,3 +38,4 @@ export interface ProCascaderProps {
|
|
38
38
|
scrollFollowParent?: boolean;
|
39
39
|
desensitization?: [number, number];
|
40
40
|
}
|
41
|
+
export type ProCascaderProps = ProCascaderType;
|
@@ -24,7 +24,7 @@ interface ConfigOption {
|
|
24
24
|
};
|
25
25
|
tableProps?: Record<string, any>;
|
26
26
|
}
|
27
|
-
interface
|
27
|
+
export interface ProModalSelectType {
|
28
28
|
configOption: ConfigOption;
|
29
29
|
onChange?: (value: number | string | undefined, option?: any) => void;
|
30
30
|
title: ModalProps['title'];
|
@@ -45,5 +45,6 @@ interface ProModalPropsType {
|
|
45
45
|
searchForm?: FormInstance;
|
46
46
|
searchKey?: string;
|
47
47
|
}
|
48
|
-
export declare type ProModalSelectPropsType = SelectProps & InputProps &
|
48
|
+
export declare type ProModalSelectPropsType = SelectProps & InputProps & ProModalSelectType;
|
49
|
+
export type ProModalSelectProps = ProModalSelectType;
|
49
50
|
export {};
|
@@ -1,45 +1,91 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
|
-
window._iconfont_svg_string_4063056 = '<svg><symbol id="icon-lock" viewBox="0 0 1024 1024"><path d="M752.384 412.1088h-55.6544V300.3904C696.7296 183.6544 608.512 102.4 501.76 102.4 395.0592 102.4 306.8928 183.6544 306.8928 300.3904V407.04H251.1872c-27.8016 0-46.3872 25.344-46.3872 50.7392v385.8432c0 30.464 23.1936 50.7904 46.3872 50.7904h501.248c27.8016 0 46.3872-25.3952 46.3872-50.7904V462.848c0-30.464-18.5856-50.7392-46.4384-50.7392z m-222.72 253.8496v86.272c0 5.12-4.6592 5.12-4.6592 5.12h-41.7792c-4.608 0-4.608-5.12-4.608-5.12v-86.272c-23.2448-10.1888-37.12-30.464-37.12-55.8592 0-35.5328 27.8016-66.048 60.3136-66.048 32.4608 0 60.3136 30.5152 60.3136 66.048 0 25.3952-13.9264 45.6704-32.4608 55.808z m92.7744-253.8496H381.1328V295.3216c0-60.928 55.7056-111.6672 120.6784-111.6672 64.9728 0 120.6272 50.7392 120.6272 111.6672v116.736z" fill="#BCBCBC" ></path></symbol><symbol id="icon-drag" viewBox="0 0 1024 1024"><path d="M670.72 179.2m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z" fill="#939599" ></path><path d="M670.72 506.88m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z" fill="#939599" ></path><path d="M670.72 834.56m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z" fill="#939599" ></path><path d="M343.04 179.2m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z" fill="#939599" ></path><path d="M343.04 506.88m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z" fill="#939599" ></path><path d="M343.04 834.56m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z" fill="#939599" ></path></symbol><symbol id="icon-plus" viewBox="0 0 1024 1024"><path d="M576 64H448v384H64v128h384v384h128V576h384V448H576z" ></path></symbol><symbol id="icon-zengjia" viewBox="0 0 1024 1024"><path d="M939.94 459.073h-377.6V83.519H462.055v375.554h-377.6v100.284h377.6v379.646H562.34V559.357h377.6z" fill="#272636" ></path></symbol><symbol id="icon-dot" viewBox="0 0 1024 1024"><path d="M512 624a112 112 0 1 0 0-224 112 112 0 0 0 0 224z" ></path></symbol><symbol id="icon-solid-close" viewBox="0 0 1024 1024"><path d="M516.707 66.513C272.86 66.513 75.16 264.212 75.16 508.06S272.86 949.607 516.707 949.607 958.254 751.91 958.254 508.06 760.556 66.513 516.707 66.513z m227.067 601.691c18.419 18.42 18.419 48.504 0 66.923s-48.504 18.42-66.923 0L516.707 574.983 356.563 735.127c-18.419 18.42-48.503 18.42-66.923 0s-18.419-48.504 0-66.923L449.784 508.06 289.64 347.916c-18.419-18.419-18.419-48.503 0-66.922 18.42-18.42 48.504-18.42 66.923 0l160.144 160.144 160.144-160.144c18.42-18.42 48.504-18.42 66.923 0 18.419 18.419 18.419 48.503 0 66.922L583.63 508.06l160.144 160.144z" ></path></symbol><symbol id="icon-arrow" viewBox="0 0 1024 1024"><path d="M832 0a192 192 0 0 1 192 192v640a192 192 0 0 1-192 192H192A192 192 0 0 1 0 832V192A192 192 0 0 1 192 0z m0 42.667H192A149.333 149.333 0 0 0 42.667 192v640A149.333 149.333 0 0 0 192 981.333h640A149.333 149.333 0 0 0 981.333 832V192A149.333 149.333 0 0 0 832 42.667z m-94.165 329.386l60.33 60.331L512 718.592 225.835 432.384l60.33-60.33L512 597.887l225.835-225.835z" ></path></symbol><symbol id="icon-delete" viewBox="0 0 1024 1024"><path d="M662.08 121.472v64H361.92v-64z m206.4 159.488v64H155.52v-64z" ></path><path d="M280.512 303.232l-0.064 530.816h460.096V303.232h64v594.88H216.512v-594.88z" ></path><path d="M431.424 440.704v337.728h-64V440.704z m225.152 0v337.728h-64V440.704z" ></path></symbol><symbol id="icon-catalog" viewBox="0 0 1075 1024"><path d="M1044.429 758.323v128.973H313.702V758.272h730.727z m-833.127 0v128.973H71.732V758.272h139.57zM1044.43 447.54v128.922H313.702V447.539h730.727z m-833.127 0v128.922H71.732V447.539h139.57z m833.127-310.784v128.922H313.702V136.704h730.727z m-833.127 0v128.922H71.732V136.704h139.57z" ></path></symbol><symbol id="icon-customColumn" viewBox="0 0 1024 1024"><path d="M170.368 128h0.576c28.288 0 42.368 14.848 42.368 44.608v678.784c0 29.76-14.08 44.608-42.368 44.608h-0.576C142.144 896 128 881.152 128 851.392V172.608c0-29.76 14.08-44.608 42.368-44.608z m682.752 0h0.576c28.224 0 42.368 14.848 42.368 44.608v678.784c0 29.76-14.08 44.608-42.368 44.608h-0.576c-28.288 0-42.368-14.848-42.368-44.608V172.608c0-29.76 14.08-44.608 42.368-44.608z m-453.632 0h225.024c38.784 0 58.176 20.16 58.176 60.416v647.168c0 40.32-19.392 60.416-58.176 60.416H399.488c-38.784 0-58.176-20.16-58.176-60.416V188.416c0-40.32 19.392-60.416 58.176-60.416z" ></path></symbol><symbol id="icon-copy" viewBox="0 0 1024 1024"><path d="M363.746 0h565.883c52.05 0 94.286 42.236 94.286 94.285V660.17c0 52.049-42.237 94.285-94.286 94.285H363.746c-52.05 0-94.286-42.236-94.286-94.285V94.285C269.46 42.236 311.697 0 363.746 0z m0 80.804a13.482 13.482 0 0 0-13.482 13.481V660.17c0 7.423 6.058 13.482 13.482 13.482h565.883c7.424 0 13.482-6.059 13.482-13.482V94.285a13.482 13.482 0 0 0-13.482-13.481H363.746z m309.905 754.54a40.445 40.445 0 1 1 80.803 0v94.37c0 52.05-42.236 94.286-94.285 94.286H94.285C42.236 1023.915 0 981.678 0 929.63V363.745c0-52.05 42.236-94.286 94.285-94.286h94.371a40.445 40.445 0 0 1 0 80.804h-94.37a13.482 13.482 0 0 0-13.482 13.482v565.883c0 7.424 6.058 13.482 13.481 13.482H660.17c7.423 0 13.482-6.058 13.482-13.482v-94.37z" ></path></symbol><symbol id="icon-drag-old" viewBox="0 0 1024 1024"><path d="M358.4 204.8m-51.2 0a51.2 51.2 0 1 0 102.4 0 51.2 51.2 0 1 0-102.4 0Z" ></path><path d="M665.6 204.8m-51.2 0a51.2 51.2 0 1 0 102.4 0 51.2 51.2 0 1 0-102.4 0Z" ></path><path d="M665.6 409.6m-51.2 0a51.2 51.2 0 1 0 102.4 0 51.2 51.2 0 1 0-102.4 0Z" ></path><path d="M358.4 614.4m-51.2 0a51.2 51.2 0 1 0 102.4 0 51.2 51.2 0 1 0-102.4 0Z" ></path><path d="M358.4 819.2m-51.2 0a51.2 51.2 0 1 0 102.4 0 51.2 51.2 0 1 0-102.4 0Z" ></path><path d="M665.6 819.2m-51.2 0a51.2 51.2 0 1 0 102.4 0 51.2 51.2 0 1 0-102.4 0Z" ></path><path d="M358.4 409.6m-51.2 0a51.2 51.2 0 1 0 102.4 0 51.2 51.2 0 1 0-102.4 0Z" ></path><path d="M665.6 614.4m-51.2 0a51.2 51.2 0 1 0 102.4 0 51.2 51.2 0 1 0-102.4 0Z" ></path></symbol><symbol id="icon-disabled" viewBox="0 0 1024 1024"><path d="M752.384 412.1088h-55.6544V300.3904C696.7296 183.6544 608.512 102.4 501.76 102.4 395.0592 102.4 306.8928 183.6544 306.8928 300.3904V407.04H251.1872c-27.8016 0-46.3872 25.344-46.3872 50.7392v385.8432c0 30.464 23.1936 50.7904 46.3872 50.7904h501.248c27.8016 0 46.3872-25.3952 46.3872-50.7904V462.848c0-30.464-18.5856-50.7392-46.4384-50.7392z m-222.72 253.8496v86.272c0 5.12-4.6592 5.12-4.6592 5.12h-41.7792c-4.608 0-4.608-5.12-4.608-5.12v-86.272c-23.2448-10.1888-37.12-30.464-37.12-55.8592 0-35.5328 27.8016-66.048 60.3136-66.048 32.4608 0 60.3136 30.5152 60.3136 66.048 0 25.3952-13.9264 45.6704-32.4608 55.808z m92.7744-253.8496H381.1328V295.3216c0-60.928 55.7056-111.6672 120.6784-111.6672 64.9728 0 120.6272 50.7392 120.6272 111.6672v116.736z" ></path></symbol><symbol id="icon-tip" viewBox="0 0 1024 1024"><path d="M512 19.017a492.983 492.983 0 1 1-0.073 986.039A492.983 492.983 0 0 1 512 19.09z m0 48.786a444.27 444.27 0 1 0 0.073 888.467A444.27 444.27 0 0 0 512 67.803z m22.016 317.367c37.45 3.877 55.15 33.792 48.64 66.707l-78.41 259.072c-1.023 5.924 2.049 11.849 7.315 13.677 5.852 2.048 17.92-5.412 27.648-16.091l47.104-56.613c1.244 9.509-0.878 26.185-0.878 32.549-35.328 53.028-71.314 93.988-131.876 93.988-41.326-6.729-58.222-36.352-49.298-66.56l77.897-257.828c1.901-6.364-1.244-13.02-7.022-15.068-5.778-2.048-17.042 5.413-26.77 16.092l-47.031 56.612c-1.317-9.508-0.146-25.234-0.146-31.597 35.328-53.029 93.403-94.94 132.827-94.94z m40.96-144.823c29.77 0 53.906 21.724 53.906 53.614 0 31.964-24.137 53.614-53.906 53.614a52.297 52.297 0 0 1-53.906-53.614c0-31.89 24.137-53.614 53.906-53.614z" ></path></symbol><symbol id="icon-reset" viewBox="0 0 1024 1024"><path d="M482.464768 117.691733L364.363435 66.696533A49.288533 49.288533 0 0 0 325.314901 157.013333a417.9968 417.9968 0 0 0 53.8624 789.845334 49.288533 49.288533 0 0 0 25.668267-95.163734 319.624533 319.624533 0 0 1-29.559467-608.324266l-7.850666 18.158933a49.152 49.152 0 0 0 26.0096 64.580267 49.288533 49.288533 0 0 0 64.580266-24.9856l50.107734-118.9888a49.425067 49.425067 0 0 0-25.668267-64.512z m429.602133 421.410134A418.884267 418.884267 0 0 0 614.424235 126.839467a49.288533 49.288533 0 1 0-28.398934 94.344533 319.829333 319.829333 0 0 1 56.9344 589.824 49.152 49.152 0 0 0-86.152533-47.240533l-67.106133 109.431466a48.9472 48.9472 0 0 0 16.110933 67.925334l109.294933 67.9936a49.288533 49.288533 0 1 0 50.9952-83.7632l-15.018666-9.352534a418.679467 418.679467 0 0 0 261.051733-376.900266z" ></path></symbol><symbol id="icon-view" viewBox="0 0 1024 1024"><path d="M801.606 104.727a117.667 117.667 0 0 1 117.434 109.94l0.233 7.727v246.598a34.91 34.91 0 0 1-69.493 4.748l-0.325-4.748V222.394c0-24.669-18.619-44.963-42.636-47.57l-5.213-0.279H222.394c-24.669 0-44.963 18.619-47.57 42.636l-0.279 5.213v579.212c0 24.669 18.619 44.963 42.636 47.57l5.213 0.279h243.247a34.91 34.91 0 0 1 4.747 69.492l-4.747 0.326H222.394a117.667 117.667 0 0 1-117.434-109.94l-0.233-7.727V222.394a117.667 117.667 0 0 1 109.94-117.434l7.727-0.233h579.212zM448.559 585.728a34.91 34.91 0 1 1 0 69.818H332.195a34.91 34.91 0 1 1 0-69.818h116.364z m232.727-232.727a34.91 34.91 0 1 1 0 69.818H332.195a34.91 34.91 0 1 1 0-69.818h349.09z" ></path><path d="M699.764 490.356a186.182 186.182 0 1 1 0 372.364 186.182 186.182 0 0 1 0-372.364z m0 69.819a116.364 116.364 0 1 0 0 232.727 116.364 116.364 0 0 0 0-232.727z" ></path><path d="M798.673 769.35a34.91 34.91 0 0 1 49.339 0l82.292 82.246a34.91 34.91 0 1 1-49.338 49.384l-82.293-82.292a34.91 34.91 0 0 1 0-49.338z" ></path></symbol><symbol id="icon-search" viewBox="0 0 1024 1024"><path d="M801.606 104.727a117.667 117.667 0 0 1 117.434 109.94l0.233 7.727v246.598a34.91 34.91 0 0 1-69.493 4.748l-0.325-4.748V222.394c0-24.669-18.619-44.963-42.636-47.57l-5.213-0.279H222.394c-24.669 0-44.963 18.619-47.57 42.636l-0.279 5.213v579.212c0 24.669 18.619 44.963 42.636 47.57l5.213 0.279h243.247a34.91 34.91 0 0 1 4.747 69.492l-4.747 0.326H222.394a117.667 117.667 0 0 1-117.434-109.94l-0.233-7.727V222.394a117.667 117.667 0 0 1 109.94-117.434l7.727-0.233h579.212zM448.559 585.728a34.91 34.91 0 1 1 0 69.818H332.195a34.91 34.91 0 1 1 0-69.818h116.364z m232.727-232.727a34.91 34.91 0 1 1 0 69.818H332.195a34.91 34.91 0 1 1 0-69.818h349.09z" ></path><path d="M699.764 490.356a186.182 186.182 0 1 1 0 372.364 186.182 186.182 0 0 1 0-372.364z m0 69.819a116.364 116.364 0 1 0 0 232.727 116.364 116.364 0 0 0 0-232.727z" ></path><path d="M798.673 769.35a34.91 34.91 0 0 1 49.339 0l82.292 82.246a34.91 34.91 0 1 1-49.338 49.384l-82.293-82.292a34.91 34.91 0 0 1 0-49.338z" ></path></symbol></svg>', function (o) {
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
_l,
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.default = void 0;
|
7
|
+
exports.injectSvgString = injectSvgString;
|
8
|
+
// 定义svg字符串
|
9
|
+
var svgString = '<svg><symbol id="icon-lock" viewBox="0 0 1024 1024"><path d="M752.384 412.1088h-55.6544V300.3904C696.7296 183.6544 608.512 102.4 501.76 102.4 395.0592 102.4 306.8928 183.6544 306.8928 300.3904V407.04H251.1872c-27.8016 0-46.3872 25.344-46.3872 50.7392v385.8432c0 30.464 23.1936 50.7904 46.3872 50.7904h501.248c27.8016 0 46.3872-25.3952 46.3872-50.7904V462.848c0-30.464-18.5856-50.7392-46.4384-50.7392z m-222.72 253.8496v86.272c0 5.12-4.6592 5.12-4.6592 5.12h-41.7792c-4.608 0-4.608-5.12-4.608-5.12v-86.272c-23.2448-10.1888-37.12-30.464-37.12-55.8592 0-35.5328 27.8016-66.048 60.3136-66.048 32.4608 0 60.3136 30.5152 60.3136 66.048 0 25.3952-13.9264 45.6704-32.4608 55.808z m92.7744-253.8496H381.1328V295.3216c0-60.928 55.7056-111.6672 120.6784-111.6672 64.9728 0 120.6272 50.7392 120.6272 111.6672v116.736z" fill="#BCBCBC" ></path></symbol><symbol id="icon-drag" viewBox="0 0 1024 1024"><path d="M670.72 179.2m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z" fill="#939599" ></path><path d="M670.72 506.88m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z" fill="#939599" ></path><path d="M670.72 834.56m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z" fill="#939599" ></path><path d="M343.04 179.2m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z" fill="#939599" ></path><path d="M343.04 506.88m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z" fill="#939599" ></path><path d="M343.04 834.56m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z" fill="#939599" ></path></symbol><symbol id="icon-plus" viewBox="0 0 1024 1024"><path d="M576 64H448v384H64v128h384v384h128V576h384V448H576z" ></path></symbol><symbol id="icon-zengjia" viewBox="0 0 1024 1024"><path d="M939.94 459.073h-377.6V83.519H462.055v375.554h-377.6v100.284h377.6v379.646H562.34V559.357h377.6z" fill="#272636" ></path></symbol><symbol id="icon-dot" viewBox="0 0 1024 1024"><path d="M512 624a112 112 0 1 0 0-224 112 112 0 0 0 0 224z" ></path></symbol><symbol id="icon-solid-close" viewBox="0 0 1024 1024"><path d="M516.707 66.513C272.86 66.513 75.16 264.212 75.16 508.06S272.86 949.607 516.707 949.607 958.254 751.91 958.254 508.06 760.556 66.513 516.707 66.513z m227.067 601.691c18.419 18.42 18.419 48.504 0 66.923s-48.504 18.42-66.923 0L516.707 574.983 356.563 735.127c-18.419 18.42-48.503 18.42-66.923 0s-18.419-48.504 0-66.923L449.784 508.06 289.64 347.916c-18.419-18.419-18.419-48.503 0-66.922 18.42-18.42 48.504-18.42 66.923 0l160.144 160.144 160.144-160.144c18.42-18.42 48.504-18.42 66.923 0 18.419 18.419 18.419 48.503 0 66.922L583.63 508.06l160.144 160.144z" ></path></symbol><symbol id="icon-arrow" viewBox="0 0 1024 1024"><path d="M832 0a192 192 0 0 1 192 192v640a192 192 0 0 1-192 192H192A192 192 0 0 1 0 832V192A192 192 0 0 1 192 0z m0 42.667H192A149.333 149.333 0 0 0 42.667 192v640A149.333 149.333 0 0 0 192 981.333h640A149.333 149.333 0 0 0 981.333 832V192A149.333 149.333 0 0 0 832 42.667z m-94.165 329.386l60.33 60.331L512 718.592 225.835 432.384l60.33-60.33L512 597.887l225.835-225.835z" ></path></symbol><symbol id="icon-delete" viewBox="0 0 1024 1024"><path d="M662.08 121.472v64H361.92v-64z m206.4 159.488v64H155.52v-64z" ></path><path d="M280.512 303.232l-0.064 530.816h460.096V303.232h64v594.88H216.512v-594.88z" ></path><path d="M431.424 440.704v337.728h-64V440.704z m225.152 0v337.728h-64V440.704z" ></path></symbol><symbol id="icon-catalog" viewBox="0 0 1075 1024"><path d="M1044.429 758.323v128.973H313.702V758.272h730.727z m-833.127 0v128.973H71.732V758.272h139.57zM1044.43 447.54v128.922H313.702V447.539h730.727z m-833.127 0v128.922H71.732V447.539h139.57z m833.127-310.784v128.922H313.702V136.704h730.727z m-833.127 0v128.922H71.732V136.704h139.57z" ></path></symbol><symbol id="icon-customColumn" viewBox="0 0 1024 1024"><path d="M170.368 128h0.576c28.288 0 42.368 14.848 42.368 44.608v678.784c0 29.76-14.08 44.608-42.368 44.608h-0.576C142.144 896 128 881.152 128 851.392V172.608c0-29.76 14.08-44.608 42.368-44.608z m682.752 0h0.576c28.224 0 42.368 14.848 42.368 44.608v678.784c0 29.76-14.08 44.608-42.368 44.608h-0.576c-28.288 0-42.368-14.848-42.368-44.608V172.608c0-29.76 14.08-44.608 42.368-44.608z m-453.632 0h225.024c38.784 0 58.176 20.16 58.176 60.416v647.168c0 40.32-19.392 60.416-58.176 60.416H399.488c-38.784 0-58.176-20.16-58.176-60.416V188.416c0-40.32 19.392-60.416 58.176-60.416z" ></path></symbol><symbol id="icon-copy" viewBox="0 0 1024 1024"><path d="M363.746 0h565.883c52.05 0 94.286 42.236 94.286 94.285V660.17c0 52.049-42.237 94.285-94.286 94.285H363.746c-52.05 0-94.286-42.236-94.286-94.285V94.285C269.46 42.236 311.697 0 363.746 0z m0 80.804a13.482 13.482 0 0 0-13.482 13.481V660.17c0 7.423 6.058 13.482 13.482 13.482h565.883c7.424 0 13.482-6.059 13.482-13.482V94.285a13.482 13.482 0 0 0-13.482-13.481H363.746z m309.905 754.54a40.445 40.445 0 1 1 80.803 0v94.37c0 52.05-42.236 94.286-94.285 94.286H94.285C42.236 1023.915 0 981.678 0 929.63V363.745c0-52.05 42.236-94.286 94.285-94.286h94.371a40.445 40.445 0 0 1 0 80.804h-94.37a13.482 13.482 0 0 0-13.482 13.482v565.883c0 7.424 6.058 13.482 13.481 13.482H660.17c7.423 0 13.482-6.058 13.482-13.482v-94.37z" ></path></symbol><symbol id="icon-drag-old" viewBox="0 0 1024 1024"><path d="M358.4 204.8m-51.2 0a51.2 51.2 0 1 0 102.4 0 51.2 51.2 0 1 0-102.4 0Z" ></path><path d="M665.6 204.8m-51.2 0a51.2 51.2 0 1 0 102.4 0 51.2 51.2 0 1 0-102.4 0Z" ></path><path d="M665.6 409.6m-51.2 0a51.2 51.2 0 1 0 102.4 0 51.2 51.2 0 1 0-102.4 0Z" ></path><path d="M358.4 614.4m-51.2 0a51.2 51.2 0 1 0 102.4 0 51.2 51.2 0 1 0-102.4 0Z" ></path><path d="M358.4 819.2m-51.2 0a51.2 51.2 0 1 0 102.4 0 51.2 51.2 0 1 0-102.4 0Z" ></path><path d="M665.6 819.2m-51.2 0a51.2 51.2 0 1 0 102.4 0 51.2 51.2 0 1 0-102.4 0Z" ></path><path d="M358.4 409.6m-51.2 0a51.2 51.2 0 1 0 102.4 0 51.2 51.2 0 1 0-102.4 0Z" ></path><path d="M665.6 614.4m-51.2 0a51.2 51.2 0 1 0 102.4 0 51.2 51.2 0 1 0-102.4 0Z" ></path></symbol><symbol id="icon-disabled" viewBox="0 0 1024 1024"><path d="M752.384 412.1088h-55.6544V300.3904C696.7296 183.6544 608.512 102.4 501.76 102.4 395.0592 102.4 306.8928 183.6544 306.8928 300.3904V407.04H251.1872c-27.8016 0-46.3872 25.344-46.3872 50.7392v385.8432c0 30.464 23.1936 50.7904 46.3872 50.7904h501.248c27.8016 0 46.3872-25.3952 46.3872-50.7904V462.848c0-30.464-18.5856-50.7392-46.4384-50.7392z m-222.72 253.8496v86.272c0 5.12-4.6592 5.12-4.6592 5.12h-41.7792c-4.608 0-4.608-5.12-4.608-5.12v-86.272c-23.2448-10.1888-37.12-30.464-37.12-55.8592 0-35.5328 27.8016-66.048 60.3136-66.048 32.4608 0 60.3136 30.5152 60.3136 66.048 0 25.3952-13.9264 45.6704-32.4608 55.808z m92.7744-253.8496H381.1328V295.3216c0-60.928 55.7056-111.6672 120.6784-111.6672 64.9728 0 120.6272 50.7392 120.6272 111.6672v116.736z" ></path></symbol><symbol id="icon-tip" viewBox="0 0 1024 1024"><path d="M512 19.017a492.983 492.983 0 1 1-0.073 986.039A492.983 492.983 0 0 1 512 19.09z m0 48.786a444.27 444.27 0 1 0 0.073 888.467A444.27 444.27 0 0 0 512 67.803z m22.016 317.367c37.45 3.877 55.15 33.792 48.64 66.707l-78.41 259.072c-1.023 5.924 2.049 11.849 7.315 13.677 5.852 2.048 17.92-5.412 27.648-16.091l47.104-56.613c1.244 9.509-0.878 26.185-0.878 32.549-35.328 53.028-71.314 93.988-131.876 93.988-41.326-6.729-58.222-36.352-49.298-66.56l77.897-257.828c1.901-6.364-1.244-13.02-7.022-15.068-5.778-2.048-17.042 5.413-26.77 16.092l-47.031 56.612c-1.317-9.508-0.146-25.234-0.146-31.597 35.328-53.029 93.403-94.94 132.827-94.94z m40.96-144.823c29.77 0 53.906 21.724 53.906 53.614 0 31.964-24.137 53.614-53.906 53.614a52.297 52.297 0 0 1-53.906-53.614c0-31.89 24.137-53.614 53.906-53.614z" ></path></symbol><symbol id="icon-reset" viewBox="0 0 1024 1024"><path d="M482.464768 117.691733L364.363435 66.696533A49.288533 49.288533 0 0 0 325.314901 157.013333a417.9968 417.9968 0 0 0 53.8624 789.845334 49.288533 49.288533 0 0 0 25.668267-95.163734 319.624533 319.624533 0 0 1-29.559467-608.324266l-7.850666 18.158933a49.152 49.152 0 0 0 26.0096 64.580267 49.288533 49.288533 0 0 0 64.580266-24.9856l50.107734-118.9888a49.425067 49.425067 0 0 0-25.668267-64.512z m429.602133 421.410134A418.884267 418.884267 0 0 0 614.424235 126.839467a49.288533 49.288533 0 1 0-28.398934 94.344533 319.829333 319.829333 0 0 1 56.9344 589.824 49.152 49.152 0 0 0-86.152533-47.240533l-67.106133 109.431466a48.9472 48.9472 0 0 0 16.110933 67.925334l109.294933 67.9936a49.288533 49.288533 0 1 0 50.9952-83.7632l-15.018666-9.352534a418.679467 418.679467 0 0 0 261.051733-376.900266z" ></path></symbol><symbol id="icon-view" viewBox="0 0 1024 1024"><path d="M801.606 104.727a117.667 117.667 0 0 1 117.434 109.94l0.233 7.727v246.598a34.91 34.91 0 0 1-69.493 4.748l-0.325-4.748V222.394c0-24.669-18.619-44.963-42.636-47.57l-5.213-0.279H222.394c-24.669 0-44.963 18.619-47.57 42.636l-0.279 5.213v579.212c0 24.669 18.619 44.963 42.636 47.57l5.213 0.279h243.247a34.91 34.91 0 0 1 4.747 69.492l-4.747 0.326H222.394a117.667 117.667 0 0 1-117.434-109.94l-0.233-7.727V222.394a117.667 117.667 0 0 1 109.94-117.434l7.727-0.233h579.212zM448.559 585.728a34.91 34.91 0 1 1 0 69.818H332.195a34.91 34.91 0 1 1 0-69.818h116.364z m232.727-232.727a34.91 34.91 0 1 1 0 69.818H332.195a34.91 34.91 0 1 1 0-69.818h349.09z" ></path><path d="M699.764 490.356a186.182 186.182 0 1 1 0 372.364 186.182 186.182 0 0 1 0-372.364z m0 69.819a116.364 116.364 0 1 0 0 232.727 116.364 116.364 0 0 0 0-232.727z" ></path><path d="M798.673 769.35a34.91 34.91 0 0 1 49.339 0l82.292 82.246a34.91 34.91 0 1 1-49.338 49.384l-82.293-82.292a34.91 34.91 0 0 1 0-49.338z" ></path></symbol><symbol id="icon-search" viewBox="0 0 1024 1024"><path d="M801.606 104.727a117.667 117.667 0 0 1 117.434 109.94l0.233 7.727v246.598a34.91 34.91 0 0 1-69.493 4.748l-0.325-4.748V222.394c0-24.669-18.619-44.963-42.636-47.57l-5.213-0.279H222.394c-24.669 0-44.963 18.619-47.57 42.636l-0.279 5.213v579.212c0 24.669 18.619 44.963 42.636 47.57l5.213 0.279h243.247a34.91 34.91 0 0 1 4.747 69.492l-4.747 0.326H222.394a117.667 117.667 0 0 1-117.434-109.94l-0.233-7.727V222.394a117.667 117.667 0 0 1 109.94-117.434l7.727-0.233h579.212zM448.559 585.728a34.91 34.91 0 1 1 0 69.818H332.195a34.91 34.91 0 1 1 0-69.818h116.364z m232.727-232.727a34.91 34.91 0 1 1 0 69.818H332.195a34.91 34.91 0 1 1 0-69.818h349.09z" ></path><path d="M699.764 490.356a186.182 186.182 0 1 1 0 372.364 186.182 186.182 0 0 1 0-372.364z m0 69.819a116.364 116.364 0 1 0 0 232.727 116.364 116.364 0 0 0 0-232.727z" ></path><path d="M798.673 769.35a34.91 34.91 0 0 1 49.339 0l82.292 82.246a34.91 34.91 0 1 1-49.338 49.384l-82.293-82.292a34.91 34.91 0 0 1 0-49.338z" ></path></symbol></svg>';
|
10
|
+
|
11
|
+
/**
|
12
|
+
* 将svg字符串注入到页面中
|
13
|
+
* @param {Window} win - 窗口对象
|
14
|
+
*/
|
15
|
+
function injectSvgString() {
|
16
|
+
var win = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : window;
|
17
|
+
if (!win) return;
|
18
|
+
|
19
|
+
// 设置iconfont svg字符串
|
20
|
+
win._iconfont_svg_string_4063056 = svgString;
|
21
|
+
|
22
|
+
// 注入CSS
|
23
|
+
if (!win.__iconfont__svg__cssinject__) {
|
24
|
+
win.__iconfont__svg__cssinject__ = true;
|
25
|
+
try {
|
26
|
+
document.write('<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>');
|
27
|
+
} catch (e) {
|
28
|
+
console && console.log(e);
|
23
29
|
}
|
24
|
-
e = function e() {
|
25
|
-
var t,
|
26
|
-
a = document.createElement('div');
|
27
|
-
a.innerHTML = o._iconfont_svg_string_4063056, (a = a.getElementsByTagName('svg')[0]) && (a.setAttribute('aria-hidden', 'true'), a.style.position = 'absolute', a.style.width = 0, a.style.height = 0, a.style.overflow = 'hidden', a = a, (t = document.body).firstChild ? d(a, t.firstChild) : t.appendChild(a));
|
28
|
-
}, document.addEventListener ? ~['complete', 'loaded', 'interactive'].indexOf(document.readyState) ? setTimeout(e, 0) : (_l = function l() {
|
29
|
-
document.removeEventListener('DOMContentLoaded', _l, !1), e();
|
30
|
-
}, document.addEventListener('DOMContentLoaded', _l, !1)) : document.attachEvent && (h = e, i = o.document, c = !1, n(), i.onreadystatechange = function () {
|
31
|
-
'complete' == i.readyState && (i.onreadystatechange = null, m());
|
32
|
-
});
|
33
|
-
}
|
34
|
-
function m() {
|
35
|
-
c || (c = !0, h());
|
36
30
|
}
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
31
|
+
|
32
|
+
// 创建并注入SVG元素
|
33
|
+
var appendSvg = function appendSvg() {
|
34
|
+
var div = document.createElement('div');
|
35
|
+
div.innerHTML = svgString;
|
36
|
+
var svg = div.getElementsByTagName('svg')[0];
|
37
|
+
if (svg) {
|
38
|
+
svg.setAttribute('aria-hidden', 'true');
|
39
|
+
svg.style.position = 'absolute';
|
40
|
+
svg.style.width = 0;
|
41
|
+
svg.style.height = 0;
|
42
|
+
svg.style.overflow = 'hidden';
|
43
|
+
if (document.body.firstChild) {
|
44
|
+
document.body.insertBefore(svg, document.body.firstChild);
|
45
|
+
} else {
|
46
|
+
document.body.appendChild(svg);
|
47
|
+
}
|
42
48
|
}
|
43
|
-
|
49
|
+
};
|
50
|
+
|
51
|
+
// 处理DOM加载完成的情况
|
52
|
+
if (document.addEventListener) {
|
53
|
+
if (['complete', 'loaded', 'interactive'].indexOf(document.readyState) !== -1) {
|
54
|
+
setTimeout(appendSvg, 0);
|
55
|
+
} else {
|
56
|
+
document.addEventListener('DOMContentLoaded', appendSvg, false);
|
57
|
+
}
|
58
|
+
} else if (document.attachEvent) {
|
59
|
+
// IE浏览器兼容
|
60
|
+
var isReady = false;
|
61
|
+
|
62
|
+
// 检查DOM是否已加载完成
|
63
|
+
var checkDomReady = function checkDomReady() {
|
64
|
+
if (!isReady) {
|
65
|
+
isReady = true;
|
66
|
+
appendSvg();
|
67
|
+
}
|
68
|
+
};
|
69
|
+
|
70
|
+
// 使用doScroll技术检测DOM加载状态
|
71
|
+
var _doScrollCheck = function doScrollCheck() {
|
72
|
+
try {
|
73
|
+
document.documentElement.doScroll('left');
|
74
|
+
} catch (e) {
|
75
|
+
setTimeout(_doScrollCheck, 50);
|
76
|
+
return;
|
77
|
+
}
|
78
|
+
checkDomReady();
|
79
|
+
};
|
80
|
+
document.attachEvent('onreadystatechange', function () {
|
81
|
+
if (document.readyState === 'complete') {
|
82
|
+
document.onreadystatechange = null;
|
83
|
+
checkDomReady();
|
84
|
+
}
|
85
|
+
});
|
86
|
+
_doScrollCheck();
|
44
87
|
}
|
45
|
-
}
|
88
|
+
}
|
89
|
+
|
90
|
+
// 默认导出
|
91
|
+
var _default = exports.default = injectSvgString;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import React, { CSSProperties } from 'react';
|
2
2
|
import { CollapseProps, CollapsePanelProps } from 'antd/es/collapse';
|
3
3
|
export type levelType = '1' | '2';
|
4
|
-
export interface
|
4
|
+
export interface TitleListType {
|
5
5
|
/**
|
6
6
|
* @description 描述的标题
|
7
7
|
* @default -
|
@@ -13,7 +13,7 @@ export interface TitleListProps {
|
|
13
13
|
*/
|
14
14
|
value: string | number | undefined | React.ReactNode;
|
15
15
|
}
|
16
|
-
export interface
|
16
|
+
export interface ProCollapseType {
|
17
17
|
/**
|
18
18
|
* @description 折叠头部标题
|
19
19
|
* @default -
|
@@ -91,3 +91,5 @@ export interface ProCollapseProps {
|
|
91
91
|
collapsePanelProps?: CollapsePanelProps;
|
92
92
|
[key: string]: any;
|
93
93
|
}
|
94
|
+
export type ProCollapseProps = ProCollapseType;
|
95
|
+
export type TitleListProps = TitleListType;
|
@@ -1,3 +1,3 @@
|
|
1
|
-
import {
|
2
|
-
declare const ProCollapse: (props:
|
1
|
+
import type { ProCollapseType } from './PropTypes';
|
2
|
+
declare const ProCollapse: (props: ProCollapseType) => import("react/jsx-runtime").JSX.Element;
|
3
3
|
export default ProCollapse;
|
@@ -2,7 +2,7 @@ export interface stateProps {
|
|
2
2
|
width?: number;
|
3
3
|
[key: string]: any;
|
4
4
|
}
|
5
|
-
export interface
|
5
|
+
export interface ProFooterType {
|
6
6
|
/**
|
7
7
|
* @description 是否显示
|
8
8
|
* @default true
|
@@ -25,3 +25,4 @@ export interface ProFooterProps {
|
|
25
25
|
contentDom?: string;
|
26
26
|
[key: string]: any;
|
27
27
|
}
|
28
|
+
export type ProFooterProps = ProFooterType;
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import {
|
3
|
-
declare const _default: import("react").MemoExoticComponent<(props:
|
2
|
+
import type { ProFooterType } from './PropTypes';
|
3
|
+
declare const _default: import("react").MemoExoticComponent<(props: ProFooterType) => import("react/jsx-runtime").JSX.Element>;
|
4
4
|
export default _default;
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
2
2
|
import type { ModalProps } from 'antd';
|
3
3
|
export type BreadcrumbType = 'breadcrumb' | 'copy' | 'info' | 'version' | 'tag';
|
4
4
|
export type NavType = 'money' | 'thousandth' | 'enumName' | 'enumCodeName' | 'date' | 'dateTime';
|
5
|
-
export interface
|
5
|
+
export interface BreadcrumbColumnType {
|
6
6
|
/**
|
7
7
|
* @description 类型
|
8
8
|
* @default -
|
@@ -34,7 +34,7 @@ export interface BreadcrumbColumnsProps {
|
|
34
34
|
*/
|
35
35
|
tag?: string | React.ReactNode | (string | React.ReactNode)[];
|
36
36
|
}
|
37
|
-
export interface
|
37
|
+
export interface SubDescribeColumnType {
|
38
38
|
/**
|
39
39
|
* @description 描述内容
|
40
40
|
* @default -
|
@@ -71,7 +71,7 @@ export interface SubDescribeColumnsProps {
|
|
71
71
|
*/
|
72
72
|
code?: string;
|
73
73
|
}
|
74
|
-
export interface
|
74
|
+
export interface DescribeColumnType {
|
75
75
|
/**
|
76
76
|
* @description 描述内容
|
77
77
|
* @default -
|
@@ -118,7 +118,7 @@ export interface DescribeColumnsProps {
|
|
118
118
|
*/
|
119
119
|
tag?: string | React.ReactNode | (string | React.ReactNode)[];
|
120
120
|
}
|
121
|
-
export interface
|
121
|
+
export interface ProHeaderType {
|
122
122
|
/**
|
123
123
|
* @description 标题
|
124
124
|
* @default -
|
@@ -129,12 +129,12 @@ export interface ProHeaderProps {
|
|
129
129
|
* @deprecated 将于下个版本 4.0.0 被弃用
|
130
130
|
* @default -
|
131
131
|
*/
|
132
|
-
breadcrumbList?:
|
132
|
+
breadcrumbList?: BreadcrumbColumnType[];
|
133
133
|
/**
|
134
134
|
* @description 面包屑配置数据
|
135
135
|
* @default -
|
136
136
|
*/
|
137
|
-
breadcrumbColumns?:
|
137
|
+
breadcrumbColumns?: BreadcrumbColumnType[];
|
138
138
|
/**
|
139
139
|
* @description 是否隐藏溢出
|
140
140
|
* @default -
|
@@ -150,17 +150,17 @@ export interface ProHeaderProps {
|
|
150
150
|
* @deprecated 将于下个版本 4.0.0 被弃用
|
151
151
|
* @default -
|
152
152
|
*/
|
153
|
-
describeList?:
|
153
|
+
describeList?: SubDescribeColumnType[];
|
154
154
|
/**
|
155
155
|
* @description 主要描述数据源配置
|
156
156
|
* @default -
|
157
157
|
*/
|
158
|
-
describeColumns?:
|
158
|
+
describeColumns?: DescribeColumnType[];
|
159
159
|
/**
|
160
160
|
* @description 次级描述数据源配置
|
161
161
|
* @default -
|
162
162
|
*/
|
163
|
-
subDescribeColumns?:
|
163
|
+
subDescribeColumns?: SubDescribeColumnType[];
|
164
164
|
/**
|
165
165
|
* @description 次级描述是否展开
|
166
166
|
* @default -
|
@@ -204,3 +204,7 @@ export interface ProHeaderProps {
|
|
204
204
|
onBack?: () => void;
|
205
205
|
[key: string]: any;
|
206
206
|
}
|
207
|
+
export type ProHeaderProps = ProHeaderType;
|
208
|
+
export type BreadcrumbColumnsProps = BreadcrumbColumnType;
|
209
|
+
export type SubDescribeColumnsProps = SubDescribeColumnType;
|
210
|
+
export type DescribeColumnsProps = DescribeColumnType;
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import type {
|
3
|
-
declare const _default: React.MemoExoticComponent<(props:
|
2
|
+
import type { ProHeaderType } from './PropTypes';
|
3
|
+
declare const _default: React.MemoExoticComponent<(props: ProHeaderType) => import("react/jsx-runtime").JSX.Element>;
|
4
4
|
export default _default;
|
package/lib/ProLayout/index.d.ts
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import type {
|
2
|
+
import type { ProLayoutType } from './propTypes';
|
3
3
|
export declare const LayoutContext: import("react").Context<{
|
4
4
|
selectedPath: string;
|
5
5
|
onSelected: (params: any) => void;
|
6
6
|
target: '_blank' | '_parent' | '_self' | '_top';
|
7
7
|
}>;
|
8
8
|
declare const ProLayout: {
|
9
|
-
(props:
|
9
|
+
(props: ProLayoutType): import("react/jsx-runtime").JSX.Element;
|
10
10
|
defaultProps: {
|
11
11
|
menus: any[];
|
12
12
|
iconfontUrl: string;
|
@@ -18,8 +18,8 @@ declare const ProLayout: {
|
|
18
18
|
headerHeight: number;
|
19
19
|
contentStyle: {};
|
20
20
|
};
|
21
|
-
ProCollapse: (props: import("./components/ProCollapse/PropTypes").
|
22
|
-
ProFooter: import("react").MemoExoticComponent<(props: import("./components/ProFooter/PropTypes").
|
23
|
-
ProHeader: import("react").MemoExoticComponent<(props: import("./components/ProHeader/PropTypes").
|
21
|
+
ProCollapse: (props: import("./components/ProCollapse/PropTypes").ProCollapseType) => import("react/jsx-runtime").JSX.Element;
|
22
|
+
ProFooter: import("react").MemoExoticComponent<(props: import("./components/ProFooter/PropTypes").ProFooterType) => import("react/jsx-runtime").JSX.Element>;
|
23
|
+
ProHeader: import("react").MemoExoticComponent<(props: import("./components/ProHeader/PropTypes").ProHeaderType) => import("react/jsx-runtime").JSX.Element>;
|
24
24
|
};
|
25
25
|
export default ProLayout;
|
package/lib/ProLayout/index.js
CHANGED
@@ -62,8 +62,10 @@ var ProLayout = function ProLayout(props) {
|
|
62
62
|
return _antd.message.warning('Warning: Missing menu data source, or menu data source is not an array');
|
63
63
|
}
|
64
64
|
var userData = (0, _utils.transformMenus)(dataSource, pathPrefix);
|
65
|
+
// 确保 menus 始终是一个数组
|
66
|
+
var menuData = Array.isArray(userData) ? userData : (userData === null || userData === void 0 ? void 0 : userData.menus) || [];
|
65
67
|
setState({
|
66
|
-
menus:
|
68
|
+
menus: menuData
|
67
69
|
});
|
68
70
|
}, [dataSource]);
|
69
71
|
/**
|
@@ -94,7 +96,9 @@ var ProLayout = function ProLayout(props) {
|
|
94
96
|
})), (0, _jsxRuntime.jsxs)("div", {
|
95
97
|
className: contentCls,
|
96
98
|
children: [(0, _jsxRuntime.jsx)(_index2.Menu, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
|
97
|
-
dataSource: menus
|
99
|
+
dataSource: Array.isArray(menus) ? {
|
100
|
+
menus: menus
|
101
|
+
} : menus,
|
98
102
|
notice: notice,
|
99
103
|
collapsed: collapsed,
|
100
104
|
onToggle: function onToggle() {
|
@@ -1,6 +1,10 @@
|
|
1
1
|
import { CSSProperties, ReactNode } from 'react';
|
2
2
|
import { ProWaterMarkProps } from '../ProWaterMark/propsType';
|
3
|
-
export interface
|
3
|
+
export interface MenusType {
|
4
|
+
/**
|
5
|
+
* @description 菜单ID
|
6
|
+
* @default -
|
7
|
+
*/
|
4
8
|
id?: number;
|
5
9
|
/**
|
6
10
|
* @description 菜单唯一code
|
@@ -44,7 +48,7 @@ export interface MenusProps {
|
|
44
48
|
sort?: number | undefined | null;
|
45
49
|
/**
|
46
50
|
* @description 是否隐藏菜单
|
47
|
-
* @default
|
51
|
+
* @default false
|
48
52
|
*/
|
49
53
|
hideInMenu?: boolean;
|
50
54
|
/**
|
@@ -62,9 +66,12 @@ export interface MenusProps {
|
|
62
66
|
* @default -
|
63
67
|
*/
|
64
68
|
type?: string;
|
69
|
+
/**
|
70
|
+
* @description 允许扩展字段
|
71
|
+
*/
|
65
72
|
[key: string]: any;
|
66
73
|
}
|
67
|
-
export interface
|
74
|
+
export interface DataSourceType {
|
68
75
|
/**
|
69
76
|
* @description 用户信息
|
70
77
|
* @default -
|
@@ -72,15 +79,22 @@ export interface DataSourceProps {
|
|
72
79
|
userInfo?: any;
|
73
80
|
/**
|
74
81
|
* @description 处理后一级菜单详情
|
75
|
-
* @default
|
82
|
+
* @default []
|
76
83
|
*/
|
77
|
-
menus?:
|
84
|
+
menus?: MenusType[];
|
78
85
|
}
|
86
|
+
/**
|
87
|
+
* @description 主题枚举类型
|
88
|
+
*/
|
89
|
+
type themeEnum = 'light' | 'dark';
|
90
|
+
/**
|
91
|
+
* @description 是否带有菜单界面的配置
|
92
|
+
*/
|
79
93
|
type pureKey = boolean | {
|
80
94
|
topMenu?: boolean;
|
81
95
|
leftMenu?: boolean;
|
82
96
|
};
|
83
|
-
export interface
|
97
|
+
export interface ProLayoutType {
|
84
98
|
/**
|
85
99
|
* @description 左侧logo
|
86
100
|
* @default -
|
@@ -88,7 +102,7 @@ export interface ProLayoutProps {
|
|
88
102
|
logo?: ReactNode | string;
|
89
103
|
/**
|
90
104
|
* @description 类名
|
91
|
-
* @default
|
105
|
+
* @default ""
|
92
106
|
*/
|
93
107
|
className?: string;
|
94
108
|
/**
|
@@ -130,56 +144,66 @@ export interface ProLayoutProps {
|
|
130
144
|
* @description 数据源
|
131
145
|
* @default -
|
132
146
|
*/
|
133
|
-
dataSource?:
|
147
|
+
dataSource?: DataSourceType | Partial<MenusType>;
|
134
148
|
/**
|
135
149
|
* @description 是否折叠
|
136
|
-
* @default
|
150
|
+
* @default false
|
137
151
|
*/
|
138
152
|
collapsed?: boolean;
|
139
153
|
/**
|
140
154
|
* @description 菜单拼接路径前缀
|
141
|
-
* @default
|
155
|
+
* @default ""
|
142
156
|
*/
|
143
157
|
pathPrefix?: string;
|
144
158
|
/**
|
145
159
|
* @description 是否带有菜单界面,true不带,只显示content内容
|
146
|
-
* @default
|
160
|
+
* @default false
|
147
161
|
*/
|
148
162
|
pure?: pureKey;
|
149
163
|
/**
|
150
164
|
* @description 头部区域高度
|
151
|
-
* @default
|
165
|
+
* @default 48
|
152
166
|
*/
|
153
167
|
headerHeight?: number;
|
154
168
|
/**
|
155
169
|
* @description 内容区域样式
|
156
|
-
* @default
|
170
|
+
* @default {}
|
157
171
|
*/
|
158
172
|
contentStyle?: CSSProperties;
|
159
173
|
/**
|
160
174
|
* @description 水印配置
|
161
|
-
* @default
|
175
|
+
* @default {}
|
162
176
|
*/
|
163
177
|
waterMarkProps?: ProWaterMarkProps;
|
164
178
|
/**
|
165
179
|
* @description 折叠回调事件
|
166
180
|
* @default -
|
167
181
|
*/
|
168
|
-
onCollapsedChange?: (collapsed:
|
182
|
+
onCollapsedChange?: (collapsed: boolean) => void;
|
169
183
|
/**
|
170
184
|
* @description 规定在何处打开被链接文档
|
171
|
-
*
|
172
|
-
* _parent
|
173
|
-
* _self
|
174
|
-
* _top
|
185
|
+
* @default "_self"
|
175
186
|
*/
|
176
187
|
target?: '_blank' | '_parent' | '_self' | '_top';
|
188
|
+
/**
|
189
|
+
* @description 主题
|
190
|
+
* @default "light"
|
191
|
+
*/
|
192
|
+
theme?: themeEnum;
|
193
|
+
/**
|
194
|
+
* @description 子元素
|
195
|
+
* @default -
|
196
|
+
*/
|
197
|
+
children?: ReactNode;
|
198
|
+
/**
|
199
|
+
* @description 允许扩展字段
|
200
|
+
*/
|
177
201
|
[key: string]: any;
|
178
202
|
}
|
179
|
-
export interface
|
203
|
+
export interface ProLayoutStatesType {
|
180
204
|
/**
|
181
205
|
* @description 是否折叠
|
182
|
-
* @default
|
206
|
+
* @default false
|
183
207
|
*/
|
184
208
|
collapsed?: boolean;
|
185
209
|
/**
|
@@ -187,6 +211,23 @@ export interface ProLayoutStates {
|
|
187
211
|
* @default -
|
188
212
|
*/
|
189
213
|
notice?: ReactNode | string;
|
214
|
+
/**
|
215
|
+
* @description 菜单列表
|
216
|
+
* @default []
|
217
|
+
*/
|
218
|
+
menus?: MenusType[];
|
219
|
+
/**
|
220
|
+
* @description 选中的路径
|
221
|
+
* @default ""
|
222
|
+
*/
|
223
|
+
selectedPath?: string;
|
224
|
+
/**
|
225
|
+
* @description 允许扩展字段
|
226
|
+
*/
|
190
227
|
[key: string]: any;
|
191
228
|
}
|
229
|
+
export type MenusProps = MenusType;
|
230
|
+
export type DataSourceProps = DataSourceType;
|
231
|
+
export type ProLayoutProps = ProLayoutType;
|
232
|
+
export type ProLayoutStates = ProLayoutStatesType;
|
192
233
|
export {};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type {
|
1
|
+
import type { MenusType } from '../propTypes';
|
2
2
|
/**
|
3
3
|
* 通过URL获取对应keyIdPath
|
4
4
|
* @param menus 菜单数据
|
@@ -17,7 +17,7 @@ export declare const transformMenu: (menuData: any[], pathPrefix: string) => any
|
|
17
17
|
* @param data 菜单数据源
|
18
18
|
* @returns []
|
19
19
|
*/
|
20
|
-
export declare const transformMenus: (data:
|
20
|
+
export declare const transformMenus: (data: MenusType, pathPrefix: string) => any[] | MenusType;
|
21
21
|
/**
|
22
22
|
* 获取URL中的search参数
|
23
23
|
* @param name 参数key
|
package/lib/ProSelect/index.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import {
|
2
|
+
import type { PropSelectType, ProSelectActionType } from './propsType';
|
3
3
|
import './index.less';
|
4
|
-
export declare const ProSelect: (props:
|
5
|
-
declare const _default: React.ForwardRefExoticComponent<
|
4
|
+
export declare const ProSelect: (props: PropSelectType, ref: React.Ref<ProSelectActionType> | undefined) => import("react/jsx-runtime").JSX.Element;
|
5
|
+
declare const _default: React.ForwardRefExoticComponent<PropSelectType & React.RefAttributes<ProSelectActionType>>;
|
6
6
|
export default _default;
|