popup-empty.vue 501 B

12345678910111213141516171819202122232425262728293031323334
  1. <template>
  2. <u-popup v-model="show" mask mode="bottom" mask-close-able closeable>
  3. <view class="inner"><slot></slot></view>
  4. </u-popup>
  5. </template>
  6. <script>
  7. export default {
  8. data() {
  9. return {
  10. show: false,
  11. // 数据源
  12. data: {}
  13. };
  14. },
  15. methods: {
  16. // 打开popup
  17. open(data) {
  18. this.data = data;
  19. this.show = true;
  20. },
  21. // 关闭
  22. close() {}
  23. }
  24. };
  25. </script>
  26. <style lang="scss" scoped>
  27. .inner {
  28. padding: 30rpx 30rpx 0 30rpx;
  29. display: flex;
  30. align-items: flex-end;
  31. }
  32. </style>