From b473472a60e5de69b49be399b09a1f50eb643d01 Mon Sep 17 00:00:00 2001 From: Eiinu Date: Mon, 25 Dec 2023 11:06:31 +0800 Subject: [PATCH] chore(badge): split demo (#2799) --- .../src/exhibition/pages/badge/basic.vue | 16 ++ .../src/exhibition/pages/badge/color.vue | 16 ++ .../src/exhibition/pages/badge/icon.vue | 26 +++ .../src/exhibition/pages/badge/index.vue | 121 ++++------- .../src/exhibition/pages/badge/max.vue | 13 ++ .../src/exhibition/pages/badge/position.vue | 13 ++ src/packages/__VUE/badge/demo.vue | 121 ----------- src/packages/__VUE/badge/demo/basic.vue | 16 ++ src/packages/__VUE/badge/demo/color.vue | 16 ++ src/packages/__VUE/badge/demo/icon.vue | 26 +++ src/packages/__VUE/badge/demo/index.vue | 52 +++++ src/packages/__VUE/badge/demo/max.vue | 13 ++ src/packages/__VUE/badge/demo/position.vue | 13 ++ src/packages/__VUE/badge/doc.en-US.md | 189 +----------------- src/packages/__VUE/badge/doc.md | 189 +----------------- src/packages/__VUE/badge/doc.taro.md | 189 +----------------- 16 files changed, 270 insertions(+), 759 deletions(-) create mode 100644 packages/nutui-taro-demo/src/exhibition/pages/badge/basic.vue create mode 100644 packages/nutui-taro-demo/src/exhibition/pages/badge/color.vue create mode 100644 packages/nutui-taro-demo/src/exhibition/pages/badge/icon.vue create mode 100644 packages/nutui-taro-demo/src/exhibition/pages/badge/max.vue create mode 100644 packages/nutui-taro-demo/src/exhibition/pages/badge/position.vue delete mode 100644 src/packages/__VUE/badge/demo.vue create mode 100644 src/packages/__VUE/badge/demo/basic.vue create mode 100644 src/packages/__VUE/badge/demo/color.vue create mode 100644 src/packages/__VUE/badge/demo/icon.vue create mode 100644 src/packages/__VUE/badge/demo/index.vue create mode 100644 src/packages/__VUE/badge/demo/max.vue create mode 100644 src/packages/__VUE/badge/demo/position.vue diff --git a/packages/nutui-taro-demo/src/exhibition/pages/badge/basic.vue b/packages/nutui-taro-demo/src/exhibition/pages/badge/basic.vue new file mode 100644 index 0000000000..b56ea1cb9e --- /dev/null +++ b/packages/nutui-taro-demo/src/exhibition/pages/badge/basic.vue @@ -0,0 +1,16 @@ + diff --git a/packages/nutui-taro-demo/src/exhibition/pages/badge/color.vue b/packages/nutui-taro-demo/src/exhibition/pages/badge/color.vue new file mode 100644 index 0000000000..25cd3bbf51 --- /dev/null +++ b/packages/nutui-taro-demo/src/exhibition/pages/badge/color.vue @@ -0,0 +1,16 @@ + diff --git a/packages/nutui-taro-demo/src/exhibition/pages/badge/icon.vue b/packages/nutui-taro-demo/src/exhibition/pages/badge/icon.vue new file mode 100644 index 0000000000..34f2faf182 --- /dev/null +++ b/packages/nutui-taro-demo/src/exhibition/pages/badge/icon.vue @@ -0,0 +1,26 @@ + + + diff --git a/packages/nutui-taro-demo/src/exhibition/pages/badge/index.vue b/packages/nutui-taro-demo/src/exhibition/pages/badge/index.vue index e27588eb68..f20e9539bb 100644 --- a/packages/nutui-taro-demo/src/exhibition/pages/badge/index.vue +++ b/packages/nutui-taro-demo/src/exhibition/pages/badge/index.vue @@ -1,97 +1,46 @@ - diff --git a/src/packages/__VUE/badge/demo/basic.vue b/src/packages/__VUE/badge/demo/basic.vue new file mode 100644 index 0000000000..b56ea1cb9e --- /dev/null +++ b/src/packages/__VUE/badge/demo/basic.vue @@ -0,0 +1,16 @@ + diff --git a/src/packages/__VUE/badge/demo/color.vue b/src/packages/__VUE/badge/demo/color.vue new file mode 100644 index 0000000000..25cd3bbf51 --- /dev/null +++ b/src/packages/__VUE/badge/demo/color.vue @@ -0,0 +1,16 @@ + diff --git a/src/packages/__VUE/badge/demo/icon.vue b/src/packages/__VUE/badge/demo/icon.vue new file mode 100644 index 0000000000..9e2dfb1d7b --- /dev/null +++ b/src/packages/__VUE/badge/demo/icon.vue @@ -0,0 +1,26 @@ + + + diff --git a/src/packages/__VUE/badge/demo/index.vue b/src/packages/__VUE/badge/demo/index.vue new file mode 100644 index 0000000000..3ab58dc33b --- /dev/null +++ b/src/packages/__VUE/badge/demo/index.vue @@ -0,0 +1,52 @@ + + + + + diff --git a/src/packages/__VUE/badge/demo/max.vue b/src/packages/__VUE/badge/demo/max.vue new file mode 100644 index 0000000000..3e90cc1f84 --- /dev/null +++ b/src/packages/__VUE/badge/demo/max.vue @@ -0,0 +1,13 @@ + diff --git a/src/packages/__VUE/badge/demo/position.vue b/src/packages/__VUE/badge/demo/position.vue new file mode 100644 index 0000000000..6b270a2d8f --- /dev/null +++ b/src/packages/__VUE/badge/demo/position.vue @@ -0,0 +1,13 @@ + diff --git a/src/packages/__VUE/badge/doc.en-US.md b/src/packages/__VUE/badge/doc.en-US.md index f0791d61cc..63019a2d80 100644 --- a/src/packages/__VUE/badge/doc.en-US.md +++ b/src/packages/__VUE/badge/doc.en-US.md @@ -16,202 +16,23 @@ app.use(Badge); ### Basic Usage -:::demo - -```vue - - - -``` - -::: +> demo: badge basic ### Max -:::demo - -```vue - - - -``` - -::: +> demo: badge max ### Custom Color -:::demo - -```vue - - - -``` - -::: +> demo: badge color ### Custom Content -:::demo - -```vue - - - - - -``` - -::: +> demo: badge icon ### Custom Position -:::demo - -```vue - - - -``` - -::: - -### Standalone - -:::demo - -```vue - - - -``` - -::: +> demo: badge position ## API diff --git a/src/packages/__VUE/badge/doc.md b/src/packages/__VUE/badge/doc.md index c06ecb4dee..b0e963cf1a 100644 --- a/src/packages/__VUE/badge/doc.md +++ b/src/packages/__VUE/badge/doc.md @@ -16,202 +16,23 @@ app.use(Badge); ### 基础用法 -:::demo - -```vue - - - -``` - -::: +> demo: badge basic ### 最大值 -:::demo - -```vue - - - -``` - -::: +> demo: badge max ### 自定义颜色 -:::demo - -```vue - - - -``` - -::: +> demo: badge color ### 自定义徽标内容 -:::demo - -```vue - - - - - -``` - -::: +> demo: badge icon ### 自定义位置 -:::demo - -```vue - - - -``` - -::: - -### 独立展示 - -:::demo - -```vue - - - -``` - -::: +> demo: badge position ## API diff --git a/src/packages/__VUE/badge/doc.taro.md b/src/packages/__VUE/badge/doc.taro.md index 6e874bec5d..339565f8f2 100644 --- a/src/packages/__VUE/badge/doc.taro.md +++ b/src/packages/__VUE/badge/doc.taro.md @@ -16,202 +16,23 @@ app.use(Badge); ### 基础用法 -:::demo - -```vue - - - -``` - -::: +> demo: badge basic exhibition ### 最大值 -:::demo - -```vue - - - -``` - -::: +> demo: badge max exhibition ### 自定义颜色 -:::demo - -```vue - - - -``` - -::: +> demo: badge color exhibition ### 自定义徽标内容 -:::demo - -```vue - - - - - -``` - -::: +> demo: badge icon exhibition ### 自定义位置 -:::demo - -```vue - - - -``` - -::: - -### 独立展示 - -:::demo - -```vue - - - -``` - -::: +> demo: badge position exhibition ## API