Skip to content

Commit

Permalink
fix: 主题升级v1.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
xugaoyi committed Jan 3, 2022
1 parent d8e4447 commit bc26495
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 11 deletions.
7 changes: 3 additions & 4 deletions docs/.vuepress/config.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
import { resolve } from 'path'
import { defineConfig4CustomTheme } from 'vuepress/config'
import { VdoingThemeConfig } from '../../vdoing/types'
// import { VdoingThemeConfig } from 'vuepress-theme-vdoing/types'
import { VdoingThemeConfig } from 'vuepress-theme-vdoing/types'
import dayjs from 'dayjs'
import baiduCode from './config/baiduCode' // 百度统计hm码
import htmlModules from './config/htmlModules' // 自定义插入的html块


export default defineConfig4CustomTheme<VdoingThemeConfig>({
// theme: 'vdoing', // 使用npm包主题
theme: resolve(__dirname, '../../vdoing'), // 使用本地主题
theme: 'vdoing', // 使用npm包主题
// theme: resolve(__dirname, '../../vdoing'), // 使用本地主题

locales: {
'/': {
Expand Down
2 changes: 2 additions & 0 deletions docs/《JavaScript教程》笔记/07.浏览器模型.md
Original file line number Diff line number Diff line change
Expand Up @@ -385,11 +385,13 @@ function loadScript(src, done) {

**渲染树转换为网页布局,称为“布局流”(flow);布局显示到页面的这个过程,称为“绘制”(paint)**。它们都具有阻塞效应,并且会耗费很多时间和计算资源。

```` markdown
```mermaid
graph LR
1(渲染树) -- 布局流flow --> 2(网页布局)
2 --绘制paint--> 3(页面显示)
```
````

**页面生成以后,脚本操作和样式表操作,都会触发“重流”(reflow)和“重绘”(repaint)**

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,26 +15,26 @@ author:

### 加载渲染过程

```text
```
父beforeCreate -> 父created-> 父beforeMount-> 子beforeCreate -> 子created -> 子beforeMount -> 子mounted -> 父mounted
```

父组件会先执行到beforeMount,接着会执行子组件钩子到挂载结束,再挂载父组件。

### 子组件更新过程

```text
```
父beforeUpdate -> 子beforeUpdate -> 子updated -> 父updated
```

### 父组件更新过程

```text
```
父beforeUpdate -> 父updated
```

### 销毁过程

```text
```
父beforeDestroy -> 子beforeDestroy -> 子destroyed -> 父destroyed
```
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"deploy": "bash deploy.sh",
"editFm": "node utils/editFrontmatter.js",
"baiduPush": "node utils/baiduPush.js https://xugaoyi.com && bash baiduPush.sh",
"publish": "cd ./theme-vdoing && npm publish && cd .. && yarn updateTheme",
"publish": "cd ./vdoing && npm publish && cd .. && yarn updateTheme",
"updateTheme": "yarn remove vuepress-theme-vdoing && rm -rf node_modules && yarn && yarn add vuepress-theme-vdoing -D"
},
"license": "MIT",
Expand All @@ -22,7 +22,7 @@
"vuepress-plugin-one-click-copy": "^1.0.2",
"vuepress-plugin-thirdparty-search": "^1.0.2",
"vuepress-plugin-zooming": "^1.1.7",
"vuepress-theme-vdoing": "^1.8.6",
"vuepress-theme-vdoing": "^1.9.0",
"yamljs": "^0.3.0"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion vdoing/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vuepress-theme-vdoing",
"version": "1.8.6",
"version": "1.9.0",
"description": "Vdoing theme for VuePress. 一个基于VuePress的知识管理兼博客主题。",
"author": {
"name": "gaoyi(Evan) Xu"
Expand Down

1 comment on commit bc26495

@vercel
Copy link

@vercel vercel bot commented on bc26495 Jan 3, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.