File tree 1 file changed +6
-8
lines changed
examples/sites/demos/pc/webdoc
1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ export default defineConfig({
92
92
<script type =" importmap" >
93
93
{
94
94
" imports" : {
95
- " vue" : " https://registry.npmmirror.com/vue/3.5/files/dist/vue.runtime. esm-browser.js" ,
95
+ " vue" : " https://registry.npmmirror.com/vue/3.5/files/dist/vue.esm-browser.js" ,
96
96
" echarts" : " https://registry.npmmirror.com/echarts/5.4.1/files/dist/echarts.esm.js" ,
97
97
// v3.22.0版本新增
98
98
" @opentiny/vue-huicharts" : " https://registry.npmmirror.com/@opentiny/vue-runtime/3.22/files/dist3/tiny-vue-huicharts.mjs" ,
@@ -112,18 +112,16 @@ export default defineConfig({
112
112
113
113
``` html
114
114
<body >
115
- <div id =" app" ></div >
115
+ <div id =" app" >
116
+ <tiny-button >TinyVue</tiny-button >
117
+ <tiny-alert description =" TinyVue" ></tiny-alert >
118
+ </div >
116
119
<script type =" module" >
117
120
import { createApp } from ' vue'
118
121
// 引入 @opentiny/vue 组件
119
122
import TinyVue from ' @opentiny/vue'
120
123
121
- createApp ({
122
- template: `
123
- <tiny-button>TinyVue</tiny-button>
124
- <tiny-alert description="TinyVue"></tiny-alert>
125
- `
126
- })
124
+ createApp ()
127
125
// 注册 @opentiny/vue 组件
128
126
.use (TinyVue)
129
127
.mount (' #app' )
You can’t perform that action at this time.
0 commit comments