chore(projects): update deps & update pnpm version & update eslint config

This commit is contained in:
Soybean 2024-04-23 12:15:00 +08:00
parent 23f283aa31
commit 7392bebff9
7 changed files with 5953 additions and 4926 deletions

View File

@ -18,7 +18,7 @@ export default defineConfig(
ignores: ['/^icon-/'] ignores: ['/^icon-/']
} }
], ],
'order-attributify': 'off' 'unocss/order-attributify': 'off'
} }
} }
); );

View File

@ -2,7 +2,7 @@
"name": "soybean-admin", "name": "soybean-admin",
"type": "module", "type": "module",
"version": "1.0.3", "version": "1.0.3",
"packageManager": "pnpm@8.15.7", "packageManager": "pnpm@9.0.5",
"description": "A fresh and elegant admin template, based on Vue3、Vite3、TypeScript、NaiveUI and UnoCSS. 一个基于Vue3、Vite3、TypeScript、NaiveUI and UnoCSS的清新优雅的中后台模版。", "description": "A fresh and elegant admin template, based on Vue3、Vite3、TypeScript、NaiveUI and UnoCSS. 一个基于Vue3、Vite3、TypeScript、NaiveUI and UnoCSS的清新优雅的中后台模版。",
"author": { "author": {
"name": "Soybean", "name": "Soybean",
@ -44,7 +44,7 @@
}, },
"dependencies": { "dependencies": {
"@better-scroll/core": "2.5.1", "@better-scroll/core": "2.5.1",
"@iconify/vue": "4.1.1", "@iconify/vue": "4.1.2",
"@sa/axios": "workspace:*", "@sa/axios": "workspace:*",
"@sa/color-palette": "workspace:*", "@sa/color-palette": "workspace:*",
"@sa/hooks": "workspace:*", "@sa/hooks": "workspace:*",
@ -58,29 +58,29 @@
"naive-ui": "2.38.1", "naive-ui": "2.38.1",
"nprogress": "0.2.0", "nprogress": "0.2.0",
"pinia": "2.1.7", "pinia": "2.1.7",
"vue": "3.4.21", "vue": "3.4.24",
"vue-draggable-plus": "0.4.0", "vue-draggable-plus": "0.4.0",
"vue-i18n": "9.12.1", "vue-i18n": "9.13.1",
"vue-router": "4.3.0" "vue-router": "4.3.2"
}, },
"devDependencies": { "devDependencies": {
"@elegant-router/vue": "0.3.6", "@elegant-router/vue": "0.3.6",
"@iconify/json": "2.2.201", "@iconify/json": "2.2.203",
"@sa/scripts": "workspace:*", "@sa/scripts": "workspace:*",
"@sa/uno-preset": "workspace:*", "@sa/uno-preset": "workspace:*",
"@soybeanjs/eslint-config": "1.2.5", "@soybeanjs/eslint-config": "1.3.2",
"@types/lodash-es": "4.17.12", "@types/lodash-es": "4.17.12",
"@types/node": "20.12.7", "@types/node": "20.12.7",
"@types/nprogress": "0.2.3", "@types/nprogress": "0.2.3",
"@unocss/eslint-config": "0.59.2", "@unocss/eslint-config": "0.59.4",
"@unocss/preset-icons": "0.59.2", "@unocss/preset-icons": "0.59.4",
"@unocss/preset-uno": "0.59.2", "@unocss/preset-uno": "0.59.4",
"@unocss/transformer-directives": "0.59.2", "@unocss/transformer-directives": "0.59.4",
"@unocss/transformer-variant-group": "0.59.2", "@unocss/transformer-variant-group": "0.59.4",
"@unocss/vite": "0.59.2", "@unocss/vite": "0.59.4",
"@vitejs/plugin-vue": "5.0.4", "@vitejs/plugin-vue": "5.0.4",
"@vitejs/plugin-vue-jsx": "3.1.0", "@vitejs/plugin-vue-jsx": "3.1.0",
"eslint": "8.57.0", "eslint": "9.1.1",
"eslint-plugin-vue": "9.25.0", "eslint-plugin-vue": "9.25.0",
"lint-staged": "15.2.2", "lint-staged": "15.2.2",
"sass": "1.75.0", "sass": "1.75.0",
@ -89,12 +89,12 @@
"typescript": "5.4.5", "typescript": "5.4.5",
"unplugin-icons": "0.18.5", "unplugin-icons": "0.18.5",
"unplugin-vue-components": "0.26.0", "unplugin-vue-components": "0.26.0",
"vite": "5.2.8", "vite": "5.2.10",
"vite-plugin-progress": "0.0.7", "vite-plugin-progress": "0.0.7",
"vite-plugin-svg-icons": "2.0.1", "vite-plugin-svg-icons": "2.0.1",
"vite-plugin-vue-devtools": "7.0.27", "vite-plugin-vue-devtools": "7.0.27",
"vue-eslint-parser": "9.4.2", "vue-eslint-parser": "9.4.2",
"vue-tsc": "2.0.13" "vue-tsc": "2.0.14"
}, },
"simple-git-hooks": { "simple-git-hooks": {
"commit-msg": "pnpm sa git-commit-verify", "commit-msg": "pnpm sa git-commit-verify",

View File

@ -16,6 +16,6 @@
"qs": "6.12.1" "qs": "6.12.1"
}, },
"devDependencies": { "devDependencies": {
"@types/qs": "6.9.14" "@types/qs": "6.9.15"
} }
} }

View File

@ -25,31 +25,6 @@ interface Emits {
const emit = defineEmits<Emits>(); const emit = defineEmits<Emits>();
type SlotFn = (props?: Record<string, unknown>) => any;
type Slots = {
/**
* Slot
*
* The center content of the tab
*/
default?: SlotFn;
/**
* Slot
*
* The left content of the tab
*/
prefix?: SlotFn;
/**
* Slot
*
* The right content of the tab
*/
suffix?: SlotFn;
};
defineSlots<Slots>();
const activeTabComponent = computed(() => { const activeTabComponent = computed(() => {
const { mode, chromeClass, buttonClass } = props; const { mode, chromeClass, buttonClass } = props;
@ -88,7 +63,7 @@ function handleClose() {
<slot></slot> <slot></slot>
<template #suffix> <template #suffix>
<slot name="suffix"> <slot name="suffix">
<SvgClose v-if="closable" :class="[style['svg-close']]" @click="handleClose" /> <SvgClose v-if="closable" :class="[style['svg-close']]" @click.stop="handleClose" />
</slot> </slot>
</template> </template>
</component> </component>

View File

@ -2,23 +2,10 @@
defineOptions({ defineOptions({
name: 'SvgClose' name: 'SvgClose'
}); });
const emit = defineEmits<Emits>();
interface Emits {
(e: 'click'): void;
}
function handleClick() {
emit('click');
}
</script> </script>
<template> <template>
<div <div class=":soy: relative h-16px w-16px inline-flex items-center justify-center rd-50% text-14px">
class=":soy: relative h-16px w-16px inline-flex items-center justify-center rd-50% text-14px"
@click.stop="handleClick"
>
<svg width="1em" height="1em" viewBox="0 0 1024 1024"> <svg width="1em" height="1em" viewBox="0 0 1024 1024">
<path <path
fill="currentColor" fill="currentColor"

File diff suppressed because it is too large Load Diff

View File

@ -15,7 +15,7 @@
"types": ["vite/client", "node", "unplugin-icons/types/vue", "naive-ui/volar"], "types": ["vite/client", "node", "unplugin-icons/types/vue", "naive-ui/volar"],
"strict": true, "strict": true,
"strictNullChecks": true, "strictNullChecks": true,
"noUnusedLocals": true, "noUnusedLocals": false,
"allowSyntheticDefaultImports": true, "allowSyntheticDefaultImports": true,
"esModuleInterop": true, "esModuleInterop": true,
"forceConsistentCasingInFileNames": true, "forceConsistentCasingInFileNames": true,