廓形仪rn版本-技术调研
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.1 KiB

  1. import { tva } from '@gluestack-ui/nativewind-utils/tva';
  2. import { isWeb } from '@gluestack-ui/nativewind-utils/IsWeb';
  3. const captionTableStyle = isWeb ? 'caption-bottom' : '';
  4. export const tableStyle = tva({
  5. base: `table border-collapse border-collapse w-[800px]`,
  6. });
  7. export const tableHeaderStyle = tva({
  8. base: '',
  9. });
  10. export const tableBodyStyle = tva({
  11. base: '',
  12. });
  13. export const tableFooterStyle = tva({
  14. base: '',
  15. });
  16. export const tableHeadStyle = tva({
  17. base: 'flex-1 px-6 py-[14px] text-left font-bold text-[16px] leading-[22px] text-typography-800 font-roboto',
  18. });
  19. export const tableRowStyleStyle = tva({
  20. base: 'border-0 border-b border-solid border-outline-200 bg-background-0',
  21. variants: {
  22. isHeaderRow: {
  23. true: '',
  24. },
  25. isFooterRow: {
  26. true: 'border-b-0 ',
  27. },
  28. },
  29. });
  30. export const tableDataStyle = tva({
  31. base: 'flex-1 px-6 py-[14px] text-left text-[16px] font-medium leading-[22px] text-typography-800 font-roboto',
  32. });
  33. export const tableCaptionStyle = tva({
  34. base: `${captionTableStyle} px-6 py-[14px] text-[16px] font-normal leading-[22px] text-typography-800 bg-background-50 font-roboto`,
  35. });