@zykj2024/much-library 1.0.9
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE +21 -0
- package/README.md +35 -0
- package/dist/McCascader/city.js +909 -0
- package/dist/McCascader/index.css +60 -0
- package/dist/McCascader/index.d.ts +19 -0
- package/dist/McCascader/index.js +221 -0
- package/dist/McContainer/demo/actionBar.d.ts +8 -0
- package/dist/McContainer/demo/actionBar.js +70 -0
- package/dist/McContainer/demo/base.d.ts +8 -0
- package/dist/McContainer/demo/base.js +80 -0
- package/dist/McContainer/demo/batch.d.ts +8 -0
- package/dist/McContainer/demo/batch.js +89 -0
- package/dist/McContainer/demo/collapse.d.ts +8 -0
- package/dist/McContainer/demo/collapse.js +76 -0
- package/dist/McContainer/demo/expand.d.ts +8 -0
- package/dist/McContainer/demo/expand.js +90 -0
- package/dist/McContainer/demo/pagination.d.ts +7 -0
- package/dist/McContainer/demo/pagination.js +93 -0
- package/dist/McContainer/demo/search.d.ts +7 -0
- package/dist/McContainer/demo/search.js +101 -0
- package/dist/McContainer/demo/standard.d.ts +7 -0
- package/dist/McContainer/demo/standard.js +168 -0
- package/dist/McContainer/index.css +123 -0
- package/dist/McContainer/index.d.ts +49 -0
- package/dist/McContainer/index.js +407 -0
- package/dist/McDateRange/demo/base.d.ts +6 -0
- package/dist/McDateRange/demo/base.js +22 -0
- package/dist/McDateRange/demo/cancelPresets.d.ts +6 -0
- package/dist/McDateRange/demo/cancelPresets.js +23 -0
- package/dist/McDateRange/demo/overlap.d.ts +2 -0
- package/dist/McDateRange/demo/overlap.js +32 -0
- package/dist/McDateRange/index.css +31 -0
- package/dist/McDateRange/index.d.ts +28 -0
- package/dist/McDateRange/index.js +167 -0
- package/dist/McFonts/index.d.ts +7 -0
- package/dist/McFonts/index.js +10 -0
- package/dist/McFonts/public/FF DIN Pro Bold.otf +0 -0
- package/dist/McFonts/public/SourceHanSansCN-Bold.otf +0 -0
- package/dist/McFonts/public/SourceHanSansCN-Light.otf +0 -0
- package/dist/McFonts/public/SourceHanSansCN-Medium.otf +0 -0
- package/dist/McFonts/public/SourceHanSansCN-Regular.otf +0 -0
- package/dist/McGroupPanel/comps/SelectedItem/index.d.ts +4 -0
- package/dist/McGroupPanel/comps/SelectedItem/index.js +76 -0
- package/dist/McGroupPanel/index.css +162 -0
- package/dist/McGroupPanel/index.d.ts +29 -0
- package/dist/McGroupPanel/index.js +411 -0
- package/dist/McIconFont/iconfont.js +1 -0
- package/dist/McIconFont/index.d.ts +5 -0
- package/dist/McIconFont/index.js +8 -0
- package/dist/McIcons/business.json +137 -0
- package/dist/McInput/Input.d.ts +19 -0
- package/dist/McInput/Input.js +48 -0
- package/dist/McInput/Search.d.ts +39 -0
- package/dist/McInput/Search.js +81 -0
- package/dist/McInput/TextArea.d.ts +11 -0
- package/dist/McInput/TextArea.js +37 -0
- package/dist/McInput/demo/Input/addonBefore.d.ts +3 -0
- package/dist/McInput/demo/Input/addonBefore.js +67 -0
- package/dist/McInput/demo/Input/base.d.ts +2 -0
- package/dist/McInput/demo/Input/base.js +31 -0
- package/dist/McInput/demo/Input/isTrim.d.ts +2 -0
- package/dist/McInput/demo/Input/isTrim.js +22 -0
- package/dist/McInput/demo/Input/label.d.ts +2 -0
- package/dist/McInput/demo/Input/label.js +26 -0
- package/dist/McInput/demo/Input/ref.d.ts +3 -0
- package/dist/McInput/demo/Input/ref.js +53 -0
- package/dist/McInput/demo/Input/status.d.ts +2 -0
- package/dist/McInput/demo/Input/status.js +23 -0
- package/dist/McInput/demo/Search/search-base.d.ts +2 -0
- package/dist/McInput/demo/Search/search-base.js +38 -0
- package/dist/McInput/demo/TextArea/text-area-base.d.ts +2 -0
- package/dist/McInput/demo/TextArea/text-area-base.js +38 -0
- package/dist/McInput/index.css +44 -0
- package/dist/McInput/index.d.ts +13 -0
- package/dist/McInput/index.js +7 -0
- package/dist/McInputNumber/demo/index.d.ts +2 -0
- package/dist/McInputNumber/demo/index.js +28 -0
- package/dist/McInputNumber/demo/label.d.ts +2 -0
- package/dist/McInputNumber/demo/label.js +26 -0
- package/dist/McInputNumber/demo/precision.d.ts +2 -0
- package/dist/McInputNumber/demo/precision.js +20 -0
- package/dist/McInputNumber/index.css +9 -0
- package/dist/McInputNumber/index.d.ts +13 -0
- package/dist/McInputNumber/index.js +43 -0
- package/dist/McModalProvider/index.d.ts +174 -0
- package/dist/McModalProvider/index.js +498 -0
- package/dist/McPeriodSelect/demo/base.d.ts +6 -0
- package/dist/McPeriodSelect/demo/base.js +19 -0
- package/dist/McPeriodSelect/demo/half.d.ts +6 -0
- package/dist/McPeriodSelect/demo/half.js +20 -0
- package/dist/McPeriodSelect/index.css +189 -0
- package/dist/McPeriodSelect/index.d.ts +13 -0
- package/dist/McPeriodSelect/index.js +305 -0
- package/dist/McPopoverButton/index.d.ts +14 -0
- package/dist/McPopoverButton/index.js +52 -0
- package/dist/McPopoverForm/index.d.ts +14 -0
- package/dist/McPopoverForm/index.js +95 -0
- package/dist/McResult/default.d.ts +1 -0
- package/dist/McResult/default.js +84 -0
- package/dist/McResult/demo/403.d.ts +6 -0
- package/dist/McResult/demo/403.js +17 -0
- package/dist/McResult/demo/404.d.ts +6 -0
- package/dist/McResult/demo/404.js +17 -0
- package/dist/McResult/demo/500.d.ts +6 -0
- package/dist/McResult/demo/500.js +17 -0
- package/dist/McResult/demo/building.d.ts +6 -0
- package/dist/McResult/demo/building.js +12 -0
- package/dist/McResult/demo/empty.d.ts +2 -0
- package/dist/McResult/demo/empty.js +11 -0
- package/dist/McResult/demo/noFunction.d.ts +2 -0
- package/dist/McResult/demo/noFunction.js +11 -0
- package/dist/McResult/demo/noUser.d.ts +6 -0
- package/dist/McResult/demo/noUser.js +12 -0
- package/dist/McResult/demo/preview.d.ts +2 -0
- package/dist/McResult/demo/preview.js +14 -0
- package/dist/McResult/icon.d.ts +25 -0
- package/dist/McResult/icon.js +946 -0
- package/dist/McResult/index.css +20 -0
- package/dist/McResult/index.d.ts +27 -0
- package/dist/McResult/index.js +103 -0
- package/dist/McResult/public/403.svg +164 -0
- package/dist/McResult/public/404.svg +123 -0
- package/dist/McResult/public/500.svg +129 -0
- package/dist/McResult/public/building.svg +127 -0
- package/dist/McResult/public/code403.svg +7 -0
- package/dist/McResult/public/code404.svg +5 -0
- package/dist/McResult/public/code500.svg +5 -0
- package/dist/McResult/public/empty.svg +1 -0
- package/dist/McResult/public/noFunction.svg +1 -0
- package/dist/McResult/public/noUser.svg +90 -0
- package/dist/McSelect/demo/base.d.ts +2 -0
- package/dist/McSelect/demo/base.js +63 -0
- package/dist/McSelect/demo/changeOnHidden.d.ts +2 -0
- package/dist/McSelect/demo/changeOnHidden.js +43 -0
- package/dist/McSelect/demo/dropdownRender.d.ts +7 -0
- package/dist/McSelect/demo/dropdownRender.js +78 -0
- package/dist/McSelect/demo/fetchOptions.d.ts +7 -0
- package/dist/McSelect/demo/fetchOptions.js +210 -0
- package/dist/McSelect/demo/inexistent.d.ts +2 -0
- package/dist/McSelect/demo/inexistent.js +79 -0
- package/dist/McSelect/demo/labelInValue.d.ts +2 -0
- package/dist/McSelect/demo/labelInValue.js +72 -0
- package/dist/McSelect/demo/maxTagCount.d.ts +3 -0
- package/dist/McSelect/demo/maxTagCount.js +51 -0
- package/dist/McSelect/demo/multiple.d.ts +2 -0
- package/dist/McSelect/demo/multiple.js +46 -0
- package/dist/McSelect/demo/optionRender.d.ts +3 -0
- package/dist/McSelect/demo/optionRender.js +51 -0
- package/dist/McSelect/demo/tagRender.d.ts +3 -0
- package/dist/McSelect/demo/tagRender.js +51 -0
- package/dist/McSelect/index.css +60 -0
- package/dist/McSelect/index.d.ts +40 -0
- package/dist/McSelect/index.js +350 -0
- package/dist/McThemeConfig/customToken.json +38 -0
- package/dist/McThemeConfig/demo/button.d.ts +2 -0
- package/dist/McThemeConfig/demo/button.js +226 -0
- package/dist/McThemeConfig/demo/drawer.d.ts +2 -0
- package/dist/McThemeConfig/demo/drawer.js +59 -0
- package/dist/McThemeConfig/demo/modal.d.ts +2 -0
- package/dist/McThemeConfig/demo/modal.js +78 -0
- package/dist/McThemeConfig/demo/radio.d.ts +2 -0
- package/dist/McThemeConfig/demo/radio.js +97 -0
- package/dist/McThemeConfig/demo/switch.d.ts +2 -0
- package/dist/McThemeConfig/demo/switch.js +96 -0
- package/dist/McThemeConfig/demo/tabs.d.ts +2 -0
- package/dist/McThemeConfig/demo/tabs.js +35 -0
- package/dist/McThemeConfig/globalStyle.d.ts +2 -0
- package/dist/McThemeConfig/globalStyle.js +172 -0
- package/dist/McThemeConfig/index.d.ts +9 -0
- package/dist/McThemeConfig/index.js +16 -0
- package/dist/McThemeConfig/layoutStyle.d.ts +2 -0
- package/dist/McThemeConfig/layoutStyle.js +1 -0
- package/dist/McThemeConfig/provider.d.ts +7 -0
- package/dist/McThemeConfig/provider.js +19 -0
- package/dist/McThemeConfig/themeToken.json +149 -0
- package/dist/McTreePanel/SelectedItem.d.ts +4 -0
- package/dist/McTreePanel/SelectedItem.js +75 -0
- package/dist/McTreePanel/demo/base.d.ts +6 -0
- package/dist/McTreePanel/demo/base.js +45 -0
- package/dist/McTreePanel/demo/fieldNames.d.ts +6 -0
- package/dist/McTreePanel/demo/fieldNames.js +37 -0
- package/dist/McTreePanel/demo/inexistent.d.ts +6 -0
- package/dist/McTreePanel/demo/inexistent.js +56 -0
- package/dist/McTreePanel/demo/labelInValue.d.ts +6 -0
- package/dist/McTreePanel/demo/labelInValue.js +56 -0
- package/dist/McTreePanel/demo/sortable.d.ts +6 -0
- package/dist/McTreePanel/demo/sortable.js +34 -0
- package/dist/McTreePanel/index.css +110 -0
- package/dist/McTreePanel/index.d.ts +27 -0
- package/dist/McTreePanel/index.js +315 -0
- package/dist/McTreeSelect/demo/base.d.ts +5 -0
- package/dist/McTreeSelect/demo/base.js +58 -0
- package/dist/McTreeSelect/demo/inexistent.d.ts +5 -0
- package/dist/McTreeSelect/demo/inexistent.js +63 -0
- package/dist/McTreeSelect/demo/label.d.ts +5 -0
- package/dist/McTreeSelect/demo/label.js +60 -0
- package/dist/McTreeSelect/demo/multiple.d.ts +5 -0
- package/dist/McTreeSelect/demo/multiple.js +71 -0
- package/dist/McTreeSelect/index.css +60 -0
- package/dist/McTreeSelect/index.d.ts +13 -0
- package/dist/McTreeSelect/index.js +182 -0
- package/dist/Utils/index.d.ts +4 -0
- package/dist/Utils/index.js +26 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.js +19 -0
- package/dist/typings.d.ts +20 -0
- package/package.json +82 -0
@@ -0,0 +1,84 @@
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
3
|
+
// 默认配置
|
4
|
+
export var DEFAULT_MAP = {
|
5
|
+
403: {
|
6
|
+
title: '您没有权限访问该页面',
|
7
|
+
direction: 'row',
|
8
|
+
iconStyle: {
|
9
|
+
width: 340,
|
10
|
+
height: 340
|
11
|
+
}
|
12
|
+
},
|
13
|
+
404: {
|
14
|
+
title: '找不到页面,请返回',
|
15
|
+
direction: 'row',
|
16
|
+
iconStyle: {
|
17
|
+
width: 340,
|
18
|
+
height: 340
|
19
|
+
}
|
20
|
+
},
|
21
|
+
500: {
|
22
|
+
title: '服务器错误,请稍后再试',
|
23
|
+
direction: 'row',
|
24
|
+
iconStyle: {
|
25
|
+
width: 340,
|
26
|
+
height: 340
|
27
|
+
}
|
28
|
+
},
|
29
|
+
noUser: {
|
30
|
+
title: /*#__PURE__*/_jsxs("div", {
|
31
|
+
style: {
|
32
|
+
display: 'flex',
|
33
|
+
flexDirection: 'column',
|
34
|
+
justifyContent: 'center',
|
35
|
+
alignItems: 'center'
|
36
|
+
},
|
37
|
+
children: [/*#__PURE__*/_jsx("span", {
|
38
|
+
children: "\u672A\u7ED1\u5B9A\u7528\u6237\u8D26\u53F7"
|
39
|
+
}), /*#__PURE__*/_jsx("span", {
|
40
|
+
children: "\u8BF7\u8054\u7CFB\u7CFB\u7EDF\u7BA1\u7406\u5458\u5904\u7406"
|
41
|
+
})]
|
42
|
+
}),
|
43
|
+
direction: 'column',
|
44
|
+
iconStyle: {
|
45
|
+
width: 340,
|
46
|
+
height: 340
|
47
|
+
}
|
48
|
+
},
|
49
|
+
building: {
|
50
|
+
title: '建设中...',
|
51
|
+
direction: 'column',
|
52
|
+
iconStyle: {
|
53
|
+
width: 340,
|
54
|
+
height: 340
|
55
|
+
}
|
56
|
+
},
|
57
|
+
empty: {
|
58
|
+
title: /*#__PURE__*/_jsx("span", {
|
59
|
+
style: {
|
60
|
+
fontSize: 14,
|
61
|
+
fontWeight: 400
|
62
|
+
},
|
63
|
+
children: "\u6682\u65E0\u6570\u636E"
|
64
|
+
}),
|
65
|
+
direction: 'column',
|
66
|
+
iconStyle: {
|
67
|
+
width: 160,
|
68
|
+
height: 160
|
69
|
+
}
|
70
|
+
},
|
71
|
+
noFunction: {
|
72
|
+
title: /*#__PURE__*/_jsx("span", {
|
73
|
+
style: {
|
74
|
+
fontSize: 14
|
75
|
+
},
|
76
|
+
children: "\u66F4\u591A\u529F\u80FD\uFF0C\u656C\u8BF7\u671F\u5F85\uFF5E"
|
77
|
+
}),
|
78
|
+
direction: 'column',
|
79
|
+
iconStyle: {
|
80
|
+
width: 240,
|
81
|
+
height: 240
|
82
|
+
}
|
83
|
+
}
|
84
|
+
};
|
@@ -0,0 +1,17 @@
|
|
1
|
+
/**
|
2
|
+
* title: 403 无权限访问
|
3
|
+
* description: 配置 `status` 为 403。`<McResult.PRESENTED_IMAGE_403 />` 可以单独获取图片
|
4
|
+
*/
|
5
|
+
|
6
|
+
import { Button } from 'antd';
|
7
|
+
import { McResult } from "../..";
|
8
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
9
|
+
export default (function () {
|
10
|
+
return /*#__PURE__*/_jsx(McResult, {
|
11
|
+
status: "403",
|
12
|
+
extra: /*#__PURE__*/_jsx(Button, {
|
13
|
+
type: "primary",
|
14
|
+
children: "\u8FD4\u56DE\u9996\u9875"
|
15
|
+
})
|
16
|
+
});
|
17
|
+
});
|
@@ -0,0 +1,17 @@
|
|
1
|
+
/**
|
2
|
+
* title: 404 页面资源不存在
|
3
|
+
* description: 配置 `status` 为 404。`<McResult.PRESENTED_IMAGE_404 />` 可以单独获取图片
|
4
|
+
*/
|
5
|
+
|
6
|
+
import { Button } from 'antd';
|
7
|
+
import { McResult } from "../..";
|
8
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
9
|
+
export default (function () {
|
10
|
+
return /*#__PURE__*/_jsx(McResult, {
|
11
|
+
status: "404",
|
12
|
+
extra: /*#__PURE__*/_jsx(Button, {
|
13
|
+
type: "primary",
|
14
|
+
children: "\u8FD4\u56DE\u9996\u9875"
|
15
|
+
})
|
16
|
+
});
|
17
|
+
});
|
@@ -0,0 +1,17 @@
|
|
1
|
+
/**
|
2
|
+
* title: 500 请求错误
|
3
|
+
* description: 配置 `status` 为 500。`<McResult.PRESENTED_IMAGE_500 />` 可以单独获取图片
|
4
|
+
*/
|
5
|
+
|
6
|
+
import { Button } from 'antd';
|
7
|
+
import { McResult } from "../..";
|
8
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
9
|
+
export default (function () {
|
10
|
+
return /*#__PURE__*/_jsx(McResult, {
|
11
|
+
status: "500",
|
12
|
+
extra: /*#__PURE__*/_jsx(Button, {
|
13
|
+
type: "primary",
|
14
|
+
children: "\u8FD4\u56DE\u9996\u9875"
|
15
|
+
})
|
16
|
+
});
|
17
|
+
});
|
@@ -0,0 +1,12 @@
|
|
1
|
+
/**
|
2
|
+
* title: 页面建设中占位
|
3
|
+
* description: 配置 `status` 为 `building`。`<McResult.PRESENTED_IMAGE_BUILDING />` 可以单独获取图片
|
4
|
+
*/
|
5
|
+
|
6
|
+
import { McResult } from "../..";
|
7
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
8
|
+
export default (function () {
|
9
|
+
return /*#__PURE__*/_jsx(McResult, {
|
10
|
+
status: "building"
|
11
|
+
});
|
12
|
+
});
|
@@ -0,0 +1,11 @@
|
|
1
|
+
/**
|
2
|
+
* title: 暂无数据
|
3
|
+
* description: 配置 `status` 为 `empty`。`<McResult.PRESENTED_IMAGE_EMPTY />` 可以单独获取图片
|
4
|
+
*/
|
5
|
+
import { McResult } from "../..";
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
7
|
+
export default (function () {
|
8
|
+
return /*#__PURE__*/_jsx(McResult, {
|
9
|
+
status: "empty"
|
10
|
+
});
|
11
|
+
});
|
@@ -0,0 +1,11 @@
|
|
1
|
+
/**
|
2
|
+
* title: 更多功能占位
|
3
|
+
* description: 配置 `status` 为 `noFunction`。`<McResult.PRESENTED_IMAGE_NOFUNCTION />` 可以单独获取图片
|
4
|
+
*/
|
5
|
+
import { McResult } from "../..";
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
7
|
+
export default (function () {
|
8
|
+
return /*#__PURE__*/_jsx(McResult, {
|
9
|
+
status: "noFunction"
|
10
|
+
});
|
11
|
+
});
|
@@ -0,0 +1,12 @@
|
|
1
|
+
/**
|
2
|
+
* title: 用户信息不存在
|
3
|
+
* description: 配置 `status` 为 `noUser`。`<McResult.PRESENTED_IMAGE_NOUSER />` 可以单独获取图片
|
4
|
+
*/
|
5
|
+
|
6
|
+
import { McResult } from "../..";
|
7
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
8
|
+
export default (function () {
|
9
|
+
return /*#__PURE__*/_jsx(McResult, {
|
10
|
+
status: "noUser"
|
11
|
+
});
|
12
|
+
});
|
@@ -0,0 +1,14 @@
|
|
1
|
+
/**
|
2
|
+
* title: 获取预设的图片
|
3
|
+
*/
|
4
|
+
import { Space } from 'antd';
|
5
|
+
import { McResult } from "../..";
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
7
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
8
|
+
export default (function () {
|
9
|
+
return /*#__PURE__*/_jsxs(Space, {
|
10
|
+
wrap: true,
|
11
|
+
size: [24, 24],
|
12
|
+
children: [/*#__PURE__*/_jsx(McResult.PRESENTED_IMAGE_EMPTY, {}), /*#__PURE__*/_jsx(McResult.PRESENTED_IMAGE_NOFUNCTION, {})]
|
13
|
+
});
|
14
|
+
});
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
export interface IconProps {
|
3
|
+
color?: string;
|
4
|
+
className?: string;
|
5
|
+
height?: number;
|
6
|
+
kind?: string | any;
|
7
|
+
onClick?: () => void;
|
8
|
+
preview?: boolean;
|
9
|
+
size?: number;
|
10
|
+
style?: any;
|
11
|
+
width?: number;
|
12
|
+
wrapperStyle?: any;
|
13
|
+
}
|
14
|
+
export default class Icon extends React.Component<IconProps, {}> {
|
15
|
+
static defaultProps: {
|
16
|
+
className: string;
|
17
|
+
color: string;
|
18
|
+
size: number;
|
19
|
+
};
|
20
|
+
render(): import("react/jsx-runtime").JSX.Element | null;
|
21
|
+
renderPreview(): import("react/jsx-runtime").JSX.Element;
|
22
|
+
renderIcon(kind: string): import("react/jsx-runtime").JSX.Element | null;
|
23
|
+
renderPreviewKind(kind: string): import("react/jsx-runtime").JSX.Element;
|
24
|
+
getIcon(kind: string): import("react/jsx-runtime").JSX.Element | null;
|
25
|
+
}
|