iview table icon dorpdown html页面级别vue组件

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>iview example</title>
<link rel="stylesheet" type="text/css" href="./assets/iview/styles/iview.css">
<script type="text/javascript" src="./assets/vue/vue.min.js"></script>
<script type="text/javascript" src="./assets/iview/iview.min.js"></script>
</head>
<body>
<div id="app">
<Layout>
<Header>
<div style="height:60px;margin-left:30px;
margin-right:10px;
line-height:60px; color:#fff; font:bold; float:left; ">
<div style="height:10px;"></div>
<span><img src="./assets/dang.png" width="" height="" /></span></div>
<div style="float:left; height: 60px; line-height: 60px;
font-size:22px;
font-family: 微软雅黑; font-weight: bold; color:#fff;">
iview example</div> <div style="float:right; margin-right:20px;">
<div style="height:12px;"></div> <dropdown> <a href="javascript:void(0)">
gfsd
<!-- <icon type="ios-color-palette" style="color:#fff" /> -->
<Icon type="md-arrow-dropdown" />
<icon type="ios-arrow-down" style="color:#fff" />
</a>
<dropdown-menu slot="list">
<dropdown-item>驴打滚</dropdown-item>
<dropdown-item>炸酱面</dropdown-item>
</dropdown-menu>
</dropdown> <!-- <i-icon type="md-square" style="color:#eee;" /> --> <Badge style="margin-right: 20px;" :count="">
<icon type="ios-notifications-outline" size="" style="color:#fff;"></icon>
</Badge> <i-button>退出</i-button>
</div>
</Header>
<Content>
<div style="height:15px;"></div>
<Card class="table-card" shadow style="width:1500px;margin:0 auto; text-align: center;">
<img src="./assets/3-1.jpg" style="margin:0 auto;" />
</Card>
<div style="height:15px;"></div>
<Card class="table-card" shadow style="width:1500px;margin:0 auto;"> <i-input search enter-button="搜 索"
placeholder="iview example"
style="width:800px; margin-left: 10px;" ></i-input> <div style="height:15px;"></div> <i-table border :columns="columns12" :data="data6" style="width:1450px; margin:0 auto;">
<template slot-scope="{ row }" slot="photo">
<img :src="row.photo" style="margin:5px 0 0 0;" />
</template>
</i-table>
<div style="height:15px;"></div>
</Card>
<div style="height:60px;"></div> </Content>
<Footer :style="{position: 'fixed', width: '100%'}">iview example</Footer>
</Layout> </div>
<script>
new Vue({
el: '#app',
data: {
visible: false,
value1:,
columns12: [
{
title: 'iview example',
key: 'name',
align: 'center'
},
{
title: 'iview example',
slot: 'photo',
width:,
align: 'center'
},
{
title: 'iview example',
key: 'sex',
align: 'center'
},
{
title: 'iview example',
key: 'iview example1',
align: 'center'
},
{
title: 'iview example',
key: 'iview example2',
align: 'center'
},
{
title: 'iview example',
key: 'iview example3',
align: 'center'
},
{
title: 'iview example',
key: 'iview example4',
align: 'center'
},
{
title: 'iview example',
key: 'iview example5',
align: 'center'
},
{
title: 'iview example',
key: 'iview example6',
align: 'center'
} ],
data6: [
{
name: 'iview example',
photo:'assets/face4.jpg',
sex: '女',
chushengnianyue: '1981.6',
rudangshijian:'iview example',
zhiwu:'iview example',
suozaidanwei:'iview example',
xueli:'iview example',
xuewei:'iview example'
} ]
},
methods: {
show1: function () {
this.visible = true;
},
show (index) {
this.$Modal.info({
title: 'User Info',
content: `Name:${this.data6[index].name}<br>Age:${this.data6[index].age}<br>Address:${this.data6[index].address}`
})
},
remove (index) {
this.data6.splice(index, );
}
}
,created () {
//页面加载
this.$Notice.config({
top: window.innerHeight -
}); this.$Notice.open({
title: '消息提醒',
desc: `iview example。
<br><br>
、iview example。`,
duration: ,
});
}
})
</script>
<style>
.ivu-card{
-webkit-box-shadow: 1px 6px rgba(,,,.);
box-shadow: 1px 6px rgba(,,,.);
border-color: #eee;
}
.table-card {
/* height: calc(100vh - 196px); */
}
footer { background-color: #2b85e4; z-index: ;}
footer,.ivu-layout-footer {
height: 40px;
padding: 10px 50px !important;
color: #fff !important;
text-align: center; position: relative;
bottom:;
}
Header { height:60px; background-image: url("./assets/t.png");
background-size: % 60px; }
/* Content { height: calc(100vh - 60px);} */
</style>
</body>
</html>

最新文章

  1. WinCE非通用调试工具汇总
  2. JS-结合html综合练习js的对象——班级成绩表制作
  3. 读书笔记:javascript高级技巧(二)
  4. PHP的命名空间
  5. UIImageView 的contentMode属性
  6. Enable test automation in Testlink
  7. 使用NodeJs,实现数据抓取
  8. javascript 笔记(待续)
  9. 转:PHP变量作用域(花括号、global、闭包)
  10. WebSite 文件上传Demo
  11. 《初识PE》导入表
  12. NumberProgressBar开源项目学习
  13. [Swift]LeetCode338. 比特位计数 | Counting Bits
  14. 配置中文分词器 IK-Analyzer-Solr7
  15. robot framework---时间控件取值
  16. git本地仓库关联多个remote,怎么用本地一个分支向不同remote不同分支推送代码
  17. Good Bye 2018 没打记
  18. linux 文件系统工作原理
  19. 使用 PYTHON 为 PIP 搭建 HTTP 代理
  20. fabric 学习笔记

热门文章

  1. AndroidStudio修改主题外观和字体大小
  2. MP4V2库与MP4AV库编译
  3. UVa11077
  4. Java 8中Collection转为Map的方法
  5. (水题)洛谷 - P1603 - 斯诺登的密码
  6. Integer Cache(带你脱坑)
  7. childNodes和Children的区别
  8. NOIp2017真题模拟赛 By cellur925
  9. 51Nod 1094 和为k的连续区间
  10. Java | 基础归纳 | set