mali-applet-ui 0.1.32 → 0.1.33

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.
@@ -12,8 +12,10 @@
12
12
  </scroll-view>
13
13
  </view>
14
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>
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>
@@ -172,6 +174,9 @@ export default {
172
174
  background: #fff;
173
175
  transition: transform 0.25s ease, transform 0.3s ease;
174
176
  }
177
+ .ml-popup-header {
178
+ padding: 10rpx 20rpx;
179
+ }
175
180
  .ml-popup-header-title {
176
181
  text-align: center;
177
182
  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.33",
4
4
  "description": "码里云小程序组件库",
5
5
  "files": [
6
6
  "components",