@zykj2024/much-library 1.1.2-beta.7 → 1.1.4-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.
- package/dist/McContainer/demo/pagination.js +65 -26
- package/dist/McContainer/demo/standard.d.ts +1 -1
- package/dist/McContainer/demo/standard.js +84 -42
- package/dist/McContainer/mock/index.d.ts +21 -0
- package/dist/McContainer/mock/index.js +50 -0
- package/dist/McFonts/index.d.ts +5 -4
- package/dist/McFonts/index.js +5 -8
- package/dist/McThemeConfig/globalStyle.js +21 -1
- package/package.json +3 -2
- package/dist/McFonts/public/FF DIN Pro Bold.otf +0 -0
- package/dist/McFonts/public/SourceHanSansCN-Bold.otf +0 -0
- package/dist/McFonts/public/SourceHanSansCN-Light.otf +0 -0
- package/dist/McFonts/public/SourceHanSansCN-Medium.otf +0 -0
- package/dist/McFonts/public/SourceHanSansCN-Regular.otf +0 -0
@@ -1,3 +1,5 @@
|
|
1
|
+
import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
|
2
|
+
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
1
3
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
2
4
|
/**
|
3
5
|
* title: 分页器配置
|
@@ -8,20 +10,12 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
8
10
|
import { Col, Row, Switch } from 'antd';
|
9
11
|
import { McContainer } from "../..";
|
10
12
|
import { useState } from 'react';
|
13
|
+
import { fetchMockRequest } from "../mock";
|
11
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
12
15
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
13
16
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
14
|
-
var tableData = Array.from({
|
15
|
-
length: 5
|
16
|
-
}, function (_, index) {
|
17
|
-
return {
|
18
|
-
id: index + 1,
|
19
|
-
name: "\u59D3\u540D".concat(index + 1),
|
20
|
-
age: 18 + index
|
21
|
-
};
|
22
|
-
});
|
23
17
|
export default (function () {
|
24
|
-
var _useState = useState(
|
18
|
+
var _useState = useState([]),
|
25
19
|
_useState2 = _slicedToArray(_useState, 2),
|
26
20
|
dataSource = _useState2[0],
|
27
21
|
setDataSource = _useState2[1];
|
@@ -39,13 +33,44 @@ export default (function () {
|
|
39
33
|
setShowPagination = _useState8[1];
|
40
34
|
var columns = [{
|
41
35
|
title: 'ID',
|
42
|
-
dataIndex: 'id'
|
36
|
+
dataIndex: 'id',
|
37
|
+
width: 100
|
43
38
|
}, {
|
44
39
|
title: '姓名',
|
45
|
-
dataIndex: 'name'
|
40
|
+
dataIndex: 'name',
|
41
|
+
width: 100
|
46
42
|
}, {
|
47
43
|
title: '年龄',
|
48
|
-
dataIndex: 'age'
|
44
|
+
dataIndex: 'age',
|
45
|
+
width: 100
|
46
|
+
}, {
|
47
|
+
title: '城市',
|
48
|
+
dataIndex: 'city',
|
49
|
+
width: 100
|
50
|
+
}, {
|
51
|
+
title: '日期',
|
52
|
+
dataIndex: 'date',
|
53
|
+
width: 180
|
54
|
+
}, {
|
55
|
+
title: '爱好',
|
56
|
+
dataIndex: 'funny',
|
57
|
+
width: 100
|
58
|
+
}, {
|
59
|
+
title: '地址',
|
60
|
+
dataIndex: 'address',
|
61
|
+
width: 100
|
62
|
+
}, {
|
63
|
+
title: '电话',
|
64
|
+
dataIndex: 'phone',
|
65
|
+
width: 100
|
66
|
+
}, {
|
67
|
+
title: '邮箱',
|
68
|
+
dataIndex: 'email',
|
69
|
+
width: 100
|
70
|
+
}, {
|
71
|
+
title: '描述',
|
72
|
+
dataIndex: 'desc',
|
73
|
+
width: 100
|
49
74
|
}, {
|
50
75
|
title: '操作',
|
51
76
|
dataIndex: 'option',
|
@@ -56,17 +81,32 @@ export default (function () {
|
|
56
81
|
});
|
57
82
|
}
|
58
83
|
}];
|
59
|
-
var onQuery = function
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
84
|
+
var onQuery = /*#__PURE__*/function () {
|
85
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
86
|
+
var _yield$fetchMockReque, data, total;
|
87
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
88
|
+
while (1) switch (_context.prev = _context.next) {
|
89
|
+
case 0:
|
90
|
+
setLoading(true);
|
91
|
+
_context.next = 3;
|
92
|
+
return fetchMockRequest();
|
93
|
+
case 3:
|
94
|
+
_yield$fetchMockReque = _context.sent;
|
95
|
+
data = _yield$fetchMockReque.data;
|
96
|
+
total = _yield$fetchMockReque.total;
|
97
|
+
setDataSource(data);
|
98
|
+
setTotal(total);
|
99
|
+
setLoading(false);
|
100
|
+
case 9:
|
101
|
+
case "end":
|
102
|
+
return _context.stop();
|
103
|
+
}
|
104
|
+
}, _callee);
|
105
|
+
}));
|
106
|
+
return function onQuery() {
|
107
|
+
return _ref.apply(this, arguments);
|
108
|
+
};
|
109
|
+
}();
|
70
110
|
return /*#__PURE__*/_jsxs(_Fragment, {
|
71
111
|
children: [/*#__PURE__*/_jsx(Row, {
|
72
112
|
children: /*#__PURE__*/_jsxs(Col, {
|
@@ -76,8 +116,7 @@ export default (function () {
|
|
76
116
|
})]
|
77
117
|
})
|
78
118
|
}), /*#__PURE__*/_jsx(McContainer, {
|
79
|
-
height: "
|
80
|
-
immediateQuery: false,
|
119
|
+
height: "300px",
|
81
120
|
loading: loading,
|
82
121
|
onQuery: onQuery,
|
83
122
|
queryRender: null,
|
@@ -1,7 +1,9 @@
|
|
1
|
+
import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
|
2
|
+
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
1
3
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
2
4
|
/**
|
3
5
|
* title: 标准用法
|
4
|
-
* description:
|
6
|
+
* description: 标准用法功能全面,可以直接用于常规页面。设置`autoBackPagination`为`true`时,非第一页删除最后一条数据后,会自动跳转到上一页。
|
5
7
|
* transform: true
|
6
8
|
*/
|
7
9
|
|
@@ -9,27 +11,17 @@ import { Button, Col, Row, Space } from 'antd';
|
|
9
11
|
import { AddOutlined } from 'much-icons';
|
10
12
|
import { McCascader, McContainer, McDateRange, McInput, McPopoverButton } from "../..";
|
11
13
|
import { useEffect, useRef, useState } from 'react';
|
14
|
+
import { deleteMockRequest, fetchMockRequest } from "../mock";
|
12
15
|
import { jsx as _jsx } from "react/jsx-runtime";
|
13
16
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
14
17
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
15
|
-
var tableData = Array.from({
|
16
|
-
length: 21
|
17
|
-
}, function (_, index) {
|
18
|
-
return {
|
19
|
-
id: index + 1,
|
20
|
-
name: "\u59D3\u540D".concat(index + 1),
|
21
|
-
age: 18 + index,
|
22
|
-
city: "\u57CE\u5E02".concat(index + 1),
|
23
|
-
date: "2024-01-0".concat(index + 1, " 12:00:00")
|
24
|
-
};
|
25
|
-
});
|
26
18
|
export default (function () {
|
27
19
|
var mcContainerRef = useRef();
|
28
20
|
var _useState = useState(0),
|
29
21
|
_useState2 = _slicedToArray(_useState, 2),
|
30
22
|
total = _useState2[0],
|
31
23
|
setTotal = _useState2[1];
|
32
|
-
var _useState3 = useState(
|
24
|
+
var _useState3 = useState([]),
|
33
25
|
_useState4 = _slicedToArray(_useState3, 2),
|
34
26
|
dataSource = _useState4[0],
|
35
27
|
setDataSource = _useState4[1];
|
@@ -45,29 +37,70 @@ export default (function () {
|
|
45
37
|
_useState10 = _slicedToArray(_useState9, 2),
|
46
38
|
searchJsonStr = _useState10[0],
|
47
39
|
setSearchJsonStr = _useState10[1];
|
48
|
-
var onDelete = function
|
49
|
-
var
|
50
|
-
|
51
|
-
|
52
|
-
|
40
|
+
var onDelete = /*#__PURE__*/function () {
|
41
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
|
42
|
+
var _mcContainerRef$curre;
|
43
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
44
|
+
while (1) switch (_context.prev = _context.next) {
|
45
|
+
case 0:
|
46
|
+
_context.next = 2;
|
47
|
+
return deleteMockRequest(id);
|
48
|
+
case 2:
|
49
|
+
(_mcContainerRef$curre = mcContainerRef.current) === null || _mcContainerRef$curre === void 0 || _mcContainerRef$curre.query();
|
50
|
+
case 3:
|
51
|
+
case "end":
|
52
|
+
return _context.stop();
|
53
|
+
}
|
54
|
+
}, _callee);
|
55
|
+
}));
|
56
|
+
return function onDelete(_x) {
|
57
|
+
return _ref.apply(this, arguments);
|
58
|
+
};
|
59
|
+
}();
|
53
60
|
var columns = [{
|
54
61
|
title: 'ID',
|
55
|
-
dataIndex: 'id'
|
62
|
+
dataIndex: 'id',
|
63
|
+
width: 100
|
56
64
|
}, {
|
57
65
|
title: '姓名',
|
58
|
-
dataIndex: 'name'
|
66
|
+
dataIndex: 'name',
|
67
|
+
width: 100
|
59
68
|
}, {
|
60
69
|
title: '年龄',
|
61
|
-
dataIndex: 'age'
|
70
|
+
dataIndex: 'age',
|
71
|
+
width: 100
|
62
72
|
}, {
|
63
73
|
title: '城市',
|
64
|
-
dataIndex: 'city'
|
74
|
+
dataIndex: 'city',
|
75
|
+
width: 100
|
65
76
|
}, {
|
66
77
|
title: '日期',
|
67
|
-
dataIndex: 'date'
|
78
|
+
dataIndex: 'date',
|
79
|
+
width: 180
|
80
|
+
}, {
|
81
|
+
title: '爱好',
|
82
|
+
dataIndex: 'funny',
|
83
|
+
width: 100
|
84
|
+
}, {
|
85
|
+
title: '地址',
|
86
|
+
dataIndex: 'address',
|
87
|
+
width: 100
|
88
|
+
}, {
|
89
|
+
title: '电话',
|
90
|
+
dataIndex: 'phone',
|
91
|
+
width: 100
|
92
|
+
}, {
|
93
|
+
title: '邮箱',
|
94
|
+
dataIndex: 'email',
|
95
|
+
width: 100
|
96
|
+
}, {
|
97
|
+
title: '描述',
|
98
|
+
dataIndex: 'desc',
|
99
|
+
width: 100
|
68
100
|
}, {
|
69
101
|
title: '操作',
|
70
102
|
dataIndex: 'option',
|
103
|
+
fixed: 'right',
|
71
104
|
width: 100,
|
72
105
|
render: function render(_, record, index) {
|
73
106
|
return /*#__PURE__*/_jsxs(Space, {
|
@@ -110,23 +143,33 @@ export default (function () {
|
|
110
143
|
name: '姓名1'
|
111
144
|
});
|
112
145
|
}, []);
|
113
|
-
var onQuery = function
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
146
|
+
var onQuery = /*#__PURE__*/function () {
|
147
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(values) {
|
148
|
+
var _yield$fetchMockReque, data, total;
|
149
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
150
|
+
while (1) switch (_context2.prev = _context2.next) {
|
151
|
+
case 0:
|
152
|
+
setSearchJsonStr(JSON.stringify(values !== null && values !== void 0 ? values : {}));
|
153
|
+
setLoading(true);
|
154
|
+
_context2.next = 4;
|
155
|
+
return fetchMockRequest(values);
|
156
|
+
case 4:
|
157
|
+
_yield$fetchMockReque = _context2.sent;
|
158
|
+
data = _yield$fetchMockReque.data;
|
159
|
+
total = _yield$fetchMockReque.total;
|
160
|
+
setDataSource(data || []);
|
161
|
+
setTotal(total || 0);
|
162
|
+
setLoading(false);
|
163
|
+
case 10:
|
164
|
+
case "end":
|
165
|
+
return _context2.stop();
|
166
|
+
}
|
167
|
+
}, _callee2);
|
168
|
+
}));
|
169
|
+
return function onQuery(_x2) {
|
170
|
+
return _ref2.apply(this, arguments);
|
171
|
+
};
|
172
|
+
}();
|
130
173
|
return /*#__PURE__*/_jsxs(_Fragment, {
|
131
174
|
children: [/*#__PURE__*/_jsx(Row, {
|
132
175
|
children: /*#__PURE__*/_jsxs(Col, {
|
@@ -136,9 +179,8 @@ export default (function () {
|
|
136
179
|
})
|
137
180
|
}), /*#__PURE__*/_jsx(McContainer, {
|
138
181
|
ref: mcContainerRef,
|
139
|
-
height: "
|
182
|
+
height: "500px",
|
140
183
|
loading: loading,
|
141
|
-
immediateQuery: false,
|
142
184
|
onQuery: onQuery,
|
143
185
|
queryItems: queryItems,
|
144
186
|
actionBar: /*#__PURE__*/_jsx(Button, {
|
@@ -0,0 +1,21 @@
|
|
1
|
+
export type I_ListItem = {
|
2
|
+
id: number;
|
3
|
+
name?: string;
|
4
|
+
age?: number;
|
5
|
+
city?: string;
|
6
|
+
date?: string;
|
7
|
+
funny?: string;
|
8
|
+
address?: string;
|
9
|
+
phone?: string;
|
10
|
+
email?: string;
|
11
|
+
desc?: string;
|
12
|
+
};
|
13
|
+
/** 列表数据源 */
|
14
|
+
export declare const tableData: I_ListItem[];
|
15
|
+
/** 获取列表数据 */
|
16
|
+
export declare const fetchMockRequest: (values?: any) => Promise<{
|
17
|
+
data: any;
|
18
|
+
total: number;
|
19
|
+
}>;
|
20
|
+
/** 删除某条列表数据 */
|
21
|
+
export declare const deleteMockRequest: (id: number) => Promise<void>;
|
@@ -0,0 +1,50 @@
|
|
1
|
+
/** 列表数据源 */
|
2
|
+
export var tableData = Array.from({
|
3
|
+
length: 21
|
4
|
+
}, function (_, index) {
|
5
|
+
return {
|
6
|
+
id: index + 1,
|
7
|
+
name: "\u59D3\u540D".concat(index + 1),
|
8
|
+
age: 18 + index,
|
9
|
+
city: "\u57CE\u5E02".concat(index + 1),
|
10
|
+
date: "2025-01-0".concat(index + 1, " 12:00:00"),
|
11
|
+
funny: "\u7231\u597D".concat(index + 1),
|
12
|
+
address: "\u5730\u5740".concat(index + 1),
|
13
|
+
phone: "\u7535\u8BDD".concat(index + 1),
|
14
|
+
email: "\u90AE\u7BB1".concat(index + 1),
|
15
|
+
desc: "\u63CF\u8FF0".concat(index + 1)
|
16
|
+
};
|
17
|
+
});
|
18
|
+
|
19
|
+
/** 获取列表数据 */
|
20
|
+
export var fetchMockRequest = function fetchMockRequest(values) {
|
21
|
+
var _ref = values !== null && values !== void 0 ? values : {},
|
22
|
+
current = _ref.current,
|
23
|
+
pageSize = _ref.pageSize;
|
24
|
+
return new Promise(function (resolve) {
|
25
|
+
setTimeout(function () {
|
26
|
+
var data = tableData;
|
27
|
+
if (current && pageSize) {
|
28
|
+
var startIndex = (values.current - 1) * values.pageSize;
|
29
|
+
var endIndex = startIndex + values.pageSize;
|
30
|
+
data = tableData.slice(startIndex, endIndex);
|
31
|
+
}
|
32
|
+
resolve({
|
33
|
+
data: data,
|
34
|
+
total: tableData === null || tableData === void 0 ? void 0 : tableData.length
|
35
|
+
});
|
36
|
+
}, 1000);
|
37
|
+
});
|
38
|
+
};
|
39
|
+
|
40
|
+
/** 删除某条列表数据 */
|
41
|
+
export var deleteMockRequest = function deleteMockRequest(id) {
|
42
|
+
return new Promise(function (resolve) {
|
43
|
+
setTimeout(function () {
|
44
|
+
tableData.splice(tableData.findIndex(function (item) {
|
45
|
+
return item.id === id;
|
46
|
+
}), 1);
|
47
|
+
resolve();
|
48
|
+
}, 1000);
|
49
|
+
});
|
50
|
+
};
|
package/dist/McFonts/index.d.ts
CHANGED
package/dist/McFonts/index.js
CHANGED
@@ -1,10 +1,7 @@
|
|
1
|
-
import { default as Bold } from "./public/SourceHanSansCN-Bold.otf";
|
2
|
-
import { default as Light } from "./public/SourceHanSansCN-Light.otf";
|
3
|
-
import { default as Medium } from "./public/SourceHanSansCN-Medium.otf";
|
4
|
-
import { default as Regular } from "./public/SourceHanSansCN-Regular.otf";
|
5
1
|
export default {
|
6
|
-
Regular: Regular,
|
7
|
-
Bold: Bold,
|
8
|
-
Light: Light,
|
9
|
-
Medium: Medium
|
2
|
+
Regular: 'https://orchardplanet.oss-cn-shenzhen.aliyuncs.com/fonts/SourceHanSansCN-Regular.otf',
|
3
|
+
Bold: 'https://orchardplanet.oss-cn-shenzhen.aliyuncs.com/fonts/SourceHanSansCN-Bold.otf',
|
4
|
+
Light: 'https://orchardplanet.oss-cn-shenzhen.aliyuncs.com/fonts/SourceHanSansCN-Light.otf',
|
5
|
+
Medium: 'https://orchardplanet.oss-cn-shenzhen.aliyuncs.com/fonts/SourceHanSansCN-Medium.otf',
|
6
|
+
Alphanumeric: 'https://orchardplanet.oss-cn-shenzhen.aliyuncs.com/fonts/FF-DIN-Pro-Bold.otf'
|
10
7
|
};
|
@@ -2,10 +2,30 @@ 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 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) {
|
5
|
+
|
6
|
+
// 后续如果需要精确控制字体粗细时再加上那个
|
7
|
+
// @font-face {
|
8
|
+
// font-family: 'SourceHanSansCN';
|
9
|
+
// src: url(${(props) => props.font.Medium});
|
10
|
+
// font-weight: 600;
|
11
|
+
// font-display: swap;
|
12
|
+
// }
|
13
|
+
|
14
|
+
// @font-face {
|
15
|
+
// font-family: 'SourceHanSansCN';
|
16
|
+
// src: url(${(props) => props.font.Bold});
|
17
|
+
// font-weight: 700;
|
18
|
+
// font-display: swap;
|
19
|
+
// }
|
20
|
+
|
21
|
+
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 font-weight: 300;\n font-display: swap;\n}\n\n@font-face {\n font-family: 'SourceHanSansCN';\n src: url(", ");\n font-weight: 400;\n font-display: swap;\n}\n\n@font-face {\n font-family: 'FFDIN';\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
22
|
return props.layout;
|
23
|
+
}, function (props) {
|
24
|
+
return props.font.Light;
|
7
25
|
}, function (props) {
|
8
26
|
return props.font.Regular;
|
27
|
+
}, function (props) {
|
28
|
+
return props.font.Alphanumeric;
|
9
29
|
}, function (props) {
|
10
30
|
return props.theme.colorPrimary;
|
11
31
|
}, function (props) {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@zykj2024/much-library",
|
3
|
-
"version": "1.1.
|
3
|
+
"version": "1.1.4-beta.1",
|
4
4
|
"description": "react library",
|
5
5
|
"license": "MIT",
|
6
6
|
"module": "dist/index.js",
|
@@ -9,7 +9,7 @@
|
|
9
9
|
"dist"
|
10
10
|
],
|
11
11
|
"scripts": {
|
12
|
-
"build": "father build",
|
12
|
+
"build": "BUNDLE_ANALYZE=1 father build",
|
13
13
|
"build:watch": "father dev",
|
14
14
|
"dev": "dumi dev",
|
15
15
|
"dev-build-all": "pnpm -r --parallel run dev & dumi dev",
|
@@ -67,6 +67,7 @@
|
|
67
67
|
"devDependencies": {
|
68
68
|
"@commitlint/cli": "^17.1.2",
|
69
69
|
"@commitlint/config-conventional": "^17.1.0",
|
70
|
+
"@types/html-minifier-terser": "^7.0.2",
|
70
71
|
"@types/lodash": "^4.17.10",
|
71
72
|
"@types/react": "^18.0.0",
|
72
73
|
"@types/react-dom": "^18.0.0",
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|