mirror of
https://github.com/pipipi-pikachu/PPTist.git
synced 2025-04-15 02:20:00 +08:00
Revert "chore: 依赖升级"
This reverts commit 1188555f958eb820cb6e2ff3b38853cb884e9ad1.
This commit is contained in:
parent
1188555f95
commit
58e81c4227
@ -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
629
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
12
package.json
12
package.json
@ -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"
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
|
@ -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'
|
||||||
|
@ -22,7 +22,7 @@ import type {
|
|||||||
ChartOptions,
|
ChartOptions,
|
||||||
} from '@/types/slides'
|
} from '@/types/slides'
|
||||||
|
|
||||||
const convertFontSizePtToPx = (html: string, ratio: number) => {
|
const convertFontSizePtToPx = (html: string, ratio: number) => {
|
||||||
return html.replace(/font-size:\s*([\d.]+)pt/g, (match, p1) => {
|
return html.replace(/font-size:\s*([\d.]+)pt/g, (match, p1) => {
|
||||||
return `font-size: ${(parseFloat(p1) * ratio).toFixed(1)}px`
|
return `font-size: ${(parseFloat(p1) * ratio).toFixed(1)}px`
|
||||||
})
|
})
|
||||||
|
@ -49,7 +49,7 @@ export default () => {
|
|||||||
|
|
||||||
for (let i = startIndex; i < slides.value.length; i++) {
|
for (let i = startIndex; i < slides.value.length; i++) {
|
||||||
const slide = slides.value[i]
|
const slide = slides.value[i]
|
||||||
if (i !== startIndex && slide.sectionTag) break
|
if(i !== startIndex && slide.sectionTag) break
|
||||||
|
|
||||||
ids.push(slide.id)
|
ids.push(slide.id)
|
||||||
}
|
}
|
||||||
|
@ -165,9 +165,9 @@ export const useSlidesStore = defineStore('slides', {
|
|||||||
deleteSlidesIndex.push(index)
|
deleteSlidesIndex.push(index)
|
||||||
|
|
||||||
const deletedSlideSection = slides[index].sectionTag
|
const deletedSlideSection = slides[index].sectionTag
|
||||||
if (deletedSlideSection) {
|
if(deletedSlideSection) {
|
||||||
const handleSlideNext = slides[index + 1]
|
const handleSlideNext = slides[index + 1]
|
||||||
if (handleSlideNext && !handleSlideNext.sectionTag) {
|
if(handleSlideNext && !handleSlideNext.sectionTag) {
|
||||||
delete slides[index].sectionTag
|
delete slides[index].sectionTag
|
||||||
slides[index + 1].sectionTag = deletedSlideSection
|
slides[index + 1].sectionTag = deletedSlideSection
|
||||||
}
|
}
|
||||||
|
@ -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 {
|
||||||
@ -18,7 +18,7 @@ export const getChartOption = ({
|
|||||||
lineSmooth,
|
lineSmooth,
|
||||||
stack,
|
stack,
|
||||||
}: ChartOptionPayload): echarts.EChartsOption | null => {
|
}: ChartOptionPayload): echarts.EChartsOption | null => {
|
||||||
if (type === 'bar') {
|
if(type === 'bar') {
|
||||||
return {
|
return {
|
||||||
color: themeColors,
|
color: themeColors,
|
||||||
textStyle: textColor ? {
|
textStyle: textColor ? {
|
||||||
@ -57,7 +57,7 @@ export const getChartOption = ({
|
|||||||
}),
|
}),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (type === 'column') {
|
if(type === 'column') {
|
||||||
return {
|
return {
|
||||||
color: themeColors,
|
color: themeColors,
|
||||||
textStyle: textColor ? {
|
textStyle: textColor ? {
|
||||||
@ -96,7 +96,7 @@ export const getChartOption = ({
|
|||||||
}),
|
}),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (type === 'line') {
|
if(type === 'line') {
|
||||||
return {
|
return {
|
||||||
color: themeColors,
|
color: themeColors,
|
||||||
textStyle: textColor ? {
|
textStyle: textColor ? {
|
||||||
@ -136,7 +136,7 @@ export const getChartOption = ({
|
|||||||
}),
|
}),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (type === 'pie') {
|
if(type === 'pie') {
|
||||||
return {
|
return {
|
||||||
color: themeColors,
|
color: themeColors,
|
||||||
textStyle: textColor ? {
|
textStyle: textColor ? {
|
||||||
@ -178,7 +178,7 @@ export const getChartOption = ({
|
|||||||
],
|
],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (type === 'ring') {
|
if(type === 'ring') {
|
||||||
return {
|
return {
|
||||||
color: themeColors,
|
color: themeColors,
|
||||||
textStyle: textColor ? {
|
textStyle: textColor ? {
|
||||||
@ -220,7 +220,7 @@ export const getChartOption = ({
|
|||||||
],
|
],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (type === 'area') {
|
if(type === 'area') {
|
||||||
return {
|
return {
|
||||||
color: themeColors,
|
color: themeColors,
|
||||||
textStyle: textColor ? {
|
textStyle: textColor ? {
|
||||||
@ -261,7 +261,7 @@ export const getChartOption = ({
|
|||||||
}),
|
}),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (type === 'radar') {
|
if(type === 'radar') {
|
||||||
// indicator 中不设置max时显示异常,设置max后控制台警告,无解,等EChart官方修复此bug
|
// indicator 中不设置max时显示异常,设置max后控制台警告,无解,等EChart官方修复此bug
|
||||||
// const values: number[] = []
|
// const values: number[] = []
|
||||||
// for (const item of data.series) {
|
// for (const item of data.series) {
|
||||||
@ -297,9 +297,9 @@ export const getChartOption = ({
|
|||||||
],
|
],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (type === 'scatter') {
|
if(type === 'scatter') {
|
||||||
const formatedData = []
|
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 x = data.series[0][i]
|
||||||
const y = data.series[1] ? data.series[1][i] : x
|
const y = data.series[1] ? data.series[1][i] : x
|
||||||
formatedData.push([x, y])
|
formatedData.push([x, y])
|
||||||
|
@ -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/*"]
|
||||||
|
@ -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"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user