feat: 项目结构重构优化

This commit is contained in:
Ray.Hao
2025-12-26 12:35:37 +08:00
parent 65ad4fe59f
commit aa374dd2ba
164 changed files with 11305 additions and 3103 deletions

View File

@@ -1,23 +1,23 @@
<!--
* 基于 wangEditor-next 的富文本编辑器组件二次封装
* 版权所有 © 2021-present 有来开源组织
* 基于 wangEditor-next çšå¯Œææœ¬ç¼è¾å¨ç»ä»äºŒæ¬¡å°<EFBFBD>è£?
* çˆæ<EFBFBD>ƒææœ?© 2021-present æœæ<EFBFBD>¥å¼æº<EFBFBD>ç»ç»?
*
* 弿º<EFBFBD>å<EFBFBD><EFBFBD>议:https://opensource.org/licenses/MIT
* 项ç®åœ°å<EFBFBD>:https://gitee.com/youlaiorg/vue3-element-admin
*
* 在使用时请保留此注释感谢您对开源的支持
* åœ¨ä½¿ç¨æï¼Œè¯·ä¿<EFBFBD>çæ­¤æ³¨éŠï¼ŒæŸè°¢æ¨å¯¹å¼æº<EFBFBD>çšæ¯æŒ<EFBFBD>ï¼?
-->
<template>
<div style="z-index: 999; border: 1px solid var(--el-border-color)">
<!-- 工具栏 -->
<!-- 工巿 ?-->
<Toolbar
:editor="editorRef"
mode="simple"
:default-config="toolbarConfig"
style="border-bottom: 1px solid var(--el-border-color)"
/>
<!-- 编辑器 -->
<!-- ç¼è¾å?-->
<Editor
v-model="modelValue"
:style="{ height: height, overflowY: 'hidden' }"
@@ -51,15 +51,15 @@ const modelValue = defineModel("modelValue", {
required: false,
});
// 编辑器实例,必须用 shallowRef重要
// 编辑器实例,必须ç”?shallowRef,é‡<C3A9>è¦<C3A8>ï¼<C3AF>
const editorRef = shallowRef();
// 工具栏配置
// 工具æ <EFBFBD>é…<EFBFBD>ç½?
const toolbarConfig = ref<Partial<IToolbarConfig>>({});
// 编辑器配置
// ç¼è¾å™¨é…<EFBFBD>ç½?
const editorConfig = ref<Partial<IEditorConfig>>({
placeholder: "请输入内容...",
placeholder: "请输入内�..",
MENU_CONF: {
uploadImage: {
customUpload(file: File, insertFn: InsertFnType) {