feat: migrate Toolbar with teleport-safe focus ownership

This commit is contained in:
maoyingjie
2026-10-23 10:50:42 +08:00
parent 9c93647ad2
commit b2525bb04d
33 changed files with 2168 additions and 30 deletions
+15
View File
@@ -71,3 +71,18 @@ function buttonToggleContract() {
};
}
void buttonToggleContract;
import type { ToolbarProps } from "../../packages/vue/src";
import { Toolbar } from "../../packages/vue/src";
function toolbarContract() {
const ok: ToolbarProps = {
isAttached: true,
orientation: "vertical",
dir: "rtl",
};
// @ts-expect-error unsupported orientation
const bad: ToolbarProps = { orientation: "diagonal" };
return { bad, ok, Toolbar };
}
void toolbarContract;