@kaipeng/e-editor
v1.0.25
Published
剪报数据编辑组件
Downloads
20
Readme
###依赖版本
react 0.14.3
###示例
import React from 'react'
import { render } from 'react-dom'
import { E_Editor } from '@kaipeng/e-editor';
const data = [
{
globalId: 'id_0',
mediaType: 'google',
title: 'Google',
content:
'<p>谷歌首页</p>',
url: 'https://www.google.com/',
},
{
globalId: 'id_1',
mediaType: 'baidu',
title: '百度一下,你就知道',
content:
'<p>百度首页</p>',
url: 'https://baidu.com',
}
]
const App = () => {
return <E_Editor data={data} />
}
render(<App />, document.getElementById('root'))