diff --git a/packages/nutui-taro-demo/src/exhibition/pages/table/align.vue b/packages/nutui-taro-demo/src/exhibition/pages/table/align.vue new file mode 100644 index 0000000000..090eecacd0 --- /dev/null +++ b/packages/nutui-taro-demo/src/exhibition/pages/table/align.vue @@ -0,0 +1,40 @@ + + diff --git a/packages/nutui-taro-demo/src/exhibition/pages/table/async.vue b/packages/nutui-taro-demo/src/exhibition/pages/table/async.vue new file mode 100644 index 0000000000..3728947726 --- /dev/null +++ b/packages/nutui-taro-demo/src/exhibition/pages/table/async.vue @@ -0,0 +1,59 @@ + + diff --git a/packages/nutui-taro-demo/src/exhibition/pages/table/basic.vue b/packages/nutui-taro-demo/src/exhibition/pages/table/basic.vue new file mode 100644 index 0000000000..9f40b30fbb --- /dev/null +++ b/packages/nutui-taro-demo/src/exhibition/pages/table/basic.vue @@ -0,0 +1,37 @@ + + diff --git a/packages/nutui-taro-demo/src/exhibition/pages/table/border.vue b/packages/nutui-taro-demo/src/exhibition/pages/table/border.vue new file mode 100644 index 0000000000..bc1c535cb5 --- /dev/null +++ b/packages/nutui-taro-demo/src/exhibition/pages/table/border.vue @@ -0,0 +1,37 @@ + + diff --git a/packages/nutui-taro-demo/src/exhibition/pages/table/custom.vue b/packages/nutui-taro-demo/src/exhibition/pages/table/custom.vue new file mode 100644 index 0000000000..cf4e6cdb6d --- /dev/null +++ b/packages/nutui-taro-demo/src/exhibition/pages/table/custom.vue @@ -0,0 +1,68 @@ + + diff --git a/packages/nutui-taro-demo/src/exhibition/pages/table/index.config.js b/packages/nutui-taro-demo/src/exhibition/pages/table/index.config.ts similarity index 100% rename from packages/nutui-taro-demo/src/exhibition/pages/table/index.config.js rename to packages/nutui-taro-demo/src/exhibition/pages/table/index.config.ts diff --git a/packages/nutui-taro-demo/src/exhibition/pages/table/index.vue b/packages/nutui-taro-demo/src/exhibition/pages/table/index.vue index eba7b1dc5c..025691e2f6 100644 --- a/packages/nutui-taro-demo/src/exhibition/pages/table/index.vue +++ b/packages/nutui-taro-demo/src/exhibition/pages/table/index.vue @@ -1,247 +1,69 @@ - - diff --git a/packages/nutui-taro-demo/src/exhibition/pages/table/nodata.vue b/packages/nutui-taro-demo/src/exhibition/pages/table/nodata.vue new file mode 100644 index 0000000000..0e31860cb9 --- /dev/null +++ b/packages/nutui-taro-demo/src/exhibition/pages/table/nodata.vue @@ -0,0 +1,34 @@ + + diff --git a/packages/nutui-taro-demo/src/exhibition/pages/table/sort.vue b/packages/nutui-taro-demo/src/exhibition/pages/table/sort.vue new file mode 100644 index 0000000000..cf71f7eea0 --- /dev/null +++ b/packages/nutui-taro-demo/src/exhibition/pages/table/sort.vue @@ -0,0 +1,52 @@ + + diff --git a/packages/nutui-taro-demo/src/exhibition/pages/table/striped.vue b/packages/nutui-taro-demo/src/exhibition/pages/table/striped.vue new file mode 100644 index 0000000000..6b20a7fa36 --- /dev/null +++ b/packages/nutui-taro-demo/src/exhibition/pages/table/striped.vue @@ -0,0 +1,37 @@ + + diff --git a/packages/nutui-taro-demo/src/exhibition/pages/table/summary.vue b/packages/nutui-taro-demo/src/exhibition/pages/table/summary.vue new file mode 100644 index 0000000000..fa28b26ca7 --- /dev/null +++ b/packages/nutui-taro-demo/src/exhibition/pages/table/summary.vue @@ -0,0 +1,42 @@ + + diff --git a/src/packages/__VUE/table/demo.vue b/src/packages/__VUE/table/demo.vue deleted file mode 100644 index b31366d4c8..0000000000 --- a/src/packages/__VUE/table/demo.vue +++ /dev/null @@ -1,337 +0,0 @@ - - - - - diff --git a/src/packages/__VUE/table/demo/align.vue b/src/packages/__VUE/table/demo/align.vue new file mode 100644 index 0000000000..090eecacd0 --- /dev/null +++ b/src/packages/__VUE/table/demo/align.vue @@ -0,0 +1,40 @@ + + diff --git a/src/packages/__VUE/table/demo/async.vue b/src/packages/__VUE/table/demo/async.vue new file mode 100644 index 0000000000..3728947726 --- /dev/null +++ b/src/packages/__VUE/table/demo/async.vue @@ -0,0 +1,59 @@ + + diff --git a/src/packages/__VUE/table/demo/basic.vue b/src/packages/__VUE/table/demo/basic.vue new file mode 100644 index 0000000000..9f40b30fbb --- /dev/null +++ b/src/packages/__VUE/table/demo/basic.vue @@ -0,0 +1,37 @@ + + diff --git a/src/packages/__VUE/table/demo/border.vue b/src/packages/__VUE/table/demo/border.vue new file mode 100644 index 0000000000..bc1c535cb5 --- /dev/null +++ b/src/packages/__VUE/table/demo/border.vue @@ -0,0 +1,37 @@ + + diff --git a/src/packages/__VUE/table/demo/custom.vue b/src/packages/__VUE/table/demo/custom.vue new file mode 100644 index 0000000000..d847543201 --- /dev/null +++ b/src/packages/__VUE/table/demo/custom.vue @@ -0,0 +1,68 @@ + + diff --git a/src/packages/__VUE/table/demo/index.vue b/src/packages/__VUE/table/demo/index.vue new file mode 100644 index 0000000000..7a9faa9022 --- /dev/null +++ b/src/packages/__VUE/table/demo/index.vue @@ -0,0 +1,69 @@ + + + diff --git a/src/packages/__VUE/table/demo/nodata.vue b/src/packages/__VUE/table/demo/nodata.vue new file mode 100644 index 0000000000..0e31860cb9 --- /dev/null +++ b/src/packages/__VUE/table/demo/nodata.vue @@ -0,0 +1,34 @@ + + diff --git a/src/packages/__VUE/table/demo/sort.vue b/src/packages/__VUE/table/demo/sort.vue new file mode 100644 index 0000000000..cf71f7eea0 --- /dev/null +++ b/src/packages/__VUE/table/demo/sort.vue @@ -0,0 +1,52 @@ + + diff --git a/src/packages/__VUE/table/demo/striped.vue b/src/packages/__VUE/table/demo/striped.vue new file mode 100644 index 0000000000..6b20a7fa36 --- /dev/null +++ b/src/packages/__VUE/table/demo/striped.vue @@ -0,0 +1,37 @@ + + diff --git a/src/packages/__VUE/table/demo/summary.vue b/src/packages/__VUE/table/demo/summary.vue new file mode 100644 index 0000000000..fa28b26ca7 --- /dev/null +++ b/src/packages/__VUE/table/demo/summary.vue @@ -0,0 +1,42 @@ + + diff --git a/src/packages/__VUE/table/doc.en-US.md b/src/packages/__VUE/table/doc.en-US.md index bfb443fd76..218085110e 100644 --- a/src/packages/__VUE/table/doc.en-US.md +++ b/src/packages/__VUE/table/doc.en-US.md @@ -16,531 +16,39 @@ app.use(Table); ### Basic Usage -:::demo - -```vue - - -``` +> demo: table basic -::: - -### Whether to display border and align text - -:::demo - -```vue - - -``` +### Border -::: - -### Show summary bar - -:::demo - -```vue - - -``` +> demo: table border -::: +### Text Align -### Stripes, alternating light and shade +> demo: table align -:::demo - -```vue - - -``` +### Summary Bar -::: +> demo: table summary -### No data is displayed by default, and customization is supported +### Stripes, alternating light and shade -:::demo - -```vue - - -``` +> demo: table striped + +### No data is displayed by default, and customization is supported -::: +> demo: table nodata ### Custom cell -:::demo - -```vue - - -``` +> demo: table custom -::: - -### Support asynchronous rendering - -:::demo - -```vue - - -``` +### Asynchronous rendering -::: +> demo: table async ### Support sorting -:::demo - -```vue - - -``` - -::: +> demo: table sort ## API diff --git a/src/packages/__VUE/table/doc.md b/src/packages/__VUE/table/doc.md index 82ef3284b7..3e0fdb519a 100644 --- a/src/packages/__VUE/table/doc.md +++ b/src/packages/__VUE/table/doc.md @@ -16,531 +16,39 @@ app.use(Table); ### 基础用法 -:::demo - -```vue - - -``` +> demo: table basic -::: - -### 是否显示边框,文字对齐 - -:::demo - -```vue - - -``` +### 是否显示边框 -::: +> demo: table border -### 显示总结栏 +### 文字对齐方式 -:::demo - -```vue - - -``` +> demo: table align -::: +### 显示总结栏 -### 条纹、明暗交替 +> demo: table summary -:::demo - -```vue - - -``` +### 条纹、明暗交替 -::: +> demo: table striped ### 无数据默认展示,支持自定义 -:::demo - -```vue - - -``` - -::: +> demo: table nodata ### 自定义单元格 -:::demo - -```vue - - -``` +> demo: table custom -::: - -### 支持异步渲染 - -:::demo - -```vue - - -``` +### 异步渲染 -::: +> demo: table async ### 支持排序 -:::demo - -```vue - - -``` - -::: +> demo: table sort ## API diff --git a/src/packages/__VUE/table/doc.taro.md b/src/packages/__VUE/table/doc.taro.md index 0effea9113..27c4237ca9 100644 --- a/src/packages/__VUE/table/doc.taro.md +++ b/src/packages/__VUE/table/doc.taro.md @@ -16,530 +16,39 @@ app.use(Table); ### 基础用法 -:::demo - -```vue - - -``` +> demo: table basic exhibition -::: - -### 是否显示边框,文字对齐 - -:::demo - -```vue - - -``` +### 是否显示边框 -::: +> demo: table border exhibition -### 显示总结栏 +### 文字对齐方式 -:::demo - -```vue - - -``` +> demo: table align exhibition -::: +### 显示总结栏 -### 条纹、明暗交替 +> demo: table summary exhibition -:::demo - -```vue - - -``` +### 条纹、明暗交替 -::: +> demo: table striped exhibition ### 无数据默认展示,支持自定义 -:::demo - -```vue - - -``` - -::: +> demo: table nodata exhibition ### 自定义单元格 -:::demo - -```vue - - -``` +> demo: table custom exhibition -::: - -### 支持异步渲染 - -:::demo - -```vue - - -``` +### 异步渲染 -::: +> demo: table async exhibition ### 支持排序 -:::demo - -```vue - - -``` - -::: +> demo: table sort exhibition ## API