@zat-design/sisyphus-react 3.4.2-beta.3 → 3.4.2-beta.30
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 +136 -64
- package/dist/less.esm.css +5025 -0
- package/dist/less.esm.js +3 -0
- package/es/ProConfigProvider/index.js +2 -1
- package/es/ProEditTable/components/RenderField/index.js +19 -9
- package/es/ProEditTable/index.js +3 -3
- package/es/ProEditTable/propsType.d.ts +1 -1
- package/es/ProEditTable/utils/config.js +5 -5
- package/es/ProEditTable/utils/index.js +67 -30
- package/es/ProEnum/components/Group.d.ts +2 -0
- package/es/ProEnum/components/Group.js +26 -8
- package/es/ProEnum/index.js +4 -3
- package/es/ProEnum/style/index.less +12 -3
- package/es/ProForm/components/combination/FormList/index.js +4 -2
- package/es/ProForm/components/combination/Group/index.js +11 -4
- package/es/ProForm/components/combination/Group/propsType.d.ts +6 -0
- package/es/ProForm/components/combination/ProTimeLimit/style/index.less +1 -1
- package/es/ProForm/components/render/Render.js +5 -2
- package/es/ProForm/components/render/RenderFields.d.ts +1 -1
- package/es/ProForm/components/render/RenderFields.js +4 -3
- package/es/ProForm/index.js +4 -4
- package/es/ProForm/propsType.d.ts +2 -1
- package/es/ProForm/style/index.less +17 -7
- 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 +1 -1
- package/es/ProForm/utils/index.js +1 -1
- 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 +5 -3
- package/es/ProForm/utils/valueType.d.ts +10 -5
- package/es/ProForm/utils/valueType.js +20 -10
- package/es/ProIcon/config/index.d.ts +2 -1
- package/es/ProIcon/config/index.js +191 -133
- package/es/ProIcon/index.d.ts +0 -1
- package/es/ProIcon/index.js +17 -36
- package/es/ProIcon/propsTypes.d.ts +2 -1
- package/es/ProLayout/components/Layout/Header/style/index.less +1 -1
- package/es/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +0 -1
- package/es/ProLayout/components/Layout/Menu/SideMenu/style/index.less +25 -20
- package/es/ProLayout/components/Layout/Menu/style/index.less +2 -2
- package/es/ProLayout/components/ProCollapse/PropTypes.d.ts +5 -5
- package/es/ProLayout/components/ProCollapse/index.js +22 -6
- package/es/ProLayout/components/ProCollapse/style/index.less +24 -27
- 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 +83 -5
- package/es/ProStep/components/Item/index.js +2 -1
- package/es/ProStep/style/index.less +71 -70
- 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/utils.js +9 -9
- package/es/ProTabs/style/index.less +3 -1
- package/es/ProTree/components/ProTreeSelect/index.js +5 -9
- package/es/assets/catalog.svg +30 -1
- package/es/assets/fold.svg +27 -0
- package/es/locale/en_US.d.ts +3 -0
- package/es/locale/en_US.js +3 -0
- package/es/locale/zh_CN.d.ts +3 -0
- package/es/locale/zh_CN.js +3 -0
- package/es/style/less.less +2 -0
- package/es/style/theme/antd.less +1 -2
- package/lib/ProConfigProvider/index.js +2 -1
- package/lib/ProEditTable/components/RenderField/index.js +19 -9
- package/lib/ProEditTable/index.js +3 -3
- package/lib/ProEditTable/propsType.d.ts +1 -1
- package/lib/ProEditTable/utils/config.js +5 -5
- package/lib/ProEditTable/utils/index.js +67 -30
- package/lib/ProEnum/components/Group.d.ts +2 -0
- package/lib/ProEnum/components/Group.js +26 -8
- package/lib/ProEnum/index.js +4 -3
- package/lib/ProEnum/style/index.less +12 -3
- package/lib/ProForm/components/combination/FormList/index.js +4 -2
- package/lib/ProForm/components/combination/Group/index.js +11 -4
- package/lib/ProForm/components/combination/Group/propsType.d.ts +6 -0
- package/lib/ProForm/components/combination/ProTimeLimit/style/index.less +1 -1
- package/lib/ProForm/components/render/Render.js +5 -2
- package/lib/ProForm/components/render/RenderFields.d.ts +1 -1
- package/lib/ProForm/components/render/RenderFields.js +4 -3
- package/lib/ProForm/index.js +4 -4
- package/lib/ProForm/propsType.d.ts +2 -1
- package/lib/ProForm/style/index.less +17 -7
- 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 +1 -1
- package/lib/ProForm/utils/index.js +2 -2
- 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 +5 -3
- package/lib/ProForm/utils/valueType.d.ts +10 -5
- package/lib/ProForm/utils/valueType.js +20 -10
- package/lib/ProIcon/config/index.d.ts +2 -1
- package/lib/ProIcon/config/index.js +191 -133
- package/lib/ProIcon/index.d.ts +0 -1
- package/lib/ProIcon/index.js +17 -37
- package/lib/ProIcon/propsTypes.d.ts +2 -1
- package/lib/ProLayout/components/Layout/Header/style/index.less +1 -1
- package/lib/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +0 -1
- package/lib/ProLayout/components/Layout/Menu/SideMenu/style/index.less +25 -20
- package/lib/ProLayout/components/Layout/Menu/style/index.less +2 -2
- package/lib/ProLayout/components/ProCollapse/PropTypes.d.ts +5 -5
- package/lib/ProLayout/components/ProCollapse/index.js +20 -6
- package/lib/ProLayout/components/ProCollapse/style/index.less +24 -27
- 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 +83 -5
- package/lib/ProStep/components/Item/index.js +2 -1
- package/lib/ProStep/style/index.less +71 -70
- 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/utils.js +9 -9
- package/lib/ProTabs/style/index.less +3 -1
- package/lib/ProTree/components/ProTreeSelect/index.js +5 -9
- package/lib/assets/catalog.svg +30 -1
- package/lib/assets/fold.svg +27 -0
- package/lib/locale/en_US.d.ts +3 -0
- package/lib/locale/en_US.js +3 -0
- package/lib/locale/zh_CN.d.ts +3 -0
- package/lib/locale/zh_CN.js +3 -0
- package/lib/style/less.less +2 -0
- package/lib/style/theme/antd.less +1 -2
- package/package.json +1 -1
- package/es/ProForm/utils/contrastOriginal.js +0 -24
- package/es/ProIcon/symbolIcon.js +0 -43
- package/lib/ProForm/utils/contrastOriginal.js +0 -30
- package/lib/ProIcon/symbolIcon.js +0 -45
|
@@ -6,37 +6,38 @@
|
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
.pro-step {
|
|
9
|
-
position
|
|
10
|
-
right
|
|
11
|
-
z-index
|
|
12
|
-
min-width
|
|
13
|
-
min-height
|
|
14
|
-
text-align : center;
|
|
15
|
-
background-color: var(--zaui-global-bg, #fff);
|
|
16
|
-
cursor : pointer;
|
|
17
|
-
box-shadow : -1px 0px 5px 0px var(--zaui-shadow, rgba(56,56,56,0.15));
|
|
18
|
-
transition : width .2s;
|
|
9
|
+
position: fixed;
|
|
10
|
+
right: 0;
|
|
11
|
+
z-index: 101;
|
|
12
|
+
min-width: 48px;
|
|
13
|
+
min-height: 48px;
|
|
19
14
|
overflow-x: hidden;
|
|
20
15
|
overflow-y: auto;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
16
|
+
text-align: center;
|
|
17
|
+
background-color: var(--zaui-global-bg, #fff);
|
|
18
|
+
border-radius: 0 0 var(--zaui-border-radius) var(--zaui-border-radius);
|
|
19
|
+
box-shadow: -1px 0px 5px 0px var(--zaui-shadow, rgba(56, 56, 56, 0.15));
|
|
20
|
+
cursor: pointer;
|
|
21
|
+
transition: width 0.2s;
|
|
22
|
+
|
|
23
|
+
> .step-menu {
|
|
24
|
+
display: flex;
|
|
25
|
+
align-items: center;
|
|
26
|
+
width: 100%;
|
|
27
|
+
height: 48px;
|
|
28
|
+
font-size: var(--zaui-font-size-lg, 16px);
|
|
28
29
|
border-bottom: 1px solid var(--zaui-line, #dddddd);
|
|
29
30
|
|
|
30
|
-
|
|
31
|
+
> .menu-icon {
|
|
31
32
|
font-size: var(--zaui-font-size-lg-title, 24px);
|
|
32
|
-
fill
|
|
33
|
+
fill: var(--zaui-brand, #006aff);
|
|
33
34
|
|
|
34
|
-
>div {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
display : flex;
|
|
38
|
-
align-items : center;
|
|
35
|
+
> div {
|
|
36
|
+
display: flex;
|
|
37
|
+
align-items: center;
|
|
39
38
|
justify-content: center;
|
|
39
|
+
width: 48px;
|
|
40
|
+
height: 24px;
|
|
40
41
|
}
|
|
41
42
|
}
|
|
42
43
|
}
|
|
@@ -50,12 +51,12 @@
|
|
|
50
51
|
}
|
|
51
52
|
|
|
52
53
|
.com-menu-item {
|
|
53
|
-
display
|
|
54
|
-
align-items
|
|
54
|
+
display: flex;
|
|
55
|
+
align-items: center;
|
|
55
56
|
justify-content: space-between;
|
|
56
|
-
width
|
|
57
|
-
height
|
|
58
|
-
padding-right
|
|
57
|
+
width: 100%;
|
|
58
|
+
height: 48px;
|
|
59
|
+
padding-right: var(--zaui-space-size-md, 24px);
|
|
59
60
|
|
|
60
61
|
&:hover {
|
|
61
62
|
background-color: rgba(185, 185, 189, 0.1);
|
|
@@ -69,63 +70,63 @@
|
|
|
69
70
|
}
|
|
70
71
|
}
|
|
71
72
|
|
|
72
|
-
|
|
73
|
-
display
|
|
73
|
+
> .menu-item {
|
|
74
|
+
display: flex;
|
|
74
75
|
align-items: center;
|
|
75
76
|
|
|
76
|
-
|
|
77
|
-
display
|
|
78
|
-
align-items
|
|
77
|
+
> .menu-icon {
|
|
78
|
+
display: flex;
|
|
79
|
+
align-items: center;
|
|
79
80
|
justify-content: center;
|
|
80
|
-
width
|
|
81
|
-
height
|
|
81
|
+
width: 48px;
|
|
82
|
+
height: 100%;
|
|
82
83
|
|
|
83
|
-
>svg {
|
|
84
|
-
fill: var(--zaui-brand, #
|
|
84
|
+
> svg {
|
|
85
|
+
fill: var(--zaui-brand, #006aff);
|
|
85
86
|
}
|
|
86
87
|
|
|
87
|
-
|
|
88
|
-
width
|
|
89
|
-
height
|
|
90
|
-
background
|
|
88
|
+
> .dot {
|
|
89
|
+
width: 6px;
|
|
90
|
+
height: 6px;
|
|
91
|
+
background: var(--zaui-brand, #006aff);
|
|
91
92
|
border-radius: 3px;
|
|
92
93
|
|
|
93
94
|
&.errored {
|
|
94
95
|
background: #ff5050;
|
|
95
|
-
fill
|
|
96
|
+
fill: #ff5050;
|
|
96
97
|
}
|
|
97
98
|
|
|
98
99
|
&.disabled {
|
|
99
100
|
background: #939599;
|
|
100
|
-
fill
|
|
101
|
+
fill: #939599;
|
|
101
102
|
}
|
|
102
103
|
}
|
|
103
104
|
|
|
104
105
|
.dot-icon {
|
|
105
|
-
display
|
|
106
|
-
align-items
|
|
106
|
+
display: flex;
|
|
107
|
+
align-items: center;
|
|
107
108
|
justify-content: center;
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
background
|
|
113
|
-
border-radius
|
|
109
|
+
width: 18px;
|
|
110
|
+
height: 18px;
|
|
111
|
+
color: #ffffff;
|
|
112
|
+
font-size: var(--zaui-font-size-sm, 12px);
|
|
113
|
+
background: var(--zaui-brand, #006aff);
|
|
114
|
+
border-radius: 9px;
|
|
114
115
|
|
|
115
116
|
&.errored {
|
|
116
117
|
background: #ff5050;
|
|
117
|
-
fill
|
|
118
|
+
fill: #ff5050;
|
|
118
119
|
}
|
|
119
120
|
|
|
120
121
|
&.disabled {
|
|
121
122
|
background: #939599;
|
|
122
|
-
fill
|
|
123
|
+
fill: #939599;
|
|
123
124
|
}
|
|
124
125
|
}
|
|
125
126
|
}
|
|
126
127
|
|
|
127
|
-
|
|
128
|
-
color: #
|
|
128
|
+
> .menu-name {
|
|
129
|
+
color: #0a0a0a;
|
|
129
130
|
|
|
130
131
|
&.disabled {
|
|
131
132
|
color: #626366;
|
|
@@ -133,26 +134,26 @@
|
|
|
133
134
|
}
|
|
134
135
|
}
|
|
135
136
|
|
|
136
|
-
|
|
137
|
+
> .checked-status {
|
|
137
138
|
height: 18px;
|
|
138
139
|
|
|
139
|
-
>svg {
|
|
140
|
-
fill: var(--zaui-brand, #
|
|
140
|
+
> svg {
|
|
141
|
+
fill: var(--zaui-brand, #006aff);
|
|
141
142
|
}
|
|
142
143
|
|
|
143
144
|
.errorDot {
|
|
144
|
-
display
|
|
145
|
-
align-items
|
|
145
|
+
display: flex;
|
|
146
|
+
align-items: center;
|
|
146
147
|
justify-content: center;
|
|
147
|
-
width
|
|
148
|
-
height
|
|
149
|
-
background
|
|
150
|
-
border-radius
|
|
151
|
-
|
|
152
|
-
>span {
|
|
153
|
-
color
|
|
154
|
-
font-weight
|
|
155
|
-
font-size
|
|
148
|
+
width: 16px;
|
|
149
|
+
height: 16px;
|
|
150
|
+
background: rgba(255, 80, 80, 0.2);
|
|
151
|
+
border-radius: 8px;
|
|
152
|
+
|
|
153
|
+
> span {
|
|
154
|
+
color: #ff5050;
|
|
155
|
+
font-weight: 600;
|
|
156
|
+
font-size: var(--aui-font-size-sm, 12px);
|
|
156
157
|
border-radius: 8px;
|
|
157
158
|
}
|
|
158
159
|
}
|
|
@@ -22,10 +22,10 @@ var RenderColumn = function RenderColumn(props) {
|
|
|
22
22
|
ellipsis = props.ellipsis,
|
|
23
23
|
width = props.width,
|
|
24
24
|
originalValue = props.originalValue,
|
|
25
|
-
|
|
25
|
+
originalDiffTip = props.originalDiffTip;
|
|
26
26
|
if (originalValue !== undefined) {
|
|
27
27
|
var renderNode = value ? node : '-';
|
|
28
|
-
if (ellipsis ||
|
|
28
|
+
if (ellipsis || originalDiffTip) {
|
|
29
29
|
if (ellipsis) {
|
|
30
30
|
renderNode = (0, _jsxRuntime.jsx)(Text, {
|
|
31
31
|
style: {
|
|
@@ -42,7 +42,7 @@ var RenderColumn = function RenderColumn(props) {
|
|
|
42
42
|
style: {
|
|
43
43
|
width: width
|
|
44
44
|
},
|
|
45
|
-
title:
|
|
45
|
+
title: originalDiffTip ? (0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
46
46
|
children: ["\u521D\u59CB\u503C\uFF1A", originalValue, (0, _jsxRuntime.jsx)("br", {}), ellipsis ? "\u5F53\u524D\u503C\uFF1A".concat(currentValue) : undefined]
|
|
47
47
|
}) : node,
|
|
48
48
|
children: renderNode
|
|
@@ -26,7 +26,7 @@ export interface ProTableColumn extends Omit<ColumnType<any>, 'dataIndex'> {
|
|
|
26
26
|
precision?: number;
|
|
27
27
|
code?: string | string[] | ((text: any, record: any) => string);
|
|
28
28
|
copyable?: boolean;
|
|
29
|
-
|
|
29
|
+
originalDiffTip?: boolean;
|
|
30
30
|
prefix?: string | ReactNode | ((value: any, record?: any, index?: number) => any);
|
|
31
31
|
suffix?: string | ReactNode | ((value: any, record?: any, index?: number) => any);
|
|
32
32
|
tooltip?: ReactNode | {
|
package/lib/ProTable/utils.js
CHANGED
|
@@ -64,8 +64,8 @@ var formatColumn = exports.formatColumn = function formatColumn(column, original
|
|
|
64
64
|
prefix = column.prefix,
|
|
65
65
|
suffix = column.suffix,
|
|
66
66
|
dataIndex = column.dataIndex,
|
|
67
|
-
_column$
|
|
68
|
-
|
|
67
|
+
_column$originalDiffT = column.originalDiffTip,
|
|
68
|
+
originalDiffTip = _column$originalDiffT === void 0 ? true : _column$originalDiffT;
|
|
69
69
|
// 前缀处理
|
|
70
70
|
var prefixNode = function prefixNode(value, record, index) {
|
|
71
71
|
if (!prefix) {
|
|
@@ -129,7 +129,7 @@ var formatColumn = exports.formatColumn = function formatColumn(column, original
|
|
|
129
129
|
node: renderValue,
|
|
130
130
|
value: value,
|
|
131
131
|
currentValue: renderValue,
|
|
132
|
-
|
|
132
|
+
originalDiffTip: originalDiffTip
|
|
133
133
|
});
|
|
134
134
|
};
|
|
135
135
|
// 千分位, 千分位带CNY前缀
|
|
@@ -158,7 +158,7 @@ var formatColumn = exports.formatColumn = function formatColumn(column, original
|
|
|
158
158
|
node: node,
|
|
159
159
|
value: value,
|
|
160
160
|
currentValue: renderValue,
|
|
161
|
-
|
|
161
|
+
originalDiffTip: originalDiffTip
|
|
162
162
|
});
|
|
163
163
|
};
|
|
164
164
|
} else if (['datePicker', 'date', 'dateTime', 'dateStartTime', 'dateEndTime', 'dateStartEndTime'].includes(valueType)) {
|
|
@@ -210,7 +210,7 @@ var formatColumn = exports.formatColumn = function formatColumn(column, original
|
|
|
210
210
|
node: node,
|
|
211
211
|
value: value,
|
|
212
212
|
currentValue: renderValue,
|
|
213
|
-
|
|
213
|
+
originalDiffTip: originalDiffTip
|
|
214
214
|
});
|
|
215
215
|
};
|
|
216
216
|
} else if (['enumName', 'enumCodeName'].includes(valueType)) {
|
|
@@ -231,7 +231,7 @@ var formatColumn = exports.formatColumn = function formatColumn(column, original
|
|
|
231
231
|
node: node,
|
|
232
232
|
value: value,
|
|
233
233
|
currentValue: renderValue,
|
|
234
|
-
|
|
234
|
+
originalDiffTip: originalDiffTip
|
|
235
235
|
});
|
|
236
236
|
};
|
|
237
237
|
} else if (precision || prefix || suffix) {
|
|
@@ -257,7 +257,7 @@ var formatColumn = exports.formatColumn = function formatColumn(column, original
|
|
|
257
257
|
node: node,
|
|
258
258
|
value: value,
|
|
259
259
|
currentValue: renderValue,
|
|
260
|
-
|
|
260
|
+
originalDiffTip: originalDiffTip
|
|
261
261
|
});
|
|
262
262
|
};
|
|
263
263
|
} else if (valueType === 'address') {
|
|
@@ -329,7 +329,7 @@ var formatColumn = exports.formatColumn = function formatColumn(column, original
|
|
|
329
329
|
node: value,
|
|
330
330
|
value: value,
|
|
331
331
|
currentValue: value || '-',
|
|
332
|
-
|
|
332
|
+
originalDiffTip: originalDiffTip
|
|
333
333
|
}), suffixNode(value, record, index)]
|
|
334
334
|
});
|
|
335
335
|
};
|
|
@@ -351,7 +351,7 @@ var formatColumn = exports.formatColumn = function formatColumn(column, original
|
|
|
351
351
|
node: node,
|
|
352
352
|
value: value,
|
|
353
353
|
currentValue: value || '-',
|
|
354
|
-
|
|
354
|
+
originalDiffTip: originalDiffTip
|
|
355
355
|
});
|
|
356
356
|
};
|
|
357
357
|
}
|
|
@@ -70,9 +70,11 @@
|
|
|
70
70
|
.pro-tabs-tab {
|
|
71
71
|
.pro-tabs-card {
|
|
72
72
|
.@{ant-prefix}-tag {
|
|
73
|
+
min-width: 22px;
|
|
73
74
|
margin-right: 0;
|
|
74
75
|
padding: 0 var(--zaui-space-size-xs, 4px);
|
|
75
|
-
|
|
76
|
+
text-align: center;
|
|
77
|
+
border-radius: 12px;
|
|
76
78
|
}
|
|
77
79
|
|
|
78
80
|
.@{ant-prefix}-space-item {
|
|
@@ -19,6 +19,8 @@ var _ProConfigProvider = require("../../../ProConfigProvider");
|
|
|
19
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
|
+
/* eslint-disable react/no-danger */
|
|
23
|
+
/* eslint-disable react/jsx-closing-tag-location */
|
|
22
24
|
var SHOW_PARENT = _antd.TreeSelect.SHOW_PARENT;
|
|
23
25
|
var ProTreeSelect = exports.ProTreeSelect = function ProTreeSelect(props, ref) {
|
|
24
26
|
// 全局属性配置在ConfigProvider
|
|
@@ -284,8 +286,7 @@ var ProTreeSelect = exports.ProTreeSelect = function ProTreeSelect(props, ref) {
|
|
|
284
286
|
*/
|
|
285
287
|
var renderTreeNode = function renderTreeNode(node, grade) {
|
|
286
288
|
var children = node.children,
|
|
287
|
-
icon = node.icon
|
|
288
|
-
hideNodeClass = node.hideNodeClass;
|
|
289
|
+
icon = node.icon;
|
|
289
290
|
var labelText = node[label];
|
|
290
291
|
var value = node[code];
|
|
291
292
|
var titleHtml = (0, _jsxRuntime.jsx)("span", {
|
|
@@ -304,10 +305,10 @@ var ProTreeSelect = exports.ProTreeSelect = function ProTreeSelect(props, ref) {
|
|
|
304
305
|
children: [(0, _jsxRuntime.jsx)("span", {
|
|
305
306
|
className: "check-option-text-content",
|
|
306
307
|
children: titleHtml
|
|
307
|
-
}), (0, _jsxRuntime.jsx)("span", {
|
|
308
|
+
}), !disabled ? (0, _jsxRuntime.jsx)("span", {
|
|
308
309
|
className: "check-mark-icon",
|
|
309
310
|
children: (0, _jsxRuntime.jsx)(Icon, {})
|
|
310
|
-
})]
|
|
311
|
+
}) : null]
|
|
311
312
|
});
|
|
312
313
|
if (!children) {
|
|
313
314
|
return (0, _jsxRuntime.jsx)(_antd.TreeSelect.TreeNode, {
|
|
@@ -359,10 +360,6 @@ var ProTreeSelect = exports.ProTreeSelect = function ProTreeSelect(props, ref) {
|
|
|
359
360
|
item[label] = item[label].replace(regExp, "<span class=\"highlight-search-text\">".concat(keyWord, "</span>"));
|
|
360
361
|
}
|
|
361
362
|
currentAllNodeChild.push(item);
|
|
362
|
-
// if (tag || item?.children?.length) {
|
|
363
|
-
// // 如果子节点有匹配项或者自己匹配了那么都加入结果中
|
|
364
|
-
// currentAllNodeChild.push(item);
|
|
365
|
-
// }
|
|
366
363
|
}
|
|
367
364
|
return currentAllNodeChild;
|
|
368
365
|
};
|
|
@@ -475,7 +472,6 @@ var ProTreeSelect = exports.ProTreeSelect = function ProTreeSelect(props, ref) {
|
|
|
475
472
|
var treeProps = (0, _objectSpread2.default)({
|
|
476
473
|
disabled: disabled,
|
|
477
474
|
showSearch: showSearch,
|
|
478
|
-
// filterTreeNode: filterTreeNodeEvent,
|
|
479
475
|
treeDefaultExpandAll: defaultExpandAll,
|
|
480
476
|
treeExpandedKeys: expandedKeys,
|
|
481
477
|
treeCheckable: treeCheckable,
|
package/lib/assets/catalog.svg
CHANGED
|
@@ -1 +1,30 @@
|
|
|
1
|
-
<?xml version="1.0"
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg width="32px" height="32px" viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
+
<title>编组 52@1x</title>
|
|
4
|
+
<defs>
|
|
5
|
+
<rect id="path-1" x="0" y="4" width="24" height="18" rx="2"></rect>
|
|
6
|
+
<filter x="-14.6%" y="-13.9%" width="129.2%" height="138.9%" filterUnits="objectBoundingBox" id="filter-2">
|
|
7
|
+
<feOffset dx="0" dy="1" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
|
|
8
|
+
<feGaussianBlur stdDeviation="1" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
|
|
9
|
+
<feColorMatrix values="0 0 0 0 0.653997356 0 0 0 0 0.779247182 0 0 0 0 1 0 0 0 1 0" type="matrix" in="shadowBlurOuter1"></feColorMatrix>
|
|
10
|
+
</filter>
|
|
11
|
+
</defs>
|
|
12
|
+
<g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
13
|
+
<g id="画板备份-17" transform="translate(-1367, -56)">
|
|
14
|
+
<g id="编组-81" transform="translate(1359, 48)">
|
|
15
|
+
<g id="编组-52" transform="translate(8, 8)">
|
|
16
|
+
<rect id="矩形" x="0" y="0" width="32" height="32"></rect>
|
|
17
|
+
<g id="编组-13" transform="translate(4, 5)">
|
|
18
|
+
<path d="M5.33152162,0 L15,0 C16.1045695,7.78148667e-16 17,0.8954305 17,2 L17,19 C17,20.1045695 16.1045695,21 15,21 L2,21 C0.8954305,21 6.76353751e-17,20.1045695 0,19 L-4.4408921e-16,5.64678021 C-5.05225217e-16,5.14756683 0.186696218,4.666401 0.523402611,4.29783242 L3.85492423,0.651052206 C4.233839,0.236281109 4.76972854,9.91378134e-16 5.33152162,8.8817842e-16 Z" id="矩形" fill="#87F1FC" transform="translate(8.5, 10.5) scale(-1, 1) translate(-8.5, -10.5)"></path>
|
|
19
|
+
<g id="矩形">
|
|
20
|
+
<use fill="black" fill-opacity="1" filter="url(#filter-2)" xlink:href="#path-1"></use>
|
|
21
|
+
<use fill="#4181FF" fill-rule="evenodd" xlink:href="#path-1"></use>
|
|
22
|
+
</g>
|
|
23
|
+
<circle id="椭圆形" fill="#FFFFFF" cx="7.16666667" cy="12.8333333" r="1.5"></circle>
|
|
24
|
+
<circle id="椭圆形" fill="#FFFFFF" cx="16.5" cy="12.8333333" r="1.5"></circle>
|
|
25
|
+
</g>
|
|
26
|
+
</g>
|
|
27
|
+
</g>
|
|
28
|
+
</g>
|
|
29
|
+
</g>
|
|
30
|
+
</svg>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg width="16px" height="15px" viewBox="0 0 16 15" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
+
<title>编组 2</title>
|
|
4
|
+
<defs>
|
|
5
|
+
<linearGradient x1="100%" y1="50%" x2="0%" y2="50%" id="linearGradient-1">
|
|
6
|
+
<stop stop-color="#ADDDFF" stop-opacity="0" offset="0%"></stop>
|
|
7
|
+
<stop stop-color="#5FB3D8" stop-opacity="0" offset="13.9259178%"></stop>
|
|
8
|
+
<stop stop-color="#4181FF" offset="100%"></stop>
|
|
9
|
+
</linearGradient>
|
|
10
|
+
</defs>
|
|
11
|
+
<g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
12
|
+
<g id="画板备份-17" transform="translate(-81, -162)" fill="url(#linearGradient-1)">
|
|
13
|
+
<g id="编组-27" transform="translate(64, 146)">
|
|
14
|
+
<g id="Card_Tittle/带icon备份-4" transform="translate(1, 0)">
|
|
15
|
+
<g id="编组-2" transform="translate(16, 16)">
|
|
16
|
+
<g id="编组">
|
|
17
|
+
<rect id="矩形" x="0" y="0" width="16" height="6" rx="3"></rect>
|
|
18
|
+
</g>
|
|
19
|
+
<g id="编组备份" transform="translate(8, 12) scale(-1, 1) translate(-8, -12)translate(0, 9)">
|
|
20
|
+
<rect id="矩形" x="0" y="0" width="16" height="6" rx="3"></rect>
|
|
21
|
+
</g>
|
|
22
|
+
</g>
|
|
23
|
+
</g>
|
|
24
|
+
</g>
|
|
25
|
+
</g>
|
|
26
|
+
</g>
|
|
27
|
+
</svg>
|
package/lib/locale/en_US.d.ts
CHANGED
package/lib/locale/en_US.js
CHANGED
package/lib/locale/zh_CN.d.ts
CHANGED
package/lib/locale/zh_CN.js
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
// label 超过130px换行
|
|
25
25
|
.@{ant-prefix}-form-item-label {
|
|
26
26
|
flex: 0 0 @zaui-form-label-width;
|
|
27
|
-
padding-right: @zaui-space-size-
|
|
27
|
+
padding-right: @zaui-space-size-md;
|
|
28
28
|
overflow: initial;
|
|
29
29
|
line-height: 1;
|
|
30
30
|
white-space: pre-wrap;
|
|
@@ -673,7 +673,6 @@
|
|
|
673
673
|
width: calc(100% - 18px);
|
|
674
674
|
margin-bottom: 0;
|
|
675
675
|
text-align: right;
|
|
676
|
-
// background: #fff;
|
|
677
676
|
}
|
|
678
677
|
}
|
|
679
678
|
}
|
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
|
-
};
|
package/es/ProIcon/symbolIcon.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
window._iconfont_svg_string_4063056 = '<svg><symbol id="icon-lock" viewBox="0 0 1024 1024"><path d="M752.384 412.1088h-55.6544V300.3904C696.7296 183.6544 608.512 102.4 501.76 102.4 395.0592 102.4 306.8928 183.6544 306.8928 300.3904V407.04H251.1872c-27.8016 0-46.3872 25.344-46.3872 50.7392v385.8432c0 30.464 23.1936 50.7904 46.3872 50.7904h501.248c27.8016 0 46.3872-25.3952 46.3872-50.7904V462.848c0-30.464-18.5856-50.7392-46.4384-50.7392z m-222.72 253.8496v86.272c0 5.12-4.6592 5.12-4.6592 5.12h-41.7792c-4.608 0-4.608-5.12-4.608-5.12v-86.272c-23.2448-10.1888-37.12-30.464-37.12-55.8592 0-35.5328 27.8016-66.048 60.3136-66.048 32.4608 0 60.3136 30.5152 60.3136 66.048 0 25.3952-13.9264 45.6704-32.4608 55.808z m92.7744-253.8496H381.1328V295.3216c0-60.928 55.7056-111.6672 120.6784-111.6672 64.9728 0 120.6272 50.7392 120.6272 111.6672v116.736z" fill="#BCBCBC" ></path></symbol><symbol id="icon-drag" viewBox="0 0 1024 1024"><path d="M670.72 179.2m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z" fill="#939599" ></path><path d="M670.72 506.88m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z" fill="#939599" ></path><path d="M670.72 834.56m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z" fill="#939599" ></path><path d="M343.04 179.2m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z" fill="#939599" ></path><path d="M343.04 506.88m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z" fill="#939599" ></path><path d="M343.04 834.56m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z" fill="#939599" ></path></symbol><symbol id="icon-plus" viewBox="0 0 1024 1024"><path d="M576 64H448v384H64v128h384v384h128V576h384V448H576z" ></path></symbol><symbol id="icon-zengjia" viewBox="0 0 1024 1024"><path d="M939.94 459.073h-377.6V83.519H462.055v375.554h-377.6v100.284h377.6v379.646H562.34V559.357h377.6z" fill="#272636" ></path></symbol><symbol id="icon-dot" viewBox="0 0 1024 1024"><path d="M512 624a112 112 0 1 0 0-224 112 112 0 0 0 0 224z" ></path></symbol><symbol id="icon-solid-close" viewBox="0 0 1024 1024"><path d="M516.707 66.513C272.86 66.513 75.16 264.212 75.16 508.06S272.86 949.607 516.707 949.607 958.254 751.91 958.254 508.06 760.556 66.513 516.707 66.513z m227.067 601.691c18.419 18.42 18.419 48.504 0 66.923s-48.504 18.42-66.923 0L516.707 574.983 356.563 735.127c-18.419 18.42-48.503 18.42-66.923 0s-18.419-48.504 0-66.923L449.784 508.06 289.64 347.916c-18.419-18.419-18.419-48.503 0-66.922 18.42-18.42 48.504-18.42 66.923 0l160.144 160.144 160.144-160.144c18.42-18.42 48.504-18.42 66.923 0 18.419 18.419 18.419 48.503 0 66.922L583.63 508.06l160.144 160.144z" ></path></symbol><symbol id="icon-arrow" viewBox="0 0 1024 1024"><path d="M832 0a192 192 0 0 1 192 192v640a192 192 0 0 1-192 192H192A192 192 0 0 1 0 832V192A192 192 0 0 1 192 0z m0 42.667H192A149.333 149.333 0 0 0 42.667 192v640A149.333 149.333 0 0 0 192 981.333h640A149.333 149.333 0 0 0 981.333 832V192A149.333 149.333 0 0 0 832 42.667z m-94.165 329.386l60.33 60.331L512 718.592 225.835 432.384l60.33-60.33L512 597.887l225.835-225.835z" ></path></symbol><symbol id="icon-delete" viewBox="0 0 1024 1024"><path d="M662.08 121.472v64H361.92v-64z m206.4 159.488v64H155.52v-64z" ></path><path d="M280.512 303.232l-0.064 530.816h460.096V303.232h64v594.88H216.512v-594.88z" ></path><path d="M431.424 440.704v337.728h-64V440.704z m225.152 0v337.728h-64V440.704z" ></path></symbol><symbol id="icon-catalog" viewBox="0 0 1075 1024"><path d="M1044.429 758.323v128.973H313.702V758.272h730.727z m-833.127 0v128.973H71.732V758.272h139.57zM1044.43 447.54v128.922H313.702V447.539h730.727z m-833.127 0v128.922H71.732V447.539h139.57z m833.127-310.784v128.922H313.702V136.704h730.727z m-833.127 0v128.922H71.732V136.704h139.57z" ></path></symbol><symbol id="icon-customColumn" viewBox="0 0 1024 1024"><path d="M170.368 128h0.576c28.288 0 42.368 14.848 42.368 44.608v678.784c0 29.76-14.08 44.608-42.368 44.608h-0.576C142.144 896 128 881.152 128 851.392V172.608c0-29.76 14.08-44.608 42.368-44.608z m682.752 0h0.576c28.224 0 42.368 14.848 42.368 44.608v678.784c0 29.76-14.08 44.608-42.368 44.608h-0.576c-28.288 0-42.368-14.848-42.368-44.608V172.608c0-29.76 14.08-44.608 42.368-44.608z m-453.632 0h225.024c38.784 0 58.176 20.16 58.176 60.416v647.168c0 40.32-19.392 60.416-58.176 60.416H399.488c-38.784 0-58.176-20.16-58.176-60.416V188.416c0-40.32 19.392-60.416 58.176-60.416z" ></path></symbol><symbol id="icon-copy" viewBox="0 0 1024 1024"><path d="M363.746 0h565.883c52.05 0 94.286 42.236 94.286 94.285V660.17c0 52.049-42.237 94.285-94.286 94.285H363.746c-52.05 0-94.286-42.236-94.286-94.285V94.285C269.46 42.236 311.697 0 363.746 0z m0 80.804a13.482 13.482 0 0 0-13.482 13.481V660.17c0 7.423 6.058 13.482 13.482 13.482h565.883c7.424 0 13.482-6.059 13.482-13.482V94.285a13.482 13.482 0 0 0-13.482-13.481H363.746z m309.905 754.54a40.445 40.445 0 1 1 80.803 0v94.37c0 52.05-42.236 94.286-94.285 94.286H94.285C42.236 1023.915 0 981.678 0 929.63V363.745c0-52.05 42.236-94.286 94.285-94.286h94.371a40.445 40.445 0 0 1 0 80.804h-94.37a13.482 13.482 0 0 0-13.482 13.482v565.883c0 7.424 6.058 13.482 13.481 13.482H660.17c7.423 0 13.482-6.058 13.482-13.482v-94.37z" ></path></symbol><symbol id="icon-drag-old" viewBox="0 0 1024 1024"><path d="M358.4 204.8m-51.2 0a51.2 51.2 0 1 0 102.4 0 51.2 51.2 0 1 0-102.4 0Z" ></path><path d="M665.6 204.8m-51.2 0a51.2 51.2 0 1 0 102.4 0 51.2 51.2 0 1 0-102.4 0Z" ></path><path d="M665.6 409.6m-51.2 0a51.2 51.2 0 1 0 102.4 0 51.2 51.2 0 1 0-102.4 0Z" ></path><path d="M358.4 614.4m-51.2 0a51.2 51.2 0 1 0 102.4 0 51.2 51.2 0 1 0-102.4 0Z" ></path><path d="M358.4 819.2m-51.2 0a51.2 51.2 0 1 0 102.4 0 51.2 51.2 0 1 0-102.4 0Z" ></path><path d="M665.6 819.2m-51.2 0a51.2 51.2 0 1 0 102.4 0 51.2 51.2 0 1 0-102.4 0Z" ></path><path d="M358.4 409.6m-51.2 0a51.2 51.2 0 1 0 102.4 0 51.2 51.2 0 1 0-102.4 0Z" ></path><path d="M665.6 614.4m-51.2 0a51.2 51.2 0 1 0 102.4 0 51.2 51.2 0 1 0-102.4 0Z" ></path></symbol><symbol id="icon-disabled" viewBox="0 0 1024 1024"><path d="M752.384 412.1088h-55.6544V300.3904C696.7296 183.6544 608.512 102.4 501.76 102.4 395.0592 102.4 306.8928 183.6544 306.8928 300.3904V407.04H251.1872c-27.8016 0-46.3872 25.344-46.3872 50.7392v385.8432c0 30.464 23.1936 50.7904 46.3872 50.7904h501.248c27.8016 0 46.3872-25.3952 46.3872-50.7904V462.848c0-30.464-18.5856-50.7392-46.4384-50.7392z m-222.72 253.8496v86.272c0 5.12-4.6592 5.12-4.6592 5.12h-41.7792c-4.608 0-4.608-5.12-4.608-5.12v-86.272c-23.2448-10.1888-37.12-30.464-37.12-55.8592 0-35.5328 27.8016-66.048 60.3136-66.048 32.4608 0 60.3136 30.5152 60.3136 66.048 0 25.3952-13.9264 45.6704-32.4608 55.808z m92.7744-253.8496H381.1328V295.3216c0-60.928 55.7056-111.6672 120.6784-111.6672 64.9728 0 120.6272 50.7392 120.6272 111.6672v116.736z" ></path></symbol><symbol id="icon-tip" viewBox="0 0 1024 1024"><path d="M512 19.017a492.983 492.983 0 1 1-0.073 986.039A492.983 492.983 0 0 1 512 19.09z m0 48.786a444.27 444.27 0 1 0 0.073 888.467A444.27 444.27 0 0 0 512 67.803z m22.016 317.367c37.45 3.877 55.15 33.792 48.64 66.707l-78.41 259.072c-1.023 5.924 2.049 11.849 7.315 13.677 5.852 2.048 17.92-5.412 27.648-16.091l47.104-56.613c1.244 9.509-0.878 26.185-0.878 32.549-35.328 53.028-71.314 93.988-131.876 93.988-41.326-6.729-58.222-36.352-49.298-66.56l77.897-257.828c1.901-6.364-1.244-13.02-7.022-15.068-5.778-2.048-17.042 5.413-26.77 16.092l-47.031 56.612c-1.317-9.508-0.146-25.234-0.146-31.597 35.328-53.029 93.403-94.94 132.827-94.94z m40.96-144.823c29.77 0 53.906 21.724 53.906 53.614 0 31.964-24.137 53.614-53.906 53.614a52.297 52.297 0 0 1-53.906-53.614c0-31.89 24.137-53.614 53.906-53.614z" ></path></symbol><symbol id="icon-reset" viewBox="0 0 1024 1024"><path d="M482.464768 117.691733L364.363435 66.696533A49.288533 49.288533 0 0 0 325.314901 157.013333a417.9968 417.9968 0 0 0 53.8624 789.845334 49.288533 49.288533 0 0 0 25.668267-95.163734 319.624533 319.624533 0 0 1-29.559467-608.324266l-7.850666 18.158933a49.152 49.152 0 0 0 26.0096 64.580267 49.288533 49.288533 0 0 0 64.580266-24.9856l50.107734-118.9888a49.425067 49.425067 0 0 0-25.668267-64.512z m429.602133 421.410134A418.884267 418.884267 0 0 0 614.424235 126.839467a49.288533 49.288533 0 1 0-28.398934 94.344533 319.829333 319.829333 0 0 1 56.9344 589.824 49.152 49.152 0 0 0-86.152533-47.240533l-67.106133 109.431466a48.9472 48.9472 0 0 0 16.110933 67.925334l109.294933 67.9936a49.288533 49.288533 0 1 0 50.9952-83.7632l-15.018666-9.352534a418.679467 418.679467 0 0 0 261.051733-376.900266z" ></path></symbol><symbol id="icon-view" viewBox="0 0 1024 1024"><path d="M801.606 104.727a117.667 117.667 0 0 1 117.434 109.94l0.233 7.727v246.598a34.91 34.91 0 0 1-69.493 4.748l-0.325-4.748V222.394c0-24.669-18.619-44.963-42.636-47.57l-5.213-0.279H222.394c-24.669 0-44.963 18.619-47.57 42.636l-0.279 5.213v579.212c0 24.669 18.619 44.963 42.636 47.57l5.213 0.279h243.247a34.91 34.91 0 0 1 4.747 69.492l-4.747 0.326H222.394a117.667 117.667 0 0 1-117.434-109.94l-0.233-7.727V222.394a117.667 117.667 0 0 1 109.94-117.434l7.727-0.233h579.212zM448.559 585.728a34.91 34.91 0 1 1 0 69.818H332.195a34.91 34.91 0 1 1 0-69.818h116.364z m232.727-232.727a34.91 34.91 0 1 1 0 69.818H332.195a34.91 34.91 0 1 1 0-69.818h349.09z" ></path><path d="M699.764 490.356a186.182 186.182 0 1 1 0 372.364 186.182 186.182 0 0 1 0-372.364z m0 69.819a116.364 116.364 0 1 0 0 232.727 116.364 116.364 0 0 0 0-232.727z" ></path><path d="M798.673 769.35a34.91 34.91 0 0 1 49.339 0l82.292 82.246a34.91 34.91 0 1 1-49.338 49.384l-82.293-82.292a34.91 34.91 0 0 1 0-49.338z" ></path></symbol><symbol id="icon-search" viewBox="0 0 1024 1024"><path d="M801.606 104.727a117.667 117.667 0 0 1 117.434 109.94l0.233 7.727v246.598a34.91 34.91 0 0 1-69.493 4.748l-0.325-4.748V222.394c0-24.669-18.619-44.963-42.636-47.57l-5.213-0.279H222.394c-24.669 0-44.963 18.619-47.57 42.636l-0.279 5.213v579.212c0 24.669 18.619 44.963 42.636 47.57l5.213 0.279h243.247a34.91 34.91 0 0 1 4.747 69.492l-4.747 0.326H222.394a117.667 117.667 0 0 1-117.434-109.94l-0.233-7.727V222.394a117.667 117.667 0 0 1 109.94-117.434l7.727-0.233h579.212zM448.559 585.728a34.91 34.91 0 1 1 0 69.818H332.195a34.91 34.91 0 1 1 0-69.818h116.364z m232.727-232.727a34.91 34.91 0 1 1 0 69.818H332.195a34.91 34.91 0 1 1 0-69.818h349.09z" ></path><path d="M699.764 490.356a186.182 186.182 0 1 1 0 372.364 186.182 186.182 0 0 1 0-372.364z m0 69.819a116.364 116.364 0 1 0 0 232.727 116.364 116.364 0 0 0 0-232.727z" ></path><path d="M798.673 769.35a34.91 34.91 0 0 1 49.339 0l82.292 82.246a34.91 34.91 0 1 1-49.338 49.384l-82.293-82.292a34.91 34.91 0 0 1 0-49.338z" ></path></symbol></svg>', function (o) {
|
|
2
|
-
var t = (t = document.getElementsByTagName("script"))[t.length - 1],
|
|
3
|
-
a = t.getAttribute("data-injectcss"),
|
|
4
|
-
t = t.getAttribute("data-disable-injectsvg");
|
|
5
|
-
if (!t) {
|
|
6
|
-
var e,
|
|
7
|
-
_l,
|
|
8
|
-
h,
|
|
9
|
-
i,
|
|
10
|
-
c,
|
|
11
|
-
d = function d(t, a) {
|
|
12
|
-
a.parentNode.insertBefore(t, a);
|
|
13
|
-
};
|
|
14
|
-
if (a && !o.__iconfont__svg__cssinject__) {
|
|
15
|
-
o.__iconfont__svg__cssinject__ = !0;
|
|
16
|
-
try {
|
|
17
|
-
document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>");
|
|
18
|
-
} catch (t) {
|
|
19
|
-
console && console.log(t);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
e = function e() {
|
|
23
|
-
var t,
|
|
24
|
-
a = document.createElement("div");
|
|
25
|
-
a.innerHTML = o._iconfont_svg_string_4063056, (a = a.getElementsByTagName("svg")[0]) && (a.setAttribute("aria-hidden", "true"), a.style.position = "absolute", a.style.width = 0, a.style.height = 0, a.style.overflow = "hidden", a = a, (t = document.body).firstChild ? d(a, t.firstChild) : t.appendChild(a));
|
|
26
|
-
}, document.addEventListener ? ~["complete", "loaded", "interactive"].indexOf(document.readyState) ? setTimeout(e, 0) : (_l = function l() {
|
|
27
|
-
document.removeEventListener("DOMContentLoaded", _l, !1), e();
|
|
28
|
-
}, document.addEventListener("DOMContentLoaded", _l, !1)) : document.attachEvent && (h = e, i = o.document, c = !1, n(), i.onreadystatechange = function () {
|
|
29
|
-
"complete" == i.readyState && (i.onreadystatechange = null, m());
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
function m() {
|
|
33
|
-
c || (c = !0, h());
|
|
34
|
-
}
|
|
35
|
-
function n() {
|
|
36
|
-
try {
|
|
37
|
-
i.documentElement.doScroll("left");
|
|
38
|
-
} catch (t) {
|
|
39
|
-
return void setTimeout(n, 50);
|
|
40
|
-
}
|
|
41
|
-
m();
|
|
42
|
-
}
|
|
43
|
-
}(window);
|
|
@@ -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
|
-
};
|