当前位置: 首页 > news >正文

html5国外酷炫网站cod建站平台

html5国外酷炫网站,cod建站平台,企业官方网站系统建设,关于网站建设的英文文章Vue基础27Vue UI组件库移动端常用 UI 组件库PC 端常用 UI 组件库Element-ui插件基本使用安装引入并使用main.jsApp.vue按需引入安装 babel-plugin-componentbabel.config.jsmain.jsApp.vueVue UI组件库 移动端常用 UI 组件库 Vant https://youzan.github.io/vant Cube UI htt…

Vue基础27

  • Vue UI组件库
    • 移动端常用 UI 组件库
    • PC 端常用 UI 组件库
    • Element-ui插件
      • 基本使用
        • 安装
        • 引入并使用
          • main.js
          • App.vue
      • 按需引入
        • 安装 babel-plugin-component
        • babel.config.js
        • main.js
        • App.vue

Vue UI组件库

移动端常用 UI 组件库

  1. Vant

https://youzan.github.io/vant

  1. Cube UI

https://didi.github.io/cube-ui

  1. Mint UI

http://mint-ui.github.io

PC 端常用 UI 组件库

  1. Element UI

https://element.eleme.cn

  1. IView UI

https://www.iviewui.co

Element-ui插件

基于Vue框架的国产UI组件(饿了么出品)

基本使用

安装

npm i element-ui

在这里插入图片描述

引入并使用

main.js
import Vue from 'vue'import App from './App'//引入ElementUI组件库
import ElementUI from 'element-ui'
//引入ElementUI全部样式
import 'element-ui/lib/theme-chalk/index.css';//关闭vue的生产提示
Vue.config.productionTip = false//应用ElementUI
Vue.use(ElementUI)
new Vue({el: "#app",render: h => h(App),
})
App.vue
<template><div class="bg"><button>原生按钮</button><input type="text" placeholder="原生input框"><br> <br>
<!--    element-ui的引入--><el-button type="primary">主要按钮</el-button><div class="input"><el-input  placeholder="请输入内容"></el-input></div><br><el-button icon="el-icon-search" circle></el-button><br>
<!--    日期引入--><el-date-pickertype="daterange"align="right"unlink-panelsrange-separator=""start-placeholder="开始日期"end-placeholder="结束日期"></el-date-picker></div>
</template><script>
export default {name: "App",
}
</script><style>
.input{width: 200px;margin-top: 10px;
}
</style>

在这里插入图片描述

按需引入

安装 babel-plugin-component

npm install babel-plugin-component -D

babel.config.js

module.exports = {presets: ['@vue/cli-plugin-babel/preset',["@babel/preset-env", { "modules": false }]],plugins: [["component",{"libraryName": "element-ui","styleLibraryName": "theme-chalk"}]]
}

main.js

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

App.vue

<template><div class="bg"><button>原生按钮</button><input type="text" placeholder="原生input框"><br> <br>
<!--    element-ui的引入--><el-row><el-button type="primary">主要按钮</el-button></el-row><div class="input"><el-input  placeholder="请输入内容"></el-input></div><el-row><el-button icon="el-icon-search" circle></el-button></el-row>
<!--    日期引入--><expecial-datePickertype="daterange"align="right"unlink-panelsrange-separator=""start-placeholder="开始日期"end-placeholder="结束日期"></expecial-datePicker></div>
</template><script>
export default {name: "App",
}
</script><style>
.input{width: 200px;margin-top: 10px;
}
</style>

在这里插入图片描述

http://www.yayakq.cn/news/169450/

相关文章:

  • 网站做了泛解析 为什么影响seo进入百度
  • 生活家装饰官方网站什么是跨境电商平台
  • 中国佛山营销网站建设太原展厅设计公司
  • 网站备案的服务器租用wordpress 报名表单
  • 西安企业建站设计比较好的网站
  • 1688网站怎么做南通制作手机网站
  • 兼职网站平台有哪些wordpress文章分类显示
  • 网站地址栏小图标加强本单位政务网站建设
  • php网站开发视频网站去哪接单做网站
  • 使用vue做单页面网站自己怎么做电影网站可以赚钱吗
  • 学做衣服上什么网站好网站开发人力成本
  • 网站开发建设类合同黑龙江建设网监理证书
  • 全国蔬莱网站建设营销团队名字
  • 宝塔可以做二级域名网站么专业app制作开发公司
  • 同城同镇网站建设wordpress菜单栏添加
  • 网站建设时间怎么查昆明公司有哪些
  • 导购网站开发源码微信小程序怎么做链接
  • 如何批量建站郑州今天的最新消息
  • 网站开发维护的好处济宁网站建设常用解决方案
  • 辽宁营商建设局网站入侵WordPress网站
  • 个人网站免费源码大全企业网站开发数据库设计
  • 怎么做百度网站会显示图片在旁边wordpress怎么发邮件
  • wordpress 本地建站传奇世界页游
  • 美丽说网站案例分析南宁专业网站制作公司
  • 在百度做网站需要什么资料最好看的电视剧大全免费观看免费
  • 宝应县城乡建设局网站建网站域名后怎样做
  • 郑州公路建设有限公司网站广告设计公司经营
  • 自做业务网站网站开发是什么语言
  • 青岛vps网站wordpress电子书插件
  • 在线免费logo设计网站网站流量的作用