mali-applet-ui 1.0.35 → 1.0.37

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.
@@ -76,5 +76,8 @@ export default {
76
76
  flex-shrink: 0;
77
77
  }
78
78
  }
79
+ .ml-card-body {
80
+ position: relative;
81
+ }
79
82
  }
80
83
  </style>
@@ -74,6 +74,7 @@ export default {
74
74
  .ml-chunk-group-content {
75
75
  display: flex;
76
76
  flex-direction: row;
77
+ flex-wrap: wrap;
77
78
  border-radius: $ml-border-radius;
78
79
  }
79
80
  &.is-header {
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <view class="ml-chunk-item" :class="[className || '', span && !width ? `span-${span}` : '', align ? `align-${align}` : '', {'is-fixed': width, 'is-vertical': isVertical}]" :style="styles" @click="clickEvent" @tap="tapEvent">
2
+ <view class="ml-chunk-item" :class="[className || '', span && !width ? `span-${span}` : '', align ? `align-${align}` : '', {'is-fixed': span || width, 'is-vertical': isVertical}]" :style="styles" @click="clickEvent" @tap="tapEvent">
3
3
  <slot></slot>
4
4
  </view>
5
5
  </template>
@@ -58,7 +58,7 @@ export default {
58
58
  .ml-chunk-item {
59
59
  display: inline-flex;
60
60
  flex-direction: column;
61
- padding: 20rpx;
61
+ padding: 16rpx;
62
62
  line-height: 50rpx;
63
63
  font-size: $ml-describe-font-size;
64
64
  $spans: 4.16667%, 8.33333%, 12.5%, 16.66667%, 20.83333%, 25%, 29.16667%, 33.33333%,
@@ -69,6 +69,7 @@ export default {
69
69
  }
70
70
  &.align-center {
71
71
  text-align: center;
72
+ padding: 16rpx 0;
72
73
  }
73
74
  &.align-right {
74
75
  text-align: right;
@@ -27,9 +27,20 @@ export default {
27
27
  width: String,
28
28
  className: String
29
29
  },
30
+ inject: {
31
+ row: {
32
+ from: 'mlRow',
33
+ default: null
34
+ }
35
+ },
30
36
  computed: {
31
37
  styles () {
32
- return this.width ? `width: ${this.width};` : ''
38
+ const wSys = this.width ? `width: ${this.width};` : ''
39
+ let pdSys = ''
40
+ if (this.row && this.row.gutter) {
41
+ pdSys = `padding-left: ${this.row.gutter}; padding-right: ${this.row.gutter}`
42
+ }
43
+ return `${wSys}${pdSys}`
33
44
  }
34
45
  },
35
46
  methods: {
@@ -11,10 +11,16 @@ export default {
11
11
  virtualHost: true
12
12
  },
13
13
  props: {
14
+ gutter: [String, Number],
14
15
  vertical: Boolean,
15
16
  status: String,
16
17
  className: String
17
18
  },
19
+ provide () {
20
+ return {
21
+ mlRow: this
22
+ }
23
+ },
18
24
  methods: {
19
25
  tapEvent () {
20
26
  this.$emit('tap', {})
@@ -0,0 +1,33 @@
1
+ <template>
2
+ <view class="ml-tab-container" :class="[className || '']">
3
+ <slot></slot>
4
+ </view>
5
+ </template>
6
+
7
+ <script>
8
+ export default {
9
+ name: 'MlTabContainer',
10
+ props: {
11
+ value: [String, Number],
12
+ className: String
13
+ },
14
+ provide () {
15
+ return {
16
+ mlTabs: this
17
+ }
18
+ },
19
+ data () {
20
+ return {
21
+ tabList: []
22
+ }
23
+ }
24
+ }
25
+ </script>
26
+
27
+ <style lang="scss">
28
+ .ml-tab-container {
29
+ position: relative;
30
+ font-size: $ml-base-font-size;
31
+ overflow: auto;
32
+ }
33
+ </style>
@@ -283,6 +283,9 @@ export default {
283
283
  top: 0;
284
284
  z-index: 1;
285
285
  }
286
+ .table-body-top {
287
+ background: #fff;
288
+ }
286
289
  .table-th {
287
290
  display: inline-block;
288
291
  height: 70rpx;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mali-applet-ui",
3
- "version": "1.0.35",
3
+ "version": "1.0.37",
4
4
  "description": "码里云小程序组件库",
5
5
  "files": [
6
6
  "lib",