@longhongguo/form-create-ant-design-vue 3.3.4 → 3.3.6
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/form-create.css +335 -0
- package/dist/form-create.esm.css +335 -0
- package/dist/form-create.esm.js +2 -2
- package/dist/form-create.esm.js.map +1 -1
- package/dist/form-create.js +2 -2
- package/dist/form-create.js.map +1 -1
- package/package.json +1 -1
- package/src/core/api.js +26 -1
- package/src/core/manager.js +10 -0
- package/src/parsers/accTable.js +51 -19
- package/src/parsers/cascader.js +69 -18
- package/src/style/index.css +335 -0
package/dist/form-create.css
CHANGED
|
@@ -26,6 +26,341 @@
|
|
|
26
26
|
display: none !important;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
+
/* 预览模式样式增强 */
|
|
30
|
+
|
|
31
|
+
.form-create.is-preview .ant-form-item {
|
|
32
|
+
margin-bottom: 8px !important;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.form-create.is-preview .form-create .ant-form-item {
|
|
36
|
+
margin-bottom: 8px !important;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.form-create.is-preview .ant-form-item.ant-form-item-with-help {
|
|
40
|
+
margin-bottom: 4px !important;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.form-create.is-preview
|
|
44
|
+
.form-create
|
|
45
|
+
.ant-form-item
|
|
46
|
+
.ant-form-item.ant-form-item-with-help {
|
|
47
|
+
margin-bottom: -8px !important;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/* 移除组件边框 */
|
|
51
|
+
.form-create.is-preview .ant-input,
|
|
52
|
+
.form-create.is-preview .ant-input-number,
|
|
53
|
+
.form-create.is-preview .ant-select-selector,
|
|
54
|
+
.form-create.is-preview .ant-picker,
|
|
55
|
+
.form-create.is-preview .ant-cascader-picker,
|
|
56
|
+
.form-create.is-preview .ant-input-password,
|
|
57
|
+
.form-create.is-preview .ant-textarea,
|
|
58
|
+
.form-create.is-preview .ant-upload,
|
|
59
|
+
.form-create.is-preview .ant-upload-list,
|
|
60
|
+
.form-create.is-preview .ant-upload-list-item {
|
|
61
|
+
border: none !important;
|
|
62
|
+
box-shadow: none !important;
|
|
63
|
+
background: transparent !important;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.form-create.is-preview .ant-input:focus,
|
|
67
|
+
.form-create.is-preview .ant-input-number:focus,
|
|
68
|
+
.form-create.is-preview .ant-select-focused .ant-select-selector,
|
|
69
|
+
.form-create.is-preview .ant-picker:focus,
|
|
70
|
+
.form-create.is-preview .ant-cascader-picker:focus,
|
|
71
|
+
.form-create.is-preview .ant-input-password:focus,
|
|
72
|
+
.form-create.is-preview .ant-textarea:focus {
|
|
73
|
+
border: none !important;
|
|
74
|
+
box-shadow: none !important;
|
|
75
|
+
outline: none !important;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.form-create.is-preview .ant-input:hover,
|
|
79
|
+
.form-create.is-preview .ant-input-number:hover,
|
|
80
|
+
.form-create.is-preview .ant-select:hover .ant-select-selector,
|
|
81
|
+
.form-create.is-preview .ant-picker:hover,
|
|
82
|
+
.form-create.is-preview .ant-cascader-picker:hover,
|
|
83
|
+
.form-create.is-preview .ant-input-password:hover,
|
|
84
|
+
.form-create.is-preview .ant-textarea:hover {
|
|
85
|
+
border: none !important;
|
|
86
|
+
box-shadow: none !important;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/* 隐藏字数限制等提示信息 */
|
|
90
|
+
.form-create.is-preview .ant-input-character-count,
|
|
91
|
+
.form-create.is-preview .ant-textarea-character-count,
|
|
92
|
+
.form-create.is-preview .ant-form-item-explain,
|
|
93
|
+
.form-create.is-preview .ant-form-item-extra,
|
|
94
|
+
.form-create.is-preview .ant-form-item-feedback-icon,
|
|
95
|
+
.form-create.is-preview
|
|
96
|
+
.ant-form-item-has-feedback
|
|
97
|
+
.ant-form-item-children-icon {
|
|
98
|
+
display: none !important;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/* 隐藏必填标记 */
|
|
102
|
+
.form-create.is-preview
|
|
103
|
+
.ant-form-item-label
|
|
104
|
+
> label.ant-form-item-required::before,
|
|
105
|
+
.form-create.is-preview label.ant-form-item-required::before {
|
|
106
|
+
display: none !important;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/* 隐藏帮助图标和提示 */
|
|
110
|
+
.form-create.is-preview .ant-form-item-label .anticon,
|
|
111
|
+
.form-create.is-preview .ant-form-item-label .fc-icon {
|
|
112
|
+
display: none !important;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/* 预览模式:禁用所有交互 */
|
|
116
|
+
.form-create.is-preview * {
|
|
117
|
+
pointer-events: none !important;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/* 预览模式:允许富文本编辑器容器滚动 */
|
|
121
|
+
.form-create.is-preview .w-e-text-container {
|
|
122
|
+
pointer-events: auto !important;
|
|
123
|
+
overflow-y: auto !important;
|
|
124
|
+
overflow-x: hidden !important;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.form-create.is-preview .w-e-text {
|
|
128
|
+
pointer-events: auto !important;
|
|
129
|
+
overflow-y: auto !important;
|
|
130
|
+
overflow-x: hidden !important;
|
|
131
|
+
cursor: default !important;
|
|
132
|
+
/* 确保可以滚动 */
|
|
133
|
+
-webkit-overflow-scrolling: touch !important;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/* 预览模式:允许 upload 组件的预览功能(整个列表项可以点击预览) */
|
|
137
|
+
.form-create.is-preview .ant-upload-list-item {
|
|
138
|
+
pointer-events: auto !important;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/* 预览模式:允许 upload 组件中的预览相关元素 */
|
|
142
|
+
.form-create.is-preview .ant-upload-list-item-thumbnail,
|
|
143
|
+
.form-create.is-preview .ant-upload-list-item-thumbnail *,
|
|
144
|
+
.form-create.is-preview .ant-upload-list-item-name,
|
|
145
|
+
.form-create.is-preview .ant-upload-list-item-preview,
|
|
146
|
+
.form-create.is-preview .ant-upload-list-item-preview-icon,
|
|
147
|
+
.form-create.is-preview .ant-upload-list-item-actions-preview,
|
|
148
|
+
.form-create.is-preview .ant-upload-list-item-actions .anticon-eye,
|
|
149
|
+
.form-create.is-preview .ant-upload-list-item-info,
|
|
150
|
+
.form-create.is-preview .ant-upload-list-item-info > span,
|
|
151
|
+
.form-create.is-preview
|
|
152
|
+
.ant-upload-picture-card
|
|
153
|
+
.ant-upload-list-item-thumbnail,
|
|
154
|
+
.form-create.is-preview
|
|
155
|
+
.ant-upload-picture-card
|
|
156
|
+
.ant-upload-list-item-thumbnail
|
|
157
|
+
* {
|
|
158
|
+
pointer-events: auto !important;
|
|
159
|
+
cursor: pointer !important;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/* 预览模式:允许 image 组件的预览功能 */
|
|
163
|
+
.form-create.is-preview .ant-image,
|
|
164
|
+
.form-create.is-preview .ant-image-img,
|
|
165
|
+
.form-create.is-preview .ant-image-mask,
|
|
166
|
+
.form-create.is-preview .ant-image-mask-info {
|
|
167
|
+
pointer-events: auto !important;
|
|
168
|
+
cursor: pointer !important;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/* 预览模式:允许图片预览弹窗可以交互 */
|
|
172
|
+
.form-create.is-preview .ant-modal,
|
|
173
|
+
.form-create.is-preview .ant-modal-wrap,
|
|
174
|
+
.form-create.is-preview .ant-modal-mask,
|
|
175
|
+
.form-create.is-preview .ant-modal-content,
|
|
176
|
+
.form-create.is-preview .ant-modal-close,
|
|
177
|
+
.form-create.is-preview .ant-modal-header,
|
|
178
|
+
.form-create.is-preview .ant-modal-body,
|
|
179
|
+
.form-create.is-preview .ant-modal-footer {
|
|
180
|
+
pointer-events: auto !important;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
/* 预览模式:隐藏 upload 组件的上传按钮 */
|
|
184
|
+
.form-create.is-preview .ant-upload-select,
|
|
185
|
+
.form-create.is-preview .ant-upload-select-picture-card {
|
|
186
|
+
display: none !important;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
/* 预览模式:阻止 upload 组件中的删除和其他操作按钮(优先级更高) */
|
|
190
|
+
.form-create.is-preview .ant-upload-list-item-actions-delete,
|
|
191
|
+
.form-create.is-preview .ant-upload-list-item-actions-upload,
|
|
192
|
+
.form-create.is-preview .ant-upload-list-item-actions-download,
|
|
193
|
+
.form-create.is-preview .ant-upload-list-item-actions .anticon-delete,
|
|
194
|
+
.form-create.is-preview .ant-upload-list-item-actions .anticon-close,
|
|
195
|
+
.form-create.is-preview .ant-upload-list-item-actions-item .anticon-delete,
|
|
196
|
+
.form-create.is-preview .ant-upload-list-item-actions-item-delete,
|
|
197
|
+
.form-create.is-preview .ant-upload-list-item-actions-item-upload,
|
|
198
|
+
.form-create.is-preview .ant-upload-list-item-remove {
|
|
199
|
+
pointer-events: none !important;
|
|
200
|
+
cursor: not-allowed !important;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
/* 预览模式:防止组件显示为禁用状态(不置灰) */
|
|
204
|
+
.form-create.is-preview .ant-input,
|
|
205
|
+
.form-create.is-preview .ant-input-number,
|
|
206
|
+
.form-create.is-preview .ant-select,
|
|
207
|
+
.form-create.is-preview .ant-picker,
|
|
208
|
+
.form-create.is-preview .ant-cascader,
|
|
209
|
+
.form-create.is-preview .ant-input-password,
|
|
210
|
+
.form-create.is-preview .ant-textarea,
|
|
211
|
+
.form-create.is-preview .ant-radio,
|
|
212
|
+
.form-create.is-preview .ant-checkbox,
|
|
213
|
+
.form-create.is-preview .ant-switch,
|
|
214
|
+
.form-create.is-preview .ant-slider,
|
|
215
|
+
.form-create.is-preview .ant-rate,
|
|
216
|
+
.form-create.is-preview .ant-upload,
|
|
217
|
+
.form-create.is-preview .ant-btn {
|
|
218
|
+
opacity: 1 !important;
|
|
219
|
+
color: inherit !important;
|
|
220
|
+
background-color: transparent !important;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
/* 预览模式:CusSelect 组件保持正常外观,不置灰 */
|
|
224
|
+
.form-create.is-preview .fc-cus-select,
|
|
225
|
+
.form-create.is-preview .fc-cus-select-selector,
|
|
226
|
+
.form-create.is-preview .fc-cus-select-selection-item,
|
|
227
|
+
.form-create.is-preview .fc-cus-select-selection-placeholder {
|
|
228
|
+
opacity: 1 !important;
|
|
229
|
+
color: inherit !important;
|
|
230
|
+
background-color: transparent !important;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
/* 预览模式:移除 CusSelect 选择器的边框 */
|
|
234
|
+
.form-create.is-preview .fc-cus-select-selector {
|
|
235
|
+
border: none !important;
|
|
236
|
+
box-shadow: none !important;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
/* 预览模式:隐藏 CusSelect 的箭头和清除按钮 */
|
|
240
|
+
.form-create.is-preview .fc-cus-select-arrow,
|
|
241
|
+
.form-create.is-preview .fc-cus-select-clear {
|
|
242
|
+
display: none !important;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
/* 预览模式:隐藏选择器的下拉箭头 */
|
|
246
|
+
.form-create.is-preview .ant-select-arrow,
|
|
247
|
+
.form-create.is-preview .ant-select-suffix {
|
|
248
|
+
display: none !important;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
/* 预览模式:隐藏日期选择器的图标 */
|
|
252
|
+
.form-create.is-preview .ant-picker-suffix,
|
|
253
|
+
.form-create.is-preview .ant-picker-suffix .anticon {
|
|
254
|
+
display: none !important;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
/* 预览模式:隐藏其他输入框的清除按钮和图标 */
|
|
258
|
+
.form-create.is-preview .ant-input-clear-icon,
|
|
259
|
+
.form-create.is-preview .ant-input-number-handler,
|
|
260
|
+
.form-create.is-preview .ant-input-number-handler-wrap {
|
|
261
|
+
display: none !important;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
/* 预览模式:防止输入框显示为禁用状态的灰色 */
|
|
265
|
+
.form-create.is-preview .ant-input[disabled],
|
|
266
|
+
.form-create.is-preview .ant-input-number[disabled],
|
|
267
|
+
.form-create.is-preview .ant-select-disabled,
|
|
268
|
+
.form-create.is-preview .ant-picker-disabled,
|
|
269
|
+
.form-create.is-preview .ant-textarea[disabled] {
|
|
270
|
+
opacity: 1 !important;
|
|
271
|
+
color: inherit !important;
|
|
272
|
+
background-color: transparent !important;
|
|
273
|
+
cursor: default !important;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
/* 预览模式:防止选择器显示为禁用状态 */
|
|
277
|
+
.form-create.is-preview .ant-select-disabled .ant-select-selector {
|
|
278
|
+
opacity: 1 !important;
|
|
279
|
+
color: inherit !important;
|
|
280
|
+
background-color: transparent !important;
|
|
281
|
+
cursor: default !important;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
/* 预览模式:防止日期选择器显示为禁用状态 */
|
|
285
|
+
.form-create.is-preview .ant-picker-disabled {
|
|
286
|
+
opacity: 1 !important;
|
|
287
|
+
color: inherit !important;
|
|
288
|
+
background-color: transparent !important;
|
|
289
|
+
cursor: default !important;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
/* 预览模式:富文本编辑器样式 */
|
|
293
|
+
.form-create.is-preview .w-e-text-container {
|
|
294
|
+
border: none !important;
|
|
295
|
+
box-shadow: none !important;
|
|
296
|
+
background: transparent !important;
|
|
297
|
+
/* 移除高度限制,让内容自适应 */
|
|
298
|
+
height: auto !important;
|
|
299
|
+
min-height: auto !important;
|
|
300
|
+
max-height: none !important;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.form-create.is-preview .w-e-toolbar {
|
|
304
|
+
display: none !important;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
.form-create.is-preview .w-e-text {
|
|
308
|
+
border: none !important;
|
|
309
|
+
box-shadow: none !important;
|
|
310
|
+
background: transparent !important;
|
|
311
|
+
/* 移除高度限制,让内容自适应 */
|
|
312
|
+
height: auto !important;
|
|
313
|
+
min-height: auto !important;
|
|
314
|
+
max-height: none !important;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
/* 富文本内容不可编辑,但允许容器滚动 */
|
|
318
|
+
.form-create.is-preview .w-e-text p,
|
|
319
|
+
.form-create.is-preview .w-e-text div,
|
|
320
|
+
.form-create.is-preview .w-e-text span,
|
|
321
|
+
.form-create.is-preview .w-e-text li,
|
|
322
|
+
.form-create.is-preview .w-e-text ul,
|
|
323
|
+
.form-create.is-preview .w-e-text ol,
|
|
324
|
+
.form-create.is-preview .w-e-text h1,
|
|
325
|
+
.form-create.is-preview .w-e-text h2,
|
|
326
|
+
.form-create.is-preview .w-e-text h3,
|
|
327
|
+
.form-create.is-preview .w-e-text h4,
|
|
328
|
+
.form-create.is-preview .w-e-text h5,
|
|
329
|
+
.form-create.is-preview .w-e-text h6,
|
|
330
|
+
.form-create.is-preview .w-e-text a,
|
|
331
|
+
.form-create.is-preview .w-e-text img,
|
|
332
|
+
.form-create.is-preview .w-e-text table,
|
|
333
|
+
.form-create.is-preview .w-e-text tr,
|
|
334
|
+
.form-create.is-preview .w-e-text td,
|
|
335
|
+
.form-create.is-preview .w-e-text th {
|
|
336
|
+
pointer-events: none !important;
|
|
337
|
+
user-select: none !important;
|
|
338
|
+
-webkit-user-select: none !important;
|
|
339
|
+
-moz-user-select: none !important;
|
|
340
|
+
-ms-user-select: none !important;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
/* 预览模式:禁用按钮点击 */
|
|
344
|
+
.form-create.is-preview .ant-btn {
|
|
345
|
+
pointer-events: none !important;
|
|
346
|
+
cursor: default !important;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
/* 预览模式:禁用选择器下拉 */
|
|
350
|
+
.form-create.is-preview .ant-select-dropdown {
|
|
351
|
+
display: none !important;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
/* 预览模式:禁用日期选择器弹窗 */
|
|
355
|
+
.form-create.is-preview .ant-picker-dropdown {
|
|
356
|
+
display: none !important;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
/* 预览模式:禁用级联选择器下拉 */
|
|
360
|
+
.form-create.is-preview .ant-cascader-dropdown {
|
|
361
|
+
display: none !important;
|
|
362
|
+
}
|
|
363
|
+
|
|
29
364
|
.fc-form-footer {
|
|
30
365
|
margin-top: 12px;
|
|
31
366
|
}
|
package/dist/form-create.esm.css
CHANGED
|
@@ -26,6 +26,341 @@
|
|
|
26
26
|
display: none !important;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
+
/* 预览模式样式增强 */
|
|
30
|
+
|
|
31
|
+
.form-create.is-preview .ant-form-item {
|
|
32
|
+
margin-bottom: 8px !important;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.form-create.is-preview .form-create .ant-form-item {
|
|
36
|
+
margin-bottom: 8px !important;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.form-create.is-preview .ant-form-item.ant-form-item-with-help {
|
|
40
|
+
margin-bottom: 4px !important;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.form-create.is-preview
|
|
44
|
+
.form-create
|
|
45
|
+
.ant-form-item
|
|
46
|
+
.ant-form-item.ant-form-item-with-help {
|
|
47
|
+
margin-bottom: -8px !important;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/* 移除组件边框 */
|
|
51
|
+
.form-create.is-preview .ant-input,
|
|
52
|
+
.form-create.is-preview .ant-input-number,
|
|
53
|
+
.form-create.is-preview .ant-select-selector,
|
|
54
|
+
.form-create.is-preview .ant-picker,
|
|
55
|
+
.form-create.is-preview .ant-cascader-picker,
|
|
56
|
+
.form-create.is-preview .ant-input-password,
|
|
57
|
+
.form-create.is-preview .ant-textarea,
|
|
58
|
+
.form-create.is-preview .ant-upload,
|
|
59
|
+
.form-create.is-preview .ant-upload-list,
|
|
60
|
+
.form-create.is-preview .ant-upload-list-item {
|
|
61
|
+
border: none !important;
|
|
62
|
+
box-shadow: none !important;
|
|
63
|
+
background: transparent !important;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.form-create.is-preview .ant-input:focus,
|
|
67
|
+
.form-create.is-preview .ant-input-number:focus,
|
|
68
|
+
.form-create.is-preview .ant-select-focused .ant-select-selector,
|
|
69
|
+
.form-create.is-preview .ant-picker:focus,
|
|
70
|
+
.form-create.is-preview .ant-cascader-picker:focus,
|
|
71
|
+
.form-create.is-preview .ant-input-password:focus,
|
|
72
|
+
.form-create.is-preview .ant-textarea:focus {
|
|
73
|
+
border: none !important;
|
|
74
|
+
box-shadow: none !important;
|
|
75
|
+
outline: none !important;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.form-create.is-preview .ant-input:hover,
|
|
79
|
+
.form-create.is-preview .ant-input-number:hover,
|
|
80
|
+
.form-create.is-preview .ant-select:hover .ant-select-selector,
|
|
81
|
+
.form-create.is-preview .ant-picker:hover,
|
|
82
|
+
.form-create.is-preview .ant-cascader-picker:hover,
|
|
83
|
+
.form-create.is-preview .ant-input-password:hover,
|
|
84
|
+
.form-create.is-preview .ant-textarea:hover {
|
|
85
|
+
border: none !important;
|
|
86
|
+
box-shadow: none !important;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/* 隐藏字数限制等提示信息 */
|
|
90
|
+
.form-create.is-preview .ant-input-character-count,
|
|
91
|
+
.form-create.is-preview .ant-textarea-character-count,
|
|
92
|
+
.form-create.is-preview .ant-form-item-explain,
|
|
93
|
+
.form-create.is-preview .ant-form-item-extra,
|
|
94
|
+
.form-create.is-preview .ant-form-item-feedback-icon,
|
|
95
|
+
.form-create.is-preview
|
|
96
|
+
.ant-form-item-has-feedback
|
|
97
|
+
.ant-form-item-children-icon {
|
|
98
|
+
display: none !important;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/* 隐藏必填标记 */
|
|
102
|
+
.form-create.is-preview
|
|
103
|
+
.ant-form-item-label
|
|
104
|
+
> label.ant-form-item-required::before,
|
|
105
|
+
.form-create.is-preview label.ant-form-item-required::before {
|
|
106
|
+
display: none !important;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/* 隐藏帮助图标和提示 */
|
|
110
|
+
.form-create.is-preview .ant-form-item-label .anticon,
|
|
111
|
+
.form-create.is-preview .ant-form-item-label .fc-icon {
|
|
112
|
+
display: none !important;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/* 预览模式:禁用所有交互 */
|
|
116
|
+
.form-create.is-preview * {
|
|
117
|
+
pointer-events: none !important;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/* 预览模式:允许富文本编辑器容器滚动 */
|
|
121
|
+
.form-create.is-preview .w-e-text-container {
|
|
122
|
+
pointer-events: auto !important;
|
|
123
|
+
overflow-y: auto !important;
|
|
124
|
+
overflow-x: hidden !important;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.form-create.is-preview .w-e-text {
|
|
128
|
+
pointer-events: auto !important;
|
|
129
|
+
overflow-y: auto !important;
|
|
130
|
+
overflow-x: hidden !important;
|
|
131
|
+
cursor: default !important;
|
|
132
|
+
/* 确保可以滚动 */
|
|
133
|
+
-webkit-overflow-scrolling: touch !important;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/* 预览模式:允许 upload 组件的预览功能(整个列表项可以点击预览) */
|
|
137
|
+
.form-create.is-preview .ant-upload-list-item {
|
|
138
|
+
pointer-events: auto !important;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/* 预览模式:允许 upload 组件中的预览相关元素 */
|
|
142
|
+
.form-create.is-preview .ant-upload-list-item-thumbnail,
|
|
143
|
+
.form-create.is-preview .ant-upload-list-item-thumbnail *,
|
|
144
|
+
.form-create.is-preview .ant-upload-list-item-name,
|
|
145
|
+
.form-create.is-preview .ant-upload-list-item-preview,
|
|
146
|
+
.form-create.is-preview .ant-upload-list-item-preview-icon,
|
|
147
|
+
.form-create.is-preview .ant-upload-list-item-actions-preview,
|
|
148
|
+
.form-create.is-preview .ant-upload-list-item-actions .anticon-eye,
|
|
149
|
+
.form-create.is-preview .ant-upload-list-item-info,
|
|
150
|
+
.form-create.is-preview .ant-upload-list-item-info > span,
|
|
151
|
+
.form-create.is-preview
|
|
152
|
+
.ant-upload-picture-card
|
|
153
|
+
.ant-upload-list-item-thumbnail,
|
|
154
|
+
.form-create.is-preview
|
|
155
|
+
.ant-upload-picture-card
|
|
156
|
+
.ant-upload-list-item-thumbnail
|
|
157
|
+
* {
|
|
158
|
+
pointer-events: auto !important;
|
|
159
|
+
cursor: pointer !important;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/* 预览模式:允许 image 组件的预览功能 */
|
|
163
|
+
.form-create.is-preview .ant-image,
|
|
164
|
+
.form-create.is-preview .ant-image-img,
|
|
165
|
+
.form-create.is-preview .ant-image-mask,
|
|
166
|
+
.form-create.is-preview .ant-image-mask-info {
|
|
167
|
+
pointer-events: auto !important;
|
|
168
|
+
cursor: pointer !important;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/* 预览模式:允许图片预览弹窗可以交互 */
|
|
172
|
+
.form-create.is-preview .ant-modal,
|
|
173
|
+
.form-create.is-preview .ant-modal-wrap,
|
|
174
|
+
.form-create.is-preview .ant-modal-mask,
|
|
175
|
+
.form-create.is-preview .ant-modal-content,
|
|
176
|
+
.form-create.is-preview .ant-modal-close,
|
|
177
|
+
.form-create.is-preview .ant-modal-header,
|
|
178
|
+
.form-create.is-preview .ant-modal-body,
|
|
179
|
+
.form-create.is-preview .ant-modal-footer {
|
|
180
|
+
pointer-events: auto !important;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
/* 预览模式:隐藏 upload 组件的上传按钮 */
|
|
184
|
+
.form-create.is-preview .ant-upload-select,
|
|
185
|
+
.form-create.is-preview .ant-upload-select-picture-card {
|
|
186
|
+
display: none !important;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
/* 预览模式:阻止 upload 组件中的删除和其他操作按钮(优先级更高) */
|
|
190
|
+
.form-create.is-preview .ant-upload-list-item-actions-delete,
|
|
191
|
+
.form-create.is-preview .ant-upload-list-item-actions-upload,
|
|
192
|
+
.form-create.is-preview .ant-upload-list-item-actions-download,
|
|
193
|
+
.form-create.is-preview .ant-upload-list-item-actions .anticon-delete,
|
|
194
|
+
.form-create.is-preview .ant-upload-list-item-actions .anticon-close,
|
|
195
|
+
.form-create.is-preview .ant-upload-list-item-actions-item .anticon-delete,
|
|
196
|
+
.form-create.is-preview .ant-upload-list-item-actions-item-delete,
|
|
197
|
+
.form-create.is-preview .ant-upload-list-item-actions-item-upload,
|
|
198
|
+
.form-create.is-preview .ant-upload-list-item-remove {
|
|
199
|
+
pointer-events: none !important;
|
|
200
|
+
cursor: not-allowed !important;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
/* 预览模式:防止组件显示为禁用状态(不置灰) */
|
|
204
|
+
.form-create.is-preview .ant-input,
|
|
205
|
+
.form-create.is-preview .ant-input-number,
|
|
206
|
+
.form-create.is-preview .ant-select,
|
|
207
|
+
.form-create.is-preview .ant-picker,
|
|
208
|
+
.form-create.is-preview .ant-cascader,
|
|
209
|
+
.form-create.is-preview .ant-input-password,
|
|
210
|
+
.form-create.is-preview .ant-textarea,
|
|
211
|
+
.form-create.is-preview .ant-radio,
|
|
212
|
+
.form-create.is-preview .ant-checkbox,
|
|
213
|
+
.form-create.is-preview .ant-switch,
|
|
214
|
+
.form-create.is-preview .ant-slider,
|
|
215
|
+
.form-create.is-preview .ant-rate,
|
|
216
|
+
.form-create.is-preview .ant-upload,
|
|
217
|
+
.form-create.is-preview .ant-btn {
|
|
218
|
+
opacity: 1 !important;
|
|
219
|
+
color: inherit !important;
|
|
220
|
+
background-color: transparent !important;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
/* 预览模式:CusSelect 组件保持正常外观,不置灰 */
|
|
224
|
+
.form-create.is-preview .fc-cus-select,
|
|
225
|
+
.form-create.is-preview .fc-cus-select-selector,
|
|
226
|
+
.form-create.is-preview .fc-cus-select-selection-item,
|
|
227
|
+
.form-create.is-preview .fc-cus-select-selection-placeholder {
|
|
228
|
+
opacity: 1 !important;
|
|
229
|
+
color: inherit !important;
|
|
230
|
+
background-color: transparent !important;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
/* 预览模式:移除 CusSelect 选择器的边框 */
|
|
234
|
+
.form-create.is-preview .fc-cus-select-selector {
|
|
235
|
+
border: none !important;
|
|
236
|
+
box-shadow: none !important;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
/* 预览模式:隐藏 CusSelect 的箭头和清除按钮 */
|
|
240
|
+
.form-create.is-preview .fc-cus-select-arrow,
|
|
241
|
+
.form-create.is-preview .fc-cus-select-clear {
|
|
242
|
+
display: none !important;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
/* 预览模式:隐藏选择器的下拉箭头 */
|
|
246
|
+
.form-create.is-preview .ant-select-arrow,
|
|
247
|
+
.form-create.is-preview .ant-select-suffix {
|
|
248
|
+
display: none !important;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
/* 预览模式:隐藏日期选择器的图标 */
|
|
252
|
+
.form-create.is-preview .ant-picker-suffix,
|
|
253
|
+
.form-create.is-preview .ant-picker-suffix .anticon {
|
|
254
|
+
display: none !important;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
/* 预览模式:隐藏其他输入框的清除按钮和图标 */
|
|
258
|
+
.form-create.is-preview .ant-input-clear-icon,
|
|
259
|
+
.form-create.is-preview .ant-input-number-handler,
|
|
260
|
+
.form-create.is-preview .ant-input-number-handler-wrap {
|
|
261
|
+
display: none !important;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
/* 预览模式:防止输入框显示为禁用状态的灰色 */
|
|
265
|
+
.form-create.is-preview .ant-input[disabled],
|
|
266
|
+
.form-create.is-preview .ant-input-number[disabled],
|
|
267
|
+
.form-create.is-preview .ant-select-disabled,
|
|
268
|
+
.form-create.is-preview .ant-picker-disabled,
|
|
269
|
+
.form-create.is-preview .ant-textarea[disabled] {
|
|
270
|
+
opacity: 1 !important;
|
|
271
|
+
color: inherit !important;
|
|
272
|
+
background-color: transparent !important;
|
|
273
|
+
cursor: default !important;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
/* 预览模式:防止选择器显示为禁用状态 */
|
|
277
|
+
.form-create.is-preview .ant-select-disabled .ant-select-selector {
|
|
278
|
+
opacity: 1 !important;
|
|
279
|
+
color: inherit !important;
|
|
280
|
+
background-color: transparent !important;
|
|
281
|
+
cursor: default !important;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
/* 预览模式:防止日期选择器显示为禁用状态 */
|
|
285
|
+
.form-create.is-preview .ant-picker-disabled {
|
|
286
|
+
opacity: 1 !important;
|
|
287
|
+
color: inherit !important;
|
|
288
|
+
background-color: transparent !important;
|
|
289
|
+
cursor: default !important;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
/* 预览模式:富文本编辑器样式 */
|
|
293
|
+
.form-create.is-preview .w-e-text-container {
|
|
294
|
+
border: none !important;
|
|
295
|
+
box-shadow: none !important;
|
|
296
|
+
background: transparent !important;
|
|
297
|
+
/* 移除高度限制,让内容自适应 */
|
|
298
|
+
height: auto !important;
|
|
299
|
+
min-height: auto !important;
|
|
300
|
+
max-height: none !important;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.form-create.is-preview .w-e-toolbar {
|
|
304
|
+
display: none !important;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
.form-create.is-preview .w-e-text {
|
|
308
|
+
border: none !important;
|
|
309
|
+
box-shadow: none !important;
|
|
310
|
+
background: transparent !important;
|
|
311
|
+
/* 移除高度限制,让内容自适应 */
|
|
312
|
+
height: auto !important;
|
|
313
|
+
min-height: auto !important;
|
|
314
|
+
max-height: none !important;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
/* 富文本内容不可编辑,但允许容器滚动 */
|
|
318
|
+
.form-create.is-preview .w-e-text p,
|
|
319
|
+
.form-create.is-preview .w-e-text div,
|
|
320
|
+
.form-create.is-preview .w-e-text span,
|
|
321
|
+
.form-create.is-preview .w-e-text li,
|
|
322
|
+
.form-create.is-preview .w-e-text ul,
|
|
323
|
+
.form-create.is-preview .w-e-text ol,
|
|
324
|
+
.form-create.is-preview .w-e-text h1,
|
|
325
|
+
.form-create.is-preview .w-e-text h2,
|
|
326
|
+
.form-create.is-preview .w-e-text h3,
|
|
327
|
+
.form-create.is-preview .w-e-text h4,
|
|
328
|
+
.form-create.is-preview .w-e-text h5,
|
|
329
|
+
.form-create.is-preview .w-e-text h6,
|
|
330
|
+
.form-create.is-preview .w-e-text a,
|
|
331
|
+
.form-create.is-preview .w-e-text img,
|
|
332
|
+
.form-create.is-preview .w-e-text table,
|
|
333
|
+
.form-create.is-preview .w-e-text tr,
|
|
334
|
+
.form-create.is-preview .w-e-text td,
|
|
335
|
+
.form-create.is-preview .w-e-text th {
|
|
336
|
+
pointer-events: none !important;
|
|
337
|
+
user-select: none !important;
|
|
338
|
+
-webkit-user-select: none !important;
|
|
339
|
+
-moz-user-select: none !important;
|
|
340
|
+
-ms-user-select: none !important;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
/* 预览模式:禁用按钮点击 */
|
|
344
|
+
.form-create.is-preview .ant-btn {
|
|
345
|
+
pointer-events: none !important;
|
|
346
|
+
cursor: default !important;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
/* 预览模式:禁用选择器下拉 */
|
|
350
|
+
.form-create.is-preview .ant-select-dropdown {
|
|
351
|
+
display: none !important;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
/* 预览模式:禁用日期选择器弹窗 */
|
|
355
|
+
.form-create.is-preview .ant-picker-dropdown {
|
|
356
|
+
display: none !important;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
/* 预览模式:禁用级联选择器下拉 */
|
|
360
|
+
.form-create.is-preview .ant-cascader-dropdown {
|
|
361
|
+
display: none !important;
|
|
362
|
+
}
|
|
363
|
+
|
|
29
364
|
.fc-form-footer {
|
|
30
365
|
margin-top: 12px;
|
|
31
366
|
}
|