From bc264955670f1136ee748c6c481b2a606e907688 Mon Sep 17 00:00:00 2001 From: xugaoyi <894072666@qq.com> Date: Mon, 3 Jan 2022 11:29:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=B8=BB=E9=A2=98=E5=8D=87=E7=BA=A7v1.9?= =?UTF-8?q?.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/.vuepress/config.ts | 7 +++---- ...17\350\247\210\345\231\250\346\250\241\345\236\213.md" | 2 ++ ...75\345\221\250\346\234\237\351\241\272\345\272\217.md" | 8 ++++---- package.json | 4 ++-- vdoing/package.json | 2 +- 5 files changed, 12 insertions(+), 11 deletions(-) diff --git a/docs/.vuepress/config.ts b/docs/.vuepress/config.ts index 4307a834a3..cb2d244ad2 100644 --- a/docs/.vuepress/config.ts +++ b/docs/.vuepress/config.ts @@ -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({ - // theme: 'vdoing', // 使用npm包主题 - theme: resolve(__dirname, '../../vdoing'), // 使用本地主题 + theme: 'vdoing', // 使用npm包主题 + // theme: resolve(__dirname, '../../vdoing'), // 使用本地主题 locales: { '/': { diff --git "a/docs/\343\200\212JavaScript\346\225\231\347\250\213\343\200\213\347\254\224\350\256\260/07.\346\265\217\350\247\210\345\231\250\346\250\241\345\236\213.md" "b/docs/\343\200\212JavaScript\346\225\231\347\250\213\343\200\213\347\254\224\350\256\260/07.\346\265\217\350\247\210\345\231\250\346\250\241\345\236\213.md" index def3d54a35..20802a014b 100644 --- "a/docs/\343\200\212JavaScript\346\225\231\347\250\213\343\200\213\347\254\224\350\256\260/07.\346\265\217\350\247\210\345\231\250\346\250\241\345\236\213.md" +++ "b/docs/\343\200\212JavaScript\346\225\231\347\250\213\343\200\213\347\254\224\350\256\260/07.\346\265\217\350\247\210\345\231\250\346\250\241\345\236\213.md" @@ -385,11 +385,13 @@ function loadScript(src, done) { **渲染树转换为网页布局,称为“布局流”(flow);布局显示到页面的这个过程,称为“绘制”(paint)**。它们都具有阻塞效应,并且会耗费很多时间和计算资源。 +```` markdown ```mermaid graph LR 1(渲染树) -- 布局流flow --> 2(网页布局) 2 --绘制paint--> 3(页面显示) ``` +```` **页面生成以后,脚本操作和样式表操作,都会触发“重流”(reflow)和“重绘”(repaint)**。 diff --git "a/docs/\343\200\212Vue\343\200\213\347\254\224\350\256\260/02.\347\273\204\344\273\266/90.vue\347\210\266\345\255\220\347\273\204\344\273\266\347\232\204\347\224\237\345\221\275\345\221\250\346\234\237\351\241\272\345\272\217.md" "b/docs/\343\200\212Vue\343\200\213\347\254\224\350\256\260/02.\347\273\204\344\273\266/90.vue\347\210\266\345\255\220\347\273\204\344\273\266\347\232\204\347\224\237\345\221\275\345\221\250\346\234\237\351\241\272\345\272\217.md" index 17d7a47360..9531a3c013 100644 --- "a/docs/\343\200\212Vue\343\200\213\347\254\224\350\256\260/02.\347\273\204\344\273\266/90.vue\347\210\266\345\255\220\347\273\204\344\273\266\347\232\204\347\224\237\345\221\275\345\221\250\346\234\237\351\241\272\345\272\217.md" +++ "b/docs/\343\200\212Vue\343\200\213\347\254\224\350\256\260/02.\347\273\204\344\273\266/90.vue\347\210\266\345\255\220\347\273\204\344\273\266\347\232\204\347\224\237\345\221\275\345\221\250\346\234\237\351\241\272\345\272\217.md" @@ -15,7 +15,7 @@ author: ### 加载渲染过程 -```text +``` 父beforeCreate -> 父created-> 父beforeMount-> 子beforeCreate -> 子created -> 子beforeMount -> 子mounted -> 父mounted ``` @@ -23,18 +23,18 @@ author: ### 子组件更新过程 -```text +``` 父beforeUpdate -> 子beforeUpdate -> 子updated -> 父updated ``` ### 父组件更新过程 -```text +``` 父beforeUpdate -> 父updated ``` ### 销毁过程 -```text +``` 父beforeDestroy -> 子beforeDestroy -> 子destroyed -> 父destroyed ``` diff --git a/package.json b/package.json index 21c0d6e41d..a95c51b651 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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": { diff --git a/vdoing/package.json b/vdoing/package.json index 210d05c983..dda21ccf6c 100644 --- a/vdoing/package.json +++ b/vdoing/package.json @@ -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"