升级:vitepress 1.0.0-alpha.44 => 1.0.0-alpha.47,并升级若干依赖

1.vitepress 1.0.0-alpha.44 => 1.0.0-alpha.47
2.@arco-design/web-vue 2.42.0 => 2.43.2
3.unplugin-vue-components 0.23.0 => 0.24.0
4.vite 4.0.4 => 4.1.4
5.vue 3.2.45 => 3.2.47
6.@antv/g2plot 2.4.23 => 2.4.25
7.axios 1.2.6 => 1.3.4
8.降低 @antv/g2plot 部分子依赖版本,解决构建错误:Error [ERR_REQUIRE_ESM]: require() of ES Module(@AntV+g-base@0.5.14\node_modules@antv\g-base\lib\animate\timeline.js not supported.)
9.锁定部分依赖版本,防止自动升级出现错误
This commit is contained in:
2023-02-25 18:06:30 +08:00
parent ce92688a88
commit a0358e1079
4 changed files with 703 additions and 676 deletions

1
.npmrc
View File

@@ -1 +0,0 @@
registry=https://registry.npmmirror.com/

View File

@@ -3,38 +3,38 @@
</template>
<script lang="ts" setup>
import { reactive, toRefs, onMounted, onBeforeUnmount } from 'vue'
import { WordCloud, G2 } from '@antv/g2plot'
import { onMounted, onBeforeUnmount } from 'vue';
import { WordCloud } from '@antv/g2plot';
// 定义属性
const props = defineProps({
dataList: {
type: Array,
default: () => []
}
})
// 渲染WordCloud
let wordCloud
onMounted(() => {
wordCloud = new WordCloud("wordcloud-container", {
data: props.dataList,
wordField: 'name',
weightField: 'value',
colorField: 'name',
wordStyle: {
fontFamily: 'Verdana',
fontSize: [14, 35],
rotation: 0,
// 定义属性
const props = defineProps({
dataList: {
type: Array,
default: () => [],
},
// 返回值设置成一个 [0, 1) 区间内的值,
// 可以让每次渲染的位置相同(前提是每次的宽高一致)。
random: () => 0.5
})
wordCloud.render()
})
onBeforeUnmount(() => {
wordCloud.destroy()
})
// 渲染 WordCloud
let wordCloud;
onMounted(() => {
wordCloud = new WordCloud("wordcloud-container", {
data: props.dataList,
wordField: 'name',
weightField: 'value',
colorField: 'name',
wordStyle: {
fontFamily: 'Verdana',
fontSize: [14, 35],
rotation: 0,
},
// 返回值设置成一个 [0, 1) 区间内的值,
// 可以让每次渲染的位置相同(前提是每次的宽高一致)。
random: () => 0.5,
});
wordCloud.render();
});
onBeforeUnmount(() => {
wordCloud.destroy();
});
</script>

View File

@@ -1,4 +1,8 @@
{
"name": "charles7c-repo",
"description": "查尔斯的个人知识库,记录 & 分享个人碎片化、结构化、体系化的技术知识内容。",
"author": "Charles7c",
"license": "MIT",
"private": true,
"scripts": {
"dev": "node collect-article-data.mjs && vitepress dev docs",
@@ -6,20 +10,20 @@
"build": "node collect-article-data.mjs && vitepress build docs"
},
"devDependencies": {
"@arco-design/web-vue": "^2.42.0",
"@arco-design/web-vue": "^2.43.2",
"flexsearch": "^0.7.31",
"markdown-it": "^13.0.1",
"mermaid": "^9.3.0",
"unplugin-vue-components": "^0.23.0",
"vite": "^4.0.4",
"vitepress": "1.0.0-alpha.44",
"mermaid": "9.3.0",
"unplugin-vue-components": "^0.24.0",
"vite": "^4.1.4",
"vitepress": "1.0.0-alpha.47",
"vitepress-plugin-mermaid": "2.0.8",
"vitepress-plugin-search": "^1.0.4-alpha.19",
"vue": "^3.2.45"
"vitepress-plugin-search": "1.0.4-alpha.19",
"vue": "^3.2.47"
},
"dependencies": {
"@antv/g2plot": "^2.4.23",
"axios": "^1.2.6",
"@antv/g2plot": "^2.4.25",
"axios": "^1.3.4",
"blueimp-md5": "^2.19.0",
"dayjs": "^1.11.7",
"fast-glob": "^3.2.12",
@@ -28,6 +32,10 @@
"jquery": "^3.6.3"
},
"pnpm": {
"overrides": {
"@antv/g-base": "0.5.11",
"@antv/path-util": "2.0.15"
},
"peerDependencyRules": {
"ignoreMissing": [
"@algolia/client-search"

1292
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff