@hailin-zheng/editor-core 2.2.7 → 2.2.9
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/editor.css +351 -348
- package/index-cjs.js +321 -326
- package/index-cjs.js.map +1 -1
- package/index.js +321 -326
- package/index.js.map +1 -1
- package/med_editor/framework/document-context.d.ts +6 -2
- package/med_editor/framework/element-define.d.ts +11 -6
- package/med_editor/framework/element-props.d.ts +1 -3
- package/med_editor/framework/element-serialize.d.ts +1 -1
- package/med_editor/framework/impl/data-element/data-container-impl.d.ts +8 -8
- package/med_editor/framework/impl/data-element/data-element-group-impl.d.ts +5 -2
- package/med_editor/framework/impl/document/doc-body-impl.d.ts +2 -2
- package/med_editor/framework/impl/document/doc-body-part-impl.d.ts +2 -2
- package/med_editor/framework/impl/paragraph/p-impl.d.ts +2 -2
- package/med_editor/framework/impl/table/table-impl.d.ts +2 -2
- package/med_editor/framework/impl/table/table-row-impl.d.ts +2 -2
- package/med_editor/framework/render-define.d.ts +5 -6
- package/package.json +2 -2
package/editor.css
CHANGED
|
@@ -1,97 +1,100 @@
|
|
|
1
1
|
.svg-container {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
background: #f2f4f7;
|
|
3
|
+
overflow: hidden;
|
|
4
|
+
flex: 1;
|
|
5
|
+
height: 100%;
|
|
6
|
+
position: relative;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
.svg-container * {
|
|
10
|
-
|
|
10
|
+
white-space: pre;
|
|
11
|
+
}
|
|
12
|
+
.svg-container svg{
|
|
13
|
+
pointer-events: none;
|
|
11
14
|
}
|
|
12
15
|
|
|
13
16
|
.drop-container {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
+
position: absolute;
|
|
18
|
+
left: 0;
|
|
19
|
+
top: 0;
|
|
17
20
|
}
|
|
18
21
|
|
|
19
22
|
.data-list > div {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
padding: 6px 4px;
|
|
24
|
+
display: flex;
|
|
25
|
+
align-items: center;
|
|
26
|
+
gap: 10px;
|
|
27
|
+
border-bottom: 1px solid #ccc;
|
|
28
|
+
cursor: default;
|
|
26
29
|
}
|
|
27
30
|
|
|
28
31
|
.data-list > div:hover {
|
|
29
|
-
|
|
32
|
+
background-color: #ccc;
|
|
30
33
|
}
|
|
31
34
|
|
|
32
35
|
.data-list > div:last-child {
|
|
33
|
-
|
|
36
|
+
border-bottom: none; /* 去掉最后一个列表项的底部边框线 */
|
|
34
37
|
}
|
|
35
38
|
|
|
36
39
|
@keyframes hover-color {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
from {
|
|
41
|
+
border-color: #c0c0c0;
|
|
42
|
+
}
|
|
43
|
+
to {
|
|
44
|
+
border-color: #3e97eb;
|
|
45
|
+
}
|
|
43
46
|
}
|
|
44
47
|
|
|
45
48
|
.magic-radio,
|
|
46
49
|
.magic-checkbox {
|
|
47
|
-
|
|
48
|
-
|
|
50
|
+
position: absolute;
|
|
51
|
+
display: none;
|
|
49
52
|
}
|
|
50
53
|
|
|
51
54
|
.magic-radio[disabled],
|
|
52
55
|
.magic-checkbox[disabled] {
|
|
53
|
-
|
|
56
|
+
cursor: not-allowed;
|
|
54
57
|
}
|
|
55
58
|
|
|
56
59
|
.magic-radio + label,
|
|
57
60
|
.magic-checkbox + label {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
position: relative;
|
|
62
|
+
display: block;
|
|
63
|
+
padding-left: 30px;
|
|
64
|
+
cursor: pointer;
|
|
65
|
+
vertical-align: middle;
|
|
63
66
|
}
|
|
64
67
|
|
|
65
68
|
.magic-radio + label:hover:before,
|
|
66
69
|
.magic-checkbox + label:hover:before {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
+
animation-duration: 0.4s;
|
|
71
|
+
animation-fill-mode: both;
|
|
72
|
+
animation-name: hover-color;
|
|
70
73
|
}
|
|
71
74
|
|
|
72
75
|
.magic-radio + label:before,
|
|
73
76
|
.magic-checkbox + label:before {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
77
|
+
position: absolute;
|
|
78
|
+
top: 0;
|
|
79
|
+
left: 0;
|
|
80
|
+
display: inline-block;
|
|
81
|
+
width: 20px;
|
|
82
|
+
height: 20px;
|
|
83
|
+
content: "";
|
|
84
|
+
border: 1px solid #c0c0c0;
|
|
82
85
|
}
|
|
83
86
|
|
|
84
87
|
.magic-radio + label:after,
|
|
85
88
|
.magic-checkbox + label:after {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
+
position: absolute;
|
|
90
|
+
display: none;
|
|
91
|
+
content: "";
|
|
89
92
|
}
|
|
90
93
|
|
|
91
94
|
.magic-radio[disabled] + label,
|
|
92
95
|
.magic-checkbox[disabled] + label {
|
|
93
|
-
|
|
94
|
-
|
|
96
|
+
cursor: not-allowed;
|
|
97
|
+
color: #e4e4e4;
|
|
95
98
|
}
|
|
96
99
|
|
|
97
100
|
.magic-radio[disabled] + label:hover,
|
|
@@ -100,595 +103,595 @@
|
|
|
100
103
|
.magic-checkbox[disabled] + label:hover,
|
|
101
104
|
.magic-checkbox[disabled] + label:before,
|
|
102
105
|
.magic-checkbox[disabled] + label:after {
|
|
103
|
-
|
|
106
|
+
cursor: not-allowed;
|
|
104
107
|
}
|
|
105
108
|
|
|
106
109
|
.magic-radio[disabled] + label:hover:before,
|
|
107
110
|
.magic-checkbox[disabled] + label:hover:before {
|
|
108
|
-
|
|
109
|
-
|
|
111
|
+
border: 1px solid #e4e4e4;
|
|
112
|
+
animation-name: none;
|
|
110
113
|
}
|
|
111
114
|
|
|
112
115
|
.magic-radio[disabled] + label:before,
|
|
113
116
|
.magic-checkbox[disabled] + label:before {
|
|
114
|
-
|
|
117
|
+
border-color: #e4e4e4;
|
|
115
118
|
}
|
|
116
119
|
|
|
117
120
|
.magic-radio:checked + label:before,
|
|
118
121
|
.magic-checkbox:checked + label:before {
|
|
119
|
-
|
|
122
|
+
animation-name: none;
|
|
120
123
|
}
|
|
121
124
|
|
|
122
125
|
.magic-radio:checked + label:after,
|
|
123
126
|
.magic-checkbox:checked + label:after {
|
|
124
|
-
|
|
127
|
+
display: block;
|
|
125
128
|
}
|
|
126
129
|
|
|
127
130
|
.magic-radio + label:before {
|
|
128
|
-
|
|
131
|
+
border-radius: 50%;
|
|
129
132
|
}
|
|
130
133
|
|
|
131
134
|
.magic-radio + label:after {
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
135
|
+
top: 7px;
|
|
136
|
+
left: 7px;
|
|
137
|
+
width: 8px;
|
|
138
|
+
height: 8px;
|
|
139
|
+
border-radius: 50%;
|
|
140
|
+
background: #3e97eb;
|
|
138
141
|
}
|
|
139
142
|
|
|
140
143
|
.magic-radio:checked + label:before {
|
|
141
|
-
|
|
144
|
+
border: 1px solid #3e97eb;
|
|
142
145
|
}
|
|
143
146
|
|
|
144
147
|
.magic-radio:checked[disabled] + label:before {
|
|
145
|
-
|
|
148
|
+
border: 1px solid #c9e2f9;
|
|
146
149
|
}
|
|
147
150
|
|
|
148
151
|
.magic-radio:checked[disabled] + label:after {
|
|
149
|
-
|
|
152
|
+
background: #c9e2f9;
|
|
150
153
|
}
|
|
151
154
|
|
|
152
155
|
.magic-checkbox + label:before {
|
|
153
|
-
|
|
156
|
+
border-radius: 3px;
|
|
154
157
|
}
|
|
155
158
|
|
|
156
159
|
.magic-checkbox + label:after {
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
160
|
+
top: 2px;
|
|
161
|
+
left: 7px;
|
|
162
|
+
box-sizing: border-box;
|
|
163
|
+
width: 6px;
|
|
164
|
+
height: 12px;
|
|
165
|
+
transform: rotate(45deg);
|
|
166
|
+
border-width: 2px;
|
|
167
|
+
border-style: solid;
|
|
168
|
+
border-color: #fff;
|
|
169
|
+
border-top: 0;
|
|
170
|
+
border-left: 0;
|
|
168
171
|
}
|
|
169
172
|
|
|
170
173
|
.magic-checkbox:checked + label:before {
|
|
171
|
-
|
|
172
|
-
|
|
174
|
+
border: #3e97eb;
|
|
175
|
+
background: #3e97eb;
|
|
173
176
|
}
|
|
174
177
|
|
|
175
178
|
.magic-checkbox:checked[disabled] + label:before {
|
|
176
|
-
|
|
177
|
-
|
|
179
|
+
border: #c9e2f9;
|
|
180
|
+
background: #c9e2f9;
|
|
178
181
|
}
|
|
179
182
|
|
|
180
183
|
/* 样式化 radio box 的外观 */
|
|
181
184
|
.editor-list-radiobox {
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
185
|
+
width: 16px;
|
|
186
|
+
height: 16px;
|
|
187
|
+
border: 1px solid #000;
|
|
188
|
+
border-radius: 50%;
|
|
189
|
+
cursor: pointer;
|
|
190
|
+
display: inline-block;
|
|
191
|
+
position: relative;
|
|
189
192
|
}
|
|
190
193
|
|
|
191
194
|
/* 选中状态的样式 */
|
|
192
195
|
.editor-list-radiobox.checked::after {
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
196
|
+
content: "";
|
|
197
|
+
width: 8px;
|
|
198
|
+
height: 8px;
|
|
199
|
+
background-color: #007bff;
|
|
200
|
+
border-radius: 50%;
|
|
201
|
+
position: absolute;
|
|
202
|
+
top: 50%;
|
|
203
|
+
left: 50%;
|
|
204
|
+
transform: translate(-50%, -50%);
|
|
202
205
|
}
|
|
203
206
|
|
|
204
207
|
/* 样式化 checkbox 的外观 */
|
|
205
208
|
.editor-list-checkbox {
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
209
|
+
width: 16px;
|
|
210
|
+
height: 16px;
|
|
211
|
+
border: 1px solid #000;
|
|
212
|
+
cursor: pointer;
|
|
210
213
|
}
|
|
211
214
|
|
|
212
215
|
/* 选中状态的样式 */
|
|
213
216
|
.editor-list-checkbox.checked::after {
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
217
|
+
content: "✔";
|
|
218
|
+
font-size: 14px;
|
|
219
|
+
color: #007bff;
|
|
220
|
+
display: block;
|
|
221
|
+
text-align: center;
|
|
222
|
+
line-height: 16px;
|
|
220
223
|
}
|
|
221
224
|
|
|
222
225
|
.decorate-container {
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
+
position: absolute;
|
|
227
|
+
cursor: default;
|
|
228
|
+
z-index: 1;
|
|
226
229
|
}
|
|
227
230
|
|
|
228
231
|
.tg-container {
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
232
|
+
font-size: 12px;
|
|
233
|
+
border: 1px solid #ccc;
|
|
234
|
+
padding: 10px;
|
|
235
|
+
position: absolute;
|
|
236
|
+
width: 200px;
|
|
237
|
+
background: #fff;
|
|
238
|
+
box-shadow: rgba(158, 161, 165, 0.4) 0px 2px 12px 0px;
|
|
236
239
|
}
|
|
237
240
|
|
|
238
241
|
.tg-container--selected {
|
|
239
|
-
|
|
242
|
+
box-shadow: 0 2px 16px 0 rgb(0 0 0 / 20%);
|
|
240
243
|
}
|
|
241
244
|
|
|
242
245
|
.tg-container > .header {
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
+
display: flex;
|
|
247
|
+
justify-content: space-between;
|
|
248
|
+
align-items: center;
|
|
246
249
|
}
|
|
247
250
|
|
|
248
251
|
.tg-container > .content {
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
+
margin-top: 10px;
|
|
253
|
+
white-space: normal;
|
|
254
|
+
word-break: break-all;
|
|
252
255
|
}
|
|
253
256
|
|
|
254
257
|
.tg-container > .header > .header-user {
|
|
255
|
-
|
|
258
|
+
color: #3e97eb;
|
|
256
259
|
}
|
|
257
260
|
|
|
258
261
|
.tg-container > .header > .header-date {
|
|
259
|
-
|
|
260
|
-
|
|
262
|
+
color: #c0c0c0;
|
|
263
|
+
padding-right: 10px;
|
|
261
264
|
}
|
|
262
265
|
|
|
263
266
|
.tg-container > .bg {
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
267
|
+
position: absolute;
|
|
268
|
+
left: 0;
|
|
269
|
+
top: 0;
|
|
270
|
+
width: 4px;
|
|
271
|
+
height: 100%;
|
|
269
272
|
}
|
|
270
273
|
|
|
271
274
|
.editor-calendar {
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
275
|
+
width: 212px;
|
|
276
|
+
height: 272px;
|
|
277
|
+
border: 1px solid #ccc;
|
|
278
|
+
background: #fff;
|
|
279
|
+
cursor: default;
|
|
280
|
+
user-select: none;
|
|
281
|
+
font-size: 12px;
|
|
279
282
|
}
|
|
280
283
|
|
|
281
284
|
.editor-calendar-header {
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
285
|
+
display: flex;
|
|
286
|
+
justify-content: space-between;
|
|
287
|
+
align-items: center;
|
|
288
|
+
line-height: 30px;
|
|
286
289
|
}
|
|
287
290
|
|
|
288
291
|
.editor-calendar-header-left {
|
|
289
|
-
|
|
290
|
-
|
|
292
|
+
display: flex;
|
|
293
|
+
align-items: center;
|
|
291
294
|
}
|
|
292
295
|
|
|
293
296
|
.editor-calendar-header-left-year {
|
|
294
|
-
|
|
297
|
+
padding: 0 5px;
|
|
295
298
|
}
|
|
296
299
|
|
|
297
300
|
.editor-calendar-header-left-year:hover {
|
|
298
|
-
|
|
301
|
+
background: #ccc;
|
|
299
302
|
}
|
|
300
303
|
|
|
301
304
|
.editor-calendar-item:hover {
|
|
302
|
-
|
|
305
|
+
background: #ccc;
|
|
303
306
|
}
|
|
304
307
|
|
|
305
308
|
.editor-calendar-header-left-month {
|
|
306
|
-
|
|
309
|
+
padding: 0 5px;
|
|
307
310
|
}
|
|
308
311
|
|
|
309
312
|
.editor-calendar-header-left-month:hover {
|
|
310
|
-
|
|
313
|
+
background: #ccc;
|
|
311
314
|
}
|
|
312
315
|
|
|
313
316
|
.editor-calendar-header-right {
|
|
314
|
-
|
|
315
|
-
|
|
317
|
+
display: flex;
|
|
318
|
+
align-items: center;
|
|
316
319
|
}
|
|
317
320
|
|
|
318
321
|
.editor-calendar-header-right-prev {
|
|
319
|
-
|
|
322
|
+
padding: 0 5px;
|
|
320
323
|
}
|
|
321
324
|
|
|
322
325
|
.editor-calendar-header-right-prev:hover {
|
|
323
|
-
|
|
326
|
+
background-color: #ccc;
|
|
324
327
|
}
|
|
325
328
|
|
|
326
329
|
.editor-calendar-header-right-next {
|
|
327
|
-
|
|
330
|
+
padding: 0 5px;
|
|
328
331
|
}
|
|
329
332
|
|
|
330
333
|
.editor-calendar-header-right-next:hover {
|
|
331
|
-
|
|
334
|
+
background-color: #ccc;
|
|
332
335
|
}
|
|
333
336
|
|
|
334
337
|
.editor-calendar-body {
|
|
335
|
-
|
|
336
|
-
|
|
338
|
+
display: flex;
|
|
339
|
+
flex-direction: column;
|
|
337
340
|
}
|
|
338
341
|
|
|
339
342
|
.editor-calendar-body-week {
|
|
340
|
-
|
|
343
|
+
display: flex;
|
|
341
344
|
}
|
|
342
345
|
|
|
343
346
|
.editor-calendar-body-week-item {
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
347
|
+
width: 30px;
|
|
348
|
+
height: 30px;
|
|
349
|
+
line-height: 30px;
|
|
350
|
+
text-align: center;
|
|
348
351
|
}
|
|
349
352
|
|
|
350
353
|
.editor-calendar-body-day {
|
|
351
|
-
|
|
352
|
-
|
|
354
|
+
display: flex;
|
|
355
|
+
flex-wrap: wrap;
|
|
353
356
|
}
|
|
354
357
|
|
|
355
358
|
.editor-calendar-body-day-item {
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
359
|
+
width: 30px;
|
|
360
|
+
height: 30px;
|
|
361
|
+
line-height: 30px;
|
|
362
|
+
text-align: center;
|
|
363
|
+
opacity: 0.6;
|
|
361
364
|
}
|
|
362
365
|
|
|
363
366
|
.editor-calendar-body-day-item--current-month {
|
|
364
|
-
|
|
367
|
+
opacity: 1;
|
|
365
368
|
}
|
|
366
369
|
|
|
367
370
|
.editor-calendar-body-day-item--today {
|
|
368
|
-
|
|
369
|
-
|
|
371
|
+
background: #2b88d8;
|
|
372
|
+
color: #fff;
|
|
370
373
|
}
|
|
371
374
|
|
|
372
375
|
.editor-calendar-body-day-item--selected {
|
|
373
|
-
|
|
374
|
-
|
|
376
|
+
outline: #2b88d8 1px solid;
|
|
377
|
+
font-weight: bold;
|
|
375
378
|
}
|
|
376
379
|
|
|
377
380
|
.editor-calendar-body-day-item:hover {
|
|
378
|
-
|
|
381
|
+
background-color: #ccc;
|
|
379
382
|
}
|
|
380
383
|
|
|
381
384
|
.editor-calendar-footer {
|
|
382
|
-
|
|
383
|
-
|
|
385
|
+
display: flex;
|
|
386
|
+
justify-content: space-between;
|
|
384
387
|
}
|
|
385
388
|
|
|
386
389
|
.editor-calendar-footer-right {
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
390
|
+
display: flex;
|
|
391
|
+
justify-content: flex-end;
|
|
392
|
+
align-items: center;
|
|
393
|
+
height: 30px;
|
|
394
|
+
font-size: 12px;
|
|
392
395
|
}
|
|
393
396
|
|
|
394
397
|
.editor-calendar-footer-right-btn {
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
+
padding: 2px 3px;
|
|
399
|
+
cursor: default;
|
|
400
|
+
user-select: none;
|
|
398
401
|
}
|
|
399
402
|
|
|
400
403
|
.editor-calendar-footer-right-btn:hover {
|
|
401
|
-
|
|
404
|
+
outline: 1px solid rgb(118, 142, 222);
|
|
402
405
|
}
|
|
403
406
|
|
|
404
407
|
.editor-calendar-footer-right-btn:active {
|
|
405
|
-
|
|
408
|
+
outline: 1px solid rgb(95, 19, 216);
|
|
406
409
|
}
|
|
407
410
|
|
|
408
411
|
.invert {
|
|
409
|
-
|
|
412
|
+
filter: invert(100%);
|
|
410
413
|
}
|
|
411
414
|
|
|
412
415
|
.editor-calendar-month {
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
416
|
+
width: 210px;
|
|
417
|
+
height: 180px;
|
|
418
|
+
border: 1px solid #ccc;
|
|
419
|
+
background: #fff;
|
|
420
|
+
cursor: default;
|
|
418
421
|
}
|
|
419
422
|
|
|
420
423
|
.editor-calendar-month-header {
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
424
|
+
display: flex;
|
|
425
|
+
justify-content: space-between;
|
|
426
|
+
align-items: center;
|
|
427
|
+
height: 30px;
|
|
425
428
|
}
|
|
426
429
|
|
|
427
430
|
.editor-calendar-month-header-left {
|
|
428
|
-
|
|
429
|
-
|
|
431
|
+
display: flex;
|
|
432
|
+
align-items: center;
|
|
430
433
|
}
|
|
431
434
|
|
|
432
435
|
.editor-calendar-month-header-left-year {
|
|
433
|
-
|
|
436
|
+
padding-left: 10px;
|
|
434
437
|
}
|
|
435
438
|
|
|
436
439
|
.editor-calendar-month-header-right {
|
|
437
|
-
|
|
438
|
-
|
|
440
|
+
display: flex;
|
|
441
|
+
align-items: center;
|
|
439
442
|
}
|
|
440
443
|
|
|
441
444
|
.editor-calendar-month-header-right-prev {
|
|
442
|
-
|
|
445
|
+
padding: 0 5px;
|
|
443
446
|
}
|
|
444
447
|
|
|
445
448
|
.editor-calendar-month-header-right-next {
|
|
446
|
-
|
|
449
|
+
padding: 0 5px;
|
|
447
450
|
}
|
|
448
451
|
|
|
449
452
|
.editor-calendar-month-body {
|
|
450
|
-
|
|
451
|
-
|
|
453
|
+
display: flex;
|
|
454
|
+
flex-direction: column;
|
|
452
455
|
}
|
|
453
456
|
|
|
454
457
|
.editor-calendar-month-body-month {
|
|
455
|
-
|
|
456
|
-
|
|
458
|
+
display: flex;
|
|
459
|
+
flex-wrap: wrap;
|
|
457
460
|
}
|
|
458
461
|
|
|
459
462
|
.editor-calendar-month-body-month-item {
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
463
|
+
width: 52px;
|
|
464
|
+
height: 50px;
|
|
465
|
+
line-height: 50px;
|
|
466
|
+
text-align: center;
|
|
464
467
|
}
|
|
465
468
|
|
|
466
469
|
.editor-calendar-month-body-month-item--current {
|
|
467
|
-
|
|
468
|
-
|
|
470
|
+
outline: #2b88d8 1px solid;
|
|
471
|
+
font-weight: bold;
|
|
469
472
|
}
|
|
470
473
|
|
|
471
474
|
.editor-calendar-year {
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
475
|
+
width: 210px;
|
|
476
|
+
height: 210px;
|
|
477
|
+
border: 1px solid #ccc;
|
|
478
|
+
background: #fff;
|
|
479
|
+
cursor: default;
|
|
477
480
|
}
|
|
478
481
|
|
|
479
482
|
.editor-calendar-year-header {
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
483
|
+
display: flex;
|
|
484
|
+
justify-content: space-between;
|
|
485
|
+
align-items: center;
|
|
486
|
+
height: 30px;
|
|
484
487
|
}
|
|
485
488
|
|
|
486
489
|
.editor-calendar-year-header-left {
|
|
487
|
-
|
|
488
|
-
|
|
490
|
+
display: flex;
|
|
491
|
+
align-items: center;
|
|
489
492
|
}
|
|
490
493
|
|
|
491
494
|
.editor-calendar-year-header-left-year {
|
|
492
|
-
|
|
495
|
+
padding: 0 5px;
|
|
493
496
|
}
|
|
494
497
|
|
|
495
498
|
.editor-calendar-year-header-right {
|
|
496
|
-
|
|
497
|
-
|
|
499
|
+
display: flex;
|
|
500
|
+
align-items: center;
|
|
498
501
|
}
|
|
499
502
|
|
|
500
503
|
.editor-calendar-year-header-right-prev {
|
|
501
|
-
|
|
504
|
+
padding: 0 5px;
|
|
502
505
|
}
|
|
503
506
|
|
|
504
507
|
.editor-calendar-year-header-right-next {
|
|
505
|
-
|
|
508
|
+
padding: 0 5px;
|
|
506
509
|
}
|
|
507
510
|
|
|
508
511
|
.editor-calendar-year-body {
|
|
509
|
-
|
|
510
|
-
|
|
512
|
+
display: flex;
|
|
513
|
+
flex-direction: column;
|
|
511
514
|
}
|
|
512
515
|
|
|
513
516
|
.editor-calendar-year-body-year {
|
|
514
|
-
|
|
515
|
-
|
|
517
|
+
display: flex;
|
|
518
|
+
flex-wrap: wrap;
|
|
516
519
|
}
|
|
517
520
|
|
|
518
521
|
.editor-calendar-year-body-year-item {
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
522
|
+
width: 52px;
|
|
523
|
+
height: 36px;
|
|
524
|
+
line-height: 36px;
|
|
525
|
+
text-align: center;
|
|
523
526
|
}
|
|
524
527
|
|
|
525
528
|
.editor-contextmenu {
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
529
|
+
z-index: 1000;
|
|
530
|
+
position: absolute;
|
|
531
|
+
background: white;
|
|
532
|
+
box-shadow: rgba(158, 161, 165, 0.4) 0px 2px 12px 0px;
|
|
530
533
|
}
|
|
531
534
|
|
|
532
535
|
.editor-overlays-menus {
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
536
|
+
font-size: 14px;
|
|
537
|
+
font-family: "宋体", serif;
|
|
538
|
+
margin: 0;
|
|
539
|
+
cursor: pointer;
|
|
540
|
+
padding: 0;
|
|
541
|
+
list-style: none;
|
|
542
|
+
user-select: none;
|
|
540
543
|
}
|
|
541
544
|
|
|
542
545
|
.editor-overlays-menus {
|
|
543
|
-
|
|
546
|
+
padding: 3px;
|
|
544
547
|
}
|
|
545
548
|
|
|
546
549
|
.editor-overlays-menus > li {
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
}
|
|
555
|
-
.editor-overlays-menus > li >ul{
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
}
|
|
564
|
-
.editor-overlays-menus .sub:after{
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
}
|
|
568
|
-
.editor-overlays-menus > li:hover >ul{
|
|
569
|
-
|
|
550
|
+
padding: 8px 12px;
|
|
551
|
+
display: flex;
|
|
552
|
+
gap: 6px;
|
|
553
|
+
align-items: center;
|
|
554
|
+
word-break: keep-all;
|
|
555
|
+
border-bottom: 1px solid #ccc; /* 在每个列表项的底部添加一条边框线 */
|
|
556
|
+
position: relative;
|
|
557
|
+
}
|
|
558
|
+
.editor-overlays-menus > li > ul {
|
|
559
|
+
display: none;
|
|
560
|
+
position: absolute;
|
|
561
|
+
left: calc(100%);
|
|
562
|
+
top: 0;
|
|
563
|
+
z-index: 1;
|
|
564
|
+
background: #fff;
|
|
565
|
+
box-shadow: rgba(158, 161, 165, 0.4) 0px 2px 12px 0px;
|
|
566
|
+
}
|
|
567
|
+
.editor-overlays-menus .sub:after {
|
|
568
|
+
content: "▸";
|
|
569
|
+
margin-left: auto;
|
|
570
|
+
}
|
|
571
|
+
.editor-overlays-menus > li:hover > ul {
|
|
572
|
+
display: block;
|
|
570
573
|
}
|
|
571
574
|
|
|
572
575
|
.editor-overlays-menus > li:hover {
|
|
573
|
-
|
|
576
|
+
background-color: #ccc;
|
|
574
577
|
}
|
|
575
578
|
|
|
576
579
|
.editor-overlays-menus > li:last-child {
|
|
577
|
-
|
|
580
|
+
border-bottom: none; /* 去掉最后一个列表项的底部边框线 */
|
|
578
581
|
}
|
|
579
582
|
|
|
580
583
|
/*.scale-container > *{*/
|
|
581
584
|
/* transform-origin: center top;*/
|
|
582
585
|
/*}*/
|
|
583
586
|
.doc-rule {
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
587
|
+
position: absolute;
|
|
588
|
+
font-size: 0;
|
|
589
|
+
background: white;
|
|
590
|
+
box-shadow: rgba(158, 161, 165, 0.4) 0px 2px 12px 0px;
|
|
591
|
+
cursor: default;
|
|
592
|
+
left: 0;
|
|
593
|
+
top: 0;
|
|
591
594
|
}
|
|
592
595
|
|
|
593
596
|
.editor-calendar-footer-left {
|
|
594
|
-
|
|
597
|
+
display: flex;
|
|
595
598
|
}
|
|
596
599
|
|
|
597
600
|
.editor-calendar-footer-left-time {
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
601
|
+
outline: none;
|
|
602
|
+
width: 110px;
|
|
603
|
+
text-align: center;
|
|
604
|
+
padding: 0;
|
|
605
|
+
margin: 0;
|
|
606
|
+
font-size: 14px;
|
|
604
607
|
}
|
|
605
608
|
|
|
606
609
|
.editor-input-cursor {
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
610
|
+
position: absolute;
|
|
611
|
+
width: 1.6px;
|
|
612
|
+
padding: 0;
|
|
613
|
+
border: none;
|
|
614
|
+
outline: none;
|
|
615
|
+
background: black;
|
|
616
|
+
pointer-events: none;
|
|
617
|
+
opacity: 0;
|
|
618
|
+
animation: editor-cursor-blink 1s infinite steps(1, start);
|
|
616
619
|
}
|
|
617
620
|
|
|
618
621
|
@keyframes editor-cursor-blink {
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
622
|
+
0% {
|
|
623
|
+
opacity: 1;
|
|
624
|
+
}
|
|
625
|
+
50% {
|
|
626
|
+
opacity: 0;
|
|
627
|
+
}
|
|
628
|
+
100% {
|
|
629
|
+
opacity: 1;
|
|
630
|
+
}
|
|
628
631
|
}
|
|
629
632
|
|
|
630
633
|
.doc-triangle {
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
634
|
+
position: absolute;
|
|
635
|
+
width: 0;
|
|
636
|
+
height: 0;
|
|
637
|
+
border-left: 5px solid transparent;
|
|
638
|
+
border-right: 5px solid transparent;
|
|
639
|
+
border-bottom: 10px solid red; /* 修改颜色 */
|
|
637
640
|
}
|
|
638
641
|
|
|
639
642
|
.doc-triangle-line {
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
643
|
+
position: absolute;
|
|
644
|
+
height: 1px;
|
|
645
|
+
background: red;
|
|
646
|
+
transform-origin: top left;
|
|
644
647
|
}
|
|
645
648
|
|
|
646
649
|
.data-list-container {
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
650
|
+
min-width: 100px;
|
|
651
|
+
background-color: white;
|
|
652
|
+
z-index: 1000;
|
|
653
|
+
box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.2);
|
|
654
|
+
user-select: none;
|
|
652
655
|
}
|
|
653
|
-
.editor-suggestions-container{
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
656
|
+
.editor-suggestions-container {
|
|
657
|
+
z-index: 1000;
|
|
658
|
+
position: absolute;
|
|
659
|
+
background: white;
|
|
660
|
+
box-shadow: rgba(158, 161, 165, 0.4) 0px 2px 12px 0px;
|
|
661
|
+
max-height: 300px;
|
|
662
|
+
overflow: auto;
|
|
660
663
|
}
|
|
661
664
|
|
|
662
665
|
.editor-suggestions {
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
666
|
+
font-size: 14px;
|
|
667
|
+
font-family: "宋体", serif;
|
|
668
|
+
margin: 0;
|
|
669
|
+
cursor: pointer;
|
|
670
|
+
padding: 0;
|
|
671
|
+
list-style: none;
|
|
672
|
+
user-select: none;
|
|
670
673
|
}
|
|
671
674
|
|
|
672
675
|
.editor-suggestions {
|
|
673
|
-
|
|
676
|
+
padding: 3px;
|
|
674
677
|
}
|
|
675
678
|
|
|
676
679
|
.editor-suggestions > li {
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
680
|
+
padding: 8px 12px;
|
|
681
|
+
display: flex;
|
|
682
|
+
gap: 6px;
|
|
683
|
+
align-items: center;
|
|
684
|
+
word-break: keep-all;
|
|
685
|
+
border-bottom: 1px solid #ccc; /* 在每个列表项的底部添加一条边框线 */
|
|
686
|
+
position: relative;
|
|
684
687
|
}
|
|
685
688
|
|
|
686
689
|
.editor-suggestions > li:hover {
|
|
687
|
-
|
|
690
|
+
background-color: #eee;
|
|
688
691
|
}
|
|
689
|
-
.editor-suggestions > li.hovered{
|
|
690
|
-
|
|
692
|
+
.editor-suggestions > li.hovered {
|
|
693
|
+
background-color: #ccc;
|
|
691
694
|
}
|
|
692
695
|
.editor-suggestions > li:last-child {
|
|
693
|
-
|
|
694
|
-
}
|
|
696
|
+
border-bottom: none; /* 去掉最后一个列表项的底部边框线 */
|
|
697
|
+
}
|