mali-applet-ui 0.1.32 → 0.1.34

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.
@@ -11,9 +11,11 @@
11
11
  <slot></slot>
12
12
  </scroll-view>
13
13
  </view>
14
- <view v-if="showConfirmButton || showCancelButton" class="ml-popup-footer">
15
- <ml-button v-if="showCancelButton" width="40%" round @click="cancelEvent">{{ cancelButtonText }}</ml-button>
16
- <ml-button v-if="showConfirmButton" status="primary" width="40%" round @click="confirmEvent">{{ confirmButtonText }}</ml-button>
14
+ <view v-if="showConfirmButton || showCancelButton || showFooter" class="ml-popup-footer">
15
+ <slot name="footer">
16
+ <ml-button v-if="showCancelButton" width="40%" round @click="cancelEvent">{{ cancelButtonText }}</ml-button>
17
+ <ml-button v-if="showConfirmButton" status="primary" width="40%" round @click="confirmEvent">{{ confirmButtonText }}</ml-button>
18
+ </slot>
17
19
  </view>
18
20
  </view>
19
21
  </view>
@@ -31,6 +33,7 @@ export default {
31
33
  type: Boolean,
32
34
  default: true
33
35
  },
36
+ showFooter: Boolean,
34
37
  placement: String,
35
38
  maskClosable: Boolean,
36
39
  showConfirmButton: Boolean,
@@ -172,6 +175,9 @@ export default {
172
175
  background: #fff;
173
176
  transition: transform 0.25s ease, transform 0.3s ease;
174
177
  }
178
+ .ml-popup-header {
179
+ padding: 10rpx 20rpx;
180
+ }
175
181
  .ml-popup-header-title {
176
182
  text-align: center;
177
183
  height: 70rpx;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mali-applet-ui",
3
- "version": "0.1.32",
3
+ "version": "0.1.34",
4
4
  "description": "码里云小程序组件库",
5
5
  "files": [
6
6
  "components",