jvs-ppt-ui 0.0.14 → 0.0.16
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/lib/check_imgs.html +18 -0
- package/dist/lib/jvs-ppt-ui/iconfont/iconfont.css +187 -27
- package/dist/lib/jvs-ppt-ui/iconfont/iconfont.js +1 -1
- package/dist/lib/jvs-ppt-ui/iconfont/iconfont.json +345 -65
- package/dist/lib/jvs-ppt-ui/iconfont/iconfont.ttf +0 -0
- package/dist/lib/jvs-ppt-ui/iconfont/iconfont.woff +0 -0
- package/dist/lib/jvs-ppt-ui/iconfont/iconfont.woff2 +0 -0
- package/dist/lib/jvs-ppt-ui/img/al.png +0 -0
- package/dist/lib/jvs-ppt-ui/img/d.png +0 -0
- package/dist/lib/jvs-ppt-ui/img/dl.png +0 -0
- package/dist/lib/jvs-ppt-ui/img/l.png +0 -0
- package/dist/lib/jvs-ppt-ui.es.js +44973 -43349
- package/dist/lib/jvs-ppt-ui.umd.js +102 -102
- package/dist/lib/style.css +1 -1
- package/package.json +1 -1
- package/scripts/check-icons.mjs +22 -0
- package/scripts/patch-anim-icons.mjs +45 -0
- package/src/assets/iconfont/iconfont.css +187 -27
- package/src/assets/iconfont/iconfont.js +1 -1
- package/src/assets/iconfont/iconfont.json +345 -65
- package/src/assets/iconfont/iconfont.ttf +0 -0
- package/src/assets/iconfont/iconfont.woff +0 -0
- package/src/assets/iconfont/iconfont.woff2 +0 -0
- package/src/components/CanvasArea.vue +218 -193
- package/src/components/ChartTypeSelector.vue +509 -148
- package/src/components/Header.vue +327 -44
- package/src/components/PresentationGroupChild.vue +44 -13
- package/src/components/PresentationMode.vue +84 -33
- package/src/components/QuickBorderPopover.vue +51 -11
- package/src/components/QuickColorPopover.vue +65 -21
- package/src/components/SidebarLeft.vue +286 -107
- package/src/components/SidebarRight.vue +45 -38
- package/src/components/TemplateGallery.vue +1110 -1237
- package/src/components/ToastNotification.vue +2 -2
- package/src/components/Toolbar.vue +825 -733
- package/src/components/canvas/CanvasQuickToolbar.vue +17 -30
- package/src/components/canvas/elements/CanvasGroupElement.vue +6 -0
- package/src/components/canvas/elements/CanvasShapeElement.vue +198 -38
- package/src/components/canvas/elements/CanvasTextElement.vue +4 -3
- package/src/components/sidebar/common/SidebarAlignGroup.vue +104 -50
- package/src/components/sidebar/common/SidebarBorderAccordion.vue +375 -148
- package/src/components/sidebar/common/SidebarPositionGroup.vue +358 -149
- package/src/components/sidebar/common/SidebarReflectionAccordion.vue +429 -203
- package/src/components/sidebar/common/SidebarShadowAccordion.vue +844 -416
- package/src/components/sidebar/panels/GradientEditor.vue +671 -316
- package/src/components/sidebar/panels/LayoutThumbSvg.vue +33 -16
- package/src/components/sidebar/panels/SidebarAnimationPanel.vue +701 -138
- package/src/components/sidebar/panels/SidebarChartFormatPanel.vue +3 -3
- package/src/components/sidebar/panels/SidebarDesignPanel.vue +1754 -416
- package/src/components/sidebar/panels/SidebarMediaFormatPanel.vue +12 -0
- package/src/components/sidebar/panels/SidebarShapeFormatPanel.vue +813 -174
- package/src/components/sidebar/panels/SidebarTableFormatPanel.vue +2 -2
- package/src/components/sidebar/panels/SidebarTextFormatPanel.vue +1938 -1427
- package/src/components/sidebar/panels/SidebarTransitionPanel.vue +791 -210
- package/src/composables/canvas/useCanvasShortcuts.ts +20 -6
- package/src/composables/canvas/useCanvasText.ts +1 -1
- package/src/composables/canvas/useCanvasTransform.ts +44 -0
- package/src/composables/presetThemes.ts +43 -44
- package/src/composables/sidebar/useSidebarAnimation.ts +101 -25
- package/src/composables/sidebar/useSidebarDesign.ts +30 -11
- package/src/composables/sidebar/useSidebarElementTransform.ts +10 -1
- package/src/composables/sidebar/useSidebarImage.ts +10 -2
- package/src/composables/sidebar/useSidebarShapeFormat.ts +562 -107
- package/src/composables/useSlides.ts +331 -153
- package/src/main.ts +2 -0
- package/src/style.css +926 -359
- package/src/utils/canvas/elementStyles.ts +42 -1
|
@@ -1,1427 +1,1938 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { ref, computed } from 'vue'
|
|
3
|
-
import { getFontVariants } from '../../../configs/fonts'
|
|
4
|
-
import QuickColorPopover from '../../QuickColorPopover.vue'
|
|
5
|
-
import { type SlideTextType, TEXT_TYPE_LIST } from '../../../utils/textTypes'
|
|
6
|
-
|
|
7
|
-
import ulDisc from '../../../assets/list/ul-disc.png'
|
|
8
|
-
import ulDiamond from '../../../assets/list/ul-diamond.png'
|
|
9
|
-
import ulTriangle from '../../../assets/list/ul-triangle.png'
|
|
10
|
-
import ulCheckmark from '../../../assets/list/ul-checkmark.png'
|
|
11
|
-
import ulSquare from '../../../assets/list/ul-square.png'
|
|
12
|
-
import ulCircle from '../../../assets/list/ul-circle.png'
|
|
13
|
-
import olDicimal from '../../../assets/list/ol-dicimal.png'
|
|
14
|
-
import olCircledNumbers from '../../../assets/list/ol-circled-numbers.png'
|
|
15
|
-
import olLowerAlpha from '../../../assets/list/ol-lower-alpha.png'
|
|
16
|
-
import olUpperAlpha from '../../../assets/list/ol-upper-alpha.png'
|
|
17
|
-
import olUpperRoman from '../../../assets/list/ol-upper-roman.png'
|
|
18
|
-
import olChinese from '../../../assets/list/ol-chinese.png'
|
|
19
|
-
|
|
20
|
-
const props = withDefaults(defineProps<{
|
|
21
|
-
selectedElement: any
|
|
22
|
-
selectedElementIds?: string[]
|
|
23
|
-
currentTextType?: SlideTextType
|
|
24
|
-
sysFonts?: Array<{ label: string; value: string }>
|
|
25
|
-
themeRecipe?: any
|
|
26
|
-
fontStyleSupport?: { bold: boolean; italic: boolean; boldItalic: boolean }
|
|
27
|
-
styleFontFamily?: string
|
|
28
|
-
styleFontSize?: string
|
|
29
|
-
styleFontWeightStyle?: string
|
|
30
|
-
lineHeightNumber?: number
|
|
31
|
-
letterSpacingNumber?: number
|
|
32
|
-
styleTextColor?: string
|
|
33
|
-
styleTextBackground?: string
|
|
34
|
-
styleTextAlign?: string
|
|
35
|
-
styleVerticalAlign?: string
|
|
36
|
-
styleWritingMode?: string
|
|
37
|
-
styleAutoFitType?: string
|
|
38
|
-
styleWordWrap?: boolean
|
|
39
|
-
paddingTop?: number
|
|
40
|
-
paddingRight?: number
|
|
41
|
-
paddingBottom?: number
|
|
42
|
-
paddingLeft?: number
|
|
43
|
-
isPaddingLocked?: boolean
|
|
44
|
-
hasUnorderedList?: boolean
|
|
45
|
-
hasOrderedList?: boolean
|
|
46
|
-
isActiveListStyle?: (type: any, val: string) => boolean
|
|
47
|
-
enableTextStroke?: boolean
|
|
48
|
-
textStrokeColor?: string
|
|
49
|
-
textStrokeWidth?: number
|
|
50
|
-
textStrokeStyle?: string
|
|
51
|
-
textStrokeAlpha?: number
|
|
52
|
-
enableTextShadow?: boolean
|
|
53
|
-
textShadowHex?: string
|
|
54
|
-
textShadowAlpha?: number
|
|
55
|
-
textShadowAngle?: number
|
|
56
|
-
textShadowSize?: number
|
|
57
|
-
textShadowDistance?: number
|
|
58
|
-
textShadowBlur?: number
|
|
59
|
-
enableTextReflection?: boolean
|
|
60
|
-
textReflectionDistance?: number
|
|
61
|
-
textReflectionSize?: number
|
|
62
|
-
textReflectionOpacity?: number
|
|
63
|
-
textReflectionBlur?: number
|
|
64
|
-
recentColors?: string[]
|
|
65
|
-
getStyleVal?: (prop: string, fallback?: any) => any
|
|
66
|
-
}>(), {
|
|
67
|
-
selectedElementIds: () => [],
|
|
68
|
-
currentTextType: 'normalText',
|
|
69
|
-
sysFonts: () => [],
|
|
70
|
-
fontStyleSupport: () => ({ bold: true, italic: true, boldItalic: true }),
|
|
71
|
-
styleFontFamily: '默认字体',
|
|
72
|
-
styleFontSize: '16px',
|
|
73
|
-
styleFontWeightStyle: 'Regular',
|
|
74
|
-
lineHeightNumber: 1.3,
|
|
75
|
-
letterSpacingNumber: 0,
|
|
76
|
-
styleTextColor: '#000000',
|
|
77
|
-
styleTextBackground: 'transparent',
|
|
78
|
-
styleTextAlign: 'center',
|
|
79
|
-
styleVerticalAlign: 'middle',
|
|
80
|
-
styleWritingMode: 'horizontal-tb',
|
|
81
|
-
styleAutoFitType: 'shape',
|
|
82
|
-
styleWordWrap: true,
|
|
83
|
-
paddingTop: 4.8,
|
|
84
|
-
paddingRight: 9.6,
|
|
85
|
-
paddingBottom: 4.8,
|
|
86
|
-
paddingLeft: 9.6,
|
|
87
|
-
isPaddingLocked: false,
|
|
88
|
-
hasUnorderedList: false,
|
|
89
|
-
hasOrderedList: false,
|
|
90
|
-
enableTextStroke: false,
|
|
91
|
-
textStrokeColor: '#000000',
|
|
92
|
-
textStrokeWidth: 1,
|
|
93
|
-
textStrokeStyle: 'solid',
|
|
94
|
-
textStrokeAlpha: 100,
|
|
95
|
-
enableTextShadow: false,
|
|
96
|
-
textShadowHex: '#000000',
|
|
97
|
-
textShadowAlpha: 50,
|
|
98
|
-
textShadowAngle: 45,
|
|
99
|
-
textShadowSize: 100,
|
|
100
|
-
textShadowDistance: 3,
|
|
101
|
-
textShadowBlur: 4,
|
|
102
|
-
enableTextReflection: false,
|
|
103
|
-
textReflectionDistance: 0,
|
|
104
|
-
textReflectionSize: 100,
|
|
105
|
-
textReflectionOpacity: 10,
|
|
106
|
-
textReflectionBlur: 0,
|
|
107
|
-
recentColors: () => [],
|
|
108
|
-
getStyleVal: () => undefined
|
|
109
|
-
})
|
|
110
|
-
|
|
111
|
-
const emit = defineEmits<{
|
|
112
|
-
(e: 'changeTextType', val: SlideTextType): void
|
|
113
|
-
(e: 'changeFontFamily', val: string): void
|
|
114
|
-
(e: 'changeFontSize', val: string): void
|
|
115
|
-
(e: 'update:styleFontWeightStyle', val: string): void
|
|
116
|
-
(e: 'update:lineHeightNumber', val: number): void
|
|
117
|
-
(e: 'update:letterSpacingNumber', val: number): void
|
|
118
|
-
(e: 'update:styleTextColor', val: string): void
|
|
119
|
-
(e: 'update:styleTextBackground', val: string): void
|
|
120
|
-
(e: 'update:styleTextAlign', val: string): void
|
|
121
|
-
(e: 'update:styleVerticalAlign', val: string): void
|
|
122
|
-
(e: 'update:styleWritingMode', val: string): void
|
|
123
|
-
(e: 'update:styleAutoFitType', val: string): void
|
|
124
|
-
(e: 'update:styleWordWrap', val: boolean): void
|
|
125
|
-
(e: 'update:paddingTop', val: number): void
|
|
126
|
-
(e: 'update:paddingRight', val: number): void
|
|
127
|
-
(e: 'update:paddingBottom', val: number): void
|
|
128
|
-
(e: 'update:paddingLeft', val: number): void
|
|
129
|
-
(e: 'update:isPaddingLocked', val: boolean): void
|
|
130
|
-
(e: 'toggleListStyle', type: string, val: string, isFromPanel?: boolean): void
|
|
131
|
-
(e: 'update:enableTextStroke', val: boolean): void
|
|
132
|
-
(e: 'update:textStrokeColor', val: string): void
|
|
133
|
-
(e: 'update:textStrokeWidth', val: number): void
|
|
134
|
-
(e: 'update:textStrokeStyle', val: string): void
|
|
135
|
-
(e: 'update:textStrokeAlpha', val: number): void
|
|
136
|
-
(e: 'update:enableTextShadow', val: boolean): void
|
|
137
|
-
(e: 'update:textShadowHex', val: string): void
|
|
138
|
-
(e: 'update:textShadowAlpha', val: number): void
|
|
139
|
-
(e: 'update:textShadowAngle', val: number): void
|
|
140
|
-
(e: 'update:textShadowSize', val: number): void
|
|
141
|
-
(e: 'update:textShadowBlur', val: number): void
|
|
142
|
-
(e: 'update:textShadowDistance', val: number): void
|
|
143
|
-
(e: 'update:enableTextReflection', val: boolean): void
|
|
144
|
-
(e: 'update:textReflectionDistance', val: number): void
|
|
145
|
-
(e: 'update:textReflectionSize', val: number): void
|
|
146
|
-
(e: 'update:textReflectionOpacity', val: number): void
|
|
147
|
-
(e: 'update:textReflectionBlur', val: number): void
|
|
148
|
-
(e: 'toggleBold'): void
|
|
149
|
-
(e: 'toggleItalic'): void
|
|
150
|
-
(e: 'toggleUnderline'): void
|
|
151
|
-
(e: 'toggleStrikethrough'): void
|
|
152
|
-
}>()
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
const
|
|
156
|
-
const
|
|
157
|
-
const
|
|
158
|
-
const
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
const
|
|
162
|
-
const
|
|
163
|
-
const
|
|
164
|
-
const
|
|
165
|
-
const
|
|
166
|
-
const
|
|
167
|
-
|
|
168
|
-
const
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
const
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
const
|
|
197
|
-
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
function
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
const
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
<
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
<
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
<
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
<
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
height:
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
</div>
|
|
743
|
-
</
|
|
744
|
-
</
|
|
745
|
-
</div>
|
|
746
|
-
|
|
747
|
-
<!--
|
|
748
|
-
<div class="
|
|
749
|
-
<div class="
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
<
|
|
829
|
-
<
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
<
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
<
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
<
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
</div>
|
|
967
|
-
</div>
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
</
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
}
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
.
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
:
|
|
1169
|
-
:
|
|
1170
|
-
:
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
}
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
}
|
|
1192
|
-
|
|
1193
|
-
.
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
}
|
|
1239
|
-
|
|
1240
|
-
.
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
transition: transform 0.2s;
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
}
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
display:
|
|
1263
|
-
|
|
1264
|
-
gap:
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
}
|
|
1312
|
-
|
|
1313
|
-
.
|
|
1314
|
-
|
|
1315
|
-
height:
|
|
1316
|
-
border:
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
height:
|
|
1349
|
-
background
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
}
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
:
|
|
1425
|
-
|
|
1426
|
-
}
|
|
1427
|
-
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { ref, computed } from 'vue'
|
|
3
|
+
import { getFontVariants } from '../../../configs/fonts'
|
|
4
|
+
import QuickColorPopover from '../../QuickColorPopover.vue'
|
|
5
|
+
import { type SlideTextType, TEXT_TYPE_LIST } from '../../../utils/textTypes'
|
|
6
|
+
|
|
7
|
+
import ulDisc from '../../../assets/list/ul-disc.png'
|
|
8
|
+
import ulDiamond from '../../../assets/list/ul-diamond.png'
|
|
9
|
+
import ulTriangle from '../../../assets/list/ul-triangle.png'
|
|
10
|
+
import ulCheckmark from '../../../assets/list/ul-checkmark.png'
|
|
11
|
+
import ulSquare from '../../../assets/list/ul-square.png'
|
|
12
|
+
import ulCircle from '../../../assets/list/ul-circle.png'
|
|
13
|
+
import olDicimal from '../../../assets/list/ol-dicimal.png'
|
|
14
|
+
import olCircledNumbers from '../../../assets/list/ol-circled-numbers.png'
|
|
15
|
+
import olLowerAlpha from '../../../assets/list/ol-lower-alpha.png'
|
|
16
|
+
import olUpperAlpha from '../../../assets/list/ol-upper-alpha.png'
|
|
17
|
+
import olUpperRoman from '../../../assets/list/ol-upper-roman.png'
|
|
18
|
+
import olChinese from '../../../assets/list/ol-chinese.png'
|
|
19
|
+
|
|
20
|
+
const props = withDefaults(defineProps<{
|
|
21
|
+
selectedElement: any
|
|
22
|
+
selectedElementIds?: string[]
|
|
23
|
+
currentTextType?: SlideTextType
|
|
24
|
+
sysFonts?: Array<{ label: string; value: string }>
|
|
25
|
+
themeRecipe?: any
|
|
26
|
+
fontStyleSupport?: { bold: boolean; italic: boolean; boldItalic: boolean }
|
|
27
|
+
styleFontFamily?: string
|
|
28
|
+
styleFontSize?: string
|
|
29
|
+
styleFontWeightStyle?: string
|
|
30
|
+
lineHeightNumber?: number
|
|
31
|
+
letterSpacingNumber?: number
|
|
32
|
+
styleTextColor?: string
|
|
33
|
+
styleTextBackground?: string
|
|
34
|
+
styleTextAlign?: string
|
|
35
|
+
styleVerticalAlign?: string
|
|
36
|
+
styleWritingMode?: string
|
|
37
|
+
styleAutoFitType?: string
|
|
38
|
+
styleWordWrap?: boolean
|
|
39
|
+
paddingTop?: number
|
|
40
|
+
paddingRight?: number
|
|
41
|
+
paddingBottom?: number
|
|
42
|
+
paddingLeft?: number
|
|
43
|
+
isPaddingLocked?: boolean
|
|
44
|
+
hasUnorderedList?: boolean
|
|
45
|
+
hasOrderedList?: boolean
|
|
46
|
+
isActiveListStyle?: (type: any, val: string) => boolean
|
|
47
|
+
enableTextStroke?: boolean
|
|
48
|
+
textStrokeColor?: string
|
|
49
|
+
textStrokeWidth?: number
|
|
50
|
+
textStrokeStyle?: string
|
|
51
|
+
textStrokeAlpha?: number
|
|
52
|
+
enableTextShadow?: boolean
|
|
53
|
+
textShadowHex?: string
|
|
54
|
+
textShadowAlpha?: number
|
|
55
|
+
textShadowAngle?: number
|
|
56
|
+
textShadowSize?: number
|
|
57
|
+
textShadowDistance?: number
|
|
58
|
+
textShadowBlur?: number
|
|
59
|
+
enableTextReflection?: boolean
|
|
60
|
+
textReflectionDistance?: number
|
|
61
|
+
textReflectionSize?: number
|
|
62
|
+
textReflectionOpacity?: number
|
|
63
|
+
textReflectionBlur?: number
|
|
64
|
+
recentColors?: string[]
|
|
65
|
+
getStyleVal?: (prop: string, fallback?: any) => any
|
|
66
|
+
}>(), {
|
|
67
|
+
selectedElementIds: () => [],
|
|
68
|
+
currentTextType: 'normalText',
|
|
69
|
+
sysFonts: () => [],
|
|
70
|
+
fontStyleSupport: () => ({ bold: true, italic: true, boldItalic: true }),
|
|
71
|
+
styleFontFamily: '默认字体',
|
|
72
|
+
styleFontSize: '16px',
|
|
73
|
+
styleFontWeightStyle: 'Regular',
|
|
74
|
+
lineHeightNumber: 1.3,
|
|
75
|
+
letterSpacingNumber: 0,
|
|
76
|
+
styleTextColor: '#000000',
|
|
77
|
+
styleTextBackground: 'transparent',
|
|
78
|
+
styleTextAlign: 'center',
|
|
79
|
+
styleVerticalAlign: 'middle',
|
|
80
|
+
styleWritingMode: 'horizontal-tb',
|
|
81
|
+
styleAutoFitType: 'shape',
|
|
82
|
+
styleWordWrap: true,
|
|
83
|
+
paddingTop: 4.8,
|
|
84
|
+
paddingRight: 9.6,
|
|
85
|
+
paddingBottom: 4.8,
|
|
86
|
+
paddingLeft: 9.6,
|
|
87
|
+
isPaddingLocked: false,
|
|
88
|
+
hasUnorderedList: false,
|
|
89
|
+
hasOrderedList: false,
|
|
90
|
+
enableTextStroke: false,
|
|
91
|
+
textStrokeColor: '#000000',
|
|
92
|
+
textStrokeWidth: 1,
|
|
93
|
+
textStrokeStyle: 'solid',
|
|
94
|
+
textStrokeAlpha: 100,
|
|
95
|
+
enableTextShadow: false,
|
|
96
|
+
textShadowHex: '#000000',
|
|
97
|
+
textShadowAlpha: 50,
|
|
98
|
+
textShadowAngle: 45,
|
|
99
|
+
textShadowSize: 100,
|
|
100
|
+
textShadowDistance: 3,
|
|
101
|
+
textShadowBlur: 4,
|
|
102
|
+
enableTextReflection: false,
|
|
103
|
+
textReflectionDistance: 0,
|
|
104
|
+
textReflectionSize: 100,
|
|
105
|
+
textReflectionOpacity: 10,
|
|
106
|
+
textReflectionBlur: 0,
|
|
107
|
+
recentColors: () => [],
|
|
108
|
+
getStyleVal: () => undefined
|
|
109
|
+
})
|
|
110
|
+
|
|
111
|
+
const emit = defineEmits<{
|
|
112
|
+
(e: 'changeTextType', val: SlideTextType): void
|
|
113
|
+
(e: 'changeFontFamily', val: string): void
|
|
114
|
+
(e: 'changeFontSize', val: string): void
|
|
115
|
+
(e: 'update:styleFontWeightStyle', val: string): void
|
|
116
|
+
(e: 'update:lineHeightNumber', val: number): void
|
|
117
|
+
(e: 'update:letterSpacingNumber', val: number): void
|
|
118
|
+
(e: 'update:styleTextColor', val: string): void
|
|
119
|
+
(e: 'update:styleTextBackground', val: string): void
|
|
120
|
+
(e: 'update:styleTextAlign', val: string): void
|
|
121
|
+
(e: 'update:styleVerticalAlign', val: string): void
|
|
122
|
+
(e: 'update:styleWritingMode', val: string): void
|
|
123
|
+
(e: 'update:styleAutoFitType', val: string): void
|
|
124
|
+
(e: 'update:styleWordWrap', val: boolean): void
|
|
125
|
+
(e: 'update:paddingTop', val: number): void
|
|
126
|
+
(e: 'update:paddingRight', val: number): void
|
|
127
|
+
(e: 'update:paddingBottom', val: number): void
|
|
128
|
+
(e: 'update:paddingLeft', val: number): void
|
|
129
|
+
(e: 'update:isPaddingLocked', val: boolean): void
|
|
130
|
+
(e: 'toggleListStyle', type: string, val: string, isFromPanel?: boolean): void
|
|
131
|
+
(e: 'update:enableTextStroke', val: boolean): void
|
|
132
|
+
(e: 'update:textStrokeColor', val: string): void
|
|
133
|
+
(e: 'update:textStrokeWidth', val: number): void
|
|
134
|
+
(e: 'update:textStrokeStyle', val: string): void
|
|
135
|
+
(e: 'update:textStrokeAlpha', val: number): void
|
|
136
|
+
(e: 'update:enableTextShadow', val: boolean): void
|
|
137
|
+
(e: 'update:textShadowHex', val: string): void
|
|
138
|
+
(e: 'update:textShadowAlpha', val: number): void
|
|
139
|
+
(e: 'update:textShadowAngle', val: number): void
|
|
140
|
+
(e: 'update:textShadowSize', val: number): void
|
|
141
|
+
(e: 'update:textShadowBlur', val: number): void
|
|
142
|
+
(e: 'update:textShadowDistance', val: number): void
|
|
143
|
+
(e: 'update:enableTextReflection', val: boolean): void
|
|
144
|
+
(e: 'update:textReflectionDistance', val: number): void
|
|
145
|
+
(e: 'update:textReflectionSize', val: number): void
|
|
146
|
+
(e: 'update:textReflectionOpacity', val: number): void
|
|
147
|
+
(e: 'update:textReflectionBlur', val: number): void
|
|
148
|
+
(e: 'toggleBold'): void
|
|
149
|
+
(e: 'toggleItalic'): void
|
|
150
|
+
(e: 'toggleUnderline'): void
|
|
151
|
+
(e: 'toggleStrikethrough'): void
|
|
152
|
+
}>()
|
|
153
|
+
|
|
154
|
+
const isListExpanded = ref(true)
|
|
155
|
+
const isPaddingExpanded = ref(true)
|
|
156
|
+
const isTextBorderExpanded = ref(true)
|
|
157
|
+
const isTextShadowExpanded = ref(true)
|
|
158
|
+
const isTextReflectionExpanded = ref(true)
|
|
159
|
+
|
|
160
|
+
const isUlVisible = ref(false)
|
|
161
|
+
const isOlVisible = ref(false)
|
|
162
|
+
const textColorPopoverVisible = ref(false)
|
|
163
|
+
const textBgPopoverVisible = ref(false)
|
|
164
|
+
const textStrokePopoverVisible = ref(false)
|
|
165
|
+
const textShadowPopoverVisible = ref(false)
|
|
166
|
+
const isAutoFitPopoverVisible = ref(false)
|
|
167
|
+
const autoFitTriggerRef = ref<HTMLElement | null>(null)
|
|
168
|
+
const autoFitTriggerWidth = ref(248)
|
|
169
|
+
|
|
170
|
+
const autoFitOptions = [
|
|
171
|
+
{ label: '文字溢出不自动调整', value: 'none' },
|
|
172
|
+
{ label: '文字溢出缩小文字', value: 'text' },
|
|
173
|
+
{ label: '文字溢出调整形状大小', value: 'shape' }
|
|
174
|
+
]
|
|
175
|
+
|
|
176
|
+
const currentAutoFitLabel = computed(() => {
|
|
177
|
+
const match = autoFitOptions.find(opt => opt.value === props.styleAutoFitType)
|
|
178
|
+
return match ? match.label : '文字溢出不自动调整'
|
|
179
|
+
})
|
|
180
|
+
|
|
181
|
+
function onAutoFitPopoverShow() {
|
|
182
|
+
if (autoFitTriggerRef.value) {
|
|
183
|
+
autoFitTriggerWidth.value = autoFitTriggerRef.value.offsetWidth
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
function selectAutoFitType(val: string) {
|
|
188
|
+
emit('update:styleAutoFitType', val)
|
|
189
|
+
isAutoFitPopoverVisible.value = false
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
const isWritingModePopoverVisible = ref(false)
|
|
193
|
+
const writingModeTriggerRef = ref<HTMLElement | null>(null)
|
|
194
|
+
const writingModeTriggerWidth = ref(248)
|
|
195
|
+
|
|
196
|
+
const writingModeOptions = [
|
|
197
|
+
{ label: '横向', value: 'horizontal-tb' },
|
|
198
|
+
{ label: '竖向(从左到右)', value: 'vertical-lr' },
|
|
199
|
+
{ label: '竖向(从右到左)', value: 'vertical-rl' }
|
|
200
|
+
]
|
|
201
|
+
|
|
202
|
+
const currentWritingModeLabel = computed(() => {
|
|
203
|
+
const match = writingModeOptions.find(opt => opt.value === props.styleWritingMode)
|
|
204
|
+
return match ? match.label : '横向'
|
|
205
|
+
})
|
|
206
|
+
|
|
207
|
+
function onWritingModePopoverShow() {
|
|
208
|
+
if (writingModeTriggerRef.value) {
|
|
209
|
+
writingModeTriggerWidth.value = writingModeTriggerRef.value.offsetWidth
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
function selectWritingMode(val: string) {
|
|
214
|
+
emit('update:styleWritingMode', val)
|
|
215
|
+
isWritingModePopoverVisible.value = false
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
// Text Classification (类型) Popover
|
|
219
|
+
const isTextTypePopoverVisible = ref(false)
|
|
220
|
+
const textTypeTriggerRef = ref<HTMLElement | null>(null)
|
|
221
|
+
const textTypeTriggerWidth = ref(248)
|
|
222
|
+
|
|
223
|
+
const currentTextTypeLabel = computed(() => {
|
|
224
|
+
const match = TEXT_TYPE_LIST.find(item => item.type === props.currentTextType)
|
|
225
|
+
return match ? `${match.label}(${match.enLabel})` : '正文文本(Normal Text)'
|
|
226
|
+
})
|
|
227
|
+
|
|
228
|
+
function onTextTypePopoverShow() {
|
|
229
|
+
if (textTypeTriggerRef.value) {
|
|
230
|
+
textTypeTriggerWidth.value = textTypeTriggerRef.value.offsetWidth
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
function selectTextType(val: SlideTextType) {
|
|
235
|
+
emit('changeTextType', val)
|
|
236
|
+
isTextTypePopoverVisible.value = false
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
// Font Weight / Style (样式) Popover
|
|
240
|
+
const isFontWeightPopoverVisible = ref(false)
|
|
241
|
+
const fontWeightTriggerRef = ref<HTMLElement | null>(null)
|
|
242
|
+
const fontWeightTriggerWidth = ref(120)
|
|
243
|
+
|
|
244
|
+
const currentFontWeightLabel = computed(() => {
|
|
245
|
+
const match = currentFontVariants.value.find(v => v.value === props.styleFontWeightStyle)
|
|
246
|
+
return match ? match.label : (props.styleFontWeightStyle || 'Regular')
|
|
247
|
+
})
|
|
248
|
+
|
|
249
|
+
function onFontWeightPopoverShow() {
|
|
250
|
+
if (fontWeightTriggerRef.value) {
|
|
251
|
+
fontWeightTriggerWidth.value = fontWeightTriggerRef.value.offsetWidth
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
function selectFontWeight(val: string) {
|
|
256
|
+
emit('update:styleFontWeightStyle', val)
|
|
257
|
+
isFontWeightPopoverVisible.value = false
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
const fontSizeClean = computed(() => {
|
|
261
|
+
return String(props.styleFontSize || '16').replace('px', '')
|
|
262
|
+
})
|
|
263
|
+
|
|
264
|
+
// Font Size (字号) Popover
|
|
265
|
+
const isFontSizePopoverVisible = ref(false)
|
|
266
|
+
const fontSizeTriggerRef = ref<HTMLElement | null>(null)
|
|
267
|
+
const fontSizeTriggerWidth = ref(120)
|
|
268
|
+
|
|
269
|
+
function onFontSizePopoverShow() {
|
|
270
|
+
if (fontSizeTriggerRef.value) {
|
|
271
|
+
fontSizeTriggerWidth.value = fontSizeTriggerRef.value.offsetWidth
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
function selectFontSize(val: string) {
|
|
276
|
+
emit('changeFontSize', val)
|
|
277
|
+
isFontSizePopoverVisible.value = false
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
function onFontSizeInput(e: Event) {
|
|
281
|
+
const target = e.target as HTMLInputElement
|
|
282
|
+
const raw = target.value.trim()
|
|
283
|
+
if (raw) {
|
|
284
|
+
emit('changeFontSize', raw)
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
function onFontSizeEnter(e: KeyboardEvent) {
|
|
289
|
+
const target = e.target as HTMLInputElement
|
|
290
|
+
const raw = target.value.trim()
|
|
291
|
+
if (raw) {
|
|
292
|
+
emit('changeFontSize', raw)
|
|
293
|
+
}
|
|
294
|
+
isFontSizePopoverVisible.value = false
|
|
295
|
+
target.blur()
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
function onFontSizeBlur(e: FocusEvent) {
|
|
299
|
+
const target = e.target as HTMLInputElement
|
|
300
|
+
const raw = target.value.trim()
|
|
301
|
+
if (raw) {
|
|
302
|
+
emit('changeFontSize', raw)
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
function checkStyleVal(prop: string, fallback?: any): any {
|
|
307
|
+
if (props.getStyleVal) {
|
|
308
|
+
const val = props.getStyleVal(prop, fallback)
|
|
309
|
+
if (val !== undefined) return val
|
|
310
|
+
}
|
|
311
|
+
return fallback
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
const isBoldActive = computed(() => {
|
|
315
|
+
return checkStyleVal('fontWeight') === 'bold'
|
|
316
|
+
})
|
|
317
|
+
|
|
318
|
+
const isItalicActive = computed(() => {
|
|
319
|
+
return checkStyleVal('fontStyle') === 'italic'
|
|
320
|
+
})
|
|
321
|
+
|
|
322
|
+
const isUnderlineActive = computed(() => {
|
|
323
|
+
return (checkStyleVal('textDecoration') || '').includes('underline')
|
|
324
|
+
})
|
|
325
|
+
|
|
326
|
+
const isStrikethroughActive = computed(() => {
|
|
327
|
+
return (checkStyleVal('textDecoration') || '').includes('line-through')
|
|
328
|
+
})
|
|
329
|
+
|
|
330
|
+
const currentTextAlign = computed(() => {
|
|
331
|
+
return props.styleTextAlign || checkStyleVal('textAlign', 'center') || 'center'
|
|
332
|
+
})
|
|
333
|
+
|
|
334
|
+
const currentFontVariants = computed(() => {
|
|
335
|
+
return getFontVariants(props.styleFontFamily)
|
|
336
|
+
})
|
|
337
|
+
|
|
338
|
+
const displaySysFonts = computed(() => {
|
|
339
|
+
return props.sysFonts || []
|
|
340
|
+
})
|
|
341
|
+
|
|
342
|
+
function toggleTextBorderHeader() {
|
|
343
|
+
if (!props.enableTextStroke) return
|
|
344
|
+
isTextBorderExpanded.value = !isTextBorderExpanded.value
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
function toggleTextShadowHeader() {
|
|
348
|
+
if (!props.enableTextShadow) return
|
|
349
|
+
isTextShadowExpanded.value = !isTextShadowExpanded.value
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
function toggleTextReflectionHeader() {
|
|
353
|
+
if (!props.enableTextReflection) return
|
|
354
|
+
isTextReflectionExpanded.value = !isTextReflectionExpanded.value
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
function startDragAngle(e: MouseEvent) {
|
|
358
|
+
const dial = e.currentTarget as HTMLElement
|
|
359
|
+
const rect = dial.getBoundingClientRect()
|
|
360
|
+
const centerX = rect.left + rect.width / 2
|
|
361
|
+
const centerY = rect.top + rect.height / 2
|
|
362
|
+
|
|
363
|
+
function updateAngle(moveEvent: MouseEvent) {
|
|
364
|
+
const dx = moveEvent.clientX - centerX
|
|
365
|
+
const dy = moveEvent.clientY - centerY
|
|
366
|
+
let angle = Math.round(Math.atan2(dy, dx) * 180 / Math.PI)
|
|
367
|
+
if (angle < 0) angle += 360
|
|
368
|
+
emit('update:textShadowAngle', angle)
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
updateAngle(e)
|
|
372
|
+
|
|
373
|
+
function stopDrag() {
|
|
374
|
+
window.removeEventListener('mousemove', updateAngle)
|
|
375
|
+
window.removeEventListener('mouseup', stopDrag)
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
window.addEventListener('mousemove', updateAngle)
|
|
379
|
+
window.addEventListener('mouseup', stopDrag)
|
|
380
|
+
}
|
|
381
|
+
</script>
|
|
382
|
+
|
|
383
|
+
<template>
|
|
384
|
+
<div class="sidebar-text-format-panel">
|
|
385
|
+
<!-- 1. 类型 (Text Classification Selector) -->
|
|
386
|
+
<div class="form-item-block">
|
|
387
|
+
<div class="form-item-label">类型</div>
|
|
388
|
+
<el-popover v-model:visible="isTextTypePopoverVisible" placement="bottom-start" :width="textTypeTriggerWidth"
|
|
389
|
+
trigger="click" popper-class="autofit-popover-panel" :show-arrow="false" :offset="4"
|
|
390
|
+
@before-enter="onTextTypePopoverShow">
|
|
391
|
+
<template #reference>
|
|
392
|
+
<div ref="textTypeTriggerRef" class="custom-select-trigger"
|
|
393
|
+
:class="{ 'is-active': isTextTypePopoverVisible }">
|
|
394
|
+
<span class="select-trigger-text">{{ currentTextTypeLabel }}</span>
|
|
395
|
+
<svg viewBox="0 0 1024 1024" width="10" height="10" fill="currentColor" class="select-trigger-arrow"
|
|
396
|
+
:class="{ 'is-open': isTextTypePopoverVisible }">
|
|
397
|
+
<path
|
|
398
|
+
d="M831.872 340.777L512 652.672 192.128 340.777a31.968 31.968 0 0 0-45.12 45.312l342.4 333.568a32 32 0 0 0 45.184 0l342.4-333.568a31.968 31.968 0 0 0-45.12-45.312z">
|
|
399
|
+
</path>
|
|
400
|
+
</svg>
|
|
401
|
+
</div>
|
|
402
|
+
</template>
|
|
403
|
+
|
|
404
|
+
<div class="autofit-menu-container">
|
|
405
|
+
<div v-for="item in TEXT_TYPE_LIST" :key="item.type" class="autofit-menu-item text-type-menu-item"
|
|
406
|
+
:class="{ 'is-selected': (currentTextType === item.type) || (!currentTextType && item.type === 'normalText') }"
|
|
407
|
+
@click="selectTextType(item.type)">
|
|
408
|
+
<div style="display: flex; align-items: center; gap: 8px;">
|
|
409
|
+
<span
|
|
410
|
+
:style="{ color: item.badgeColor, backgroundColor: item.badgeBg, fontSize: '10px', padding: '1px 6px', borderRadius: '4px', fontWeight: 600, minWidth: '36px', textAlign: 'center' }">{{
|
|
411
|
+
item.tag }}</span>
|
|
412
|
+
<span class="autofit-item-label">{{ item.label }}({{ item.enLabel }})</span>
|
|
413
|
+
</div>
|
|
414
|
+
<div style="display: flex; align-items: center; gap: 8px;">
|
|
415
|
+
<span style="font-size: 11px; color: #94a3b8;">{{ item.defaultFontSize }}px</span>
|
|
416
|
+
<svg v-if="(currentTextType === item.type) || (!currentTextType && item.type === 'normalText')"
|
|
417
|
+
viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="2.5"
|
|
418
|
+
stroke-linecap="round" stroke-linejoin="round" class="autofit-check-icon">
|
|
419
|
+
<polyline points="20 6 9 17 4 12" />
|
|
420
|
+
</svg>
|
|
421
|
+
</div>
|
|
422
|
+
</div>
|
|
423
|
+
</div>
|
|
424
|
+
</el-popover>
|
|
425
|
+
</div>
|
|
426
|
+
|
|
427
|
+
<!-- 2. 文字 (Font, Weight, Size, LineHeight, LetterSpacing, Lists, Alignments, Styles) -->
|
|
428
|
+
<div class="form-item-block">
|
|
429
|
+
<div class="form-item-label">文字</div>
|
|
430
|
+
|
|
431
|
+
<!-- Row 1: Font Family Selector (Full Width) -->
|
|
432
|
+
<el-select :model-value="styleFontFamily" @change="emit('changeFontFamily', $event)" size="small"
|
|
433
|
+
class="custom-select full-width-control" placement="bottom-start"
|
|
434
|
+
:fallback-placements="['bottom-start', 'bottom', 'top-start']" popper-class="sidebar-select-popper"
|
|
435
|
+
:show-arrow="false" :offset="4">
|
|
436
|
+
<el-option label="默认字体" value="默认字体" />
|
|
437
|
+
<el-option v-for="font in displaySysFonts" :key="font.value" :label="font.label" :value="font.value">
|
|
438
|
+
<span :style="{ fontFamily: font.value }">{{ font.label }}</span>
|
|
439
|
+
</el-option>
|
|
440
|
+
</el-select>
|
|
441
|
+
|
|
442
|
+
<!-- Row 2: Weight & Size (1:1 equal columns) -->
|
|
443
|
+
<div class="control-row-duo">
|
|
444
|
+
<div style="flex: 1; min-width: 0;">
|
|
445
|
+
<el-popover v-model:visible="isFontWeightPopoverVisible" placement="bottom-start"
|
|
446
|
+
:width="fontWeightTriggerWidth" trigger="click" popper-class="autofit-popover-panel" :show-arrow="false"
|
|
447
|
+
:offset="4" @before-enter="onFontWeightPopoverShow">
|
|
448
|
+
<template #reference>
|
|
449
|
+
<div ref="fontWeightTriggerRef" class="custom-select-trigger"
|
|
450
|
+
:class="{ 'is-active': isFontWeightPopoverVisible }">
|
|
451
|
+
<span class="select-trigger-text">{{ currentFontWeightLabel }}</span>
|
|
452
|
+
<svg viewBox="0 0 1024 1024" width="10" height="10" fill="currentColor" class="select-trigger-arrow"
|
|
453
|
+
:class="{ 'is-open': isFontWeightPopoverVisible }">
|
|
454
|
+
<path
|
|
455
|
+
d="M831.872 340.777L512 652.672 192.128 340.777a31.968 31.968 0 0 0-45.12 45.312l342.4 333.568a32 32 0 0 0 45.184 0l342.4-333.568a31.968 31.968 0 0 0-45.12-45.312z">
|
|
456
|
+
</path>
|
|
457
|
+
</svg>
|
|
458
|
+
</div>
|
|
459
|
+
</template>
|
|
460
|
+
|
|
461
|
+
<div class="autofit-menu-container">
|
|
462
|
+
<div v-for="variant in currentFontVariants" :key="variant.value" class="autofit-menu-item"
|
|
463
|
+
:class="{ 'is-selected': styleFontWeightStyle === variant.value || (!styleFontWeightStyle && variant.value === 'normal') }"
|
|
464
|
+
@click="selectFontWeight(variant.value)">
|
|
465
|
+
<span class="autofit-item-label">{{ variant.label }}</span>
|
|
466
|
+
<svg
|
|
467
|
+
v-if="styleFontWeightStyle === variant.value || (!styleFontWeightStyle && variant.value === 'normal')"
|
|
468
|
+
viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="2.5"
|
|
469
|
+
stroke-linecap="round" stroke-linejoin="round" class="autofit-check-icon">
|
|
470
|
+
<polyline points="20 6 9 17 4 12" />
|
|
471
|
+
</svg>
|
|
472
|
+
</div>
|
|
473
|
+
</div>
|
|
474
|
+
</el-popover>
|
|
475
|
+
</div>
|
|
476
|
+
|
|
477
|
+
<div style="flex: 1; min-width: 0;">
|
|
478
|
+
<el-popover v-model:visible="isFontSizePopoverVisible" placement="bottom-end" :width="fontSizeTriggerWidth"
|
|
479
|
+
trigger="click" popper-class="autofit-popover-panel font-size-popover" :show-arrow="false" :offset="4"
|
|
480
|
+
@before-enter="onFontSizePopoverShow">
|
|
481
|
+
<template #reference>
|
|
482
|
+
<div ref="fontSizeTriggerRef" class="custom-select-trigger font-size-trigger"
|
|
483
|
+
:class="{ 'is-active': isFontSizePopoverVisible }">
|
|
484
|
+
<input type="text" :value="fontSizeClean" class="custom-select-input" placeholder="字号"
|
|
485
|
+
@input="onFontSizeInput" @keydown.enter="onFontSizeEnter" @blur="onFontSizeBlur" />
|
|
486
|
+
<svg viewBox="0 0 1024 1024" width="10" height="10" fill="currentColor" class="select-trigger-arrow"
|
|
487
|
+
:class="{ 'is-open': isFontSizePopoverVisible }">
|
|
488
|
+
<path
|
|
489
|
+
d="M831.872 340.777L512 652.672 192.128 340.777a31.968 31.968 0 0 0-45.12 45.312l342.4 333.568a32 32 0 0 0 45.184 0l342.4-333.568a31.968 31.968 0 0 0-45.12-45.312z">
|
|
490
|
+
</path>
|
|
491
|
+
</svg>
|
|
492
|
+
</div>
|
|
493
|
+
</template>
|
|
494
|
+
|
|
495
|
+
<el-scrollbar max-height="220px">
|
|
496
|
+
<div class="autofit-menu-container font-size-menu-container">
|
|
497
|
+
<div v-for="size in ['12', '14', '16', '18', '20', '24', '28', '32', '36', '44', '52', '60', '72']"
|
|
498
|
+
:key="size" class="autofit-menu-item font-size-item"
|
|
499
|
+
:class="{ 'is-selected': fontSizeClean === size }" @click="selectFontSize(size)">
|
|
500
|
+
<span class="autofit-item-label">{{ size }}</span>
|
|
501
|
+
<svg v-if="fontSizeClean === size" viewBox="0 0 24 24" width="14" height="14" fill="none"
|
|
502
|
+
stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"
|
|
503
|
+
class="autofit-check-icon">
|
|
504
|
+
<polyline points="20 6 9 17 4 12" />
|
|
505
|
+
</svg>
|
|
506
|
+
</div>
|
|
507
|
+
</div>
|
|
508
|
+
</el-scrollbar>
|
|
509
|
+
</el-popover>
|
|
510
|
+
</div>
|
|
511
|
+
</div>
|
|
512
|
+
|
|
513
|
+
<!-- Row 3: Line Height & Letter Spacing (1:1 equal columns) -->
|
|
514
|
+
<div class="control-row-duo">
|
|
515
|
+
<div class="custom-num-pill" style="flex: 1;">
|
|
516
|
+
<svg class="icon input-icon">
|
|
517
|
+
<use xlink:href="#icon-hanggao"></use>
|
|
518
|
+
</svg>
|
|
519
|
+
<input type="number" :value="lineHeightNumber"
|
|
520
|
+
@input="emit('update:lineHeightNumber', Number(($event.target as HTMLInputElement).value))"
|
|
521
|
+
class="custom-num-field" step="0.1" min="0.5" max="50" />
|
|
522
|
+
</div>
|
|
523
|
+
<div class="custom-num-pill" style="flex: 1;">
|
|
524
|
+
<svg class="icon input-icon">
|
|
525
|
+
<use xlink:href="#icon-zijianju"></use>
|
|
526
|
+
</svg>
|
|
527
|
+
<input type="number" :value="letterSpacingNumber"
|
|
528
|
+
@input="emit('update:letterSpacingNumber', Number(($event.target as HTMLInputElement).value))"
|
|
529
|
+
class="custom-num-field" min="-10" max="50" />
|
|
530
|
+
</div>
|
|
531
|
+
</div>
|
|
532
|
+
|
|
533
|
+
<!-- Row 4: Lists & Vertical Alignment (merged in one row) -->
|
|
534
|
+
<div class="control-row-trio">
|
|
535
|
+
<!-- Unordered List Dropdown Button -->
|
|
536
|
+
<div class="list-dropdown-btn" :class="{ 'is-active': hasUnorderedList }">
|
|
537
|
+
<div class="list-btn-main" @click="emit('toggleListStyle', 'ul', 'disc')" @mousedown.prevent title="无序列表">
|
|
538
|
+
<svg class="icon" style="width: 14px; height: 14px; fill: currentColor;">
|
|
539
|
+
<use xlink:href="#icon-wuxuliebiao"></use>
|
|
540
|
+
</svg>
|
|
541
|
+
</div>
|
|
542
|
+
<el-popover placement="bottom" :width="250" trigger="click" popper-class="list-popover-panel"
|
|
543
|
+
:show-arrow="false" @before-enter="isUlVisible = true" @before-leave="isUlVisible = false">
|
|
544
|
+
<template #reference>
|
|
545
|
+
<div class="list-btn-arrow" :class="{ 'is-open': isUlVisible }">
|
|
546
|
+
<svg viewBox="0 0 1024 1024" width="7" height="7" fill="currentColor">
|
|
547
|
+
<path
|
|
548
|
+
d="M831.872 340.777L512 652.672 192.128 340.777a31.968 31.968 0 0 0-45.12 45.312l342.4 333.568a32 32 0 0 0 45.184 0l342.4-333.568a31.968 31.968 0 0 0-45.12-45.312z">
|
|
549
|
+
</path>
|
|
550
|
+
</svg>
|
|
551
|
+
</div>
|
|
552
|
+
</template>
|
|
553
|
+
<div class="list-presets-grid">
|
|
554
|
+
<div class="list-style-card"
|
|
555
|
+
:class="{ active: isActiveListStyle ? isActiveListStyle('ul', 'disc') : false }"
|
|
556
|
+
@click="emit('toggleListStyle', 'ul', 'disc', true)" @mousedown.prevent>
|
|
557
|
+
<img :src="ulDisc" />
|
|
558
|
+
</div>
|
|
559
|
+
<div class="list-style-card"
|
|
560
|
+
:class="{ active: isActiveListStyle ? isActiveListStyle('ul', '\'◆ \'') : false }"
|
|
561
|
+
@click="emit('toggleListStyle', 'ul', '\'◆ \'', true)" @mousedown.prevent>
|
|
562
|
+
<img :src="ulDiamond" />
|
|
563
|
+
</div>
|
|
564
|
+
<div class="list-style-card"
|
|
565
|
+
:class="{ active: isActiveListStyle ? isActiveListStyle('ul', '\'▸ \'') : false }"
|
|
566
|
+
@click="emit('toggleListStyle', 'ul', '\'▸ \'', true)" @mousedown.prevent>
|
|
567
|
+
<img :src="ulTriangle" />
|
|
568
|
+
</div>
|
|
569
|
+
<div class="list-style-card"
|
|
570
|
+
:class="{ active: isActiveListStyle ? isActiveListStyle('ul', '\'✔ \'') : false }"
|
|
571
|
+
@click="emit('toggleListStyle', 'ul', '\'✔ \'', true)" @mousedown.prevent>
|
|
572
|
+
<img :src="ulCheckmark" />
|
|
573
|
+
</div>
|
|
574
|
+
<div class="list-style-card"
|
|
575
|
+
:class="{ active: isActiveListStyle ? isActiveListStyle('ul', 'square') : false }"
|
|
576
|
+
@click="emit('toggleListStyle', 'ul', 'square', true)" @mousedown.prevent>
|
|
577
|
+
<img :src="ulSquare" />
|
|
578
|
+
</div>
|
|
579
|
+
<div class="list-style-card"
|
|
580
|
+
:class="{ active: isActiveListStyle ? isActiveListStyle('ul', 'circle') : false }"
|
|
581
|
+
@click="emit('toggleListStyle', 'ul', 'circle', true)" @mousedown.prevent>
|
|
582
|
+
<img :src="ulCircle" />
|
|
583
|
+
</div>
|
|
584
|
+
</div>
|
|
585
|
+
</el-popover>
|
|
586
|
+
</div>
|
|
587
|
+
|
|
588
|
+
<!-- Ordered List Dropdown Button -->
|
|
589
|
+
<div class="list-dropdown-btn" :class="{ 'is-active': hasOrderedList }">
|
|
590
|
+
<div class="list-btn-main" @click="emit('toggleListStyle', 'ol', 'decimal')" @mousedown.prevent title="有序列表">
|
|
591
|
+
<svg class="icon" style="width: 14px; height: 14px; fill: currentColor;">
|
|
592
|
+
<use xlink:href="#icon-youxuliebiao"></use>
|
|
593
|
+
</svg>
|
|
594
|
+
</div>
|
|
595
|
+
<el-popover placement="bottom" :width="250" trigger="click" popper-class="list-popover-panel"
|
|
596
|
+
:show-arrow="false" @before-enter="isOlVisible = true" @before-leave="isOlVisible = false">
|
|
597
|
+
<template #reference>
|
|
598
|
+
<div class="list-btn-arrow" :class="{ 'is-open': isOlVisible }">
|
|
599
|
+
<svg viewBox="0 0 1024 1024" width="7" height="7" fill="currentColor">
|
|
600
|
+
<path
|
|
601
|
+
d="M831.872 340.777L512 652.672 192.128 340.777a31.968 31.968 0 0 0-45.12 45.312l342.4 333.568a32 32 0 0 0 45.184 0l342.4-333.568a31.968 31.968 0 0 0-45.12-45.312z">
|
|
602
|
+
</path>
|
|
603
|
+
</svg>
|
|
604
|
+
</div>
|
|
605
|
+
</template>
|
|
606
|
+
<div class="list-presets-grid">
|
|
607
|
+
<div class="list-style-card"
|
|
608
|
+
:class="{ active: isActiveListStyle ? isActiveListStyle('ol', 'decimal') : false }"
|
|
609
|
+
@click="emit('toggleListStyle', 'ol', 'decimal', true)" @mousedown.prevent>
|
|
610
|
+
<img :src="olDicimal" />
|
|
611
|
+
</div>
|
|
612
|
+
<div class="list-style-card"
|
|
613
|
+
:class="{ active: isActiveListStyle ? isActiveListStyle('ol', 'circled-numbers') : false }"
|
|
614
|
+
@click="emit('toggleListStyle', 'ol', 'circled-numbers', true)" @mousedown.prevent>
|
|
615
|
+
<img :src="olCircledNumbers" />
|
|
616
|
+
</div>
|
|
617
|
+
<div class="list-style-card"
|
|
618
|
+
:class="{ active: isActiveListStyle ? isActiveListStyle('ol', 'lower-alpha') : false }"
|
|
619
|
+
@click="emit('toggleListStyle', 'ol', 'lower-alpha', true)" @mousedown.prevent>
|
|
620
|
+
<img :src="olLowerAlpha" />
|
|
621
|
+
</div>
|
|
622
|
+
<div class="list-style-card"
|
|
623
|
+
:class="{ active: isActiveListStyle ? isActiveListStyle('ol', 'upper-alpha') : false }"
|
|
624
|
+
@click="emit('toggleListStyle', 'ol', 'upper-alpha', true)" @mousedown.prevent>
|
|
625
|
+
<img :src="olUpperAlpha" />
|
|
626
|
+
</div>
|
|
627
|
+
<div class="list-style-card"
|
|
628
|
+
:class="{ active: isActiveListStyle ? isActiveListStyle('ol', 'upper-roman') : false }"
|
|
629
|
+
@click="emit('toggleListStyle', 'ol', 'upper-roman', true)" @mousedown.prevent>
|
|
630
|
+
<img :src="olUpperRoman" />
|
|
631
|
+
</div>
|
|
632
|
+
<div class="list-style-card"
|
|
633
|
+
:class="{ active: isActiveListStyle ? isActiveListStyle('ol', 'simp-chinese-informal') : false }"
|
|
634
|
+
@click="emit('toggleListStyle', 'ol', 'simp-chinese-informal', true)" @mousedown.prevent>
|
|
635
|
+
<img :src="olChinese" />
|
|
636
|
+
</div>
|
|
637
|
+
</div>
|
|
638
|
+
</el-popover>
|
|
639
|
+
</div>
|
|
640
|
+
|
|
641
|
+
<!-- Vertical Alignment 3-Button Group -->
|
|
642
|
+
<div class="button-group-pill vertical-align-group">
|
|
643
|
+
<div class="pill-action-btn" :class="{ 'is-active': styleVerticalAlign === 'top' }" title="顶对齐"
|
|
644
|
+
@click="emit('update:styleVerticalAlign', 'top')">
|
|
645
|
+
<svg class="icon" style="width: 15px; height: 15px; fill: currentColor;">
|
|
646
|
+
<use :xlink:href="styleVerticalAlign === 'top' ? '#icon-dingduiqi-xuanzhong' : '#icon-dingduiqi1'"></use>
|
|
647
|
+
</svg>
|
|
648
|
+
</div>
|
|
649
|
+
<div class="pill-action-btn"
|
|
650
|
+
:class="{ 'is-active': (styleVerticalAlign === 'middle' || !styleVerticalAlign) }" title="居中对齐"
|
|
651
|
+
@click="emit('update:styleVerticalAlign', 'middle')">
|
|
652
|
+
<svg class="icon" style="width: 15px; height: 15px; fill: currentColor;">
|
|
653
|
+
<use
|
|
654
|
+
:xlink:href="(styleVerticalAlign === 'middle' || !styleVerticalAlign) ? '#icon-chuizhiduiqi-xuanzhong' : '#icon-chuizhiduiqi'">
|
|
655
|
+
</use>
|
|
656
|
+
</svg>
|
|
657
|
+
</div>
|
|
658
|
+
<div class="pill-action-btn" :class="{ 'is-active': styleVerticalAlign === 'bottom' }" title="底对齐"
|
|
659
|
+
@click="emit('update:styleVerticalAlign', 'bottom')">
|
|
660
|
+
<svg class="icon" style="width: 15px; height: 15px; fill: currentColor;">
|
|
661
|
+
<use :xlink:href="styleVerticalAlign === 'bottom' ? '#icon-diduiqi1-copy' : '#icon-diduiqi1'"></use>
|
|
662
|
+
</svg>
|
|
663
|
+
</div>
|
|
664
|
+
</div>
|
|
665
|
+
</div>
|
|
666
|
+
|
|
667
|
+
<!-- Row 5: Text Styles: Bold, Italic, Underline, Strikethrough -->
|
|
668
|
+
<div class="button-group-pill full-width-control">
|
|
669
|
+
<div class="pill-action-btn font-style-letter" :class="{ 'is-active': isBoldActive }" title="加粗"
|
|
670
|
+
@click="emit('toggleBold')">
|
|
671
|
+
<span style="font-weight: 700; font-size: 14px;">B</span>
|
|
672
|
+
</div>
|
|
673
|
+
<div class="pill-action-btn font-style-letter" :class="{ 'is-active': isItalicActive }" title="斜体"
|
|
674
|
+
@click="emit('toggleItalic')">
|
|
675
|
+
<span
|
|
676
|
+
style="font-style: italic; font-weight: 600; font-size: 14px; font-family: serif, 'Times New Roman';">I</span>
|
|
677
|
+
</div>
|
|
678
|
+
<div class="pill-action-btn font-style-letter" :class="{ 'is-active': isUnderlineActive }" title="下划线"
|
|
679
|
+
@click="emit('toggleUnderline')">
|
|
680
|
+
<span style="text-decoration: underline; font-weight: 600; font-size: 14px;">U</span>
|
|
681
|
+
</div>
|
|
682
|
+
<div class="pill-action-btn" :class="{ 'is-active': isStrikethroughActive }" title="删除线"
|
|
683
|
+
@click="emit('toggleStrikethrough')">
|
|
684
|
+
<svg class="icon" style="width: 15px; height: 15px; fill: currentColor;">
|
|
685
|
+
<use :xlink:href="isStrikethroughActive ? '#icon-shanchuxian-xuanzhong' : '#icon-shanchuxian'"></use>
|
|
686
|
+
</svg>
|
|
687
|
+
</div>
|
|
688
|
+
</div>
|
|
689
|
+
|
|
690
|
+
<!-- Row 6: Horizontal Alignment (5 buttons) -->
|
|
691
|
+
<div class="button-group-pill full-width-control">
|
|
692
|
+
<div class="pill-action-btn" :class="{ 'is-active': currentTextAlign === 'left' }" title="左对齐"
|
|
693
|
+
@click="emit('update:styleTextAlign', 'left')">
|
|
694
|
+
<svg class="icon" style="width: 15px; height: 15px; fill: currentColor;">
|
|
695
|
+
<use :xlink:href="currentTextAlign === 'left' ? '#icon-zuoduiqi-xuanzhong' : '#icon-zuoduiqi1'"></use>
|
|
696
|
+
</svg>
|
|
697
|
+
</div>
|
|
698
|
+
<div class="pill-action-btn" :class="{ 'is-active': (currentTextAlign === 'center' || !currentTextAlign) }"
|
|
699
|
+
title="居中对齐" @click="emit('update:styleTextAlign', 'center')">
|
|
700
|
+
<svg class="icon" style="width: 15px; height: 15px; fill: currentColor;">
|
|
701
|
+
<use
|
|
702
|
+
:xlink:href="(currentTextAlign === 'center' || !currentTextAlign) ? '#icon-juzhongduiqi-xuanzhong' : '#icon-juzhongduiqi'">
|
|
703
|
+
</use>
|
|
704
|
+
</svg>
|
|
705
|
+
</div>
|
|
706
|
+
<div class="pill-action-btn" :class="{ 'is-active': currentTextAlign === 'right' }" title="右对齐"
|
|
707
|
+
@click="emit('update:styleTextAlign', 'right')">
|
|
708
|
+
<svg class="icon" style="width: 15px; height: 15px; fill: currentColor;">
|
|
709
|
+
<use :xlink:href="currentTextAlign === 'right' ? '#icon-youduiqi3-copy-copy' : '#icon-youduiqi3-copy'">
|
|
710
|
+
</use>
|
|
711
|
+
</svg>
|
|
712
|
+
</div>
|
|
713
|
+
<div class="pill-action-btn" :class="{ 'is-active': currentTextAlign === 'justify' }" title="两端对齐"
|
|
714
|
+
@click="emit('update:styleTextAlign', 'justify')">
|
|
715
|
+
<svg class="icon" style="width: 15px; height: 15px; fill: currentColor;">
|
|
716
|
+
<use xlink:href="#icon-liangduanduiqi"></use>
|
|
717
|
+
</svg>
|
|
718
|
+
</div>
|
|
719
|
+
<div class="pill-action-btn" :class="{ 'is-active': currentTextAlign === 'distribute' }" title="分散对齐"
|
|
720
|
+
@click="emit('update:styleTextAlign', 'distribute')">
|
|
721
|
+
<svg class="icon" style="width: 15px; height: 15px; fill: currentColor;">
|
|
722
|
+
<use xlink:href="#icon-fensanduiqi"></use>
|
|
723
|
+
</svg>
|
|
724
|
+
</div>
|
|
725
|
+
</div>
|
|
726
|
+
</div>
|
|
727
|
+
|
|
728
|
+
<div class="section-divider"></div>
|
|
729
|
+
|
|
730
|
+
<!-- 3. 字体颜色 -->
|
|
731
|
+
<div class="form-item-block">
|
|
732
|
+
<div class="form-item-label">字体颜色</div>
|
|
733
|
+
<QuickColorPopover v-model:visible="textColorPopoverVisible" :color="styleTextColor || '#000000'"
|
|
734
|
+
:recent-colors="recentColors" @select-color="emit('update:styleTextColor', $event)">
|
|
735
|
+
<template #reference>
|
|
736
|
+
<div class="full-color-card">
|
|
737
|
+
<div class="color-swatch-hex">
|
|
738
|
+
<div class="color-swatch-box" :style="{ background: styleTextColor || '#000000' }"></div>
|
|
739
|
+
<span class="color-hex-text">{{ (styleTextColor || '#000000').replace('#', '').toUpperCase() }}</span>
|
|
740
|
+
</div>
|
|
741
|
+
<span class="color-opacity-text">100%</span>
|
|
742
|
+
</div>
|
|
743
|
+
</template>
|
|
744
|
+
</QuickColorPopover>
|
|
745
|
+
</div>
|
|
746
|
+
|
|
747
|
+
<!-- 4. 高亮色 -->
|
|
748
|
+
<div class="form-item-block">
|
|
749
|
+
<div class="form-item-label">高亮色</div>
|
|
750
|
+
<QuickColorPopover v-model:visible="textBgPopoverVisible" :color="styleTextBackground || 'transparent'"
|
|
751
|
+
:recent-colors="recentColors" @select-color="emit('update:styleTextBackground', $event)">
|
|
752
|
+
<template #reference>
|
|
753
|
+
<div class="full-color-card">
|
|
754
|
+
<div class="color-swatch-hex">
|
|
755
|
+
<div class="color-swatch-box" :style="{
|
|
756
|
+
background: (styleTextBackground && styleTextBackground !== 'transparent') ? styleTextBackground : '#ffffff',
|
|
757
|
+
border: (!styleTextBackground || styleTextBackground === 'transparent') ? '1px dashed #cbd5e1' : 'none'
|
|
758
|
+
}"></div>
|
|
759
|
+
<span class="color-hex-text">{{ (!styleTextBackground || styleTextBackground === 'transparent') ? '无' :
|
|
760
|
+
styleTextBackground.replace('#', '').toUpperCase() }}</span>
|
|
761
|
+
</div>
|
|
762
|
+
<span class="color-opacity-text">{{ (!styleTextBackground || styleTextBackground === 'transparent') ? '0%' :
|
|
763
|
+
'100%' }}</span>
|
|
764
|
+
</div>
|
|
765
|
+
</template>
|
|
766
|
+
</QuickColorPopover>
|
|
767
|
+
</div>
|
|
768
|
+
|
|
769
|
+
<!-- 5. 文字轮廓 -->
|
|
770
|
+
<div class="accordion-item-block">
|
|
771
|
+
<div class="accordion-header-row" @click="toggleTextBorderHeader">
|
|
772
|
+
<div class="accordion-title-wrap">
|
|
773
|
+
<span class="accordion-title">文字轮廓</span>
|
|
774
|
+
<span class="accordion-arrow"
|
|
775
|
+
:style="{ transform: (enableTextStroke && isTextBorderExpanded) ? 'rotate(90deg)' : 'rotate(0deg)' }">▶</span>
|
|
776
|
+
</div>
|
|
777
|
+
<el-switch :model-value="enableTextStroke" size="small" @click.stop
|
|
778
|
+
@change="emit('update:enableTextStroke', $event); isTextBorderExpanded = $event" />
|
|
779
|
+
</div>
|
|
780
|
+
|
|
781
|
+
<div v-show="isTextBorderExpanded && enableTextStroke" class="accordion-inner-content">
|
|
782
|
+
<!-- Stroke Color card -->
|
|
783
|
+
<QuickColorPopover v-model:visible="textStrokePopoverVisible" :color="textStrokeColor || '#000000'"
|
|
784
|
+
:recent-colors="recentColors" @select-color="emit('update:textStrokeColor', $event)">
|
|
785
|
+
<template #reference>
|
|
786
|
+
<div class="full-color-card">
|
|
787
|
+
<div class="color-swatch-hex">
|
|
788
|
+
<div class="color-swatch-box" :style="{ background: textStrokeColor || '#000000' }"></div>
|
|
789
|
+
<span class="color-hex-text">{{ (textStrokeColor || '#000000').replace('#', '').toUpperCase() }}</span>
|
|
790
|
+
</div>
|
|
791
|
+
<span class="color-opacity-text">{{ textStrokeAlpha ?? 100 }}%</span>
|
|
792
|
+
</div>
|
|
793
|
+
</template>
|
|
794
|
+
</QuickColorPopover>
|
|
795
|
+
|
|
796
|
+
<!-- Stroke Width Pill -->
|
|
797
|
+
<div class="custom-num-pill full-width-pill">
|
|
798
|
+
<svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="2.5"
|
|
799
|
+
class="input-icon">
|
|
800
|
+
<line x1="3" y1="6" x2="21" y2="6" />
|
|
801
|
+
<line x1="3" y1="12" x2="21" y2="12" />
|
|
802
|
+
<line x1="3" y1="18" x2="21" y2="18" />
|
|
803
|
+
</svg>
|
|
804
|
+
<input type="number" :value="textStrokeWidth"
|
|
805
|
+
@input="emit('update:textStrokeWidth', Number(($event.target as HTMLInputElement).value))" :min="1"
|
|
806
|
+
:max="20" class="custom-num-field" />
|
|
807
|
+
</div>
|
|
808
|
+
</div>
|
|
809
|
+
</div>
|
|
810
|
+
|
|
811
|
+
<div class="section-divider"></div>
|
|
812
|
+
|
|
813
|
+
<!-- 6. 文字边距 -->
|
|
814
|
+
<div class="accordion-item-block" v-if="selectedElement && selectedElement.type !== 'group'">
|
|
815
|
+
<div class="accordion-header-row" @click="isPaddingExpanded = !isPaddingExpanded">
|
|
816
|
+
<div class="accordion-title-wrap">
|
|
817
|
+
<span class="accordion-title">文字边距</span>
|
|
818
|
+
<span class="accordion-arrow"
|
|
819
|
+
:style="{ transform: isPaddingExpanded ? 'rotate(90deg)' : 'rotate(0deg)' }">▶</span>
|
|
820
|
+
</div>
|
|
821
|
+
</div>
|
|
822
|
+
|
|
823
|
+
<div v-show="isPaddingExpanded" class="accordion-inner-content">
|
|
824
|
+
<div class="padding-control-container">
|
|
825
|
+
<!-- 2x2 grid -->
|
|
826
|
+
<div class="padding-inputs-grid">
|
|
827
|
+
<!-- Left (Top-Left) -->
|
|
828
|
+
<div class="custom-num-pill">
|
|
829
|
+
<svg class="icon input-icon">
|
|
830
|
+
<use xlink:href="#icon-zuobianju"></use>
|
|
831
|
+
</svg>
|
|
832
|
+
<input type="number" :value="paddingLeft"
|
|
833
|
+
@input="emit('update:paddingLeft', Number(($event.target as HTMLInputElement).value))"
|
|
834
|
+
class="custom-num-field" min="0" max="500" />
|
|
835
|
+
</div>
|
|
836
|
+
|
|
837
|
+
<!-- Right (Top-Right) -->
|
|
838
|
+
<div class="custom-num-pill">
|
|
839
|
+
<svg class="icon input-icon">
|
|
840
|
+
<use xlink:href="#icon-youbianju"></use>
|
|
841
|
+
</svg>
|
|
842
|
+
<input type="number" :value="paddingRight"
|
|
843
|
+
@input="emit('update:paddingRight', Number(($event.target as HTMLInputElement).value))"
|
|
844
|
+
class="custom-num-field" min="0" max="500" />
|
|
845
|
+
</div>
|
|
846
|
+
|
|
847
|
+
<!-- Top (Bottom-Left) -->
|
|
848
|
+
<div class="custom-num-pill">
|
|
849
|
+
<svg class="icon input-icon">
|
|
850
|
+
<use xlink:href="#icon-shangbianju"></use>
|
|
851
|
+
</svg>
|
|
852
|
+
<input type="number" :value="paddingTop"
|
|
853
|
+
@input="emit('update:paddingTop', Number(($event.target as HTMLInputElement).value))"
|
|
854
|
+
class="custom-num-field" min="0" max="500" />
|
|
855
|
+
</div>
|
|
856
|
+
|
|
857
|
+
<!-- Bottom (Bottom-Right) -->
|
|
858
|
+
<div class="custom-num-pill">
|
|
859
|
+
<svg class="icon input-icon">
|
|
860
|
+
<use xlink:href="#icon-xiabianju"></use>
|
|
861
|
+
</svg>
|
|
862
|
+
<input type="number" :value="paddingBottom"
|
|
863
|
+
@input="emit('update:paddingBottom', Number(($event.target as HTMLInputElement).value))"
|
|
864
|
+
class="custom-num-field" min="0" max="500" />
|
|
865
|
+
</div>
|
|
866
|
+
</div>
|
|
867
|
+
|
|
868
|
+
<!-- Lock Button on bottom-right -->
|
|
869
|
+
<div class="padding-lock-btn" title="锁定所有边框内边距一致" :class="{ 'is-locked': isPaddingLocked }"
|
|
870
|
+
@click="emit('update:isPaddingLocked', !isPaddingLocked)">
|
|
871
|
+
<svg viewBox="0 0 1024 1024" width="16" height="16" style="display: block;">
|
|
872
|
+
<template v-if="isPaddingLocked">
|
|
873
|
+
<path
|
|
874
|
+
d="M192 396.8v-30.4q0-125.248 88.576-213.824Q369.152 64 494.4 64q125.248 0 213.824 88.576 88.576 88.576 88.576 213.824V396.8a46.4 46.4 0 1 1-92.8 0v-30.4q0-86.848-61.44-148.224-61.312-61.376-148.16-61.376t-148.224 61.44q-61.376 61.312-61.376 148.16V396.8A46.4 46.4 0 1 1 192 396.8m92.8 259.2v30.4q0 86.848 61.44 148.224 61.312 61.376 148.16 61.376t148.224-61.44q61.376-61.312 61.376-148.16v-30.4a46.4 46.4 0 1 1 92.8 0v30.4q0 125.248-88.576 213.824-88.576 88.576-213.824 88.576-125.248 0-213.824-88.576Q192 811.648 192 686.4v-30.4a46.4 46.4 0 1 1 92.8 0"
|
|
875
|
+
fill="currentColor" />
|
|
876
|
+
<path
|
|
877
|
+
d="M448 320m46.4 0l0 0q46.4 0 46.4 46.4l0 320q0 46.4-46.4 46.4l0 0q-46.4 0-46.4-46.4l0-320q0-46.4 46.4-46.4Z"
|
|
878
|
+
fill="currentColor" />
|
|
879
|
+
</template>
|
|
880
|
+
<template v-else>
|
|
881
|
+
<path
|
|
882
|
+
d="M192 396.8v-30.4q0-125.248 88.576-213.824Q369.152 64 494.4 64q125.248 0 213.824 88.576 88.576 88.576 88.576 213.824V396.8a46.4 46.4 0 1 1-92.8 0v-30.4q0-86.848-61.44-148.224-61.312-61.376-148.16-61.376t-148.224 61.44q-61.376 61.312-61.376 148.16V396.8A46.4 46.4 0 1 1 192 396.8m92.8 259.2v30.4q0 86.848 61.44 148.224 61.312 61.376 148.16 61.376t148.224-61.44q61.376-61.312 61.376-148.16v-30.4a46.4 46.4 0 1 1 92.8 0v30.4q0 125.248-88.576 213.824-88.576 88.576-213.824 88.576-125.248 0-213.824-88.576Q192 811.648 192 686.4v-30.4a46.4 46.4 0 1 1 92.8 0"
|
|
883
|
+
fill="currentColor" />
|
|
884
|
+
<path
|
|
885
|
+
d="M448 604.8v81.6q0 4.544 0.896 9.024 0.896 4.48 2.624 8.704 1.792 4.224 4.288 8.064 2.56 3.84 5.76 7.04 3.2 3.2 7.04 5.76 3.84 2.56 8.064 4.288 4.224 1.728 8.704 2.624 4.48 0.896 9.024 0.896 4.544 0 9.024-0.896 4.48-0.896 8.704-2.624 4.224-1.792 8.064-4.288 3.84-2.56 7.04-5.76 3.2-3.2 5.76-7.04 2.56-3.84 4.288-8.064 1.728-4.224 2.624-8.704 0.896-4.48 0.896-9.024V604.8H448zM448 512h92.8V366.4q0-4.544-0.896-9.024-0.896-4.48-2.624-8.704-1.792-4.224-4.288-8.064-2.56-3.84-5.76-7.04-3.2-3.2-7.04-5.76-3.84-2.56-8.064-4.288-4.224-1.728-8.704-2.624Q498.944 320 494.4 320q-4.544 0-9.024 0.896-4.48 0.896-8.704 2.624-4.224 1.792-8.064 4.288-3.84 2.56-7.04 5.76-3.2 3.2-5.76 7.04-2.56 3.84-4.288 8.064-1.728 4.224-2.624 8.704Q448 361.856 448 366.4V512z"
|
|
886
|
+
fill="currentColor" />
|
|
887
|
+
<path d="M142.4 480a46.4 46.4 0 1 0 0 92.8h675.2a46.4 46.4 0 1 0 0-92.8H142.4z" fill="currentColor" />
|
|
888
|
+
</template>
|
|
889
|
+
</svg>
|
|
890
|
+
</div>
|
|
891
|
+
</div>
|
|
892
|
+
</div>
|
|
893
|
+
</div>
|
|
894
|
+
|
|
895
|
+
<div class="section-divider"></div>
|
|
896
|
+
|
|
897
|
+
<!-- 7. 文字方向 (Custom Popover matching AutoFit style) -->
|
|
898
|
+
<div class="form-item-block">
|
|
899
|
+
<div class="form-item-label">文字方向</div>
|
|
900
|
+
<el-popover v-model:visible="isWritingModePopoverVisible" placement="bottom-start"
|
|
901
|
+
:width="writingModeTriggerWidth" trigger="click" popper-class="autofit-popover-panel" :show-arrow="false"
|
|
902
|
+
:offset="4" @before-enter="onWritingModePopoverShow">
|
|
903
|
+
<template #reference>
|
|
904
|
+
<div ref="writingModeTriggerRef" class="custom-select-trigger"
|
|
905
|
+
:class="{ 'is-active': isWritingModePopoverVisible }">
|
|
906
|
+
<span class="select-trigger-text">{{ currentWritingModeLabel }}</span>
|
|
907
|
+
<svg viewBox="0 0 1024 1024" width="10" height="10" fill="currentColor" class="select-trigger-arrow"
|
|
908
|
+
:class="{ 'is-open': isWritingModePopoverVisible }">
|
|
909
|
+
<path
|
|
910
|
+
d="M831.872 340.777L512 652.672 192.128 340.777a31.968 31.968 0 0 0-45.12 45.312l342.4 333.568a32 32 0 0 0 45.184 0l342.4-333.568a31.968 31.968 0 0 0-45.12-45.312z">
|
|
911
|
+
</path>
|
|
912
|
+
</svg>
|
|
913
|
+
</div>
|
|
914
|
+
</template>
|
|
915
|
+
|
|
916
|
+
<div class="autofit-menu-container">
|
|
917
|
+
<div v-for="item in writingModeOptions" :key="item.value" class="autofit-menu-item"
|
|
918
|
+
:class="{ 'is-selected': (styleWritingMode === item.value) || (!styleWritingMode && item.value === 'horizontal-tb') }"
|
|
919
|
+
@click="selectWritingMode(item.value)">
|
|
920
|
+
<span class="autofit-item-label">{{ item.label }}</span>
|
|
921
|
+
<svg v-if="(styleWritingMode === item.value) || (!styleWritingMode && item.value === 'horizontal-tb')"
|
|
922
|
+
viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="2.5"
|
|
923
|
+
class="autofit-check-icon">
|
|
924
|
+
<polyline points="20 6 9 17 4 12"></polyline>
|
|
925
|
+
</svg>
|
|
926
|
+
</div>
|
|
927
|
+
</div>
|
|
928
|
+
</el-popover>
|
|
929
|
+
</div>
|
|
930
|
+
|
|
931
|
+
<!-- 8. 文字自动调整 (Custom Popover with Word Wrap Toggle) -->
|
|
932
|
+
<div class="form-item-block">
|
|
933
|
+
<div class="form-item-label">文字自动调整</div>
|
|
934
|
+
<el-popover v-model:visible="isAutoFitPopoverVisible" placement="bottom-start" :width="autoFitTriggerWidth"
|
|
935
|
+
trigger="click" popper-class="autofit-popover-panel" :show-arrow="false" :offset="4"
|
|
936
|
+
@before-enter="onAutoFitPopoverShow">
|
|
937
|
+
<template #reference>
|
|
938
|
+
<div ref="autoFitTriggerRef" class="custom-select-trigger" :class="{ 'is-active': isAutoFitPopoverVisible }">
|
|
939
|
+
<span class="select-trigger-text">{{ currentAutoFitLabel }}</span>
|
|
940
|
+
<svg viewBox="0 0 1024 1024" width="10" height="10" fill="currentColor" class="select-trigger-arrow"
|
|
941
|
+
:class="{ 'is-open': isAutoFitPopoverVisible }">
|
|
942
|
+
<path
|
|
943
|
+
d="M831.872 340.777L512 652.672 192.128 340.777a31.968 31.968 0 0 0-45.12 45.312l342.4 333.568a32 32 0 0 0 45.184 0l342.4-333.568a31.968 31.968 0 0 0-45.12-45.312z">
|
|
944
|
+
</path>
|
|
945
|
+
</svg>
|
|
946
|
+
</div>
|
|
947
|
+
</template>
|
|
948
|
+
|
|
949
|
+
<div class="autofit-menu-container">
|
|
950
|
+
<div v-for="item in autoFitOptions" :key="item.value" class="autofit-menu-item"
|
|
951
|
+
:class="{ 'is-selected': (styleAutoFitType === item.value) || (!styleAutoFitType && item.value === 'none') }"
|
|
952
|
+
@click="selectAutoFitType(item.value)">
|
|
953
|
+
<span class="autofit-item-label">{{ item.label }}</span>
|
|
954
|
+
<svg v-if="(styleAutoFitType === item.value) || (!styleAutoFitType && item.value === 'none')"
|
|
955
|
+
viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="2.5"
|
|
956
|
+
class="autofit-check-icon">
|
|
957
|
+
<polyline points="20 6 9 17 4 12"></polyline>
|
|
958
|
+
</svg>
|
|
959
|
+
</div>
|
|
960
|
+
|
|
961
|
+
<div class="autofit-divider"></div>
|
|
962
|
+
|
|
963
|
+
<div class="autofit-wrap-row" @click.stop>
|
|
964
|
+
<span class="autofit-wrap-label">形状中的文字自动换行</span>
|
|
965
|
+
<el-switch :model-value="styleWordWrap" @change="emit('update:styleWordWrap', $event)" size="small" />
|
|
966
|
+
</div>
|
|
967
|
+
</div>
|
|
968
|
+
</el-popover>
|
|
969
|
+
</div>
|
|
970
|
+
|
|
971
|
+
<!-- 10. 阴影 (Shadow Accordion) -->
|
|
972
|
+
<div class="accordion-item-block">
|
|
973
|
+
<div class="accordion-header-row" @click="toggleTextShadowHeader">
|
|
974
|
+
<div class="accordion-title-wrap">
|
|
975
|
+
<span class="accordion-title">阴影</span>
|
|
976
|
+
<span class="accordion-arrow"
|
|
977
|
+
:style="{ transform: (enableTextShadow && isTextShadowExpanded) ? 'rotate(90deg)' : 'rotate(0deg)' }">▶</span>
|
|
978
|
+
</div>
|
|
979
|
+
<el-switch :model-value="enableTextShadow" size="small" @click.stop
|
|
980
|
+
@change="emit('update:enableTextShadow', $event); isTextShadowExpanded = $event" />
|
|
981
|
+
</div>
|
|
982
|
+
|
|
983
|
+
<div v-show="isTextShadowExpanded && enableTextShadow" class="accordion-inner-content">
|
|
984
|
+
<!-- Shadow color -->
|
|
985
|
+
<QuickColorPopover v-model:visible="textShadowPopoverVisible" :color="textShadowHex || '#000000'"
|
|
986
|
+
:recent-colors="recentColors" @select-color="emit('update:textShadowHex', $event)">
|
|
987
|
+
<template #reference>
|
|
988
|
+
<div class="full-color-card">
|
|
989
|
+
<div class="color-swatch-hex">
|
|
990
|
+
<div class="color-swatch-box" :style="{ background: textShadowHex || '#000000' }"></div>
|
|
991
|
+
<span class="color-hex-text">{{ (textShadowHex || '#000000').replace('#', '').toUpperCase() }}</span>
|
|
992
|
+
</div>
|
|
993
|
+
<span class="color-opacity-text">{{ textShadowAlpha ?? 100 }}%</span>
|
|
994
|
+
</div>
|
|
995
|
+
</template>
|
|
996
|
+
</QuickColorPopover>
|
|
997
|
+
|
|
998
|
+
<!-- Angle -->
|
|
999
|
+
<div class="shape-property-row">
|
|
1000
|
+
<span class="slider-prop-label">角度</span>
|
|
1001
|
+
<div style="display: flex; align-items: center; gap: 8px; flex: 1; justify-content: flex-end;">
|
|
1002
|
+
<div class="custom-num-pill" style="width: 80px; position: relative;">
|
|
1003
|
+
<input type="number" :value="textShadowAngle"
|
|
1004
|
+
@input="emit('update:textShadowAngle', Number(($event.target as HTMLInputElement).value))"
|
|
1005
|
+
class="custom-num-field" />
|
|
1006
|
+
<span class="angle-icon"
|
|
1007
|
+
:style="{ left: `calc(8px + ${String(textShadowAngle ?? 0).length * 8}px)` }">°</span>
|
|
1008
|
+
</div>
|
|
1009
|
+
<div class="angle-dial" @mousedown="startDragAngle">
|
|
1010
|
+
<div :style="{ transform: `rotate(${textShadowAngle || 0}deg)` }" class="dial-needle">
|
|
1011
|
+
<div class="dial-needle-tip"></div>
|
|
1012
|
+
</div>
|
|
1013
|
+
<div class="dial-center-dot"></div>
|
|
1014
|
+
</div>
|
|
1015
|
+
</div>
|
|
1016
|
+
</div>
|
|
1017
|
+
|
|
1018
|
+
<!-- Size -->
|
|
1019
|
+
<div class="shape-property-row">
|
|
1020
|
+
<span class="slider-prop-label">大小</span>
|
|
1021
|
+
<div class="shape-slider-wrapper">
|
|
1022
|
+
<el-slider :model-value="textShadowSize" @update:model-value="emit('update:textShadowSize', $event)"
|
|
1023
|
+
:min="0" :max="200" :step="1" size="small" style="flex: 1;" class="custom-slider" :show-tooltip="false"
|
|
1024
|
+
show-input :show-input-controls="false" />
|
|
1025
|
+
</div>
|
|
1026
|
+
</div>
|
|
1027
|
+
|
|
1028
|
+
<!-- Blur -->
|
|
1029
|
+
<div class="shape-property-row">
|
|
1030
|
+
<span class="slider-prop-label">模糊</span>
|
|
1031
|
+
<div class="shape-slider-wrapper">
|
|
1032
|
+
<el-slider :model-value="textShadowBlur" @update:model-value="emit('update:textShadowBlur', $event)"
|
|
1033
|
+
:min="0" :max="267" size="small" style="flex: 1;" class="custom-slider" :show-tooltip="false" show-input
|
|
1034
|
+
:show-input-controls="false" />
|
|
1035
|
+
</div>
|
|
1036
|
+
</div>
|
|
1037
|
+
|
|
1038
|
+
<!-- Distance -->
|
|
1039
|
+
<div class="shape-property-row">
|
|
1040
|
+
<span class="slider-prop-label">距离</span>
|
|
1041
|
+
<div class="shape-slider-wrapper">
|
|
1042
|
+
<el-slider :model-value="textShadowDistance" @update:model-value="emit('update:textShadowDistance', $event)"
|
|
1043
|
+
:min="0" :max="267" size="small" style="flex: 1;" class="custom-slider" :show-tooltip="false" show-input
|
|
1044
|
+
:show-input-controls="false" />
|
|
1045
|
+
</div>
|
|
1046
|
+
</div>
|
|
1047
|
+
|
|
1048
|
+
<!-- Transparency -->
|
|
1049
|
+
<div class="shape-property-row">
|
|
1050
|
+
<span class="slider-prop-label">透明度</span>
|
|
1051
|
+
<div class="shape-slider-wrapper">
|
|
1052
|
+
<el-slider :model-value="textShadowAlpha" @update:model-value="emit('update:textShadowAlpha', $event)"
|
|
1053
|
+
:min="0" :max="100" size="small" style="flex: 1;" class="custom-slider" :show-tooltip="false" show-input
|
|
1054
|
+
:show-input-controls="false" />
|
|
1055
|
+
</div>
|
|
1056
|
+
</div>
|
|
1057
|
+
</div>
|
|
1058
|
+
</div>
|
|
1059
|
+
|
|
1060
|
+
<!-- 11. 倒影 (Reflection Accordion) -->
|
|
1061
|
+
<div class="accordion-item-block">
|
|
1062
|
+
<div class="accordion-header-row" @click="toggleTextReflectionHeader">
|
|
1063
|
+
<div class="accordion-title-wrap">
|
|
1064
|
+
<span class="accordion-title">倒影</span>
|
|
1065
|
+
<span class="accordion-arrow"
|
|
1066
|
+
:style="{ transform: (enableTextReflection && isTextReflectionExpanded) ? 'rotate(90deg)' : 'rotate(0deg)' }">▶</span>
|
|
1067
|
+
</div>
|
|
1068
|
+
<el-switch :model-value="enableTextReflection" size="small" @click.stop
|
|
1069
|
+
@change="emit('update:enableTextReflection', $event); isTextReflectionExpanded = $event" />
|
|
1070
|
+
</div>
|
|
1071
|
+
|
|
1072
|
+
<div v-show="isTextReflectionExpanded && enableTextReflection" class="accordion-inner-content">
|
|
1073
|
+
<!-- Distance -->
|
|
1074
|
+
<div class="shape-property-row">
|
|
1075
|
+
<span class="slider-prop-label">距离</span>
|
|
1076
|
+
<div class="shape-slider-wrapper">
|
|
1077
|
+
<el-slider :model-value="textReflectionDistance"
|
|
1078
|
+
@update:model-value="emit('update:textReflectionDistance', $event)" :min="0" :max="100" :step="0.1"
|
|
1079
|
+
size="small" style="flex: 1;" class="custom-slider" :show-tooltip="false" show-input
|
|
1080
|
+
:show-input-controls="false" />
|
|
1081
|
+
</div>
|
|
1082
|
+
</div>
|
|
1083
|
+
|
|
1084
|
+
<!-- Size -->
|
|
1085
|
+
<div class="shape-property-row">
|
|
1086
|
+
<span class="slider-prop-label">大小</span>
|
|
1087
|
+
<div class="shape-slider-wrapper">
|
|
1088
|
+
<el-slider :model-value="textReflectionSize" @update:model-value="emit('update:textReflectionSize', $event)"
|
|
1089
|
+
:min="0" :max="100" :step="0.1" size="small" style="flex: 1;" class="custom-slider" :show-tooltip="false"
|
|
1090
|
+
show-input :show-input-controls="false" />
|
|
1091
|
+
</div>
|
|
1092
|
+
</div>
|
|
1093
|
+
|
|
1094
|
+
<!-- Opacity -->
|
|
1095
|
+
<div class="shape-property-row">
|
|
1096
|
+
<span class="slider-prop-label">透明度</span>
|
|
1097
|
+
<div class="shape-slider-wrapper">
|
|
1098
|
+
<el-slider :model-value="textReflectionOpacity"
|
|
1099
|
+
@update:model-value="emit('update:textReflectionOpacity', $event)" :min="0" :max="100" :step="1"
|
|
1100
|
+
size="small" style="flex: 1;" class="custom-slider" :show-tooltip="false" show-input
|
|
1101
|
+
:show-input-controls="false" />
|
|
1102
|
+
</div>
|
|
1103
|
+
</div>
|
|
1104
|
+
|
|
1105
|
+
<!-- Blur -->
|
|
1106
|
+
<div class="shape-property-row">
|
|
1107
|
+
<span class="slider-prop-label">模糊</span>
|
|
1108
|
+
<div class="shape-slider-wrapper">
|
|
1109
|
+
<el-slider :model-value="textReflectionBlur" @update:model-value="emit('update:textReflectionBlur', $event)"
|
|
1110
|
+
:min="0" :max="100" :step="0.1" size="small" style="flex: 1;" class="custom-slider" :show-tooltip="false"
|
|
1111
|
+
show-input :show-input-controls="false" />
|
|
1112
|
+
</div>
|
|
1113
|
+
</div>
|
|
1114
|
+
</div>
|
|
1115
|
+
</div>
|
|
1116
|
+
</div>
|
|
1117
|
+
</template>
|
|
1118
|
+
|
|
1119
|
+
<style scoped lang="scss">
|
|
1120
|
+
.sidebar-text-format-panel {
|
|
1121
|
+
padding: 16px 16px 40px;
|
|
1122
|
+
display: flex;
|
|
1123
|
+
flex-direction: column;
|
|
1124
|
+
gap: 14px;
|
|
1125
|
+
box-sizing: border-box;
|
|
1126
|
+
}
|
|
1127
|
+
|
|
1128
|
+
.form-item-block {
|
|
1129
|
+
display: flex;
|
|
1130
|
+
flex-direction: column;
|
|
1131
|
+
gap: 8px;
|
|
1132
|
+
}
|
|
1133
|
+
|
|
1134
|
+
.form-item-label {
|
|
1135
|
+
font-size: 13px;
|
|
1136
|
+
font-weight: 500;
|
|
1137
|
+
color: #1e293b;
|
|
1138
|
+
text-align: left;
|
|
1139
|
+
user-select: none;
|
|
1140
|
+
}
|
|
1141
|
+
|
|
1142
|
+
.full-width-control {
|
|
1143
|
+
width: 100% !important;
|
|
1144
|
+
}
|
|
1145
|
+
|
|
1146
|
+
.control-row-duo {
|
|
1147
|
+
display: flex;
|
|
1148
|
+
align-items: center;
|
|
1149
|
+
gap: 8px;
|
|
1150
|
+
width: 100%;
|
|
1151
|
+
}
|
|
1152
|
+
|
|
1153
|
+
.control-row-trio {
|
|
1154
|
+
display: flex;
|
|
1155
|
+
align-items: center;
|
|
1156
|
+
gap: 8px;
|
|
1157
|
+
width: 100%;
|
|
1158
|
+
}
|
|
1159
|
+
|
|
1160
|
+
.custom-num-pill {
|
|
1161
|
+
display: flex;
|
|
1162
|
+
align-items: center;
|
|
1163
|
+
background: #FAFAFA;
|
|
1164
|
+
border: 1px solid #edf0f3;
|
|
1165
|
+
border-radius: 8px;
|
|
1166
|
+
height: 32px;
|
|
1167
|
+
padding: 0 10px;
|
|
1168
|
+
box-sizing: border-box;
|
|
1169
|
+
transition: border-color 0.15s ease;
|
|
1170
|
+
gap: 6px;
|
|
1171
|
+
|
|
1172
|
+
&:hover {
|
|
1173
|
+
border-color: #cbd5e1;
|
|
1174
|
+
}
|
|
1175
|
+
|
|
1176
|
+
&:focus-within {
|
|
1177
|
+
border-color: #2563eb;
|
|
1178
|
+
background: #ffffff;
|
|
1179
|
+
}
|
|
1180
|
+
}
|
|
1181
|
+
|
|
1182
|
+
.full-width-pill {
|
|
1183
|
+
width: 100%;
|
|
1184
|
+
}
|
|
1185
|
+
|
|
1186
|
+
.input-icon {
|
|
1187
|
+
width: 14px;
|
|
1188
|
+
height: 14px;
|
|
1189
|
+
color: #64748b;
|
|
1190
|
+
flex-shrink: 0;
|
|
1191
|
+
}
|
|
1192
|
+
|
|
1193
|
+
.custom-num-field {
|
|
1194
|
+
width: 100%;
|
|
1195
|
+
border: none;
|
|
1196
|
+
background: transparent;
|
|
1197
|
+
outline: none;
|
|
1198
|
+
font-size: 13px;
|
|
1199
|
+
font-weight: 500;
|
|
1200
|
+
color: #1e293b;
|
|
1201
|
+
padding: 0;
|
|
1202
|
+
|
|
1203
|
+
&::-webkit-outer-spin-button,
|
|
1204
|
+
&::-webkit-inner-spin-button {
|
|
1205
|
+
-webkit-appearance: none;
|
|
1206
|
+
margin: 0;
|
|
1207
|
+
}
|
|
1208
|
+
}
|
|
1209
|
+
|
|
1210
|
+
/* List Dropdown Split Button */
|
|
1211
|
+
.list-dropdown-btn {
|
|
1212
|
+
display: flex;
|
|
1213
|
+
align-items: center;
|
|
1214
|
+
height: 32px;
|
|
1215
|
+
background: #FAFAFA;
|
|
1216
|
+
border: 1px solid #edf0f3;
|
|
1217
|
+
border-radius: 8px;
|
|
1218
|
+
padding: 0 6px 0 8px;
|
|
1219
|
+
box-sizing: border-box;
|
|
1220
|
+
color: #64748b;
|
|
1221
|
+
cursor: pointer;
|
|
1222
|
+
transition: all 0.15s ease;
|
|
1223
|
+
user-select: none;
|
|
1224
|
+
flex-shrink: 0;
|
|
1225
|
+
gap: 4px;
|
|
1226
|
+
|
|
1227
|
+
&:hover {
|
|
1228
|
+
background: #f8fafc;
|
|
1229
|
+
border-color: #cbd5e1;
|
|
1230
|
+
color: #1e293b;
|
|
1231
|
+
}
|
|
1232
|
+
|
|
1233
|
+
&.is-active {
|
|
1234
|
+
background: #e0ebff;
|
|
1235
|
+
color: #2563eb;
|
|
1236
|
+
border-color: #bfdbfe;
|
|
1237
|
+
}
|
|
1238
|
+
}
|
|
1239
|
+
|
|
1240
|
+
.list-btn-main {
|
|
1241
|
+
display: flex;
|
|
1242
|
+
align-items: center;
|
|
1243
|
+
justify-content: center;
|
|
1244
|
+
height: 100%;
|
|
1245
|
+
}
|
|
1246
|
+
|
|
1247
|
+
.list-btn-arrow {
|
|
1248
|
+
display: flex;
|
|
1249
|
+
align-items: center;
|
|
1250
|
+
justify-content: center;
|
|
1251
|
+
width: 12px;
|
|
1252
|
+
height: 100%;
|
|
1253
|
+
color: #94a3b8;
|
|
1254
|
+
transition: transform 0.2s ease;
|
|
1255
|
+
|
|
1256
|
+
&.is-open {
|
|
1257
|
+
transform: rotate(180deg);
|
|
1258
|
+
}
|
|
1259
|
+
}
|
|
1260
|
+
|
|
1261
|
+
.list-presets-grid {
|
|
1262
|
+
display: grid;
|
|
1263
|
+
grid-template-columns: repeat(3, 1fr);
|
|
1264
|
+
gap: 8px;
|
|
1265
|
+
padding: 4px;
|
|
1266
|
+
}
|
|
1267
|
+
|
|
1268
|
+
.list-style-card {
|
|
1269
|
+
display: flex;
|
|
1270
|
+
align-items: center;
|
|
1271
|
+
justify-content: center;
|
|
1272
|
+
height: 56px;
|
|
1273
|
+
padding: 4px;
|
|
1274
|
+
cursor: pointer;
|
|
1275
|
+
border-radius: 4px;
|
|
1276
|
+
border: 1px solid #e2e8f0;
|
|
1277
|
+
transition: all 0.15s;
|
|
1278
|
+
|
|
1279
|
+
&:hover {
|
|
1280
|
+
border-color: #2563eb;
|
|
1281
|
+
}
|
|
1282
|
+
|
|
1283
|
+
&.active {
|
|
1284
|
+
border-color: #2563eb;
|
|
1285
|
+
background: #eff6ff;
|
|
1286
|
+
}
|
|
1287
|
+
|
|
1288
|
+
img {
|
|
1289
|
+
max-width: 100%;
|
|
1290
|
+
max-height: 100%;
|
|
1291
|
+
object-fit: contain;
|
|
1292
|
+
pointer-events: none;
|
|
1293
|
+
}
|
|
1294
|
+
}
|
|
1295
|
+
|
|
1296
|
+
/* Button Group Pills */
|
|
1297
|
+
.button-group-pill {
|
|
1298
|
+
display: flex;
|
|
1299
|
+
align-items: center;
|
|
1300
|
+
background: #FAFAFA;
|
|
1301
|
+
border: 1px solid #edf0f3;
|
|
1302
|
+
border-radius: 8px;
|
|
1303
|
+
height: 36px;
|
|
1304
|
+
padding: 2px;
|
|
1305
|
+
gap: 2px;
|
|
1306
|
+
box-sizing: border-box;
|
|
1307
|
+
}
|
|
1308
|
+
|
|
1309
|
+
.vertical-align-group {
|
|
1310
|
+
flex: 1;
|
|
1311
|
+
}
|
|
1312
|
+
|
|
1313
|
+
.pill-action-btn {
|
|
1314
|
+
flex: 1;
|
|
1315
|
+
height: 100%;
|
|
1316
|
+
border: none;
|
|
1317
|
+
background: transparent;
|
|
1318
|
+
border-radius: 6px;
|
|
1319
|
+
cursor: pointer;
|
|
1320
|
+
display: flex;
|
|
1321
|
+
align-items: center;
|
|
1322
|
+
justify-content: center;
|
|
1323
|
+
font-size: 13px;
|
|
1324
|
+
font-weight: 500;
|
|
1325
|
+
color: #64748b;
|
|
1326
|
+
transition: all 0.15s ease;
|
|
1327
|
+
user-select: none;
|
|
1328
|
+
|
|
1329
|
+
&:hover {
|
|
1330
|
+
background: rgba(0, 0, 0, 0.04);
|
|
1331
|
+
color: #1e293b;
|
|
1332
|
+
}
|
|
1333
|
+
|
|
1334
|
+
&.is-active {
|
|
1335
|
+
background: #ffffff;
|
|
1336
|
+
color: #2563eb;
|
|
1337
|
+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
|
|
1338
|
+
}
|
|
1339
|
+
}
|
|
1340
|
+
|
|
1341
|
+
.font-style-letter {
|
|
1342
|
+
span {
|
|
1343
|
+
transition: color 0.15s ease;
|
|
1344
|
+
}
|
|
1345
|
+
}
|
|
1346
|
+
|
|
1347
|
+
.section-divider {
|
|
1348
|
+
height: 1px;
|
|
1349
|
+
background: #edf0f3;
|
|
1350
|
+
margin: 2px 0;
|
|
1351
|
+
}
|
|
1352
|
+
|
|
1353
|
+
/* Full Width Color Card */
|
|
1354
|
+
.full-color-card {
|
|
1355
|
+
display: flex;
|
|
1356
|
+
align-items: center;
|
|
1357
|
+
justify-content: space-between;
|
|
1358
|
+
width: 100%;
|
|
1359
|
+
height: 32px;
|
|
1360
|
+
background: #FAFAFA;
|
|
1361
|
+
border: 1px solid #edf0f3;
|
|
1362
|
+
border-radius: 8px;
|
|
1363
|
+
padding: 0 12px;
|
|
1364
|
+
box-sizing: border-box;
|
|
1365
|
+
cursor: pointer;
|
|
1366
|
+
transition: all 0.15s ease;
|
|
1367
|
+
|
|
1368
|
+
&:hover {
|
|
1369
|
+
background: #f8fafc;
|
|
1370
|
+
border-color: #cbd5e1;
|
|
1371
|
+
}
|
|
1372
|
+
}
|
|
1373
|
+
|
|
1374
|
+
.color-swatch-hex {
|
|
1375
|
+
display: flex;
|
|
1376
|
+
align-items: center;
|
|
1377
|
+
gap: 10px;
|
|
1378
|
+
}
|
|
1379
|
+
|
|
1380
|
+
.color-swatch-box {
|
|
1381
|
+
width: 16px;
|
|
1382
|
+
height: 16px;
|
|
1383
|
+
border-radius: 4px;
|
|
1384
|
+
border: 1px solid rgba(0, 0, 0, 0.08);
|
|
1385
|
+
flex-shrink: 0;
|
|
1386
|
+
}
|
|
1387
|
+
|
|
1388
|
+
.color-hex-text {
|
|
1389
|
+
font-size: 13px;
|
|
1390
|
+
font-weight: 500;
|
|
1391
|
+
font-family: monospace;
|
|
1392
|
+
color: #1e293b;
|
|
1393
|
+
}
|
|
1394
|
+
|
|
1395
|
+
.color-opacity-text {
|
|
1396
|
+
font-size: 13px;
|
|
1397
|
+
font-weight: 500;
|
|
1398
|
+
color: #1e293b;
|
|
1399
|
+
}
|
|
1400
|
+
|
|
1401
|
+
/* Accordion Block */
|
|
1402
|
+
.accordion-item-block {
|
|
1403
|
+
display: flex;
|
|
1404
|
+
flex-direction: column;
|
|
1405
|
+
}
|
|
1406
|
+
|
|
1407
|
+
.accordion-header-row {
|
|
1408
|
+
display: flex;
|
|
1409
|
+
align-items: center;
|
|
1410
|
+
justify-content: space-between;
|
|
1411
|
+
height: 32px;
|
|
1412
|
+
cursor: pointer;
|
|
1413
|
+
user-select: none;
|
|
1414
|
+
}
|
|
1415
|
+
|
|
1416
|
+
.accordion-title-wrap {
|
|
1417
|
+
display: flex;
|
|
1418
|
+
align-items: center;
|
|
1419
|
+
gap: 6px;
|
|
1420
|
+
}
|
|
1421
|
+
|
|
1422
|
+
.accordion-title {
|
|
1423
|
+
font-size: 14px;
|
|
1424
|
+
font-weight: 400;
|
|
1425
|
+
color: #1e293b;
|
|
1426
|
+
}
|
|
1427
|
+
|
|
1428
|
+
.accordion-arrow {
|
|
1429
|
+
font-size: 8px;
|
|
1430
|
+
color: #1e293b;
|
|
1431
|
+
display: inline-block;
|
|
1432
|
+
transition: transform 0.2s ease;
|
|
1433
|
+
transform-origin: center;
|
|
1434
|
+
}
|
|
1435
|
+
|
|
1436
|
+
.accordion-inner-content {
|
|
1437
|
+
display: flex;
|
|
1438
|
+
flex-direction: column;
|
|
1439
|
+
gap: 8px;
|
|
1440
|
+
padding-top: 6px;
|
|
1441
|
+
}
|
|
1442
|
+
|
|
1443
|
+
/* Padding Grid & Lock */
|
|
1444
|
+
.padding-control-container {
|
|
1445
|
+
display: flex;
|
|
1446
|
+
gap: 8px;
|
|
1447
|
+
align-items: flex-end;
|
|
1448
|
+
}
|
|
1449
|
+
|
|
1450
|
+
.padding-inputs-grid {
|
|
1451
|
+
display: grid;
|
|
1452
|
+
grid-template-columns: 1fr 1fr;
|
|
1453
|
+
gap: 8px;
|
|
1454
|
+
flex: 1;
|
|
1455
|
+
}
|
|
1456
|
+
|
|
1457
|
+
.padding-lock-btn {
|
|
1458
|
+
width: 32px;
|
|
1459
|
+
height: 32px;
|
|
1460
|
+
background: #FAFAFA;
|
|
1461
|
+
border: 1px solid #edf0f3;
|
|
1462
|
+
border-radius: 8px;
|
|
1463
|
+
display: flex;
|
|
1464
|
+
align-items: center;
|
|
1465
|
+
justify-content: center;
|
|
1466
|
+
cursor: pointer;
|
|
1467
|
+
flex-shrink: 0;
|
|
1468
|
+
transition: all 0.15s ease;
|
|
1469
|
+
color: #64748b;
|
|
1470
|
+
|
|
1471
|
+
&:not(.is-locked):hover {
|
|
1472
|
+
background: rgba(30, 111, 255, 0.12);
|
|
1473
|
+
border-color: rgba(30, 111, 255, 0.4);
|
|
1474
|
+
color: #1E6FFF;
|
|
1475
|
+
}
|
|
1476
|
+
|
|
1477
|
+
&.is-locked,
|
|
1478
|
+
&.is-locked:hover {
|
|
1479
|
+
background: #1E6FFF !important;
|
|
1480
|
+
border-color: #1E6FFF !important;
|
|
1481
|
+
color: #ffffff !important;
|
|
1482
|
+
}
|
|
1483
|
+
}
|
|
1484
|
+
|
|
1485
|
+
/* Slider rows for Shadow & Reflection */
|
|
1486
|
+
.shape-property-row {
|
|
1487
|
+
display: flex;
|
|
1488
|
+
align-items: center;
|
|
1489
|
+
justify-content: space-between;
|
|
1490
|
+
height: 32px;
|
|
1491
|
+
gap: 8px;
|
|
1492
|
+
}
|
|
1493
|
+
|
|
1494
|
+
.slider-prop-label {
|
|
1495
|
+
font-size: 12px;
|
|
1496
|
+
color: #64748b;
|
|
1497
|
+
width: 60px;
|
|
1498
|
+
flex-shrink: 0;
|
|
1499
|
+
text-align: left;
|
|
1500
|
+
}
|
|
1501
|
+
|
|
1502
|
+
.shape-slider-wrapper {
|
|
1503
|
+
display: flex;
|
|
1504
|
+
align-items: center;
|
|
1505
|
+
gap: 10px;
|
|
1506
|
+
flex: 1;
|
|
1507
|
+
}
|
|
1508
|
+
|
|
1509
|
+
:deep(.custom-slider) {
|
|
1510
|
+
--el-slider-main-bg-color: #334155 !important;
|
|
1511
|
+
--el-slider-runway-bg-color: #e2e8f0 !important;
|
|
1512
|
+
--el-slider-height: 4px !important;
|
|
1513
|
+
--el-slider-button-size: 14px !important;
|
|
1514
|
+
|
|
1515
|
+
.el-slider__button {
|
|
1516
|
+
border: 1px solid #d1d5db !important;
|
|
1517
|
+
background-color: #ffffff !important;
|
|
1518
|
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12) !important;
|
|
1519
|
+
}
|
|
1520
|
+
|
|
1521
|
+
.el-input-number {
|
|
1522
|
+
width: 48px;
|
|
1523
|
+
height: 30px;
|
|
1524
|
+
|
|
1525
|
+
.el-input__wrapper {
|
|
1526
|
+
padding: 0 4px;
|
|
1527
|
+
background: #FAFAFA !important;
|
|
1528
|
+
border: 1px solid #edf0f3 !important;
|
|
1529
|
+
border-radius: 8px !important;
|
|
1530
|
+
box-shadow: none !important;
|
|
1531
|
+
}
|
|
1532
|
+
|
|
1533
|
+
.el-input__inner {
|
|
1534
|
+
text-align: center;
|
|
1535
|
+
font-size: 12px;
|
|
1536
|
+
color: #1e293b;
|
|
1537
|
+
}
|
|
1538
|
+
}
|
|
1539
|
+
}
|
|
1540
|
+
|
|
1541
|
+
.angle-icon {
|
|
1542
|
+
position: absolute;
|
|
1543
|
+
top: 50%;
|
|
1544
|
+
transform: translateY(calc(-50% - 2px));
|
|
1545
|
+
pointer-events: none;
|
|
1546
|
+
font-size: 12px;
|
|
1547
|
+
color: #64748b;
|
|
1548
|
+
margin-left: 2px;
|
|
1549
|
+
}
|
|
1550
|
+
|
|
1551
|
+
.angle-dial {
|
|
1552
|
+
width: 32px;
|
|
1553
|
+
height: 32px;
|
|
1554
|
+
border: 1px solid #edf0f3;
|
|
1555
|
+
border-radius: 50%;
|
|
1556
|
+
display: flex;
|
|
1557
|
+
align-items: center;
|
|
1558
|
+
justify-content: center;
|
|
1559
|
+
cursor: pointer;
|
|
1560
|
+
position: relative;
|
|
1561
|
+
background: #ffffff;
|
|
1562
|
+
flex-shrink: 0;
|
|
1563
|
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
|
|
1564
|
+
user-select: none;
|
|
1565
|
+
}
|
|
1566
|
+
|
|
1567
|
+
.dial-needle {
|
|
1568
|
+
width: 100%;
|
|
1569
|
+
height: 2px;
|
|
1570
|
+
position: absolute;
|
|
1571
|
+
transform-origin: center;
|
|
1572
|
+
display: flex;
|
|
1573
|
+
justify-content: flex-end;
|
|
1574
|
+
align-items: center;
|
|
1575
|
+
}
|
|
1576
|
+
|
|
1577
|
+
.dial-needle-tip {
|
|
1578
|
+
width: 16px;
|
|
1579
|
+
height: 2px;
|
|
1580
|
+
background: #6F7588;
|
|
1581
|
+
}
|
|
1582
|
+
|
|
1583
|
+
.dial-center-dot {
|
|
1584
|
+
position: absolute;
|
|
1585
|
+
width: 4px;
|
|
1586
|
+
height: 4px;
|
|
1587
|
+
background-color: #6F7588;
|
|
1588
|
+
border-radius: 50%;
|
|
1589
|
+
top: 50%;
|
|
1590
|
+
left: 50%;
|
|
1591
|
+
transform: translate(-50%, -50%);
|
|
1592
|
+
pointer-events: none;
|
|
1593
|
+
}
|
|
1594
|
+
|
|
1595
|
+
:deep(.custom-select) {
|
|
1596
|
+
.el-select__wrapper {
|
|
1597
|
+
background-color: #FAFAFA !important;
|
|
1598
|
+
border: 1px solid #edf0f3 !important;
|
|
1599
|
+
box-shadow: none !important;
|
|
1600
|
+
height: 32px !important;
|
|
1601
|
+
min-height: 32px !important;
|
|
1602
|
+
max-height: 32px !important;
|
|
1603
|
+
line-height: 30px !important;
|
|
1604
|
+
padding: 0 10px !important;
|
|
1605
|
+
border-radius: 8px !important;
|
|
1606
|
+
transition: all 0.15s ease;
|
|
1607
|
+
|
|
1608
|
+
&:hover {
|
|
1609
|
+
border-color: #cbd5e1 !important;
|
|
1610
|
+
}
|
|
1611
|
+
|
|
1612
|
+
&.is-focused {
|
|
1613
|
+
border-color: #2563eb !important;
|
|
1614
|
+
background-color: #ffffff !important;
|
|
1615
|
+
}
|
|
1616
|
+
}
|
|
1617
|
+
|
|
1618
|
+
/* Selected item text color: crisp dark #1e293b */
|
|
1619
|
+
.el-select__selected-item,
|
|
1620
|
+
.el-select__placeholder,
|
|
1621
|
+
.el-select__selected-item span,
|
|
1622
|
+
.el-select__placeholder span,
|
|
1623
|
+
.el-select__selection span,
|
|
1624
|
+
.el-input__inner,
|
|
1625
|
+
.el-select__input {
|
|
1626
|
+
font-size: 13px !important;
|
|
1627
|
+
font-weight: 500 !important;
|
|
1628
|
+
color: #1e293b !important;
|
|
1629
|
+
-webkit-text-fill-color: #1e293b !important;
|
|
1630
|
+
}
|
|
1631
|
+
|
|
1632
|
+
/* Only when truly empty placeholder */
|
|
1633
|
+
.el-select__placeholder.is-placeholder,
|
|
1634
|
+
.el-select__wrapper.is-empty .el-select__placeholder,
|
|
1635
|
+
.el-select__wrapper.is-empty .el-select__placeholder span {
|
|
1636
|
+
font-size: 13px !important;
|
|
1637
|
+
font-weight: 400 !important;
|
|
1638
|
+
color: #94a3b8 !important;
|
|
1639
|
+
-webkit-text-fill-color: #94a3b8 !important;
|
|
1640
|
+
}
|
|
1641
|
+
|
|
1642
|
+
/* Suffix icon */
|
|
1643
|
+
.el-select__caret,
|
|
1644
|
+
.el-select__suffix .el-icon {
|
|
1645
|
+
color: #94a3b8 !important;
|
|
1646
|
+
font-size: 10px !important;
|
|
1647
|
+
transition: transform 0.2s ease !important;
|
|
1648
|
+
}
|
|
1649
|
+
|
|
1650
|
+
.el-select__wrapper.is-focused .el-select__caret,
|
|
1651
|
+
.el-select__wrapper.is-focused .el-select__suffix .el-icon {
|
|
1652
|
+
transform: rotate(180deg) !important;
|
|
1653
|
+
}
|
|
1654
|
+
}
|
|
1655
|
+
|
|
1656
|
+
:deep(.el-switch__core) {
|
|
1657
|
+
border-radius: 12px !important;
|
|
1658
|
+
}
|
|
1659
|
+
|
|
1660
|
+
:deep(.color-span-box) {
|
|
1661
|
+
width: 100%;
|
|
1662
|
+
}
|
|
1663
|
+
|
|
1664
|
+
/* Custom Select Trigger for AutoFit */
|
|
1665
|
+
.custom-select-trigger {
|
|
1666
|
+
display: flex;
|
|
1667
|
+
align-items: center;
|
|
1668
|
+
justify-content: space-between;
|
|
1669
|
+
width: 100%;
|
|
1670
|
+
height: 36px;
|
|
1671
|
+
background-color: #FAFAFA;
|
|
1672
|
+
border: 1px solid #edf0f3;
|
|
1673
|
+
border-radius: 8px;
|
|
1674
|
+
padding: 0 10px;
|
|
1675
|
+
box-sizing: border-box;
|
|
1676
|
+
cursor: pointer;
|
|
1677
|
+
transition: all 0.15s ease;
|
|
1678
|
+
user-select: none;
|
|
1679
|
+
|
|
1680
|
+
&:hover {
|
|
1681
|
+
border-color: #cbd5e1;
|
|
1682
|
+
}
|
|
1683
|
+
|
|
1684
|
+
&.is-active {
|
|
1685
|
+
border-color: #2563eb;
|
|
1686
|
+
background-color: #ffffff;
|
|
1687
|
+
}
|
|
1688
|
+
}
|
|
1689
|
+
|
|
1690
|
+
.select-trigger-text {
|
|
1691
|
+
font-size: 13px;
|
|
1692
|
+
font-weight: 500;
|
|
1693
|
+
color: #1e293b;
|
|
1694
|
+
}
|
|
1695
|
+
|
|
1696
|
+
.select-trigger-arrow {
|
|
1697
|
+
color: #94a3b8;
|
|
1698
|
+
transition: transform 0.2s ease;
|
|
1699
|
+
|
|
1700
|
+
&.is-open {
|
|
1701
|
+
transform: rotate(180deg);
|
|
1702
|
+
}
|
|
1703
|
+
}
|
|
1704
|
+
|
|
1705
|
+
.font-size-trigger {
|
|
1706
|
+
cursor: text;
|
|
1707
|
+
}
|
|
1708
|
+
|
|
1709
|
+
.custom-select-input {
|
|
1710
|
+
width: 100%;
|
|
1711
|
+
border: none;
|
|
1712
|
+
background: transparent;
|
|
1713
|
+
outline: none;
|
|
1714
|
+
font-size: 13px;
|
|
1715
|
+
font-weight: 500;
|
|
1716
|
+
color: #1e293b;
|
|
1717
|
+
padding: 0;
|
|
1718
|
+
}
|
|
1719
|
+
|
|
1720
|
+
.font-size-menu-container {
|
|
1721
|
+
display: flex;
|
|
1722
|
+
flex-direction: column;
|
|
1723
|
+
gap: 2px;
|
|
1724
|
+
padding-right: 2px;
|
|
1725
|
+
}
|
|
1726
|
+
|
|
1727
|
+
.font-size-item {
|
|
1728
|
+
height: 32px !important;
|
|
1729
|
+
padding: 0 10px !important;
|
|
1730
|
+
}
|
|
1731
|
+
|
|
1732
|
+
.autofit-menu-container {
|
|
1733
|
+
display: flex;
|
|
1734
|
+
flex-direction: column;
|
|
1735
|
+
gap: 2px;
|
|
1736
|
+
}
|
|
1737
|
+
|
|
1738
|
+
.autofit-menu-item {
|
|
1739
|
+
display: flex;
|
|
1740
|
+
align-items: center;
|
|
1741
|
+
justify-content: space-between;
|
|
1742
|
+
height: 34px;
|
|
1743
|
+
min-height: 34px;
|
|
1744
|
+
line-height: 34px;
|
|
1745
|
+
flex-shrink: 0;
|
|
1746
|
+
box-sizing: border-box;
|
|
1747
|
+
padding: 0 10px;
|
|
1748
|
+
border-radius: 6px;
|
|
1749
|
+
cursor: pointer;
|
|
1750
|
+
transition: all 0.15s ease;
|
|
1751
|
+
user-select: none;
|
|
1752
|
+
|
|
1753
|
+
&:hover {
|
|
1754
|
+
background-color: #f8fafc;
|
|
1755
|
+
}
|
|
1756
|
+
|
|
1757
|
+
&.is-selected {
|
|
1758
|
+
background-color: #eef2ff;
|
|
1759
|
+
|
|
1760
|
+
.autofit-item-label {
|
|
1761
|
+
color: #2563eb;
|
|
1762
|
+
font-weight: 500;
|
|
1763
|
+
}
|
|
1764
|
+
}
|
|
1765
|
+
}
|
|
1766
|
+
|
|
1767
|
+
.autofit-item-label {
|
|
1768
|
+
font-size: 13px;
|
|
1769
|
+
color: #1e293b;
|
|
1770
|
+
transition: color 0.15s ease;
|
|
1771
|
+
}
|
|
1772
|
+
|
|
1773
|
+
.autofit-check-icon {
|
|
1774
|
+
color: #2563eb;
|
|
1775
|
+
flex-shrink: 0;
|
|
1776
|
+
}
|
|
1777
|
+
|
|
1778
|
+
.autofit-divider {
|
|
1779
|
+
height: 1px;
|
|
1780
|
+
background-color: #edf0f3;
|
|
1781
|
+
margin: 4px 0;
|
|
1782
|
+
}
|
|
1783
|
+
|
|
1784
|
+
.autofit-wrap-row {
|
|
1785
|
+
display: flex;
|
|
1786
|
+
align-items: center;
|
|
1787
|
+
justify-content: space-between;
|
|
1788
|
+
height: 36px;
|
|
1789
|
+
padding: 0 10px;
|
|
1790
|
+
user-select: none;
|
|
1791
|
+
}
|
|
1792
|
+
|
|
1793
|
+
.autofit-wrap-label {
|
|
1794
|
+
font-size: 13px;
|
|
1795
|
+
color: #1e293b;
|
|
1796
|
+
}
|
|
1797
|
+
</style>
|
|
1798
|
+
|
|
1799
|
+
<style lang="scss">
|
|
1800
|
+
.autofit-popover-panel,
|
|
1801
|
+
.font-size-popover {
|
|
1802
|
+
min-width: 0 !important;
|
|
1803
|
+
padding: 6px !important;
|
|
1804
|
+
border-radius: 10px !important;
|
|
1805
|
+
border: 1px solid #edf0f3 !important;
|
|
1806
|
+
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1) !important;
|
|
1807
|
+
background: #ffffff !important;
|
|
1808
|
+
z-index: 9999 !important;
|
|
1809
|
+
|
|
1810
|
+
.el-popper__arrow {
|
|
1811
|
+
display: none !important;
|
|
1812
|
+
}
|
|
1813
|
+
}
|
|
1814
|
+
|
|
1815
|
+
.font-size-popover {
|
|
1816
|
+
min-width: 0 !important;
|
|
1817
|
+
box-sizing: border-box !important;
|
|
1818
|
+
padding: 6px 4px 6px 6px !important;
|
|
1819
|
+
background: #ffffff !important;
|
|
1820
|
+
|
|
1821
|
+
.el-scrollbar {
|
|
1822
|
+
padding-right: 0 !important;
|
|
1823
|
+
}
|
|
1824
|
+
|
|
1825
|
+
.el-scrollbar__bar.is-vertical {
|
|
1826
|
+
width: 4px !important;
|
|
1827
|
+
right: 1px !important;
|
|
1828
|
+
}
|
|
1829
|
+
|
|
1830
|
+
.el-scrollbar__thumb {
|
|
1831
|
+
background-color: #cbd5e1 !important;
|
|
1832
|
+
border-radius: 4px !important;
|
|
1833
|
+
|
|
1834
|
+
&:hover {
|
|
1835
|
+
background-color: #94a3b8 !important;
|
|
1836
|
+
}
|
|
1837
|
+
}
|
|
1838
|
+
}
|
|
1839
|
+
|
|
1840
|
+
.el-popper.sidebar-select-popper {
|
|
1841
|
+
min-width: 0 !important;
|
|
1842
|
+
padding: 0 !important;
|
|
1843
|
+
border-radius: 10px !important;
|
|
1844
|
+
border: 1px solid #edf0f3 !important;
|
|
1845
|
+
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1) !important;
|
|
1846
|
+
background: #ffffff !important;
|
|
1847
|
+
overflow: hidden !important;
|
|
1848
|
+
z-index: 9999 !important;
|
|
1849
|
+
|
|
1850
|
+
.el-popper__arrow {
|
|
1851
|
+
display: none !important;
|
|
1852
|
+
}
|
|
1853
|
+
|
|
1854
|
+
.el-select-dropdown {
|
|
1855
|
+
padding: 6px !important;
|
|
1856
|
+
margin: 0 !important;
|
|
1857
|
+
border: none !important;
|
|
1858
|
+
box-shadow: none !important;
|
|
1859
|
+
border-radius: 0 !important;
|
|
1860
|
+
background: transparent !important;
|
|
1861
|
+
box-sizing: border-box !important;
|
|
1862
|
+
}
|
|
1863
|
+
|
|
1864
|
+
.el-select-dropdown__wrap {
|
|
1865
|
+
max-height: 274px !important;
|
|
1866
|
+
}
|
|
1867
|
+
|
|
1868
|
+
.el-scrollbar__bar.is-vertical {
|
|
1869
|
+
width: 4px !important;
|
|
1870
|
+
right: 2px !important;
|
|
1871
|
+
|
|
1872
|
+
.el-scrollbar__thumb {
|
|
1873
|
+
background-color: #cbd5e1 !important;
|
|
1874
|
+
border-radius: 2px !important;
|
|
1875
|
+
}
|
|
1876
|
+
}
|
|
1877
|
+
|
|
1878
|
+
.el-select-dropdown__list {
|
|
1879
|
+
padding: 0 !important;
|
|
1880
|
+
margin: 0 !important;
|
|
1881
|
+
display: flex !important;
|
|
1882
|
+
flex-direction: column !important;
|
|
1883
|
+
gap: 2px !important;
|
|
1884
|
+
}
|
|
1885
|
+
|
|
1886
|
+
.el-select-dropdown__item {
|
|
1887
|
+
height: 34px !important;
|
|
1888
|
+
min-height: 34px !important;
|
|
1889
|
+
line-height: 34px !important;
|
|
1890
|
+
flex-shrink: 0 !important;
|
|
1891
|
+
box-sizing: border-box !important;
|
|
1892
|
+
padding: 0 10px !important;
|
|
1893
|
+
border-radius: 6px !important;
|
|
1894
|
+
font-size: 13px !important;
|
|
1895
|
+
color: #1e293b !important;
|
|
1896
|
+
display: flex !important;
|
|
1897
|
+
align-items: center !important;
|
|
1898
|
+
justify-content: space-between !important;
|
|
1899
|
+
transition: all 0.15s ease !important;
|
|
1900
|
+
user-select: none !important;
|
|
1901
|
+
|
|
1902
|
+
&:hover,
|
|
1903
|
+
&.hover,
|
|
1904
|
+
&.is-hovering {
|
|
1905
|
+
background-color: #f8fafc !important;
|
|
1906
|
+
color: #1e293b !important;
|
|
1907
|
+
}
|
|
1908
|
+
|
|
1909
|
+
&.is-selected {
|
|
1910
|
+
background-color: #eef2ff !important;
|
|
1911
|
+
color: #2563eb !important;
|
|
1912
|
+
font-weight: 500 !important;
|
|
1913
|
+
|
|
1914
|
+
&::after {
|
|
1915
|
+
content: '';
|
|
1916
|
+
display: inline-block;
|
|
1917
|
+
width: 15px;
|
|
1918
|
+
height: 15px;
|
|
1919
|
+
flex-shrink: 0;
|
|
1920
|
+
margin-left: 8px;
|
|
1921
|
+
background-color: #2563eb;
|
|
1922
|
+
-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center / contain;
|
|
1923
|
+
mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center / contain;
|
|
1924
|
+
}
|
|
1925
|
+
}
|
|
1926
|
+
}
|
|
1927
|
+
}
|
|
1928
|
+
|
|
1929
|
+
.el-select-dropdown.sidebar-select-popper {
|
|
1930
|
+
border: none !important;
|
|
1931
|
+
box-shadow: none !important;
|
|
1932
|
+
border-radius: 0 !important;
|
|
1933
|
+
background: transparent !important;
|
|
1934
|
+
padding: 6px !important;
|
|
1935
|
+
margin: 0 !important;
|
|
1936
|
+
box-sizing: border-box !important;
|
|
1937
|
+
}
|
|
1938
|
+
</style>
|