From 8373a4d063e3c673874c442d1cb57f179c269ef9 Mon Sep 17 00:00:00 2001 From: gimmyhehe <975402925@qq.com> Date: Fri, 10 Jan 2025 17:05:25 +0800 Subject: [PATCH] docs: fix demo-list children miss width style (#2769) * docs: change docs content * docs: fix demo-list children miss width style --- examples/sites/demos/pc/webdoc/installation-en.md | 4 ---- examples/sites/demos/pc/webdoc/installation.md | 6 +----- examples/sites/src/views/components/demo.vue | 1 + 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/examples/sites/demos/pc/webdoc/installation-en.md b/examples/sites/demos/pc/webdoc/installation-en.md index 3f8c8cf2f6..7f7bc3e129 100644 --- a/examples/sites/demos/pc/webdoc/installation-en.md +++ b/examples/sites/demos/pc/webdoc/installation-en.md @@ -48,12 +48,8 @@ export default defineConfig({ ```
-

To avoid the uncertainty associated with monthly (minor) upgrades of @opentiny/vue , it is recommended to use ~ before relying on the version number of the package in package.json in your project. For example, "@opentiny/vue": "~3.12.0.

-
-
-

@opentiny/vue supports multiple modes. If your project is not a mobile project, you can declare the value of TINY_MODE in process.env in the above configuration code. In order to make the project during construction, the mobile side code can be shaken off and the volume of the packaged product can be optimized. For example, 'process.env': {... env,TINY_MODE:'pc'}.

diff --git a/examples/sites/demos/pc/webdoc/installation.md b/examples/sites/demos/pc/webdoc/installation.md index 03c12eb6a9..7d1e17761d 100644 --- a/examples/sites/demos/pc/webdoc/installation.md +++ b/examples/sites/demos/pc/webdoc/installation.md @@ -48,12 +48,8 @@ export default defineConfig({ ```
-

为了避免 @opentiny/vue 的月度版本 (minor) 升级带来的不确定因素,因此推荐在您的工程中的 package.json 中依赖包的版本号前使用 ~, 比如 "@opentiny/vue": "~3.12.0

-
-
-

@opentiny/vue 支持多种模式。如果您的工程非移动端工程,可以在上面配置代码中的process.env中,声明TINY_MODE的值,以使工程在构建时,能将移动端模式的代码摇掉,优化打包产物的体积。比如 'process.env': { ...process.env,TINY_MODE:'pc' }

@@ -86,7 +82,7 @@ export default defineConfig({ | Runtime 名称 | 使用说明 | | ------------------------- | -------------------------- | -| tiny-vue-pc.mjs | 包含所有 pc 模板的组件集合 | +| tiny-vue-pc.mjs | 包含所有 pc 模板的组件集合 | | tiny-vue-mobile.mjs | 包含所有移动模板的组件集合 | | tiny-vue-mobile-first.mjs | 包含所有多端模板的组件集合 | | tiny-vue-simple.mjs | 包含常用组件的集合 | diff --git a/examples/sites/src/views/components/demo.vue b/examples/sites/src/views/components/demo.vue index 1ff9c4ba5b..cd04a05d8e 100644 --- a/examples/sites/src/views/components/demo.vue +++ b/examples/sites/src/views/components/demo.vue @@ -301,6 +301,7 @@ export default defineComponent({