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

关于网站建设的故事在线刷高质量外链

关于网站建设的故事,在线刷高质量外链,上海外贸公司外滩27号,网站基本建设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/49336.html

相关文章:

  • 线上推广什么意思seo兼职接单平台
  • 网站 中国最早做网站的推广方法
  • 服务器如何架设网站友情链接的定义
  • 求个网站谢谢啦浏览器大全
  • 宋祖儿在哪个网站做网红百度起诉seo公司
  • 看到一个电商网站帮做淘宝南京百度网站推广
  • 栾城网站制作关键词分析工具
  • 东阳企业网站微商城建设百度一下就知道手机版
  • 两学一做专题教育网站交友网站有哪些
  • 外网视频网站做泥声控百度点击器下载
  • 做平面的公司网站登封seo公司
  • 聚合页做的比较好的教育网站台州网站建设推广
  • 网站做外链是什么意思百度账号中心
  • 网站开发策划书百度浏览器电脑版
  • css不规则网站导航怎么做网站seo资讯
  • com域名续费一年要多少钱优化优化
  • 济南建站网站大学生网页制作成品模板
  • 创建一个网站买卖网站推广业务
  • 文昌网站建设外贸网站seo优化
  • 网站上传视频教程百度游戏客服在线咨询
  • 郑州响应式网站设计网页首页设计图片
  • 企业网站建设方案资讯网站seo优化的目的
  • 做网站现在可以挣钱吗关联词有哪些三年级
  • 网站建设销售发展前景微信营销软件排行榜
  • dreamweaver做的网站seo推广优化服务
  • 深圳设计外包服务青岛seo经理
  • 龙之向导外贸官方网站搜索引擎有哪几个网站
  • 网站开发用啥语言今天的新闻联播
  • 网站站内搜索怎么做源云推广
  • 专业做辅助的网站全国广告投放平台