diff --git a/src/components/date-picker/body.tsx b/src/components/Calendar/body.tsx similarity index 100% rename from src/components/date-picker/body.tsx rename to src/components/Calendar/body.tsx diff --git a/src/components/date-picker/date-picker-doc.mdx b/src/components/Calendar/calendar-doc.mdx similarity index 92% rename from src/components/date-picker/date-picker-doc.mdx rename to src/components/Calendar/calendar-doc.mdx index 908919b9..c78af829 100644 --- a/src/components/date-picker/date-picker-doc.mdx +++ b/src/components/Calendar/calendar-doc.mdx @@ -3,7 +3,7 @@ 日历组件 import { Story, Meta, ArgsTable, Source } from '@storybook/addon-docs/blocks'; -import { DatePicker } from './datePicker'; +import { DatePicker } from './calendar'; import dedent from 'ts-dedent'; ; diff --git a/src/components/date-picker/datePicker.stories.tsx b/src/components/Calendar/calendar.stories.tsx similarity index 87% rename from src/components/date-picker/datePicker.stories.tsx rename to src/components/Calendar/calendar.stories.tsx index bd926301..4b22d277 100644 --- a/src/components/date-picker/datePicker.stories.tsx +++ b/src/components/Calendar/calendar.stories.tsx @@ -1,7 +1,7 @@ import React from 'react' import { Story, Meta } from '@storybook/react' -import DatePicker from './datePicker' -import DatePickerDoc from './date-picker-doc.mdx' +import DatePicker from './calendar' +import DatePickerDoc from './calendar-doc.mdx' const BaseDatePicker = () =>
export default { diff --git a/src/components/date-picker/datePicker.tsx b/src/components/Calendar/calendar.tsx similarity index 100% rename from src/components/date-picker/datePicker.tsx rename to src/components/Calendar/calendar.tsx diff --git a/src/components/date-picker/header.tsx b/src/components/Calendar/header.tsx similarity index 100% rename from src/components/date-picker/header.tsx rename to src/components/Calendar/header.tsx diff --git a/src/components/Calendar/index.tsx b/src/components/Calendar/index.tsx new file mode 100644 index 00000000..cfb6496b --- /dev/null +++ b/src/components/Calendar/index.tsx @@ -0,0 +1,3 @@ +import DatePicker from './calendar' + +export default DatePicker diff --git a/src/components/date-picker/style.scss b/src/components/Calendar/style.scss similarity index 100% rename from src/components/date-picker/style.scss rename to src/components/Calendar/style.scss diff --git a/src/components/date-picker/style.ts b/src/components/Calendar/style.ts similarity index 100% rename from src/components/date-picker/style.ts rename to src/components/Calendar/style.ts diff --git a/src/components/date-picker/utils/timer.js b/src/components/Calendar/utils/timer.js similarity index 100% rename from src/components/date-picker/utils/timer.js rename to src/components/Calendar/utils/timer.js diff --git a/src/components/date-picker/utils/title.js b/src/components/Calendar/utils/title.js similarity index 100% rename from src/components/date-picker/utils/title.js rename to src/components/Calendar/utils/title.js diff --git a/src/components/date-picker/index.tsx b/src/components/date-picker/index.tsx deleted file mode 100644 index 1a3f373d..00000000 --- a/src/components/date-picker/index.tsx +++ /dev/null @@ -1,3 +0,0 @@ -import DatePicker from './datePicker' - -export default DatePicker