@cloudbase/weda-ui 3.4.11-alpha.1 → 3.4.12
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/configs/components/common/form-input-required.js +3 -3
- package/dist/configs/components/dataView.js +20 -10
- package/dist/configs/components/form-checkbox.js +15 -2
- package/dist/configs/components/form-email.js +17 -2
- package/dist/configs/components/form-input.js +17 -2
- package/dist/configs/components/form-phone.js +17 -2
- package/dist/configs/components/form-radio.js +15 -2
- package/dist/configs/components/form-select-multiple.js +362 -0
- package/dist/configs/components/form-switch.js +15 -2
- package/dist/configs/components/form-text-area.js +15 -2
- package/dist/configs/components/form-url.js +17 -2
- package/dist/configs/components/listView.js +32 -49
- package/dist/configs/components/table.json +1 -54
- package/dist/configs/components/wd-bubble.js +46 -8
- package/dist/configs/components/wd-checkbox.js +464 -0
- package/dist/configs/components/wd-form.js +66 -10
- package/dist/configs/components/wd-input-email.js +37 -0
- package/dist/configs/components/wd-input-phone.js +43 -0
- package/dist/configs/components/wd-input-url.js +37 -0
- package/dist/configs/components/wd-input.js +94 -0
- package/dist/configs/components/wd-official-account.js +87 -0
- package/dist/configs/components/wd-radio.js +443 -0
- package/dist/configs/components/wd-switch.js +315 -0
- package/dist/configs/components/wd-table.js +1 -54
- package/dist/configs/components/wd-textarea.js +82 -0
- package/dist/configs/components/wd-tree.js +443 -0
- package/dist/configs/index.js +24 -1
- package/dist/configs/type-utils/type-form.js +681 -0
- package/dist/docs/common/components/methods-view.js +1 -1
- package/dist/docs/common/components/properties-view.js +3 -1
- package/dist/docs/common/format.js +7 -7
- package/dist/docs/common/tableView.js +3 -1
- package/dist/enum/index.js +196 -0
- package/dist/style/index.scss +1 -1
- package/dist/web/components/calendar/index.js +1 -1
- package/dist/web/components/customer-service/customer-service.js +19 -2
- package/dist/web/components/dataView/index.js +16 -3
- package/dist/web/components/flow/common/hooks/useCommonFlowData/flow-get.js +5 -1
- package/dist/web/components/flow/common/request.js +5 -5
- package/dist/web/components/flow/modules/operations/controls-items/flow-task-info-modal.js +8 -16
- package/dist/web/components/form/enumSelect/MultipleSelect.js +1 -0
- package/dist/web/components/form/enumSelect/SelectContainer.js +1 -0
- package/dist/web/components/form/formcell/index.css +13 -1
- package/dist/web/components/form/formcell/index.js +1 -1
- package/dist/web/components/form/location/components/LocationH5/location.h5.js +1 -1
- package/dist/web/components/form/location/components/LocationPC/Header.js +1 -0
- package/dist/web/components/form/location/index.js +1 -0
- package/dist/web/components/form/select/h5.js +8 -7
- package/dist/web/components/form/select/index.js +9 -9
- package/dist/web/components/form/select/region/index.js +1 -1
- package/dist/web/components/form/selectMultiple/dropdown-select/h5.js +111 -0
- package/dist/web/components/form/selectMultiple/dropdown-select/index.css +270 -0
- package/dist/web/components/form/selectMultiple/dropdown-select/index.js +206 -0
- package/dist/web/components/form/selectMultiple/dropdown-select/pc.js +115 -0
- package/dist/web/components/form/selectMultiple/dropdown-select/ui.js +113 -0
- package/dist/web/components/form/selectMultiple/h5.js +40 -0
- package/dist/web/components/form/selectMultiple/index.js +94 -0
- package/dist/web/components/form/selectMultiple/request.js +76 -0
- package/dist/web/components/form/selectMultiple/status/allEmpty.js +5 -0
- package/dist/web/components/form/selectMultiple/status/empty.js +19 -0
- package/dist/web/components/form/selectMultiple/status/index.css +63 -0
- package/dist/web/components/form/selectMultiple/status/index.js +7 -0
- package/dist/web/components/form/selectMultiple/status/loading.js +19 -0
- package/dist/web/components/form/selectMultiple/status/propsType.js +1 -0
- package/dist/web/components/form/selectMultiple/status/retry.js +19 -0
- package/dist/web/components/form/tips/index.css +9 -3
- package/dist/web/components/form/uploader/index.css +10 -0
- package/dist/web/components/form/uploader/uploader.h5.js +6 -6
- package/dist/web/components/form/uploader/uploader.pc.js +1 -1
- package/dist/web/components/form/uploaderFile/index.js +2 -0
- package/dist/web/components/form/uploaderFile/uploadFile.h5.js +0 -19
- package/dist/web/components/form/uploaderFile/uploadFile.pc.js +3 -24
- package/dist/web/components/form/userOrgSelect/common/fetch-data-service.js +7 -4
- package/dist/web/components/form/userOrgSelect/common/utils.js +1 -0
- package/dist/web/components/form/userOrgSelect/component/user-select-h5/index.js +15 -5
- package/dist/web/components/form-input-hooks/index.js +39 -14
- package/dist/web/components/form-select-multiple/index.js +26 -0
- package/dist/web/components/formdetail/index.css +31 -1
- package/dist/web/components/formdetail/index.js +30 -0
- package/dist/web/components/index.js +17 -1
- package/dist/web/components/listView/index.js +20 -5
- package/dist/web/components/phone/index.js +26 -1
- package/dist/web/components/phoneCode/index.js +3 -1
- package/dist/web/components/repeater/index.js +1 -0
- package/dist/web/components/repeater-item/index.js +1 -0
- package/dist/web/components/richText/index.css +70 -67
- package/dist/web/components/richText/index.js +311 -251
- package/dist/web/components/richText/richtext.module.css +1 -0
- package/dist/web/components/richTextView/index.css +39 -0
- package/dist/web/components/richTextView/index.js +1 -1
- package/dist/web/components/share/index.js +26 -1
- package/dist/web/components/statusContent/index.js +1 -0
- package/dist/web/components/wd-checkbox/checkbox.js +34 -0
- package/dist/web/components/wd-checkbox/index.js +3 -0
- package/dist/web/components/wd-checkbox-list/checkboxList.js +140 -0
- package/dist/web/components/wd-checkbox-list/index.js +3 -0
- package/dist/web/components/wd-form/index.js +25 -12
- package/dist/web/components/wd-form/wd-form.js +42 -0
- package/dist/web/components/wd-form-cell/index.js +3 -0
- package/dist/web/components/wd-form-cell/wd-form-cell.js +42 -0
- package/dist/web/components/wd-form-item/index.js +4 -0
- package/dist/web/components/wd-form-item/wd-form-item.js +55 -0
- package/dist/web/components/wd-form-item/wd-input-group.js +24 -0
- package/dist/web/components/wd-input/index.js +3 -0
- package/dist/web/components/wd-input/wd-input.js +155 -0
- package/dist/web/components/wd-input-email/index.js +3 -0
- package/dist/web/components/wd-input-email/wd-input-email.js +13 -0
- package/dist/web/components/wd-input-group/index.js +3 -0
- package/dist/web/components/wd-input-group/wd-input-group.js +10 -0
- package/dist/web/components/wd-input-phone/index.js +3 -0
- package/dist/web/components/wd-input-phone/wd-input-phone.js +14 -0
- package/dist/web/components/wd-input-url/index.js +3 -0
- package/dist/web/components/wd-input-url/wd-input-url.js +13 -0
- package/dist/web/components/wd-input-wrap/index.js +3 -0
- package/dist/web/components/wd-input-wrap/wd-input-wrap.js +18 -0
- package/dist/web/components/wd-official-account/index.css +29 -0
- package/dist/web/components/wd-official-account/index.js +36 -0
- package/dist/web/components/wd-radio/index.js +3 -0
- package/dist/web/components/wd-radio/wd-radio.js +30 -0
- package/dist/web/components/wd-radio-list/index.js +3 -0
- package/dist/web/components/wd-radio-list/wd-radio-list.js +104 -0
- package/dist/web/components/wd-switch/index.js +3 -0
- package/dist/web/components/wd-switch/wd-switch.js +52 -0
- package/dist/web/components/wd-table/components/Table/index.js +12 -2
- package/dist/web/components/wd-table/hooks/useQueryParams.js +4 -1
- package/dist/web/components/wd-table/utils/index.js +6 -2
- package/dist/web/components/wd-table/wd-table.js +70 -57
- package/dist/web/components/wd-textarea/index.js +3 -0
- package/dist/web/components/wd-textarea/wd-textarea.js +78 -0
- package/dist/web/components/wd-tree/index.js +3 -0
- package/dist/web/components/wd-tree/utils.js +291 -0
- package/dist/web/components/wd-tree/wd-tree.js +193 -0
- package/dist/web/utils/constant.js +16 -0
- package/dist/web/utils/datasource.js +2 -2
- package/dist/web/utils/hooks/useFormLegacy.js +111 -0
- package/dist/web/utils/tool.js +12 -2
- package/dist/web/weda-ui.css +193 -3
- package/package.json +6 -5
- package/dist/web/components/emptyContent/index.js +0 -46
- package/dist/web/components/flow/components/FlowModuleText/Content.js +0 -6
- package/dist/web/components/flow/components/FlowModuleText/Title.js +0 -16
- package/dist/web/components/flow/components/FlowModuleText/index.js +0 -7
- package/dist/web/components/flow/components/FlowModuleText/utils.js +0 -34
- package/dist/web/components/flow/components/FlowStatusText/index.js +0 -37
- package/dist/web/components/flow/components/HighLightComment/index.js +0 -31
- package/dist/web/components/flow/components/index.js +0 -3
- package/dist/web/components/flow/constants/index.js +0 -65
- package/dist/web/components/flow/frame/getCommonFlowData.js +0 -80
- package/dist/web/components/flow/frame/hooks/index.js +0 -2
- package/dist/web/components/flow/frame/hooks/useCommonFlowRequest.js +0 -148
- package/dist/web/components/flow/frame/hooks/useElementMediaQuery.js +0 -15
- package/dist/web/components/flow/frame/index.js +0 -76
- package/dist/web/components/flow/frame/types.js +0 -277
- package/dist/web/components/flow/frame/utils.js +0 -149
- package/dist/web/components/flow/modules/chart/Chart.js +0 -282
- package/dist/web/components/flow/modules/chart/constants.js +0 -28
- package/dist/web/components/flow/modules/chart/index.css +0 -84
- package/dist/web/components/flow/modules/chart/isString.js +0 -5
- package/dist/web/components/flow/modules/chart/utils.js +0 -111
- package/dist/web/components/flow/modules/process/Process.js +0 -73
- package/dist/web/components/flow/modules/process/ProcessMobile.js +0 -81
- package/dist/web/components/flow/modules/process/index.js +0 -14
- package/dist/web/components/flow/modules/process/utils/index.js +0 -32
- package/dist/web/components/flow/services/flow.js +0 -111
- package/dist/web/components/flow/services/ideData/chart.js +0 -88
- package/dist/web/components/flow/services/ideData/index.js +0 -5
- package/dist/web/components/flow/services/ideData/instance.js +0 -23
- package/dist/web/components/flow/services/ideData/pageDetail.js +0 -42
- package/dist/web/components/flow/services/ideData/process.js +0 -27
- package/dist/web/components/flow/services/index.js +0 -2
- package/dist/web/components/flow/services/user.js +0 -23
- package/dist/web/components/flow/services/utils.js +0 -28
- package/dist/web/components/form/userOrgSelect/component/OrgPaths.js +0 -12
- package/dist/web/components/form/userOrgSelect/component/depart-select/departTreeSelect.h5.js +0 -156
package/dist/web/weda-ui.css
CHANGED
|
@@ -46,6 +46,7 @@ body .weda-ui {
|
|
|
46
46
|
font-size: 1em;
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
+
|
|
49
50
|
@media (min-width: 1024px) {
|
|
50
51
|
.weui .weui-cell_active:active {
|
|
51
52
|
background-color: unset !important;
|
|
@@ -61,7 +62,8 @@ body .weda-ui {
|
|
|
61
62
|
}
|
|
62
63
|
|
|
63
64
|
.weda-ui .weui-cell {
|
|
64
|
-
font-size: inherit;
|
|
65
|
+
font-size: inherit;
|
|
66
|
+
/* 要让内联样式生效 */
|
|
65
67
|
}
|
|
66
68
|
|
|
67
69
|
.weda-ui .weui-cells {
|
|
@@ -73,13 +75,16 @@ body .weda-ui {
|
|
|
73
75
|
}
|
|
74
76
|
|
|
75
77
|
.weda-formcells__pc.vertical .wedatea2td-form__label label {
|
|
76
|
-
width: auto;
|
|
78
|
+
width: auto;
|
|
79
|
+
/* vertcal 情况下label不固定宽度 */
|
|
77
80
|
}
|
|
78
81
|
|
|
79
82
|
.weda-ui .weui-btn_input-clear {
|
|
80
|
-
visibility: hidden;
|
|
83
|
+
visibility: hidden;
|
|
84
|
+
/* visibilty 防止居中而且宽度auto时,出现输入时宽度抖动 */
|
|
81
85
|
display: inline;
|
|
82
86
|
}
|
|
87
|
+
|
|
83
88
|
.weui-input:focus:not(:placeholder-shown) + .weui-btn_input-clear {
|
|
84
89
|
visibility: visible;
|
|
85
90
|
display: inline;
|
|
@@ -105,6 +110,7 @@ body .weda-ui {
|
|
|
105
110
|
src: url(data:application/font-woff2;charset=utf-8;base64,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)
|
|
106
111
|
format('woff2');
|
|
107
112
|
}
|
|
113
|
+
|
|
108
114
|
.lcap-icon {
|
|
109
115
|
font-size: 34px;
|
|
110
116
|
display: inline-block;
|
|
@@ -119,108 +125,292 @@ body .weda-ui {
|
|
|
119
125
|
-webkit-font-smoothing: antialiased;
|
|
120
126
|
-moz-osx-font-smoothing: grayscale;
|
|
121
127
|
}
|
|
128
|
+
|
|
122
129
|
.lcap-icon-nointernet:before {
|
|
123
130
|
content: '\e900';
|
|
124
131
|
}
|
|
132
|
+
|
|
125
133
|
.lcap-icon-success:before {
|
|
126
134
|
content: '\e901';
|
|
127
135
|
}
|
|
136
|
+
|
|
128
137
|
.lcap-icon-warning:before {
|
|
129
138
|
content: '\e902';
|
|
130
139
|
}
|
|
140
|
+
|
|
131
141
|
.lcap-icon-pending:before {
|
|
132
142
|
content: '\e903';
|
|
133
143
|
}
|
|
144
|
+
|
|
134
145
|
.lcap-icon-refresh:before {
|
|
135
146
|
content: '\e904';
|
|
136
147
|
}
|
|
148
|
+
|
|
137
149
|
.lcap-icon-folder:before {
|
|
138
150
|
content: '\e905';
|
|
139
151
|
}
|
|
152
|
+
|
|
140
153
|
.lcap-icon-arrowup:before {
|
|
141
154
|
content: '\e906';
|
|
142
155
|
}
|
|
156
|
+
|
|
143
157
|
.lcap-icon-arrowdown:before {
|
|
144
158
|
content: '\e907';
|
|
145
159
|
}
|
|
160
|
+
|
|
146
161
|
.lcap-icon-arrowleft:before {
|
|
147
162
|
content: '\e908';
|
|
148
163
|
}
|
|
164
|
+
|
|
149
165
|
.lcap-icon-arrowright:before {
|
|
150
166
|
content: '\e909';
|
|
151
167
|
}
|
|
168
|
+
|
|
152
169
|
.lcap-icon-chevronup:before {
|
|
153
170
|
content: '\e90a';
|
|
154
171
|
}
|
|
172
|
+
|
|
155
173
|
.lcap-icon-chevrondown:before {
|
|
156
174
|
content: '\e90b';
|
|
157
175
|
}
|
|
176
|
+
|
|
158
177
|
.lcap-icon-chevronleft:before {
|
|
159
178
|
content: '\e90c';
|
|
160
179
|
}
|
|
180
|
+
|
|
161
181
|
.lcap-icon-chevronright:before {
|
|
162
182
|
content: '\e90d';
|
|
163
183
|
}
|
|
184
|
+
|
|
164
185
|
.lcap-icon-delete:before {
|
|
165
186
|
content: '\e90e';
|
|
166
187
|
}
|
|
188
|
+
|
|
167
189
|
.lcap-icon-edit:before {
|
|
168
190
|
content: '\e90f';
|
|
169
191
|
}
|
|
192
|
+
|
|
170
193
|
.lcap-icon-search:before {
|
|
171
194
|
content: '\e910';
|
|
172
195
|
}
|
|
196
|
+
|
|
173
197
|
.lcap-icon-check:before {
|
|
174
198
|
content: '\e911';
|
|
175
199
|
}
|
|
200
|
+
|
|
176
201
|
.lcap-icon-close:before {
|
|
177
202
|
content: '\e912';
|
|
178
203
|
}
|
|
204
|
+
|
|
179
205
|
.lcap-icon-add:before {
|
|
180
206
|
content: '\e913';
|
|
181
207
|
}
|
|
208
|
+
|
|
182
209
|
.lcap-icon-download:before {
|
|
183
210
|
content: '\e914';
|
|
184
211
|
}
|
|
212
|
+
|
|
185
213
|
.lcap-icon-success-fill:before {
|
|
186
214
|
content: '\e915';
|
|
187
215
|
}
|
|
216
|
+
|
|
188
217
|
.lcap-icon-close-fill:before {
|
|
189
218
|
content: '\e916';
|
|
190
219
|
}
|
|
220
|
+
|
|
191
221
|
.lcap-icon-minus-fill:before {
|
|
192
222
|
content: '\e917';
|
|
193
223
|
}
|
|
224
|
+
|
|
194
225
|
.lcap-icon-add-fill:before {
|
|
195
226
|
content: '\e918';
|
|
196
227
|
}
|
|
228
|
+
|
|
197
229
|
.lcap-icon-info-fill:before {
|
|
198
230
|
content: '\e919';
|
|
199
231
|
}
|
|
232
|
+
|
|
200
233
|
.lcap-icon-pending-fill:before {
|
|
201
234
|
content: '\e91a';
|
|
202
235
|
}
|
|
236
|
+
|
|
203
237
|
.lcap-icon-warning-fill:before {
|
|
204
238
|
content: '\e91b';
|
|
205
239
|
}
|
|
240
|
+
|
|
206
241
|
.lcap-icon-more:before {
|
|
207
242
|
content: '\e91c';
|
|
208
243
|
}
|
|
244
|
+
|
|
209
245
|
.lcap-icon-star:before {
|
|
210
246
|
content: '\e91d';
|
|
211
247
|
}
|
|
248
|
+
|
|
212
249
|
.lcap-icon-star-fill:before {
|
|
213
250
|
content: '\e91e';
|
|
214
251
|
}
|
|
252
|
+
|
|
215
253
|
.lcap-icon-location:before {
|
|
216
254
|
content: '\e91f';
|
|
217
255
|
}
|
|
256
|
+
|
|
218
257
|
.lcap-icon-question:before {
|
|
219
258
|
content: '\e920';
|
|
220
259
|
}
|
|
260
|
+
|
|
221
261
|
.weapps__toast p {
|
|
222
262
|
display: -webkit-box;
|
|
223
263
|
overflow: hidden;
|
|
224
264
|
-webkit-line-clamp: 15;
|
|
225
265
|
-webkit-box-orient: vertical;
|
|
226
266
|
}
|
|
267
|
+
|
|
268
|
+
/* h5/pc 占位符 */
|
|
269
|
+
.weda-ui.gsd-h5-react-formitem .weui-input::placeholder,
|
|
270
|
+
.weda-ui.gsd-h5-react-formitem .wedatea2td-input::placeholder {
|
|
271
|
+
color: var(--wd-color-text-placeholder);
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
.weda-ui.gsd-h5-react-formitem .weui-input::-webkit-input-placeholder,
|
|
275
|
+
.weda-ui.gsd-h5-react-formitem .wedatea2td-input::-webkit-input-placeholder {
|
|
276
|
+
color: var(--wd-color-text-placeholder);
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.weda-ui.gsd-h5-react-formitem .weui-input:-moz-placeholder,
|
|
280
|
+
.weda-ui.gsd-h5-react-formitem .wedatea2td-input:-moz-placeholder {
|
|
281
|
+
color: var(--wd-color-text-placeholder);
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.weda-ui.gsd-h5-react-formitem .weui-input::-moz-placeholder,
|
|
285
|
+
.weda-ui.gsd-h5-react-formitem .wedatea2td-input::-moz-placeholder {
|
|
286
|
+
color: var(--wd-color-text-placeholder);
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.weda-ui.gsd-h5-react-formitem .weui-input:-ms-input-placeholder,
|
|
290
|
+
.weda-ui.gsd-h5-react-formitem .wedatea2td-input:-ms-input-placeholder {
|
|
291
|
+
color: var(--wd-color-text-placeholder);
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
.weda-ui.gsd-h5-react-formitem .form-select-pc .wedatea2td-text-weak {
|
|
295
|
+
color: var(--wd-color-text-placeholder) !important;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
/* pc 字体 */
|
|
299
|
+
.weda-ui.gsd-h5-react-formitem .wedatea2td-input,
|
|
300
|
+
.weda-ui.gsd-h5-react-formitem .wedatea2td-textarea,
|
|
301
|
+
.weda-ui.gsd-h5-react-formitem .wedatea2td-textarea-group,
|
|
302
|
+
.weda-ui.gsd-h5-react-formitem .form-select-pc .wedatea2td-dropdown__header {
|
|
303
|
+
font: inherit;
|
|
304
|
+
height: var(--wd-form-item-height-md);
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
.weda-ui.gsd-h5-react-formitem
|
|
308
|
+
.form-select-pc
|
|
309
|
+
.wedatea2td-dropdown__header
|
|
310
|
+
.wedatea2td-dropdown__value {
|
|
311
|
+
font: inherit;
|
|
312
|
+
line-height: var(--wd-form-item-height-md);
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
/* h5 外边框 */
|
|
316
|
+
.weui-cells__group_form .weui-cells::before,
|
|
317
|
+
.weda-ui.gsd-h5-react-formitem.wa-comp-CLOUDBASE_STANDARD-FormItem
|
|
318
|
+
.weui-cells::before {
|
|
319
|
+
border-top-color: transparent;
|
|
320
|
+
left: 0;
|
|
321
|
+
right: 0;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
.weui-cells__group_form .weui-cells::after,
|
|
325
|
+
.weda-ui.gsd-h5-react-formitem.wa-comp-CLOUDBASE_STANDARD-FormItem
|
|
326
|
+
.weui-cells::after {
|
|
327
|
+
border-bottom: var(--wd-form-item-border-width) solid
|
|
328
|
+
var(--wd-form-item-border-color);
|
|
329
|
+
left: 0;
|
|
330
|
+
right: 0;
|
|
331
|
+
transform: none;
|
|
332
|
+
-webkit-transform: none;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
/* h5/pc 标题 */
|
|
336
|
+
.weda-ui.gsd-h5-react-formitem.wa-comp-CLOUDBASE_STANDARD-FormItem
|
|
337
|
+
.weda-formcells.weui-flex
|
|
338
|
+
.weda-formcells__label,
|
|
339
|
+
.weda-ui.gsd-h5-react-formitem.wa-comp-CLOUDBASE_STANDARD-FormItem
|
|
340
|
+
.wedatea2td-form__item
|
|
341
|
+
.wedatea2td-form__label {
|
|
342
|
+
width: var(--wd-form-item-label-width);
|
|
343
|
+
padding-left: 0;
|
|
344
|
+
padding-right: 0;
|
|
345
|
+
margin-right: var(--wd-form-item-label-mr);
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
.weda-ui.gsd-h5-react-formitem.form-detail-wrap.pc-form-detail-wrap
|
|
349
|
+
.form-detail-group-label-container {
|
|
350
|
+
width: 98px;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
/* h5 两边间距 */
|
|
354
|
+
.weda-ui.gsd-h5-react-formitem.wa-comp-CLOUDBASE_STANDARD-FormItem > .weda-ui {
|
|
355
|
+
padding-left: var(--wd-form-item-pd);
|
|
356
|
+
padding-right: var(--wd-form-item-pd);
|
|
357
|
+
}
|
|
358
|
+
.weda-ui.gsd-h5-react-formitem.wa-comp-CLOUDBASE_STANDARD-FormItem
|
|
359
|
+
> .weda-ui.wedatea2td-form__item {
|
|
360
|
+
padding-left: 0;
|
|
361
|
+
padding-right: 0;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
.weda-ui.gsd-h5-react-formitem.form-detail-wrap.pc-form-detail-wrap
|
|
365
|
+
.form-detail-group-parent-container {
|
|
366
|
+
width: calc(100% - 102px);
|
|
367
|
+
padding-left: 0;
|
|
368
|
+
padding-right: 0;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
/* h5/pc 必填标识 */
|
|
372
|
+
.weda-ui.gsd-h5-react-formitem .weda-formcells__flag {
|
|
373
|
+
margin-right: var(--wd-space-base);
|
|
374
|
+
color: var(--wd-color-text-error);
|
|
375
|
+
margin-left: 0;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
.weda-ui.gsd-h5-react-formitem
|
|
379
|
+
.wedatea2td-form__item
|
|
380
|
+
.wedatea2td-form__label.is-required
|
|
381
|
+
label::after {
|
|
382
|
+
content: '';
|
|
383
|
+
display: none;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
.weda-ui.gsd-h5-react-formitem
|
|
387
|
+
.wedatea2td-form__item
|
|
388
|
+
.wedatea2td-form__label.is-required
|
|
389
|
+
label::before {
|
|
390
|
+
content: '*';
|
|
391
|
+
color: var(--wd-color-text-error);
|
|
392
|
+
margin-right: var(--wd-space-base);
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
/* h5 垂直时 */
|
|
396
|
+
.weda-ui.gsd-h5-react-formitem.wa-comp-CLOUDBASE_STANDARD-FormItem
|
|
397
|
+
.weda-formcells
|
|
398
|
+
.weda-formcells__label,
|
|
399
|
+
.weda-ui.gsd-h5-react-formitem.wa-comp-CLOUDBASE_STANDARD-FormItem
|
|
400
|
+
.weda-formcells
|
|
401
|
+
.weda-formcells__content
|
|
402
|
+
.weui-cell {
|
|
403
|
+
padding-left: 0;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
/* 图片、文件、地图,垂直时*/
|
|
407
|
+
.weda-ui.gsd-h5-react-formitem.wa-comp-CLOUDBASE_STANDARD-FormItem
|
|
408
|
+
.weui-uploader.vertical
|
|
409
|
+
.weui-uploader__bd,
|
|
410
|
+
.weda-ui.gsd-h5-react-formitem.wa-comp-CLOUDBASE_STANDARD-FormItem
|
|
411
|
+
.weda-upload-file-mobile
|
|
412
|
+
.vertical,
|
|
413
|
+
.weda-ui.gsd-h5-react-formitem.wa-comp-CLOUDBASE_STANDARD-FormItem
|
|
414
|
+
.form-location-con_vertical {
|
|
415
|
+
padding-left: 0;
|
|
416
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudbase/weda-ui",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.12",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"module": "./dist/index",
|
|
6
6
|
"miniprogram": "mpdist",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"pree2e:report": "npx mkdirp cypress/report && npx mochawesome-merge 'cypress/results/*.json' > cypress/report/mochawesome_full.json",
|
|
33
33
|
"e2e:report": "npx marge -o storybook-static/e2e-report cypress/report/mochawesome_full.json",
|
|
34
34
|
"test:all": "node tools/test-ci.mjs",
|
|
35
|
-
"test:coverage": "node tools/test-
|
|
35
|
+
"test:coverage": "node tools/test-ci.mjs --coverage=true",
|
|
36
36
|
"e2e": "npx cypress open --component",
|
|
37
37
|
"pretest:all": "rimraf .nyc_output || true",
|
|
38
38
|
"storybook": "start-storybook -p 6006",
|
|
@@ -43,7 +43,8 @@
|
|
|
43
43
|
"postprepare": "npm run build-mp",
|
|
44
44
|
"build-npm": "rimraf dist && mkdir dist && cp -r src/web dist/ && cp -r src/configs dist/ && cp src/index.js dist/",
|
|
45
45
|
"build-mp": "rimraf mpdist && npx gulp -f tools/build-mp/gulpfile.mjs",
|
|
46
|
-
"dev-mp": "
|
|
46
|
+
"dev-mp:ide": "node tools/dev-mp-in-ide.mjs",
|
|
47
|
+
"dev-mp": "npx gulp dev -f tools/build-mp/gulpfile.mjs",
|
|
47
48
|
"convert-rpx": "npx gulp -f tools/convert-rpx/gulpfile.mjs",
|
|
48
49
|
"clear:snap": "rimraf ./src/test/__snapshots__",
|
|
49
50
|
"size": "npm run build-mp && npm run build:cli && size-limit",
|
|
@@ -175,7 +176,7 @@
|
|
|
175
176
|
"jest-preview": "^0.2.6",
|
|
176
177
|
"json-schema-to-ts": "^2.5.5",
|
|
177
178
|
"make-fetch-happen": "^11.0.1",
|
|
178
|
-
"miniprogram-simulate": "^1.5.
|
|
179
|
+
"miniprogram-simulate": "^1.5.9",
|
|
179
180
|
"mkdirp": "^1.0.4",
|
|
180
181
|
"mochawesome": "^7.1.3",
|
|
181
182
|
"mochawesome-merge": "^4.2.1",
|
|
@@ -227,7 +228,7 @@
|
|
|
227
228
|
"!.temp/dist/*.map"
|
|
228
229
|
],
|
|
229
230
|
"webpack": false,
|
|
230
|
-
"limit": "
|
|
231
|
+
"limit": "550 KB"
|
|
231
232
|
}
|
|
232
233
|
],
|
|
233
234
|
"nyc": {
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.css';
|
|
3
|
-
const BLOCK_NAME = 'weda-list-view';
|
|
4
|
-
export default function EmptyContent(props) {
|
|
5
|
-
const { emptyText, component, isH5 } = props;
|
|
6
|
-
return (React.createElement("div", { className: `${BLOCK_NAME}__empty` },
|
|
7
|
-
React.createElement("div", { className: `${BLOCK_NAME}__empty__content test
|
|
8
|
-
${component === 'table' && 'table'}
|
|
9
|
-
${isH5 && 'isH5'}` },
|
|
10
|
-
React.createElement("svg", { width: "120", height: "80", viewBox: "0 0 120 80", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
11
|
-
React.createElement("rect", { x: "14", y: "8", width: "80", height: "50", fill: "url(#paint0_linear_810_13830)" }),
|
|
12
|
-
React.createElement("path", { d: "M28 22H20", stroke: "black", strokeOpacity: "0.9" }),
|
|
13
|
-
React.createElement("path", { d: "M44 27H20", stroke: "black", strokeOpacity: "0.9" }),
|
|
14
|
-
React.createElement("path", { d: "M44 32H20", stroke: "black", strokeOpacity: "0.9" }),
|
|
15
|
-
React.createElement("g", { filter: "url(#filter0_b_810_13830)" },
|
|
16
|
-
React.createElement("path", { d: "M14 8H94V14H14V8Z", fill: "black", fillOpacity: "0.9" })),
|
|
17
|
-
React.createElement("path", { d: "M19 11H18", stroke: "white" }),
|
|
18
|
-
React.createElement("path", { d: "M23 11H22", stroke: "white" }),
|
|
19
|
-
React.createElement("path", { d: "M27 11H26", stroke: "white" }),
|
|
20
|
-
React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M78 18H62V34H78V18ZM97 18H81V34H97V18Z", fill: "url(#paint1_linear_810_13830)" }),
|
|
21
|
-
React.createElement("g", { filter: "url(#filter1_b_810_13830)" },
|
|
22
|
-
React.createElement("path", { d: "M50 72H105V32H50V72Z", fill: "url(#paint2_linear_810_13830)", fillOpacity: "0.9" })),
|
|
23
|
-
React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M79.5244 57.9636C79.5244 58.483 79.2697 58.9325 78.9038 59.2929C78.5397 59.6516 78.0384 59.9517 77.4594 60.1929C76.2991 60.6764 74.7308 60.9636 73.0244 60.9636C71.318 60.9636 69.7498 60.6764 68.5895 60.1929C68.0104 59.9517 67.5092 59.6516 67.145 59.2929C66.7791 58.9325 66.5244 58.483 66.5244 57.9636V50.9636C66.5244 50.4443 66.7791 49.9948 67.145 49.6343C67.5092 49.2756 68.0104 48.9756 68.5895 48.7343C69.7498 48.2509 71.318 47.9636 73.0244 47.9636C74.7308 47.9636 76.2991 48.2509 77.4594 48.7343C78.0384 48.9756 78.5397 49.2756 78.9038 49.6343C79.2697 49.9948 79.5244 50.4443 79.5244 50.9636V57.9636ZM67.8468 50.3467C67.6055 50.5845 67.5244 50.7926 67.5244 50.9636C67.5244 51.1346 67.6055 51.3428 67.8468 51.5805C68.0899 51.82 68.4674 52.0587 68.9741 52.2699C69.9854 52.6912 71.4171 52.9636 73.0244 52.9636C74.6318 52.9636 76.0635 52.6912 77.0747 52.2699C77.5815 52.0587 77.9589 51.82 78.202 51.5805C78.4434 51.3428 78.5244 51.1346 78.5244 50.9636C78.5244 50.7926 78.4434 50.5845 78.202 50.3467C77.9589 50.1072 77.5815 49.8685 77.0747 49.6574C76.0635 49.236 74.6318 48.9636 73.0244 48.9636C71.4171 48.9636 69.9854 49.236 68.9741 49.6574C68.4674 49.8685 68.0899 50.1072 67.8468 50.3467ZM78.5244 52.6118V54.4636C78.5244 54.6346 78.4434 54.8428 78.202 55.0805C77.9589 55.32 77.5815 55.5587 77.0747 55.7699C76.0635 56.1912 74.6318 56.4636 73.0244 56.4636C71.4171 56.4636 69.9854 56.1912 68.9741 55.7699C68.4674 55.5587 68.0899 55.32 67.8468 55.0805C67.6055 54.8428 67.5244 54.6346 67.5244 54.4636V52.6118C67.8298 52.8333 68.1912 53.027 68.5895 53.1929C69.7498 53.6764 71.318 53.9636 73.0244 53.9636C74.7308 53.9636 76.2991 53.6764 77.4594 53.1929C77.8576 53.027 78.2191 52.8333 78.5244 52.6118ZM78.5244 57.9636V56.1118C78.2191 56.3333 77.8576 56.527 77.4594 56.6929C76.2991 57.1764 74.7308 57.4636 73.0244 57.4636C71.318 57.4636 69.7498 57.1764 68.5895 56.6929C68.1912 56.527 67.8298 56.3333 67.5244 56.1118V57.9636C67.5244 58.1346 67.6055 58.3428 67.8468 58.5805C68.0899 58.82 68.4674 59.0587 68.9741 59.2699C69.9854 59.6912 71.4171 59.9636 73.0244 59.9636C74.6318 59.9636 76.0635 59.6912 77.0747 59.2699C77.5815 59.0587 77.9589 58.82 78.202 58.5805C78.4434 58.3428 78.5244 58.1346 78.5244 57.9636Z", fill: "white" }),
|
|
24
|
-
React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M86.9038 53.2932C87.2697 52.9327 87.5244 52.4832 87.5244 51.9639V44.9639C87.5244 44.4445 87.2697 43.995 86.9038 43.6346C86.5397 43.2759 86.0384 42.9758 85.4594 42.7346C84.2991 42.2511 82.7308 41.9639 81.0244 41.9639C79.318 41.9639 77.7498 42.2511 76.5895 42.7346C76.0104 42.9758 75.5092 43.2759 75.145 43.6346C74.7791 43.995 74.5244 44.4445 74.5244 44.9639V48.0786C74.8689 48.1148 75.2032 48.1631 75.5244 48.2225V46.612C75.8298 46.8335 76.1912 47.0272 76.5895 47.1932C77.7498 47.6766 79.318 47.9639 81.0244 47.9639C82.7308 47.9639 84.2991 47.6766 85.4594 47.1932C85.8576 47.0272 86.2191 46.8335 86.5244 46.612V48.4639C86.5244 48.6349 86.4434 48.843 86.202 49.0808C85.9589 49.3203 85.5815 49.559 85.0747 49.7701C84.0635 50.1915 82.6318 50.4639 81.0244 50.4639C80.4454 50.4639 79.8891 50.4285 79.3671 50.3636C79.4517 50.5615 79.4999 50.7741 79.4999 51V51.3853C79.9898 51.4368 80.5006 51.4639 81.0244 51.4639C82.7308 51.4639 84.2991 51.1766 85.4594 50.6932C85.8576 50.5272 86.2191 50.3335 86.5244 50.112V51.9639C86.5244 52.1349 86.4434 52.343 86.202 52.5808C85.9589 52.8203 85.5815 53.059 85.0747 53.2701C84.0635 53.6915 82.6318 53.9639 81.0244 53.9639C80.4942 53.9639 79.9831 53.9342 79.4999 53.8794V54.8853C79.9898 54.9368 80.5006 54.9639 81.0244 54.9639C82.7308 54.9639 84.2991 54.6766 85.4594 54.1932C86.0384 53.9519 86.5397 53.6519 86.9038 53.2932ZM75.5244 44.9639C75.5244 44.7929 75.6055 44.5847 75.8468 44.3469C76.0899 44.1075 76.4674 43.8688 76.9741 43.6576C77.9854 43.2363 79.4171 42.9639 81.0244 42.9639C82.6318 42.9639 84.0635 43.2363 85.0747 43.6576C85.5815 43.8688 85.9589 44.1075 86.202 44.3469C86.4434 44.5847 86.5244 44.7929 86.5244 44.9639C86.5244 45.1349 86.4434 45.343 86.202 45.5808C85.9589 45.8203 85.5815 46.059 85.0747 46.2701C84.0635 46.6915 82.6318 46.9639 81.0244 46.9639C79.4171 46.9639 77.9854 46.6915 76.9741 46.2701C76.4674 46.059 76.0899 45.8203 75.8468 45.5808C75.6055 45.343 75.5244 45.1349 75.5244 44.9639Z", fill: "white" }),
|
|
25
|
-
React.createElement("defs", null,
|
|
26
|
-
React.createElement("filter", { id: "filter0_b_810_13830", x: "10", y: "4", width: "88", height: "14", filterUnits: "userSpaceOnUse", colorInterpolationFilters: "sRGB" },
|
|
27
|
-
React.createElement("feFlood", { floodOpacity: "0", result: "BackgroundImageFix" }),
|
|
28
|
-
React.createElement("feGaussianBlur", { in: "BackgroundImageFix", stdDeviation: "2" }),
|
|
29
|
-
React.createElement("feComposite", { in2: "SourceAlpha", operator: "in", result: "effect1_backgroundBlur_810_13830" }),
|
|
30
|
-
React.createElement("feBlend", { mode: "normal", in: "SourceGraphic", in2: "effect1_backgroundBlur_810_13830", result: "shape" })),
|
|
31
|
-
React.createElement("filter", { id: "filter1_b_810_13830", x: "44.6667", y: "26.6667", width: "65.6667", height: "50.6667", filterUnits: "userSpaceOnUse", colorInterpolationFilters: "sRGB" },
|
|
32
|
-
React.createElement("feFlood", { floodOpacity: "0", result: "BackgroundImageFix" }),
|
|
33
|
-
React.createElement("feGaussianBlur", { in: "BackgroundImageFix", stdDeviation: "2.66667" }),
|
|
34
|
-
React.createElement("feComposite", { in2: "SourceAlpha", operator: "in", result: "effect1_backgroundBlur_810_13830" }),
|
|
35
|
-
React.createElement("feBlend", { mode: "normal", in: "SourceGraphic", in2: "effect1_backgroundBlur_810_13830", result: "shape" })),
|
|
36
|
-
React.createElement("linearGradient", { id: "paint0_linear_810_13830", x1: "54", y1: "8", x2: "54", y2: "58", gradientUnits: "userSpaceOnUse" },
|
|
37
|
-
React.createElement("stop", { stopColor: "#E7E7E7" }),
|
|
38
|
-
React.createElement("stop", { offset: "1", stopColor: "#DCDCDC" })),
|
|
39
|
-
React.createElement("linearGradient", { id: "paint1_linear_810_13830", x1: "84.6042", y1: "18", x2: "84.6042", y2: "34", gradientUnits: "userSpaceOnUse" },
|
|
40
|
-
React.createElement("stop", { stopColor: "white" }),
|
|
41
|
-
React.createElement("stop", { offset: "1", stopColor: "white", stopOpacity: "0.2" })),
|
|
42
|
-
React.createElement("linearGradient", { id: "paint2_linear_810_13830", x1: "74.8387", y1: "66.7826", x2: "74.8387", y2: "33.6563", gradientUnits: "userSpaceOnUse" },
|
|
43
|
-
React.createElement("stop", { stopColor: "#939393", stopOpacity: "0.7" }),
|
|
44
|
-
React.createElement("stop", { offset: "1", stopColor: "#939393" })))),
|
|
45
|
-
emptyText)));
|
|
46
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { getModuleContentStyle } from './utils';
|
|
3
|
-
export function Content(props) {
|
|
4
|
-
const { className, children } = props;
|
|
5
|
-
return (React.createElement("span", { className: className, style: getModuleContentStyle(props) }, children));
|
|
6
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { getLineHeight } from './utils';
|
|
3
|
-
import './index.css';
|
|
4
|
-
export function Title(props) {
|
|
5
|
-
const { className, moduleTitle, moduleTitleColor, moduleTitleFontSize, moduleTitleFontWeight, moduleTitleLineHeight, moduleTitleVisible, } = props;
|
|
6
|
-
if (moduleTitleVisible) {
|
|
7
|
-
const style = {
|
|
8
|
-
color: moduleTitleColor,
|
|
9
|
-
fontSize: moduleTitleFontSize,
|
|
10
|
-
fontWeight: moduleTitleFontWeight,
|
|
11
|
-
lineHeight: getLineHeight(moduleTitleLineHeight),
|
|
12
|
-
};
|
|
13
|
-
return (React.createElement("div", { className: `model-flow-module-title ${className}`, style: style }, moduleTitle));
|
|
14
|
-
}
|
|
15
|
-
return null;
|
|
16
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
export function getModuleTextProps(props) {
|
|
2
|
-
const moduleProps = {};
|
|
3
|
-
Object.entries(props).forEach(([key, value]) => {
|
|
4
|
-
if (key.startsWith('module')) {
|
|
5
|
-
moduleProps[key] = value;
|
|
6
|
-
}
|
|
7
|
-
});
|
|
8
|
-
return moduleProps;
|
|
9
|
-
}
|
|
10
|
-
export function getLineHeight(lineHeight) {
|
|
11
|
-
const realLineHeight = +lineHeight;
|
|
12
|
-
if (typeof realLineHeight === 'number') {
|
|
13
|
-
return `${realLineHeight}rem`;
|
|
14
|
-
}
|
|
15
|
-
return lineHeight;
|
|
16
|
-
}
|
|
17
|
-
export function getModuleContentStyle(props) {
|
|
18
|
-
const style = {
|
|
19
|
-
color: props.moduleContentColor,
|
|
20
|
-
fontSize: props.moduleContentFontSize,
|
|
21
|
-
fontWeight: props.moduleContentFontWeight,
|
|
22
|
-
lineHeight: getLineHeight(props.moduleContentLineHeight),
|
|
23
|
-
};
|
|
24
|
-
return style;
|
|
25
|
-
}
|
|
26
|
-
export function getModuleTitleStyle(props) {
|
|
27
|
-
const style = {
|
|
28
|
-
color: props.moduleTitleColor,
|
|
29
|
-
fontSize: props.moduleTitleFontSize,
|
|
30
|
-
fontWeight: props.moduleTitleFontWeight,
|
|
31
|
-
lineHeight: getLineHeight(props.moduleTitleLineHeight),
|
|
32
|
-
};
|
|
33
|
-
return style;
|
|
34
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Text } from 'tea-component';
|
|
3
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
4
|
-
const omit = (prop, { [prop]: _, ...rest }) => rest;
|
|
5
|
-
export const FlowStatusText = (props) => {
|
|
6
|
-
const { isCompleted, status, userTaskType } = props.flow || {};
|
|
7
|
-
const getTagProps = () => {
|
|
8
|
-
const props = {
|
|
9
|
-
theme: 'warning',
|
|
10
|
-
text: '审批中',
|
|
11
|
-
};
|
|
12
|
-
if (userTaskType === 2) {
|
|
13
|
-
props.text = '处理中';
|
|
14
|
-
}
|
|
15
|
-
if (isCompleted) {
|
|
16
|
-
if (status === 1) {
|
|
17
|
-
props.theme = 'danger';
|
|
18
|
-
props.text = '已终止';
|
|
19
|
-
}
|
|
20
|
-
else if (status === 2) {
|
|
21
|
-
props.theme = 'danger';
|
|
22
|
-
props.text = '已驳回';
|
|
23
|
-
}
|
|
24
|
-
else if (status === 4) {
|
|
25
|
-
props.theme = 'danger';
|
|
26
|
-
props.text = '已作废';
|
|
27
|
-
}
|
|
28
|
-
else {
|
|
29
|
-
props.theme = 'success';
|
|
30
|
-
props.text = userTaskType === 2 ? '已处理' : '审批通过';
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
return props;
|
|
34
|
-
};
|
|
35
|
-
const { text, ...rest } = getTagProps();
|
|
36
|
-
return (React.createElement(Text, { ...rest, style: omit('color', props.style) }, text));
|
|
37
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { safeJsonParse } from '../../../../utils/tool';
|
|
3
|
-
export const HighLightComment = ({ details }) => {
|
|
4
|
-
const text = (details === null || details === void 0 ? void 0 : details.operationComment) || '';
|
|
5
|
-
let dom = '';
|
|
6
|
-
const positionMap = (details === null || details === void 0 ? void 0 : details.highlightPositionList) || '{}';
|
|
7
|
-
const obj = safeJsonParse(positionMap);
|
|
8
|
-
let startIndex = 0;
|
|
9
|
-
const arr = Object.entries(obj);
|
|
10
|
-
if (arr.length === 0) {
|
|
11
|
-
return text;
|
|
12
|
-
}
|
|
13
|
-
for (const [start, end] of arr) {
|
|
14
|
-
const name = text.substring(Number(start) + 1, end);
|
|
15
|
-
const domTemp = (React.createElement(React.Fragment, null,
|
|
16
|
-
text.substring(startIndex, Number(start)),
|
|
17
|
-
React.createElement("span", { style: { color: '#2473F2' } },
|
|
18
|
-
"@",
|
|
19
|
-
name)));
|
|
20
|
-
dom = (React.createElement(React.Fragment, null,
|
|
21
|
-
dom,
|
|
22
|
-
domTemp));
|
|
23
|
-
startIndex = end;
|
|
24
|
-
}
|
|
25
|
-
if (startIndex < text.length) {
|
|
26
|
-
dom = (React.createElement(React.Fragment, null,
|
|
27
|
-
dom,
|
|
28
|
-
text.substring(startIndex, text.length)));
|
|
29
|
-
}
|
|
30
|
-
return React.createElement("span", null, dom);
|
|
31
|
-
};
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
export const STATUS_NUMBER_MAPPING = {
|
|
2
|
-
1: 'START',
|
|
3
|
-
2: 'PASS',
|
|
4
|
-
3: 'DOWN',
|
|
5
|
-
4: 'TURN',
|
|
6
|
-
5: 'REVOKE',
|
|
7
|
-
6: 'TRANS',
|
|
8
|
-
7: 'COUNTERSIGN',
|
|
9
|
-
8: 'STOP',
|
|
10
|
-
9: 'SKIP_PASS',
|
|
11
|
-
10: 'SKIP_DOWN',
|
|
12
|
-
11: 'PENDING',
|
|
13
|
-
12: 'END',
|
|
14
|
-
13: 'HANDLED',
|
|
15
|
-
14: 'HANDLING',
|
|
16
|
-
15: 'CC',
|
|
17
|
-
16: 'DROP', // 作废
|
|
18
|
-
};
|
|
19
|
-
export const STATUS = {
|
|
20
|
-
START: 'start',
|
|
21
|
-
PASS: 'pass',
|
|
22
|
-
DOWN: 'down',
|
|
23
|
-
TURN: 'trun',
|
|
24
|
-
REVOKE: 'revoke',
|
|
25
|
-
TRANS: 'trans',
|
|
26
|
-
COUNTERSIGN: 'countersign',
|
|
27
|
-
STOP: 'stop',
|
|
28
|
-
SKIP_PASS: 'skip_pass',
|
|
29
|
-
SKIP_DOWN: 'skip_down',
|
|
30
|
-
PENDING: 'pending',
|
|
31
|
-
END: 'end',
|
|
32
|
-
HANDLED: 'handled',
|
|
33
|
-
HANDLING: 'handling',
|
|
34
|
-
CC: 'cc',
|
|
35
|
-
DROP: 'DROP', // 作废
|
|
36
|
-
};
|
|
37
|
-
export const STATUS_TEXT = {
|
|
38
|
-
pass: { theme: 'success', text: '审批通过' },
|
|
39
|
-
trun: { theme: 'primary', text: '已转办' },
|
|
40
|
-
down: { theme: 'error', text: '驳回' },
|
|
41
|
-
pending: { theme: 'warning', text: '待审批' },
|
|
42
|
-
trans: { theme: 'default', text: '回退' },
|
|
43
|
-
revoke: { theme: 'default', text: '撤销' },
|
|
44
|
-
skip_pass: { theme: 'success', text: '跳过(同意)' },
|
|
45
|
-
skip_down: { theme: 'error', text: '跳过(驳回)' },
|
|
46
|
-
end: { theme: 'error', text: '结束' },
|
|
47
|
-
countersign: { theme: 'default', text: '加签' },
|
|
48
|
-
stop: { theme: 'error', text: '终止' },
|
|
49
|
-
handled: { theme: 'success', text: '已处理' },
|
|
50
|
-
handling: { theme: 'warning', text: '待处理' },
|
|
51
|
-
};
|
|
52
|
-
export const PAGE_TYPE = {
|
|
53
|
-
/** 待我处理 */
|
|
54
|
-
TO_DO: 'TODO',
|
|
55
|
-
/** 我创建的 */
|
|
56
|
-
CREATE: 'CREATE',
|
|
57
|
-
/** 我已处理 */
|
|
58
|
-
DONE: 'DONE',
|
|
59
|
-
/** 抄送我的 */
|
|
60
|
-
COPY: 'CC',
|
|
61
|
-
/** 草稿箱 */
|
|
62
|
-
DRAFT: 'DRAFT',
|
|
63
|
-
/** 新建流程 */
|
|
64
|
-
CREATEFLOW: 'CREATEFLOW',
|
|
65
|
-
};
|