<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<link rel="stylesheet" href="https://unpkg.com/element-plus/dist/index.css" />
<!-- 导入vue3 -->
<script src="https://unpkg.com/vue@3"></script>
<!-- 导入element-plus -->
<script src="https://unpkg.com/element-plus"></script>
</head>
<body>
<div id="app">
<el-card>
***
</el-card>
</div>
<script>
const { createApp, ref, reactive, watch, computed } = Vue
const App = {
setup() {
const state = reactive({
status: '1',
name: ''
})
return {
state
}
}
}
const app = createApp(App)
app.use(ElementPlus)
app.mount('#app')
</script>
</body>
</html>
vue 3 CDN 模版代码
最新推荐文章于 2024-08-09 07:01:41 发布