mali-applet-ui 1.0.121 → 1.0.122

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.
@@ -193,7 +193,7 @@ export default {
193
193
  const flowHandlers = this.flowItems.map(item => {
194
194
 
195
195
  return {
196
- copierList: mergeMemberIdsByRoleId(item.copyUsers || []),
196
+ copierList: this.mergeMemberIdsByRoleId(item.copyUsers || []),
197
197
  flowItemSettingId: item.id,
198
198
  userList: this.mergeMemberIdsByRoleId(item.users || [])
199
199
  }
@@ -58,7 +58,7 @@ export default {
58
58
  },
59
59
  computed: {
60
60
  percNum () {
61
- return Math.ceil(XEUtils.toNumber(this.value) / (XEUtils.toNumber(this.max) / 100))
61
+ return Math.ceil(XEUtils.toNumber(this.value) / (Math.max(1, XEUtils.toNumber(this.max)) / 100))
62
62
  },
63
63
  barOpts () {
64
64
  return Object.assign({}, this.barStyle)
@@ -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="{width: getColWidth(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), height: tdHeight}" @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,6 +95,10 @@ export default {
95
95
  columns: Array,
96
96
  showMore: Boolean,
97
97
  loadStatus: String,
98
+ rowConfig: {
99
+ type: Object,
100
+ defaule: () => ({})
101
+ },
98
102
  sortConfig: {
99
103
  type: Object,
100
104
  defaule: () => ({})
@@ -119,6 +123,9 @@ export default {
119
123
  }
120
124
  },
121
125
  computed: {
126
+ rowOpts () {
127
+ return this.rowConfig ? { ...this.rowConfig } : {}
128
+ },
122
129
  sortOpts () {
123
130
  return this.sortConfig ? { ...this.sortConfig } : {}
124
131
  },
@@ -127,6 +134,9 @@ export default {
127
134
  },
128
135
  colMinWidth () {
129
136
  return Math.max(20, XEUtils.floor(100 / this.tableColumn.length, 2))
137
+ },
138
+ tdHeight () {
139
+ return this.rowOpts.height ? `${this.rowOpts.height};` : '84rpx'
130
140
  }
131
141
  },
132
142
  watch: {
@@ -272,7 +282,7 @@ export default {
272
282
  .ml-table {
273
283
  display: block;
274
284
  width: 100%;
275
- font-size: 26rpx;
285
+ font-size: $ml-base-font-size;
276
286
  box-shadow: 0rpx 0rpx 10rpx -3rpx rgba(0, 0, 0, 0.2);
277
287
  background: #fff;
278
288
  .ml-table-warpper {
@@ -285,11 +295,15 @@ export default {
285
295
  }
286
296
  .table-body-top {
287
297
  background: #fff;
298
+ .table-td {
299
+ height: 84rpx;
300
+ line-height: 84rpx;
301
+ }
288
302
  }
289
303
  .table-th {
290
304
  display: inline-flex;
291
- height: 70rpx;
292
- line-height: 70rpx;
305
+ height: 88rpx;
306
+ line-height: 88rpx;
293
307
  color: #000000;
294
308
  text-align: center;
295
309
  overflow: hidden;
@@ -304,13 +318,16 @@ export default {
304
318
  }
305
319
  }
306
320
  .th-title {
321
+ display: block;
322
+ width: 100%;
323
+ padding: 0 8rpx;
307
324
  overflow: hidden;
308
325
  text-overflow: ellipsis;
309
326
  white-space: nowrap;
310
327
  }
311
328
  }
312
329
  .table-tr {
313
- display: block;
330
+ display: inline-flex;
314
331
  white-space: nowrap;
315
332
  width: 100%;
316
333
  }
@@ -333,7 +350,9 @@ export default {
333
350
  }
334
351
  .table-td {
335
352
  display: inline-flex;
336
- padding: 20rpx 10rpx;
353
+ flex-direction: row;
354
+ align-items: center;
355
+ padding: 0 10rpx;
337
356
  text-align: center;
338
357
  color: rgba(39, 42, 48, 0.65);
339
358
  border-bottom: 1px solid rgba(126, 134, 142, 0.16);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mali-applet-ui",
3
- "version": "1.0.121",
3
+ "version": "1.0.122",
4
4
  "description": "码里云小程序组件库",
5
5
  "files": [
6
6
  "lib",