From e54744315ff30b11a332bbf86d9ca1b603dab345 Mon Sep 17 00:00:00 2001 From: Marvin <63292605+yi-boide@users.noreply.github.com> Date: Wed, 24 Jan 2024 17:10:33 +0800 Subject: [PATCH] chore(short-password): split demo (#2871) --- .../src/dentry/pages/shortpassword/basic.vue | 12 ++ .../src/dentry/pages/shortpassword/error.vue | 27 ++++ .../src/dentry/pages/shortpassword/forget.vue | 25 ++++ .../src/dentry/pages/shortpassword/index.vue | 123 ++++------------ .../src/dentry/pages/shortpassword/length.vue | 22 +++ src/packages/__VUE/shortpassword/demo.vue | 139 ------------------ .../__VUE/shortpassword/demo/basic.vue | 12 ++ .../__VUE/shortpassword/demo/error.vue | 27 ++++ .../__VUE/shortpassword/demo/forget.vue | 25 ++++ .../__VUE/shortpassword/demo/index.vue | 37 +++++ .../__VUE/shortpassword/demo/length.vue | 22 +++ src/packages/__VUE/shortpassword/doc.en-US.md | 133 +---------------- src/packages/__VUE/shortpassword/doc.md | 133 +---------------- src/packages/__VUE/shortpassword/doc.taro.md | 133 +---------------- 14 files changed, 248 insertions(+), 622 deletions(-) create mode 100644 packages/nutui-taro-demo/src/dentry/pages/shortpassword/basic.vue create mode 100644 packages/nutui-taro-demo/src/dentry/pages/shortpassword/error.vue create mode 100644 packages/nutui-taro-demo/src/dentry/pages/shortpassword/forget.vue create mode 100644 packages/nutui-taro-demo/src/dentry/pages/shortpassword/length.vue delete mode 100644 src/packages/__VUE/shortpassword/demo.vue create mode 100644 src/packages/__VUE/shortpassword/demo/basic.vue create mode 100644 src/packages/__VUE/shortpassword/demo/error.vue create mode 100644 src/packages/__VUE/shortpassword/demo/forget.vue create mode 100644 src/packages/__VUE/shortpassword/demo/index.vue create mode 100644 src/packages/__VUE/shortpassword/demo/length.vue diff --git a/packages/nutui-taro-demo/src/dentry/pages/shortpassword/basic.vue b/packages/nutui-taro-demo/src/dentry/pages/shortpassword/basic.vue new file mode 100644 index 0000000000..6d935163ea --- /dev/null +++ b/packages/nutui-taro-demo/src/dentry/pages/shortpassword/basic.vue @@ -0,0 +1,12 @@ + + diff --git a/packages/nutui-taro-demo/src/dentry/pages/shortpassword/error.vue b/packages/nutui-taro-demo/src/dentry/pages/shortpassword/error.vue new file mode 100644 index 0000000000..37e0ad20ca --- /dev/null +++ b/packages/nutui-taro-demo/src/dentry/pages/shortpassword/error.vue @@ -0,0 +1,27 @@ + + diff --git a/packages/nutui-taro-demo/src/dentry/pages/shortpassword/forget.vue b/packages/nutui-taro-demo/src/dentry/pages/shortpassword/forget.vue new file mode 100644 index 0000000000..ec7e63ca05 --- /dev/null +++ b/packages/nutui-taro-demo/src/dentry/pages/shortpassword/forget.vue @@ -0,0 +1,25 @@ + + diff --git a/packages/nutui-taro-demo/src/dentry/pages/shortpassword/index.vue b/packages/nutui-taro-demo/src/dentry/pages/shortpassword/index.vue index 92fd4e04d8..470e96163b 100644 --- a/packages/nutui-taro-demo/src/dentry/pages/shortpassword/index.vue +++ b/packages/nutui-taro-demo/src/dentry/pages/shortpassword/index.vue @@ -1,106 +1,37 @@ - diff --git a/packages/nutui-taro-demo/src/dentry/pages/shortpassword/length.vue b/packages/nutui-taro-demo/src/dentry/pages/shortpassword/length.vue new file mode 100644 index 0000000000..02d28dc04d --- /dev/null +++ b/packages/nutui-taro-demo/src/dentry/pages/shortpassword/length.vue @@ -0,0 +1,22 @@ + + diff --git a/src/packages/__VUE/shortpassword/demo.vue b/src/packages/__VUE/shortpassword/demo.vue deleted file mode 100644 index fbf2b4f101..0000000000 --- a/src/packages/__VUE/shortpassword/demo.vue +++ /dev/null @@ -1,139 +0,0 @@ - - - diff --git a/src/packages/__VUE/shortpassword/demo/basic.vue b/src/packages/__VUE/shortpassword/demo/basic.vue new file mode 100644 index 0000000000..6d935163ea --- /dev/null +++ b/src/packages/__VUE/shortpassword/demo/basic.vue @@ -0,0 +1,12 @@ + + diff --git a/src/packages/__VUE/shortpassword/demo/error.vue b/src/packages/__VUE/shortpassword/demo/error.vue new file mode 100644 index 0000000000..37e0ad20ca --- /dev/null +++ b/src/packages/__VUE/shortpassword/demo/error.vue @@ -0,0 +1,27 @@ + + diff --git a/src/packages/__VUE/shortpassword/demo/forget.vue b/src/packages/__VUE/shortpassword/demo/forget.vue new file mode 100644 index 0000000000..ec7e63ca05 --- /dev/null +++ b/src/packages/__VUE/shortpassword/demo/forget.vue @@ -0,0 +1,25 @@ + + diff --git a/src/packages/__VUE/shortpassword/demo/index.vue b/src/packages/__VUE/shortpassword/demo/index.vue new file mode 100644 index 0000000000..d065ed2047 --- /dev/null +++ b/src/packages/__VUE/shortpassword/demo/index.vue @@ -0,0 +1,37 @@ + + diff --git a/src/packages/__VUE/shortpassword/demo/length.vue b/src/packages/__VUE/shortpassword/demo/length.vue new file mode 100644 index 0000000000..02d28dc04d --- /dev/null +++ b/src/packages/__VUE/shortpassword/demo/length.vue @@ -0,0 +1,22 @@ + + diff --git a/src/packages/__VUE/shortpassword/doc.en-US.md b/src/packages/__VUE/shortpassword/doc.en-US.md index 2799ddf4d4..2b6fb82ae6 100644 --- a/src/packages/__VUE/shortpassword/doc.en-US.md +++ b/src/packages/__VUE/shortpassword/doc.en-US.md @@ -17,144 +17,19 @@ app.use(NumberKeyboard); ### Basic Usage -:::demo - -```vue - - -``` - -::: +> demo: shortpassword basic ### Custom Password Length -:::demo - -```vue - - -``` - -::: +> demo: shortpassword length ### Forget password -:::demo - -```vue - - -``` - -::: +> demo: shortpassword forget ### Error Message -:::demo - -```vue - - -``` - -::: +> demo: shortpassword error ## API diff --git a/src/packages/__VUE/shortpassword/doc.md b/src/packages/__VUE/shortpassword/doc.md index ea9a32ecbc..88fac59251 100644 --- a/src/packages/__VUE/shortpassword/doc.md +++ b/src/packages/__VUE/shortpassword/doc.md @@ -17,144 +17,19 @@ app.use(NumberKeyboard); ### 基础用法 -:::demo - -```vue - - -``` - -::: +> demo: shortpassword basic ### 自定义密码长度 4 -:::demo - -```vue - - -``` - -::: +> demo: shortpassword length ### 忘记密码提示语事件回调 -:::demo - -```vue - - -``` - -::: +> demo: shortpassword forget ### 错误提示语 -:::demo - -```vue - - -``` - -::: +> demo: shortpassword error ## API diff --git a/src/packages/__VUE/shortpassword/doc.taro.md b/src/packages/__VUE/shortpassword/doc.taro.md index 61479a0237..b8f28fbe1a 100644 --- a/src/packages/__VUE/shortpassword/doc.taro.md +++ b/src/packages/__VUE/shortpassword/doc.taro.md @@ -17,144 +17,19 @@ app.use(NumberKeyboard); ### 基础用法 -:::demo - -```vue - - -``` - -::: +> demo: shortpassword basic dentry ### 自定义密码长度 4 -:::demo - -```vue - - -``` - -::: +> demo: shortpassword length dentry ### 忘记密码提示语事件回调 -:::demo - -```vue - - -``` - -::: +> demo: shortpassword forget dentry ### 错误提示语 -:::demo - -```vue - - -``` - -::: +> demo: shortpassword error dentry ## API