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', 'default-case': 'error',
'consistent-this': ['error', '_this'], 'consistent-this': ['error', '_this'],
'max-depth': ['error', 8], 'max-depth': ['error', 8],
'max-lines': ['error', 1000], 'max-lines': ['error', 800],
'no-multi-str': 'error', 'no-multi-str': 'error',
'space-infix-ops': 'error', 'space-infix-ops': 'error',
'space-before-blocks': ['error', 'always'], '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": { "devDependencies": {
"@commitlint/cli": "^18.4.3", "@commitlint/cli": "^18.4.3",
"@commitlint/config-conventional": "^18.4.3", "@commitlint/config-conventional": "^18.4.3",
"@rushstack/eslint-patch": "^1.8.0", "@rushstack/eslint-patch": "^1.3.3",
"@tsconfig/node20": "^20.1.4", "@tsconfig/node18": "^18.2.2",
"@types/crypto-js": "^4.2.1", "@types/crypto-js": "^4.2.1",
"@types/file-saver": "^2.0.7", "@types/file-saver": "^2.0.7",
"@types/lodash": "^4.14.202", "@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/svg-arc-to-cubic-bezier": "^3.2.2",
"@types/tinycolor2": "^1.4.6", "@types/tinycolor2": "^1.4.6",
"@vitejs/plugin-vue": "^5.1.0", "@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", "@vue/tsconfig": "^0.5.0",
"eslint": "^8.57.0", "eslint": "^8.49.0",
"eslint-plugin-vue": "^9.17.0", "eslint-plugin-vue": "^9.17.0",
"husky": "^8.0.3", "husky": "^8.0.3",
"npm-run-all2": "^6.1.1", "npm-run-all2": "^6.1.1",
"sass": "^1.69.6", "sass": "^1.69.6",
"typescript": "^5.5.4", "typescript": "~5.3.0",
"vite": "^5.3.5", "vite": "^5.3.5",
"vue-tsc": "^2.0.29" "vue-tsc": "^2.0.29"
} }

View File

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

View File

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

View File

@ -1,4 +1,4 @@
import type * as echarts from 'echarts' import * as echarts from 'echarts'
import type { ChartData, ChartType } from '@/types/slides' import type { ChartData, ChartType } from '@/types/slides'
export interface ChartOptionPayload { export interface ChartOptionPayload {

View File

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

View File

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