sone-ui-component-3.2.4 2.1.19 → 2.1.21
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/sone-ui.common.js +13 -17
- package/lib/sone-ui.common.js.map +1 -1
- package/lib/sone-ui.umd.js +13 -17
- package/lib/sone-ui.umd.js.map +1 -1
- package/lib/sone-ui.umd.min.js +1 -1
- package/lib/sone-ui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/packages/normalTable/src/main.vue +11 -15
- package/src/index.js +1 -1
- package/src/styles/table.scss +4 -14
package/package.json
CHANGED
|
@@ -110,17 +110,18 @@
|
|
|
110
110
|
</template>
|
|
111
111
|
</el-table-column>
|
|
112
112
|
<el-table-column
|
|
113
|
-
|
|
113
|
+
v-if="option.index"
|
|
114
114
|
fixed
|
|
115
|
-
:label="option.indexLabel ? option.indexLabel : '序号'"
|
|
116
115
|
type="index"
|
|
116
|
+
:width="option.indexWidth||50"
|
|
117
|
+
:label="option.indexLabel ? option.indexLabel : '序号'"
|
|
117
118
|
:index="indexMethod"
|
|
118
|
-
:resizable="option.hasOwnProperty('indexResizable') ? option.indexResizable : true"
|
|
119
|
-
v-if="option.index"
|
|
120
119
|
></el-table-column>
|
|
121
120
|
<el-table-column
|
|
122
|
-
v-if="option.
|
|
121
|
+
v-if="option.selection"
|
|
122
|
+
fixed
|
|
123
123
|
type="selection"
|
|
124
|
+
:show-overflow-tooltip="false"
|
|
124
125
|
:width="option.selectionWidth || 45">
|
|
125
126
|
</el-table-column>
|
|
126
127
|
<template v-for="(column, index) in internalColumns">
|
|
@@ -259,7 +260,7 @@
|
|
|
259
260
|
indexWidth: 70,
|
|
260
261
|
height: 'auto',
|
|
261
262
|
maxHeight: 'auto',
|
|
262
|
-
|
|
263
|
+
showSummary: false,
|
|
263
264
|
}
|
|
264
265
|
}
|
|
265
266
|
},
|
|
@@ -436,8 +437,8 @@
|
|
|
436
437
|
let _columns = deepClone(this.internalColumns);
|
|
437
438
|
const sums = [];
|
|
438
439
|
// 固定列会导致窜行 待改
|
|
439
|
-
if (
|
|
440
|
-
if (
|
|
440
|
+
if (!!this.operation ) sums.push(this.option.sumText || '合计')
|
|
441
|
+
if (this.option.selection) {
|
|
441
442
|
!!this.operation ? sums.push('') : sums.push('合计')
|
|
442
443
|
}
|
|
443
444
|
_columns.forEach((column, index) => {
|
|
@@ -475,14 +476,9 @@
|
|
|
475
476
|
|
|
476
477
|
// class
|
|
477
478
|
tableRowClassName({ row, rowIndex }) {
|
|
478
|
-
let rowClass = ''
|
|
479
479
|
if (this.option.rowClassName) {
|
|
480
|
-
|
|
481
|
-
}
|
|
482
|
-
if(this.option.indexCheck === true && row.checked === true && !this.option['clickRowNoCheck']){
|
|
483
|
-
return `current-row ${rowClass}`;
|
|
484
|
-
}
|
|
485
|
-
return rowClass;
|
|
480
|
+
return this.option.rowClassName({ row, rowIndex })
|
|
481
|
+
}else return ''
|
|
486
482
|
},
|
|
487
483
|
handButton(functionName, scope, id) {
|
|
488
484
|
this.$emit(functionName, scope, id)
|
package/src/index.js
CHANGED
package/src/styles/table.scss
CHANGED
|
@@ -26,12 +26,6 @@
|
|
|
26
26
|
.el-table th{
|
|
27
27
|
position:relative;
|
|
28
28
|
}
|
|
29
|
-
.el-table th > .cell{
|
|
30
|
-
// border-right: 1px solid #D9D9D9!important;
|
|
31
|
-
}
|
|
32
|
-
.el-table__header-wrapper tr th:nth-last-of-type(2) .cell{
|
|
33
|
-
// border-right: none !important;
|
|
34
|
-
}
|
|
35
29
|
.el-table .sort-caret.descending{
|
|
36
30
|
bottom: -1px!important;
|
|
37
31
|
}
|
|
@@ -49,9 +43,10 @@
|
|
|
49
43
|
}
|
|
50
44
|
.el-table-column--selection{
|
|
51
45
|
.cell{
|
|
52
|
-
display: flex;
|
|
53
|
-
justify-content: center;
|
|
54
|
-
align-items: center;
|
|
46
|
+
display: flex !important;
|
|
47
|
+
justify-content: center !important;
|
|
48
|
+
align-items: center !important;
|
|
49
|
+
padding: 0 !important;
|
|
55
50
|
}
|
|
56
51
|
}
|
|
57
52
|
|
|
@@ -76,7 +71,6 @@
|
|
|
76
71
|
}
|
|
77
72
|
.table-menu-left {
|
|
78
73
|
width:50%;
|
|
79
|
-
// height: 48px;
|
|
80
74
|
float: left;
|
|
81
75
|
}
|
|
82
76
|
.table-menu-right {
|
|
@@ -125,9 +119,7 @@
|
|
|
125
119
|
position: absolute;
|
|
126
120
|
left: -7px;
|
|
127
121
|
font-size: 14px;
|
|
128
|
-
/*color: #CCCCCC;*/
|
|
129
122
|
&:hover {
|
|
130
|
-
/*font-weight: bold;*/
|
|
131
123
|
opacity: 0.8;
|
|
132
124
|
}
|
|
133
125
|
&.el-icon-caret-top {
|
|
@@ -322,14 +314,12 @@
|
|
|
322
314
|
}
|
|
323
315
|
}
|
|
324
316
|
|
|
325
|
-
|
|
326
317
|
// 调整表格超出样式
|
|
327
318
|
.over_title{
|
|
328
319
|
overflow: hidden;
|
|
329
320
|
white-space: nowrap;
|
|
330
321
|
text-overflow: ellipsis;
|
|
331
322
|
}
|
|
332
|
-
|
|
333
323
|
.over_popper{
|
|
334
324
|
max-width:150px;
|
|
335
325
|
}
|