diff --git a/packages/nutui-taro-demo/src/nav/pages/pagination/basic.vue b/packages/nutui-taro-demo/src/nav/pages/pagination/basic.vue new file mode 100644 index 0000000000..2d74ae7d34 --- /dev/null +++ b/packages/nutui-taro-demo/src/nav/pages/pagination/basic.vue @@ -0,0 +1,10 @@ + + diff --git a/packages/nutui-taro-demo/src/nav/pages/pagination/custom.vue b/packages/nutui-taro-demo/src/nav/pages/pagination/custom.vue new file mode 100644 index 0000000000..b04f7dac5c --- /dev/null +++ b/packages/nutui-taro-demo/src/nav/pages/pagination/custom.vue @@ -0,0 +1,16 @@ + + diff --git a/packages/nutui-taro-demo/src/nav/pages/pagination/ellipse.vue b/packages/nutui-taro-demo/src/nav/pages/pagination/ellipse.vue new file mode 100644 index 0000000000..99eb78c921 --- /dev/null +++ b/packages/nutui-taro-demo/src/nav/pages/pagination/ellipse.vue @@ -0,0 +1,7 @@ + + diff --git a/packages/nutui-taro-demo/src/nav/pages/pagination/index.vue b/packages/nutui-taro-demo/src/nav/pages/pagination/index.vue index 434a7382dd..dfec8737f8 100644 --- a/packages/nutui-taro-demo/src/nav/pages/pagination/index.vue +++ b/packages/nutui-taro-demo/src/nav/pages/pagination/index.vue @@ -1,34 +1,38 @@ diff --git a/packages/nutui-taro-demo/src/nav/pages/pagination/simple.vue b/packages/nutui-taro-demo/src/nav/pages/pagination/simple.vue new file mode 100644 index 0000000000..2749f7be3e --- /dev/null +++ b/packages/nutui-taro-demo/src/nav/pages/pagination/simple.vue @@ -0,0 +1,10 @@ + + diff --git a/src/packages/__VUE/pagination/demo.vue b/src/packages/__VUE/pagination/demo.vue deleted file mode 100644 index 4b4f83b977..0000000000 --- a/src/packages/__VUE/pagination/demo.vue +++ /dev/null @@ -1,49 +0,0 @@ - - - diff --git a/src/packages/__VUE/pagination/demo/basic.vue b/src/packages/__VUE/pagination/demo/basic.vue new file mode 100644 index 0000000000..2d74ae7d34 --- /dev/null +++ b/src/packages/__VUE/pagination/demo/basic.vue @@ -0,0 +1,10 @@ + + diff --git a/src/packages/__VUE/pagination/demo/custom.vue b/src/packages/__VUE/pagination/demo/custom.vue new file mode 100644 index 0000000000..b04f7dac5c --- /dev/null +++ b/src/packages/__VUE/pagination/demo/custom.vue @@ -0,0 +1,16 @@ + + diff --git a/src/packages/__VUE/pagination/demo/ellipse.vue b/src/packages/__VUE/pagination/demo/ellipse.vue new file mode 100644 index 0000000000..99eb78c921 --- /dev/null +++ b/src/packages/__VUE/pagination/demo/ellipse.vue @@ -0,0 +1,7 @@ + + diff --git a/src/packages/__VUE/pagination/demo/index.vue b/src/packages/__VUE/pagination/demo/index.vue new file mode 100644 index 0000000000..2520ce55dd --- /dev/null +++ b/src/packages/__VUE/pagination/demo/index.vue @@ -0,0 +1,38 @@ + + + diff --git a/src/packages/__VUE/pagination/demo/simple.vue b/src/packages/__VUE/pagination/demo/simple.vue new file mode 100644 index 0000000000..2749f7be3e --- /dev/null +++ b/src/packages/__VUE/pagination/demo/simple.vue @@ -0,0 +1,10 @@ + + diff --git a/src/packages/__VUE/pagination/doc.en-US.md b/src/packages/__VUE/pagination/doc.en-US.md index bce7b1b30b..65f82a8279 100644 --- a/src/packages/__VUE/pagination/doc.en-US.md +++ b/src/packages/__VUE/pagination/doc.en-US.md @@ -17,91 +17,24 @@ app.use(Pagination); ### Basic Usage Bind current page with v-model. -:::demo - -```vue - - -``` -::: +> demo: pagination basic ### Simple mode Pagination can be switched to simple mode with simple mode attribute, and pagination cann't display specific page buttons. -:::demo - -```vue - - -``` -::: +> demo: pagination simple ### Show ellipses The ellipses button will display after with force-ellipses attribute, click it can jump quickly. -:::demo - -```vue - - -``` -::: +> demo: pagination ellipse ### Custom Button -Custom pagination button content with pre-text slot、next-text slot and so on. -:::demo - -```vue - - -``` - -::: +> demo: pagination custom ## API diff --git a/src/packages/__VUE/pagination/doc.md b/src/packages/__VUE/pagination/doc.md index 2affd62fc7..ad376ef898 100644 --- a/src/packages/__VUE/pagination/doc.md +++ b/src/packages/__VUE/pagination/doc.md @@ -17,91 +17,24 @@ app.use(Pagination); ### 基础用法 通过 v-model 来绑定当前页码。 -:::demo - -```vue - - -``` -::: +> demo: pagination basic ### 简单模式 - 将 mode 设置为 simple 来切换到简单模式,此时分页器不会展示具体的页码按钮。 -:::demo - -```vue - - -``` +将 mode 设置为 `simple` 来切换到简单模式,此时分页器不会展示具体的页码按钮。 -::: +> demo: pagination simple ### 显示省略号 设置 force-ellipses 后会展示省略号按钮,点击后可以快速跳转。 -:::demo - -```vue - - -``` -::: +> demo: pagination ellipse ### 自定义按钮 -设置 force-ellipses 后会展示省略号按钮,点击后可以快速跳转。 -:::demo - -```vue - - -``` - -::: +> demo: pagination custom ## API diff --git a/src/packages/__VUE/pagination/doc.taro.md b/src/packages/__VUE/pagination/doc.taro.md index 4733d0c77c..cba3dec84a 100644 --- a/src/packages/__VUE/pagination/doc.taro.md +++ b/src/packages/__VUE/pagination/doc.taro.md @@ -17,91 +17,24 @@ app.use(Pagination); ### 基础用法 通过 v-model 来绑定当前页码。 -:::demo - -```vue - - -``` -::: +> demo: pagination basic nav ### 简单模式 - 将 mode 设置为 simple 来切换到简单模式,此时分页器不会展示具体的页码按钮。 -:::demo - -```vue - - -``` +将 mode 设置为 `simple` 来切换到简单模式,此时分页器不会展示具体的页码按钮。 -::: +> demo: pagination simple nav ### 显示省略号 设置 force-ellipses 后会展示省略号按钮,点击后可以快速跳转。 -:::demo - -```vue - - -``` -::: +> demo: pagination ellipse nav ### 自定义按钮 -设置 force-ellipses 后会展示省略号按钮,点击后可以快速跳转。 -:::demo - -```vue - - -``` - -::: +> demo: pagination custom nav ## API