refactor(editor): 重构编辑器组件及样式,优化功能实现
重构编辑器工具栏样式及功能,使用wangEditor替换原有实现 优化图片和视频上传逻辑,增加自定义校验和上传处理 调整编辑器样式,修复对齐功能及段落标题样式 更新表情选择器位置逻辑,支持上下方向显示 统一组件导入方式,添加版本控制参数防止缓存
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
// my-component.js
|
||||
// 引入全局 Vue 对象(因在 HTML 中通过 script 引入,Vue 已挂载到 window)
|
||||
const { defineComponent, ref, onMounted, nextTick } = Vue;
|
||||
import { itemBottom } from "../item-bottom/item-bottom.js";
|
||||
import { itemHead } from "../item-head/item-head.js";
|
||||
|
||||
const { itemBottom } = await import(withVer("../item-bottom/item-bottom.js"));
|
||||
const { itemHead } = await import(withVer("../item-head/item-head.js"));
|
||||
|
||||
// 定义组件(直接使用模板)
|
||||
export const latestList = defineComponent({
|
||||
|
||||
Reference in New Issue
Block a user