index.tsx 685 B

12345678910111213141516171819202122232425262728
  1. import { defineComponent } from "vue";
  2. import styles from "./index.module.less";
  3. import icons from "./index.json";
  4. export default defineComponent({
  5. name: "evaluat-audio",
  6. props: {
  7. tip: {
  8. type: String,
  9. default: () => ''
  10. }
  11. },
  12. emits: ["close"],
  13. setup(props, { emit }) {
  14. return () => (
  15. <div class={styles.fraction}>
  16. <div class={styles.title}>
  17. <img src={icons.title} />
  18. </div>
  19. <div class={styles.tip}>{props.tip}</div>
  20. <div class={styles.btns}>
  21. <img src={icons.cancel} class={styles.btn} onClick={() => emit("close")} />
  22. <img src={icons.confirm} class={styles.btn} onClick={() => emit("close", true)} />
  23. </div>
  24. </div>
  25. );
  26. },
  27. });