From f20c5d9e2e636a9525e590371e92862a46802da8 Mon Sep 17 00:00:00 2001 From: invalid w Date: Tue, 13 Aug 2024 11:37:03 +0800 Subject: [PATCH] feat(@vben/playground): add full-screen examples (#4126) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat(@vben/playground): add full-screen examples * chore: rm unuse class * chore: move fullScreen demo to features router * chore: responsive * chore: 调整路由路径 * chore: card增加间距 --------- Co-authored-by: Li Kui <90845831+likui628@users.noreply.github.com> --- playground/src/locales/langs/en-US.json | 3 ++ playground/src/locales/langs/zh-CN.json | 3 ++ playground/src/router/routes/modules/demos.ts | 9 ++++ .../src/router/routes/modules/examples.ts | 2 +- .../demos/features/full-screen/index.vue | 47 +++++++++++++++++++ 5 files changed, 63 insertions(+), 1 deletion(-) create mode 100644 playground/src/views/demos/features/full-screen/index.vue diff --git a/playground/src/locales/langs/en-US.json b/playground/src/locales/langs/en-US.json index 5b4b7cec..ee931056 100644 --- a/playground/src/locales/langs/en-US.json +++ b/playground/src/locales/langs/en-US.json @@ -48,6 +48,9 @@ "watermark": "Watermark", "tabs": "Tabs", "tabDetail": "Tab Detail Page", + "fullScreen": { + "title": "FullScreen" + }, "clipboard": "Clipboard" }, "breadcrumb": { diff --git a/playground/src/locales/langs/zh-CN.json b/playground/src/locales/langs/zh-CN.json index dfab5e01..5b5a65e5 100644 --- a/playground/src/locales/langs/zh-CN.json +++ b/playground/src/locales/langs/zh-CN.json @@ -48,6 +48,9 @@ "watermark": "水印", "tabs": "标签页", "tabDetail": "标签详情页", + "fullScreen": { + "title": "全屏" + }, "clipboard": "剪贴板" }, "breadcrumb": { diff --git a/playground/src/router/routes/modules/demos.ts b/playground/src/router/routes/modules/demos.ts index fd5df4b4..08a19d63 100644 --- a/playground/src/router/routes/modules/demos.ts +++ b/playground/src/router/routes/modules/demos.ts @@ -165,6 +165,15 @@ const routes: RouteRecordRaw[] = [ }, ], }, + { + name: 'FullScreenDemo', + path: '/demos/features/full-screen', + component: () => + import('#/views/demos/features/full-screen/index.vue'), + meta: { + title: $t('page.demos.features.fullScreen.title'), + }, + }, { name: 'ClipboardDemo', path: '/demos/features/clipboard', diff --git a/playground/src/router/routes/modules/examples.ts b/playground/src/router/routes/modules/examples.ts index bd1ec467..fd3fd237 100644 --- a/playground/src/router/routes/modules/examples.ts +++ b/playground/src/router/routes/modules/examples.ts @@ -17,7 +17,7 @@ const routes: RouteRecordRaw[] = [ children: [ { name: 'EllipsisDemo', - path: '/examples/ellipsis', + path: 'ellipsis', component: () => import('#/views/examples/ellipsis/index.vue'), meta: { title: $t('page.examples.ellipsis.title'), diff --git a/playground/src/views/demos/features/full-screen/index.vue b/playground/src/views/demos/features/full-screen/index.vue new file mode 100644 index 00000000..b5f7502d --- /dev/null +++ b/playground/src/views/demos/features/full-screen/index.vue @@ -0,0 +1,47 @@ + + +