hint.vue 786 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <template>
  2. <view class="modal-container" v-if="visible">
  3. <!-- 遮盖罩 -->
  4. <view class="modal-overlay" @click="close"></view>
  5. <!-- 提示栏内容 -->
  6. <view class="modal-content">
  7. <view class="modal-title">{{ title }}</view>
  8. <view class="modal-body">{{ content }}</view>
  9. <view class="modal-buttons">
  10. <button @click="onCancel" class="cancel-btn">{{ cancelText }}</button>
  11. <button @click="onConfirm" class="confirm-btn">{{ confirmText }}</button>
  12. </view>
  13. </view>
  14. </view>
  15. </template>
  16. <script>
  17. export default {
  18. props: {
  19. visible: Boolean,
  20. title: String,
  21. content: String,
  22. confirmText: String,
  23. cancelText: String
  24. },
  25. name:"hint",
  26. data() {
  27. return {
  28. item:'',
  29. };
  30. }
  31. }
  32. </script>
  33. <style>
  34. </style>