- {{$page.frontmatter.tagline}} + {{$frontmatter.tagline}}
{{item.title}}
{{item.details}}
@@ -39,26 +39,26 @@{{$page.frontmatter.threeSection.title}}
+{{$frontmatter.threeSection.title}}
扫码体验Mpx版本的
@@ -88,13 +88,13 @@
{{$page.frontmatter.fourSection.title}} {{$frontmatter.fourSection && $frontmatter.fourSection.title}}
- {{$page.frontmatter.fourSection.details}}
+ {{$frontmatter.fourSection.details}}
{{$page.frontmatter.fiveSection.title}} {{$frontmatter.fiveSection.title}}
- {{$page.frontmatter.fiveSection.details}}
+ {{$frontmatter.fiveSection.details}}
{{$page.frontmatter.sixSection.title}} {{$frontmatter.sixSection.title}} {{$page.frontmatter.sevenSection.title}} {{$frontmatter.sevenSection.title}}
@@ -184,7 +184,7 @@
-
-
-
-
- 一款具有优秀开发体验和深度性能优化的增强型小程序开发框架。
-
@@ -22,9 +22,9 @@
@@ -45,9 +45,9 @@
@@ -150,7 +150,7 @@ ul li
@media (max-width: 750px) {
.footer__list {
- margin-bottom 16px
+ margin-bottom 16px
}
.footer__text {
@@ -167,7 +167,7 @@ ul li
}
.footer-container {
- background #606D7C
+ background #606D7C
height auto
margin-top 0
}
diff --git a/docs-vuepress/.vuepress/theme/global-components/Header.vue b/docs-vitepress/.vitepress/theme/global-components/Header.vue
similarity index 100%
rename from docs-vuepress/.vuepress/theme/global-components/Header.vue
rename to docs-vitepress/.vitepress/theme/global-components/Header.vue
diff --git a/docs-vitepress/.vitepress/theme/index.js b/docs-vitepress/.vitepress/theme/index.js
new file mode 100644
index 0000000000..8c1acdd39b
--- /dev/null
+++ b/docs-vitepress/.vitepress/theme/index.js
@@ -0,0 +1,24 @@
+import { h } from 'vue'
+import DefaultTheme from 'vitepress/theme'
+import Layout from './layouts/HomepageLayout.vue'
+import RegisterSW from "./components/RegisterSW.vue"
+import './styles/index.css'
+
+export default {
+ ...DefaultTheme,
+ Layout() {
+ return h(Layout, null, {
+ 'layout-bottom': () => h(RegisterSW)
+ })
+ }
+}
+// export default {
+// extend: '@vuepress/theme-default',
+// plugins: [
+// ['@vuepress/search', {
+// searchMaxSuggestions: 10
+// }],
+// ['@vuepress/back-to-top'],
+// formatHeaderSlugPlugin
+// ]
+// }
diff --git a/docs-vuepress/.vuepress/theme/layouts/GlobalLayout.vue b/docs-vitepress/.vitepress/theme/layouts/GlobalLayout.vue
similarity index 100%
rename from docs-vuepress/.vuepress/theme/layouts/GlobalLayout.vue
rename to docs-vitepress/.vitepress/theme/layouts/GlobalLayout.vue
diff --git a/docs-vitepress/.vitepress/theme/layouts/HomepageLayout.vue b/docs-vitepress/.vitepress/theme/layouts/HomepageLayout.vue
new file mode 100644
index 0000000000..0da28df5da
--- /dev/null
+++ b/docs-vitepress/.vitepress/theme/layouts/HomepageLayout.vue
@@ -0,0 +1,89 @@
+
+ 组件生命周期扩展
-
-> 2.5.x 起不建议使用
-> 2.6.x 将废弃
-> 早期小程序本身缺乏组件感应所在页面的状态的能力做的增强,在小程序本身提供了 pageLifetimes 后失去意义且有不必要的性能开销,2.5.x为了避免业务异常,换手段hack实现了这两个方法,但同时有在控制台提示不要再使用,2.6.x将彻底去掉。
-
-除了小程序自定义组件本身的生命周期外,`mpx`为组件本身提供了两个生命周期钩子,`pageShow`和`pageHide`,用于监听当前组件所属页面的显示或隐藏状态。
-
-```html
-
-
-