@zykj2024/much-library 1.1.1-beta.1 → 1.1.2-beta.1

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.
@@ -11,7 +11,8 @@
11
11
  }
12
12
  .mc-container__wrapper {
13
13
  height: 100%;
14
- padding: 24px 24px 50px 16px;
14
+ padding: 0 24px 0 16px;
15
+ margin-top: 24px;
15
16
  overflow-y: auto;
16
17
  border-top-right-radius: 12px;
17
18
  }
@@ -6,10 +6,6 @@ export type McContainerPropsType = {
6
6
  className?: string;
7
7
  height?: string;
8
8
  backgroundColor?: string;
9
- /**
10
- * 是否展示头部遮罩,默认显示
11
- */
12
- showCell?: boolean;
13
9
  immediateQuery?: boolean;
14
10
  loading?: boolean;
15
11
  queryItems?: ReactElement;
@@ -17,8 +17,6 @@ var McContainer = /*#__PURE__*/forwardRef(function (props, ref) {
17
17
  height = _props$height === void 0 ? 'calc(100vh - 88px)' : _props$height,
18
18
  _props$backgroundColo = props.backgroundColor,
19
19
  backgroundColor = _props$backgroundColo === void 0 ? '#ffffff' : _props$backgroundColo,
20
- _props$showCell = props.showCell,
21
- showCell = _props$showCell === void 0 ? true : _props$showCell,
22
20
  _props$immediateQuery = props.immediateQuery,
23
21
  immediateQuery = _props$immediateQuery === void 0 ? true : _props$immediateQuery,
24
22
  _props$loading = props.loading,
@@ -56,6 +54,7 @@ var McContainer = /*#__PURE__*/forwardRef(function (props, ref) {
56
54
  var queryParamsRef = useRef({});
57
55
  var defaultQueryParamsRef = useRef({});
58
56
  var initializedRef = useRef(false);
57
+ var containerRef = useRef(null);
59
58
 
60
59
  /* 批量操作相关 */
61
60
  var _ref = batch || {},
@@ -324,18 +323,14 @@ var McContainer = /*#__PURE__*/forwardRef(function (props, ref) {
324
323
  maxHeight: 'none'
325
324
  },
326
325
  spinning: loading,
327
- children: /*#__PURE__*/_jsxs("div", {
326
+ children: /*#__PURE__*/_jsx("div", {
328
327
  className: "mc-container ".concat(className || ''),
329
328
  style: _objectSpread({
330
329
  height: height,
331
330
  backgroundColor: backgroundColor
332
331
  }, style),
333
- children: [showCell && /*#__PURE__*/_jsx("div", {
334
- className: "mc-container__ceiling",
335
- style: {
336
- backgroundColor: backgroundColor
337
- }
338
- }), /*#__PURE__*/_jsxs("div", {
332
+ children: /*#__PURE__*/_jsxs("div", {
333
+ ref: containerRef,
339
334
  className: "mc-container__wrapper",
340
335
  style: {
341
336
  paddingBottom: tableRender || tableRender === null || (tableProps === null || tableProps === void 0 ? void 0 : tableProps.pagination) === false ? 16 : 50
@@ -419,7 +414,10 @@ var McContainer = /*#__PURE__*/forwardRef(function (props, ref) {
419
414
  className: "mc-container__table",
420
415
  size: "small",
421
416
  sticky: {
422
- offsetHeader: (actionBarHeight ? actionBarHeight - 24 : 0) + (batchNum > 0 ? 48 : 0)
417
+ offsetHeader: (actionBarHeight ? actionBarHeight - 24 : 0) + (batchNum > 0 ? 48 : 0),
418
+ getContainer: function getContainer() {
419
+ return containerRef.current;
420
+ }
423
421
  },
424
422
  scroll: {
425
423
  x: (tableProps === null || tableProps === void 0 || (_tableProps$dataSourc = tableProps.dataSource) === null || _tableProps$dataSourc === void 0 ? void 0 : _tableProps$dataSourc.length) > 0 ? 'max-content' : '100%'
@@ -468,7 +466,7 @@ var McContainer = /*#__PURE__*/forwardRef(function (props, ref) {
468
466
  }
469
467
  }, tableProps === null || tableProps === void 0 ? void 0 : tableProps.expandable)
470
468
  }))]
471
- })]
469
+ })
472
470
  })
473
471
  });
474
472
  });
@@ -20,28 +20,6 @@ export default (function () {
20
20
  },
21
21
  text: "\u8FD9\u662F\u4E00\u6BB5\u6709\u6EA2\u51FA\u7684\u6587\u5B57\uFF0C\u8FD9\u662F\u4E00\u6BB5\u6709\u6EA2\u51FA\u7684\u6587\u5B57",
22
22
  suffixCount: 4
23
- }), /*#__PURE__*/_jsx(McEllipsisMiddle, {
24
- style: {
25
- width: 250
26
- },
27
- tooltip: "\u8FD9\u662Ftooltip\u7684\u5185\u5BB9",
28
- noTooltip: true,
29
- symbol: function symbol() {
30
- return /*#__PURE__*/_jsx("div", {
31
- children: "123"
32
- });
33
- },
34
- text: "\u6587\u5B57\u548Ctooltip\u4F7F\u7528\u4E0D\u540C\u7684\u5185\u5BB9,\u6587\u5B57\u548Ctooltip\u4F7F\u7528\u4E0D\u540C\u7684\u5185\u5BB9",
35
- suffixCount: 4
36
- }), /*#__PURE__*/_jsx(McEllipsisMiddle, {
37
- style: {
38
- width: 150,
39
- marginLeft: 12
40
- },
41
- tooltip: "\u8FD9\u662Ftooltip\u7684\u5185\u5BB9",
42
- noTooltip: true,
43
- text: "\u6211\u4E0D\u9700\u8981\u7701\u7565\u53F7",
44
- suffixCount: 4
45
23
  })]
46
24
  });
47
25
  });
@@ -0,0 +1,6 @@
1
+ /**
2
+ * title: 进阶用法
3
+ * description: 自定义tooltip。和默认tooltip不同的是:1. 内容可以自定义 2. 及时没有出现省略号,也会展示tooltip
4
+ */
5
+ declare const _default: () => import("react/jsx-runtime").JSX.Element;
6
+ export default _default;
@@ -0,0 +1,35 @@
1
+ /**
2
+ * title: 进阶用法
3
+ * description: 自定义tooltip。和默认tooltip不同的是:1. 内容可以自定义 2. 及时没有出现省略号,也会展示tooltip
4
+ */
5
+
6
+ import { McEllipsisMiddle } from "../..";
7
+ import { jsx as _jsx } from "react/jsx-runtime";
8
+ import { jsxs as _jsxs } from "react/jsx-runtime";
9
+ export default (function () {
10
+ return /*#__PURE__*/_jsxs("div", {
11
+ children: [/*#__PURE__*/_jsx(McEllipsisMiddle, {
12
+ style: {
13
+ width: 250
14
+ },
15
+ tooltip: "\u8FD9\u662Ftooltip\u7684\u5185\u5BB9",
16
+ noTooltip: true,
17
+ symbol: function symbol() {
18
+ return /*#__PURE__*/_jsx("div", {
19
+ children: "123"
20
+ });
21
+ },
22
+ text: "\u6587\u5B57\u548Ctooltip\u4F7F\u7528\u4E0D\u540C\u7684\u5185\u5BB9,\u6587\u5B57\u548Ctooltip\u4F7F\u7528\u4E0D\u540C\u7684\u5185\u5BB9",
23
+ suffixCount: 4
24
+ }), /*#__PURE__*/_jsx(McEllipsisMiddle, {
25
+ style: {
26
+ width: 150,
27
+ marginLeft: 12
28
+ },
29
+ tooltip: "\u8FD9\u662Ftooltip\u7684\u5185\u5BB9",
30
+ noTooltip: true,
31
+ text: "\u6211\u4E0D\u7F29\u4E5F\u4F1A\u5C55\u793Atooltip",
32
+ suffixCount: 4
33
+ })]
34
+ });
35
+ });
@@ -0,0 +1,33 @@
1
+ .icons-row-item {
2
+ display: -webkit-box;
3
+ display: -ms-flexbox;
4
+ display: flex;
5
+ -webkit-box-orient: vertical;
6
+ -webkit-box-direction: normal;
7
+ -ms-flex-direction: column;
8
+ flex-direction: column;
9
+ -webkit-box-pack: center;
10
+ -ms-flex-pack: center;
11
+ justify-content: center;
12
+ -webkit-box-align: center;
13
+ -ms-flex-align: center;
14
+ align-items: center;
15
+ height: 100px;
16
+ border-radius: 5px;
17
+ cursor: pointer;
18
+ }
19
+ .icons-row-item .abc {
20
+ -webkit-transition: -webkit-transform 0.3s ease-in-out;
21
+ transition: -webkit-transform 0.3s ease-in-out;
22
+ transition: transform 0.3s ease-in-out;
23
+ transition: transform 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;
24
+ }
25
+ .icons-row-item:hover {
26
+ background-color: #1677ff !important;
27
+ color: #fff !important;
28
+ }
29
+ .icons-row-item:hover .abc {
30
+ -webkit-transform: scale(1.2);
31
+ -ms-transform: scale(1.2);
32
+ transform: scale(1.2);
33
+ }
@@ -68,6 +68,20 @@ export var DEFAULT_MAP = {
68
68
  height: 160
69
69
  }
70
70
  },
71
+ detailEmpty: {
72
+ title: /*#__PURE__*/_jsx("span", {
73
+ style: {
74
+ fontSize: 14,
75
+ fontWeight: 400
76
+ },
77
+ children: "\u6682\u65E0\u8BE6\u60C5"
78
+ }),
79
+ direction: 'column',
80
+ iconStyle: {
81
+ width: 125,
82
+ height: 100
83
+ }
84
+ },
71
85
  noFunction: {
72
86
  title: /*#__PURE__*/_jsx("span", {
73
87
  style: {
@@ -9,6 +9,11 @@ export default (function () {
9
9
  return /*#__PURE__*/_jsxs(Space, {
10
10
  wrap: true,
11
11
  size: [24, 24],
12
- children: [/*#__PURE__*/_jsx(McResult.PRESENTED_IMAGE_EMPTY, {}), /*#__PURE__*/_jsx(McResult.PRESENTED_IMAGE_NOFUNCTION, {})]
12
+ children: [/*#__PURE__*/_jsx(McResult.PRESENTED_IMAGE_EMPTY, {}), /*#__PURE__*/_jsx(McResult.PRESENTED_IMAGE_NOFUNCTION, {}), /*#__PURE__*/_jsx(McResult.PRESENTED_IMAGE_DETAIL_EMPTY, {
13
+ style: {
14
+ width: 90,
15
+ height: 70
16
+ }
17
+ })]
13
18
  });
14
19
  });
@@ -3,13 +3,13 @@ import _createClass from "@babel/runtime/helpers/esm/createClass";
3
3
  import _inherits from "@babel/runtime/helpers/esm/inherits";
4
4
  import _createSuper from "@babel/runtime/helpers/esm/createSuper";
5
5
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
6
- /* eslint-disable */
6
+ /* eslint-disable react/no-unescaped-entities */
7
7
  // Generated by gulp icon - do not modify manually
8
8
 
9
9
  import * as React from 'react';
10
10
  import { jsx as _jsx } from "react/jsx-runtime";
11
11
  import { jsxs as _jsxs } from "react/jsx-runtime";
12
- var iconList = ['403', '404', '500', 'building', 'code403', 'code404', 'code500', 'empty', 'noFunction', 'noUser'];
12
+ var iconList = ['403', '404', '500', 'building', 'code403', 'code404', 'code500', 'detailEmpty', 'empty', 'noFunction', 'noUser'];
13
13
  var Icon = /*#__PURE__*/function (_React$Component) {
14
14
  _inherits(Icon, _React$Component);
15
15
  var _super = _createSuper(Icon);
@@ -60,7 +60,6 @@ var Icon = /*#__PURE__*/function (_React$Component) {
60
60
  key: "getIcon",
61
61
  value: function getIcon(kind) {
62
62
  var _this$props2 = this.props,
63
- color = _this$props2.color,
64
63
  height = _this$props2.height,
65
64
  onClick = _this$props2.onClick,
66
65
  size = _this$props2.size,
@@ -614,6 +613,75 @@ var Icon = /*#__PURE__*/function (_React$Component) {
614
613
  fill: "#262626"
615
614
  })
616
615
  });
616
+ case 'detailEmpty':
617
+ return /*#__PURE__*/_jsxs("svg", {
618
+ xmlns: "http://www.w3.org/2000/svg",
619
+ fill: "none",
620
+ height: height || size,
621
+ width: width || size,
622
+ onClick: onClick,
623
+ style: style,
624
+ className: className,
625
+ viewBox: "0 0 125.7659912109375 99.5400390625",
626
+ children: [/*#__PURE__*/_jsx("path", {
627
+ d: "M18.27 48.195Q28.98 87.57 77.805 97.65q22.995-8.505 40.32-44.415-20.79 36.225-40.32 42.84Q30.24 83.475 20.79 49.77q21.105-5.985 40.95-32.445 16.38 18.585 33.705 23.94-13.86-5.04-33.705-25.83-23.625 28.98-43.47 32.76z",
628
+ fill: "#262626"
629
+ }), /*#__PURE__*/_jsx("path", {
630
+ d: "M31.185 55.44q.385-.024.83-.122-.415.07-.83.122zm20.16-13.23q-9.665 11.477-19.33 13.108 5.366-1.18 19.33-13.108z",
631
+ fill: "#262626"
632
+ }), /*#__PURE__*/_jsx("path", {
633
+ d: "M57.015 40.95Q48.51 57.645 35.28 58.905q11.655-3.15 21.735-17.955zM93.87 56.385q19.215-2.835 26.145-33.075h-2.205l2.205-2.835Q120.96 6.93 118.44 0q-3.15.945-5.355 9.765l1.575 4.725q-1.575-.63-2.205-1.575l-8.82 22.995q.63 4.725.63 5.04c0 .315 5.355-5.355 11.97-25.83q-6.3 24.255-22.365 41.265z",
634
+ fill: "#262626"
635
+ }), /*#__PURE__*/_jsx("path", {
636
+ d: "M93.24 55.125q.945 0 11.025-13.545l-2.52-2.205q-1.26 2.52-6.3 9.765l1.26.63q0 .945-3.465 5.355z",
637
+ fill: "#262626"
638
+ }), /*#__PURE__*/_jsx("path", {
639
+ d: "M70.245 76.86c1.89.315 3.465-1.89 4.095-3.15.945-1.89 1.26-2.52 2.835-3.15q3.15-1.575 5.04-3.78l11.025-9.45-.63-1.26q-9.135 9.45-13.545 11.34-4.41 1.89-5.67 5.355-.63 2.835-3.15 4.095z",
640
+ fill: "#325CF7"
641
+ }), /*#__PURE__*/_jsx("path", {
642
+ d: "M8.505 94.185L83.16 99.54l40.32-24.57-17.955-1.26q-13.23 18.27-27.72 22.365Q61.11 94.5 38.745 78.75L8.505 94.185z",
643
+ fill: "#262626"
644
+ }), /*#__PURE__*/_jsx("path", {
645
+ d: "M124.51 38.517q.052-.03.1-.065.048-.037.092-.08.043-.043.081-.092.039-.05.071-.104.033-.055.06-.116.027-.06.048-.125.02-.065.035-.134.015-.069.023-.141.008-.073.01-.148t-.003-.152q-.005-.077-.017-.155-.01-.078-.029-.157-.017-.078-.041-.157-.024-.078-.054-.156-.03-.077-.065-.152-.036-.076-.077-.149-.04-.073-.086-.143-.046-.07-.097-.135-.05-.066-.104-.128-.054-.061-.112-.117-.058-.057-.119-.107-.06-.05-.124-.095-.063-.045-.127-.082-.065-.038-.131-.07-.066-.03-.133-.054-.066-.023-.132-.04-.067-.016-.132-.024-.065-.009-.13-.01-.064 0-.126.006-.062.007-.12.022-.06.014-.116.036-.057.022-.109.051-.052.03-.1.066-.049.036-.092.08-.043.042-.082.092-.038.049-.07.104-.033.055-.06.115-.027.06-.048.126-.021.064-.036.133-.014.07-.022.142-.009.072-.01.147-.002.075.003.152t.016.155q.012.079.03.157.017.08.04.157.025.079.055.156t.065.153q.036.076.076.149.041.073.087.142.046.07.096.136t.105.127q.054.062.112.118.058.056.118.107.061.05.124.095.063.044.128.082.065.038.13.069.067.03.133.054.067.024.133.04t.132.025q.065.009.13.01.063 0 .125-.007.062-.006.122-.021.059-.014.115-.037.056-.022.109-.05zm-1.013-.855q.051-.03.095-.069.044-.04.078-.09.035-.049.058-.106.024-.057.037-.12.012-.062.013-.128 0-.066-.01-.132-.012-.066-.035-.13-.023-.065-.056-.125-.034-.06-.077-.113-.043-.053-.093-.098-.05-.044-.107-.078-.057-.034-.117-.056-.06-.022-.12-.031-.062-.01-.122-.006-.06.003-.117.02-.057.016-.108.045-.051.028-.095.068-.044.04-.078.09-.035.049-.059.106-.024.057-.036.12-.013.062-.013.128t.01.132q.012.067.035.13.023.065.056.125.034.06.077.113.043.053.093.098.05.044.107.078.057.034.116.056.06.022.122.032.06.01.121.006.06-.004.117-.02.057-.017.108-.045zM88.615 12.601q.076-.01.15-.032.073-.02.145-.051.072-.03.14-.07.07-.04.135-.089.066-.048.127-.105.061-.057.118-.122.057-.065.108-.137.051-.072.097-.15.046-.078.085-.163.04-.084.073-.173.032-.09.058-.183.027-.093.045-.19.02-.096.03-.194.013-.099.017-.199.004-.1 0-.2-.003-.1-.013-.2-.028-.255-.102-.495t-.19-.45q-.116-.21-.267-.377-.151-.167-.328-.28-.202-.13-.423-.181-.22-.051-.44-.018-.076.011-.15.032-.074.02-.146.051-.071.03-.14.07-.07.04-.135.089-.065.048-.126.105-.062.057-.118.122-.057.065-.108.137-.052.072-.097.15-.046.079-.086.163-.039.084-.072.173-.033.09-.059.183-.026.093-.045.19-.019.096-.03.194-.012.1-.016.2t0 .2q.002.1.013.2.027.254.102.494.074.24.19.45.116.21.267.377.151.167.328.28.202.13.423.182.22.05.44.017zm-.743-1.392q.074-.01.144-.037.07-.027.135-.069.065-.041.121-.096.057-.054.103-.12.045-.066.079-.14.033-.074.054-.154.02-.08.025-.162.006-.082-.003-.164-.02-.183-.106-.338-.087-.156-.224-.256-.112-.08-.243-.113-.13-.032-.263-.012-.074.01-.144.037-.07.027-.135.069-.065.041-.121.096-.057.054-.103.12-.045.065-.079.14-.033.074-.054.154-.02.08-.025.162-.006.082.003.164.02.183.106.338.087.156.224.255.112.081.243.114.13.032.263.012zM13.445 77.913q-.076-.012-.15-.033-.073-.02-.145-.051-.072-.03-.14-.07-.07-.04-.135-.089-.066-.048-.127-.105-.061-.057-.118-.122-.057-.065-.108-.136-.051-.072-.097-.15-.046-.08-.085-.164-.04-.084-.072-.173-.033-.09-.06-.182-.025-.094-.044-.19-.02-.096-.03-.195-.012-.099-.017-.199-.004-.1 0-.2.003-.1.014-.2.027-.255.101-.495.074-.24.19-.45.116-.21.267-.376.152-.167.328-.281.203-.13.423-.181.22-.051.44-.018.076.011.15.032t.146.052q.071.03.14.07.07.04.135.088.065.049.126.105.062.057.118.122.057.065.108.137.052.072.098.15.045.079.085.163.04.084.072.173.033.09.059.183.026.093.045.19.019.096.03.195.012.098.016.198t.001.2q-.003.1-.014.2-.027.255-.101.495-.074.24-.19.45-.117.21-.268.377-.15.167-.328.28-.202.13-.422.182-.22.05-.441.018zm.743-1.393q-.074-.01-.144-.037-.07-.027-.135-.069-.065-.041-.121-.096-.056-.054-.102-.12-.046-.066-.08-.14-.033-.074-.053-.154-.02-.08-.026-.162-.006-.082.003-.164.02-.183.106-.338.087-.156.225-.256.111-.08.242-.113.13-.032.264-.013.073.011.144.038.07.027.135.068.064.042.12.097.057.054.103.12.046.065.08.14.033.074.053.154.02.08.026.162.005.082-.003.164-.02.183-.107.338-.086.156-.224.255-.112.081-.242.114-.13.032-.264.012z",
646
+ fillRule: "evenodd",
647
+ fill: "#CDCDCD"
648
+ }), /*#__PURE__*/_jsx("ellipse", {
649
+ cx: "69.994",
650
+ cy: "7",
651
+ rx: ".948",
652
+ ry: "2.275",
653
+ fill: "#CDCDCD",
654
+ transform: "matrix(.43026 .9027 -.76747 .64109 42.965 -60.632)"
655
+ }), /*#__PURE__*/_jsx("ellipse", {
656
+ cx: "5.981",
657
+ cy: "12.852",
658
+ rx: ".799",
659
+ ry: "1.948",
660
+ fill: "#CDCDCD",
661
+ transform: "matrix(.9865 -.1638 .4038 .91484 -4.333 1.777)"
662
+ }), /*#__PURE__*/_jsx("ellipse", {
663
+ cx: "41.329",
664
+ cy: "20.283",
665
+ rx: ".835",
666
+ ry: "1.222",
667
+ fill: "#CDCDCD",
668
+ transform: "matrix(.43026 .9027 -.76747 .64109 37.7 -29.713)"
669
+ }), /*#__PURE__*/_jsx("ellipse", {
670
+ cx: "102.522",
671
+ cy: "62.34",
672
+ rx: ".835",
673
+ ry: "1.222",
674
+ fill: "#CDCDCD",
675
+ transform: "matrix(.43026 .9027 -.76747 .64109 104.842 -69.858)"
676
+ }), /*#__PURE__*/_jsx("ellipse", {
677
+ cx: "1.804",
678
+ cy: "60.523",
679
+ rx: ".556",
680
+ ry: ".813",
681
+ fill: "#CDCDCD",
682
+ transform: "matrix(.43026 .9027 -.76747 .64109 46.536 20.304)"
683
+ })]
684
+ });
617
685
  case 'empty':
618
686
  return /*#__PURE__*/_jsxs("svg", {
619
687
  xmlns: "http://www.w3.org/2000/svg",
@@ -1,6 +1,6 @@
1
- /// <reference types="react" />
1
+ import { CSSProperties } from 'react';
2
2
  import './index.less';
3
- export type McResultStatusType = 403 | 404 | 500 | '403' | '404' | '500' | 'noUser' | 'building' | 'empty' | 'noFunction';
3
+ export type McResultStatusType = 403 | 404 | 500 | '403' | '404' | '500' | 'noUser' | 'building' | 'empty' | 'noFunction' | 'detailEmpty';
4
4
  export interface McResultProps {
5
5
  status: McResultStatusType;
6
6
  title?: React.ReactNode;
@@ -14,14 +14,18 @@ export interface McResultProps {
14
14
  title?: React.CSSProperties;
15
15
  };
16
16
  }
17
+ type CommonComponentProps = {
18
+ style?: CSSProperties;
19
+ };
17
20
  export interface ResultType extends React.FC<McResultProps> {
18
- PRESENTED_IMAGE_404: React.FC;
19
- PRESENTED_IMAGE_403: React.FC;
20
- PRESENTED_IMAGE_500: React.FC;
21
- PRESENTED_IMAGE_NOUSER: React.FC;
22
- PRESENTED_IMAGE_BUILDING: React.FC;
23
- PRESENTED_IMAGE_EMPTY: React.FC;
24
- PRESENTED_IMAGE_NOFUNCTION: React.FC;
21
+ PRESENTED_IMAGE_404: React.FC<CommonComponentProps>;
22
+ PRESENTED_IMAGE_403: React.FC<CommonComponentProps>;
23
+ PRESENTED_IMAGE_500: React.FC<CommonComponentProps>;
24
+ PRESENTED_IMAGE_NOUSER: React.FC<CommonComponentProps>;
25
+ PRESENTED_IMAGE_BUILDING: React.FC<CommonComponentProps>;
26
+ PRESENTED_IMAGE_EMPTY: React.FC<CommonComponentProps>;
27
+ PRESENTED_IMAGE_NOFUNCTION: React.FC<CommonComponentProps>;
28
+ PRESENTED_IMAGE_DETAIL_EMPTY: React.FC<CommonComponentProps>;
25
29
  }
26
30
  declare const McResult: ResultType;
27
31
  export default McResult;
@@ -51,53 +51,69 @@ var McResult = function McResult(_ref) {
51
51
  })]
52
52
  });
53
53
  };
54
- McResult.PRESENTED_IMAGE_403 = function () {
55
- var _DEFAULT_MAP$;
54
+ var CommonComponent = function CommonComponent(_ref2) {
55
+ var _DEFAULT_MAP$type;
56
+ var type = _ref2.type,
57
+ style = _ref2.style;
56
58
  return /*#__PURE__*/_jsx(Icon, {
57
- kind: "403",
58
- style: _objectSpread({}, (_DEFAULT_MAP$ = DEFAULT_MAP['403']) === null || _DEFAULT_MAP$ === void 0 ? void 0 : _DEFAULT_MAP$.iconStyle)
59
+ kind: type,
60
+ style: _objectSpread(_objectSpread({}, (_DEFAULT_MAP$type = DEFAULT_MAP[type]) === null || _DEFAULT_MAP$type === void 0 ? void 0 : _DEFAULT_MAP$type.iconStyle), style)
59
61
  });
60
62
  };
61
- McResult.PRESENTED_IMAGE_404 = function () {
62
- var _DEFAULT_MAP$2;
63
- return /*#__PURE__*/_jsx(Icon, {
64
- kind: "404",
65
- style: _objectSpread({}, (_DEFAULT_MAP$2 = DEFAULT_MAP['404']) === null || _DEFAULT_MAP$2 === void 0 ? void 0 : _DEFAULT_MAP$2.iconStyle)
63
+ McResult.PRESENTED_IMAGE_403 = function (_ref3) {
64
+ var style = _ref3.style;
65
+ return /*#__PURE__*/_jsx(CommonComponent, {
66
+ type: "403",
67
+ style: style
66
68
  });
67
69
  };
68
- McResult.PRESENTED_IMAGE_500 = function () {
69
- var _DEFAULT_MAP$3;
70
- return /*#__PURE__*/_jsx(Icon, {
71
- kind: "500",
72
- style: _objectSpread({}, (_DEFAULT_MAP$3 = DEFAULT_MAP['500']) === null || _DEFAULT_MAP$3 === void 0 ? void 0 : _DEFAULT_MAP$3.iconStyle)
70
+ McResult.PRESENTED_IMAGE_404 = function (_ref4) {
71
+ var style = _ref4.style;
72
+ return /*#__PURE__*/_jsx(CommonComponent, {
73
+ type: "404",
74
+ style: style
73
75
  });
74
76
  };
75
- McResult.PRESENTED_IMAGE_NOUSER = function () {
76
- var _DEFAULT_MAP$noUser;
77
- return /*#__PURE__*/_jsx(Icon, {
78
- kind: "noUser",
79
- style: _objectSpread({}, (_DEFAULT_MAP$noUser = DEFAULT_MAP['noUser']) === null || _DEFAULT_MAP$noUser === void 0 ? void 0 : _DEFAULT_MAP$noUser.iconStyle)
77
+ McResult.PRESENTED_IMAGE_500 = function (_ref5) {
78
+ var style = _ref5.style;
79
+ return /*#__PURE__*/_jsx(CommonComponent, {
80
+ type: "500",
81
+ style: style
80
82
  });
81
83
  };
82
- McResult.PRESENTED_IMAGE_BUILDING = function () {
83
- var _DEFAULT_MAP$building;
84
- return /*#__PURE__*/_jsx(Icon, {
85
- kind: "building",
86
- style: _objectSpread({}, (_DEFAULT_MAP$building = DEFAULT_MAP['building']) === null || _DEFAULT_MAP$building === void 0 ? void 0 : _DEFAULT_MAP$building.iconStyle)
84
+ McResult.PRESENTED_IMAGE_BUILDING = function (_ref6) {
85
+ var style = _ref6.style;
86
+ return /*#__PURE__*/_jsx(CommonComponent, {
87
+ type: "building",
88
+ style: style
87
89
  });
88
90
  };
89
- McResult.PRESENTED_IMAGE_EMPTY = function () {
90
- var _DEFAULT_MAP$empty;
91
- return /*#__PURE__*/_jsx(Icon, {
92
- kind: "empty",
93
- style: _objectSpread({}, (_DEFAULT_MAP$empty = DEFAULT_MAP['empty']) === null || _DEFAULT_MAP$empty === void 0 ? void 0 : _DEFAULT_MAP$empty.iconStyle)
91
+ McResult.PRESENTED_IMAGE_NOUSER = function (_ref7) {
92
+ var style = _ref7.style;
93
+ return /*#__PURE__*/_jsx(CommonComponent, {
94
+ type: "noUser",
95
+ style: style
94
96
  });
95
97
  };
96
- McResult.PRESENTED_IMAGE_NOFUNCTION = function () {
97
- var _DEFAULT_MAP$noFuncti;
98
- return /*#__PURE__*/_jsx(Icon, {
99
- kind: "noFunction",
100
- style: _objectSpread({}, (_DEFAULT_MAP$noFuncti = DEFAULT_MAP['noFunction']) === null || _DEFAULT_MAP$noFuncti === void 0 ? void 0 : _DEFAULT_MAP$noFuncti.iconStyle)
98
+ McResult.PRESENTED_IMAGE_EMPTY = function (_ref8) {
99
+ var style = _ref8.style;
100
+ return /*#__PURE__*/_jsx(CommonComponent, {
101
+ type: "empty",
102
+ style: style
103
+ });
104
+ };
105
+ McResult.PRESENTED_IMAGE_NOFUNCTION = function (_ref9) {
106
+ var style = _ref9.style;
107
+ return /*#__PURE__*/_jsx(CommonComponent, {
108
+ type: "noFunction",
109
+ style: style
110
+ });
111
+ };
112
+ McResult.PRESENTED_IMAGE_DETAIL_EMPTY = function (_ref10) {
113
+ var style = _ref10.style;
114
+ return /*#__PURE__*/_jsx(CommonComponent, {
115
+ type: "detailEmpty",
116
+ style: style
101
117
  });
102
118
  };
103
119
  export default McResult;
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="125.7659912109375" height="99.5400390625" viewBox="0 0 125.7659912109375 99.5400390625"><g><g><path d="M18.269922256469727,48.1950004196167Q28.979822256469724,87.5700004196167,77.80492225646972,97.6500004196167Q100.80002225646973,89.1450004196167,118.12492225646973,53.235000419616696Q97.33502225646973,89.4600004196167,77.80492225646972,96.0750004196167Q30.239922256469725,83.4750004196167,20.789922256469726,49.7700004196167Q41.89492225646973,43.7850004196167,61.739922256469725,17.3250004196167Q78.11992225646972,35.9100004196167,95.44492225646972,41.2650004196167Q81.58472225646972,36.2250004196167,61.739922256469725,15.4350004196167Q38.11482225646972,44.4150004196167,18.269922256469727,48.1950004196167Z" fill="#262626" fill-opacity="1"/></g><g><path d="M31.184999465942383,55.43999908447266Q31.570465465942384,55.415899084472656,32.01489546594238,55.31809908447266Q31.599945465942383,55.38809908447266,31.184999465942383,55.43999908447266ZM51.34499946594238,42.209999084472656Q41.679899465942384,53.68719908447265,32.01489546594238,55.31809908447266Q37.38139946594238,54.137199084472655,51.34499946594238,42.209999084472656Z" fill="#262626" fill-opacity="1"/></g><g><path d="M57.01500259399414,40.94999694824219Q48.510002593994145,57.64499694824219,35.28000259399414,58.904996948242186Q46.93500259399414,55.75499694824219,57.01500259399414,40.94999694824219Z" fill="#262626" fill-opacity="1"/></g><g><path d="M93.8699951171875,56.385Q113.0849951171875,53.55,120.0149951171875,23.31L117.8099951171875,23.31L120.0149951171875,20.475Q120.9599951171875,6.93,118.4399951171875,0Q115.2899951171875,0.945,113.0849951171875,9.765L114.65999511718749,14.49Q113.0849951171875,13.86,112.45499511718751,12.915L103.6349951171875,35.91Q104.2649951171875,40.635,104.2649951171875,40.95C104.2649951171875,41.265,109.6199951171875,35.595,116.2349951171875,15.12Q109.9349951171875,39.375,93.8699951171875,56.385Z" fill="#262626" fill-opacity="1"/></g><g><path d="M93.23999786376953,55.125Q94.18499786376952,55.125,104.26499786376954,41.58L101.74499786376953,39.375Q100.48499786376954,41.895,95.44499786376953,49.14L96.70499786376953,49.769999999999996Q96.70499786376953,50.715,93.23999786376953,55.125Z" fill="#262626" fill-opacity="1"/></g><g><path d="M70.2449951171875,76.85999969482421C72.1349951171875,77.17499969482422,73.7099951171875,74.96999969482422,74.3399951171875,73.70999969482422C75.2849951171875,71.81999969482422,75.5999951171875,71.18999969482422,77.1749951171875,70.55999969482421Q80.3249951171875,68.98499969482421,82.2149951171875,66.77999969482423L93.2399951171875,57.32999969482422L92.6099951171875,56.06999969482422Q83.4749951171875,65.51999969482422,79.0649951171875,67.40999969482422Q74.6549951171875,69.29999969482422,73.3949951171875,72.76499969482421Q72.7649951171875,75.59999969482422,70.2449951171875,76.85999969482421Z" fill="#325CF7" fill-opacity="1"/></g><g><path d="M8.505000114440918,94.18499908447265L83.16000011444092,99.53999908447265L123.48000011444091,74.96999908447266L105.52500011444091,73.70999908447266Q92.29500011444092,91.97999908447265,77.80500011444092,96.07499908447265Q61.110000114440915,94.49999908447265,38.74500011444091,78.74999908447266L8.505000114440918,94.18499908447265Z" fill="#262626" fill-opacity="1"/></g><g transform="matrix(0.6770446300506592,-0.735942006111145,0.735942006111145,0.6770446300506592,12.152571498003454,101.38238319772063)"><path d="M122.33588333789062,40.12569130371094Q122.39292933789062,40.14439130371094,122.45225533789062,40.15522130371094Q122.51158233789063,40.16604130371094,122.57261833789063,40.16888130371094Q122.63365633789063,40.171711303710936,122.69581633789062,40.16653130371094Q122.75796633789062,40.16135130371094,122.82064633789062,40.14821130371094Q122.88332633789062,40.13506130371094,122.94593633789063,40.11408130371094Q123.00853633789062,40.09310130371094,123.07044633789063,40.064481303710934Q123.13236633789063,40.03586130371094,123.19300633789062,39.999881303710936Q123.25363633789063,39.96390130371094,123.31241633789062,39.92091130371094Q123.37118633789062,39.87791130371094,123.42752633789063,39.828321303710936Q123.48387633789062,39.778731303710934,123.53724633789062,39.72301130371094Q123.59061633789062,39.66729130371094,123.64049633789062,39.60599130371094Q123.69038633789063,39.544691303710934,123.73630633789062,39.478391303710936Q123.78221633789063,39.41209130371094,123.82372633789062,39.34144130371094Q123.86523633789062,39.27078130371094,123.90193633789062,39.19645130371094Q123.93863633789063,39.12212130371094,123.97017633789062,39.044831303710936Q124.00171633789063,38.967531303710935,124.02778633789063,38.88803130371094Q124.05385633789062,38.80852130371094,124.07421633789062,38.727561303710935Q124.09456633789063,38.64660130371094,124.10901633789062,38.56497130371094Q124.12345633789063,38.48334130371094,124.13184633789062,38.40182130371094Q124.14023633789063,38.32031130371094,124.14249633789062,38.239691303710934Q124.14474633789062,38.159081303710934,124.14085633789063,38.08014130371094Q124.13695633789062,38.001201303710936,124.12693633789063,37.92470130371094Q124.11692633789062,37.84820130371094,124.10088633789063,37.774869303710936Q124.08485633789063,37.70154130371094,124.06295633789063,37.63209230371094Q124.04104633789062,37.56264430371094,124.01349633789063,37.49774430371094Q123.98593633789062,37.43284430371094,123.95298633789062,37.37311830371094Q123.92004633789062,37.31339130371094,123.88202633789062,37.25941430371094Q123.84400633789062,37.20543630371094,123.80127633789063,37.157727303710935Q123.75855633789062,37.11001830371094,123.71153633789062,37.069037303710935Q123.66450633789063,37.02805730371094,123.61364633789063,36.99419830371094Q123.56278633789063,36.960340303710936,123.50856633789063,36.93393110371094Q123.45435633789063,36.907521803710935,123.39730633789063,36.88881550371094Q123.34026633789063,36.87010930371094,123.28093633789062,36.85928630371094Q123.22160633789062,36.84846340371094,123.16057633789063,36.84562798671094Q123.09953633789063,36.84279256371094,123.03737633789062,36.84797197371094Q122.97521633789063,36.85315138371094,122.91253633789063,36.86629570371094Q122.84985633789063,36.87944010371094,122.78725633789062,36.90042280371094Q122.72465633789062,36.921405503710936,122.66274633789062,36.95002430371094Q122.60082633789062,36.97864330371094,122.54018833789063,37.014623303710934Q122.47955133789063,37.050603303710936,122.42077833789062,37.09359630371094Q122.36200433789062,37.13659030371094,122.30566133789063,37.18618430371094Q122.24931733789063,37.23577830371094,122.19594633789063,37.29149530371094Q122.14257533789062,37.347211303710935,122.09269033789063,37.40851330371094Q122.04280533789063,37.469816303710935,121.99688733789063,37.53611430371094Q121.95096933789063,37.602412303710935,121.90946033789062,37.67306630371094Q121.86795133789063,37.743721303710934,121.83125133789062,37.81805330371094Q121.79455133789062,37.892381303710934,121.76301233789063,37.969681303710935Q121.73147433789063,38.04697130371094,121.70540233789062,38.12648130371094Q121.67933033789062,38.20599130371094,121.65897503789063,38.28694130371094Q121.63861983789063,38.36790130371094,121.62417773789062,38.449531303710934Q121.60973553789063,38.531171303710934,121.60134553789062,38.612681303710936Q121.59295545789062,38.69420130371094,121.59069833589062,38.77481130371094Q121.58844121789062,38.85543130371094,121.59233875789063,38.934361303710936Q121.59623629789063,39.01330130371094,121.60625093789062,39.089801303710935Q121.61626563789062,39.16631130371094,121.63230093789062,39.23963130371094Q121.64833633789063,39.312961303710935,121.67023793789062,39.38241130371094Q121.69213933789062,39.451861303710935,121.71969633789062,39.516761303710936Q121.74725333789063,39.58166130371094,121.78020033789062,39.64139130371094Q121.81314733789063,39.70111130371094,121.85116633789063,39.75509130371094Q121.88918633789062,39.80907130371094,121.93191233789062,39.85678130371094Q121.97463833789062,39.90448130371094,122.02165933789063,39.94547130371094Q122.06868033789063,39.986451303710936,122.11954333789062,40.02030130371094Q122.17040633789063,40.054161303710934,122.22462233789062,40.08057130371094Q122.27883733789062,40.10698130371094,122.33588333789062,40.12569130371094ZM122.27990233789062,38.80117130371094Q122.33567633789062,38.81946130371094,122.39455233789063,38.824671303710936Q122.45342833789063,38.82987130371094,122.51314433789062,38.821801303710934Q122.57286033789063,38.81373130371094,122.63112633789062,38.792681303710935Q122.68938633789062,38.771641303710936,122.74394633789062,38.738441303710935Q122.79851633789062,38.70523130371094,122.84729633789063,38.661141303710934Q122.89606633789063,38.61705130371094,122.93718633789062,38.56376130371094Q122.97829633789063,38.51048130371094,123.01015633789062,38.450051303710936Q123.04202633789062,38.389631303710935,123.06341633789063,38.324381303710936Q123.08481633789063,38.25913130371094,123.09491633789062,38.19157130371094Q123.10502633789062,38.12400130371094,123.10344633789063,38.05672130371094Q123.10187633789063,37.98944130371094,123.08867633789062,37.92503130371094Q123.07547633789062,37.86061130371094,123.05117633789062,37.80154530371094Q123.02686633789062,37.742474303710935,122.99237633789062,37.691017303710936Q122.95788633789063,37.63956030371094,122.91454633789063,37.59769430371094Q122.87120633789063,37.555827303710934,122.82068633789062,37.52516030371094Q122.77015633789063,37.49449330371094,122.71437633789063,37.47620430371094Q122.65860633789063,37.45791530371094,122.59972633789063,37.45270730371094Q122.54085433789062,37.44749830371094,122.48113833789063,37.45557130371094Q122.42142233789062,37.463644303710936,122.36316133789063,37.484687303710935Q122.30490033789063,37.50573130371094,122.25033333789062,37.53893630371094Q122.19576633789063,37.57214230371094,122.14698933789063,37.61623430371094Q122.09821333789063,37.660325303710934,122.05710233789063,37.713608303710934Q122.01599033789063,37.766891303710935,121.98412533789063,37.82731830371094Q121.95225933789062,37.88774130371094,121.93086333789063,37.95299130371094Q121.90946633789062,38.01824130371094,121.89936233789062,38.08581130371094Q121.88925833789062,38.15337130371094,121.89083433789062,38.22065130371094Q121.89241033789062,38.287931303710934,121.90560633789063,38.352341303710936Q121.91880233789063,38.416761303710935,121.94311133789063,38.47583130371094Q121.96741933789062,38.53490130371094,122.00190633789063,38.586351303710934Q122.03639333789063,38.63781130371094,122.07973333789063,38.679681303710936Q122.12307333789063,38.72155130371094,122.17360133789063,38.752211303710936Q122.22412933789063,38.78288130371094,122.27990233789062,38.80117130371094Z" fill-rule="evenodd" fill="#CDCDCD" fill-opacity="1"/></g><g transform="matrix(0.9025501608848572,-0.43058475852012634,0.43058475852012634,0.9025501608848572,4.303104560258163,37.9872734043509)"><path d="M87.026918453125,13.391583244934083Q87.099699453125,13.413853244934081,87.175389453125,13.426733244934082Q87.251089453125,13.439603244934082,87.328959453125,13.442983244934082Q87.406829453125,13.446353244934082,87.486139453125,13.440193244934083Q87.565439453125,13.434033244934081,87.645409453125,13.418383244934082Q87.725389453125,13.402743244934083,87.805259453125,13.377773244934081Q87.885119453125,13.352803244934082,87.964119453125,13.318753244934083Q88.043119453125,13.284693244934083,88.120479453125,13.241873244934082Q88.197849453125,13.199063244934083,88.272829453125,13.147893244934082Q88.347819453125,13.096733244934082,88.419709453125,13.037713244934082Q88.491589453125,12.978703244934081,88.559689453125,12.912393244934082Q88.627779453125,12.846093244934082,88.691429453125,12.773143244934083Q88.755069453125,12.700193244934082,88.813659453125,12.621293244934082Q88.872239453125,12.542403244934082,88.925199453125,12.458323244934082Q88.978159453125,12.374243244934082,89.024989453125,12.285783244934082Q89.071809453125,12.197333244934082,89.112049453125,12.105353244934083Q89.152289453125,12.013373244934082,89.185549453125,11.918753244934083Q89.270549453125,11.676993244934081,89.306939453125,11.428673244934082Q89.343339453125,11.180353244934082,89.328869453125,10.940883244934081Q89.314409453125,10.701413244934082,89.249969453125,10.485651244934083Q89.185539453125,10.269892244934082,89.075149453125,10.091232244934082Q88.948569453125,9.886385244934083,88.771469453125,9.745640244934082Q88.594379453125,9.604895244934083,88.381149453125,9.539677544934081Q88.308369453125,9.517416944934082,88.232669453125,9.504537544934083Q88.156979453125,9.491658094934081,88.079109453125,9.488283914934081Q88.001229453125,9.484909734934082,87.921929453125,9.491073274934083Q87.842619453125,9.497236844934083,87.762649453125,9.512878744934081Q87.682679453125,9.528520644934082,87.602809453125,9.553490244934082Q87.522939453125,9.578459944934082,87.443949453125,9.612517244934082Q87.364949453125,9.646573244934082,87.287579453125,9.689390244934081Q87.210219453125,9.732206244934082,87.135229453125,9.783369244934082Q87.060246453125,9.834532244934081,86.988359453125,9.893549244934082Q86.916473453125,9.952566244934083,86.848378453125,10.018870244934082Q86.780284453125,10.085173244934083,86.716638453125,10.158123244934082Q86.652992453125,10.231073244934082,86.594407453125,10.309969244934083Q86.535822453125,10.388864244934082,86.482862453125,10.472944244934082Q86.429903453125,10.557023244934083,86.383078453125,10.645483244934082Q86.336254453125,10.733933244934082,86.296016453125,10.825913244934082Q86.255777453125,10.917893244934081,86.222513453125,11.012503244934083Q86.137515653125,11.254273244934081,86.101121253125,11.502593244934083Q86.064726753125,11.750913244934083,86.079193863125,11.990383244934081Q86.093660953125,12.229853244934082,86.158091853125,12.445613244934082Q86.222522453125,12.661373244934083,86.332919453125,12.840033244934082Q86.459497453125,13.044883244934082,86.636591453125,13.185623244934082Q86.813685453125,13.326373244934082,87.026918453125,13.391583244934083ZM86.955574453125,11.815153244934082Q87.026733453125,11.836923244934082,87.101849453125,11.843123244934082Q87.176969453125,11.849313244934082,87.253159453125,11.839713244934082Q87.329349453125,11.830103244934083,87.403679453125,11.805063244934082Q87.478009453125,11.780023244934082,87.547629453125,11.740503244934082Q87.617249453125,11.700993244934082,87.679489453125,11.648523244934083Q87.741719453125,11.596053244934081,87.794169453125,11.532643244934082Q87.846619453125,11.469233244934083,87.887279453125,11.397323244934082Q87.927939453125,11.325423244934083,87.955229453125,11.247773244934082Q88.016149453125,11.074523244934081,88.004869453125,10.896863244934082Q87.993599453125,10.719213244934082,87.912219453125,10.569903244934082Q87.846219453125,10.448819244934082,87.742449453125,10.363319244934083Q87.638669453125,10.277819244934083,87.509909453125,10.238436244934082Q87.438749453125,10.216672244934083,87.363629453125,10.210474244934082Q87.288509453125,10.204276244934082,87.212319453125,10.213883244934083Q87.136129453125,10.223489244934083,87.061800453125,10.248531244934082Q86.987467453125,10.273573244934083,86.917847453125,10.313088244934082Q86.848227453125,10.352603244934082,86.785995453125,10.405073244934082Q86.723763453125,10.457542244934082,86.671311453125,10.520953244934082Q86.618859453125,10.584353244934082,86.578202453125,10.656263244934081Q86.537546453125,10.728173244934082,86.510248453125,10.805823244934082Q86.449336453125,10.979073244934082,86.460610453125,11.156723244934081Q86.471883453125,11.334373244934081,86.553265453125,11.483683244934081Q86.619263453125,11.604773244934082,86.723036453125,11.690273244934081Q86.826808453125,11.775773244934083,86.955574453125,11.815153244934082Z" fill-rule="evenodd" fill="#CDCDCD" fill-opacity="1"/></g><g transform="matrix(-0.9025501608848572,-0.43058475852012634,-0.43058475852012634,0.9025501608848572,62.61860881938446,14.171829515168042)"><path d="M16.936209249267577,78.70272807373047Q17.00898924926758,78.72499807373048,17.084679249267577,78.73787807373047Q17.160379249267578,78.75074807373046,17.23824924926758,78.75412807373047Q17.31611924926758,78.75749807373047,17.39542924926758,78.75133807373047Q17.47472924926758,78.74517807373047,17.55469924926758,78.72952807373046Q17.634679249267577,78.71388807373047,17.714549249267577,78.68891807373046Q17.794409249267577,78.66394807373047,17.873409249267578,78.62989807373047Q17.95240924926758,78.59583807373046,18.029769249267577,78.55301807373047Q18.10713924926758,78.51020807373047,18.18211924926758,78.45903807373047Q18.25710924926758,78.40787807373047,18.32899924926758,78.34885807373047Q18.40087924926758,78.28984807373047,18.468979249267576,78.22353807373047Q18.537069249267578,78.15723807373047,18.600719249267577,78.08428807373046Q18.664359249267577,78.01133807373047,18.72294924926758,77.93243807373047Q18.781529249267578,77.85354807373047,18.834489249267577,77.76946807373047Q18.88744924926758,77.68538807373046,18.93427924926758,77.59692807373047Q18.98109924926758,77.50847807373047,19.021339249267577,77.41649807373047Q19.061579249267577,77.32451807373047,19.09483924926758,77.22989807373047Q19.179839249267577,76.98813807373047,19.216239249267577,76.73981807373048Q19.252629249267578,76.49149807373047,19.23815924926758,76.25202807373047Q19.22369924926758,76.01255807373047,19.159259249267578,75.79679607373046Q19.094829249267576,75.58103707373047,18.984439249267577,75.40237707373046Q18.857859249267577,75.19753007373046,18.680769249267577,75.05678507373047Q18.503669249267578,74.91604007373047,18.29043924926758,74.85082237373047Q18.217659249267577,74.82856177373047,18.14195924926758,74.81568237373047Q18.066269249267577,74.80280292373047,17.988399249267577,74.79942874373047Q17.91051924926758,74.79605456373046,17.831219249267576,74.80221810373047Q17.75191924926758,74.80838167373047,17.671939249267577,74.82402357373047Q17.591969249267578,74.83966547373046,17.512099249267578,74.86463507373047Q17.43222924926758,74.88960477373047,17.353239249267578,74.92366207373047Q17.274239249267577,74.95771807373048,17.19686924926758,75.00053507373048Q17.11950924926758,75.04335107373046,17.044519249267577,75.09451407373047Q16.969536249267577,75.14567707373047,16.897650249267578,75.20469407373047Q16.825763249267577,75.26371107373046,16.75766924926758,75.33001507373046Q16.689575249267577,75.39631807373047,16.62592924926758,75.46926807373048Q16.56228324926758,75.54221807373047,16.50369824926758,75.62111407373047Q16.44511324926758,75.70000907373047,16.39215324926758,75.78408907373047Q16.339193249267577,75.86816807373047,16.29236924926758,75.95662807373047Q16.245544249267578,76.04507807373047,16.20530624926758,76.13705807373047Q16.165068249267577,76.22903807373046,16.131803249267577,76.32364807373047Q16.046806049267577,76.56541807373047,16.010411549267577,76.81373807373046Q15.974017149267578,77.06205807373047,15.988484189267577,77.30152807373047Q16.00295124926758,77.54099807373046,16.06738214926758,77.75675807373047Q16.131813249267577,77.97251807373047,16.242209249267578,78.15117807373046Q16.368788249267578,78.35602807373047,16.545881249267577,78.49676807373046Q16.722975249267577,78.63751807373046,16.936209249267577,78.70272807373047ZM16.86477324926758,77.12605807373046Q16.935932249267577,77.14781807373046,17.01104924926758,77.15401807373047Q17.086169249267577,77.16021807373046,17.162359249267578,77.15060807373047Q17.238549249267578,77.14100807373048,17.312879249267578,77.11595807373047Q17.387209249267578,77.09091807373046,17.456829249267578,77.05140807373047Q17.52644924926758,77.01188807373047,17.588689249267578,76.95941807373048Q17.650919249267577,76.90694807373046,17.703369249267578,76.84354807373047Q17.755819249267578,76.78013807373047,17.796479249267577,76.70822807373047Q17.837129249267576,76.63631807373046,17.864429249267577,76.55867807373046Q17.925339249267576,76.38541807373046,17.914069249267577,76.20776807373046Q17.902799249267577,76.03011807373046,17.821419249267578,75.88080807373046Q17.75541924926758,75.75972007373046,17.651649249267578,75.67422007373047Q17.547869249267578,75.58872007373047,17.419109249267578,75.54933707373047Q17.34794924926758,75.52757307373047,17.272829249267577,75.52137507373047Q17.19770924926758,75.51517707373047,17.12151924926758,75.52478407373047Q17.045329249267578,75.53439007373046,16.970999249267578,75.55943207373046Q16.89666624926758,75.58447407373046,16.82704624926758,75.62398907373047Q16.757426249267578,75.66350407373046,16.69519424926758,75.71597307373047Q16.632962249267578,75.76844307373047,16.58051024926758,75.83184807373047Q16.528058249267577,75.89525807373047,16.487401249267577,75.96716807373046Q16.44674524926758,76.03907807373047,16.41944624926758,76.11671807373047Q16.35853524926758,76.28997807373047,16.36980924926758,76.46762807373047Q16.38108224926758,76.64527807373047,16.46246424926758,76.79458807373047Q16.528463249267578,76.91567807373048,16.632235249267577,77.00117807373047Q16.73600624926758,77.08667807373047,16.86477324926758,77.12605807373046Z" fill-rule="evenodd" fill="#CDCDCD" fill-opacity="1"/></g><g><g transform="matrix(0.4302557408809662,0.9027069807052612,-0.7674688100814819,0.641086220741272,42.964802998532434,-60.63236071004434)"><ellipse cx="69.9942689538002" cy="7.000109434127808" rx="0.9483552575111389" ry="2.2751095294952393" fill="#CDCDCD" fill-opacity="1"/></g><g transform="matrix(0.9864944219589233,-0.16379472613334656,0.40380552411079407,0.9148447513580322,-4.333281784558125,1.7772916331438182)"><ellipse cx="5.9805861711502075" cy="12.851993918418884" rx="0.7989569902420044" ry="1.9475797414779663" fill="#CDCDCD" fill-opacity="1"/></g><g transform="matrix(0.4302557408809662,0.9027069807052612,-0.7674688100814819,0.641086220741272,37.699515242480004,-29.713291586286857)"><ellipse cx="41.3286247253418" cy="20.28262484073639" rx="0.8345146179199219" ry="1.2222691774368286" fill="#CDCDCD" fill-opacity="1"/></g><g transform="matrix(0.4302557408809662,0.9027069807052612,-0.7674688100814819,0.641086220741272,104.84209049627935,-69.85822458934484)"><ellipse cx="102.52229690551758" cy="62.34014093875885" rx="0.8345146179199219" ry="1.2222691774368286" fill="#CDCDCD" fill-opacity="1"/></g><g transform="matrix(0.4302557408809662,0.9027069807052612,-0.7674688100814819,0.641086220741272,46.53633997322796,20.30407711775709)"><ellipse cx="1.803819179534912" cy="60.52272170782089" rx="0.5558507442474365" ry="0.813041627407074" fill="#CDCDCD" fill-opacity="1"/></g></g></g></svg>
@@ -2,7 +2,7 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLit
2
2
  var _templateObject;
3
3
  // @ts-nocheck
4
4
  import { createGlobalStyle } from 'antd-style';
5
- var globalStyle = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\n// <====================== Layout ======================>\n\n", "\n\n// <====================== Font ======================>\n\n@font-face {\n font-family: 'SourceHanSansCN';\n src: url(", ");\n}\n\nbody * {\n font-family: 'SourceHanSansCN';\n box-sizing: border-box;\n}\n\n// <====================== Button ======================>\n\n// primary\n.ant-btn-primary[disabled]{\n background: ", ";\n color: ", ";\n opacity: 0.3;\n}\n\n// default\n.ant-btn-default[disabled] {\n border-color: ", " !important;\n}\n\n// danger\n.ant-btn-default.ant-btn-dangerous,.ant-btn-default[data-danger],\n.ant-btn-default.ant-btn-dangerous[disabled],.ant-btn-default[data-danger][disabled] {\n color: ", ";\n background: ", ";\n border-color:", ";\n\n &:hover {\n color: ", " !important;\n background: ", " !important;\n border-color:", " !important;\n }\n\n &:active {\n color: ", " !important;\n }\n}\n.ant-btn-default.ant-btn-dangerous[disabled],.ant-btn-default[data-danger][disabled] {\n opacity: 0.4;\n}\n\n// secondary\n.ant-btn-default[data-secondary],\n// modal\u3001drawer\u3001popconfirm footer\n.ant-modal-footer .ant-btn-default:not([data-default]):not([data-danger]):not(.ant-btn-dangerous),\n.ant-drawer-footer .ant-btn-default:not([data-default]):not([data-danger]):not(.ant-btn-dangerous),\n.ant-popconfirm-buttons .ant-btn-default:not([data-default]):not([data-danger]):not(.ant-btn-dangerous){\n background: ", ";\n border-color: ", ";\n\n &:hover {\n background: ", " !important;\n border-color: ", " !important;\n }\n\n &:active {\n border-color: ", " !important;\n color: ", " !important;\n }\n}\n\n.ant-btn-default[data-secondary][disabled] {\n color: ", " ;\n background: ", ";\n border-color: ", " !important;\n\n &:hover {\n color: ", ";\n background: ", " !important;\n border-color: ", " !important;\n }\n\n &:active {\n color: ", " !important;\n border-color: ", " !important;\n }\n}\n\n// add\n.ant-btn-default[data-add] {\n background: ", " !important;\n color: ", " !important;\n border-color: ", " !important;\n\n &:hover {\n color: ", " !important;\n background: ", " !important;\n border-color: ", " !important;\n }\n\n &:active{\n color: ", " !important;\n }\n}\n\n.ant-btn-default[data-add][disabled] {\n opacity: 0.4;\n color: ", ";\n\n &:hover {\n background: ", " !important;\n color: ", " !important;\n }\n\n &:active{\n background: ", " !important;\n color: ", " !important;\n }\n}\n\n//dashed\n.ant-btn-dashed {\n background: ", " !important;\n border-color: ", " !important;\n}\n\n.ant-btn-dashed:not([disabled]) {\n &:hover {\n background: ", " !important;\n color: ", " !important;\n border-color: ", " !important;\n }\n\n &:active{\n color: ", " !important;\n border-color: ", " !important;\n }\n}\n\n// dashed danger\n.ant-btn-dashed.ant-btn-dangerous,\n.ant-btn-dashed.ant-btn-dangerous:disabled {\n color: ", " !important;\n border-color: ", " !important;\n\n &:hover {\n color: ", " !important;\n border-color: ", " !important;\n }\n\n &:active {\n color: ", " !important;\n }\n}\n.ant-btn-dashed.ant-btn-dangerous:disabled {\n opacity: 0.4;\n\n &:hover {\n color: ", " !important;\n border-color: ", " !important;\n }\n\n &:active {\n color: ", " !important;\n border-color: ", " !important;\n }\n}\n\n// ghost\n.ant-btn-background-ghost:not([disabled]) {\n &:hover {\n color: ", " !important;\n border-color: ", " !important;\n }\n\n &:active {\n color: ", " !important;\n border-color: ", " !important;\n }\n}\n\n// link\n.ant-btn-link:not([disabled]) {\n &:hover {\n color: ", " !important;\n }\n\n &:active {\n color: ", " !important;\n\n }\n}\n\n.ant-btn-link[disabled] {\n color: ", " !important;\n opacity: 0.3;\n}\n\n// link danger\n.ant-btn-link.ant-btn-dangerous {\n\n &:hover {\n color: ", " !important;\n }\n\n &:active {\n color: ", " !important;\n }\n}\n\n.ant-btn-link.ant-btn-dangerous:disabled {\n color: ", " !important;\n opacity: 0.3;\n}\n\n\n\n// <====================== Drawer ======================>\n\n.ant-drawer .ant-drawer-header{\n border-bottom: none;\n padding: 23px 24px;\n .ant-drawer-header-title {\n flex-direction: row-reverse;\n .ant-drawer-close {\n margin: -4px;\n }\n }\n}\n// Drawer \u5BBD\u9AD8 \u4E1A\u52A1\u65B9\u81EA\u884C\u5B9E\u73B0\n//.ant-drawer .ant-drawer-content-wrapper {\n// min-width: 480px\n//}\n.ant-drawer .ant-drawer-body{\n padding: 0 24px;\n}\n.ant-drawer .ant-drawer-footer{\n border-top: none;\n padding: 24px;\n}\n\n// <====================== Modal ======================>\n\n.ant-modal .ant-modal-header {\n margin-bottom:24px;\n}\n.ant-modal-body {\n overflow-y: auto\n}\n\n/*\u5F53\u9875\u9762\u5BBD\u5EA6\u5927\u4E8E1280px\u4E14\u5C0F\u4E8E1366px\u7684\u65F6\u5019\u6267\u884C,1280-1366*/\n@media screen and (min-width:1280px) and (max-width: 1366px){\n .ant-modal-root[data-small] {\n .ant-modal-body {\n max-height: 150px;\n }\n .ant-modal {\n top: 150px;\n }\n }\n\n .ant-modal-root[data-medium] {\n .ant-modal-body {\n max-height: 300px;\n min-height: 150px\n }\n .ant-modal {\n top: 80px;\n }\n }\n\n .ant-modal-root[data-large] {\n .ant-modal-body {\n max-height: 450px;\n min-height: 300px\n }\n .ant-modal {\n top: 40px;\n }\n }\n}\n\n/*\u5F53\u9875\u9762\u5BBD\u5EA6\u5927\u4E8E1440px\u4E14\u5C0F\u4E8E1600px\u7684\u65F6\u5019\u6267\u884C,1440-1600*/\n@media screen and (min-width:1440px) and (max-width:1600px){\n .ant-modal-root[data-small] {\n .ant-modal-body {\n max-height: 150px;\n }\n .ant-modal {\n top: 200px;\n }\n }\n\n .ant-modal-root[data-medium] {\n .ant-modal-body {\n max-height: 300px;\n min-height: 150px\n }\n .ant-modal {\n top: 150px;\n }\n }\n\n .ant-modal-root[data-large] {\n .ant-modal-body {\n max-height: 450px;\n min-height: 300px\n }\n .ant-modal {\n top: 80px;\n }\n }\n}\n/*\u5F53\u9875\u9762\u5BBD\u5EA6\u5927\u4E8E1680px\u4E14\u5C0F\u4E8E1920px\u7684\u65F6\u5019\u6267\u884C,1680-1920*/\n@media screen and (min-width:1680px) and (max-width:2560px){\n .ant-modal-root[data-small] {\n .ant-modal-body {\n max-height: 150px;\n }\n .ant-modal {\n top: 200px;\n }\n }\n\n .ant-modal-root[data-medium] {\n .ant-modal-body {\n max-height: 300px;\n min-height: 150px\n }\n .ant-modal {\n top: 150px;\n }\n }\n\n .ant-modal-root[data-large] {\n .ant-modal-body {\n max-height: 450px;\n min-height: 300px\n }\n .ant-modal {\n top: 150px;\n }\n }\n}\n\n// <====================== Tabs ======================>\n\n.ant-tabs .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn {\n text-shadow: unset;\n}\n.ant-tabs-card {\n .ant-tabs-nav {\n margin: 0;\n &::before {\n border: none;\n }\n .ant-tabs-nav-wrap {\n background: transparent;\n .ant-tabs-nav-list {\n background: ", ";\n border-top-right-radius: ", "px;\n .ant-tabs-tab {\n position: relative;\n border: ", ";\n border-radius: ", "px ", "px 0px 0px;\n &::after {\n position: absolute;\n top: 11px;\n right: -1px;\n width: 1px;\n height: 24px;\n background: ", ";\n content: '';\n }\n }\n .ant-tabs-nav-add {\n position: relative;\n border: none;\n border-top-right-radius: ", "px;\n &::before {\n position: absolute;\n top: 11px;\n left: 1px;\n width: 1px;\n height: 24px;\n background: ", ";\n content: '';\n }\n }\n .ant-tabs-tab-active {\n border: ", ";\n &::after {\n display: none;\n }\n }\n .ant-tabs-tab:nth-last-of-type(2) {\n &::after {\n display: none;\n }\n }\n .ant-tabs-tab:has(+ .ant-tabs-tab-active) {\n &::after {\n display: none;\n }\n }\n }\n }\n }\n}\n\n// <====================== Pagination ======================>\n\n.ant-pagination {\n display: flex;\n align-items: center;\n\n .ant-pagination-total-text {\n margin-right: auto;\n color: ", ";\n }\n\n .ant-pagination-item.ant-pagination-item-active {\n &:hover {\n border-color: ", ";\n }\n\n &>a {\n color: ", ";\n }\n }\n\n .ant-pagination-options {\n .ant-pagination-options-quick-jumper {\n input {\n background: ", ";\n border-color: ", ";\n padding: 12px;\n\n &:hover {\n border-color: ", ";\n }\n\n &:focus {\n border-color: ", ";\n }\n }\n }\n }\n\n &.ant-pagination-mini li:not(:first-of-type) {\n margin-left: 2px;\n }\n}\n\n// <====================== Radio ======================>\n .ant-radio-group {\n .ant-radio-button-wrapper {\n position: relative;\n border: 1px solid ", ";\n &::before {\n display: none;\n }\n &::after {\n display: inline-block;\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n width: 1px;\n height: ", "px;\n background: ", ";\n right: -1px;\n content: '';\n }\n }\n .ant-radio-button-wrapper-checked {\n border: 1px solid ", ";\n &::after {\n display: none;\n }\n }\n .ant-radio-button-wrapper:nth-last-of-type(1) {\n &::after {\n display: none;\n }\n }\n .ant-radio-button-wrapper:has(+ .ant-radio-button-wrapper-checked) {\n &::after {\n display: none;\n }\n }\n .ant-radio-button-wrapper-disabled {\n border: 1px solid ", " !important;\n }\n .ant-radio-button-wrapper-disabled.ant-radio-button-wrapper-checked {\n border-color: ", " !important;\n }\n}\n// <====================== Collapse ======================>\n.ant-collapse .ant-collapse-content {\n border-top-width: 0px;\n}\n\n// <====================== Card ======================>\n.ant-card-type-inner .ant-card-head {\n border-bottom-width: 0;\n background: #FAFAFA;\n}\n\n// <====================== Global scroll,Fix Table two scroll ======================>\n\n/* \u901A\u7528\u6837\u5F0F\uFF1A\u9002\u7528\u4E8E Firefox */\n* {\n scrollbar-color: #d9d9d9 transparent;\n scrollbar-width: thin;\n /* \u5BF9\u5E94\u6EDA\u52A8\u6761\u5BBD\u5EA6\u7EA6\u4E3A 6px */\n}\n\n/* WebKit \u6D4F\u89C8\u5668\u6837\u5F0F\uFF1A\u5E94\u7528\u4E8E\u6240\u6709\u5E26\u6EDA\u52A8\u6761\u7684\u5143\u7D20 */\n*::-webkit-scrollbar {\n width: 6px;\n /* \u5782\u76F4\u6EDA\u52A8\u6761\u5BBD\u5EA6 */\n height: 6px;\n /* \u6C34\u5E73\u6EDA\u52A8\u6761\u9AD8\u5EA6 */\n}\n\n*::-webkit-scrollbar-thumb {\n background-color: #d9d9d9;\n /* \u6EDA\u52A8\u6761\u989C\u8272 */\n border-radius: 4px;\n /* \u6EDA\u52A8\u6761\u5706\u89D2 */\n}\n\n*::-webkit-scrollbar-track {\n background: transparent;\n /* \u6EDA\u52A8\u6761\u8F68\u9053\u80CC\u666F\u900F\u660E */\n}\n\n.ant-table-wrapper .ant-table-sticky-scroll {\n height: 0 !important;\n background: #d9d9d9;\n border-top-width: 0;\n opacity: 1;\n}\n\n.ant-table-wrapper .ant-table-sticky-scroll-bar-active, .ant-table-wrapper .ant-table-sticky-scroll-bar:hover {\n background-color: #d9d9d9;\n}\n\n.ant-table-wrapper .ant-table-sticky-scroll-bar {\n height: 6px;\n position: absolute;\n background: #d9d9d9;\n bottom: 2px;\n}\n\n.ant-table-wrapper .ant-table-sticky-scroll-bar:after {\n content: \" \";\n display: block;\n height: 2px;\n background: #FFF;\n position: absolute;\n top: 6px;\n left: 0;\n right: 0;\n}\n\n// <====================== antd 5.22 bugfix ======================>\n.ant-select-multiple .ant-select-selection-wrap {\n position: static;\n}\n\n"])), function (props) {
5
+ var globalStyle = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\n// <====================== Layout ======================>\n\n", "\n\n// <====================== Font ======================>\n\n@font-face {\n font-family: 'SourceHanSansCN';\n src: url(", ");\n}\n\nbody * {\n font-family: 'SourceHanSansCN';\n box-sizing: border-box;\n}\n\n// <====================== Button ======================>\n\n// primary\n.ant-btn-primary[disabled]{\n background: ", ";\n color: ", ";\n opacity: 0.3;\n}\n\n// default\n.ant-btn-default[disabled] {\n border-color: ", " !important;\n}\n\n// danger\n.ant-btn-default.ant-btn-dangerous,.ant-btn-default[data-danger],\n.ant-btn-default.ant-btn-dangerous[disabled],.ant-btn-default[data-danger][disabled] {\n color: ", ";\n background: ", ";\n border-color:", ";\n\n &:hover {\n color: ", " !important;\n background: ", " !important;\n border-color:", " !important;\n }\n\n &:active {\n color: ", " !important;\n }\n}\n.ant-btn-default.ant-btn-dangerous[disabled],.ant-btn-default[data-danger][disabled] {\n opacity: 0.4;\n}\n\n// secondary\n.ant-btn-default[data-secondary],\n// modal\u3001drawer\u3001popconfirm footer\n.ant-modal-footer .ant-btn-default:not([data-default]):not([data-danger]):not(.ant-btn-dangerous),\n.ant-drawer-footer .ant-btn-default:not([data-default]):not([data-danger]):not(.ant-btn-dangerous),\n.ant-popconfirm-buttons .ant-btn-default:not([data-default]):not([data-danger]):not(.ant-btn-dangerous){\n background: ", ";\n border-color: ", ";\n\n &:hover {\n background: ", " !important;\n border-color: ", " !important;\n }\n\n &:active {\n border-color: ", " !important;\n color: ", " !important;\n }\n}\n\n.ant-btn-default[data-secondary][disabled] {\n color: ", " ;\n background: ", ";\n border-color: ", " !important;\n\n &:hover {\n color: ", ";\n background: ", " !important;\n border-color: ", " !important;\n }\n\n &:active {\n color: ", " !important;\n border-color: ", " !important;\n }\n}\n\n// add\n.ant-btn-default[data-add] {\n background: ", " !important;\n color: ", " !important;\n border-color: ", " !important;\n\n &:hover {\n color: ", " !important;\n background: ", " !important;\n border-color: ", " !important;\n }\n\n &:active{\n color: ", " !important;\n }\n}\n\n.ant-btn-default[data-add][disabled] {\n opacity: 0.4;\n color: ", ";\n\n &:hover {\n background: ", " !important;\n color: ", " !important;\n }\n\n &:active{\n background: ", " !important;\n color: ", " !important;\n }\n}\n\n//dashed\n.ant-btn-dashed {\n background: ", " !important;\n border-color: ", " !important;\n}\n\n.ant-btn-dashed:not([disabled]) {\n &:hover {\n background: ", " !important;\n color: ", " !important;\n border-color: ", " !important;\n }\n\n &:active{\n color: ", " !important;\n border-color: ", " !important;\n }\n}\n\n// dashed danger\n.ant-btn-dashed.ant-btn-dangerous,\n.ant-btn-dashed.ant-btn-dangerous:disabled {\n color: ", " !important;\n border-color: ", " !important;\n\n &:hover {\n color: ", " !important;\n border-color: ", " !important;\n }\n\n &:active {\n color: ", " !important;\n }\n}\n.ant-btn-dashed.ant-btn-dangerous:disabled {\n opacity: 0.4;\n\n &:hover {\n color: ", " !important;\n border-color: ", " !important;\n }\n\n &:active {\n color: ", " !important;\n border-color: ", " !important;\n }\n}\n\n// ghost\n.ant-btn-background-ghost:not([disabled]) {\n &:hover {\n color: ", " !important;\n border-color: ", " !important;\n }\n\n &:active {\n color: ", " !important;\n border-color: ", " !important;\n }\n}\n\n// link\n.ant-btn-link:not([disabled]) {\n &:hover {\n color: ", " !important;\n }\n\n &:active {\n color: ", " !important;\n\n }\n}\n\n.ant-btn-link[disabled] {\n color: ", " !important;\n opacity: 0.3;\n}\n\n// link danger\n.ant-btn-link.ant-btn-dangerous {\n\n &:hover {\n color: ", " !important;\n }\n\n &:active {\n color: ", " !important;\n }\n}\n\n.ant-btn-link.ant-btn-dangerous:disabled {\n color: ", " !important;\n opacity: 0.3;\n}\n\n\n\n// <====================== Drawer ======================>\n\n.ant-drawer .ant-drawer-header{\n border-bottom: none;\n padding: 23px 24px;\n .ant-drawer-header-title {\n flex-direction: row-reverse;\n .ant-drawer-close {\n margin: -4px;\n }\n }\n}\n// Drawer \u5BBD\u9AD8 \u4E1A\u52A1\u65B9\u81EA\u884C\u5B9E\u73B0\n//.ant-drawer .ant-drawer-content-wrapper {\n// min-width: 480px\n//}\n.ant-drawer .ant-drawer-body{\n padding: 0 24px;\n}\n.ant-drawer .ant-drawer-footer{\n border-top: none;\n padding: 24px;\n}\n\n// <====================== Modal ======================>\n\n.ant-modal .ant-modal-header {\n margin-bottom:24px;\n}\n.ant-modal-body {\n overflow-y: auto\n}\n\n/*\u5F53\u9875\u9762\u5BBD\u5EA6\u5927\u4E8E1280px\u4E14\u5C0F\u4E8E1366px\u7684\u65F6\u5019\u6267\u884C,1280-1366*/\n@media screen and (min-width:1280px) and (max-width: 1366px){\n .ant-modal-root[data-small] {\n .ant-modal-body {\n max-height: 150px;\n }\n .ant-modal {\n top: 150px;\n }\n }\n\n .ant-modal-root[data-medium] {\n .ant-modal-body {\n max-height: 300px;\n min-height: 150px\n }\n .ant-modal {\n top: 80px;\n }\n }\n\n .ant-modal-root[data-large] {\n .ant-modal-body {\n max-height: 450px;\n min-height: 300px\n }\n .ant-modal {\n top: 40px;\n }\n }\n}\n\n/*\u5F53\u9875\u9762\u5BBD\u5EA6\u5927\u4E8E1440px\u4E14\u5C0F\u4E8E1600px\u7684\u65F6\u5019\u6267\u884C,1440-1600*/\n@media screen and (min-width:1440px) and (max-width:1600px){\n .ant-modal-root[data-small] {\n .ant-modal-body {\n max-height: 150px;\n }\n .ant-modal {\n top: 200px;\n }\n }\n\n .ant-modal-root[data-medium] {\n .ant-modal-body {\n max-height: 300px;\n min-height: 150px\n }\n .ant-modal {\n top: 150px;\n }\n }\n\n .ant-modal-root[data-large] {\n .ant-modal-body {\n max-height: 450px;\n min-height: 300px\n }\n .ant-modal {\n top: 80px;\n }\n }\n}\n/*\u5F53\u9875\u9762\u5BBD\u5EA6\u5927\u4E8E1680px\u4E14\u5C0F\u4E8E1920px\u7684\u65F6\u5019\u6267\u884C,1680-1920*/\n@media screen and (min-width:1680px) and (max-width:2560px){\n .ant-modal-root[data-small] {\n .ant-modal-body {\n max-height: 150px;\n }\n .ant-modal {\n top: 200px;\n }\n }\n\n .ant-modal-root[data-medium] {\n .ant-modal-body {\n max-height: 300px;\n min-height: 150px\n }\n .ant-modal {\n top: 150px;\n }\n }\n\n .ant-modal-root[data-large] {\n .ant-modal-body {\n max-height: 450px;\n min-height: 300px\n }\n .ant-modal {\n top: 150px;\n }\n }\n}\n\n// <====================== Tabs ======================>\n\n.ant-tabs .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn {\n text-shadow: unset;\n}\n.ant-tabs-card {\n .ant-tabs-nav {\n margin: 0;\n &::before {\n border: none;\n }\n .ant-tabs-nav-wrap {\n background: transparent;\n .ant-tabs-nav-list {\n background: ", ";\n border-top-right-radius: ", "px;\n .ant-tabs-tab {\n position: relative;\n border: ", ";\n border-radius: ", "px ", "px 0px 0px;\n &::after {\n position: absolute;\n top: 11px;\n right: -1px;\n width: 1px;\n height: 24px;\n background: ", ";\n content: '';\n }\n }\n .ant-tabs-nav-add {\n position: relative;\n border: none;\n border-top-right-radius: ", "px;\n &::before {\n position: absolute;\n top: 11px;\n left: 1px;\n width: 1px;\n height: 24px;\n background: ", ";\n content: '';\n }\n }\n .ant-tabs-tab-active {\n border: ", ";\n &::after {\n display: none;\n }\n }\n .ant-tabs-tab:nth-last-of-type(2) {\n &::after {\n display: none;\n }\n }\n .ant-tabs-tab:has(+ .ant-tabs-tab-active) {\n &::after {\n display: none;\n }\n }\n }\n }\n }\n}\n\n// <====================== Pagination ======================>\n\n.ant-pagination {\n display: flex;\n align-items: center;\n\n .ant-pagination-total-text {\n margin-right: auto;\n color: ", ";\n }\n\n .ant-pagination-item.ant-pagination-item-active {\n &:hover {\n border-color: ", ";\n }\n\n &>a {\n color: ", ";\n }\n }\n\n .ant-pagination-options {\n .ant-pagination-options-quick-jumper {\n input {\n background: ", ";\n border-color: ", ";\n padding: 12px;\n\n &:hover {\n border-color: ", ";\n }\n\n &:focus {\n border-color: ", ";\n }\n }\n }\n }\n\n &.ant-pagination-mini li:not(:first-of-type) {\n margin-left: 2px;\n }\n}\n\n// <====================== Radio ======================>\n .ant-radio-group {\n .ant-radio-button-wrapper {\n position: relative;\n border: 1px solid ", ";\n &::before {\n display: none;\n }\n &::after {\n display: inline-block;\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n width: 1px;\n height: ", "px;\n background: ", ";\n right: -1px;\n content: '';\n }\n }\n .ant-radio-button-wrapper-checked {\n border: 1px solid ", ";\n &::after {\n display: none;\n }\n }\n .ant-radio-button-wrapper:nth-last-of-type(1) {\n &::after {\n display: none;\n }\n }\n .ant-radio-button-wrapper:has(+ .ant-radio-button-wrapper-checked) {\n &::after {\n display: none;\n }\n }\n .ant-radio-button-wrapper-disabled {\n border: 1px solid ", " !important;\n }\n .ant-radio-button-wrapper-disabled.ant-radio-button-wrapper-checked {\n border-color: ", " !important;\n }\n}\n// <====================== Collapse ======================>\n.ant-collapse .ant-collapse-content {\n border-top-width: 0px;\n}\n\n// <====================== Card ======================>\n.ant-card-type-inner .ant-card-head {\n border-bottom-width: 0;\n background: #FAFAFA;\n}\n\n// <====================== Global scroll,Fix Table two scroll ======================>\n\n/* \u901A\u7528\u6837\u5F0F\uFF1A\u9002\u7528\u4E8E Firefox */\n* {\n scrollbar-color: #d9d9d9 transparent;\n scrollbar-width: thin;\n /* \u5BF9\u5E94\u6EDA\u52A8\u6761\u5BBD\u5EA6\u7EA6\u4E3A 6px */\n}\n\n/* WebKit \u6D4F\u89C8\u5668\u6837\u5F0F\uFF1A\u5E94\u7528\u4E8E\u6240\u6709\u5E26\u6EDA\u52A8\u6761\u7684\u5143\u7D20 */\n*::-webkit-scrollbar {\n width: 6px;\n /* \u5782\u76F4\u6EDA\u52A8\u6761\u5BBD\u5EA6 */\n height: 6px;\n /* \u6C34\u5E73\u6EDA\u52A8\u6761\u9AD8\u5EA6 */\n}\n\n*::-webkit-scrollbar-thumb {\n background-color: #d9d9d9;\n /* \u6EDA\u52A8\u6761\u989C\u8272 */\n border-radius: 4px;\n /* \u6EDA\u52A8\u6761\u5706\u89D2 */\n}\n\n*::-webkit-scrollbar-track {\n background: transparent;\n /* \u6EDA\u52A8\u6761\u8F68\u9053\u80CC\u666F\u900F\u660E */\n}\n\n.ant-table-wrapper .ant-table-sticky-scroll {\n height: 0 !important;\n background: #d9d9d9;\n border-top-width: 0;\n opacity: 1;\n}\n\n.ant-table-wrapper .ant-table-sticky-scroll-bar-active, .ant-table-wrapper .ant-table-sticky-scroll-bar:hover {\n background-color: #d9d9d9;\n}\n\n.ant-table-wrapper .ant-table-sticky-scroll-bar {\n height: 6px;\n background: #d9d9d9;\n}\n\n// <====================== antd 5.22 bugfix ======================>\n.ant-select-multiple .ant-select-selection-wrap {\n position: static;\n}\n\n"])), function (props) {
6
6
  return props.layout;
7
7
  }, function (props) {
8
8
  return props.font.Regular;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ThemeConfig } from 'antd/es/config-provider/context';
3
2
  import { IMcThemeProviderProps } from './provider';
4
3
  type McThemeConfigType = ThemeConfig & {
@@ -1,5 +1,5 @@
1
1
  import { ReactElement } from 'react';
2
- import '../Styles/utilities.less';
2
+ import '../styles/utilities.less';
3
3
  export interface IMcThemeProviderProps {
4
4
  children: ReactElement;
5
5
  layout?: boolean;
@@ -3,7 +3,7 @@ import { McFonts } from "./..";
3
3
  import GlobalStyle from "./globalStyle";
4
4
  import McThemeConfig from "./index";
5
5
  import LayoutStyle from "./layoutStyle";
6
- import "../Styles/utilities.css";
6
+ import "../styles/utilities.css";
7
7
  import { jsx as _jsx } from "react/jsx-runtime";
8
8
  import { jsxs as _jsxs } from "react/jsx-runtime";
9
9
  var McThemeProvider = function McThemeProvider(_ref) {
@@ -3,3 +3,11 @@ export { default as debounce } from 'lodash/debounce';
3
3
  export { default as isEmpty } from 'lodash/isEmpty';
4
4
  export { default as isNil } from 'lodash/isNil';
5
5
  export { default as throttle } from 'lodash/throttle';
6
+ /**
7
+ * @name 复制粘贴内容
8
+ * @description 尝试将给定的文本复制到剪切板
9
+ * @param text 要复制的文本
10
+ * @param successStr 成功提示
11
+ * @param failedStr 失败提示
12
+ */
13
+ export declare function copyToClipboard(text: string, onSuccess?: () => void, onFail?: () => void): Promise<void>;
@@ -1,6 +1,60 @@
1
+ import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
2
+ import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
1
3
  /** 工具方法 */
2
4
 
3
5
  export { default as debounce } from 'lodash/debounce';
4
6
  export { default as isEmpty } from 'lodash/isEmpty';
5
7
  export { default as isNil } from 'lodash/isNil';
6
- export { default as throttle } from 'lodash/throttle';
8
+ export { default as throttle } from 'lodash/throttle';
9
+ /**
10
+ * @name 复制粘贴内容
11
+ * @description 尝试将给定的文本复制到剪切板
12
+ * @param text 要复制的文本
13
+ * @param successStr 成功提示
14
+ * @param failedStr 失败提示
15
+ */
16
+ export function copyToClipboard(_x, _x2, _x3) {
17
+ return _copyToClipboard.apply(this, arguments);
18
+ }
19
+ function _copyToClipboard() {
20
+ _copyToClipboard = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(text, onSuccess, onFail) {
21
+ var textarea;
22
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
23
+ while (1) switch (_context.prev = _context.next) {
24
+ case 0:
25
+ _context.prev = 0;
26
+ _context.next = 3;
27
+ return navigator.clipboard.writeText(text);
28
+ case 3:
29
+ onSuccess === null || onSuccess === void 0 || onSuccess();
30
+ _context.next = 9;
31
+ break;
32
+ case 6:
33
+ _context.prev = 6;
34
+ _context.t0 = _context["catch"](0);
35
+ // 在某些浏览器中,可能需要回退到使用document.execCommand
36
+ // 但请注意,document.execCommand已被废弃,不推荐使用
37
+ if (typeof document !== 'undefined' && document.queryCommandSupported && document.queryCommandSupported('copy')) {
38
+ textarea = document.createElement('textarea');
39
+ textarea.textContent = text;
40
+ textarea.style.position = 'fixed'; // 防止滚动
41
+ document.body.appendChild(textarea);
42
+ textarea.select();
43
+ try {
44
+ if (document.execCommand('copy')) {
45
+ onSuccess === null || onSuccess === void 0 || onSuccess();
46
+ }
47
+ } catch (err) {
48
+ console.error(err);
49
+ onFail === null || onFail === void 0 || onFail();
50
+ }
51
+ document.body.removeChild(textarea);
52
+ }
53
+ case 9:
54
+ case "end":
55
+ return _context.stop();
56
+ }
57
+ }, _callee, null, [[0, 6]]);
58
+ }));
59
+ return _copyToClipboard.apply(this, arguments);
60
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zykj2024/much-library",
3
- "version": "1.1.1-beta.1",
3
+ "version": "1.1.2-beta.1",
4
4
  "description": "react library",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.js",
@@ -1,2 +0,0 @@
1
- declare const _default: () => import("react/jsx-runtime").JSX.Element;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: () => import("react/jsx-runtime").JSX.Element;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: () => import("react/jsx-runtime").JSX.Element;
2
- export default _default;
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes