Skip to content

Commit

Permalink
docs: online demo
Browse files Browse the repository at this point in the history
  • Loading branch information
leonwgc committed Apr 22, 2024
1 parent 5360cf8 commit dba3760
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 10 deletions.
8 changes: 1 addition & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

1. 基于 React hooks
2. 体积小,不依赖第三方库
3. 支持静态调用

## Props 定义

Expand Down Expand Up @@ -35,11 +34,6 @@ type Props = {
maskClass?: string,
/** 弹框自定义偏移 type Offset = { x?: number; y?: number }; */
offset?: Offset,
/**
* 弹框挂载节点
* @default document.body
*/
mountContainer?: MountContainerType,
/**
* 点击外部区域是否关闭
* @default true
Expand All @@ -51,7 +45,7 @@ type Props = {
* */
closeOnMaskClick?: boolean,
/**
* 入场动画是否开启
* 入场过渡动画是否开启
* @default true
* */
transition?: boolean,
Expand Down
2 changes: 1 addition & 1 deletion demo/App1.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export default function App() {
</AutoCenter>
</DemoBlock>

<DemoBlock title="Scroll">
<DemoBlock title="Scroll (the green block is scrollable)">
<div
style={{
height: 200,
Expand Down
2 changes: 1 addition & 1 deletion docs/index.bb8ae1.js → docs/index.674c96.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang="zh-cn"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no,minimal-ui,viewport-fit=cover"/><meta name="format-detection" content="telephone=no, email=no"/><meta name="apple-mobile-web-app-capable" content="yes"/><meta name="apple-touch-fullscreen" content="yes"/><title></title><script defer="defer" src="runtime.10ec0e.js"></script><script defer="defer" src="vendor.8bb074.js"></script><script defer="defer" src="index.bb8ae1.js"></script></head><body style="font-size:14px"><div id="root"></div></body></html>
<!doctype html><html lang="zh-cn"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no,minimal-ui,viewport-fit=cover"/><meta name="format-detection" content="telephone=no, email=no"/><meta name="apple-mobile-web-app-capable" content="yes"/><meta name="apple-touch-fullscreen" content="yes"/><title></title><script defer="defer" src="runtime.10ec0e.js"></script><script defer="defer" src="vendor.8bb074.js"></script><script defer="defer" src="index.674c96.js"></script></head><body style="font-size:14px"><div id="root"></div></body></html>

0 comments on commit dba3760

Please sign in to comment.