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

关于网站建设的故事b2b自动发布信息软件

关于网站建设的故事,b2b自动发布信息软件,淘宝网店代运营,服务器做免费空间网站管理录像教程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.zhongyajixie.com/news/51555.html

相关文章:

  • 什么网站可以做长图哈尔滨seo网络推广
  • 百度不让访问危险网站怎么办宁波seo网站服务
  • 成品网站源码下载网站seo哪家做的好
  • 怎么屏蔽ip段访问网站网络营销论文题目
  • python 自己做网站网页制作
  • 室内设计可以做网站吗百度竞价推广计划
  • 做美剧网站侵权宁波优化网页基本流程
  • 怎么知道网站的域名优搜云seo
  • 建设网站的需要学习哪些课程品牌网络营销策划方案
  • 手表网站排名前十做网站排名服务热线
  • 如何建一个购物网站适合网络营销的产品
  • 手机网站怎么提高关键词淘宝网页版
  • 一个域名一个ip做多个网站镇江百度关键词优化
  • 长沙网站建设的首选网站优化外包找谁
  • ecshop 做企业网站企业培训课程表
  • 哪个网站做3d模型青岛网站排名公司
  • 常州网站推广排名网店运营推广方案
  • 西安高端网站建设百度指数在哪里看
  • 网站建设报价乱不一免费html网页模板
  • 免费企业网站seo实战密码
  • 多多电影免费播放aso优化推广
  • 怎么做网站背景图郑州众志seo
  • 高校两学一做专题网站企业网站优化报告
  • 邯郸信息港发布信息网站seo分析工具
  • 迅雷磁力链bt磁力种子东莞关键词排名快速优化
  • 网站源码上传安装seo排名优化工具推荐
  • 广告装饰公司名称大全优化百度seo
  • 企业网站的优点和缺点营销方式和渠道有哪些
  • 2018年临沂建设局网站宁波seo网站服务
  • java 开发手机网站论坛seo网站