From fb5561dfc2b03bbdd2b9ed9d113f4edb659f7428 Mon Sep 17 00:00:00 2001 From: "BugMaker.Huang" Date: Thu, 28 Mar 2024 14:29:22 +0800 Subject: [PATCH] docs(modal): add html source code --- docs/example/Modal/demos/basicUsage.tsx | 4 +- docs/example/Modal/demos/buttonStatus.tsx | 6 +- docs/example/Modal/demos/buttonText.tsx | 6 +- docs/example/Modal/demos/customFooter.tsx | 6 +- docs/example/Modal/demos/customWidth.tsx | 4 +- docs/example/Modal/demos/overflow.tsx | 6 +- public/Modal/basicUsage.html | 26 +++++++++ public/Modal/buttonStatus.html | 32 +++++++++++ public/Modal/buttonText.html | 24 ++++++++ public/Modal/customFooter.html | 34 +++++++++++ public/Modal/customWidth.html | 70 +++++++++++++++++++++++ public/Modal/overflow.html | 26 +++++++++ 12 files changed, 228 insertions(+), 16 deletions(-) create mode 100644 public/Modal/basicUsage.html create mode 100644 public/Modal/buttonStatus.html create mode 100644 public/Modal/buttonText.html create mode 100644 public/Modal/customFooter.html create mode 100644 public/Modal/customWidth.html create mode 100644 public/Modal/overflow.html diff --git a/docs/example/Modal/demos/basicUsage.tsx b/docs/example/Modal/demos/basicUsage.tsx index 85f471d1..93da8419 100644 --- a/docs/example/Modal/demos/basicUsage.tsx +++ b/docs/example/Modal/demos/basicUsage.tsx @@ -9,7 +9,7 @@ export default function BasicUsage() { const [visible, setVisible] = useState(false); return ( -
+ <> @@ -28,6 +28,6 @@ export default function BasicUsage() {
Some contents...
Some contents...
-
+ ); } diff --git a/docs/example/Modal/demos/buttonStatus.tsx b/docs/example/Modal/demos/buttonStatus.tsx index e9e90bfc..749c921f 100644 --- a/docs/example/Modal/demos/buttonStatus.tsx +++ b/docs/example/Modal/demos/buttonStatus.tsx @@ -4,14 +4,14 @@ */ import { Button, Message, Modal } from '@banana-ui/react'; -import React, { useState } from 'react'; +import { useState } from 'react'; export default function ButtonStatus() { const [visible, setVisible] = useState(false); const [loading, setLoading] = useState(false); return ( -
+ <> @@ -37,6 +37,6 @@ export default function ButtonStatus() {
Some contents...
Some contents...
-
+ ); } diff --git a/docs/example/Modal/demos/buttonText.tsx b/docs/example/Modal/demos/buttonText.tsx index e6f04c68..69706d91 100644 --- a/docs/example/Modal/demos/buttonText.tsx +++ b/docs/example/Modal/demos/buttonText.tsx @@ -4,13 +4,13 @@ */ import { Button, Message, Modal } from '@banana-ui/react'; -import React, { useState } from 'react'; +import { useState } from 'react'; export default function ButtonText() { const [visible, setVisible] = useState(false); return ( -
+ <> @@ -29,6 +29,6 @@ export default function ButtonText() { > 是否开通连续包月? -
+ ); } diff --git a/docs/example/Modal/demos/customFooter.tsx b/docs/example/Modal/demos/customFooter.tsx index ee0f3004..7ec45565 100644 --- a/docs/example/Modal/demos/customFooter.tsx +++ b/docs/example/Modal/demos/customFooter.tsx @@ -4,13 +4,13 @@ */ import { Button, Message, Modal } from '@banana-ui/react'; -import React, { useState } from 'react'; +import { useState } from 'react'; export default function CustomFooter() { const [visible, setVisible] = useState(false); return ( -
+ <> @@ -33,6 +33,6 @@ export default function CustomFooter() {
- + ); } diff --git a/docs/example/Modal/demos/customWidth.tsx b/docs/example/Modal/demos/customWidth.tsx index f27a353d..930657f2 100644 --- a/docs/example/Modal/demos/customWidth.tsx +++ b/docs/example/Modal/demos/customWidth.tsx @@ -12,7 +12,7 @@ export default function CustomWidth() { const [visible3, setVisible3] = useState(false); return ( -
+ <> @@ -67,6 +67,6 @@ export default function CustomWidth() {
Some contents...
Some contents...
-
+ ); } diff --git a/docs/example/Modal/demos/overflow.tsx b/docs/example/Modal/demos/overflow.tsx index e3022fc8..6730b6bc 100644 --- a/docs/example/Modal/demos/overflow.tsx +++ b/docs/example/Modal/demos/overflow.tsx @@ -4,13 +4,13 @@ */ import { Button, Message, Modal } from '@banana-ui/react'; -import React, { useState } from 'react'; +import { useState } from 'react'; export default function Overflow() { const [visible, setVisible] = useState(false); return ( -
+ <> @@ -30,6 +30,6 @@ export default function Overflow() { Hi~ o(* ̄▽ ̄*)ブ
- + ); } diff --git a/public/Modal/basicUsage.html b/public/Modal/basicUsage.html new file mode 100644 index 00000000..6352cc58 --- /dev/null +++ b/public/Modal/basicUsage.html @@ -0,0 +1,26 @@ + + Open Modal + + +
Some contents...
+
Some contents...
+
Some contents...
+
+ + \ No newline at end of file diff --git a/public/Modal/buttonStatus.html b/public/Modal/buttonStatus.html new file mode 100644 index 00000000..dbf25ed6 --- /dev/null +++ b/public/Modal/buttonStatus.html @@ -0,0 +1,32 @@ + + 自定义按钮状态 + + +
Some contents...
+
Some contents...
+
Some contents...
+
+ + \ No newline at end of file diff --git a/public/Modal/buttonText.html b/public/Modal/buttonText.html new file mode 100644 index 00000000..29fa1459 --- /dev/null +++ b/public/Modal/buttonText.html @@ -0,0 +1,24 @@ + + Open Modal + + + 是否开通连续包月? + + + \ No newline at end of file diff --git a/public/Modal/customFooter.html b/public/Modal/customFooter.html new file mode 100644 index 00000000..ecbf3e8d --- /dev/null +++ b/public/Modal/customFooter.html @@ -0,0 +1,34 @@ +自定义Footer + +

是否删除数据?

+
+ 取消 + 删除 +
+
+ + \ No newline at end of file diff --git a/public/Modal/customWidth.html b/public/Modal/customWidth.html new file mode 100644 index 00000000..d7f1740b --- /dev/null +++ b/public/Modal/customWidth.html @@ -0,0 +1,70 @@ +一个300px宽度的Modal +一个50vw宽度的Modal +

你甚至可以使用`css变量`来设置宽度

+使用css变量设置宽度 + + +

Some contents...

+

Some contents...

+

Some contents...

+
+ + +

Some contents...

+

Some contents...

+

Some contents...

+
+ + +

Some contents...

+

Some contents...

+

Some contents...

+
+ + \ No newline at end of file diff --git a/public/Modal/overflow.html b/public/Modal/overflow.html new file mode 100644 index 00000000..f6b8a092 --- /dev/null +++ b/public/Modal/overflow.html @@ -0,0 +1,26 @@ +Open Modal + + +
+
往下滚动试试~👇🏻👇👇🏻👇👇🏻👇
+ Hi~ o(* ̄▽ ̄*)ブ +
+
+ + \ No newline at end of file