index.tsx 965 B

123456789101112131415161718192021222324252627282930
  1. import { defineComponent } from "vue";
  2. import styles from "./index.module.less";
  3. import { headImg } from "../image";
  4. import { data as workData } from "/src/page-instrument/custom-plugins/work-index";
  5. export default defineComponent({
  6. name: "workHomePop",
  7. props: {
  8. tip: {
  9. type: String,
  10. default: () => ''
  11. }
  12. },
  13. emits: ["close"],
  14. setup(props, { emit }) {
  15. return () => (
  16. <div class={styles.popBox}>
  17. <img class={styles.boxBg} src={headImg("workHome_bg.png")} />
  18. <img class={styles.boxTitle} src={headImg("workHome_icon1.png")} />
  19. <div class={styles.boxContent}>
  20. <p>本条练习还没达到老师的练习要求,是否继续练习?</p>
  21. <div class={styles.boxBtn}>
  22. <img class={styles.boxClose} src={headImg("workHome_icon3.png")} onClick={() => emit("close")} />
  23. <img class={styles.boxConfirm} src={headImg("workHome_icon2.png")} onClick={() => emit("close", true)} />
  24. </div>
  25. </div>
  26. </div>
  27. );
  28. },
  29. });