mali-applet-ui 0.0.78 → 0.0.79

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.
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <view class="ml-table" :class="className">
3
- <view class="ml-table-top-warpper">
3
+ <view v-if="$slots.top" class="ml-table-top-warpper">
4
4
  <slot name="top"></slot>
5
5
  </view>
6
6
  <view class="ml-table-warpper" :style="tableStyle">
@@ -64,7 +64,7 @@
64
64
  </view>
65
65
  </view>
66
66
  </view>
67
- <view class="ml-table-bottom-warpper">
67
+ <view v-if="$slots.bottom" class="ml-table-bottom-warpper">
68
68
  <slot name="bottom"></slot>
69
69
  </view>
70
70
  </view>
@@ -241,12 +241,15 @@ export default {
241
241
  <style lang="scss">
242
242
  .ml-table {
243
243
  margin-top: 20rpx;
244
- overflow: auto;
245
244
  width: 100%;
246
245
  font-size: 26rpx;
247
246
  box-shadow: 0rpx 0rpx 10rpx -3rpx rgba(0, 0, 0, 0.2);
248
247
  background: #fff;
249
248
 
249
+ .ml-table-warpper {
250
+ overflow: auto;
251
+ }
252
+
250
253
  // height: 90vh;
251
254
  .table-header {
252
255
  position: sticky;
@@ -327,5 +330,12 @@ export default {
327
330
  .underline {
328
331
  text-decoration: underline;
329
332
  }
333
+
334
+ .ml-table-bottom-warpper {
335
+ display: flex;
336
+ flex-direction: column;
337
+ min-height: 70rpx;
338
+ justify-content: center;
339
+ }
330
340
  }
331
341
  </style>
@@ -1,6 +1,14 @@
1
1
  <template>
2
2
  <text class="ml-text" :class="[className || '', status ? `status-${status}` : '', {'is-underline': underline}]">
3
- <slot>{{ content }}</slot>
3
+ <text v-if="prefixIcon && prefixIcon !== 'none'" class="ml-text-left-icon">
4
+ <ml-icon :className="prefixIcon"></ml-icon>
5
+ </text>
6
+ <text class="ml-text-content">
7
+ <slot>{{ content }}</slot>
8
+ </text>
9
+ <text v-if="suffixIcon && suffixIcon !== 'none'" class="ml-text-right-icon">
10
+ <ml-icon :className="suffixIcon"></ml-icon>
11
+ </text>
4
12
  </text>
5
13
  </template>
6
14
 
@@ -10,6 +18,8 @@ export default {
10
18
  props: {
11
19
  status: String,
12
20
  content: String,
21
+ prefixIcon: String,
22
+ suffixIcon: String,
13
23
  underline: Boolean,
14
24
  className: String
15
25
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mali-applet-ui",
3
- "version": "0.0.78",
3
+ "version": "0.0.79",
4
4
  "description": "码里云小程序组件库",
5
5
  "files": [
6
6
  "components",