vsyswin-ui 0.3.21 → 0.3.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/vsyswin-ui.common.js +225 -209
- package/lib/vsyswin-ui.common.js.map +1 -1
- package/lib/vsyswin-ui.umd.js +225 -209
- package/lib/vsyswin-ui.umd.js.map +1 -1
- package/lib/vsyswin-ui.umd.min.js +23 -23
- package/lib/vsyswin-ui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/packages/button-ellipsis/src/button-container.vue +4 -1
- package/packages/search-bar/src/search-bar.scss +5 -11
- package/packages/search-bar/src/search-bar.vue +4 -3
- package/packages/table/src/table.vue +13 -1
package/package.json
CHANGED
|
@@ -45,7 +45,7 @@ export default {
|
|
|
45
45
|
const dropDown = h(
|
|
46
46
|
'el-dropdown',
|
|
47
47
|
{
|
|
48
|
-
props: { trigger: this.trigger, size: '
|
|
48
|
+
props: { trigger: this.trigger, size: 'mini', placement: 'bottom-end' }
|
|
49
49
|
},
|
|
50
50
|
[moreDiv, h('el-dropdown-menu', { slot: 'dropdown' }, moreBtns)]
|
|
51
51
|
)
|
|
@@ -82,5 +82,8 @@ export default {
|
|
|
82
82
|
&:hover{
|
|
83
83
|
background: #E6EFF8;
|
|
84
84
|
}
|
|
85
|
+
.el-icon-more{
|
|
86
|
+
color: #037AFF;
|
|
87
|
+
}
|
|
85
88
|
}
|
|
86
89
|
</style>
|
|
@@ -7,15 +7,9 @@
|
|
|
7
7
|
|
|
8
8
|
@include b(searchbar-container) {
|
|
9
9
|
box-sizing: border-box;
|
|
10
|
-
// padding: 16px 0;
|
|
11
|
-
// height: 64px;
|
|
12
|
-
padding: 20px 0;
|
|
13
10
|
overflow: hidden;
|
|
14
11
|
display: flex;
|
|
15
12
|
align-items: center;
|
|
16
|
-
.el-button--small {
|
|
17
|
-
padding: 8px 15px;
|
|
18
|
-
}
|
|
19
13
|
@include e(input) {
|
|
20
14
|
float: left;
|
|
21
15
|
width: $--input-width-base;
|
|
@@ -26,7 +20,7 @@
|
|
|
26
20
|
}
|
|
27
21
|
|
|
28
22
|
@include e(filter) {
|
|
29
|
-
margin-left:
|
|
23
|
+
margin-left: 20px;
|
|
30
24
|
color: $--color-primary;
|
|
31
25
|
font-size: $--font-size-base;
|
|
32
26
|
&:hover,
|
|
@@ -48,7 +42,7 @@
|
|
|
48
42
|
padding: 0;
|
|
49
43
|
width: $--button-width-base;
|
|
50
44
|
height: $--button-height-base;
|
|
51
|
-
font-size:
|
|
45
|
+
font-size: 14px;
|
|
52
46
|
border-radius: $--button-border-radius;
|
|
53
47
|
background-color: $--button-primary-background-color;
|
|
54
48
|
-webkit-border-radius: $--button-border-radius;
|
|
@@ -64,13 +58,13 @@
|
|
|
64
58
|
padding: 0;
|
|
65
59
|
width: $--button-width-base;
|
|
66
60
|
height: $--button-height-base;
|
|
67
|
-
font-size:
|
|
61
|
+
font-size: 14px;
|
|
68
62
|
border-radius: $--button-border-radius;
|
|
69
63
|
-webkit-border-radius: $--button-border-radius;
|
|
70
64
|
-moz-border-radius: $--button-border-radius;
|
|
71
65
|
-ms-border-radius: $--button-border-radius;
|
|
72
66
|
-o-border-radius: $--button-border-radius;
|
|
73
|
-
|
|
67
|
+
|
|
74
68
|
&:hover {
|
|
75
69
|
color: #606266 !important;
|
|
76
70
|
border-color: #dcdfe6 !important;
|
|
@@ -80,7 +74,7 @@
|
|
|
80
74
|
|
|
81
75
|
@include e(listBtns) {
|
|
82
76
|
position: absolute;
|
|
83
|
-
right:
|
|
77
|
+
right: 0;
|
|
84
78
|
.el-button--text {
|
|
85
79
|
color: $--color-primary;
|
|
86
80
|
}
|
|
@@ -9,16 +9,17 @@
|
|
|
9
9
|
<slot slot="prepend" name="prepend"></slot>
|
|
10
10
|
<slot slot="suffix" name="suffix"></slot>
|
|
11
11
|
</el-input>
|
|
12
|
-
<el-button v-if="showFilter" type="text" size="
|
|
12
|
+
<el-button v-if="showFilter" type="text" size="mini" class="syswin-searchbar-container__filter" @click="handleToggleFilterList">
|
|
13
13
|
{{ shrinkFilterList ? '收起筛选' : '更多筛选' }}
|
|
14
14
|
<i class="el-icon-caret-bottom" :class="{ 'is-rotate-180': shrinkFilterList }"></i>
|
|
15
15
|
</el-button>
|
|
16
|
-
<el-button type="primary" size="
|
|
16
|
+
<el-button type="primary" size="mini" class="syswin-searchbar-container__search" :class="{ 'is-margin-left-16': !showFilter }" @click="handleSearch()">
|
|
17
17
|
{{ searchButtonText }}
|
|
18
18
|
</el-button>
|
|
19
|
-
<el-button v-if="showFilter" size="
|
|
19
|
+
<el-button v-if="showFilter" size="mini" class="syswin-searchbar-container__reset" @click="handleReset">
|
|
20
20
|
{{ resetButtonText }}
|
|
21
21
|
</el-button>
|
|
22
|
+
<slot name="behind"></slot>
|
|
22
23
|
<div class="syswin-searchbar-container__listBtns">
|
|
23
24
|
<slot name="listBtns"></slot>
|
|
24
25
|
</div>
|
|
@@ -3,10 +3,11 @@
|
|
|
3
3
|
<!--筛选下拉-->
|
|
4
4
|
<drag-set v-if="showDragSet" :listConf='columnList' @save="dragChange" />
|
|
5
5
|
<el-table border stripe class="cusTable" :row-key="rowKey" :show-summary="showSummary" size="medium"
|
|
6
|
+
:row-class-name="headerClass"
|
|
6
7
|
:summary-method="customSum ? getSummaries : getSummariesNum" ref="cusTable" height='100%' :indent="indent"
|
|
7
8
|
:lazy="lazy" :load="load" :tree-props="treeProps" v-bind="attrs" :default-expand-all="defaultExpandAll"
|
|
8
9
|
:expand-row-keys="expandRowKeys" @sort-change="handleSortChange" @selection-change="handleSelectionChange"
|
|
9
|
-
@select-all="handleSelectAll" @select="handleSelect" @expand-change="handleExpandChange"
|
|
10
|
+
@select-all="handleSelectAll" @row-click="handleRowClick" @select="handleSelect" @expand-change="handleExpandChange"
|
|
10
11
|
@header-dragend="handleHeaderDragend">
|
|
11
12
|
<slot name="start"></slot>
|
|
12
13
|
<el-table-column v-for="(item, index) in columnData" :key="item.prop + index" :prop="item.prop" :label="item.label"
|
|
@@ -143,6 +144,10 @@ export default {
|
|
|
143
144
|
},
|
|
144
145
|
// 列表高度
|
|
145
146
|
height: {},
|
|
147
|
+
handleClassName: {
|
|
148
|
+
type: Function,
|
|
149
|
+
default: () => { }
|
|
150
|
+
},
|
|
146
151
|
// 列表内容转换的方法
|
|
147
152
|
transContent: {
|
|
148
153
|
type: Function,
|
|
@@ -376,6 +381,13 @@ export default {
|
|
|
376
381
|
this.selection = selection;
|
|
377
382
|
this.$emit('selection-change', selection);
|
|
378
383
|
},
|
|
384
|
+
headerClass ({ row, rowIndex }) {
|
|
385
|
+
return this.handleClassName(row, rowIndex);
|
|
386
|
+
},
|
|
387
|
+
// 当某个单元格被点击时会触发该事件
|
|
388
|
+
handleRowClick (row, column, cell, event) {
|
|
389
|
+
this.$emit('row-click', row, column, cell, event);
|
|
390
|
+
},
|
|
379
391
|
// 当用户手动勾选全选 Checkbox 时触发的事件
|
|
380
392
|
handleSelectAll(selection) {
|
|
381
393
|
this.$emit('select-all', selection);
|