@composy/mail-editor-vue
@composy/mail-editor-vue
基于 @composy/mail-editor-core 的 Vue 3 邮件模板编辑器适配包,提供 MailEditor
组件、useMailEditor 组合式函数和全局插件。
安装
pnpm add @composy/mail-editor-vue @composy/mail-editor-core
快速开始
<script setup lang="ts">
import { MailEditor } from '@composy/mail-editor-vue'
</script>
<template>
<MailEditor />
</template>
需要更细粒度控制时,可以使用 useMailEditor 管理 Core 实例,并通过 MailEditorPlugin
全局注册组件。
目录结构
packages/vue/
├── src/components/ # MailEditor Vue 组件
├── src/composables/ # useMailEditor
├── src/plugins/ # Vue 插件
├── .ldesign/ # Builder 与 ESM/CJS TypeScript 配置
└── package.json
构建与检查
pnpm build
pnpm type-check
pnpm type-check:cjs
pnpm lint:check
pnpm clean
该适配包仅支持 Vue 3。构建统一使用 @composy/builder/rolldown,产物为 dist、es、esm 和
lib;vue 与 @composy/mail-editor-core 均作为外部依赖处理。
Related Packages
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 0.0.2 | 3.5.32 | MIT | |
| 0.0.1 | ^2.7.0 || | MIT |