DialogStopSse.vue 559 B

123456789101112131415161718192021222324252627282930
  1. <template>
  2. <div class="stop-sse">
  3. <a-button class="stop-btn" @click="stopSse">
  4. <img class="icon" src="../../assets/chat/stop-1.png" alt="" />
  5. 停止响应
  6. </a-button>
  7. </div>
  8. </template>
  9. <script setup>
  10. const emit = defineEmits(['stopResponse']);
  11. const stopSse = () => {
  12. emit('stopResponse');
  13. };
  14. </script>
  15. <style scoped>
  16. .stop-sse {
  17. text-align: center;
  18. }
  19. .stop-btn {
  20. width: 113px;
  21. height: 36px;
  22. border-radius: 12px;
  23. background-color: var(--color-bg-1);
  24. margin-bottom: 10px;
  25. .icon {
  26. margin-right: 3px;
  27. }
  28. }
  29. </style>