Zpopup.vue 689 B

12345678910111213141516171819202122232425262728
  1. <script setup lang="ts">
  2. withDefaults(defineProps<{
  3. bg?: string
  4. showfooter?: boolean
  5. zindex?: number
  6. }>(), {
  7. bg: '#f6f6f6',
  8. showfooter: true,
  9. zindex: 999,
  10. })
  11. const show = defineModel({ default: false })
  12. </script>
  13. <template>
  14. <wd-popup v-model="show" lock-scroll custom-style="border-radius:32rpx;32rpx 0rpx 0rpx" :z-index="zindex" position="bottom">
  15. <view :style="{ background: bg }">
  16. <slot />
  17. <view class="h150rpx" />
  18. <view v-if="showfooter" class="ios footer fixed bottom-0 left-0 box-border w-full rounded-t-32rpx bg-white px24rpx pt20rpx">
  19. <slot name="footer" />
  20. </view>
  21. </view>
  22. </wd-popup>
  23. </template>
  24. <style scoped>
  25. </style>