Commit 2c228255 by Vben Committed by GitHub

fix: improve layout boundary processing (#4423)

1 parent 26d43ef8
...@@ -17,7 +17,6 @@ env: ...@@ -17,7 +17,6 @@ env:
jobs: jobs:
test: test:
name: Test name: Test
if: github.actor != 'dependabot[bot]' && !contains(github.event.head_commit.message, '[skip ci]')
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
matrix: matrix:
...@@ -56,7 +55,6 @@ jobs: ...@@ -56,7 +55,6 @@ jobs:
lint: lint:
name: Lint name: Lint
if: github.actor != 'dependabot[bot]' && !contains(github.event.head_commit.message, '[skip ci]')
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
matrix: matrix:
...@@ -109,7 +107,6 @@ jobs: ...@@ -109,7 +107,6 @@ jobs:
ci-ok: ci-ok:
name: CI OK name: CI OK
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.actor != 'dependabot[bot]' && !contains(github.event.head_commit.message, '[skip ci]') && always()
needs: [test, check, lint] needs: [test, check, lint]
env: env:
FAILURE: ${{ contains(join(needs.*.result, ','), 'failure') }} FAILURE: ${{ contains(join(needs.*.result, ','), 'failure') }}
......
...@@ -11,6 +11,10 @@ import { ...@@ -11,6 +11,10 @@ import {
} from '@nolebase/vitepress-plugin-git-changelog/vite'; } from '@nolebase/vitepress-plugin-git-changelog/vite';
import tailwind from 'tailwindcss'; import tailwind from 'tailwindcss';
import { defineConfig, postcssIsolateStyles } from 'vitepress'; import { defineConfig, postcssIsolateStyles } from 'vitepress';
import {
groupIconMdPlugin,
groupIconVitePlugin,
} from 'vitepress-plugin-group-icons';
import { demoPreviewPlugin } from './plugins/demo-preview'; import { demoPreviewPlugin } from './plugins/demo-preview';
import { search as zhSearch } from './zh.mts'; import { search as zhSearch } from './zh.mts';
...@@ -21,6 +25,7 @@ export const shared = defineConfig({ ...@@ -21,6 +25,7 @@ export const shared = defineConfig({
markdown: { markdown: {
preConfig(md) { preConfig(md) {
md.use(demoPreviewPlugin); md.use(demoPreviewPlugin);
md.use(groupIconMdPlugin);
}, },
}, },
pwa: pwa(), pwa: pwa(),
...@@ -79,6 +84,7 @@ export const shared = defineConfig({ ...@@ -79,6 +84,7 @@ export const shared = defineConfig({
}), }),
GitChangelogMarkdownSection(), GitChangelogMarkdownSection(),
viteArchiverPlugin({ outputDir: '.vitepress' }), viteArchiverPlugin({ outputDir: '.vitepress' }),
groupIconVitePlugin(),
], ],
server: { server: {
fs: { fs: {
......
...@@ -11,6 +11,7 @@ import { initHmPlugin } from './plugins/hm'; ...@@ -11,6 +11,7 @@ import { initHmPlugin } from './plugins/hm';
import './styles'; import './styles';
import 'virtual:group-icons.css';
import '@nolebase/vitepress-plugin-git-changelog/client/style.css'; import '@nolebase/vitepress-plugin-git-changelog/client/style.css';
export default { export default {
......
...@@ -13,7 +13,8 @@ ...@@ -13,7 +13,8 @@
"@vben/styles": "workspace:*", "@vben/styles": "workspace:*",
"lucide-vue-next": "^0.441.0", "lucide-vue-next": "^0.441.0",
"medium-zoom": "^1.1.0", "medium-zoom": "^1.1.0",
"radix-vue": "^1.9.5" "radix-vue": "^1.9.5",
"vitepress-plugin-group-icons": "^1.2.4"
}, },
"devDependencies": { "devDependencies": {
"@nolebase/vitepress-plugin-git-changelog": "^2.5.0", "@nolebase/vitepress-plugin-git-changelog": "^2.5.0",
......
...@@ -30,12 +30,12 @@ git -v ...@@ -30,12 +30,12 @@ git -v
::: code-group ::: code-group
```bash [GitHub] ```sh [GitHub]
# clone 代码 # clone 代码
git clone https://github.com/vbenjs/vue-vben-admin.git git clone https://github.com/vbenjs/vue-vben-admin.git
``` ```
```bash [Gitee] ```sh [Gitee]
# clone 代码 # clone 代码
# Gitee 的代码可能不是最新的 # Gitee 的代码可能不是最新的
git clone https://gitee.com/annsion/vue-vben-admin.git git clone https://gitee.com/annsion/vue-vben-admin.git
......
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
"eslint-plugin-eslint-comments": "^3.2.0", "eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-jsdoc": "^50.2.3", "eslint-plugin-jsdoc": "^50.2.3",
"eslint-plugin-jsonc": "^2.16.0", "eslint-plugin-jsonc": "^2.16.0",
"eslint-plugin-n": "^17.10.2", "eslint-plugin-n": "^17.10.3",
"eslint-plugin-no-only-tests": "^3.3.0", "eslint-plugin-no-only-tests": "^3.3.0",
"eslint-plugin-perfectionist": "^3.6.0", "eslint-plugin-perfectionist": "^3.6.0",
"eslint-plugin-prettier": "^5.2.1", "eslint-plugin-prettier": "^5.2.1",
......
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
"tailwindcss": "^3.4.3" "tailwindcss": "^3.4.3"
}, },
"dependencies": { "dependencies": {
"@iconify/json": "^2.2.249", "@iconify/json": "^2.2.250",
"@iconify/tailwind": "^1.1.3", "@iconify/tailwind": "^1.1.3",
"@tailwindcss/nesting": "0.0.0-insiders.565cd3e", "@tailwindcss/nesting": "0.0.0-insiders.565cd3e",
"@tailwindcss/typography": "^0.5.15", "@tailwindcss/typography": "^0.5.15",
......
...@@ -43,13 +43,13 @@ ...@@ -43,13 +43,13 @@
"@types/archiver": "^6.0.2", "@types/archiver": "^6.0.2",
"@types/html-minifier-terser": "^7.0.2", "@types/html-minifier-terser": "^7.0.2",
"@vben/node-utils": "workspace:*", "@vben/node-utils": "workspace:*",
"@vitejs/plugin-vue": "^5.1.3", "@vitejs/plugin-vue": "^5.1.4",
"@vitejs/plugin-vue-jsx": "^4.0.1", "@vitejs/plugin-vue-jsx": "^4.0.1",
"dayjs": "^1.11.13", "dayjs": "^1.11.13",
"dotenv": "^16.4.5", "dotenv": "^16.4.5",
"rollup": "^4.21.3", "rollup": "^4.21.3",
"rollup-plugin-visualizer": "^5.12.0", "rollup-plugin-visualizer": "^5.12.0",
"sass": "^1.78.0", "sass": "^1.79.1",
"vite": "^5.4.6", "vite": "^5.4.6",
"vite-plugin-compression": "^0.5.1", "vite-plugin-compression": "^0.5.1",
"vite-plugin-dts": "4.2.1", "vite-plugin-dts": "4.2.1",
......
...@@ -74,12 +74,12 @@ ...@@ -74,12 +74,12 @@
"@vben/turbo-run": "workspace:*", "@vben/turbo-run": "workspace:*",
"@vben/vite-config": "workspace:*", "@vben/vite-config": "workspace:*",
"@vben/vsh": "workspace:*", "@vben/vsh": "workspace:*",
"@vitejs/plugin-vue": "^5.1.3", "@vitejs/plugin-vue": "^5.1.4",
"@vitejs/plugin-vue-jsx": "^4.0.1", "@vitejs/plugin-vue-jsx": "^4.0.1",
"@vue/test-utils": "^2.4.6", "@vue/test-utils": "^2.4.6",
"autoprefixer": "^10.4.20", "autoprefixer": "^10.4.20",
"cross-env": "^7.0.3", "cross-env": "^7.0.3",
"cspell": "^8.14.3", "cspell": "^8.14.4",
"husky": "^9.1.6", "husky": "^9.1.6",
"is-ci": "^3.0.1", "is-ci": "^3.0.1",
"jsdom": "^25.0.0", "jsdom": "^25.0.0",
......
...@@ -209,7 +209,11 @@ function calcMenuWidthStyle(isHiddenDom: boolean): CSSProperties { ...@@ -209,7 +209,11 @@ function calcMenuWidthStyle(isHiddenDom: boolean): CSSProperties {
}; };
} }
function handleMouseenter() { function handleMouseenter(e: MouseEvent) {
if (e?.offsetX < 10) {
return;
}
// 未开启和未折叠状态不生效 // 未开启和未折叠状态不生效
if (expandOnHover.value) { if (expandOnHover.value) {
return; return;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!