mali-applet-ui 0.1.42 → 0.1.44

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,5 +1,5 @@
1
1
  <template>
2
- <view class="ml-checkbox" :class="[className || '', {'is-checked': checked, 'is-disabled': disabled}]" @tap="tapEvent">
2
+ <view class="ml-checkbox" :class="[className || '', {'is-vertical': vertical, 'is-checked': checked, 'is-disabled': disabled}]" @tap="tapEvent">
3
3
  <view class="ml-checkbox-icon">
4
4
  <ml-icon :name="checked ? 'checkbox-checked' : (indeterminate ? 'checkbox-indeterminate' : 'checkbox-unchecked')"></ml-icon>
5
5
  </view>
@@ -25,6 +25,7 @@ export default {
25
25
  },
26
26
  indeterminate: Boolean,
27
27
  disabled: Boolean,
28
+ vertical: Boolean,
28
29
  content: String,
29
30
  className: String
30
31
  },
@@ -59,17 +60,24 @@ export default {
59
60
  &.is-checked {
60
61
  color: $uni-color-primary;
61
62
  }
63
+ &.is-vertical {
64
+ .ml-checkbox-content {
65
+ flex-direction: column;
66
+ }
67
+ }
62
68
  }
63
69
  .ml-checkbox-icon {
64
70
  width: 40rpx;
65
71
  margin-right: 10rpx;
66
- text-align: center;
72
+ align-items: center;
67
73
  font-size: 1.3em;
68
74
  }
69
75
  .ml-checkbox-icon,
70
76
  .ml-checkbox-content {
71
77
  display: inline-flex;
72
- align-items: center;
73
78
  flex-direction: row;
74
79
  }
80
+ .ml-checkbox-content {
81
+ flex-grow: 1;
82
+ }
75
83
  </style>
@@ -147,6 +147,7 @@ export default {
147
147
  <style lang="scss">
148
148
  .ml-list-group {
149
149
  margin-bottom: 20rpx;
150
+ color: $uni-text-color;
150
151
  .ml-list-group-content {
151
152
  display: flex;
152
153
  flex-direction: column;
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <view class="ml-radio" :class="[className || '', {'is-checked': checked, 'is-disabled': disabled}]" @tap="tapEvent">
2
+ <view class="ml-radio" :class="[className || '', {'is-vertical': vertical, 'is-checked': checked, 'is-disabled': disabled}]" @tap="tapEvent">
3
3
  <view class="ml-radio-icon">
4
4
  <ml-icon :name="checked ? 'radio-checked' : 'radio-unchecked'"></ml-icon>
5
5
  </view>
@@ -50,15 +50,23 @@ export default {
50
50
  &.is-checked {
51
51
  color: $uni-color-primary;
52
52
  }
53
+ &.is-vertical {
54
+ .ml-radio-content {
55
+ flex-direction: column;
56
+ }
57
+ }
53
58
  }
54
59
  .ml-radio-icon {
55
60
  margin-right: 10rpx;
61
+ align-items: center;
56
62
  font-size: 1.4em;
57
63
  }
58
64
  .ml-radio-icon,
59
65
  .ml-radio-content {
60
66
  display: inline-flex;
61
- align-items: center;
62
67
  flex-direction: row;
63
68
  }
69
+ .ml-radio-content {
70
+ flex-grow: 1;
71
+ }
64
72
  </style>
@@ -28,6 +28,7 @@ export default {
28
28
  display: flex;
29
29
  flex-direction: row;
30
30
  flex-grow: 1;
31
+ color: $uni-text-color;
31
32
  &.is-vertical {
32
33
  flex-direction: column;
33
34
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mali-applet-ui",
3
- "version": "0.1.42",
3
+ "version": "0.1.44",
4
4
  "description": "码里云小程序组件库",
5
5
  "files": [
6
6
  "components",