mali-applet-ui 1.0.118 → 1.0.119
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.
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
</view>
|
|
23
23
|
<view v-if="headerData && headerData.length" class="table-body-top">
|
|
24
24
|
<view class="table-tr" v-for="(row, rowIndex) in headerData" :key="rowIndex">
|
|
25
|
-
<view class="table-td" v-for="(column, columnIndex) in tableColumn" :key="columnIndex" :style="
|
|
25
|
+
<view class="table-td" v-for="(column, columnIndex) in tableColumn" :key="columnIndex" :style="getColTdStyles(column)" @click="cellHeaderTdClick({ type: 'header', row, rowIndex, column, columnIndex })">
|
|
26
26
|
<view :class="['table-cell', column.align ? `align-${column.align}` : '', getHeaderCellClass({ type: 'header', row, rowIndex, column, columnIndex })]">
|
|
27
27
|
<ml-amount-text v-if="column.cellRender && column.cellRender.name === 'MlAmountText'" :value="row[column.field]" :simplify="column.cellRender.props ? column.cellRender.props.simplify : false"></ml-amount-text>
|
|
28
28
|
<text v-else>{{ getHeaderCellValue({ type: 'header', row, rowIndex, column, columnIndex }) }}</text>
|
|
@@ -225,7 +225,7 @@ export default {
|
|
|
225
225
|
getColTdStyles (column) {
|
|
226
226
|
const wSty = `width: ${this.getColWidth(column)};`
|
|
227
227
|
let hSty = ''
|
|
228
|
-
if (this.rowConfig.height) {
|
|
228
|
+
if (this.rowConfig && this.rowConfig.height) {
|
|
229
229
|
hSty = `height: ${this.rowConfig.height};`
|
|
230
230
|
}
|
|
231
231
|
return `${wSty || ''}${hSty || ''}`
|