sone-ui-component-3.2.4 2.1.19 → 2.1.20
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 +12 -17
- package/lib/sone-ui.common.js.map +1 -1
- package/lib/sone-ui.umd.js +12 -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 +10 -15
- package/src/index.js +1 -1
- package/src/styles/table.scss +3 -14
package/package.json
CHANGED
|
@@ -110,16 +110,16 @@
|
|
|
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
124
|
:width="option.selectionWidth || 45">
|
|
125
125
|
</el-table-column>
|
|
@@ -259,7 +259,7 @@
|
|
|
259
259
|
indexWidth: 70,
|
|
260
260
|
height: 'auto',
|
|
261
261
|
maxHeight: 'auto',
|
|
262
|
-
|
|
262
|
+
showSummary: false,
|
|
263
263
|
}
|
|
264
264
|
}
|
|
265
265
|
},
|
|
@@ -436,8 +436,8 @@
|
|
|
436
436
|
let _columns = deepClone(this.internalColumns);
|
|
437
437
|
const sums = [];
|
|
438
438
|
// 固定列会导致窜行 待改
|
|
439
|
-
if (
|
|
440
|
-
if (
|
|
439
|
+
if (!!this.operation ) sums.push(this.option.sumText || '合计')
|
|
440
|
+
if (this.option.selection) {
|
|
441
441
|
!!this.operation ? sums.push('') : sums.push('合计')
|
|
442
442
|
}
|
|
443
443
|
_columns.forEach((column, index) => {
|
|
@@ -475,14 +475,9 @@
|
|
|
475
475
|
|
|
476
476
|
// class
|
|
477
477
|
tableRowClassName({ row, rowIndex }) {
|
|
478
|
-
let rowClass = ''
|
|
479
478
|
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;
|
|
479
|
+
return this.option.rowClassName({ row, rowIndex })
|
|
480
|
+
}else return ''
|
|
486
481
|
},
|
|
487
482
|
handButton(functionName, scope, id) {
|
|
488
483
|
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,9 @@
|
|
|
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;
|
|
55
49
|
}
|
|
56
50
|
}
|
|
57
51
|
|
|
@@ -76,7 +70,6 @@
|
|
|
76
70
|
}
|
|
77
71
|
.table-menu-left {
|
|
78
72
|
width:50%;
|
|
79
|
-
// height: 48px;
|
|
80
73
|
float: left;
|
|
81
74
|
}
|
|
82
75
|
.table-menu-right {
|
|
@@ -125,9 +118,7 @@
|
|
|
125
118
|
position: absolute;
|
|
126
119
|
left: -7px;
|
|
127
120
|
font-size: 14px;
|
|
128
|
-
/*color: #CCCCCC;*/
|
|
129
121
|
&:hover {
|
|
130
|
-
/*font-weight: bold;*/
|
|
131
122
|
opacity: 0.8;
|
|
132
123
|
}
|
|
133
124
|
&.el-icon-caret-top {
|
|
@@ -322,14 +313,12 @@
|
|
|
322
313
|
}
|
|
323
314
|
}
|
|
324
315
|
|
|
325
|
-
|
|
326
316
|
// 调整表格超出样式
|
|
327
317
|
.over_title{
|
|
328
318
|
overflow: hidden;
|
|
329
319
|
white-space: nowrap;
|
|
330
320
|
text-overflow: ellipsis;
|
|
331
321
|
}
|
|
332
|
-
|
|
333
322
|
.over_popper{
|
|
334
323
|
max-width:150px;
|
|
335
324
|
}
|