Skip to content

Commit d844b86

Browse files
authored
chore: use dumi (#215)
* chore: use dumi * add * Update .eslintrc.js
1 parent 13a9a48 commit d844b86

19 files changed

+264
-135
lines changed

.editorconfig

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
1-
# top-most EditorConfig file
1+
# http://editorconfig.org
22
root = true
33

4-
# Unix-style newlines with a newline ending every file
5-
[*.{js,css}]
6-
end_of_line = lf
7-
insert_final_newline = true
4+
[*]
85
indent_style = space
96
indent_size = 2
7+
end_of_line = lf
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true
11+
12+
[*.md]
13+
trim_trailing_whitespace = false
14+
15+
[Makefile]
16+
indent_style = tab

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,9 @@ coverage
3434
yarn.lock
3535
.storybook
3636
.doc
37+
38+
# umi
39+
.umi
40+
.umi-production
41+
.umi-test
42+
.env.local

.umirc.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// more config: https://d.umijs.org/config
2+
import { defineConfig } from 'dumi';
3+
4+
export default defineConfig({
5+
title: 'rc-dialog',
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+
`a img + svg {
14+
display: none;
15+
}`
16+
]
17+
});

README.md

Lines changed: 0 additions & 117 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
docs/index.md

HISTORY.md renamed to docs/changelog.md

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,37 @@
1-
# History
2-
----
1+
# Changelog
2+
3+
## 8.4.4
4+
5+
`2020-12-03`
6+
7+
- fix: dialog dont close when mouseDown in content and mouseUp in wrapper. [#210](https://github.com/react-component/dialog/pull/210)
8+
9+
- chore: Should not re-render when dialog is invisible. [#212](https://github.com/react-component/dialog/pull/212)
10+
11+
12+
## 8.4.3
13+
14+
`2020-10-21`
15+
16+
- chore: support react 17. [#207](https://github.com/react-component/dialog/pull/207)
17+
18+
## 8.4.2
19+
20+
`2020-10-14`
21+
22+
- fix: Dialog should not auto destroy. [#206](https://github.com/react-component/dialog/pull/206)
23+
24+
## 8.4.1
25+
26+
`2020-10-11`
27+
28+
- fix: Portal event bubble. [#204](https://github.com/react-component/dialog/pull/204)
29+
30+
## 8.4.0
31+
32+
`2020-09-29`
33+
34+
- refactor: Use `rc-motion`. [#203](https://github.com/react-component/dialog/pull/203)
335

436
## 8.3.4 (8.2.2, 8.1.2) / 2020-09-04
537
- fix: prevent scroll behavior when focus trigger. [ant-design/ant-design#26582](https://github.com/ant-design/ant-design/issues/26582)

docs/demo/ant-design.md

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

docs/demo/bootstrap.md

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

docs/demo/draggable.md

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

docs/demo/multiple-Portal.md

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

0 commit comments

Comments
 (0)