<html> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width,initial-scale=1.0" /> <script src="https://unpkg.com/vue@3"></script> <!-- import CSS --> <link rel="stylesheet" href="https://unpkg.com/element-plus/dist/index.css"> <!-- import JavaScript --> <script src="https://unpkg.com/element-plus"></script> <title>Element Plus demo</title> </head> <body> <div id="app"> <el-button>{{ message }}</el-button> <el-table :data="tableData" style="width: 100%"> <el-table-column prop="date" label="Date" width="180" /> <el-table-column prop="name" label="Name" width="180" /> </el-table> <el-table :data="tableData" style="width: 100%"> <el-table-column prop="date" label="Date" width="180" ></el-table-column> <el-table-column prop="name" label="Name" width="180" ></el-table-column> </el-table> </div> <script> const App = { data() { return { message: "Hello Element Plus", }; }, }; const app = Vue.createApp(App); app.use(ElementPlus); app.mount("#app"); </script> </body> </html>
标签:const,app,element,Html,plus,App From: https://www.cnblogs.com/zeng-qh/p/18649773