时空网前端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
906 B

4 years ago
  1. <template>
  2. <!-- 底部弹窗 -->
  3. <view class="cu-modal bottom-modal" :class="modalShow?'show':''" @tap="hideModal">
  4. <view class="cu-dialog">
  5. <view>
  6. <view v-for="(item,index) in content" :key="index" class="solid-bottom padding-tb text-black" @tap="BtnClick(index)">
  7. {{item.text}}
  8. </view>
  9. <view style="background-color: #efefef; height: 10rpx;"></view>
  10. <view class="text-gray padding-tb" @tap="hideModal">取消</view>
  11. </view>
  12. </view>
  13. </view>
  14. </template>
  15. <script>
  16. export default {
  17. props: {
  18. content: {
  19. type: Array,
  20. default: () => {
  21. return []
  22. },
  23. },
  24. modalShow: {
  25. type: Boolean,
  26. default: false
  27. }
  28. },
  29. data() {
  30. return {
  31. }
  32. },
  33. methods: {
  34. //确认
  35. BtnClick(index) {
  36. this.$emit('determine', index)
  37. },
  38. //隐藏弹窗
  39. hideModal() {
  40. this.$emit('hideModal')
  41. },
  42. }
  43. }
  44. </script>
  45. <style scoped>
  46. </style>