From 07baaa2f308374a9fb51ae3dcd9a1e2e99b11fab Mon Sep 17 00:00:00 2001
From: yurj26 <1816387074@qq.com>
Date: Tue, 13 Jun 2023 11:17:25 +0800
Subject: [PATCH] feat(API): add prompt apis
---
pages.json | 24 +++++++
pages/API/action-sheet/action-sheet.uvue | 64 +++++++++++++++++++
pages/API/modal/modal.uvue | 37 +++++++++++
pages/API/show-loading/show-loading.uvue | 45 +++++++++++++
pages/API/toast/toast.uvue | 80 ++++++++++++++++++++++++
pages/tabBar/API/API.uvue | 9 ++-
6 files changed, 257 insertions(+), 2 deletions(-)
create mode 100644 pages/API/action-sheet/action-sheet.uvue
create mode 100644 pages/API/modal/modal.uvue
create mode 100644 pages/API/show-loading/show-loading.uvue
create mode 100644 pages/API/toast/toast.uvue
diff --git a/pages.json b/pages.json
index ff494f11..1a6e6694 100644
--- a/pages.json
+++ b/pages.json
@@ -96,6 +96,30 @@
"style": {
"navigationBarTitleText": "数据存储"
}
+ },
+ {
+ "path": "pages/API/action-sheet/action-sheet",
+ "style": {
+ "navigationBarTitleText": "操作菜单"
+ }
+ },
+ {
+ "path": "pages/API/modal/modal",
+ "style": {
+ "navigationBarTitleText": "模态弹窗"
+ }
+ },
+ {
+ "path": "pages/API/show-loading/show-loading",
+ "style": {
+ "navigationBarTitleText": "加载提示框"
+ }
+ },
+ {
+ "path": "pages/API/toast/toast",
+ "style": {
+ "navigationBarTitleText": "消息提示框"
+ }
}
],
"globalStyle": {
diff --git a/pages/API/action-sheet/action-sheet.uvue b/pages/API/action-sheet/action-sheet.uvue
new file mode 100644
index 00000000..b0787a83
--- /dev/null
+++ b/pages/API/action-sheet/action-sheet.uvue
@@ -0,0 +1,64 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/API/modal/modal.uvue b/pages/API/modal/modal.uvue
new file mode 100644
index 00000000..3528598a
--- /dev/null
+++ b/pages/API/modal/modal.uvue
@@ -0,0 +1,37 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/API/show-loading/show-loading.uvue b/pages/API/show-loading/show-loading.uvue
new file mode 100644
index 00000000..875fb02c
--- /dev/null
+++ b/pages/API/show-loading/show-loading.uvue
@@ -0,0 +1,45 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/API/toast/toast.uvue b/pages/API/toast/toast.uvue
new file mode 100644
index 00000000..4118b269
--- /dev/null
+++ b/pages/API/toast/toast.uvue
@@ -0,0 +1,80 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/tabBar/API/API.uvue b/pages/tabBar/API/API.uvue
index 93b5c5e9..43e4544a 100644
--- a/pages/tabBar/API/API.uvue
+++ b/pages/tabBar/API/API.uvue
@@ -16,7 +16,8 @@
- {{page.name}}
+ {{page.name}}
@@ -94,18 +95,22 @@
{
name: "显示操作菜单",
url: "action-sheet",
+ enable: true
},
{
name: "显示模态弹窗",
url: "modal",
+ enable: true
},
{
name: "显示加载提示框",
url: "show-loading",
+ enable: true
},
{
name: "显示消息提示框",
url: "toast",
+ enable: true
},
] as Page[],
},
@@ -317,7 +322,7 @@
pages: [
{
name: "数据存储(key-value)",
- url: "storage",
+ url: "storage",
enable: true
},
// #ifdef APP-PLUS
--
GitLab