diff --git a/components.d.ts b/components.d.ts index 014f7b33..d8e88b8e 100644 --- a/components.d.ts +++ b/components.d.ts @@ -116,6 +116,7 @@ declare module 'vue' { 'IIconParkOutline:rowHeight': typeof import('~icons/icon-park-outline/row-height')['default'] 'IIconParkOutline:screenshotOne': typeof import('~icons/icon-park-outline/screenshot-one')['default'] 'IIconParkOutline:search': typeof import('~icons/icon-park-outline/search')['default'] + 'IIconParkOutline:selected': typeof import('~icons/icon-park-outline/selected')['default'] 'IIconParkOutline:send': typeof import('~icons/icon-park-outline/send')['default'] 'IIconParkOutline:sendToBack': typeof import('~icons/icon-park-outline/send-to-back')['default'] 'IIconParkOutline:sentToBack': typeof import('~icons/icon-park-outline/sent-to-back')['default'] @@ -152,11 +153,5 @@ declare module 'vue' { 'IIconParkSolid:checkOne': typeof import('~icons/icon-park-solid/check-one')['default'] 'IIconParkSolid:closeOne': typeof import('~icons/icon-park-solid/close-one')['default'] 'IIconParkSolid:info': typeof import('~icons/icon-park-solid/info')['default'] - 'IIconParkTwotone:click': typeof import('~icons/icon-park-twotone/click')['default'] - 'IIconParkTwotone:fileJpg': typeof import('~icons/icon-park-twotone/file-jpg')['default'] - 'IIconParkTwotone:filePdf': typeof import('~icons/icon-park-twotone/file-pdf')['default'] - 'IIconParkTwotone:leftTwo': typeof import('~icons/icon-park-twotone/left-two')['default'] - 'IIconParkTwotone:notes': typeof import('~icons/icon-park-twotone/notes')['default'] - 'IIconParkTwotone:rightTwo': typeof import('~icons/icon-park-twotone/right-two')['default'] } } diff --git a/src/views/Editor/Canvas/ElementFloatLayer/FloatingToolbar/BorderPanel.vue b/src/views/Editor/Canvas/ElementFloatLayer/FloatingToolbar/BorderPanel.vue new file mode 100644 index 00000000..d01797c7 --- /dev/null +++ b/src/views/Editor/Canvas/ElementFloatLayer/FloatingToolbar/BorderPanel.vue @@ -0,0 +1,153 @@ + + + + + + 边框样式: + + + + + + + + + + + + + 边框颜色: + + + updateOutline({ color: value })" /> + + + + + + 边框粗细: + updateOutline({ width: value })" + /> + + + + + + 边框 + + + + + + + diff --git a/src/views/Editor/Canvas/ElementFloatLayer/FloatingToolbar/ChartToolbar.vue b/src/views/Editor/Canvas/ElementFloatLayer/FloatingToolbar/ChartToolbar.vue new file mode 100644 index 00000000..bc91d654 --- /dev/null +++ b/src/views/Editor/Canvas/ElementFloatLayer/FloatingToolbar/ChartToolbar.vue @@ -0,0 +1,103 @@ + + + + + 编辑数据 + + + + + {{ CHART_TYPE_MAP[item] }} + + + + + 类型 + + + + + + + + diff --git a/src/views/Editor/Canvas/ElementFloatLayer/FloatingToolbar/ImageToolbar.vue b/src/views/Editor/Canvas/ElementFloatLayer/FloatingToolbar/ImageToolbar.vue new file mode 100644 index 00000000..5875cba1 --- /dev/null +++ b/src/views/Editor/Canvas/ElementFloatLayer/FloatingToolbar/ImageToolbar.vue @@ -0,0 +1,111 @@ + + + + + 裁剪 + + replaceImage(files)"> + + + 替换 + + + + + + + + diff --git a/src/views/Editor/Canvas/ElementFloatLayer/FloatingToolbar/LatexToolbar.vue b/src/views/Editor/Canvas/ElementFloatLayer/FloatingToolbar/LatexToolbar.vue new file mode 100644 index 00000000..e2e815ac --- /dev/null +++ b/src/views/Editor/Canvas/ElementFloatLayer/FloatingToolbar/LatexToolbar.vue @@ -0,0 +1,90 @@ + + + + + 编辑 LaTeX + + + + updateLatex({ color: value })" /> + + + + 颜色 + + + + + + + + diff --git a/src/views/Editor/Canvas/ElementFloatLayer/FloatingToolbar/LineToolbar.vue b/src/views/Editor/Canvas/ElementFloatLayer/FloatingToolbar/LineToolbar.vue new file mode 100644 index 00000000..50ce3d1f --- /dev/null +++ b/src/views/Editor/Canvas/ElementFloatLayer/FloatingToolbar/LineToolbar.vue @@ -0,0 +1,142 @@ + + + + + + + + + + + + + 样式 + + + + + updateLine({ color: value })" /> + + + + 颜色 + + + + updateLine({ width: value as number })" + /> + + + + + + + diff --git a/src/views/Editor/Canvas/ElementFloatLayer/FloatingToolbar/ShapeToolbar.vue b/src/views/Editor/Canvas/ElementFloatLayer/FloatingToolbar/ShapeToolbar.vue new file mode 100644 index 00000000..f99d41d5 --- /dev/null +++ b/src/views/Editor/Canvas/ElementFloatLayer/FloatingToolbar/ShapeToolbar.vue @@ -0,0 +1,102 @@ + + + + + updateFill(value)" /> + + + + 填充 + + + + + + + + + + + + + diff --git a/src/views/Editor/Canvas/ElementFloatLayer/FloatingToolbar/TableToolbar.vue b/src/views/Editor/Canvas/ElementFloatLayer/FloatingToolbar/TableToolbar.vue new file mode 100644 index 00000000..5103eafc --- /dev/null +++ b/src/views/Editor/Canvas/ElementFloatLayer/FloatingToolbar/TableToolbar.vue @@ -0,0 +1,109 @@ + + + + + updateCellBackcolor(value)" /> + + + + 填充 + + + + + + + + + diff --git a/src/views/Editor/Canvas/ElementFloatLayer/FloatingToolbar/TextStyleControls.vue b/src/views/Editor/Canvas/ElementFloatLayer/FloatingToolbar/TextStyleControls.vue new file mode 100644 index 00000000..3840bc6a --- /dev/null +++ b/src/views/Editor/Canvas/ElementFloatLayer/FloatingToolbar/TextStyleControls.vue @@ -0,0 +1,154 @@ + + emitRichTextCommand('fontname', value as string)" + :options="FONTS" + /> + emitRichTextCommand('fontsize', value as string)" + :options="fontSizeOptions.map(item => ({ label: item, value: item }))" + /> + + + + + + emitRichTextCommand('color', value)" /> + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/Editor/Canvas/ElementFloatLayer/FloatingToolbar/TextToolbar.vue b/src/views/Editor/Canvas/ElementFloatLayer/FloatingToolbar/TextToolbar.vue new file mode 100644 index 00000000..21ed8370 --- /dev/null +++ b/src/views/Editor/Canvas/ElementFloatLayer/FloatingToolbar/TextToolbar.vue @@ -0,0 +1,25 @@ + + + + + + + + + diff --git a/src/views/Editor/Canvas/ElementFloatLayer/FloatingToolbar/index.vue b/src/views/Editor/Canvas/ElementFloatLayer/FloatingToolbar/index.vue new file mode 100644 index 00000000..7063e511 --- /dev/null +++ b/src/views/Editor/Canvas/ElementFloatLayer/FloatingToolbar/index.vue @@ -0,0 +1,71 @@ + + + + + + + + + diff --git a/src/views/Editor/Canvas/ElementFloatLayer/LinkHandler.vue b/src/views/Editor/Canvas/ElementFloatLayer/LinkHandler.vue index 42914d0e..25df0392 100644 --- a/src/views/Editor/Canvas/ElementFloatLayer/LinkHandler.vue +++ b/src/views/Editor/Canvas/ElementFloatLayer/LinkHandler.vue @@ -1,5 +1,5 @@ - + {{elementInfo.link.target}} 幻灯片页面 {{elementInfo.link.target}} @@ -11,34 +11,23 @@