DeleteModal.vue 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <!--
  2. * @FileDescription: DeleteModal
  3. * @Author: kahu
  4. * @Date: 2022/11/3
  5. * @LastEditors: kahu
  6. * @LastEditTime: 2022/11/3
  7. -->
  8. <template>
  9. <div class="content">
  10. <TuiModal
  11. :show="show"
  12. :custom="true"
  13. :fadein="true"
  14. >
  15. <view class="Put-box1">
  16. <view class="text-align fs34 fs-bold">
  17. 温馨提示
  18. </view>
  19. <view class="mar-top-40 text-align">
  20. 您确定删除选中的商品吗?
  21. </view>
  22. <view class="flex-display flex-sp-between">
  23. <view
  24. class="btn"
  25. @click="show = false"
  26. >
  27. 点错了
  28. </view>
  29. <view
  30. class="btn submit"
  31. @click="$emit('confirm')"
  32. >
  33. 确认删除
  34. </view>
  35. </view>
  36. </view>
  37. </TuiModal>
  38. </div>
  39. </template>
  40. <script>
  41. import TuiModal from "../../../../components/modal/modal";
  42. export default {
  43. name: "DeleteModal",
  44. components:{TuiModal},
  45. data() {
  46. return {}
  47. },
  48. model:{
  49. prop: 'showDeleteModal',
  50. event: 'change'
  51. },
  52. props:{
  53. showDeleteModal:{
  54. type:Boolean,
  55. default:()=>false
  56. }
  57. },
  58. computed:{
  59. show:{
  60. get(){
  61. return this.showDeleteModal
  62. },
  63. set(val){
  64. this.$emit('change',val)
  65. }
  66. }
  67. },
  68. methods: {}
  69. }
  70. </script>
  71. <style
  72. lang="scss"
  73. scoped
  74. >
  75. .Put-box1 {
  76. .btn {
  77. text-align: center;
  78. margin-top: 40rpx;
  79. border: 1px solid #333333;
  80. height: 80upx;
  81. line-height: 80upx;
  82. width: 240upx;
  83. color: #333333;
  84. }
  85. .submit {
  86. background-color: #333333;
  87. color: #FFEBC4;
  88. }
  89. }
  90. </style>