jvs-ppt-ui 0.0.22 → 0.0.24

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.
Files changed (39) hide show
  1. package/dist/lib/jvs-ppt-ui/iconfont/iconfont.css +260 -260
  2. package/dist/lib/jvs-ppt-ui/iconfont/iconfont.js +1 -1
  3. package/dist/lib/jvs-ppt-ui/iconfont/iconfont.json +1 -1
  4. package/dist/lib/jvs-ppt-ui/iconfont/iconfont.ttf +0 -0
  5. package/dist/lib/jvs-ppt-ui/iconfont/iconfont.woff +0 -0
  6. package/dist/lib/jvs-ppt-ui/iconfont/iconfont.woff2 +0 -0
  7. package/dist/lib/jvs-ppt-ui.es.js +14195 -14181
  8. package/dist/lib/jvs-ppt-ui.umd.js +98 -98
  9. package/dist/lib/style.css +1 -1
  10. package/package.json +2 -2
  11. package/src/assets/iconfont/iconfont.css +260 -260
  12. package/src/assets/iconfont/iconfont.js +1 -1
  13. package/src/assets/iconfont/iconfont.json +1 -1
  14. package/src/assets/iconfont/iconfont.ttf +0 -0
  15. package/src/assets/iconfont/iconfont.woff +0 -0
  16. package/src/assets/iconfont/iconfont.woff2 +0 -0
  17. package/src/components/CanvasArea.vue +1 -0
  18. package/src/components/Header.vue +2 -2
  19. package/src/components/LayerButtons.vue +4 -4
  20. package/src/components/PptEditor.vue +9 -1
  21. package/src/components/QuickBorderPopover.vue +2 -2
  22. package/src/components/QuickColorPopover.vue +2 -2
  23. package/src/components/TemplateGallery.vue +10 -3
  24. package/src/components/Toolbar.vue +56 -56
  25. package/src/components/canvas/CanvasQuickToolbar.vue +33 -33
  26. package/src/components/material/CreateMaterialPanel.vue +1 -1
  27. package/src/components/material/MyAssetsPanel.vue +1 -1
  28. package/src/components/sidebar/common/SidebarBorderAccordion.vue +2 -2
  29. package/src/components/sidebar/common/SidebarPositionGroup.vue +6 -6
  30. package/src/components/sidebar/common/SidebarReflectionAccordion.vue +2 -2
  31. package/src/components/sidebar/common/SidebarShadowAccordion.vue +2 -2
  32. package/src/components/sidebar/panels/SidebarAnimationPanel.vue +30 -30
  33. package/src/components/sidebar/panels/SidebarChartFormatPanel.vue +12 -12
  34. package/src/components/sidebar/panels/SidebarImageFormatPanel.vue +4 -4
  35. package/src/components/sidebar/panels/SidebarMultiSelectPanel.vue +2 -2
  36. package/src/components/sidebar/panels/SidebarShapeFormatPanel.vue +4 -4
  37. package/src/components/sidebar/panels/SidebarTableFormatPanel.vue +2 -2
  38. package/src/components/sidebar/panels/SidebarTextFormatPanel.vue +17 -17
  39. package/src/components/sidebar/panels/SidebarTransitionPanel.vue +13 -13
@@ -514,7 +514,7 @@ function startDragAngle(e: MouseEvent) {
514
514
  <div class="control-row-duo">
515
515
  <div class="custom-num-pill" style="flex: 1;">
516
516
  <svg class="icon input-icon">
517
- <use xlink:href="#icon-hanggao"></use>
517
+ <use xlink:href="#icon-ppt-hanggao"></use>
518
518
  </svg>
519
519
  <input type="number" :value="lineHeightNumber"
520
520
  @input="emit('update:lineHeightNumber', Number(($event.target as HTMLInputElement).value))"
@@ -522,7 +522,7 @@ function startDragAngle(e: MouseEvent) {
522
522
  </div>
523
523
  <div class="custom-num-pill" style="flex: 1;">
524
524
  <svg class="icon input-icon">
525
- <use xlink:href="#icon-zijianju"></use>
525
+ <use xlink:href="#icon-ppt-zijianju"></use>
526
526
  </svg>
527
527
  <input type="number" :value="letterSpacingNumber"
528
528
  @input="emit('update:letterSpacingNumber', Number(($event.target as HTMLInputElement).value))"
@@ -536,7 +536,7 @@ function startDragAngle(e: MouseEvent) {
536
536
  <div class="list-dropdown-btn" :class="{ 'is-active': hasUnorderedList }">
537
537
  <div class="list-btn-main" @click="emit('toggleListStyle', 'ul', 'disc')" @mousedown.prevent title="无序列表">
538
538
  <svg class="icon" style="width: 14px; height: 14px; fill: currentColor;">
539
- <use xlink:href="#icon-wuxuliebiao"></use>
539
+ <use xlink:href="#icon-ppt-wuxuliebiao"></use>
540
540
  </svg>
541
541
  </div>
542
542
  <el-popover placement="bottom" :width="250" trigger="click" popper-class="list-popover-panel"
@@ -589,7 +589,7 @@ function startDragAngle(e: MouseEvent) {
589
589
  <div class="list-dropdown-btn" :class="{ 'is-active': hasOrderedList }">
590
590
  <div class="list-btn-main" @click="emit('toggleListStyle', 'ol', 'decimal')" @mousedown.prevent title="有序列表">
591
591
  <svg class="icon" style="width: 14px; height: 14px; fill: currentColor;">
592
- <use xlink:href="#icon-youxuliebiao"></use>
592
+ <use xlink:href="#icon-ppt-youxuliebiao"></use>
593
593
  </svg>
594
594
  </div>
595
595
  <el-popover placement="bottom" :width="250" trigger="click" popper-class="list-popover-panel"
@@ -643,7 +643,7 @@ function startDragAngle(e: MouseEvent) {
643
643
  <div class="pill-action-btn" :class="{ 'is-active': styleVerticalAlign === 'top' }" title="顶对齐"
644
644
  @click="emit('update:styleVerticalAlign', 'top')">
645
645
  <svg class="icon" style="width: 15px; height: 15px; fill: currentColor;">
646
- <use :xlink:href="styleVerticalAlign === 'top' ? '#icon-dingduiqi-xuanzhong' : '#icon-dingduiqi1'"></use>
646
+ <use :xlink:href="styleVerticalAlign === 'top' ? '#icon-ppt-dingduiqi-xuanzhong' : '#icon-ppt-dingduiqi1'"></use>
647
647
  </svg>
648
648
  </div>
649
649
  <div class="pill-action-btn"
@@ -651,14 +651,14 @@ function startDragAngle(e: MouseEvent) {
651
651
  @click="emit('update:styleVerticalAlign', 'middle')">
652
652
  <svg class="icon" style="width: 15px; height: 15px; fill: currentColor;">
653
653
  <use
654
- :xlink:href="(styleVerticalAlign === 'middle' || !styleVerticalAlign) ? '#icon-chuizhiduiqi-xuanzhong' : '#icon-chuizhiduiqi'">
654
+ :xlink:href="(styleVerticalAlign === 'middle' || !styleVerticalAlign) ? '#icon-ppt-chuizhiduiqi-xuanzhong' : '#icon-ppt-chuizhiduiqi'">
655
655
  </use>
656
656
  </svg>
657
657
  </div>
658
658
  <div class="pill-action-btn" :class="{ 'is-active': styleVerticalAlign === 'bottom' }" title="底对齐"
659
659
  @click="emit('update:styleVerticalAlign', 'bottom')">
660
660
  <svg class="icon" style="width: 15px; height: 15px; fill: currentColor;">
661
- <use :xlink:href="styleVerticalAlign === 'bottom' ? '#icon-diduiqi1-copy' : '#icon-diduiqi1'"></use>
661
+ <use :xlink:href="styleVerticalAlign === 'bottom' ? '#icon-ppt-diduiqi1-copy' : '#icon-ppt-diduiqi1'"></use>
662
662
  </svg>
663
663
  </div>
664
664
  </div>
@@ -682,7 +682,7 @@ function startDragAngle(e: MouseEvent) {
682
682
  <div class="pill-action-btn" :class="{ 'is-active': isStrikethroughActive }" title="删除线"
683
683
  @click="emit('toggleStrikethrough')">
684
684
  <svg class="icon" style="width: 15px; height: 15px; fill: currentColor;">
685
- <use :xlink:href="isStrikethroughActive ? '#icon-shanchuxian-xuanzhong' : '#icon-shanchuxian'"></use>
685
+ <use :xlink:href="isStrikethroughActive ? '#icon-ppt-shanchuxian-xuanzhong' : '#icon-ppt-shanchuxian'"></use>
686
686
  </svg>
687
687
  </div>
688
688
  </div>
@@ -692,34 +692,34 @@ function startDragAngle(e: MouseEvent) {
692
692
  <div class="pill-action-btn" :class="{ 'is-active': currentTextAlign === 'left' }" title="左对齐"
693
693
  @click="emit('update:styleTextAlign', 'left')">
694
694
  <svg class="icon" style="width: 15px; height: 15px; fill: currentColor;">
695
- <use :xlink:href="currentTextAlign === 'left' ? '#icon-zuoduiqi-xuanzhong' : '#icon-zuoduiqi1'"></use>
695
+ <use :xlink:href="currentTextAlign === 'left' ? '#icon-ppt-zuoduiqi-xuanzhong' : '#icon-ppt-zuoduiqi1'"></use>
696
696
  </svg>
697
697
  </div>
698
698
  <div class="pill-action-btn" :class="{ 'is-active': (currentTextAlign === 'center' || !currentTextAlign) }"
699
699
  title="居中对齐" @click="emit('update:styleTextAlign', 'center')">
700
700
  <svg class="icon" style="width: 15px; height: 15px; fill: currentColor;">
701
701
  <use
702
- :xlink:href="(currentTextAlign === 'center' || !currentTextAlign) ? '#icon-juzhongduiqi-xuanzhong' : '#icon-juzhongduiqi'">
702
+ :xlink:href="(currentTextAlign === 'center' || !currentTextAlign) ? '#icon-ppt-juzhongduiqi-xuanzhong' : '#icon-ppt-juzhongduiqi'">
703
703
  </use>
704
704
  </svg>
705
705
  </div>
706
706
  <div class="pill-action-btn" :class="{ 'is-active': currentTextAlign === 'right' }" title="右对齐"
707
707
  @click="emit('update:styleTextAlign', 'right')">
708
708
  <svg class="icon" style="width: 15px; height: 15px; fill: currentColor;">
709
- <use :xlink:href="currentTextAlign === 'right' ? '#icon-youduiqi3-copy-copy' : '#icon-youduiqi3-copy'">
709
+ <use :xlink:href="currentTextAlign === 'right' ? '#icon-ppt-youduiqi3-copy-copy' : '#icon-ppt-youduiqi3-copy'">
710
710
  </use>
711
711
  </svg>
712
712
  </div>
713
713
  <div class="pill-action-btn" :class="{ 'is-active': currentTextAlign === 'justify' }" title="两端对齐"
714
714
  @click="emit('update:styleTextAlign', 'justify')">
715
715
  <svg class="icon" style="width: 15px; height: 15px; fill: currentColor;">
716
- <use xlink:href="#icon-liangduanduiqi"></use>
716
+ <use xlink:href="#icon-ppt-liangduanduiqi"></use>
717
717
  </svg>
718
718
  </div>
719
719
  <div class="pill-action-btn" :class="{ 'is-active': currentTextAlign === 'distribute' }" title="分散对齐"
720
720
  @click="emit('update:styleTextAlign', 'distribute')">
721
721
  <svg class="icon" style="width: 15px; height: 15px; fill: currentColor;">
722
- <use xlink:href="#icon-fensanduiqi"></use>
722
+ <use xlink:href="#icon-ppt-fensanduiqi"></use>
723
723
  </svg>
724
724
  </div>
725
725
  </div>
@@ -827,7 +827,7 @@ function startDragAngle(e: MouseEvent) {
827
827
  <!-- Left (Top-Left) -->
828
828
  <div class="custom-num-pill">
829
829
  <svg class="icon input-icon">
830
- <use xlink:href="#icon-zuobianju"></use>
830
+ <use xlink:href="#icon-ppt-zuobianju"></use>
831
831
  </svg>
832
832
  <input type="number" :value="paddingLeft"
833
833
  @input="emit('update:paddingLeft', Number(($event.target as HTMLInputElement).value))"
@@ -837,7 +837,7 @@ function startDragAngle(e: MouseEvent) {
837
837
  <!-- Right (Top-Right) -->
838
838
  <div class="custom-num-pill">
839
839
  <svg class="icon input-icon">
840
- <use xlink:href="#icon-youbianju"></use>
840
+ <use xlink:href="#icon-ppt-youbianju"></use>
841
841
  </svg>
842
842
  <input type="number" :value="paddingRight"
843
843
  @input="emit('update:paddingRight', Number(($event.target as HTMLInputElement).value))"
@@ -847,7 +847,7 @@ function startDragAngle(e: MouseEvent) {
847
847
  <!-- Top (Bottom-Left) -->
848
848
  <div class="custom-num-pill">
849
849
  <svg class="icon input-icon">
850
- <use xlink:href="#icon-shangbianju"></use>
850
+ <use xlink:href="#icon-ppt-shangbianju"></use>
851
851
  </svg>
852
852
  <input type="number" :value="paddingTop"
853
853
  @input="emit('update:paddingTop', Number(($event.target as HTMLInputElement).value))"
@@ -857,7 +857,7 @@ function startDragAngle(e: MouseEvent) {
857
857
  <!-- Bottom (Bottom-Right) -->
858
858
  <div class="custom-num-pill">
859
859
  <svg class="icon input-icon">
860
- <use xlink:href="#icon-xiabianju"></use>
860
+ <use xlink:href="#icon-ppt-xiabianju"></use>
861
861
  </svg>
862
862
  <input type="number" :value="paddingBottom"
863
863
  @input="emit('update:paddingBottom', Number(($event.target as HTMLInputElement).value))"
@@ -270,23 +270,23 @@ function selectTransition(val: string) {
270
270
  }
271
271
 
272
272
  const transitionIcons: Record<string, { default: string; selected: string }> = {
273
- 'none': { default: 'icon-wudonghua', selected: 'icon-wudonghua-xuanzhong' },
274
- 'random': { default: 'icon-suiji', selected: 'icon-suiji-xuanzhong' },
275
- 'push-left-right': { default: 'icon-zuoyoutuiyi', selected: 'icon-zuoyoutuiyi-xuanzhong' },
276
- 'push-up-down': { default: 'icon-shangxiatuiyi', selected: 'icon-shangxiatuiyi-xuanzhong' },
277
- 'push-left-right-3d': { default: 'icon-a-zuoyoutuiyi3D', selected: 'icon-a-zuoyoutuiyi3D-xuanzhong' },
278
- 'push-up-down-3d': { default: 'icon-a-shangxiatuiyi3D', selected: 'icon-a-shangxiatuiyi3D-xuanzhong' },
279
- 'fade': { default: 'icon-danrudanchu', selected: 'icon-danrudanchu-xuanzhong' },
280
- 'rotate': { default: 'icon-xuanzhuan', selected: 'icon-xuanzhuan-xuanzhong' },
281
- 'expand-up-down': { default: 'icon-shangxiazhankai', selected: 'icon-shangxiazhankai-xuanzhong' },
282
- 'expand-left-right': { default: 'icon-zuoyouzhankai', selected: 'icon-zuoyouzhankai-xuanzhong' },
283
- 'zoom-in': { default: 'icon-fangda1', selected: 'icon-fangda-xuanzhong' },
284
- 'zoom-out': { default: 'icon-suoxiao1', selected: 'icon-suoxiao-xuanzhong' }
273
+ 'none': { default: 'icon-ppt-wudonghua', selected: 'icon-ppt-wudonghua-xuanzhong' },
274
+ 'random': { default: 'icon-ppt-suiji', selected: 'icon-ppt-suiji-xuanzhong' },
275
+ 'push-left-right': { default: 'icon-ppt-zuoyoutuiyi', selected: 'icon-ppt-zuoyoutuiyi-xuanzhong' },
276
+ 'push-up-down': { default: 'icon-ppt-shangxiatuiyi', selected: 'icon-ppt-shangxiatuiyi-xuanzhong' },
277
+ 'push-left-right-3d': { default: 'icon-ppt-a-zuoyoutuiyi3D', selected: 'icon-ppt-a-zuoyoutuiyi3D-xuanzhong' },
278
+ 'push-up-down-3d': { default: 'icon-ppt-a-shangxiatuiyi3D', selected: 'icon-ppt-a-shangxiatuiyi3D-xuanzhong' },
279
+ 'fade': { default: 'icon-ppt-danrudanchu', selected: 'icon-ppt-danrudanchu-xuanzhong' },
280
+ 'rotate': { default: 'icon-ppt-xuanzhuan', selected: 'icon-ppt-xuanzhuan-xuanzhong' },
281
+ 'expand-up-down': { default: 'icon-ppt-shangxiazhankai', selected: 'icon-ppt-shangxiazhankai-xuanzhong' },
282
+ 'expand-left-right': { default: 'icon-ppt-zuoyouzhankai', selected: 'icon-ppt-zuoyouzhankai-xuanzhong' },
283
+ 'zoom-in': { default: 'icon-ppt-fangda1', selected: 'icon-ppt-fangda-xuanzhong' },
284
+ 'zoom-out': { default: 'icon-ppt-suoxiao1', selected: 'icon-ppt-suoxiao-xuanzhong' }
285
285
  }
286
286
 
287
287
  function getTransitionIcon(type: string, isSelected: boolean): string {
288
288
  const iconPair = transitionIcons[type]
289
- if (!iconPair) return isSelected ? 'icon-suiji-xuanzhong' : 'icon-suiji'
289
+ if (!iconPair) return isSelected ? 'icon-ppt-suiji-xuanzhong' : 'icon-ppt-suiji'
290
290
  return isSelected ? iconPair.selected : iconPair.default
291
291
  }
292
292