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"
|
||||
@dele="dele"
|
||||
:data="data">
|
||||
<template v-slot:age>
|
||||
<view >
|
||||
<!-- <div style="color: red">{{scope.label}}</div>-->
|
||||
<div style="color: red">1</div>
|
||||
</view>
|
||||
</template>
|
||||
</zb-table>
|
||||
</view>
|
||||
</uni-card>
|
||||
|
||||
@@ -675,7 +675,7 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
formatterAction(row,column,rowIndex,columnIndex){
|
||||
if(column.formatter){
|
||||
if(column.formatter&&typeof this.formatter==='function'){
|
||||
return this.formatter(row,column,rowIndex,columnIndex)
|
||||
}
|
||||
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: {
|
||||
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 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: {
|
||||
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 row[column.name] == null || row[column.name] === '' ? column.emptyString : row[column.name];
|
||||
|
||||
Reference in New Issue
Block a user