chore: patch floating-vue

This commit is contained in:
pengzhanbo 2025-05-21 21:24:55 +08:00
parent 45853ab51d
commit 1e98061021
3 changed files with 31 additions and 7 deletions

View File

@ -0,0 +1,21 @@
diff --git a/dist/floating-vue.mjs b/dist/floating-vue.mjs
index d54beb90f1fd341fb0aa41e1503afdbbece12cbb..fa6207d11b72af5249f04978958a147e9e3b4bcf 100644
--- a/dist/floating-vue.mjs
+++ b/dist/floating-vue.mjs
@@ -946,6 +946,7 @@ function mt(e, t, o, i, s, r) {
const p = P("ResizeObserver");
return f(), T("div", {
id: e.popperId,
+ 'data-allow-mismatch': '',
ref: "popover",
class: J(["v-popper__popper", [
e.themeClass,
@@ -966,7 +967,7 @@ function mt(e, t, o, i, s, r) {
position: e.result.strategy,
transform: `translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`
} : void 0),
- "aria-hidden": e.shown ? "false" : "true",
+ "aria-hidden": e.shown || e.autoHide ? "false" : "true",
tabindex: e.autoHide ? 0 : void 0,
"data-popper-placement": e.result ? e.result.placement : void 0,
onKeyup: t[2] || (t[2] = je((a) => e.autoHide && e.$emit("hide"), ["esc"]))

9
pnpm-lock.yaml generated
View File

@ -367,6 +367,11 @@ overrides:
sass: ^1.89.0
sass-embedded: ^1.89.0
patchedDependencies:
floating-vue:
hash: c8e9cd61468e959201bb251258241870423ca2ca7ae2e8a184210e0f20619fd5
path: patches/floating-vue.patch
importers:
.:
@ -9509,7 +9514,7 @@ snapshots:
dependencies:
'@shikijs/twoslash': 3.4.2(typescript@5.8.3)
'@vuepress/helper': 2.0.0-rc.105(typescript@5.8.3)(vuepress@2.0.0-rc.23(@vuepress/bundler-vite@2.0.0-rc.23(@types/node@22.15.19)(jiti@2.4.2)(less@4.3.0)(sass-embedded@1.89.0)(sass@1.89.0)(stylus@0.64.0)(typescript@5.8.3)(yaml@2.8.0))(typescript@5.8.3)(vue@3.5.14(typescript@5.8.3)))
floating-vue: 5.2.2(vue@3.5.14(typescript@5.8.3))
floating-vue: 5.2.2(patch_hash=c8e9cd61468e959201bb251258241870423ca2ca7ae2e8a184210e0f20619fd5)(vue@3.5.14(typescript@5.8.3))
mdast-util-from-markdown: 2.0.2
mdast-util-gfm: 3.1.0
mdast-util-to-hast: 13.2.0
@ -11051,7 +11056,7 @@ snapshots:
flatted@3.3.3: {}
floating-vue@5.2.2(vue@3.5.14(typescript@5.8.3)):
floating-vue@5.2.2(patch_hash=c8e9cd61468e959201bb251258241870423ca2ca7ae2e8a184210e0f20619fd5)(vue@3.5.14(typescript@5.8.3)):
dependencies:
'@floating-ui/dom': 1.1.1
vue: 3.5.14(typescript@5.8.3)

View File

@ -4,13 +4,15 @@ packages:
- cli
- plugins/*
- examples/*
overrides:
'@typescript-eslint/utils': ^8.32.1
esbuild: ^0.25.4
sass: ^1.89.0
sass-embedded: ^1.89.0
patchedDependencies:
floating-vue: patches/floating-vue.patch
catalogs:
dev:
'@commitlint/cli': ^19.8.1
@ -52,7 +54,6 @@ catalogs:
vitest: ^3.1.3
vue-router: ^4.5.1
wait-on: ^8.0.3
peer:
'@iconify/json': ^2.2.339
artplayer: ^5.2.3
@ -64,7 +65,6 @@ catalogs:
sass-embedded: ^1.89.0
sass-loader: ^16.0.5
swiper: ^11.2.6
prod:
'@clack/prompts': ^0.10.1
'@iconify/utils': ^2.3.0
@ -116,7 +116,6 @@ catalogs:
tm-themes: ^1.10.6
unplugin: ^2.3.4
vue: ^3.5.14
vuepress:
'@vuepress/bundler-vite': 2.0.0-rc.23
'@vuepress/helper': 2.0.0-rc.105
@ -139,7 +138,6 @@ catalogs:
'@vuepress/shiki-twoslash': 2.0.0-rc.105
vuepress: 2.0.0-rc.23
vuepress-plugin-md-enhance: 2.0.0-rc.88
onlyBuiltDependencies:
- '@parcel/watcher'
- core-js