Merge branch 'multi-header' of https://github.com/zouzhibin/zb-table
Conflicts: .idea/workspace.xml unpackage/dist/dev/.sourcemap/mp-weixin/pages/index/index.js.map unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/zb-table/components/zb-table/zb-table.js.map
This commit is contained in:
@@ -22,12 +22,6 @@
|
|||||||
@edit="buttonEdit"
|
@edit="buttonEdit"
|
||||||
@dele="dele"
|
@dele="dele"
|
||||||
:data="data">
|
:data="data">
|
||||||
<template v-slot:age>
|
|
||||||
<view >
|
|
||||||
<!-- <div style="color: red">{{scope.label}}</div>-->
|
|
||||||
<div style="color: red">1</div>
|
|
||||||
</view>
|
|
||||||
</template>
|
|
||||||
</zb-table>
|
</zb-table>
|
||||||
</view>
|
</view>
|
||||||
</uni-card>
|
</uni-card>
|
||||||
|
|||||||
@@ -675,7 +675,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
formatterAction(row,column,rowIndex,columnIndex){
|
formatterAction(row,column,rowIndex,columnIndex){
|
||||||
if(column.formatter){
|
if(column.formatter&&typeof this.formatter==='function'){
|
||||||
return this.formatter(row,column,rowIndex,columnIndex)
|
return this.formatter(row,column,rowIndex,columnIndex)
|
||||||
}
|
}
|
||||||
return (row[column.name]==null||row[column.name]==='')?column.emptyString:row[column.name]
|
return (row[column.name]==null||row[column.name]==='')?column.emptyString:row[column.name]
|
||||||
|
|||||||
@@ -886,7 +886,7 @@ var _util = __webpack_require__(/*! ./js/util */ 42);function _interopRequireDef
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
formatterAction: function formatterAction(row, column, rowIndex, columnIndex) {
|
formatterAction: function formatterAction(row, column, rowIndex, columnIndex) {
|
||||||
if (column.formatter) {
|
if (column.formatter && typeof this.formatter === 'function') {
|
||||||
return this.formatter(row, column, rowIndex, columnIndex);
|
return this.formatter(row, column, rowIndex, columnIndex);
|
||||||
}
|
}
|
||||||
return row[column.name] == null || row[column.name] === '' ? column.emptyString : row[column.name];
|
return row[column.name] == null || row[column.name] === '' ? column.emptyString : row[column.name];
|
||||||
|
|||||||
@@ -886,7 +886,7 @@ var _util = __webpack_require__(/*! ./js/util */ 42);function _interopRequireDef
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
formatterAction: function formatterAction(row, column, rowIndex, columnIndex) {
|
formatterAction: function formatterAction(row, column, rowIndex, columnIndex) {
|
||||||
if (column.formatter) {
|
if (column.formatter && typeof this.formatter === 'function') {
|
||||||
return this.formatter(row, column, rowIndex, columnIndex);
|
return this.formatter(row, column, rowIndex, columnIndex);
|
||||||
}
|
}
|
||||||
return row[column.name] == null || row[column.name] === '' ? column.emptyString : row[column.name];
|
return row[column.name] == null || row[column.name] === '' ? column.emptyString : row[column.name];
|
||||||
|
|||||||
Reference in New Issue
Block a user