html 组件样式配置网: Element - The world's most popular Vue UI framework
1. vue.js 组件配置网: 已过期,等待更新中...https://unpkg.com/vue/dist/vue.js
2. index.js 组件库配置网:
https://unpkg.com/element-ui/lib/index.js
3. index.css 样式配置网:
https://unpkg.com/element-ui/lib/theme-chalk/index.css
4.引用html页面
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <!-- import CSS --> <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css"> </head> <body> <div id="app"> <el-button @click="visible = true">Button</el-button> <el-dialog :visible.sync="visible" title="Hello world"> <p>Try Element</p> </el-dialog> </div> </body> <!-- import Vue before Element --> <script src="https://unpkg.com/vue/dist/vue.js"></script> <!-- import JavaScript --> <script src="https://unpkg.com/element-ui/lib/index.js"></script> <script> new Vue({ el: '#app', data: function() { return { visible: false } } }) </script> </html>