File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
vol.uniapp/components/vol-table Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 9494 <view class =" cell-left" > {{column.title}}</view >
9595 <view class =" cell-right" >
9696 <view @click.stop =" cellClick(rowindex,row,column)" v-if =" column.click" >
97- {{row[column.field]}}
97+ <view :style =" column.style" v-if =" column.formatter" >
98+ <rich-text :nodes =" rowFormatter(row,column,rowindex)+''" ></rich-text >
99+ </view >
100+ <view :style =" column.style" v-else >{{row[column.field]}}</view >
98101 </view >
99102 <view v-else-if =" column.formatter" >
100103 <rich-text :nodes =" rowFormatter(row,column)+''" ></rich-text >
410413 });
411414 },
412415 initSummary () {
413- if (this .summary .length ){
414- this .hasSummary = true ;
416+ if (this .summary .length ) {
417+ this .hasSummary = true ;
415418 return ;
416419 }
417420 this .summary = this .columns .filter (x => {
433436 if (this .lastHeight > 0 && this .lastHeight == this .tableHeight ) {
434437 return ;
435438 }
436- this .tableHeight = this .tableHeight - (res[0 ]|| {height: 0 }).height ;
439+ this .tableHeight = this .tableHeight - (res[0 ] || {
440+ height: 0
441+ }).height ;
437442 this .lastHeight = this .tableHeight ;
438443 })
439444 }
You can’t perform that action at this time.
0 commit comments