mali-applet-ui 0.1.75 → 0.1.76

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-vertical': vertical, 'is-checked': checked, 'is-disabled': disabled}]" @tap="tapEvent">
2
+ <view class="ml-checkbox" :class="[className || '', {'is-vertical': vertical, 'is-checked': checked, 'is-half': indeterminate, '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>
@@ -64,6 +64,9 @@ export default {
64
64
  &.is-checked {
65
65
  color: $uni-color-primary;
66
66
  }
67
+ &.is-half {
68
+ color: $uni-color-primary;
69
+ }
67
70
  &.is-disabled {
68
71
  color: rgba(0,0,0,0.25);
69
72
  }
@@ -178,7 +178,11 @@ export default {
178
178
  transition: transform 0.25s ease, transform 0.3s ease;
179
179
  }
180
180
  .ml-drawer-header {
181
+ display: flex;
182
+ flex-direction: row;
183
+ align-items: center;
181
184
  padding: 10rpx 20rpx;
185
+ min-height: 80rpx;
182
186
  }
183
187
  .ml-drawer-header-title {
184
188
  text-align: center;
@@ -197,6 +201,7 @@ export default {
197
201
  .ml-drawer-footer {
198
202
  display: flex;
199
203
  flex-direction: row;
204
+ align-items: center;
200
205
  padding: 20rpx;
201
206
  }
202
207
  }
@@ -227,8 +227,10 @@ export default {
227
227
  const { value: label } = params
228
228
  if (this.type === 'checkbox') {
229
229
  this.toggleCheckboxRow(label)
230
+ this.$emit('checkbox-change', {})
230
231
  } else if (this.type === 'radio') {
231
232
  this.setRadioRow(label)
233
+ this.$emit('radio-change', {})
232
234
  }
233
235
  }
234
236
  }
@@ -122,8 +122,10 @@ export default {
122
122
  const { value: label } = params
123
123
  if (this.type === 'checkbox') {
124
124
  this.toggleCheckboxRow(label)
125
+ this.$emit('checkbox-change', {})
125
126
  } else if (this.type === 'radio') {
126
127
  this.setRadioRow(label)
128
+ this.$emit('radio-change', {})
127
129
  }
128
130
  }
129
131
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mali-applet-ui",
3
- "version": "0.1.75",
3
+ "version": "0.1.76",
4
4
  "description": "码里云小程序组件库",
5
5
  "files": [
6
6
  "components",