import { defineComponent } from 'vue';
import styles from './index.module.less';
import commentBg from './images/tip-bg.png';
import commentTop from './images/tip-dang.png';

export default defineComponent({
  name: 'screen-tips',
  emits: ['confirm'],
  setup(props, { emit }) {
    return () => (
      <div class={styles.commonWork}>
        <img src={commentTop} class={styles.dingPng} alt="" />
        <img src={commentBg} class={styles.downMoveBg} alt="" />
        <h2>发现新版本</h2>

        <div class={styles.header}>系统已更新版本，请刷新界面后继续使用</div>

        <div class={styles.btn} onClick={() => emit('confirm')}>
          立即刷新
        </div>
      </div>
    );
  }
});
