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. C++实现利用(前序和中序生成二叉树)以及(二叉树的镜像)

    #include<iostream> #include<string.h> #include<stack> using namespace std; typedef ...

  2. TRACE 学习

    TRACE   宏有点象我们以前在C语言中用的Printf函数,使程序在运行过程中输出一些调试信息,使我们能了解程序的一些状态.在Output中可以查看到结果. 但有一点不同的是:TRACE   宏只 ...

  3. CreateThread创建线程 互斥量锁

    HANDLE CreateThread( LPSECURITY_ATTRIBUTES lpThreadAttributes,//SD:线程安全相关的属性,常置为NULL SIZE_T dwStackS ...

  4. 使用Code First 迁移发布asp.net mvc 程序

    通过Code First 迁移发布asp.net mvc应用程序,与在visual studio 程序包控制器管理台中运行Add-Migration ,Update-Database 一致. 在发布的 ...

  5. Event Handling Guide for iOS--(二)---Gesture Recognizers

    Gesture Recognizers 手势识别器 Gesture recognizers convert low-level event handling code into higher-leve ...

  6. 关于 android 中 postDelayed方法的讲解 (转载)

    转自:http://blog.csdn.net/xiabo851205/article/details/7991529 这是一种可以创建多线程消息的函数 使用方法: 1,首先创建一个Handler对象 ...

  7. HDU6050: Funny Function(推公式+矩阵快速幂)

    传送门 题意 利用给出的式子求\(F_{m,1}\) 分析 直接推公式(都是找规律大佬) \(n为偶数,F_{m,1}=\frac{2(2^n-1)^{m-1}}3\) \(n为奇数,F_{m,1}= ...

  8. poj3181【完全背包+整数拆分】

    题意: 给你一个数n,在给你一个数K,问你这个n用1-k的数去组合,有多少种组合方式. 思路: 背包重量就是n: 那么可以看出 1-k就是重物,价值是数值,重量是数值. 每个重物可以无限取,问题转化为 ...

  9. UVA - 11552 Fewest Flops

    传送门: 题目大意:给你一个字符串,可以平均分成很多段,每一段之内的元素可以任意排序,最后再按原来的顺序把每一段拼起来,问最少的块数.(块:连续相同的一段字符成为一个块) 题解: 首先我们可以发现,每 ...

  10. iOS 将WKWebView内的HTML打印为PDF

    使用的webview为WKWebView,核心部分代码(Swift 4): // 创建打印渲染 let printPageRenderer:PDFRender = PDFRender() // 获取渲 ...