Skip to content

Commit f3ef42b

Browse files
committed
feat: enhance VTour component with default tooltip placement and multi-instance support
- Fix major rendering/positioning/etc bugs - Added `defaultPlacement` prop to `VTourProps` for tooltip positioning. - Updated component to use scoped IDs and highlight classes based on the `name` prop. - Improved CSS visibility handling for backdrop and tooltip elements. - Refactored tests to accommodate Teleport rendering and scoped IDs. - Renamed component CSS output to avoid conflicts with SCSS.
1 parent d3521ba commit f3ef42b

7 files changed

Lines changed: 711 additions & 188 deletions

File tree

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,7 @@
6464
"test:watch": "vitest --watch",
6565
"lint": "vue-tsc --noEmit && npm run type-check",
6666
"clean": "rm -rf dist node_modules/.vite",
67-
"format": "prettier --write \"**/*.{js,ts,vue}\" --ignore-path .gitignore",
68-
"prepare": "npm run build-only"
67+
"format": "prettier --write \"**/*.{js,ts,vue}\" --ignore-path .gitignore"
6968
},
7069
"dependencies": {
7170
"jump.js": "^1.0.2",

src/Types.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ export interface VTourProps {
8686

8787
/** Debounce timeout for resize events in milliseconds */
8888
readonly resizeTimeout?: number;
89+
90+
/** Default tooltip placement when step doesn't specify one */
91+
readonly defaultPlacement?: NanoPopPosition;
8992
}
9093

9194
/**

0 commit comments

Comments
 (0)