Skip to content

Commit

Permalink
chore(projects): update deps & update pnpm version & update eslint co…
Browse files Browse the repository at this point in the history
…nfig
  • Loading branch information
honghuangdc committed Apr 23, 2024
1 parent 23f283a commit 7392beb
Show file tree
Hide file tree
Showing 7 changed files with 5,890 additions and 4,863 deletions.
2 changes: 1 addition & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default defineConfig(
ignores: ['/^icon-/']
}
],
'order-attributify': 'off'
'unocss/order-attributify': 'off'
}
}
);
32 changes: 16 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "soybean-admin",
"type": "module",
"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的清新优雅的中后台模版。",
"author": {
"name": "Soybean",
Expand Down Expand Up @@ -44,7 +44,7 @@
},
"dependencies": {
"@better-scroll/core": "2.5.1",
"@iconify/vue": "4.1.1",
"@iconify/vue": "4.1.2",
"@sa/axios": "workspace:*",
"@sa/color-palette": "workspace:*",
"@sa/hooks": "workspace:*",
Expand All @@ -58,29 +58,29 @@
"naive-ui": "2.38.1",
"nprogress": "0.2.0",
"pinia": "2.1.7",
"vue": "3.4.21",
"vue": "3.4.24",
"vue-draggable-plus": "0.4.0",
"vue-i18n": "9.12.1",
"vue-router": "4.3.0"
"vue-i18n": "9.13.1",
"vue-router": "4.3.2"
},
"devDependencies": {
"@elegant-router/vue": "0.3.6",
"@iconify/json": "2.2.201",
"@iconify/json": "2.2.203",
"@sa/scripts": "workspace:*",
"@sa/uno-preset": "workspace:*",
"@soybeanjs/eslint-config": "1.2.5",
"@soybeanjs/eslint-config": "1.3.2",
"@types/lodash-es": "4.17.12",
"@types/node": "20.12.7",
"@types/nprogress": "0.2.3",
"@unocss/eslint-config": "0.59.2",
"@unocss/preset-icons": "0.59.2",
"@unocss/preset-uno": "0.59.2",
"@unocss/transformer-directives": "0.59.2",
"@unocss/transformer-variant-group": "0.59.2",
"@unocss/vite": "0.59.2",
"@unocss/eslint-config": "0.59.4",
"@unocss/preset-icons": "0.59.4",
"@unocss/preset-uno": "0.59.4",
"@unocss/transformer-directives": "0.59.4",
"@unocss/transformer-variant-group": "0.59.4",
"@unocss/vite": "0.59.4",
"@vitejs/plugin-vue": "5.0.4",
"@vitejs/plugin-vue-jsx": "3.1.0",
"eslint": "8.57.0",
"eslint": "9.1.1",
"eslint-plugin-vue": "9.25.0",
"lint-staged": "15.2.2",
"sass": "1.75.0",
Expand All @@ -89,12 +89,12 @@
"typescript": "5.4.5",
"unplugin-icons": "0.18.5",
"unplugin-vue-components": "0.26.0",
"vite": "5.2.8",
"vite": "5.2.10",
"vite-plugin-progress": "0.0.7",
"vite-plugin-svg-icons": "2.0.1",
"vite-plugin-vue-devtools": "7.0.27",
"vue-eslint-parser": "9.4.2",
"vue-tsc": "2.0.13"
"vue-tsc": "2.0.14"
},
"simple-git-hooks": {
"commit-msg": "pnpm sa git-commit-verify",
Expand Down
2 changes: 1 addition & 1 deletion packages/axios/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
"qs": "6.12.1"
},
"devDependencies": {
"@types/qs": "6.9.14"
"@types/qs": "6.9.15"
}
}
27 changes: 1 addition & 26 deletions packages/materials/src/libs/page-tab/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,31 +25,6 @@ interface 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 { mode, chromeClass, buttonClass } = props;
Expand Down Expand Up @@ -88,7 +63,7 @@ function handleClose() {
<slot></slot>
<template #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>
</template>
</component>
Expand Down
15 changes: 1 addition & 14 deletions packages/materials/src/libs/page-tab/svg-close.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,10 @@
defineOptions({
name: 'SvgClose'
});
const emit = defineEmits<Emits>();
interface Emits {
(e: 'click'): void;
}
function handleClick() {
emit('click');
}
</script>

<template>
<div
class=":soy: relative h-16px w-16px inline-flex items-center justify-center rd-50% text-14px"
@click.stop="handleClick"
>
<div class=":soy: relative h-16px w-16px inline-flex items-center justify-center rd-50% text-14px">
<svg width="1em" height="1em" viewBox="0 0 1024 1024">
<path
fill="currentColor"
Expand Down
Loading

0 comments on commit 7392beb

Please sign in to comment.