@longhongguo/form-create-ant-design-vue 3.3.4 → 3.3.7
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/auto-import.js +3 -1
- package/dist/form-create.css +432 -0
- package/dist/form-create.esm.css +432 -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 +2 -2
- package/src/components/FcEditorWrapper.vue +618 -2
- package/src/core/alias.js +3 -0
- package/src/core/api.js +26 -1
- package/src/core/manager.js +31 -0
- package/src/parsers/accTable.js +51 -19
- package/src/parsers/alert.js +17 -0
- package/src/parsers/cascader.js +69 -18
- package/src/parsers/index.js +2 -0
- package/src/parsers/input.js +61 -0
- package/src/style/index.css +432 -0
package/auto-import.js
CHANGED
|
@@ -26,7 +26,8 @@ import {
|
|
|
26
26
|
Spin,
|
|
27
27
|
Transfer,
|
|
28
28
|
Image,
|
|
29
|
-
Table
|
|
29
|
+
Table,
|
|
30
|
+
Alert
|
|
30
31
|
} from 'ant-design-vue'
|
|
31
32
|
|
|
32
33
|
export default function install(formCreate) {
|
|
@@ -61,5 +62,6 @@ export default function install(formCreate) {
|
|
|
61
62
|
app.component(Transfer.name) || app.use(Transfer)
|
|
62
63
|
app.component(Image.name) || app.use(Image)
|
|
63
64
|
app.component(Table.name) || app.use(Table)
|
|
65
|
+
app.component(Alert.name) || app.use(Alert)
|
|
64
66
|
})
|
|
65
67
|
}
|
package/dist/form-create.css
CHANGED
|
@@ -26,6 +26,438 @@
|
|
|
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
|
+
.form-create.is-preview .ant-input-wrapper,
|
|
62
|
+
.form-create.is-preview .ant-input-affix-wrapper,
|
|
63
|
+
.form-create.is-preview .ant-input-group-wrapper,
|
|
64
|
+
.form-create.is-preview .ant-input-group {
|
|
65
|
+
border: none !important;
|
|
66
|
+
box-shadow: none !important;
|
|
67
|
+
background: transparent !important;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.form-create.is-preview .ant-input:focus,
|
|
71
|
+
.form-create.is-preview .ant-input-number:focus,
|
|
72
|
+
.form-create.is-preview .ant-select-focused .ant-select-selector,
|
|
73
|
+
.form-create.is-preview .ant-picker:focus,
|
|
74
|
+
.form-create.is-preview .ant-cascader-picker:focus,
|
|
75
|
+
.form-create.is-preview .ant-input-password:focus,
|
|
76
|
+
.form-create.is-preview .ant-textarea:focus,
|
|
77
|
+
.form-create.is-preview .ant-input-wrapper:focus,
|
|
78
|
+
.form-create.is-preview .ant-input-affix-wrapper:focus,
|
|
79
|
+
.form-create.is-preview .ant-input-affix-wrapper-focused {
|
|
80
|
+
border: none !important;
|
|
81
|
+
box-shadow: none !important;
|
|
82
|
+
outline: none !important;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.form-create.is-preview .ant-input:hover,
|
|
86
|
+
.form-create.is-preview .ant-input-number:hover,
|
|
87
|
+
.form-create.is-preview .ant-select:hover .ant-select-selector,
|
|
88
|
+
.form-create.is-preview .ant-picker:hover,
|
|
89
|
+
.form-create.is-preview .ant-cascader-picker:hover,
|
|
90
|
+
.form-create.is-preview .ant-input-password:hover,
|
|
91
|
+
.form-create.is-preview .ant-textarea:hover,
|
|
92
|
+
.form-create.is-preview .ant-input-wrapper:hover,
|
|
93
|
+
.form-create.is-preview .ant-input-affix-wrapper:hover {
|
|
94
|
+
border: none !important;
|
|
95
|
+
box-shadow: none !important;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/* 预览模式:移除所有 input 相关元素的边框(更全面的覆盖) */
|
|
99
|
+
.form-create.is-preview .ant-input-affix-wrapper,
|
|
100
|
+
.form-create.is-preview .ant-input-affix-wrapper:hover,
|
|
101
|
+
.form-create.is-preview .ant-input-affix-wrapper-focused,
|
|
102
|
+
.form-create.is-preview .ant-input-affix-wrapper-disabled,
|
|
103
|
+
.form-create.is-preview .ant-input-wrapper .ant-input,
|
|
104
|
+
.form-create.is-preview .ant-input-group-addon,
|
|
105
|
+
.form-create.is-preview .ant-input-group .ant-input,
|
|
106
|
+
.form-create.is-preview input.ant-input,
|
|
107
|
+
.form-create.is-preview textarea.ant-input {
|
|
108
|
+
border: none !important;
|
|
109
|
+
border-width: 0 !important;
|
|
110
|
+
box-shadow: none !important;
|
|
111
|
+
outline: none !important;
|
|
112
|
+
background: transparent !important;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/* 隐藏字数限制等提示信息 */
|
|
116
|
+
.form-create.is-preview .ant-input-character-count,
|
|
117
|
+
.form-create.is-preview .ant-textarea-character-count,
|
|
118
|
+
.form-create.is-preview .ant-form-item-explain,
|
|
119
|
+
.form-create.is-preview .ant-form-item-extra,
|
|
120
|
+
.form-create.is-preview .ant-form-item-feedback-icon,
|
|
121
|
+
.form-create.is-preview
|
|
122
|
+
.ant-form-item-has-feedback
|
|
123
|
+
.ant-form-item-children-icon {
|
|
124
|
+
display: none !important;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/* 隐藏必填标记 */
|
|
128
|
+
.form-create.is-preview
|
|
129
|
+
.ant-form-item-label
|
|
130
|
+
> label.ant-form-item-required::before,
|
|
131
|
+
.form-create.is-preview label.ant-form-item-required::before {
|
|
132
|
+
display: none !important;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
/* 隐藏帮助图标和提示 */
|
|
136
|
+
.form-create.is-preview .ant-form-item-label .anticon,
|
|
137
|
+
.form-create.is-preview .ant-form-item-label .fc-icon {
|
|
138
|
+
display: none !important;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/* 预览模式:禁用所有交互 */
|
|
142
|
+
.form-create.is-preview * {
|
|
143
|
+
pointer-events: none !important;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
/* 预览模式:允许 textarea 交互(用于复制文本) */
|
|
147
|
+
.form-create.is-preview textarea.ant-input {
|
|
148
|
+
pointer-events: auto !important;
|
|
149
|
+
user-select: text !important;
|
|
150
|
+
-webkit-user-select: text !important;
|
|
151
|
+
-moz-user-select: text !important;
|
|
152
|
+
-ms-user-select: text !important;
|
|
153
|
+
cursor: text !important;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
/* 预览模式:允许富文本编辑器容器滚动 */
|
|
157
|
+
.form-create.is-preview .w-e-text-container {
|
|
158
|
+
pointer-events: auto !important;
|
|
159
|
+
overflow-y: auto !important;
|
|
160
|
+
overflow-x: hidden !important;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.form-create.is-preview .w-e-text {
|
|
164
|
+
pointer-events: auto !important;
|
|
165
|
+
overflow-y: auto !important;
|
|
166
|
+
overflow-x: hidden !important;
|
|
167
|
+
cursor: default !important;
|
|
168
|
+
/* 确保可以滚动 */
|
|
169
|
+
-webkit-overflow-scrolling: touch !important;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/* 预览模式:允许 upload 组件的预览功能(整个列表项可以点击预览) */
|
|
173
|
+
.form-create.is-preview .ant-upload-list-item {
|
|
174
|
+
pointer-events: auto !important;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/* 预览模式:允许 upload 组件中的预览相关元素 */
|
|
178
|
+
.form-create.is-preview .ant-upload-list-item-thumbnail,
|
|
179
|
+
.form-create.is-preview .ant-upload-list-item-thumbnail *,
|
|
180
|
+
.form-create.is-preview .ant-upload-list-item-name,
|
|
181
|
+
.form-create.is-preview .ant-upload-list-item-preview,
|
|
182
|
+
.form-create.is-preview .ant-upload-list-item-preview-icon,
|
|
183
|
+
.form-create.is-preview .ant-upload-list-item-actions-preview,
|
|
184
|
+
.form-create.is-preview .ant-upload-list-item-actions .anticon-eye,
|
|
185
|
+
.form-create.is-preview .ant-upload-list-item-info,
|
|
186
|
+
.form-create.is-preview .ant-upload-list-item-info > span,
|
|
187
|
+
.form-create.is-preview
|
|
188
|
+
.ant-upload-picture-card
|
|
189
|
+
.ant-upload-list-item-thumbnail,
|
|
190
|
+
.form-create.is-preview
|
|
191
|
+
.ant-upload-picture-card
|
|
192
|
+
.ant-upload-list-item-thumbnail
|
|
193
|
+
* {
|
|
194
|
+
pointer-events: auto !important;
|
|
195
|
+
cursor: pointer !important;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
/* 预览模式:允许 image 组件的预览功能 */
|
|
199
|
+
.form-create.is-preview .ant-image,
|
|
200
|
+
.form-create.is-preview .ant-image-img,
|
|
201
|
+
.form-create.is-preview .ant-image-mask,
|
|
202
|
+
.form-create.is-preview .ant-image-mask-info {
|
|
203
|
+
pointer-events: auto !important;
|
|
204
|
+
cursor: pointer !important;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/* 预览模式:允许图片预览弹窗可以交互 */
|
|
208
|
+
.form-create.is-preview .ant-modal,
|
|
209
|
+
.form-create.is-preview .ant-modal-wrap,
|
|
210
|
+
.form-create.is-preview .ant-modal-mask,
|
|
211
|
+
.form-create.is-preview .ant-modal-content,
|
|
212
|
+
.form-create.is-preview .ant-modal-close,
|
|
213
|
+
.form-create.is-preview .ant-modal-header,
|
|
214
|
+
.form-create.is-preview .ant-modal-body,
|
|
215
|
+
.form-create.is-preview .ant-modal-footer {
|
|
216
|
+
pointer-events: auto !important;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
/* 预览模式:隐藏 upload 组件的上传按钮 */
|
|
220
|
+
.form-create.is-preview .ant-upload-select,
|
|
221
|
+
.form-create.is-preview .ant-upload-select-picture-card {
|
|
222
|
+
display: none !important;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
/* 预览模式:阻止 upload 组件中的删除和其他操作按钮(优先级更高) */
|
|
226
|
+
.form-create.is-preview .ant-upload-list-item-actions-delete,
|
|
227
|
+
.form-create.is-preview .ant-upload-list-item-actions-upload,
|
|
228
|
+
.form-create.is-preview .ant-upload-list-item-actions-download,
|
|
229
|
+
.form-create.is-preview .ant-upload-list-item-actions .anticon-delete,
|
|
230
|
+
.form-create.is-preview .ant-upload-list-item-actions .anticon-close,
|
|
231
|
+
.form-create.is-preview .ant-upload-list-item-actions-item .anticon-delete,
|
|
232
|
+
.form-create.is-preview .ant-upload-list-item-actions-item-delete,
|
|
233
|
+
.form-create.is-preview .ant-upload-list-item-actions-item-upload,
|
|
234
|
+
.form-create.is-preview .ant-upload-list-item-remove {
|
|
235
|
+
pointer-events: none !important;
|
|
236
|
+
cursor: not-allowed !important;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
/* 预览模式:防止组件显示为禁用状态(不置灰) */
|
|
240
|
+
.form-create.is-preview .ant-input,
|
|
241
|
+
.form-create.is-preview .ant-input-number,
|
|
242
|
+
.form-create.is-preview .ant-select,
|
|
243
|
+
.form-create.is-preview .ant-picker,
|
|
244
|
+
.form-create.is-preview .ant-cascader,
|
|
245
|
+
.form-create.is-preview .ant-input-password,
|
|
246
|
+
.form-create.is-preview .ant-textarea,
|
|
247
|
+
.form-create.is-preview .ant-radio,
|
|
248
|
+
.form-create.is-preview .ant-checkbox,
|
|
249
|
+
.form-create.is-preview .ant-switch,
|
|
250
|
+
.form-create.is-preview .ant-slider,
|
|
251
|
+
.form-create.is-preview .ant-rate,
|
|
252
|
+
.form-create.is-preview .ant-upload,
|
|
253
|
+
.form-create.is-preview .ant-btn {
|
|
254
|
+
opacity: 1 !important;
|
|
255
|
+
color: inherit !important;
|
|
256
|
+
background-color: transparent !important;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
/* 预览模式:CusSelect 组件保持正常外观,不置灰 */
|
|
260
|
+
.form-create.is-preview .fc-cus-select,
|
|
261
|
+
.form-create.is-preview .fc-cus-select-selector,
|
|
262
|
+
.form-create.is-preview .fc-cus-select-selection-item,
|
|
263
|
+
.form-create.is-preview .fc-cus-select-selection-placeholder {
|
|
264
|
+
opacity: 1 !important;
|
|
265
|
+
color: inherit !important;
|
|
266
|
+
background-color: transparent !important;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
/* 预览模式:移除 CusSelect 选择器的边框 */
|
|
270
|
+
.form-create.is-preview .fc-cus-select-selector {
|
|
271
|
+
border: none !important;
|
|
272
|
+
box-shadow: none !important;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
/* 预览模式:隐藏 CusSelect 的箭头和清除按钮 */
|
|
276
|
+
.form-create.is-preview .fc-cus-select-arrow,
|
|
277
|
+
.form-create.is-preview .fc-cus-select-clear {
|
|
278
|
+
display: none !important;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
/* 预览模式:隐藏选择器的下拉箭头 */
|
|
282
|
+
.form-create.is-preview .ant-select-arrow,
|
|
283
|
+
.form-create.is-preview .ant-select-suffix {
|
|
284
|
+
display: none !important;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
/* 预览模式:隐藏日期选择器的图标 */
|
|
288
|
+
.form-create.is-preview .ant-picker-suffix,
|
|
289
|
+
.form-create.is-preview .ant-picker-suffix .anticon {
|
|
290
|
+
display: none !important;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
/* 预览模式:隐藏其他输入框的清除按钮和图标 */
|
|
294
|
+
.form-create.is-preview .ant-input-clear-icon,
|
|
295
|
+
.form-create.is-preview .ant-input-number-handler,
|
|
296
|
+
.form-create.is-preview .ant-input-number-handler-wrap {
|
|
297
|
+
display: none !important;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
/* 预览模式:防止输入框显示为禁用状态的灰色 */
|
|
301
|
+
.form-create.is-preview .ant-input[disabled],
|
|
302
|
+
.form-create.is-preview .ant-input-number[disabled],
|
|
303
|
+
.form-create.is-preview .ant-select-disabled,
|
|
304
|
+
.form-create.is-preview .ant-picker-disabled,
|
|
305
|
+
.form-create.is-preview .ant-textarea[disabled] {
|
|
306
|
+
opacity: 1 !important;
|
|
307
|
+
color: inherit !important;
|
|
308
|
+
background-color: transparent !important;
|
|
309
|
+
cursor: default !important;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
/* 预览模式:textarea 自适应高度且只读可复制 */
|
|
313
|
+
.form-create.is-preview textarea.ant-input,
|
|
314
|
+
.form-create.is-preview .ant-textarea {
|
|
315
|
+
/* 允许文本选择,用于复制 */
|
|
316
|
+
user-select: text !important;
|
|
317
|
+
-webkit-user-select: text !important;
|
|
318
|
+
-moz-user-select: text !important;
|
|
319
|
+
-ms-user-select: text !important;
|
|
320
|
+
/* 允许交互,用于复制 */
|
|
321
|
+
pointer-events: auto !important;
|
|
322
|
+
cursor: text !important;
|
|
323
|
+
/* 移除滚动条(因为内容会自适应显示) */
|
|
324
|
+
overflow: hidden !important;
|
|
325
|
+
overflow-y: hidden !important;
|
|
326
|
+
overflow-x: hidden !important;
|
|
327
|
+
/* 确保只读状态下仍可正常显示和选择 */
|
|
328
|
+
resize: none !important;
|
|
329
|
+
/* 确保 textarea 能够根据内容自动调整高度 */
|
|
330
|
+
box-sizing: border-box !important;
|
|
331
|
+
/* 移除固定高度限制,让 JavaScript 动态设置 */
|
|
332
|
+
min-height: auto !important;
|
|
333
|
+
max-height: none !important;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
/* 预览模式:textarea 只读状态样式 */
|
|
337
|
+
.form-create.is-preview textarea.ant-input[readonly],
|
|
338
|
+
.form-create.is-preview .ant-textarea[readonly] {
|
|
339
|
+
opacity: 1 !important;
|
|
340
|
+
color: inherit !important;
|
|
341
|
+
background-color: transparent !important;
|
|
342
|
+
cursor: text !important;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
/* 预览模式:防止选择器显示为禁用状态 */
|
|
346
|
+
.form-create.is-preview .ant-select-disabled .ant-select-selector {
|
|
347
|
+
opacity: 1 !important;
|
|
348
|
+
color: inherit !important;
|
|
349
|
+
background-color: transparent !important;
|
|
350
|
+
cursor: default !important;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
/* 预览模式:防止日期选择器显示为禁用状态 */
|
|
354
|
+
.form-create.is-preview .ant-picker-disabled {
|
|
355
|
+
opacity: 1 !important;
|
|
356
|
+
color: inherit !important;
|
|
357
|
+
background-color: transparent !important;
|
|
358
|
+
cursor: default !important;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
/* 预览模式:富文本编辑器样式 */
|
|
362
|
+
.form-create.is-preview .w-e-text-container {
|
|
363
|
+
border: none !important;
|
|
364
|
+
box-shadow: none !important;
|
|
365
|
+
background: transparent !important;
|
|
366
|
+
/* 移除高度限制,让内容自适应 */
|
|
367
|
+
height: auto !important;
|
|
368
|
+
min-height: auto !important;
|
|
369
|
+
max-height: none !important;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
.form-create.is-preview .w-e-toolbar {
|
|
373
|
+
display: none !important;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
.form-create.is-preview .w-e-text {
|
|
377
|
+
border: none !important;
|
|
378
|
+
box-shadow: none !important;
|
|
379
|
+
background: transparent !important;
|
|
380
|
+
/* 移除高度限制,让内容自适应 */
|
|
381
|
+
height: auto !important;
|
|
382
|
+
min-height: auto !important;
|
|
383
|
+
max-height: none !important;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
/* 富文本内容只读:允许选择文本和点击链接,但禁止编辑 */
|
|
387
|
+
.form-create.is-preview .w-e-text p,
|
|
388
|
+
.form-create.is-preview .w-e-text div,
|
|
389
|
+
.form-create.is-preview .w-e-text span,
|
|
390
|
+
.form-create.is-preview .w-e-text li,
|
|
391
|
+
.form-create.is-preview .w-e-text ul,
|
|
392
|
+
.form-create.is-preview .w-e-text ol,
|
|
393
|
+
.form-create.is-preview .w-e-text h1,
|
|
394
|
+
.form-create.is-preview .w-e-text h2,
|
|
395
|
+
.form-create.is-preview .w-e-text h3,
|
|
396
|
+
.form-create.is-preview .w-e-text h4,
|
|
397
|
+
.form-create.is-preview .w-e-text h5,
|
|
398
|
+
.form-create.is-preview .w-e-text h6,
|
|
399
|
+
.form-create.is-preview .w-e-text table,
|
|
400
|
+
.form-create.is-preview .w-e-text tr,
|
|
401
|
+
.form-create.is-preview .w-e-text td,
|
|
402
|
+
.form-create.is-preview .w-e-text th {
|
|
403
|
+
/* 允许文本选择,用于复制 */
|
|
404
|
+
user-select: text !important;
|
|
405
|
+
-webkit-user-select: text !important;
|
|
406
|
+
-moz-user-select: text !important;
|
|
407
|
+
-ms-user-select: text !important;
|
|
408
|
+
/* 阻止编辑,但不阻止交互 */
|
|
409
|
+
pointer-events: auto !important;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
/* 允许链接可以点击 */
|
|
413
|
+
.form-create.is-preview .w-e-text a {
|
|
414
|
+
pointer-events: auto !important;
|
|
415
|
+
cursor: pointer !important;
|
|
416
|
+
user-select: text !important;
|
|
417
|
+
-webkit-user-select: text !important;
|
|
418
|
+
-moz-user-select: text !important;
|
|
419
|
+
-ms-user-select: text !important;
|
|
420
|
+
text-decoration: underline !important;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
/* 允许图片可以查看 */
|
|
424
|
+
.form-create.is-preview .w-e-text img {
|
|
425
|
+
pointer-events: auto !important;
|
|
426
|
+
user-select: none !important;
|
|
427
|
+
-webkit-user-select: none !important;
|
|
428
|
+
-moz-user-select: none !important;
|
|
429
|
+
-ms-user-select: none !important;
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
/* 禁止编辑:通过 contenteditable 属性控制 */
|
|
433
|
+
.form-create.is-preview .w-e-text {
|
|
434
|
+
user-select: text !important;
|
|
435
|
+
-webkit-user-select: text !important;
|
|
436
|
+
-moz-user-select: text !important;
|
|
437
|
+
-ms-user-select: text !important;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
/* 预览模式:禁用按钮点击 */
|
|
441
|
+
.form-create.is-preview .ant-btn {
|
|
442
|
+
pointer-events: none !important;
|
|
443
|
+
cursor: default !important;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
/* 预览模式:禁用选择器下拉 */
|
|
447
|
+
.form-create.is-preview .ant-select-dropdown {
|
|
448
|
+
display: none !important;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
/* 预览模式:禁用日期选择器弹窗 */
|
|
452
|
+
.form-create.is-preview .ant-picker-dropdown {
|
|
453
|
+
display: none !important;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
/* 预览模式:禁用级联选择器下拉 */
|
|
457
|
+
.form-create.is-preview .ant-cascader-dropdown {
|
|
458
|
+
display: none !important;
|
|
459
|
+
}
|
|
460
|
+
|
|
29
461
|
.fc-form-footer {
|
|
30
462
|
margin-top: 12px;
|
|
31
463
|
}
|