index.tsx 1005 B

12345678910111213141516171819202122232425262728293031323334
  1. import './index.less';
  2. import { defineComponent } from 'vue';
  3. import { Layout } from 'ant-design-vue';
  4. import { GithubFilled } from '@ant-design/icons-vue';
  5. import { DOC_URL, GITHUB_URL, SITE_URL } from '/@/settings/siteSetting';
  6. import { openWindow } from '/@/utils';
  7. import { useI18n } from '/@/hooks/web/useI18n';
  8. export default defineComponent({
  9. name: 'LayoutContent',
  10. setup() {
  11. const { t } = useI18n('layout.footer');
  12. return () => {
  13. return (
  14. <Layout.Footer class="layout-footer">
  15. {() => (
  16. <>
  17. <div class="layout-footer__links">
  18. <a onClick={() => openWindow(SITE_URL)}>{t('onlinePreview')}</a>
  19. <GithubFilled onClick={() => openWindow(GITHUB_URL)} class="github" />
  20. <a onClick={() => openWindow(DOC_URL)}>{t('onlineDocument')}</a>
  21. </div>
  22. <div>Copyright &copy;2020 Vben Admin</div>
  23. </>
  24. )}
  25. </Layout.Footer>
  26. );
  27. };
  28. },
  29. });