@zykj2024/much-library 1.1.1 → 1.1.2-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/McContainer/demo/base.js +2 -1
- package/dist/McContainer/demo/collapse.js +2 -1
- package/dist/McContainer/demo/pagination.js +2 -1
- package/dist/McContainer/demo/search.js +2 -1
- package/dist/McContainer/demo/standard.js +16 -6
- package/dist/McContainer/index.css +0 -1
- package/dist/McContainer/index.d.ts +77 -0
- package/dist/McContainer/index.js +43 -8
- package/dist/McEllipsisMiddle/demo/base.js +0 -22
- package/dist/McEllipsisMiddle/demo/tooltip.d.ts +6 -0
- package/dist/McEllipsisMiddle/demo/tooltip.js +35 -0
- package/dist/McIcons/index.css +33 -0
- package/dist/McResult/default.js +14 -0
- package/dist/McResult/demo/preview.js +6 -1
- package/dist/McResult/icon.js +71 -3
- package/dist/McResult/index.d.ts +13 -9
- package/dist/McResult/index.js +50 -34
- package/dist/McResult/public/detailEmpty.svg +1 -0
- package/dist/McThemeConfig/globalStyle.js +1 -1
- package/dist/McThemeConfig/index.d.ts +0 -1
- package/dist/McThemeConfig/provider.d.ts +1 -1
- package/dist/McThemeConfig/provider.js +1 -1
- package/dist/Utils/index.d.ts +8 -0
- package/dist/Utils/index.js +55 -1
- package/package.json +1 -1
- /package/dist/{Styles → styles}/demo/basic.d.ts +0 -0
- /package/dist/{Styles → styles}/demo/basic.js +0 -0
- /package/dist/{Styles → styles}/demo/delete-icon.d.ts +0 -0
- /package/dist/{Styles → styles}/demo/delete-icon.js +0 -0
- /package/dist/{Styles → styles}/demo/form-bottom-0.d.ts +0 -0
- /package/dist/{Styles → styles}/demo/form-bottom-0.js +0 -0
- /package/dist/{Styles → styles}/index.css +0 -0
- /package/dist/{Styles → styles}/mixins.css +0 -0
- /package/dist/{Styles → styles}/utilities.css +0 -0
@@ -13,7 +13,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
14
14
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
15
15
|
var tableData = Array.from({
|
16
|
-
length:
|
16
|
+
length: 21
|
17
17
|
}, function (_, index) {
|
18
18
|
return {
|
19
19
|
id: index + 1,
|
@@ -45,6 +45,11 @@ export default (function () {
|
|
45
45
|
_useState10 = _slicedToArray(_useState9, 2),
|
46
46
|
searchJsonStr = _useState10[0],
|
47
47
|
setSearchJsonStr = _useState10[1];
|
48
|
+
var onDelete = function onDelete(index) {
|
49
|
+
var _mcContainerRef$curre;
|
50
|
+
tableData.splice(index, 1);
|
51
|
+
(_mcContainerRef$curre = mcContainerRef.current) === null || _mcContainerRef$curre === void 0 || _mcContainerRef$curre.query();
|
52
|
+
};
|
48
53
|
var columns = [{
|
49
54
|
title: 'ID',
|
50
55
|
dataIndex: 'id'
|
@@ -64,15 +69,14 @@ export default (function () {
|
|
64
69
|
title: '操作',
|
65
70
|
dataIndex: 'option',
|
66
71
|
width: 100,
|
67
|
-
render: function render() {
|
72
|
+
render: function render(_, record, index) {
|
68
73
|
return /*#__PURE__*/_jsxs(Space, {
|
69
74
|
size: 16,
|
70
75
|
children: [/*#__PURE__*/_jsx("a", {
|
71
76
|
children: "\u7F16\u8F91"
|
72
77
|
}), /*#__PURE__*/_jsx(McPopoverButton, {
|
73
78
|
onConfirm: function onConfirm() {
|
74
|
-
|
75
|
-
return (_mcContainerRef$curre = mcContainerRef.current) === null || _mcContainerRef$curre === void 0 ? void 0 : _mcContainerRef$curre.query();
|
79
|
+
return onDelete(index);
|
76
80
|
}
|
77
81
|
})]
|
78
82
|
});
|
@@ -111,8 +115,13 @@ export default (function () {
|
|
111
115
|
return new Promise(function (resolve) {
|
112
116
|
setLoading(true);
|
113
117
|
setTimeout(function () {
|
114
|
-
|
115
|
-
|
118
|
+
var startIndex = (values.current - 1) * values.pageSize;
|
119
|
+
// 计算结束索引
|
120
|
+
var endIndex = startIndex + values.pageSize;
|
121
|
+
// 使用 slice 方法截取当前页的数据
|
122
|
+
var data = tableData.slice(startIndex, endIndex);
|
123
|
+
setDataSource(data || []);
|
124
|
+
setTotal(tableData.length || 0);
|
116
125
|
setLoading(false);
|
117
126
|
resolve();
|
118
127
|
}, 1000);
|
@@ -145,6 +154,7 @@ export default (function () {
|
|
145
154
|
type: "primary",
|
146
155
|
children: "\u6279\u91CF\u5220\u9664"
|
147
156
|
}),
|
157
|
+
autoBackPagination: true,
|
148
158
|
tableProps: {
|
149
159
|
columns: columns,
|
150
160
|
dataSource: dataSource,
|
@@ -4,30 +4,75 @@ import './index.less';
|
|
4
4
|
export type McContainerPropsType = {
|
5
5
|
style?: CSSProperties;
|
6
6
|
className?: string;
|
7
|
+
/** 页面容器的高度(默认'calc(100vh - 88px)',即视口高度-菜单header高度56px-页面上下内边距16px*2) */
|
7
8
|
height?: string;
|
9
|
+
/** 页面容器的背景色(默认'#ffffff') */
|
8
10
|
backgroundColor?: string;
|
9
11
|
/**
|
10
12
|
* 是否展示头部遮罩,默认显示
|
11
13
|
*/
|
12
14
|
showCell?: boolean;
|
15
|
+
/**
|
16
|
+
* 是否触发首次查询(默认true)
|
17
|
+
若使用场景为需自定义默认查询参数,可将该属性设置为false,并手动调用setDefaultQueryParams方法重新设置默认查询参数,而后调用query方法触发查询
|
18
|
+
*/
|
13
19
|
immediateQuery?: boolean;
|
20
|
+
/** 加载中(已覆盖table组件的loading) */
|
14
21
|
loading?: boolean;
|
22
|
+
/**
|
23
|
+
* 查询项(不受展开、收起按钮控制显示隐藏的查询项)
|
24
|
+
结合以下组件使用为最佳实现方式:McSelect、McCascader、McDateRange、McInput、McInput.Search、McInput.TextArea
|
25
|
+
已设置默认样式,可直接如下使用:
|
26
|
+
<>
|
27
|
+
<McSelect
|
28
|
+
label="下拉选择器"
|
29
|
+
name="name1"
|
30
|
+
/>
|
31
|
+
<McCascader
|
32
|
+
label="级联选择器"
|
33
|
+
name="name2"
|
34
|
+
/>
|
35
|
+
<McDateRange
|
36
|
+
label="日期范围选择器"
|
37
|
+
name="name3"
|
38
|
+
/>
|
39
|
+
<McInput.Search
|
40
|
+
name="name4"
|
41
|
+
onSearch={() => mcContainerRef.current?.query({ current: 1 })}
|
42
|
+
/>
|
43
|
+
</>
|
44
|
+
*/
|
15
45
|
queryItems?: ReactElement;
|
46
|
+
/** 是否显示查询按钮(默认显示 true) */
|
16
47
|
showQuery?: boolean;
|
48
|
+
/** 是否显示重置按钮(默认显示 true) */
|
17
49
|
showReset?: boolean;
|
50
|
+
/** 是否显示展开、收起按钮(默认不显示 false) */
|
18
51
|
showCollapse?: boolean;
|
52
|
+
/** 可折叠的查询项(可通过展开、收起按钮控制显示隐藏的查询项,使用建议同queryItems) */
|
19
53
|
collapsibleQueryItems?: ReactElement;
|
54
|
+
/** 查询(点击查询按钮、点击重置按钮、表格分页、排序、筛选变化)回调事件 */
|
20
55
|
onQuery?: (params: {
|
21
56
|
current?: number;
|
22
57
|
pageSize?: number;
|
23
58
|
[key: string]: any;
|
24
59
|
}, filters?: any, sorter?: any, extra?: any) => void;
|
60
|
+
/** 重置按钮回调事件(若设置该属性,则在点击重置按钮时不再触发onQuery事件) */
|
25
61
|
onReset?: (params?: {
|
26
62
|
current?: number;
|
27
63
|
pageSize?: number;
|
28
64
|
[key: string]: any;
|
29
65
|
}) => void;
|
66
|
+
/** 查询区自定义渲染(若设置为null,则不显示查询区) */
|
30
67
|
queryRender?: ReactNode;
|
68
|
+
/**
|
69
|
+
* 操作栏(若未设置该项,则不显示)
|
70
|
+
已设置默认样式,可直接如下使用:
|
71
|
+
<>
|
72
|
+
<Button type="primary">操作1</Button>
|
73
|
+
<Button>操作2</Button>
|
74
|
+
</>
|
75
|
+
*/
|
31
76
|
actionBar?: ReactElement;
|
32
77
|
/**
|
33
78
|
* @description 操作栏自定义渲染
|
@@ -35,7 +80,16 @@ export type McContainerPropsType = {
|
|
35
80
|
* @returns 操作栏元素
|
36
81
|
*/
|
37
82
|
actionBarRender?: (batchEl: ReactNode) => ReactNode;
|
83
|
+
/** 批量操作已选项数量(当数量大于0时,显示批量操作栏) */
|
38
84
|
batchNum?: number;
|
85
|
+
/**
|
86
|
+
* 批量操作按钮区(若未设置该项,则不显示)
|
87
|
+
已设置默认样式,可直接如下使用:
|
88
|
+
<>
|
89
|
+
<Button>批量操作1</Button>
|
90
|
+
<Button>批量操作2</Button>
|
91
|
+
</>
|
92
|
+
*/
|
39
93
|
batchBtns?: ReactNode;
|
40
94
|
/**
|
41
95
|
* @description 批量操作按钮配置
|
@@ -50,24 +104,47 @@ export type McContainerPropsType = {
|
|
50
104
|
buttonProps?: ButtonProps;
|
51
105
|
order?: number;
|
52
106
|
};
|
107
|
+
/** 批量操作取消按钮回调事件 */
|
53
108
|
onCancel?: () => void;
|
109
|
+
/** 表格组件属性 */
|
54
110
|
tableProps?: TableProps<any>;
|
111
|
+
/** 数据表格区自定义渲染(若设置为null,则不显示数据表格区 */
|
55
112
|
tableRender?: ReactNode;
|
113
|
+
/** 当前分页数据为空且非第一页时,是否自动会退到上一个分页(默认false) */
|
114
|
+
autoBackPagination?: boolean;
|
56
115
|
/** 折叠事件的回调 */
|
57
116
|
onCollapse?: (v: boolean) => void;
|
58
117
|
[key: string]: any;
|
59
118
|
};
|
60
119
|
export type McContainerRef = {
|
120
|
+
/**
|
121
|
+
* 调用查询的方法
|
122
|
+
可通过传参(params)更新查询参数的状态后触发查询,所设置的属性仅会覆盖原查询参数对应的属性,如:query({current: 1}),仅会覆盖原查询参数的current属性;
|
123
|
+
仅对设置过name属性的查询项(和current、pageSize)有效,查询项自身已绑定value属性的除外,需自行编写相关业务逻辑代码进行状态管理;
|
124
|
+
若不传参则按当前查询参数触发查询
|
125
|
+
*/
|
61
126
|
query: (params?: {
|
62
127
|
[key: string]: any;
|
63
128
|
}) => void;
|
129
|
+
/** 调用重置的方法 */
|
64
130
|
reset: () => void;
|
131
|
+
/**
|
132
|
+
* 设置默认查询参数
|
133
|
+
默认查询参数,用于重置使用,仅对设置过name属性的查询项(和current、pageSize)有效,查询项自身已绑定value属性的除外,需自行编写相关业务逻辑代码进行状态管理;
|
134
|
+
可通过该方法配置默认查询的分页参数;
|
135
|
+
设置的查询参数将覆盖原有默认值,如:setDefaultQueryParams({pageSize: 10, status: 1}),设置后的默认查询参数为{current: 1, pageSize: 10, status: 1}
|
136
|
+
原有默认值 {current: 1, pageSize: 20}(若未开启分页功能,默认值为{})
|
137
|
+
*/
|
65
138
|
setDefaultQueryParams: (params: {
|
66
139
|
[key: string]: any;
|
67
140
|
}) => void;
|
141
|
+
/** 设置单个查询项的参数(仅支持设置过name属性的查询项和current、pageSize) */
|
68
142
|
setQueryParam: (name: string, value: any) => void;
|
143
|
+
/** 获取单个查询项的参数(仅支持设置过name属性的查询项和current、pageSize) */
|
69
144
|
getQueryParam: (name: string) => any;
|
145
|
+
/** 获取所有查询项的参数 */
|
70
146
|
getQueryParams: () => any;
|
147
|
+
/** 重置查询参数(重置为默认查询参数) */
|
71
148
|
resetQueryParams: () => void;
|
72
149
|
};
|
73
150
|
declare const McContainer: FC<McContainerPropsType>;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
2
2
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
3
3
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
4
|
+
import { useUpdateEffect } from "../../packages/hooks/src";
|
4
5
|
import { Button, Spin, Table } from 'antd';
|
5
6
|
import { isNumber } from 'lodash';
|
6
7
|
import { CaretDownFilled, DoubleLeftOutlined } from 'much-icons';
|
@@ -30,6 +31,8 @@ var McContainer = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
30
31
|
showReset = _props$showReset === void 0 ? true : _props$showReset,
|
31
32
|
_props$showCollapse = props.showCollapse,
|
32
33
|
showCollapse = _props$showCollapse === void 0 ? false : _props$showCollapse,
|
34
|
+
_props$autoBackPagina = props.autoBackPagination,
|
35
|
+
autoBackPagination = _props$autoBackPagina === void 0 ? false : _props$autoBackPagina,
|
33
36
|
collapsibleQueryItems = props.collapsibleQueryItems,
|
34
37
|
onQuery = props.onQuery,
|
35
38
|
onReset = props.onReset,
|
@@ -56,6 +59,7 @@ var McContainer = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
56
59
|
var queryParamsRef = useRef({});
|
57
60
|
var defaultQueryParamsRef = useRef({});
|
58
61
|
var initializedRef = useRef(false);
|
62
|
+
var containerRef = useRef(null);
|
59
63
|
|
60
64
|
/* 批量操作相关 */
|
61
65
|
var _ref = batch || {},
|
@@ -308,6 +312,25 @@ var McContainer = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
308
312
|
}
|
309
313
|
}
|
310
314
|
}, [immediateQuery]);
|
315
|
+
useUpdateEffect(function () {
|
316
|
+
var _ref6 = tableProps !== null && tableProps !== void 0 ? tableProps : {},
|
317
|
+
pagination = _ref6.pagination,
|
318
|
+
dataSource = _ref6.dataSource;
|
319
|
+
var _ref7 = pagination || {},
|
320
|
+
total = _ref7.total;
|
321
|
+
var _ref8 = queryParams !== null && queryParams !== void 0 ? queryParams : {},
|
322
|
+
current = _ref8.current,
|
323
|
+
pageSize = _ref8.pageSize;
|
324
|
+
// 判断条件
|
325
|
+
// 1. 开启自动回退分页功能
|
326
|
+
// 2. 开启分页功能
|
327
|
+
// 3. 表格当前页数据为空 & 当前页大于1 & 总数据大于分页数据
|
328
|
+
if (autoBackPagination && !!pagination && (dataSource === null || dataSource === void 0 ? void 0 : dataSource.length) === 0 && current > 1 && total && pageSize && total >= pageSize) {
|
329
|
+
query(_objectSpread(_objectSpread({}, queryParams), {}, {
|
330
|
+
current: Math.min(current - 1, Math.floor(total / pageSize))
|
331
|
+
}));
|
332
|
+
}
|
333
|
+
}, [tableProps === null || tableProps === void 0 ? void 0 : tableProps.dataSource]);
|
311
334
|
useImperativeHandle(ref, function () {
|
312
335
|
return {
|
313
336
|
query: query,
|
@@ -333,9 +356,11 @@ var McContainer = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
333
356
|
children: [showCell && /*#__PURE__*/_jsx("div", {
|
334
357
|
className: "mc-container__ceiling",
|
335
358
|
style: {
|
336
|
-
backgroundColor: backgroundColor
|
359
|
+
backgroundColor: backgroundColor,
|
360
|
+
top: 0
|
337
361
|
}
|
338
362
|
}), /*#__PURE__*/_jsxs("div", {
|
363
|
+
ref: containerRef,
|
339
364
|
className: "mc-container__wrapper",
|
340
365
|
style: {
|
341
366
|
paddingBottom: tableRender || tableRender === null || (tableProps === null || tableProps === void 0 ? void 0 : tableProps.pagination) === false ? 16 : 50
|
@@ -419,7 +444,10 @@ var McContainer = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
419
444
|
className: "mc-container__table",
|
420
445
|
size: "small",
|
421
446
|
sticky: {
|
422
|
-
offsetHeader: (actionBarHeight ? actionBarHeight - 24 : 0) + (batchNum > 0 ? 48 : 0)
|
447
|
+
offsetHeader: (actionBarHeight ? actionBarHeight - 24 : 0) + (batchNum > 0 ? 48 : 0),
|
448
|
+
getContainer: function getContainer() {
|
449
|
+
return containerRef.current;
|
450
|
+
}
|
423
451
|
},
|
424
452
|
scroll: {
|
425
453
|
x: (tableProps === null || tableProps === void 0 || (_tableProps$dataSourc = tableProps.dataSource) === null || _tableProps$dataSourc === void 0 ? void 0 : _tableProps$dataSourc.length) > 0 ? 'max-content' : '100%'
|
@@ -441,13 +469,13 @@ var McContainer = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
441
469
|
pageSize: queryParams.pageSize
|
442
470
|
}, tableProps === null || tableProps === void 0 ? void 0 : tableProps.pagination),
|
443
471
|
expandable: _objectSpread({
|
444
|
-
expandIcon: function expandIcon(
|
472
|
+
expandIcon: function expandIcon(_ref9) {
|
445
473
|
var _tableProps$dataSourc2, _record$children;
|
446
|
-
var expanded =
|
447
|
-
onExpand =
|
448
|
-
record =
|
449
|
-
return tableProps !== null && tableProps !== void 0 && (_tableProps$dataSourc2 = tableProps.dataSource) !== null && _tableProps$dataSourc2 !== void 0 && _tableProps$dataSourc2.some(function (
|
450
|
-
var children =
|
474
|
+
var expanded = _ref9.expanded,
|
475
|
+
onExpand = _ref9.onExpand,
|
476
|
+
record = _ref9.record;
|
477
|
+
return tableProps !== null && tableProps !== void 0 && (_tableProps$dataSourc2 = tableProps.dataSource) !== null && _tableProps$dataSourc2 !== void 0 && _tableProps$dataSourc2.some(function (_ref10) {
|
478
|
+
var children = _ref10.children;
|
451
479
|
return (children === null || children === void 0 ? void 0 : children.length) > 0;
|
452
480
|
}) ? ((_record$children = record.children) === null || _record$children === void 0 ? void 0 : _record$children.length) > 0 ? /*#__PURE__*/_jsx(CaretDownFilled, {
|
453
481
|
className: "mc-container__table__expand-icon",
|
@@ -468,6 +496,13 @@ var McContainer = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
468
496
|
}
|
469
497
|
}, tableProps === null || tableProps === void 0 ? void 0 : tableProps.expandable)
|
470
498
|
}))]
|
499
|
+
}), !(tableProps !== null && tableProps !== void 0 && tableProps.pagination) && /*#__PURE__*/_jsx("div", {
|
500
|
+
className: "mc-container__ceiling",
|
501
|
+
style: {
|
502
|
+
backgroundColor: backgroundColor,
|
503
|
+
height: 16,
|
504
|
+
bottom: 0
|
505
|
+
}
|
471
506
|
})]
|
472
507
|
})
|
473
508
|
});
|
@@ -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,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
|
+
}
|
package/dist/McResult/default.js
CHANGED
@@ -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
|
});
|
package/dist/McResult/icon.js
CHANGED
@@ -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",
|
package/dist/McResult/index.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
|
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;
|
package/dist/McResult/index.js
CHANGED
@@ -51,53 +51,69 @@ var McResult = function McResult(_ref) {
|
|
51
51
|
})]
|
52
52
|
});
|
53
53
|
};
|
54
|
-
|
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:
|
58
|
-
style: _objectSpread({}, (_DEFAULT_MAP$ = DEFAULT_MAP[
|
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.
|
62
|
-
var
|
63
|
-
return /*#__PURE__*/_jsx(
|
64
|
-
|
65
|
-
style:
|
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.
|
69
|
-
var
|
70
|
-
return /*#__PURE__*/_jsx(
|
71
|
-
|
72
|
-
style:
|
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.
|
76
|
-
var
|
77
|
-
return /*#__PURE__*/_jsx(
|
78
|
-
|
79
|
-
style:
|
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
|
84
|
-
return /*#__PURE__*/_jsx(
|
85
|
-
|
86
|
-
style:
|
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.
|
90
|
-
var
|
91
|
-
return /*#__PURE__*/_jsx(
|
92
|
-
|
93
|
-
style:
|
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.
|
97
|
-
var
|
98
|
-
return /*#__PURE__*/_jsx(
|
99
|
-
|
100
|
-
style:
|
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;
|
@@ -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 "../
|
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) {
|
package/dist/Utils/index.d.ts
CHANGED
@@ -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>;
|
package/dist/Utils/index.js
CHANGED
@@ -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
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|