@composy/mail-editor-vue

Vue components for @composy/mail-editor-core
Install
npm install @composy/mail-editor-vue
Latest Version:0.0.2
Vue:3
Older releases:2
License:MIT
Last Updated:Oct 12, 2026
Links: npm
Maintainer: swimly

@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

@composy/mail-editor-core

邮件模板编辑器 - HTML邮件拖拽式可视化编排

0
vue

The progressive JavaScript framework for building modern web UI.

588,019,132 54,801
vue
@vueuse/shared
372,738,348 22,398
@vueuse/core

Collection of essential Vue Composition Utilities

367,188,523 22,398
@vitejs/plugin-vue

The official plugin for Vue SFC support in Vite.

333,357,380 686

Version History

Version Released Vue License
0.0.2 3.5.32 MIT
0.0.1 ^2.7.0 || ^3.5.32 MIT