Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/HeaderSearch/index.vue
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
5 changes: 4 additions & 1 deletion src/components/Sticky/index.vue
Original file line number Diff line number Diff line change
@@ -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>
Expand Down
8 changes: 4 additions & 4 deletions src/vendor/Export2Excel.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
} = {}) {
Expand All @@ -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";
Expand Down
4 changes: 3 additions & 1 deletion src/views/components-demo/sticky.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down