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

高密市住房和城乡建设局网站seo课程排行榜

高密市住房和城乡建设局网站,seo课程排行榜,山东省两学一做网站,做购物网站需不需要交税费目录 一、简单介绍 二、安装 1、下载 2、引入 三、布局 1、简介 2、使用 3、好处 四、布局容器 1、常见排布 2、调整样式 五、按钮 1、简单引用 2、改变样式 3、加载中效果 六、表格 1、简单使用 2、样式修改 七、对话框 1、简单使用 2、添加自定义内容 3、…

目录

一、简单介绍

二、安装

1、下载

2、引入

三、布局

1、简介

2、使用

3、好处

四、布局容器

1、常见排布

2、调整样式

五、按钮

1、简单引用

2、改变样式

 3、加载中效果

六、表格

1、简单使用

 2、样式修改

七、对话框

1、简单使用

2、添加自定义内容

3、认识不同写法的区别


一、简单介绍

1、提供各种组件的UI,内容,功能现成代码

2、为了快速开发,适合用于开发管理系统端(学生信息管理系统、社区人口管理系统)UI样式


二、安装

1、下载

进入项目终端,输入:

npm i element-ui -S

2、引入

在main.js文件中,引入element-ui

import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui';    //引入
import 'element-ui/lib/theme-chalk/index.css';    //引入Vue.config.productionTip = falseVue.use(ElementUI);    //使用new Vue({router,store,render: h => h(App)
}).$mount('#app')

三、布局

1、简介:通过基础的 24 分栏,迅速简便地创建布局【1行24列】

2、使用

(1)分两个12份,两个8份,效果如下

<template><div class="home"><el-row><el-col :span="12"><div class="grid-content bg-purple"></div></el-col><el-col :span="12"><div class="grid-content bg-purple-light"></div></el-col></el-row><el-row><el-col :span="8"><div class="grid-content bg-purple"></div></el-col><el-col :span="8"><div class="grid-content bg-purple-light"></div></el-col>
</el-row></div>
</template><script>
// @ is an alias to /srcexport default {name: "HomeView",components: {},
};
</script><style lang="scss" scoped>.grid-content {border-radius: 4px;min-height: 36px;}.bg-purple {background: #d3dce6;}.bg-purple-light {background: #e5e9f2;}
</style>

 (2)自定义效果

给每行加上margin: 20px;

<template><div class="home"><el-row><el-col :span="12"><div class="grid-content bg-purple"></div></el-col><el-col :span="12"><div class="grid-content bg-purple-light"></div></el-col></el-row><el-row  :gutter="20"><el-col :span="8"><div class="grid-content bg-purple"></div></el-col><el-col :span="8"><div class="grid-content bg-purple-light"></div></el-col><el-col :span="8"><div class="grid-content bg-purple"></div></el-col></el-row></div>
</template><script>
// @ is an alias to /srcexport default {name: "HomeView",components: {},
};
</script><style lang="scss" scoped>
.grid-content {border-radius: 4px;min-height: 36px;
}
.bg-purple {background: #d3dce6;
}
.bg-purple-light {background: #e5e9f2;
}
.el-row {// 注意观察文档,确定好选择器,这里是.el-row而不是el-rowmargin: 20px;
}
</style>

第二行加上属性gutter: 20,会自动给该行加padding-left和padding-right各10px

3、好处:响应式,根据网页的大小自动调整容器大小

 


四、布局容器

1、常见排布:头部、侧边、中间栏、底部

<template><div class="about"><el-container><el-header>Header</el-header><el-container><el-aside width="200px">Aside</el-aside><el-container><el-main>Main</el-main><el-footer>Footer</el-footer></el-container></el-container>
</el-container></div>
</template><style lang="scss" scoped>.el-header, .el-footer {background-color: #B3C0D1;color: #333;text-align: center;line-height: 60px;}.el-aside {background-color: #D3DCE6;color: #333;text-align: center;line-height: 200px;}.el-main {background-color: #E9EEF3;color: #333;text-align: center;line-height: 160px;}
</style>

2、调整样式

实现正好头部,中间,底部充满一个窗口

<template><div class="about"><el-container><el-header>Header</el-header><el-container><el-aside width="200px">Aside</el-aside><el-container><el-main>Main</el-main><el-footer>Footer</el-footer></el-container></el-container>
</el-container></div>
</template><style lang="scss" scoped>.el-header, .el-footer {background-color: #B3C0D1;color: #333;text-align: center;line-height: 60px;}.el-aside {background-color: #D3DCE6;color: #333;text-align: center;line-height: 200px;}.el-main {background-color: #E9EEF3;color: #333;text-align: center;line-height: 160px;}.el-container{//选择器包括Main,Aside,Footerheight: calc(100vh - 60px);//calc()自动计算,100vh正好浏览器窗口大小,减去60px头部高度}
</style>


五、按钮

1、简单引用

<template><div class="about"><el-container><el-header>Header</el-header><el-container><el-aside width="200px">Aside</el-aside><el-container><el-main><!-- 按钮 --><el-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></el-row><el-row><el-button icon="el-icon-search" circle></el-button><el-button type="primary" icon="el-icon-edit" 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-buttontype="warning"icon="el-icon-star-off"circle></el-button><el-button type="danger" icon="el-icon-delete" circle></el-button></el-row></el-main><el-footer>Footer</el-footer></el-container></el-container></el-container></div>
</template><style lang="scss" scoped>
.el-header,
.el-footer {background-color: #b3c0d1;color: #333;text-align: center;
}.el-aside {background-color: #d3dce6;color: #333;text-align: center;
}.el-main {background-color: #e9eef3;color: #333;text-align: center;
}
.el-container {height: calc(100vh - 60px);
}
</style>

2、改变样式

除去圆形,换掉图标

<el-button type="success" icon="el-icon-s-promotion"></el-button>

 3、加载中效果

 <el-button type="primary" :loading="isClick" @click="btnClick">加载中</el-button>
methods:{btnClick(){this.isClick = truesetTimeout(()=>{this.isClick = false},2000)}},


六、表格

1、简单使用

<template><div class="about"><el-container><el-header>Header</el-header><el-container><el-aside width="200px">Aside</el-aside><el-container><el-main>Main<!-- 表格 --><el-table :data="tableData" style="width: 100%"><el-table-column label="日期" width="180"><template slot-scope="scope"><i class="el-icon-time"></i><span style="margin-left: 10px">{{ scope.row.date }}</span></template></el-table-column><el-table-column label="姓名" width="180"><template slot-scope="scope"><el-popover trigger="hover" placement="top"><p>姓名: {{ scope.row.name }}</p><p>住址: {{ scope.row.address }}</p><div slot="reference" class="name-wrapper"><el-tag size="medium">{{ scope.row.name }}</el-tag></div></el-popover></template></el-table-column><el-table-column label="操作"><template slot-scope="scope"><el-buttonsize="mini"@click="handleEdit(scope.$index, scope.row)">编辑</el-button><el-buttonsize="mini"type="danger"@click="handleDelete(scope.$index, scope.row)">删除</el-button></template></el-table-column></el-table></el-main><el-footer>Footer</el-footer></el-container></el-container></el-container></div>
</template><script>
export default {name: "AboutView",components: {},data() {return {tableData: [{date: '2016-05-02',name: '王小虎',address: '上海市普陀区金沙江路 1518 弄'}, {date: '2016-05-04',name: '王小虎',address: '上海市普陀区金沙江路 1517 弄'}, {date: '2016-05-01',name: '王小虎',address: '上海市普陀区金沙江路 1519 弄'}, {date: '2016-05-03',name: '王小虎',address: '上海市普陀区金沙江路 1516 弄'}]};},methods: {handleEdit(index, row) {console.log(index, row);},handleDelete(index, row) {console.log(index, row);}},
};
</script><style lang="scss" scoped>
.el-header,
.el-footer {background-color: #b3c0d1;color: #333;text-align: center;
}.el-aside {background-color: #d3dce6;color: #333;text-align: center;
}.el-main {background-color: #e9eef3;color: #333;text-align: center;
}
.el-container {height: calc(100vh - 60px);
}
</style>

 2、样式修改

给表格加上斑马纹、纵向边框、数字列

<template><div class="about"><el-container><el-header>Header</el-header><el-container><el-aside width="200px">Aside</el-aside><el-container><el-main>Main<!-- 表格 --><el-table :data="tableData" style="width: 100%" border stripe> <!-- 纵向边框 斑马纹 --><el-table-column type="index" width="50"> </el-table-column> <!-- 数字列 --><el-table-column label="日期" width="180"><template slot-scope="scope"><i class="el-icon-time"></i><span style="margin-left: 10px">{{ scope.row.date }}</span></template></el-table-column><el-table-column label="姓名" width="180"><template slot-scope="scope"><el-popover trigger="hover" placement="top"><p>姓名: {{ scope.row.name }}</p><p>住址: {{ scope.row.address }}</p><div slot="reference" class="name-wrapper"><el-tag size="medium">{{ scope.row.name }}</el-tag></div></el-popover></template></el-table-column><el-table-column label="操作"><template slot-scope="scope"><el-buttonsize="mini"@click="handleEdit(scope.$index, scope.row)">编辑</el-button><el-buttonsize="mini"type="danger"@click="handleDelete(scope.$index, scope.row)">删除</el-button></template></el-table-column></el-table></el-main><el-footer>Footer</el-footer></el-container></el-container></el-container></div>
</template><script>
export default {name: "AboutView",components: {},data() {return {tableData: [{date: "2016-05-02",name: "王小虎",address: "上海市普陀区金沙江路 1518 弄",},{date: "2016-05-04",name: "王小虎",address: "上海市普陀区金沙江路 1517 弄",},{date: "2016-05-01",name: "王小虎",address: "上海市普陀区金沙江路 1519 弄",},{date: "2016-05-03",name: "王小虎",address: "上海市普陀区金沙江路 1516 弄",},],};},methods: {handleEdit(index, row) {console.log(index, row);},handleDelete(index, row) {console.log(index, row);},},
};
</script><style lang="scss" scoped>
.el-header,
.el-footer {background-color: #b3c0d1;color: #333;text-align: center;
}.el-aside {background-color: #d3dce6;color: #333;text-align: center;
}.el-main {background-color: #e9eef3;color: #333;text-align: center;
}
.el-container {height: calc(100vh - 60px);
}
</style>


七、对话框

1、简单使用

点击表格编辑,弹出对话框

<template><div class="about"><el-container><el-header>Header</el-header><el-container><el-aside width="200px">Aside</el-aside><el-container><el-main>Main<!-- 表格 --><el-table :data="tableData" style="width: 100%" border stripe><el-table-column type="index" width="50"> </el-table-column><el-table-column label="日期" width="180"><template slot-scope="scope"><i class="el-icon-time"></i><span style="margin-left: 10px">{{ scope.row.date }}</span></template></el-table-column><el-table-column label="姓名" width="180"><template slot-scope="scope"><el-popover trigger="hover" placement="top"><p>姓名: {{ scope.row.name }}</p><p>住址: {{ scope.row.address }}</p><div slot="reference" class="name-wrapper"><el-tag size="medium">{{ scope.row.name }}</el-tag></div></el-popover></template></el-table-column><el-table-column label="操作"><template slot-scope="scope"><el-buttonsize="mini"@click="handleEdit(scope.$index, scope.row)">编辑</el-button><el-buttonsize="mini"type="danger"@click="handleDelete(scope.$index, scope.row)">删除</el-button></template></el-table-column></el-table><el-dialog title="修改时间" :visible.sync="dialogFormVisible"><el-form:model="numberValidateForm"ref="numberValidateForm"label-width="100px"class="demo-ruleForm"><el-form-itemlabel="时间"prop="age":rules="[{ required: true, message: '时间不能为空' },{ type: 'number', message: '时间必须为数字值' },]"><el-inputv-model.number="numberValidateForm.age"autocomplete="off"></el-input></el-form-item><el-form-item><el-buttontype="primary"@click="submitForm('numberValidateForm')">提交</el-button><el-button @click="resetForm('numberValidateForm')">重置</el-button></el-form-item></el-form></el-dialog></el-main><el-footer>Footer</el-footer></el-container></el-container></el-container></div>
</template><script>
export default {name: "AboutView",components: {},data() {return {tableData: [{date: "2016-05-02",name: "王小虎",address: "上海市普陀区金沙江路 1518 弄",},{date: "2016-05-04",name: "王小虎",address: "上海市普陀区金沙江路 1517 弄",},{date: "2016-05-01",name: "王小虎",address: "上海市普陀区金沙江路 1519 弄",},{date: "2016-05-03",name: "王小虎",address: "上海市普陀区金沙江路 1516 弄",},],gridData: [{date: "2016-05-02",name: "王小虎",address: "上海市普陀区金沙江路 1518 弄",},{date: "2016-05-04",name: "王小虎",address: "上海市普陀区金沙江路 1518 弄",},{date: "2016-05-01",name: "王小虎",address: "上海市普陀区金沙江路 1518 弄",},{date: "2016-05-03",name: "王小虎",address: "上海市普陀区金沙江路 1518 弄",},],// 弹窗dialogTableVisible: false,dialogFormVisible: false,form: {name: "",region: "",date1: "",date2: "",delivery: false,type: [],resource: "",desc: "",},formLabelWidth: "120px",numberValidateForm: {age: "",},};},methods: {handleEdit(index, row) {console.log(index, row);this.dialogFormVisible = true;},handleDelete(index, row) {console.log(index, row);},// 表单submitForm(formName) {this.$refs[formName].validate((valid) => {if (valid) {alert("submit!");} else {console.log("error submit!!");return false;}});},resetForm(formName) {this.$refs[formName].resetFields();},},
};
</script><style lang="scss" scoped>
.el-header,
.el-footer {background-color: #b3c0d1;color: #333;text-align: center;
}.el-aside {background-color: #d3dce6;color: #333;text-align: center;
}.el-main {background-color: #e9eef3;color: #333;text-align: center;
}
.el-container {height: calc(100vh - 60px);
}
</style>

2、添加自定义内容

添加单选框到对话框中,注意标签需要添加的属性及变量存储要放在对话框中

<el-form-item label="性别" prop="radio" :rules="[{ required: true, message: '性别不能为空' }]"><el-radio v-model="numberValidateForm.radio" label="1">男</el-radio><el-radio v-model="numberValidateForm.radio" label="2">女</el-radio>
</el-form-item>
numberValidateForm: {age: "",radio: "",//属性值绑定到对话框中
},

3、认识不同写法的区别

<el-table-column prop="name" label="姓名" width="180" /><el-table-column label="姓名" width="180"><template slot-scope="scope"><el-popover trigger="hover" placement="top"><p>姓名: {{ scope.row.name }}</p><p>住址: {{ scope.row.address }}</p><div slot="reference" class="name-wrapper"><el-tag size="medium">{{ scope.row.name }}</el-tag></div></el-popover></template>
</el-table-column>

(1)popover弹出框

(2)template上的属性slot-scope="scope"是作用域插槽,关于作用域插槽详细学习,小伙伴们可以参考小编下面这篇文章Vue基础语法(五)_申小兮IU的博客-CSDN博客插槽的基础使用,具名插槽,作用域插槽,子组件向父组件通信总结https://blog.csdn.net/qq_51478745/article/details/127650324


文章转载自:
http://ddvp.mnqg.cn
http://seclusive.mnqg.cn
http://beefwood.mnqg.cn
http://szabadka.mnqg.cn
http://zarf.mnqg.cn
http://dorado.mnqg.cn
http://nyx.mnqg.cn
http://zymoid.mnqg.cn
http://incorrectly.mnqg.cn
http://mancunian.mnqg.cn
http://lamp.mnqg.cn
http://dishearten.mnqg.cn
http://unmelted.mnqg.cn
http://communalize.mnqg.cn
http://deambulatory.mnqg.cn
http://glochidia.mnqg.cn
http://granary.mnqg.cn
http://oscillometer.mnqg.cn
http://offbeat.mnqg.cn
http://surrebut.mnqg.cn
http://changefully.mnqg.cn
http://unfestive.mnqg.cn
http://fontinal.mnqg.cn
http://unmodulated.mnqg.cn
http://roughstuff.mnqg.cn
http://fluoridationist.mnqg.cn
http://gharial.mnqg.cn
http://dziggetai.mnqg.cn
http://door.mnqg.cn
http://progesterone.mnqg.cn
http://sousaphone.mnqg.cn
http://providence.mnqg.cn
http://melomane.mnqg.cn
http://samariform.mnqg.cn
http://trophology.mnqg.cn
http://moulin.mnqg.cn
http://jougs.mnqg.cn
http://arcover.mnqg.cn
http://superscale.mnqg.cn
http://comecon.mnqg.cn
http://glycollate.mnqg.cn
http://broth.mnqg.cn
http://proteide.mnqg.cn
http://hypothecate.mnqg.cn
http://petasus.mnqg.cn
http://mister.mnqg.cn
http://ademption.mnqg.cn
http://undiminished.mnqg.cn
http://superposition.mnqg.cn
http://fiddle.mnqg.cn
http://essay.mnqg.cn
http://hognose.mnqg.cn
http://delphine.mnqg.cn
http://unreached.mnqg.cn
http://galliambic.mnqg.cn
http://missable.mnqg.cn
http://bipod.mnqg.cn
http://hermatypic.mnqg.cn
http://teak.mnqg.cn
http://dismally.mnqg.cn
http://anne.mnqg.cn
http://albuquerque.mnqg.cn
http://occurrence.mnqg.cn
http://rackabones.mnqg.cn
http://standby.mnqg.cn
http://aws.mnqg.cn
http://archdeaconry.mnqg.cn
http://monomerous.mnqg.cn
http://incisive.mnqg.cn
http://contrapuntist.mnqg.cn
http://acquiescent.mnqg.cn
http://ofuro.mnqg.cn
http://paleogeophysics.mnqg.cn
http://dimetric.mnqg.cn
http://porsche.mnqg.cn
http://elaborator.mnqg.cn
http://rdb.mnqg.cn
http://spherical.mnqg.cn
http://despondently.mnqg.cn
http://we.mnqg.cn
http://tereus.mnqg.cn
http://revivatory.mnqg.cn
http://durative.mnqg.cn
http://spectral.mnqg.cn
http://dourine.mnqg.cn
http://mangabey.mnqg.cn
http://blackwall.mnqg.cn
http://nccj.mnqg.cn
http://contrabandist.mnqg.cn
http://barnyard.mnqg.cn
http://xanthochroism.mnqg.cn
http://prolonged.mnqg.cn
http://orb.mnqg.cn
http://chiloe.mnqg.cn
http://jeep.mnqg.cn
http://tasian.mnqg.cn
http://metoclopramide.mnqg.cn
http://cytomegalic.mnqg.cn
http://beefy.mnqg.cn
http://apteryx.mnqg.cn
http://www.dt0577.cn/news/114602.html

相关文章:

  • 矢量网站动画怎么做小程序制作流程
  • 网站logo的颜色与网页的颜色aso应用商店优化原因
  • 陈欧做聚美优品网站seo技术培训海南
  • 软装设计的意义seo必备工具
  • 景观做文本常用的网站优帮云排名优化
  • 乐清网站推广制作一元手游平台app
  • 便宜手机网站建设站长工具百度
  • 网站备案 网站名称互联网公司网站模板
  • 设计学网站智能营销系统
  • 腊肉网站的建设前景百度在线咨询
  • 网站推广指标包括( )。营销型网站建设题库
  • 网络优化工程师前景优化营商环境 提升服务效能
  • 怎么用ftpxp做网站百度一下你就知道下
  • 崇信县门户网站留言首页网站内容检测
  • 建筑网站资料排行榜网络管理系统
  • 怎么做简单网站百度网站下拉排名
  • java免费入门网站免费seo提交工具
  • 技术专业网站建设百度搜索平台
  • 北京市文化局政务网站建设项目网上接单平台
  • 百度网站排名关键词整站优化seo网站推广计划
  • ps网页设计步骤及方法深圳网站搜索优化工具
  • 设计一个网站的步骤网站收录软件
  • 自适应网站一般用什么框架做东莞做网站公司首选
  • html5可不可以建设手机网站市场营销师报名官网
  • 公司购买网站建设费用会计分录3000行业关键词
  • 三门峡做网站seo推广费用需要多少
  • 个人怎样做旅游网站如何做网站关键词优化
  • 深圳网站建设 cms在线客服
  • 长春火车站电话人工服务seo文章关键词怎么优化
  • 简述网络营销的基本方法信阳seo推广