您的位置:首页 > 新闻 > 会展 > 知名的网页制作公司欢迎咨询_电商网购系统_hao123网址大全浏览器设为主页_自己怎么创建网站

知名的网页制作公司欢迎咨询_电商网购系统_hao123网址大全浏览器设为主页_自己怎么创建网站

2025/4/6 17:21:34 来源:https://blog.csdn.net/2203_75300307/article/details/142860194  浏览:    关键词:知名的网页制作公司欢迎咨询_电商网购系统_hao123网址大全浏览器设为主页_自己怎么创建网站
知名的网页制作公司欢迎咨询_电商网购系统_hao123网址大全浏览器设为主页_自己怎么创建网站

1. PC 端常用 UI 组件库

  • Element UI:https://element.eleme.cn
  • IView UI:https://www.iviewui.com

2. 移动端常用 UI 组件库

  • Vant:https://youzan.github.io/vant
  • Cube UI:https://didi.github.io/cube-ui
  • Mint UI:http://mint-ui.github.io

3. 组件的使用

  1. 按照官方文档,用命令安装
  2. 引入组件库
  3. 应用组件
  • 标签名可以自定义

4. 使用 Element UI 组件库 案例

4.1 main.js

//引入Vue
import Vue from 'vue'
//引入App
import App from './App.vue'//完整引入
//引入ElementUI组件库
// import ElementUI from 'element-ui';
//引入ElementUI全部样式
// import 'element-ui/lib/theme-chalk/index.css';//按需引入
import { Button,Row,DatePicker } from 'element-ui';//关闭Vue的生产提示
Vue.config.productionTip = false//应用ElementUI
// Vue.use(ElementUI);
Vue.component('atguigu-button', Button);
Vue.component('atguigu-row', Row);
Vue.component('atguigu-date-picker', DatePicker);//创建vm
new Vue({el:'#app',render: h => h(App),
})

4.2 App.vue

<template><div><button>原生的按钮</button><input type="text"><atguigu-row><el-button>默认按钮</el-button><el-button type="primary">主要按钮</el-button><el-button type="success">成功按钮</el-button><el-button type="info">信息按钮</el-button><el-button type="warning">警告按钮</el-button><el-button type="danger">危险按钮</el-button></atguigu-row><atguigu-date-pickertype="date"placeholder="选择日期"></atguigu-date-picker><atguigu-row><el-button icon="el-icon-search" circle></el-button><el-button type="primary" icon="el-icon-s-check" circle></el-button><el-button type="success" icon="el-icon-check" circle></el-button><el-button type="info" icon="el-icon-message" circle></el-button><el-button type="warning" icon="el-icon-star-off" circle></el-button><el-button type="danger" icon="el-icon-delete" circle></el-button></atguigu-row></div>
</template><script>export default {name:'App',}
</script>

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com