@zat-design/sisyphus-react 3.4.1 → 3.4.2-beta.10
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/index.esm.css +246 -209
- package/es/ProConfigProvider/index.js +8 -1
- package/es/ProEditLabel/style/index.less +1 -1
- package/es/ProEditTable/components/RenderField/index.js +13 -15
- package/es/ProEditTable/index.js +3 -3
- package/es/ProEditTable/propsType.d.ts +1 -1
- package/es/ProEditTable/style/index.less +1 -1
- package/es/ProEditTable/utils/index.js +42 -26
- package/es/ProEditTable/utils/tools.js +3 -1
- package/es/ProEnum/style/index.less +6 -5
- package/es/ProForm/components/base/DatePicker/index.js +2 -2
- package/es/ProForm/components/base/InputNumber/index.js +3 -0
- package/es/ProForm/components/combination/Group/index.js +17 -3
- package/es/ProForm/components/combination/Group/propsType.d.ts +4 -0
- package/es/ProForm/components/combination/Group/style/index.less +7 -4
- package/es/ProForm/components/combination/Group/utils.d.ts +2 -0
- package/es/ProForm/components/combination/Group/utils.js +10 -0
- package/es/ProForm/components/combination/ProTimeLimit/index.js +8 -2
- package/es/ProForm/components/index.d.ts +0 -1
- package/es/ProForm/components/index.js +1 -1
- package/es/ProForm/components/render/ConfirmWrapper.js +15 -23
- package/es/ProForm/components/render/Render.js +26 -18
- package/es/ProForm/components/render/RenderFields.d.ts +2 -1
- package/es/ProForm/components/render/RenderFields.js +4 -2
- package/es/ProForm/components/render/propsType.d.ts +1 -4
- package/es/ProForm/index.js +8 -6
- package/es/ProForm/propsType.d.ts +3 -1
- package/es/ProForm/utils/{contrastOriginal.d.ts → diffOriginal.d.ts} +2 -1
- package/es/ProForm/utils/diffOriginal.js +61 -0
- package/es/ProForm/utils/index.d.ts +3 -1
- package/es/ProForm/utils/index.js +15 -14
- package/es/ProForm/utils/transformValue.js +2 -2
- package/es/ProForm/utils/useChanged.js +4 -3
- package/es/ProForm/utils/useListChanged.d.ts +1 -1
- package/es/ProForm/utils/useListChanged.js +4 -3
- package/es/ProIcon/config/index.d.ts +4 -0
- package/es/ProIcon/config/index.js +199 -0
- package/es/ProIcon/index.js +77 -31
- package/es/ProIcon/propsTypes.d.ts +23 -1
- package/es/ProIcon/symbolIcon.js +1 -1
- package/es/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +58 -55
- package/es/ProLayout/components/Layout/Menu/SideMenu/style/index.less +25 -20
- package/es/ProLayout/components/Layout/Menu/style/index.less +52 -56
- package/es/ProLayout/components/ProCollapse/style/index.less +17 -9
- package/es/ProLayout/components/ProFooter/index.js +1 -1
- package/es/ProLayout/components/ProFooter/style/index.less +1 -1
- package/es/ProLayout/components/ProHeader/style/index.less +4 -3
- package/es/ProLayout/style/index.less +173 -87
- package/es/ProTable/components/RenderColumn/index.d.ts +1 -1
- package/es/ProTable/components/RenderColumn/index.js +3 -3
- package/es/ProTable/propsType.d.ts +1 -1
- package/es/ProTable/style/index.less +2 -2
- package/es/ProTable/utils.js +9 -9
- package/es/ProTabs/style/index.less +3 -1
- package/es/ProThemeTools/component/PrdTools/index.d.ts +1 -1
- package/es/ProThemeTools/component/PrdTools/index.js +2 -2
- package/es/ProThemeTools/component/PrdTools/style/index.less +1 -1
- package/es/ProThemeTools/index.js +21 -28
- package/es/ProThemeTools/propsType.d.ts +1 -1
- package/es/ProThemeTools/style/index.less +25 -8
- package/es/{ProTreeSelect → ProTree/components/ProTreeSelect}/index.js +2 -2
- package/es/{ProTreeSelect → ProTree/components/ProTreeSelect}/propsType.d.ts +1 -1
- package/es/ProTree/index.js +1 -1
- package/es/ProTreeModal/style/index.less +10 -2
- package/es/ProUpload/style/fileItem.less +2 -2
- package/es/ProUpload/style/index.less +2 -2
- package/es/assets/setting.svg +14 -0
- package/es/style/components.less +0 -1
- package/es/style/theme/antd.less +0 -1
- package/es/style/theme/index.less +2 -2
- package/es/style/theme/tokens.less +2 -2
- package/es/tokens.js +2 -2
- package/lib/ProConfigProvider/index.js +8 -1
- package/lib/ProEditLabel/style/index.less +1 -1
- package/lib/ProEditTable/components/RenderField/index.js +12 -14
- package/lib/ProEditTable/index.js +3 -3
- package/lib/ProEditTable/propsType.d.ts +1 -1
- package/lib/ProEditTable/style/index.less +1 -1
- package/lib/ProEditTable/utils/index.js +42 -26
- package/lib/ProEditTable/utils/tools.js +3 -1
- package/lib/ProEnum/style/index.less +6 -5
- package/lib/ProForm/components/base/DatePicker/index.js +1 -1
- package/lib/ProForm/components/base/InputNumber/index.js +3 -0
- package/lib/ProForm/components/combination/Group/index.js +15 -1
- package/lib/ProForm/components/combination/Group/propsType.d.ts +4 -0
- package/lib/ProForm/components/combination/Group/style/index.less +7 -4
- package/lib/ProForm/components/combination/Group/utils.d.ts +2 -0
- package/lib/ProForm/components/combination/Group/utils.js +11 -1
- package/lib/ProForm/components/combination/ProTimeLimit/index.js +7 -1
- package/lib/ProForm/components/index.d.ts +0 -1
- package/lib/ProForm/components/index.js +0 -7
- package/lib/ProForm/components/render/ConfirmWrapper.js +15 -23
- package/lib/ProForm/components/render/Render.js +25 -17
- package/lib/ProForm/components/render/RenderFields.d.ts +2 -1
- package/lib/ProForm/components/render/RenderFields.js +4 -2
- package/lib/ProForm/components/render/propsType.d.ts +1 -4
- package/lib/ProForm/index.js +7 -5
- package/lib/ProForm/propsType.d.ts +3 -1
- package/lib/ProForm/utils/{contrastOriginal.d.ts → diffOriginal.d.ts} +2 -1
- package/lib/ProForm/utils/diffOriginal.js +68 -0
- package/lib/ProForm/utils/index.d.ts +3 -1
- package/lib/ProForm/utils/index.js +16 -15
- package/lib/ProForm/utils/transformValue.js +1 -1
- package/lib/ProForm/utils/useChanged.js +4 -3
- package/lib/ProForm/utils/useListChanged.d.ts +1 -1
- package/lib/ProForm/utils/useListChanged.js +4 -3
- package/lib/ProIcon/config/index.d.ts +4 -0
- package/lib/ProIcon/config/index.js +205 -0
- package/lib/ProIcon/index.js +77 -31
- package/lib/ProIcon/propsTypes.d.ts +23 -1
- package/lib/ProIcon/symbolIcon.js +1 -1
- package/lib/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +58 -55
- package/lib/ProLayout/components/Layout/Menu/SideMenu/style/index.less +25 -20
- package/lib/ProLayout/components/Layout/Menu/style/index.less +52 -56
- package/lib/ProLayout/components/ProCollapse/style/index.less +17 -9
- package/lib/ProLayout/components/ProFooter/index.js +1 -1
- package/lib/ProLayout/components/ProFooter/style/index.less +1 -1
- package/lib/ProLayout/components/ProHeader/style/index.less +4 -3
- package/lib/ProLayout/style/index.less +173 -87
- package/lib/ProTable/components/RenderColumn/index.d.ts +1 -1
- package/lib/ProTable/components/RenderColumn/index.js +3 -3
- package/lib/ProTable/propsType.d.ts +1 -1
- package/lib/ProTable/style/index.less +2 -2
- package/lib/ProTable/utils.js +9 -9
- package/lib/ProTabs/style/index.less +3 -1
- package/lib/ProThemeTools/component/PrdTools/index.d.ts +1 -1
- package/lib/ProThemeTools/component/PrdTools/index.js +2 -2
- package/lib/ProThemeTools/component/PrdTools/style/index.less +1 -1
- package/lib/ProThemeTools/index.js +19 -27
- package/lib/ProThemeTools/propsType.d.ts +1 -1
- package/lib/ProThemeTools/style/index.less +25 -8
- package/lib/{ProTreeSelect → ProTree/components/ProTreeSelect}/index.js +2 -2
- package/lib/{ProTreeSelect → ProTree/components/ProTreeSelect}/propsType.d.ts +1 -1
- package/lib/ProTree/index.js +1 -1
- package/lib/ProTreeModal/style/index.less +10 -2
- package/lib/ProUpload/style/fileItem.less +2 -2
- package/lib/ProUpload/style/index.less +2 -2
- package/lib/assets/setting.svg +14 -0
- package/lib/style/components.less +0 -1
- package/lib/style/theme/antd.less +0 -1
- package/lib/style/theme/index.less +2 -2
- package/lib/style/theme/tokens.less +2 -2
- package/lib/tokens.js +2 -2
- package/package.json +1 -1
- package/es/ProForm/utils/contrastOriginal.js +0 -24
- package/lib/ProForm/utils/contrastOriginal.js +0 -30
- /package/es/{ProTreeSelect → ProTree/components/ProTreeSelect}/index.d.ts +0 -0
- /package/es/{ProTreeSelect → ProTree/components/ProTreeSelect}/propsType.js +0 -0
- /package/es/{ProTreeSelect → ProTree/components/ProTreeSelect}/style/index.less +0 -0
- /package/lib/{ProTreeSelect → ProTree/components/ProTreeSelect}/index.d.ts +0 -0
- /package/lib/{ProTreeSelect → ProTree/components/ProTreeSelect}/propsType.js +0 -0
- /package/lib/{ProTreeSelect → ProTree/components/ProTreeSelect}/style/index.less +0 -0
|
@@ -5,18 +5,35 @@
|
|
|
5
5
|
|
|
6
6
|
.pro-theme-tools {
|
|
7
7
|
display: flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
justify-content: center;
|
|
10
|
+
width: 34px;
|
|
11
|
+
height: 34px;
|
|
12
|
+
background: #d8e6ff;
|
|
13
|
+
border-radius: var(--zaui-border-radius, 8px);
|
|
14
|
+
cursor: pointer;
|
|
15
|
+
|
|
16
|
+
.setting-icon {
|
|
17
|
+
margin-top: -1px;
|
|
18
|
+
div {
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
justify-content: center;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
8
24
|
|
|
9
25
|
&.pro-theme-tools-follow {
|
|
26
|
+
background: var(--ant-primary-1);
|
|
10
27
|
svg {
|
|
11
28
|
color: var(--zaui-brand, #006aff);
|
|
12
29
|
}
|
|
13
30
|
}
|
|
14
31
|
|
|
15
32
|
.anticon {
|
|
16
|
-
color: var(--zaui-
|
|
33
|
+
color: var(--zaui-text, #343434);
|
|
17
34
|
|
|
18
35
|
svg {
|
|
19
|
-
font-size:
|
|
36
|
+
font-size: 20px;
|
|
20
37
|
}
|
|
21
38
|
}
|
|
22
39
|
}
|
|
@@ -36,16 +53,16 @@
|
|
|
36
53
|
|
|
37
54
|
.copy-btn {
|
|
38
55
|
position: absolute;
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
56
|
+
bottom: 20px;
|
|
57
|
+
left: 32px;
|
|
58
|
+
z-index: 10;
|
|
59
|
+
width: calc(100% - 64px);
|
|
43
60
|
}
|
|
44
61
|
|
|
45
62
|
.pro-theme-tools-box {
|
|
46
|
-
display
|
|
63
|
+
display: flex;
|
|
64
|
+
flex-wrap: wrap;
|
|
47
65
|
justify-content: space-between;
|
|
48
|
-
flex-wrap : wrap;
|
|
49
66
|
}
|
|
50
67
|
|
|
51
68
|
.pro-theme-tools-space {
|
|
@@ -15,8 +15,8 @@ var _antd = require("antd");
|
|
|
15
15
|
var _classnames3 = _interopRequireDefault(require("classnames"));
|
|
16
16
|
var _react = require("react");
|
|
17
17
|
var _lodash = require("lodash");
|
|
18
|
-
var _ProConfigProvider = require("
|
|
19
|
-
var _Container = _interopRequireDefault(require("
|
|
18
|
+
var _ProConfigProvider = require("../../../ProConfigProvider");
|
|
19
|
+
var _Container = _interopRequireDefault(require("../../../ProForm/components/Container"));
|
|
20
20
|
var _excluded = ["disabled", "code", "dataSource", "defaultDisableValue", "onChange", "useRequest", "transformResponse", "fieldNames", "tooltip", "showSearch", "filterTreeNode", "treeNodeFilterProp", "defaultExpandAll", "expandedKeys", "treeCheckable", "onSearch", "otherProps", "width", "dropdownStyle", "popupClassName", "style", "allowClear", "listHeight", "showCodeName", "className"],
|
|
21
21
|
_excluded2 = ["children"];
|
|
22
22
|
var SHOW_PARENT = _antd.TreeSelect.SHOW_PARENT;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { TreeSelectProps } from 'antd';
|
|
3
3
|
import { Service, Options, Result } from 'ahooks/lib/useRequest/src/types';
|
|
4
|
-
import { ProFormOtherProps } from '
|
|
4
|
+
import { ProFormOtherProps } from '../../../ProForm/propsType';
|
|
5
5
|
export interface DataProps {
|
|
6
6
|
label: string;
|
|
7
7
|
value?: string;
|
package/lib/ProTree/index.js
CHANGED
|
@@ -8,7 +8,7 @@ exports.default = void 0;
|
|
|
8
8
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
9
9
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
10
|
var _ProTree = _interopRequireDefault(require("./components/ProTree"));
|
|
11
|
-
var _ProTreeSelect = _interopRequireDefault(require("
|
|
11
|
+
var _ProTreeSelect = _interopRequireDefault(require("./components/ProTreeSelect"));
|
|
12
12
|
/* eslint-disable jsx-a11y/anchor-is-valid */
|
|
13
13
|
/*
|
|
14
14
|
*@Date: 2023-07-11 16:07:12
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
font-size: var(--zaui-font-size, 14px);
|
|
54
54
|
line-height: 20px;
|
|
55
55
|
border: 1px solid #e6e6e6;
|
|
56
|
-
border-radius: var(--zaui-border-radius,
|
|
56
|
+
border-radius: var(--zaui-border-radius, 8px);
|
|
57
57
|
|
|
58
58
|
&:first-child {
|
|
59
59
|
margin-right: var(--zaui-space-size-md, 16px);
|
|
@@ -222,6 +222,14 @@
|
|
|
222
222
|
.pro-transfer-right {
|
|
223
223
|
.checked-item {
|
|
224
224
|
margin: var(--zaui-space-size-sm, 8px) 0;
|
|
225
|
+
&.dragable {
|
|
226
|
+
.ant-tag {
|
|
227
|
+
& > span:first-child {
|
|
228
|
+
padding: 8px 0;
|
|
229
|
+
cursor: move;
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
225
233
|
|
|
226
234
|
&:first-child {
|
|
227
235
|
margin-top: 0;
|
|
@@ -238,7 +246,7 @@
|
|
|
238
246
|
font-size: var(--zaui-font-size, 14px);
|
|
239
247
|
background: #f2f2f2;
|
|
240
248
|
border: none;
|
|
241
|
-
border-radius: var(--zaui-border-radius,
|
|
249
|
+
border-radius: var(--zaui-border-radius, 8px);
|
|
242
250
|
|
|
243
251
|
.pro-tooltip {
|
|
244
252
|
flex: 1;
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
line-height: 16px;
|
|
13
13
|
&:hover {
|
|
14
14
|
background: #F8F9FA;
|
|
15
|
-
border-radius: var(--zaui-border-radius,
|
|
15
|
+
border-radius: var(--zaui-border-radius, 8px);
|
|
16
16
|
color: var(--zaui-brand);
|
|
17
17
|
.file-actions-wrap {
|
|
18
18
|
.file-actions{
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
justify-content: center;
|
|
94
94
|
&:hover {
|
|
95
95
|
background: #F8F9FA;
|
|
96
|
-
border-radius: var(--zaui-border-radius,
|
|
96
|
+
border-radius: var(--zaui-border-radius, 8px);
|
|
97
97
|
}
|
|
98
98
|
&:hover,&.file-box-error {
|
|
99
99
|
.file-actions-wrap {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
.pro-upload-dragger {
|
|
9
9
|
.pro-upload-handle-box {
|
|
10
10
|
background : #F8F9FA;
|
|
11
|
-
border-radius: var(--zaui-border-radius,
|
|
11
|
+
border-radius: var(--zaui-border-radius, 8px);
|
|
12
12
|
padding : var(--zaui-space-size-sm, 8px);
|
|
13
13
|
|
|
14
14
|
.@{ant-prefix}-upload.@{ant-prefix}-upload-drag {
|
|
@@ -178,7 +178,7 @@
|
|
|
178
178
|
text-align : center;
|
|
179
179
|
line-height : 32px;
|
|
180
180
|
background : #FFFFFF;
|
|
181
|
-
border-radius: var(--zaui-border-radius,
|
|
181
|
+
border-radius: var(--zaui-border-radius, 8px);
|
|
182
182
|
border : 1px solid #DCDCDC;
|
|
183
183
|
|
|
184
184
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg width="21px" height="21px" viewBox="0 0 22 21" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
+
<title>icon-settings</title>
|
|
4
|
+
<g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
5
|
+
<g id="画板备份-17" transform="translate(-1223, -14)" fill="#231F20" fill-rule="nonzero" stroke="#333333" stroke-width="0.3">
|
|
6
|
+
<g id="编组-2" transform="translate(1209.2372, 0)">
|
|
7
|
+
<g id="icon-settings" transform="translate(14.4202, 15)">
|
|
8
|
+
<path d="M20.3848055,7.53659573 C20.2624144,6.90517801 19.8656126,6.49687157 19.3574341,6.49687157 L19.2693187,6.49687157 C17.8961096,6.49687157 16.7791849,5.40670117 16.7791849,4.0659785 C16.7791849,3.64243545 16.9874064,3.15949962 16.9954426,3.14030349 C17.2488001,2.58384094 17.0543916,1.90192685 16.5418484,1.55193559 L13.9650884,0.151544503 L13.9272182,0.133451014 C13.4117224,-0.0847484644 12.7061572,0.0549122231 12.3217819,0.445776738 C12.0436226,0.725799811 11.0846741,1.52424401 10.3529464,1.52424401 C9.61169334,1.52424401 8.65061387,0.709786336 8.37104252,0.424450467 C7.98733476,0.0307290821 7.28906108,-0.117076194 6.76773716,0.100747395 L4.09924158,1.52780256 L4.05918911,1.55268737 C3.54659457,1.90127525 3.35146717,2.5831643 3.60341257,3.13749673 C3.61211629,3.15777047 3.82110799,3.63677181 3.82110799,4.06600356 C3.82110799,5.40672622 2.70418334,6.49689663 1.33099995,6.49689663 L1.2268892,6.49689663 C0.73468034,6.49689663 0.337852817,6.90517801 0.215538765,7.53662079 C0.206424254,7.58105259 0,8.64957096 0,9.50630527 C0,10.3619369 0.206424254,11.4300794 0.215538765,11.4741603 C0.337852842,12.105979 0.73468034,12.5146363 1.24288452,12.5146363 L1.33099995,12.5146363 C2.70418336,12.5146363 3.82110799,13.6048318 3.82110799,14.9451535 C3.82110799,15.3715534 3.61214195,15.8526849 3.60413145,15.8711543 C3.35149282,16.4286944 3.54518244,17.1095309 4.05628784,17.457768 L6.58426601,18.8421957 L6.62285501,18.8592617 C7.1456424,19.0838515 7.85261977,18.9374246 8.23488975,18.5295191 C8.58799332,18.1570989 9.54475946,17.3838403 10.2473465,17.3838403 C11.0089339,17.3838403 11.9897315,18.249471 12.2722554,18.5536271 C12.5328788,18.8322217 12.9333521,19 13.3432737,19 C13.5347553,19 13.7160441,18.962986 13.8820564,18.8933687 L16.5032593,17.4834046 L16.5418483,17.4591713 C17.0543915,17.109556 17.2495446,16.4287195 16.9969316,15.8740362 C16.9881766,15.8534116 16.7792105,15.3743852 16.7792105,14.9451785 C16.7792105,13.6048568 17.8961352,12.5146614 19.2693442,12.5146614 L19.3720429,12.5146614 C19.8649193,12.5146614 20.26244,12.1060041 20.3848054,11.4741854 C20.3935348,11.4301045 20.6002928,10.361962 20.6002928,9.50633035 C20.6002928,8.64954589 20.3935349,7.58102751 20.3848055,7.53659573 M19.1062589,9.50628019 C19.1062589,10.0598859 18.9933931,10.7712959 18.9416844,11.0683599 C16.8818579,11.2332312 15.2851253,12.9132945 15.2851253,14.9451284 C15.2851253,15.518657 15.471549,16.0680024 15.5705761,16.3206848 L13.3345445,17.5259819 C13.2245799,17.413712 12.8998469,17.0938682 12.457909,16.7726211 C11.6817384,16.2111966 10.9375841,15.9244072 10.2473209,15.9244072 C9.56291156,15.9244072 8.82463676,16.2040795 8.05211198,16.7584119 C7.61233077,17.0711135 7.29198807,17.3823867 7.17984115,17.4975135 L5.0290237,16.3220881 C5.13387902,16.056625 5.31519344,15.5143716 5.31519344,14.9451284 C5.31519344,12.9132945 3.71846079,11.2332312 1.65937889,11.0683599 C1.60695125,10.7712959 1.49408545,10.0599109 1.49408545,9.50628019 C1.49408545,8.95157185 1.60695125,8.23983608 1.65937889,7.94277203 C3.71846079,7.77825158 5.31519344,6.09783742 5.31519344,4.06600356 C5.31519344,3.4956827 5.12879543,2.94455798 5.02976827,2.69225151 L7.32112879,1.46312209 C7.42087485,1.56050617 7.74779025,1.8728319 8.1948374,2.18340342 C8.95645045,2.71392862 9.68168251,2.98257437 10.3529721,2.98257437 C11.0177147,2.98257437 11.7378118,2.71891561 12.4943156,2.19869017 C12.9450086,1.8895471 13.2712051,1.58148161 13.3658419,1.49442234 L15.5712693,2.69012142 C15.4715233,2.94099944 15.2850996,3.4903449 15.2850996,4.06600358 C15.2850996,6.09783744 16.8818322,7.7782516 18.9416587,7.94277205 C18.9933931,8.2405127 19.1062589,8.95513042 19.1062589,9.50628019" id="形状"></path>
|
|
9
|
+
<path d="M10.3001356,6.5 C8.59640655,6.5 7.21010249,7.84598945 7.21010249,9.50014713 C7.21010249,11.1545781 8.5964282,12.5 10.3001356,12.5 C12.0038646,12.5 13.3901903,11.1545781 13.3901903,9.50014713 C13.3901903,7.84598945 12.0038646,6.5 10.3001356,6.5 M12.1303626,9.50014713 C12.1303626,10.4798072 11.3095002,11.276765 10.3001356,11.276765 C9.29079259,11.276765 8.47053634,10.4798072 8.47053634,9.50014713 C8.47053634,8.52105462 9.29079259,7.72378156 10.3001356,7.72378156 C11.3095002,7.72378156 12.1303626,8.52105462 12.1303626,9.50014713" id="形状"></path>
|
|
10
|
+
</g>
|
|
11
|
+
</g>
|
|
12
|
+
</g>
|
|
13
|
+
</g>
|
|
14
|
+
</svg>
|
|
@@ -56,8 +56,8 @@
|
|
|
56
56
|
--zaui-table-nested-bg : #fafcfe;
|
|
57
57
|
--zaui-contract-bg : #fffaa1; // 对比背景色
|
|
58
58
|
--zaui-form-label-width : 130px; // 8个全角字符宽度
|
|
59
|
-
--zaui-border-radius :
|
|
60
|
-
--zaui-border-radius-card :
|
|
59
|
+
--zaui-border-radius : 8px;
|
|
60
|
+
--zaui-border-radius-card : 4px;
|
|
61
61
|
--zaui-font-size-title : 16px;
|
|
62
62
|
--zaui-font-size-card-title : var(--zaui-font-size-title);
|
|
63
63
|
--zaui-font-size : 14px;
|
|
@@ -56,8 +56,8 @@
|
|
|
56
56
|
@zaui-form-required-after: var(--zaui-form-required-after; inline);
|
|
57
57
|
@zaui-form-required-before: var(--zaui-form-required-before; none);
|
|
58
58
|
@zaui-form-label-width: var(--zaui-form-label-width; 130px);
|
|
59
|
-
@zaui-border-radius: var(--zaui-border-radius;
|
|
60
|
-
@zaui-border-radius-card: var(--zaui-border-radius-card;
|
|
59
|
+
@zaui-border-radius: var(--zaui-border-radius; 8px);
|
|
60
|
+
@zaui-border-radius-card: var(--zaui-border-radius-card; 4px);
|
|
61
61
|
@zaui-font-size-title:
|
|
62
62
|
calc(var(--zaui-font-size-title; 16px) + var(--zaui-base-font-size; 0px));
|
|
63
63
|
@zaui-font-size-card-title:
|
package/lib/tokens.js
CHANGED
|
@@ -59,8 +59,8 @@ var tokens = {
|
|
|
59
59
|
'@zaui-form-required-after': 'var(--zaui-form-required-after, inline)',
|
|
60
60
|
'@zaui-form-required-before': 'var(--zaui-form-required-before, none)',
|
|
61
61
|
'@zaui-form-label-width': 'var(--zaui-form-label-width, 130px)',
|
|
62
|
-
'@zaui-border-radius': 'var(--zaui-border-radius,
|
|
63
|
-
'@zaui-border-radius-card': 'var(--zaui-border-radius-card,
|
|
62
|
+
'@zaui-border-radius': 'var(--zaui-border-radius, 8px)',
|
|
63
|
+
'@zaui-border-radius-card': 'var(--zaui-border-radius-card, 4px)',
|
|
64
64
|
'@zaui-font-size-title': 'calc(var(--zaui-font-size-title, 16px) + var(--zaui-base-font-size, 0px))',
|
|
65
65
|
'@zaui-font-size-card-title': 'calc(var(--zaui-font-size-card-title, 16px) + var(--zaui-base-font-size, 0px))',
|
|
66
66
|
'@zaui-font-size': 'calc(var(--zaui-font-size, 14px) + var(--zaui-base-font-size, 0px))',
|
package/package.json
CHANGED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { isEqual, isFunction } from 'lodash';
|
|
2
|
-
var nullValue = [null, undefined, '']; // 输入框空值时可能存在的三种值 视为相等
|
|
3
|
-
export var contrastOriginal = function contrastOriginal(params) {
|
|
4
|
-
var originalValue = params.originalValue,
|
|
5
|
-
value = params.value,
|
|
6
|
-
equalWith = params.equalWith;
|
|
7
|
-
// 支持传入自定义比较事件
|
|
8
|
-
if (isFunction(equalWith)) {
|
|
9
|
-
return !equalWith(originalValue, value);
|
|
10
|
-
}
|
|
11
|
-
if (Array.isArray(originalValue)) {
|
|
12
|
-
return originalValue.some(function (valueItem, index) {
|
|
13
|
-
// 如果两个值有一个不是空值, 则进行深比较
|
|
14
|
-
if (!nullValue.includes(value === null || value === void 0 ? void 0 : value[index]) || !nullValue.includes(valueItem)) {
|
|
15
|
-
return !isEqual(value === null || value === void 0 ? void 0 : value[index], valueItem);
|
|
16
|
-
}
|
|
17
|
-
return false;
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
if (!nullValue.includes(value) || !nullValue.includes(originalValue)) {
|
|
21
|
-
return !isEqual(value, originalValue);
|
|
22
|
-
}
|
|
23
|
-
return false;
|
|
24
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.contrastOriginal = void 0;
|
|
7
|
-
var _lodash = require("lodash");
|
|
8
|
-
var nullValue = [null, undefined, '']; // 输入框空值时可能存在的三种值 视为相等
|
|
9
|
-
var contrastOriginal = exports.contrastOriginal = function contrastOriginal(params) {
|
|
10
|
-
var originalValue = params.originalValue,
|
|
11
|
-
value = params.value,
|
|
12
|
-
equalWith = params.equalWith;
|
|
13
|
-
// 支持传入自定义比较事件
|
|
14
|
-
if ((0, _lodash.isFunction)(equalWith)) {
|
|
15
|
-
return !equalWith(originalValue, value);
|
|
16
|
-
}
|
|
17
|
-
if (Array.isArray(originalValue)) {
|
|
18
|
-
return originalValue.some(function (valueItem, index) {
|
|
19
|
-
// 如果两个值有一个不是空值, 则进行深比较
|
|
20
|
-
if (!nullValue.includes(value === null || value === void 0 ? void 0 : value[index]) || !nullValue.includes(valueItem)) {
|
|
21
|
-
return !(0, _lodash.isEqual)(value === null || value === void 0 ? void 0 : value[index], valueItem);
|
|
22
|
-
}
|
|
23
|
-
return false;
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
if (!nullValue.includes(value) || !nullValue.includes(originalValue)) {
|
|
27
|
-
return !(0, _lodash.isEqual)(value, originalValue);
|
|
28
|
-
}
|
|
29
|
-
return false;
|
|
30
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|