From 47efca28d4e76bc23466f3f7cf892cb2f742f5dc Mon Sep 17 00:00:00 2001 From: Eiinu Date: Sun, 17 Dec 2023 22:14:26 +0800 Subject: [PATCH] chore(skeleton): split demo (#2757) --- .../src/exhibition/pages/skeleton/avatar.vue | 3 + .../src/exhibition/pages/skeleton/basic.vue | 3 + .../src/exhibition/pages/skeleton/index.vue | 106 ++++++--------- .../src/exhibition/pages/skeleton/picture.vue | 15 +++ .../src/exhibition/pages/skeleton/round.vue | 3 + .../src/exhibition/pages/skeleton/row.vue | 3 + .../src/exhibition/pages/skeleton/sub.vue | 46 +++++++ src/packages/__VUE/skeleton/demo.vue | 112 ---------------- src/packages/__VUE/skeleton/demo/avatar.vue | 3 + src/packages/__VUE/skeleton/demo/basic.vue | 3 + src/packages/__VUE/skeleton/demo/index.vue | 50 +++++++ src/packages/__VUE/skeleton/demo/picture.vue | 15 +++ src/packages/__VUE/skeleton/demo/round.vue | 3 + src/packages/__VUE/skeleton/demo/row.vue | 3 + src/packages/__VUE/skeleton/demo/sub.vue | 46 +++++++ src/packages/__VUE/skeleton/doc.en-US.md | 125 ++--------------- src/packages/__VUE/skeleton/doc.md | 119 +---------------- src/packages/__VUE/skeleton/doc.taro.md | 126 ++---------------- 18 files changed, 257 insertions(+), 527 deletions(-) create mode 100644 packages/nutui-taro-demo/src/exhibition/pages/skeleton/avatar.vue create mode 100644 packages/nutui-taro-demo/src/exhibition/pages/skeleton/basic.vue create mode 100644 packages/nutui-taro-demo/src/exhibition/pages/skeleton/picture.vue create mode 100644 packages/nutui-taro-demo/src/exhibition/pages/skeleton/round.vue create mode 100644 packages/nutui-taro-demo/src/exhibition/pages/skeleton/row.vue create mode 100644 packages/nutui-taro-demo/src/exhibition/pages/skeleton/sub.vue delete mode 100644 src/packages/__VUE/skeleton/demo.vue create mode 100644 src/packages/__VUE/skeleton/demo/avatar.vue create mode 100644 src/packages/__VUE/skeleton/demo/basic.vue create mode 100644 src/packages/__VUE/skeleton/demo/index.vue create mode 100644 src/packages/__VUE/skeleton/demo/picture.vue create mode 100644 src/packages/__VUE/skeleton/demo/round.vue create mode 100644 src/packages/__VUE/skeleton/demo/row.vue create mode 100644 src/packages/__VUE/skeleton/demo/sub.vue diff --git a/packages/nutui-taro-demo/src/exhibition/pages/skeleton/avatar.vue b/packages/nutui-taro-demo/src/exhibition/pages/skeleton/avatar.vue new file mode 100644 index 0000000000..7490495eff --- /dev/null +++ b/packages/nutui-taro-demo/src/exhibition/pages/skeleton/avatar.vue @@ -0,0 +1,3 @@ + diff --git a/packages/nutui-taro-demo/src/exhibition/pages/skeleton/basic.vue b/packages/nutui-taro-demo/src/exhibition/pages/skeleton/basic.vue new file mode 100644 index 0000000000..ed6b629bb1 --- /dev/null +++ b/packages/nutui-taro-demo/src/exhibition/pages/skeleton/basic.vue @@ -0,0 +1,3 @@ + diff --git a/packages/nutui-taro-demo/src/exhibition/pages/skeleton/index.vue b/packages/nutui-taro-demo/src/exhibition/pages/skeleton/index.vue index d8fc90de31..5ce96c39e7 100644 --- a/packages/nutui-taro-demo/src/exhibition/pages/skeleton/index.vue +++ b/packages/nutui-taro-demo/src/exhibition/pages/skeleton/index.vue @@ -1,80 +1,50 @@ - - +}); + diff --git a/packages/nutui-taro-demo/src/exhibition/pages/skeleton/picture.vue b/packages/nutui-taro-demo/src/exhibition/pages/skeleton/picture.vue new file mode 100644 index 0000000000..4603c739b0 --- /dev/null +++ b/packages/nutui-taro-demo/src/exhibition/pages/skeleton/picture.vue @@ -0,0 +1,15 @@ + + diff --git a/packages/nutui-taro-demo/src/exhibition/pages/skeleton/round.vue b/packages/nutui-taro-demo/src/exhibition/pages/skeleton/round.vue new file mode 100644 index 0000000000..c55163d397 --- /dev/null +++ b/packages/nutui-taro-demo/src/exhibition/pages/skeleton/round.vue @@ -0,0 +1,3 @@ + diff --git a/packages/nutui-taro-demo/src/exhibition/pages/skeleton/row.vue b/packages/nutui-taro-demo/src/exhibition/pages/skeleton/row.vue new file mode 100644 index 0000000000..1a7412ab7e --- /dev/null +++ b/packages/nutui-taro-demo/src/exhibition/pages/skeleton/row.vue @@ -0,0 +1,3 @@ + diff --git a/packages/nutui-taro-demo/src/exhibition/pages/skeleton/sub.vue b/packages/nutui-taro-demo/src/exhibition/pages/skeleton/sub.vue new file mode 100644 index 0000000000..656fbd4f28 --- /dev/null +++ b/packages/nutui-taro-demo/src/exhibition/pages/skeleton/sub.vue @@ -0,0 +1,46 @@ + + + + + diff --git a/src/packages/__VUE/skeleton/demo.vue b/src/packages/__VUE/skeleton/demo.vue deleted file mode 100644 index 6aadeb9492..0000000000 --- a/src/packages/__VUE/skeleton/demo.vue +++ /dev/null @@ -1,112 +0,0 @@ - - - - - diff --git a/src/packages/__VUE/skeleton/demo/avatar.vue b/src/packages/__VUE/skeleton/demo/avatar.vue new file mode 100644 index 0000000000..7490495eff --- /dev/null +++ b/src/packages/__VUE/skeleton/demo/avatar.vue @@ -0,0 +1,3 @@ + diff --git a/src/packages/__VUE/skeleton/demo/basic.vue b/src/packages/__VUE/skeleton/demo/basic.vue new file mode 100644 index 0000000000..ed6b629bb1 --- /dev/null +++ b/src/packages/__VUE/skeleton/demo/basic.vue @@ -0,0 +1,3 @@ + diff --git a/src/packages/__VUE/skeleton/demo/index.vue b/src/packages/__VUE/skeleton/demo/index.vue new file mode 100644 index 0000000000..b3af5ae3b8 --- /dev/null +++ b/src/packages/__VUE/skeleton/demo/index.vue @@ -0,0 +1,50 @@ + + + diff --git a/src/packages/__VUE/skeleton/demo/picture.vue b/src/packages/__VUE/skeleton/demo/picture.vue new file mode 100644 index 0000000000..4603c739b0 --- /dev/null +++ b/src/packages/__VUE/skeleton/demo/picture.vue @@ -0,0 +1,15 @@ + + diff --git a/src/packages/__VUE/skeleton/demo/round.vue b/src/packages/__VUE/skeleton/demo/round.vue new file mode 100644 index 0000000000..c55163d397 --- /dev/null +++ b/src/packages/__VUE/skeleton/demo/round.vue @@ -0,0 +1,3 @@ + diff --git a/src/packages/__VUE/skeleton/demo/row.vue b/src/packages/__VUE/skeleton/demo/row.vue new file mode 100644 index 0000000000..1a7412ab7e --- /dev/null +++ b/src/packages/__VUE/skeleton/demo/row.vue @@ -0,0 +1,3 @@ + diff --git a/src/packages/__VUE/skeleton/demo/sub.vue b/src/packages/__VUE/skeleton/demo/sub.vue new file mode 100644 index 0000000000..656fbd4f28 --- /dev/null +++ b/src/packages/__VUE/skeleton/demo/sub.vue @@ -0,0 +1,46 @@ + + + + + diff --git a/src/packages/__VUE/skeleton/doc.en-US.md b/src/packages/__VUE/skeleton/doc.en-US.md index 25bc976c94..d62e0de739 100644 --- a/src/packages/__VUE/skeleton/doc.en-US.md +++ b/src/packages/__VUE/skeleton/doc.en-US.md @@ -16,134 +16,27 @@ app.use(Skeleton); ### Basic usage -:::demo +> demo: skeleton basic -```vue - -``` - -::: - -### Incoming multiline +### Multi-lines -:::demo - -```vue - -``` +> demo: skeleton row -::: - -### Show Faces - -:::demo - -```vue - -``` +### Show Avatar -::: +> demo: skeleton avatar -### Title paragraph fillet style +### Round Style -:::demo - -```vue - -``` - -::: +> demo: skeleton round ### Picture combination -:::demo - -```vue - - -``` - -::: +> demo: skeleton picture ### Display subcomponents -:::demo - -```vue - - - - - - -``` - -::: +> demo: skeleton sub ## API diff --git a/src/packages/__VUE/skeleton/doc.md b/src/packages/__VUE/skeleton/doc.md index 97d6d07f44..b4aca6b0de 100644 --- a/src/packages/__VUE/skeleton/doc.md +++ b/src/packages/__VUE/skeleton/doc.md @@ -16,134 +16,27 @@ app.use(Skeleton); ### 基础用法 -:::demo - -```vue - -``` - -::: +> demo: skeleton basic ### 传入多行 -:::demo - -```vue - -``` - -::: +> demo: skeleton row ### 显示头像 -:::demo - -```vue - -``` - -::: +> demo: skeleton avatar ### 标题段落圆角风格 -:::demo - -```vue - -``` - -::: +> demo: skeleton round ### 图片组合 -:::demo - -```vue - - -``` - -::: +> demo: skeleton picture ### 显示子组件 -:::demo - -```vue - - - - - -``` - -::: +> demo: skeleton sub ## API diff --git a/src/packages/__VUE/skeleton/doc.taro.md b/src/packages/__VUE/skeleton/doc.taro.md index 4c2f775bc2..607d6bacde 100644 --- a/src/packages/__VUE/skeleton/doc.taro.md +++ b/src/packages/__VUE/skeleton/doc.taro.md @@ -16,137 +16,27 @@ app.use(Skeleton); ### 基础用法 -:::demo - -```vue - -``` - -::: +> demo: skeleton basic exhibition ### 传入多行 -:::demo - -```vue - -``` - -::: +> demo: skeleton row exhibition ### 显示头像 -:::demo - -```vue - -``` - -::: +> demo: skeleton avatar exhibition ### 标题段落圆角风格 -:::demo - -```vue - -``` - -::: +> demo: skeleton round exhibition ### 图片组合 -:::demo - -```vue - -``` - -```css - -``` - -::: +> demo: skeleton picture exhibition ### 显示子组件 -:::demo - -```vue - - - - - -``` - -::: +> demo: skeleton sub exhibition ## API @@ -162,8 +52,8 @@ const checked = ref(false); | avatar-shape | 头像形状:正方形/圆形 | string | `round` | | avatar-size | 头像大小 | string | `50px` | | round | 标题/段落是否采用圆角风格 | boolean | `false` | -| row | 设置段落行数 | string | `1` | -| title | 是否显示段落标题 | boolean | `true` | +| title | 是否显示段落标题(第一行显示) | boolean | `true` | +| row | 设置段落行数(title 下方展示) | string | `1` | ### Slots