import { defineComponent, PropType } from "vue";
import styles from './index.module.less'

export default defineComponent({
  name: 'coruseware-tips',
  props: {
    titleName: {
      type: String,
      default: '阶段目标'
    },
    content: {
      type: String,
      default: ''
    }
  },
  emits: ['close'],
  setup(props, { emit }) {
    return () => <div class={styles.container}>
      <i
          class={styles.iconClose}
          onClick={() => (emit("close"))}></i>
      <div class={styles.title}>
        {props.titleName}
      </div>
      <div class={styles.content} v-html={props.content}></div>
    </div>
  }
})