1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-09-06 17:49:50 +08:00

Merge pull request #6 from PanJiaChen/master

update
This commit is contained in:
MaYuanhai 2019-03-20 16:44:35 +08:00 committed by GitHub
commit c174e8e0b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 7 deletions

View File

@ -1,6 +1,6 @@
<template>
<div :class="{'show':show}" class="header-search">
<svg-icon class-name="search-icon" icon-class="search" @click="click" />
<svg-icon class-name="search-icon" icon-class="search" @click.stop="click" />
<el-select
ref="headerSearchSelect"
v-model="search"

View File

@ -1,6 +1,9 @@
<template>
<div :style="{height:height+'px',zIndex:zIndex}">
<div :class="className" :style="{top:stickyTop+'px',zIndex:zIndex,position:position,width:width,height:height+'px'}">
<div
:class="className"
:style="{top:(isSticky ? stickyTop +'px' : ''),zIndex:zIndex,position:position,width:width,height:height+'px'}"
>
<slot>
<div>sticky</div>
</slot>

View File

@ -145,11 +145,11 @@ export function export_table_to_excel(id) {
}
export function export_json_to_excel({
multiHeader,
multiHeader = [],
header,
data,
filename,
merges,
merges = [],
autoWidth = true,
bookType= 'xlsx'
} = {}) {
@ -158,8 +158,8 @@ export function export_json_to_excel({
data = [...data]
data.unshift(header);
for (let header of multiHeader) {
data.unshift(header)
for (let i = multiHeader.length-1; i > -1; i--) {
data.unshift(multiHeader[i])
}
var ws_name = "SheetJS";

View File

@ -49,7 +49,9 @@
<div>placeholder</div>
<div>placeholder</div>
<div>placeholder</div>
<div>placeholder</div>
<sticky :sticky-top="200">
<el-button type="primary"> placeholder</el-button>
</sticky>
<div>placeholder</div>
<div>placeholder</div>
<div>placeholder</div>