From 485b11f61262d89a0ff9b04fa9bbfd58a9fd5eea Mon Sep 17 00:00:00 2001 From: Eiinu Date: Tue, 16 Jan 2024 23:04:21 +0800 Subject: [PATCH] chore(action-sheet): split demo (#2846) --- .../src/feedback/pages/actionsheet/basic.vue | 26 +++ .../feedback/pages/actionsheet/content.vue | 19 ++ .../src/feedback/pages/actionsheet/custom.vue | 35 ++++ .../src/feedback/pages/actionsheet/index.vue | 163 +++------------ .../src/feedback/pages/actionsheet/status.vue | 28 +++ src/packages/__VUE/actionsheet/demo.vue | 186 ----------------- src/packages/__VUE/actionsheet/demo/basic.vue | 26 +++ .../__VUE/actionsheet/demo/content.vue | 19 ++ .../__VUE/actionsheet/demo/custom.vue | 35 ++++ src/packages/__VUE/actionsheet/demo/index.vue | 38 ++++ .../__VUE/actionsheet/demo/status.vue | 28 +++ src/packages/__VUE/actionsheet/doc.en-US.md | 190 +----------------- src/packages/__VUE/actionsheet/doc.md | 190 +----------------- src/packages/__VUE/actionsheet/doc.taro.md | 190 +----------------- 14 files changed, 296 insertions(+), 877 deletions(-) create mode 100644 packages/nutui-taro-demo/src/feedback/pages/actionsheet/basic.vue create mode 100644 packages/nutui-taro-demo/src/feedback/pages/actionsheet/content.vue create mode 100644 packages/nutui-taro-demo/src/feedback/pages/actionsheet/custom.vue create mode 100644 packages/nutui-taro-demo/src/feedback/pages/actionsheet/status.vue delete mode 100644 src/packages/__VUE/actionsheet/demo.vue create mode 100644 src/packages/__VUE/actionsheet/demo/basic.vue create mode 100644 src/packages/__VUE/actionsheet/demo/content.vue create mode 100644 src/packages/__VUE/actionsheet/demo/custom.vue create mode 100644 src/packages/__VUE/actionsheet/demo/index.vue create mode 100644 src/packages/__VUE/actionsheet/demo/status.vue diff --git a/packages/nutui-taro-demo/src/feedback/pages/actionsheet/basic.vue b/packages/nutui-taro-demo/src/feedback/pages/actionsheet/basic.vue new file mode 100644 index 0000000000..9ee30b95ab --- /dev/null +++ b/packages/nutui-taro-demo/src/feedback/pages/actionsheet/basic.vue @@ -0,0 +1,26 @@ + + diff --git a/packages/nutui-taro-demo/src/feedback/pages/actionsheet/content.vue b/packages/nutui-taro-demo/src/feedback/pages/actionsheet/content.vue new file mode 100644 index 0000000000..4000d3a6e4 --- /dev/null +++ b/packages/nutui-taro-demo/src/feedback/pages/actionsheet/content.vue @@ -0,0 +1,19 @@ + + + diff --git a/packages/nutui-taro-demo/src/feedback/pages/actionsheet/custom.vue b/packages/nutui-taro-demo/src/feedback/pages/actionsheet/custom.vue new file mode 100644 index 0000000000..5f3fba026f --- /dev/null +++ b/packages/nutui-taro-demo/src/feedback/pages/actionsheet/custom.vue @@ -0,0 +1,35 @@ + + diff --git a/packages/nutui-taro-demo/src/feedback/pages/actionsheet/index.vue b/packages/nutui-taro-demo/src/feedback/pages/actionsheet/index.vue index 494a4b7e4d..499d21675f 100644 --- a/packages/nutui-taro-demo/src/feedback/pages/actionsheet/index.vue +++ b/packages/nutui-taro-demo/src/feedback/pages/actionsheet/index.vue @@ -1,147 +1,38 @@ - - diff --git a/packages/nutui-taro-demo/src/feedback/pages/actionsheet/status.vue b/packages/nutui-taro-demo/src/feedback/pages/actionsheet/status.vue new file mode 100644 index 0000000000..6586f196a6 --- /dev/null +++ b/packages/nutui-taro-demo/src/feedback/pages/actionsheet/status.vue @@ -0,0 +1,28 @@ + + diff --git a/src/packages/__VUE/actionsheet/demo.vue b/src/packages/__VUE/actionsheet/demo.vue deleted file mode 100644 index 94187f76aa..0000000000 --- a/src/packages/__VUE/actionsheet/demo.vue +++ /dev/null @@ -1,186 +0,0 @@ - - - - - diff --git a/src/packages/__VUE/actionsheet/demo/basic.vue b/src/packages/__VUE/actionsheet/demo/basic.vue new file mode 100644 index 0000000000..9ee30b95ab --- /dev/null +++ b/src/packages/__VUE/actionsheet/demo/basic.vue @@ -0,0 +1,26 @@ + + diff --git a/src/packages/__VUE/actionsheet/demo/content.vue b/src/packages/__VUE/actionsheet/demo/content.vue new file mode 100644 index 0000000000..4000d3a6e4 --- /dev/null +++ b/src/packages/__VUE/actionsheet/demo/content.vue @@ -0,0 +1,19 @@ + + + diff --git a/src/packages/__VUE/actionsheet/demo/custom.vue b/src/packages/__VUE/actionsheet/demo/custom.vue new file mode 100644 index 0000000000..5f3fba026f --- /dev/null +++ b/src/packages/__VUE/actionsheet/demo/custom.vue @@ -0,0 +1,35 @@ + + diff --git a/src/packages/__VUE/actionsheet/demo/index.vue b/src/packages/__VUE/actionsheet/demo/index.vue new file mode 100644 index 0000000000..f9c5a68edb --- /dev/null +++ b/src/packages/__VUE/actionsheet/demo/index.vue @@ -0,0 +1,38 @@ + + + diff --git a/src/packages/__VUE/actionsheet/demo/status.vue b/src/packages/__VUE/actionsheet/demo/status.vue new file mode 100644 index 0000000000..6586f196a6 --- /dev/null +++ b/src/packages/__VUE/actionsheet/demo/status.vue @@ -0,0 +1,28 @@ + + diff --git a/src/packages/__VUE/actionsheet/doc.en-US.md b/src/packages/__VUE/actionsheet/doc.en-US.md index 4e1ff6176d..0369e37bbb 100644 --- a/src/packages/__VUE/actionsheet/doc.en-US.md +++ b/src/packages/__VUE/actionsheet/doc.en-US.md @@ -16,199 +16,19 @@ app.use(ActionSheet); ### Basic Usage -:::demo +> demo: actionsheet basic -```vue - - -``` - -::: - -### Show Cancel Button +### Custom Info -:::demo - -```vue - - -``` - -::: - -### Show Description - -:::demo - -```vue - - -``` - -::: +> demo: actionsheet custom ### Option Status -:::demo - -```vue - - -``` - -::: +> demo: actionsheet status ### Custom Content -:::demo - -```vue - - - -``` - -::: +> demo: actionsheet content ## API diff --git a/src/packages/__VUE/actionsheet/doc.md b/src/packages/__VUE/actionsheet/doc.md index cc69910db1..1d0f5365b9 100644 --- a/src/packages/__VUE/actionsheet/doc.md +++ b/src/packages/__VUE/actionsheet/doc.md @@ -16,199 +16,19 @@ app.use(ActionSheet); ### 基础用法 -:::demo +> demo: actionsheet basic -```vue - - -``` - -::: - -### 展示取消按钮 +### 自定义信息 -:::demo - -```vue - - -``` - -::: - -### 展示描述信息 - -:::demo - -```vue - - -``` - -::: +> demo: actionsheet custom ### 选项状态 -:::demo - -```vue - - -``` - -::: +> demo: actionsheet status ### 自定义内容 -:::demo - -```vue - - - -``` - -::: +> demo: actionsheet content ## API diff --git a/src/packages/__VUE/actionsheet/doc.taro.md b/src/packages/__VUE/actionsheet/doc.taro.md index 354444bcd4..7c2a76672c 100644 --- a/src/packages/__VUE/actionsheet/doc.taro.md +++ b/src/packages/__VUE/actionsheet/doc.taro.md @@ -16,199 +16,19 @@ app.use(ActionSheet); ### 基础用法 -:::demo +> demo: actionsheet basic feedback -```vue - - -``` - -::: - -### 展示取消按钮 +### 自定义信息 -:::demo - -```vue - - -``` - -::: - -### 展示描述信息 - -:::demo - -```vue - - -``` - -::: +> demo: actionsheet custom feedback ### 选项状态 -:::demo - -```vue - - -``` - -::: +> demo: actionsheet status feedback ### 自定义内容 -:::demo - -```vue - - - -``` - -::: +> demo: actionsheet content feedback ## API