exportModal.vue 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <template>
  2. <view class="cu-modal export-modal" :class="modalName=='DialogModal'?'show':''">
  3. <view class="cu-dialog">
  4. <view class="cu-bar bg-white justify-end">
  5. <view class="action" @tap="cCancel">
  6. <text class="cuIcon-close"></text>
  7. </view>
  8. </view>
  9. <view class="padding-sm bg-white">
  10. <image src="../../../static/ok.png" style="width:100rpx;height:100rpx"></image>
  11. <view style="margin:20rpx 0">已导出文件,是否打开?</view>
  12. </view>
  13. <view class="cu-bar operate bg-white" style="min-height: 100rpx;">
  14. <view class="action margin-0 " @tap="cSaveAsData">
  15. 另存为</view>
  16. <view class="action margin-0 solid-left text-blue" @tap="cCancel">取消</view>
  17. </view>
  18. </view>
  19. </view>
  20. </template>
  21. <script>
  22. export default {
  23. props: ['modalName'],
  24. data() {
  25. return {
  26. // modalName: null,
  27. }
  28. },
  29. methods: {
  30. cSaveAsData() {
  31. this.$emit('f-SaveAsData')
  32. },
  33. cCancel(){
  34. alert(1)
  35. this.$emit('f-HideModel');
  36. }
  37. }
  38. }
  39. </script>
  40. <style>
  41. </style>