From 0bf580ed444a3cbf6615fbc204bffb656a6651eb Mon Sep 17 00:00:00 2001 From: "X.Mo" Date: Sun, 3 Nov 2024 15:21:19 +0800 Subject: [PATCH] feat: ma-pro-table --- .vitepress/config.mts | 1 + .vitepress/theme/styles/element.css | 8 + docs/demos/ma-pro-table/TestTool.vue | 20 ++ docs/demos/ma-pro-table/index.vue | 170 +++++++++++++++- docs/zh/front/component/ma-pro-table.md | 252 +++++++++++++++++++++--- docs/zh/front/high/plugins.md | 2 +- 6 files changed, 423 insertions(+), 30 deletions(-) create mode 100644 docs/demos/ma-pro-table/TestTool.vue diff --git a/.vitepress/config.mts b/.vitepress/config.mts index 79dfb03..7b94296 100644 --- a/.vitepress/config.mts +++ b/.vitepress/config.mts @@ -124,6 +124,7 @@ export default defineConfigWithTheme ({ }, srcDir: 'docs', markdown:{ + lineNumbers: true, config:(md:MarkdownRenderer)=>{ md.use(demoPreviewPlugin) md.use(plantuml,{ diff --git a/.vitepress/theme/styles/element.css b/.vitepress/theme/styles/element.css index 1ee3c46..882c4f5 100644 --- a/.vitepress/theme/styles/element.css +++ b/.vitepress/theme/styles/element.css @@ -32,4 +32,12 @@ .el-table tr:nth-child(2n) { background-color: transparent; +} + +.theme-blog-popover, .theme-blog-popover-close { + top: 120px !important; +} + +.VPDoc.has-aside .content-container { + max-width: max-content !important; } \ No newline at end of file diff --git a/docs/demos/ma-pro-table/TestTool.vue b/docs/demos/ma-pro-table/TestTool.vue new file mode 100644 index 0000000..2cbe506 --- /dev/null +++ b/docs/demos/ma-pro-table/TestTool.vue @@ -0,0 +1,20 @@ + + + + + \ No newline at end of file diff --git a/docs/demos/ma-pro-table/index.vue b/docs/demos/ma-pro-table/index.vue index 96c0baf..bfa6cad 100644 --- a/docs/demos/ma-pro-table/index.vue +++ b/docs/demos/ma-pro-table/index.vue @@ -1,9 +1,175 @@ -