@tslfe/editor-core
TypeScript icon, indicating that this package has built-in type declarations

3.0.34 • Public • Published

编辑器内核

介绍

编辑器内核主要负责提取出各编辑器所需的公共模块,封装通用 API 和组件,以实现快速实现业务功能。

demo

// 需求:1. vue组件;2. 支持API方式渲染页面;3. vue组件和api能相互调用;4. 支持单页面独立渲染
import Editor, { EComponent, EToolBar, EAttribute } from 'editor-core'
import {defineComponent, reactive} from 'vue'

export default defineComponent({ 
    setup(){ 
        return {
        } 
    }, 
    render(){
        return (
            <Editor>
                <EComponent slot="toolbar"></EComponent>
                <EToolBar slot="component"></EToolBar>
            </Editor>
        ) 
    }, 
    methods: { 
        import(){ 
            core.import({}) 
        } 
    } 
})

Readme

Keywords

Package Sidebar

Install

npm i @tslfe/editor-core

Weekly Downloads

0

Version

3.0.34

License

ISC

Unpacked Size

325 kB

Total Files

82

Last publish

Collaborators

  • yangxun