Skip to content

Commit c15853a

Browse files
committed
基础样式调整
1 parent 93ab25e commit c15853a

8 files changed

+16
-18
lines changed

README.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,19 @@
22

33
## 安装
44

5-
`npm install --save react-widget-popup`
5+
```
6+
npm install --save react-widget-popup
7+
```
68

79
## 使用
810

11+
[![Edit react-widget-popup](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/mystifying-keller-i2xlv?fontsize=14&hidenavigation=1&theme=dark)
12+
913
```jsx
1014
import Popup from 'react-widget-popup';
15+
import 'react-widget-popup/style';
1116

12-
...
13-
14-
render(){
17+
export default function App(){
1518
return (
1619
<Popup
1720
visible={true}
@@ -25,8 +28,6 @@ render(){
2528
)
2629
}
2730

28-
...
29-
3031
```
3132

3233
### Interfaces
@@ -122,10 +123,7 @@ interface PopupProps extends React.HTMLAttributes<any> {
122123

123124
```css
124125
.rw-popup-root {
125-
position: absolute;
126-
left: 0;
127-
top: 0;
128-
right: 0;
126+
/* TODO */
129127
}
130128

131129
.rw-popup {

docs/asset-manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"index.css": "static/css/index.3607361f.chunk.css",
3-
"index.js": "static/js/index.3607361f.chunk.js",
2+
"index.css": "static/css/index.45e9b4e2.chunk.css",
3+
"index.js": "static/js/index.45e9b4e2.chunk.js",
44
"runtime-index.js": "static/js/runtime-index.70097ef2.js",
55
"static/js/2.fa911bdb.chunk.js": "static/js/2.fa911bdb.chunk.js",
66
"index.html": "index.html"

docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<!doctype html><html style="width:100%;height:100%;overflow:hidden"><head><meta charset="utf-8"><title>popup</title><meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1"><style>.demo{width:800px;height:450px;margin:100px auto;background:#fff;font-size:12px;overflow:auto}</style><link href="static/css/index.3607361f.chunk.css" rel="stylesheet"></head><body style="background:#f5f5f5"><div class="demo" id="demo"></div><script src="static/js/runtime-index.70097ef2.js"></script><script src="static/js/2.fa911bdb.chunk.js"></script><script src="static/js/index.3607361f.chunk.js"></script></body></html>
1+
<!doctype html><html style="width:100%;height:100%;overflow:hidden"><head><meta charset="utf-8"><title>popup</title><meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1"><style>.demo{width:800px;height:450px;margin:100px auto;background:#fff;font-size:12px;overflow:auto}</style><link href="static/css/index.45e9b4e2.chunk.css" rel="stylesheet"></head><body style="background:#f5f5f5"><div class="demo" id="demo"></div><script src="static/js/runtime-index.70097ef2.js"></script><script src="static/js/2.fa911bdb.chunk.js"></script><script src="static/js/index.45e9b4e2.chunk.js"></script></body></html>

docs/static/css/index.3607361f.chunk.css renamed to docs/static/css/index.45e9b4e2.chunk.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)