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>

iview table icon dorpdown html页面级别vue组件 #vuez#的更多相关文章

  1. html页面引入vue组件

    html页面引入vue组件需要在页面引入http-vue-loader.js 注意:要查看页面引入vue组件的效果不能直接在本地打开index.html,会有跨域问题,可以在本地配置一个nginx转发 ...

  2. Vue组件化开发

    Vue的组件化 组件化是Vue的精髓,Vue就是由一个一个的组件构成的.Vue的组件化设计到的内容又非常多,当在面试时,被问到:谈一下你对Vue组件化的理解.这时候又有可能无从下手,因此在这里阐释一下 ...

  3. Vue 实现 登陆后打开主页面(登陆组件 + 主页面组件)

    本次演示,项目所需iview,router 首先 在 views 目录 新建 两个 组件 ( login.vue ,index.vue ) login.vue <template> < ...

  4. iview table 实现在数据中自定义标识

    做了一个商旅订票的项目,在详情中有一个因公超标在表格中用一个“超”字显示的需求.后台框架用的iview+vue,也就是在iview Table中改变.在iview的框架中改变东西首先要想到的是ivie ...

  5. FineUI页面级别的参数配置

    Theme: 控件主题,目前支持三种主题风格(blue/gray/access,默认值:blue) Language: 控件语言(en/zh_CN/zh_TW/...,默认值:zh_CN) FormM ...

  6. 使用表类型(Table Type-SqlServer)实现百万级别的数据一次性毫秒级别插入

    使用表类型(Table Type)实现百万级别的数据一次性插入 思路 1 创建表类型(TaBleType)         2 创建添加存储过程         3 使用C#语言构建一个DataTab ...

  7. iview table里面 插入下拉列表组件(自定义组件)一定要加key,不加key,table开始会加载所有数据,然后再从第2页点回第一页,就会走onChange事件,混乱的逻辑,切记加:key

    iview table里面 插入下拉列表组件(自定义组件)一定要加key,不加key,table开始会加载所有数据,然后再从第2页点回第一页,就会走onChange事件,混乱的逻辑,切记加:key 关 ...

  8. iview table 普通表格样式

    iview table 普通表格样式 https://run.iviewui.com/UvLFPMb0 <template> <table> <thead> < ...

  9. iview table 已选项的数据 this.$refs.tables.$refs.tablesMain.getSelection()

    iview table 已选项的数据 this.$refs.tables.$refs.tablesMain.getSelection() 由于我这里table组件是套了两层组件 所以是进入了两个层次拿 ...

随机推荐

  1. 架构:MVC

    ylbtech-架构:MVC MVC全名是Model View Controller,是模型(model)-视图(view)-控制器(controller)的缩写,一种软件设计典范,用一种业务逻辑.数 ...

  2. Ubuntu中右击出现终端

    1 root用户 $sudo apt-get install  nautilus-open-terminal 2重启 3ok

  3. 算法学习--Day2

    今天要多学一些内容了,昨天就写了一点sort和struct的用法,今天写了两道关于日期的题目,记录在这里. 题目描述 有两个日期,求两个日期之间的天数,如果两个日期是连续的我们规定他们之间的天数为两天 ...

  4. Codeforces 快速竞技#4

    快速竞技#4 A–Duff and Meat588A = =这题不知道怎么写题解了.. 直接上code---. #include<bits/stdc++.h> #include<st ...

  5. hdoj1260【简单DP】

    这题就是一个人买还是两个人买,直接选择一下,而且默认是排好了的,就是DP一下,可能不知道DP的人,也是这么写的吧.DP是一种思想啊. #include <bits/stdc++.h> us ...

  6. python string类型 bytes类型 bytearray类型

    一.python3对文本和二进制数据做了区分.文本是Unicode编码,str类型,用于显示.二进制类型是bytes类型,用于存储和传输.bytes是byte的序列,而str是unicode的序列. ...

  7. 洛谷P3209 [HNOI2010]平面图判定(2-SAT)

    传送门 看到哈密顿回路就被吓傻了……结果没有好好考虑性质…… 首先,平面图有个性质:边数小于等于$3n-6$(我也不知道为啥),边数大于这个的直接pass 然后考虑原图,先把哈密顿回路单独摘出来,就是 ...

  8. iOS音频与视频的开发(二)- 使用AVAudioRecorder进行录制音频

    1.使用AVAudioRecorder录制视频 AVAudioRecorder与AVAudioPlayer类似,它们都属于AVFoundation的类.AVAudioRecorder的功能类似于一个录 ...

  9. [转]Java中Date转换大全,返回yyyy-MM-dd的Date类型

    /** * 获取现在时间,这个好用 * * @return返回长时间格式 yyyy-MM-dd HH:mm:ss */ public static Date getSqlDate() { Date s ...

  10. 【LeetCode 337 & 329. memorization DFS】House Robber III

    /** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode ...