Skip to content

Commit 13ca887

Browse files
authored
docs: Move to dumi (#331)
* docs: init dumi * docs: Move to dumi
1 parent 77a271d commit 13ca887

32 files changed

+119
-63
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,8 @@ package-lock.json
3131
coverage/
3232
.doc
3333
.history
34+
# umi
35+
.umi
36+
.umi-production
37+
.umi-test
38+
.env.local

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@ public
1010
_site
1111
.umi
1212
.doc
13+
.umi-production
14+
.umi-test

.umirc.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// more config: https://d.umijs.org/config
2+
import { defineConfig } from 'dumi';
3+
4+
export default defineConfig({
5+
title: 'rc-picker',
6+
favicon:
7+
'https://avatars0.githubusercontent.com/u/9441414?s=200&v=4',
8+
logo:
9+
'https://avatars0.githubusercontent.com/u/9441414?s=200&v=4',
10+
outputPath: '.doc',
11+
exportStatic: {},
12+
styles: [
13+
`
14+
.markdown table {
15+
width: auto !important;
16+
}
17+
`,
18+
]
19+
});

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ render(<Picker />, mountNode);
7676
| getPopupContainer | function(trigger) | | to set the container of the floating layer, while the default is to create a div element in body |
7777
| onChange | Function(date: moment, dateString: string) | | a callback function, can be executed when the selected time is changing |
7878
| onOpenChange | Function(open:boolean) | | called when open/close picker |
79-
| onFocus | (event:React.FocusEvent<HTMLInputElement>) => void | | called like input's on focus |
80-
| onBlur | (event:React.FocusEvent<HTMLInputElement>) => void | | called like input's on blur |
81-
| onKeyDown | (event:React.KeyboardEvent<HTMLInputElement>, preventDefault: () => void) => void | | input on keydown event |
79+
| onFocus | (event:React.FocusEvent\<HTMLInputElement>) => void | | called like input's on focus |
80+
| onBlur | (event:React.FocusEvent\<HTMLInputElement>) => void | | called like input's on blur |
81+
| onKeyDown | (event:React.KeyboardEvent\<HTMLInputElement>, preventDefault: () => void) => void | | input on keydown event |
8282
| direction | String: ltr or rtl | | Layout direction of picker component, it supports RTL direction too. |
8383

8484
### PickerPanel
@@ -103,7 +103,7 @@ render(<Picker />, mountNode);
103103
| renderExtraFooter | (mode) => React.Node | | extra footer |
104104
| onSelect | Function(date: moment) | | a callback function, can be executed when the selected time |
105105
| onPanelChange | Function(value: moment, mode) | | callback when picker panel mode is changed |
106-
| onMouseDown | (event:React.MouseEvent<HTMLInputElement>) => void | | callback when executed onMouseDown evnent |
106+
| onMouseDown | (event:React.MouseEvent\<HTMLInputElement>) => void | | callback when executed onMouseDown evnent |
107107
| direction | String: ltr or rtl | | Layout direction of picker component, it supports RTL direction too. |
108108

109109
### RangePicker

docs/demo/basic.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
## basic
2+
<code src="../examples/basic.tsx">

docs/demo/calendar.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
## calendar
2+
<code src="../examples/calendar.tsx">

docs/demo/customize.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
## customize
2+
<code src="../examples/customize.tsx">

docs/demo/disabledDate.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
## disabledDate
2+
<code src="../examples/disabledDate.tsx">

docs/demo/modes.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
## modes
2+
<code src="../examples/modes.tsx">

docs/demo/panel.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
## panel
2+
<code src="../examples/panel.tsx">

0 commit comments

Comments
 (0)