Revert "chore: 依赖升级"

This reverts commit 1188555f958eb820cb6e2ff3b38853cb884e9ad1.
This commit is contained in:
zxc 2024-09-15 11:35:00 +08:00
parent 1188555f95
commit 58e81c4227
11 changed files with 294 additions and 390 deletions

View File

@ -42,7 +42,7 @@ module.exports = {
'default-case': 'error',
'consistent-this': ['error', '_this'],
'max-depth': ['error', 8],
'max-lines': ['error', 1000],
'max-lines': ['error', 800],
'no-multi-str': 'error',
'space-infix-ops': 'error',
'space-before-blocks': ['error', 'always'],

629
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -50,23 +50,23 @@
"devDependencies": {
"@commitlint/cli": "^18.4.3",
"@commitlint/config-conventional": "^18.4.3",
"@rushstack/eslint-patch": "^1.8.0",
"@tsconfig/node20": "^20.1.4",
"@rushstack/eslint-patch": "^1.3.3",
"@tsconfig/node18": "^18.2.2",
"@types/crypto-js": "^4.2.1",
"@types/file-saver": "^2.0.7",
"@types/lodash": "^4.14.202",
"@types/node": "^20.14.5",
"@types/node": "^18.19.3",
"@types/svg-arc-to-cubic-bezier": "^3.2.2",
"@types/tinycolor2": "^1.4.6",
"@vitejs/plugin-vue": "^5.1.0",
"@vue/eslint-config-typescript": "^13.0.0",
"@vue/eslint-config-typescript": "^12.0.0",
"@vue/tsconfig": "^0.5.0",
"eslint": "^8.57.0",
"eslint": "^8.49.0",
"eslint-plugin-vue": "^9.17.0",
"husky": "^8.0.3",
"npm-run-all2": "^6.1.1",
"sass": "^1.69.6",
"typescript": "^5.5.4",
"typescript": "~5.3.0",
"vite": "^5.3.5",
"vue-tsc": "^2.0.29"
}

View File

@ -49,10 +49,13 @@
</template>
<script lang="ts" setup>
import { computed, onMounted, onUnmounted, ref, watch, nextTick, onBeforeUnmount } from 'vue'
import { computed, onMounted, onUnmounted, ref } from 'vue'
import Popover from './Popover.vue'
import Input from './Input.vue'
import Divider from './Divider.vue'
import { watch } from 'vue';
import { nextTick } from 'vue';
import { onBeforeUnmount } from 'vue';
interface SelectOption {
label: string

View File

@ -1,3 +1,4 @@
import { computed } from 'vue'
import { storeToRefs } from 'pinia'
import { nanoid } from 'nanoid'
import { useSlidesStore, useMainStore } from '@/store'

View File

@ -49,7 +49,7 @@ export default () => {
for (let i = startIndex; i < slides.value.length; i++) {
const slide = slides.value[i]
if (i !== startIndex && slide.sectionTag) break
if(i !== startIndex && slide.sectionTag) break
ids.push(slide.id)
}

View File

@ -165,9 +165,9 @@ export const useSlidesStore = defineStore('slides', {
deleteSlidesIndex.push(index)
const deletedSlideSection = slides[index].sectionTag
if (deletedSlideSection) {
if(deletedSlideSection) {
const handleSlideNext = slides[index + 1]
if (handleSlideNext && !handleSlideNext.sectionTag) {
if(handleSlideNext && !handleSlideNext.sectionTag) {
delete slides[index].sectionTag
slides[index + 1].sectionTag = deletedSlideSection
}

View File

@ -1,4 +1,4 @@
import type * as echarts from 'echarts'
import * as echarts from 'echarts'
import type { ChartData, ChartType } from '@/types/slides'
export interface ChartOptionPayload {
@ -18,7 +18,7 @@ export const getChartOption = ({
lineSmooth,
stack,
}: ChartOptionPayload): echarts.EChartsOption | null => {
if (type === 'bar') {
if(type === 'bar') {
return {
color: themeColors,
textStyle: textColor ? {
@ -57,7 +57,7 @@ export const getChartOption = ({
}),
}
}
if (type === 'column') {
if(type === 'column') {
return {
color: themeColors,
textStyle: textColor ? {
@ -96,7 +96,7 @@ export const getChartOption = ({
}),
}
}
if (type === 'line') {
if(type === 'line') {
return {
color: themeColors,
textStyle: textColor ? {
@ -136,7 +136,7 @@ export const getChartOption = ({
}),
}
}
if (type === 'pie') {
if(type === 'pie') {
return {
color: themeColors,
textStyle: textColor ? {
@ -178,7 +178,7 @@ export const getChartOption = ({
],
}
}
if (type === 'ring') {
if(type === 'ring') {
return {
color: themeColors,
textStyle: textColor ? {
@ -220,7 +220,7 @@ export const getChartOption = ({
],
}
}
if (type === 'area') {
if(type === 'area') {
return {
color: themeColors,
textStyle: textColor ? {
@ -261,7 +261,7 @@ export const getChartOption = ({
}),
}
}
if (type === 'radar') {
if(type === 'radar') {
// indicator 中不设置max时显示异常设置max后控制台警告无解等EChart官方修复此bug
// const values: number[] = []
// for (const item of data.series) {
@ -297,9 +297,9 @@ export const getChartOption = ({
],
}
}
if (type === 'scatter') {
if(type === 'scatter') {
const formatedData = []
for (let i = 0; i < data.series[0].length; i++) {
for(let i = 0; i < data.series[0].length; i++) {
const x = data.series[0][i]
const y = data.series[1] ? data.series[1][i] : x
formatedData.push([x, y])

View File

@ -4,8 +4,7 @@
"exclude": ["src/**/__tests__/*"],
"compilerOptions": {
"composite": true,
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
"noEmit": true,
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]

View File

@ -1,5 +1,5 @@
{
"extends": "@tsconfig/node20/tsconfig.json",
"extends": "@tsconfig/node18/tsconfig.json",
"include": [
"vite.config.*",
"vitest.config.*",
@ -10,8 +10,6 @@
"compilerOptions": {
"composite": true,
"noEmit": true,
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
"module": "ESNext",
"moduleResolution": "Bundler",
"types": ["node"]