@zykj2024/much-library 1.0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (207) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +35 -0
  3. package/dist/McCascader/city.js +909 -0
  4. package/dist/McCascader/index.css +60 -0
  5. package/dist/McCascader/index.d.ts +19 -0
  6. package/dist/McCascader/index.js +221 -0
  7. package/dist/McContainer/demo/actionBar.d.ts +8 -0
  8. package/dist/McContainer/demo/actionBar.js +70 -0
  9. package/dist/McContainer/demo/base.d.ts +8 -0
  10. package/dist/McContainer/demo/base.js +80 -0
  11. package/dist/McContainer/demo/batch.d.ts +8 -0
  12. package/dist/McContainer/demo/batch.js +89 -0
  13. package/dist/McContainer/demo/collapse.d.ts +8 -0
  14. package/dist/McContainer/demo/collapse.js +76 -0
  15. package/dist/McContainer/demo/expand.d.ts +8 -0
  16. package/dist/McContainer/demo/expand.js +90 -0
  17. package/dist/McContainer/demo/pagination.d.ts +7 -0
  18. package/dist/McContainer/demo/pagination.js +93 -0
  19. package/dist/McContainer/demo/search.d.ts +7 -0
  20. package/dist/McContainer/demo/search.js +101 -0
  21. package/dist/McContainer/demo/standard.d.ts +7 -0
  22. package/dist/McContainer/demo/standard.js +168 -0
  23. package/dist/McContainer/index.css +123 -0
  24. package/dist/McContainer/index.d.ts +49 -0
  25. package/dist/McContainer/index.js +407 -0
  26. package/dist/McDateRange/demo/base.d.ts +6 -0
  27. package/dist/McDateRange/demo/base.js +22 -0
  28. package/dist/McDateRange/demo/cancelPresets.d.ts +6 -0
  29. package/dist/McDateRange/demo/cancelPresets.js +23 -0
  30. package/dist/McDateRange/demo/overlap.d.ts +2 -0
  31. package/dist/McDateRange/demo/overlap.js +32 -0
  32. package/dist/McDateRange/index.css +31 -0
  33. package/dist/McDateRange/index.d.ts +28 -0
  34. package/dist/McDateRange/index.js +167 -0
  35. package/dist/McFonts/index.d.ts +7 -0
  36. package/dist/McFonts/index.js +10 -0
  37. package/dist/McFonts/public/FF DIN Pro Bold.otf +0 -0
  38. package/dist/McFonts/public/SourceHanSansCN-Bold.otf +0 -0
  39. package/dist/McFonts/public/SourceHanSansCN-Light.otf +0 -0
  40. package/dist/McFonts/public/SourceHanSansCN-Medium.otf +0 -0
  41. package/dist/McFonts/public/SourceHanSansCN-Regular.otf +0 -0
  42. package/dist/McGroupPanel/comps/SelectedItem/index.d.ts +4 -0
  43. package/dist/McGroupPanel/comps/SelectedItem/index.js +76 -0
  44. package/dist/McGroupPanel/index.css +162 -0
  45. package/dist/McGroupPanel/index.d.ts +29 -0
  46. package/dist/McGroupPanel/index.js +411 -0
  47. package/dist/McIconFont/iconfont.js +1 -0
  48. package/dist/McIconFont/index.d.ts +5 -0
  49. package/dist/McIconFont/index.js +8 -0
  50. package/dist/McIcons/business.json +137 -0
  51. package/dist/McInput/Input.d.ts +19 -0
  52. package/dist/McInput/Input.js +48 -0
  53. package/dist/McInput/Search.d.ts +39 -0
  54. package/dist/McInput/Search.js +81 -0
  55. package/dist/McInput/TextArea.d.ts +11 -0
  56. package/dist/McInput/TextArea.js +37 -0
  57. package/dist/McInput/demo/Input/addonBefore.d.ts +3 -0
  58. package/dist/McInput/demo/Input/addonBefore.js +67 -0
  59. package/dist/McInput/demo/Input/base.d.ts +2 -0
  60. package/dist/McInput/demo/Input/base.js +31 -0
  61. package/dist/McInput/demo/Input/isTrim.d.ts +2 -0
  62. package/dist/McInput/demo/Input/isTrim.js +22 -0
  63. package/dist/McInput/demo/Input/label.d.ts +2 -0
  64. package/dist/McInput/demo/Input/label.js +26 -0
  65. package/dist/McInput/demo/Input/ref.d.ts +3 -0
  66. package/dist/McInput/demo/Input/ref.js +53 -0
  67. package/dist/McInput/demo/Input/status.d.ts +2 -0
  68. package/dist/McInput/demo/Input/status.js +23 -0
  69. package/dist/McInput/demo/Search/search-base.d.ts +2 -0
  70. package/dist/McInput/demo/Search/search-base.js +38 -0
  71. package/dist/McInput/demo/TextArea/text-area-base.d.ts +2 -0
  72. package/dist/McInput/demo/TextArea/text-area-base.js +38 -0
  73. package/dist/McInput/index.css +44 -0
  74. package/dist/McInput/index.d.ts +13 -0
  75. package/dist/McInput/index.js +7 -0
  76. package/dist/McInputNumber/demo/index.d.ts +2 -0
  77. package/dist/McInputNumber/demo/index.js +28 -0
  78. package/dist/McInputNumber/demo/label.d.ts +2 -0
  79. package/dist/McInputNumber/demo/label.js +26 -0
  80. package/dist/McInputNumber/demo/precision.d.ts +2 -0
  81. package/dist/McInputNumber/demo/precision.js +20 -0
  82. package/dist/McInputNumber/index.css +9 -0
  83. package/dist/McInputNumber/index.d.ts +13 -0
  84. package/dist/McInputNumber/index.js +43 -0
  85. package/dist/McModalProvider/index.d.ts +174 -0
  86. package/dist/McModalProvider/index.js +498 -0
  87. package/dist/McPeriodSelect/demo/base.d.ts +6 -0
  88. package/dist/McPeriodSelect/demo/base.js +19 -0
  89. package/dist/McPeriodSelect/demo/half.d.ts +6 -0
  90. package/dist/McPeriodSelect/demo/half.js +20 -0
  91. package/dist/McPeriodSelect/index.css +189 -0
  92. package/dist/McPeriodSelect/index.d.ts +13 -0
  93. package/dist/McPeriodSelect/index.js +305 -0
  94. package/dist/McPopoverButton/index.d.ts +14 -0
  95. package/dist/McPopoverButton/index.js +52 -0
  96. package/dist/McPopoverForm/index.d.ts +14 -0
  97. package/dist/McPopoverForm/index.js +95 -0
  98. package/dist/McResult/default.d.ts +1 -0
  99. package/dist/McResult/default.js +84 -0
  100. package/dist/McResult/demo/403.d.ts +6 -0
  101. package/dist/McResult/demo/403.js +17 -0
  102. package/dist/McResult/demo/404.d.ts +6 -0
  103. package/dist/McResult/demo/404.js +17 -0
  104. package/dist/McResult/demo/500.d.ts +6 -0
  105. package/dist/McResult/demo/500.js +17 -0
  106. package/dist/McResult/demo/building.d.ts +6 -0
  107. package/dist/McResult/demo/building.js +12 -0
  108. package/dist/McResult/demo/empty.d.ts +2 -0
  109. package/dist/McResult/demo/empty.js +11 -0
  110. package/dist/McResult/demo/noFunction.d.ts +2 -0
  111. package/dist/McResult/demo/noFunction.js +11 -0
  112. package/dist/McResult/demo/noUser.d.ts +6 -0
  113. package/dist/McResult/demo/noUser.js +12 -0
  114. package/dist/McResult/demo/preview.d.ts +2 -0
  115. package/dist/McResult/demo/preview.js +14 -0
  116. package/dist/McResult/icon.d.ts +25 -0
  117. package/dist/McResult/icon.js +946 -0
  118. package/dist/McResult/index.css +20 -0
  119. package/dist/McResult/index.d.ts +27 -0
  120. package/dist/McResult/index.js +103 -0
  121. package/dist/McResult/public/403.svg +164 -0
  122. package/dist/McResult/public/404.svg +123 -0
  123. package/dist/McResult/public/500.svg +129 -0
  124. package/dist/McResult/public/building.svg +127 -0
  125. package/dist/McResult/public/code403.svg +7 -0
  126. package/dist/McResult/public/code404.svg +5 -0
  127. package/dist/McResult/public/code500.svg +5 -0
  128. package/dist/McResult/public/empty.svg +1 -0
  129. package/dist/McResult/public/noFunction.svg +1 -0
  130. package/dist/McResult/public/noUser.svg +90 -0
  131. package/dist/McSelect/demo/base.d.ts +2 -0
  132. package/dist/McSelect/demo/base.js +63 -0
  133. package/dist/McSelect/demo/changeOnHidden.d.ts +2 -0
  134. package/dist/McSelect/demo/changeOnHidden.js +43 -0
  135. package/dist/McSelect/demo/dropdownRender.d.ts +7 -0
  136. package/dist/McSelect/demo/dropdownRender.js +78 -0
  137. package/dist/McSelect/demo/fetchOptions.d.ts +7 -0
  138. package/dist/McSelect/demo/fetchOptions.js +210 -0
  139. package/dist/McSelect/demo/inexistent.d.ts +2 -0
  140. package/dist/McSelect/demo/inexistent.js +79 -0
  141. package/dist/McSelect/demo/labelInValue.d.ts +2 -0
  142. package/dist/McSelect/demo/labelInValue.js +72 -0
  143. package/dist/McSelect/demo/maxTagCount.d.ts +3 -0
  144. package/dist/McSelect/demo/maxTagCount.js +51 -0
  145. package/dist/McSelect/demo/multiple.d.ts +2 -0
  146. package/dist/McSelect/demo/multiple.js +46 -0
  147. package/dist/McSelect/demo/optionRender.d.ts +3 -0
  148. package/dist/McSelect/demo/optionRender.js +51 -0
  149. package/dist/McSelect/demo/tagRender.d.ts +3 -0
  150. package/dist/McSelect/demo/tagRender.js +51 -0
  151. package/dist/McSelect/index.css +60 -0
  152. package/dist/McSelect/index.d.ts +40 -0
  153. package/dist/McSelect/index.js +350 -0
  154. package/dist/McThemeConfig/customToken.json +38 -0
  155. package/dist/McThemeConfig/demo/button.d.ts +2 -0
  156. package/dist/McThemeConfig/demo/button.js +226 -0
  157. package/dist/McThemeConfig/demo/drawer.d.ts +2 -0
  158. package/dist/McThemeConfig/demo/drawer.js +59 -0
  159. package/dist/McThemeConfig/demo/modal.d.ts +2 -0
  160. package/dist/McThemeConfig/demo/modal.js +78 -0
  161. package/dist/McThemeConfig/demo/radio.d.ts +2 -0
  162. package/dist/McThemeConfig/demo/radio.js +97 -0
  163. package/dist/McThemeConfig/demo/switch.d.ts +2 -0
  164. package/dist/McThemeConfig/demo/switch.js +96 -0
  165. package/dist/McThemeConfig/demo/tabs.d.ts +2 -0
  166. package/dist/McThemeConfig/demo/tabs.js +35 -0
  167. package/dist/McThemeConfig/globalStyle.d.ts +2 -0
  168. package/dist/McThemeConfig/globalStyle.js +172 -0
  169. package/dist/McThemeConfig/index.d.ts +9 -0
  170. package/dist/McThemeConfig/index.js +16 -0
  171. package/dist/McThemeConfig/layoutStyle.d.ts +2 -0
  172. package/dist/McThemeConfig/layoutStyle.js +1 -0
  173. package/dist/McThemeConfig/provider.d.ts +7 -0
  174. package/dist/McThemeConfig/provider.js +19 -0
  175. package/dist/McThemeConfig/themeToken.json +149 -0
  176. package/dist/McTreePanel/SelectedItem.d.ts +4 -0
  177. package/dist/McTreePanel/SelectedItem.js +75 -0
  178. package/dist/McTreePanel/demo/base.d.ts +6 -0
  179. package/dist/McTreePanel/demo/base.js +45 -0
  180. package/dist/McTreePanel/demo/fieldNames.d.ts +6 -0
  181. package/dist/McTreePanel/demo/fieldNames.js +37 -0
  182. package/dist/McTreePanel/demo/inexistent.d.ts +6 -0
  183. package/dist/McTreePanel/demo/inexistent.js +56 -0
  184. package/dist/McTreePanel/demo/labelInValue.d.ts +6 -0
  185. package/dist/McTreePanel/demo/labelInValue.js +56 -0
  186. package/dist/McTreePanel/demo/sortable.d.ts +6 -0
  187. package/dist/McTreePanel/demo/sortable.js +34 -0
  188. package/dist/McTreePanel/index.css +110 -0
  189. package/dist/McTreePanel/index.d.ts +27 -0
  190. package/dist/McTreePanel/index.js +315 -0
  191. package/dist/McTreeSelect/demo/base.d.ts +5 -0
  192. package/dist/McTreeSelect/demo/base.js +58 -0
  193. package/dist/McTreeSelect/demo/inexistent.d.ts +5 -0
  194. package/dist/McTreeSelect/demo/inexistent.js +63 -0
  195. package/dist/McTreeSelect/demo/label.d.ts +5 -0
  196. package/dist/McTreeSelect/demo/label.js +60 -0
  197. package/dist/McTreeSelect/demo/multiple.d.ts +5 -0
  198. package/dist/McTreeSelect/demo/multiple.js +71 -0
  199. package/dist/McTreeSelect/index.css +60 -0
  200. package/dist/McTreeSelect/index.d.ts +13 -0
  201. package/dist/McTreeSelect/index.js +182 -0
  202. package/dist/Utils/index.d.ts +4 -0
  203. package/dist/Utils/index.js +26 -0
  204. package/dist/index.d.ts +19 -0
  205. package/dist/index.js +19 -0
  206. package/dist/typings.d.ts +20 -0
  207. 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,6 @@
1
+ /**
2
+ * title: 403 无权限访问
3
+ * description: 配置 `status` 为 403。`<McResult.PRESENTED_IMAGE_403 />` 可以单独获取图片
4
+ */
5
+ declare const _default: () => import("react/jsx-runtime").JSX.Element;
6
+ export default _default;
@@ -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,6 @@
1
+ /**
2
+ * title: 404 页面资源不存在
3
+ * description: 配置 `status` 为 404。`<McResult.PRESENTED_IMAGE_404 />` 可以单独获取图片
4
+ */
5
+ declare const _default: () => import("react/jsx-runtime").JSX.Element;
6
+ export default _default;
@@ -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,6 @@
1
+ /**
2
+ * title: 500 请求错误
3
+ * description: 配置 `status` 为 500。`<McResult.PRESENTED_IMAGE_500 />` 可以单独获取图片
4
+ */
5
+ declare const _default: () => import("react/jsx-runtime").JSX.Element;
6
+ export default _default;
@@ -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,6 @@
1
+ /**
2
+ * title: 页面建设中占位
3
+ * description: 配置 `status` 为 `building`。`<McResult.PRESENTED_IMAGE_BUILDING />` 可以单独获取图片
4
+ */
5
+ declare const _default: () => import("react/jsx-runtime").JSX.Element;
6
+ export default _default;
@@ -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,2 @@
1
+ declare const _default: () => import("react/jsx-runtime").JSX.Element;
2
+ export default _default;
@@ -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,2 @@
1
+ declare const _default: () => import("react/jsx-runtime").JSX.Element;
2
+ export default _default;
@@ -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,6 @@
1
+ /**
2
+ * title: 用户信息不存在
3
+ * description: 配置 `status` 为 `noUser`。`<McResult.PRESENTED_IMAGE_NOUSER />` 可以单独获取图片
4
+ */
5
+ declare const _default: () => import("react/jsx-runtime").JSX.Element;
6
+ export default _default;
@@ -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,2 @@
1
+ declare const _default: () => import("react/jsx-runtime").JSX.Element;
2
+ export default _default;
@@ -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
+ }