index.tsx 886 B

12345678910111213141516171819202122232425262728293031323334353637
  1. import { css } from "@linaria/core";
  2. import { queenApi } from "queenjs";
  3. import { defineComponent } from "vue";
  4. import LoginLayout from "../components/LoginLayout";
  5. import LoginTabs from "../components/LoginTabs";
  6. import ResetForm from "../components/ResetForm";
  7. export default defineComponent(() => {
  8. return () => (
  9. <LoginLayout>
  10. <div class={styleRoot}>
  11. <LoginTabs options={[{ label: "忘记密码", value: "" }]} />
  12. <ResetForm />
  13. <a class="backLoginLink" onClick={() => queenApi.router.back()}>
  14. 返回登录
  15. </a>
  16. </div>
  17. </LoginLayout>
  18. );
  19. });
  20. const styleRoot = css`
  21. width: 490px;
  22. padding: 44px;
  23. background-color: @inf-component-bg;
  24. .backLoginLink {
  25. display: flex;
  26. margin: 0 auto;
  27. width: 120px;
  28. align-items: center;
  29. color: @inf-primary-color;
  30. svg {
  31. font-size: 30px;
  32. }
  33. }
  34. `;