mali-applet-ui 1.0.119 → 1.0.121

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="getColTdStyles(column)" @click="cellHeaderTdClick({ type: 'header', row, rowIndex, column, columnIndex })">
25
+ <view class="table-td" v-for="(column, columnIndex) in tableColumn" :key="columnIndex" :style="{width: getColWidth(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>
@@ -33,7 +33,7 @@
33
33
  </view>
34
34
  <view class="table-body-contnet">
35
35
  <view class="table-tr" v-for="(row, rowIndex) in tableData" :key="rowIndex">
36
- <view class="table-td" v-for="(column, columnIndex) in tableColumn" :key="columnIndex" :style="getColTdStyles(column)" @click="cellTdClick({ type: 'body', row, rowIndex, column, columnIndex })">
36
+ <view class="table-td" v-for="(column, columnIndex) in tableColumn" :key="columnIndex" :style="{width: getColWidth(column)}" @click="cellTdClick({ type: 'body', row, rowIndex, column, columnIndex })">
37
37
  <view :class="['table-cell', column.align ? `align-${column.align}` : '', getCellClass({ type: 'body', row, rowIndex, column, columnIndex })]">
38
38
  <text v-if="column.type === 'seq'">{{ rowIndex + 1 }}</text>
39
39
  <text v-else-if="column.cellRender && column.cellRender.name === 'Underline'" class="is-underline">{{ getCellValue({ type: 'body', row, rowIndex, column, columnIndex }) }}</text>
@@ -95,10 +95,6 @@ export default {
95
95
  columns: Array,
96
96
  showMore: Boolean,
97
97
  loadStatus: String,
98
- rowConfig: {
99
- type: Object,
100
- defaule: () => ({})
101
- },
102
98
  sortConfig: {
103
99
  type: Object,
104
100
  defaule: () => ({})
@@ -222,14 +218,6 @@ export default {
222
218
  }
223
219
  return ''
224
220
  },
225
- getColTdStyles (column) {
226
- const wSty = `width: ${this.getColWidth(column)};`
227
- let hSty = ''
228
- if (this.rowConfig && this.rowConfig.height) {
229
- hSty = `height: ${this.rowConfig.height};`
230
- }
231
- return `${wSty || ''}${hSty || ''}`
232
- },
233
221
  sort (fieldOrColumn, order) {
234
222
  const column = fieldOrColumn ? this.tableColumn.find(item => item.colid === fieldOrColumn.colid || item.field === fieldOrColumn) : null
235
223
  if (column) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mali-applet-ui",
3
- "version": "1.0.119",
3
+ "version": "1.0.121",
4
4
  "description": "码里云小程序组件库",
5
5
  "files": [
6
6
  "lib",