diff --git a/packages/toolkits/docs/template/ng/src/router.js b/packages/toolkits/docs/template/ng/src/router.js index 77cc5826..559a6eb5 100644 --- a/packages/toolkits/docs/template/ng/src/router.js +++ b/packages/toolkits/docs/template/ng/src/router.js @@ -27,6 +27,12 @@ let routes = [ name: 'components', children: [{ path: '', component: Components }], }, + //单组件示例 + { + path: import.meta.env.VITE_CONTEXT + 'demoPage/:cmpId/:demoId', + component: DemoPage, + name: 'demoPage', + }, // 未匹配到目标地址时,进行路由重定向 { path: '/:pathMatch(.*)*', diff --git a/packages/toolkits/docs/template/ng/src/views/components/components.vue b/packages/toolkits/docs/template/ng/src/views/components/components.vue index 961aeb80..5428536f 100644 --- a/packages/toolkits/docs/template/ng/src/views/components/components.vue +++ b/packages/toolkits/docs/template/ng/src/views/components/components.vue @@ -1,348 +1,61 @@ - + diff --git a/packages/toolkits/docs/template/ng/src/views/components/componentsDetail.vue b/packages/toolkits/docs/template/ng/src/views/components/componentsDetail.vue new file mode 100644 index 00000000..757abf2d --- /dev/null +++ b/packages/toolkits/docs/template/ng/src/views/components/componentsDetail.vue @@ -0,0 +1,344 @@ + + + diff --git a/packages/toolkits/docs/template/ng/src/views/components/componentsDetailTab.vue b/packages/toolkits/docs/template/ng/src/views/components/componentsDetailTab.vue new file mode 100644 index 00000000..6cb8a8b6 --- /dev/null +++ b/packages/toolkits/docs/template/ng/src/views/components/componentsDetailTab.vue @@ -0,0 +1,403 @@ + + + diff --git a/packages/toolkits/docs/template/ng/src/views/components/demo.vue b/packages/toolkits/docs/template/ng/src/views/components/demo.vue index b4f29047..3a5b4699 100644 --- a/packages/toolkits/docs/template/ng/src/views/components/demo.vue +++ b/packages/toolkits/docs/template/ng/src/views/components/demo.vue @@ -19,13 +19,14 @@ - +
+
-
+
-
+
@@ -42,10 +43,10 @@
diff --git a/packages/toolkits/docs/template/ng/src/views/components/demoPage.vue b/packages/toolkits/docs/template/ng/src/views/components/demoPage.vue new file mode 100644 index 00000000..e9d8ec30 --- /dev/null +++ b/packages/toolkits/docs/template/ng/src/views/components/demoPage.vue @@ -0,0 +1,207 @@ + + + diff --git a/packages/toolkits/docs/template/vue/src/router.js b/packages/toolkits/docs/template/vue/src/router.js index 1830ef2c..5eef2f0a 100644 --- a/packages/toolkits/docs/template/vue/src/router.js +++ b/packages/toolkits/docs/template/vue/src/router.js @@ -2,6 +2,7 @@ import { createRouter, createWebHistory } from 'vue-router'; import Layout from '@/views/layout/layout.vue'; const Components = () => import('@/views/components/components.vue'); +const DemoPage = () => import('@/views/components/demoPage.vue'); const Docs = () => import('@/views/docs/docs.vue'); const Overview = () => import('@/views/overview.vue'); @@ -27,6 +28,12 @@ let routes = [ name: 'components', children: [{ path: '', component: Components }], }, + //单组件示例 + { + path: import.meta.env.VITE_CONTEXT + 'demoPage/:cmpId/:demoId', + component: DemoPage, + name: 'demoPage', + }, // 未匹配到目标地址时,进行路由重定向 { path: '/:pathMatch(.*)*', diff --git a/packages/toolkits/docs/template/vue/src/views/components/components.vue b/packages/toolkits/docs/template/vue/src/views/components/components.vue index 961aeb80..5428536f 100644 --- a/packages/toolkits/docs/template/vue/src/views/components/components.vue +++ b/packages/toolkits/docs/template/vue/src/views/components/components.vue @@ -1,348 +1,61 @@ - + diff --git a/packages/toolkits/docs/template/vue/src/views/components/componentsDetail.vue b/packages/toolkits/docs/template/vue/src/views/components/componentsDetail.vue new file mode 100644 index 00000000..757abf2d --- /dev/null +++ b/packages/toolkits/docs/template/vue/src/views/components/componentsDetail.vue @@ -0,0 +1,344 @@ + + + diff --git a/packages/toolkits/docs/template/vue/src/views/components/componentsDetailTab.vue b/packages/toolkits/docs/template/vue/src/views/components/componentsDetailTab.vue new file mode 100644 index 00000000..6cb8a8b6 --- /dev/null +++ b/packages/toolkits/docs/template/vue/src/views/components/componentsDetailTab.vue @@ -0,0 +1,403 @@ + + + diff --git a/packages/toolkits/docs/template/vue/src/views/components/demo.vue b/packages/toolkits/docs/template/vue/src/views/components/demo.vue index d95c1f49..3a5b4699 100644 --- a/packages/toolkits/docs/template/vue/src/views/components/demo.vue +++ b/packages/toolkits/docs/template/vue/src/views/components/demo.vue @@ -19,7 +19,8 @@ - +
+
@@ -42,7 +43,7 @@
+