Skip to content

Commit 1e0ee3c

Browse files
committed
update docs
1 parent 3c1f743 commit 1e0ee3c

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<link rel="icon" href="/favicon.ico">
88
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
99
<title></title>
10+
<link rel="stylesheet" href="<%= VITE_APP_CDN_URL %>@wangeditor/[email protected]/dist/css/style.css">
1011

1112
<!-- 该统计脚本用于官方文档部署,实际使用时请及时删除该代码段 -->
1213
<script>
@@ -31,5 +32,6 @@
3132

3233
<!-- CDN -->
3334
<script type="text/javascript" src="<%= VITE_APP_CDN_URL %>[email protected]/dist/echarts.min.js"></script>
35+
<script type="text/javascript" src="<%= VITE_APP_CDN_URL %>@wangeditor/[email protected]/dist/index.js"></script>
3436
</body>
3537
</html>

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"preview": "vite preview"
1414
},
1515
"dependencies": {
16+
"@vxe-ui/plugin-render-wangeditor": "^4.0.2",
1617
"axios": "^1.7.2",
1718
"echarts": "^5.5.1",
1819
"nprogress": "^0.2.0",

src/plugins/vxe/index.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
1-
import './config'
1+
import VxeUI from 'vxe-pc-ui'
2+
3+
import VxeUIPluginRenderWangEditor from '@vxe-ui/plugin-render-wangeditor'
4+
import '@vxe-ui/plugin-render-wangeditor/dist/style.css'
25

6+
import './config'
37
// 格式化
48
import './format'
59
// 渲染器
610
import './render'
11+
12+
VxeUI.use(VxeUIPluginRenderWangEditor)

0 commit comments

Comments
 (0)