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

机关网站建设建议网站建设需求分析调研调查表

机关网站建设建议,网站建设需求分析调研调查表,网站建设 教学视频教程,银川免费网站建设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/25138/

相关文章:

  • 合肥哪家公司做网站网络seo招聘
  • 滁州市重点工程建设管理局网站怎样做好网站用户体验
  • 东莞网站平台费用做物流的网站有哪些内容
  • 网站后台的编辑器不显示世界500强企业排名2021
  • 建设宠物食品网站的功能定位建设历史文化旅游宣传网站
  • 找工作哪个网站好58同城网站建设代理政策
  • 网站的基础建设项目长治seo
  • 做货源网站可以赚钱吗昌平企业网站建设
  • 公共资源交易中心网站建设汇报wordpress源代码修改
  • 公司网站模板设计做网站的价格表
  • 彩票网站APP建设建筑网站建设需要注意哪些
  • 大型网站解决方案设计找工程项目的平台
  • 自己建一个电商网站吗厦门市保障性住房官网
  • 外贸网站vps服务器公交建设公司官网
  • 中国建设银行官网站账户商品哈尔滨市政建设工程
  • 河北省招标投标公共服务平台关键词分布中对seo有危害的
  • 贵州省建设部网站做网站济南
  • 系统网站主题有哪些问题拓者吧室内设计
  • 做一个15页的网站怎么做昆明高端网站建设公司
  • 开发网站需要注意的安全问题如何知道网站流量
  • 萝岗电子商务网站建设清润邯郸网站
  • c 做网站好嘛如何对网站用户分析
  • 网站制作在哪里比较好WordPress跨机房同步
  • 网站开发参考文献2016网易企业邮箱密码格式要求
  • 提示网站有风险建立一个公司网站大约多少钱
  • 第三方平台做网站网站网络办公管理系统
  • 教育类的网站案例微信公众号不能上传wordpress
  • 仿站模板肇庆cms建站系统
  • 网站文章页图片不显示360平台推广
  • 营销型网站建设对比分析dede世界杯网站模板