diff --git a/src/index.scss b/src/index.scss index b0bef71b476a08caa5c79db60b60da92d871e281..09f35f31e4954a75c97632b18b535dfd84725b1e 100644 --- a/src/index.scss +++ b/src/index.scss @@ -4,6 +4,7 @@ margin: 0; padding: 0; box-sizing: border-box; + font-size: 12px; } html { diff --git a/src/pages/Desktop/StartToolsBar/DateTime/index.module.scss b/src/pages/Desktop/StartToolsBar/DateTime/index.module.scss new file mode 100644 index 0000000000000000000000000000000000000000..6ca657b20d87141439f88f34175cb275c4f670d5 --- /dev/null +++ b/src/pages/Desktop/StartToolsBar/DateTime/index.module.scss @@ -0,0 +1,7 @@ +.dateTimeBox { + padding-left: 8px; + width: 66px; + font-size: 12px; + font-weight: lighter; + user-select: none; +} diff --git a/src/pages/Desktop/StartToolsBar/DateTime/index.tsx b/src/pages/Desktop/StartToolsBar/DateTime/index.tsx new file mode 100644 index 0000000000000000000000000000000000000000..37e62f4a6b35feafcad409564bbe86ed8b6e0b7c --- /dev/null +++ b/src/pages/Desktop/StartToolsBar/DateTime/index.tsx @@ -0,0 +1,63 @@ +import React from 'react' +import styles from './index.module.scss' +import useMethods from '@utils/useMethods' + +interface Time { + year: string + month: string + day: string + hour: string + minute: string + week: string +} + +const DateTime: React.FC = () => { + const [dataTime, setDataTime] = React.useState