exportModal.vue 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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="hideModal2">
  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="saveAs">
  15. 另存为</view>
  16. <view class="action margin-0 solid-left text-blue" @tap="cancel">取消</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. saveAs() {
  31. // alert(1)
  32. // this.$emit('fatherHideModal');
  33. this.$emit('fSaveAsData')
  34. },
  35. cancel(){
  36. alert(1)
  37. this.$emit('fatherHideModal');
  38. }
  39. }
  40. }
  41. </script>
  42. <style>
  43. </style>