docs(link): add link component target api docs#4082
docs(link): add link component target api docs#4082IKEYCY wants to merge 2 commits intoopentiny:devfrom
Conversation
WalkthroughAdds a new Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
No actionable comments were generated in the recent review. 🎉 Tip Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In `@examples/sites/demos/apis/link.js`:
- Around line 74-84: The pcDemo value is incorrect: update the property pcDemo
on the prop object for name 'target' from 'open-mode' to 'target' so it matches
the demo entry demoId 'target' (which references codeFiles ['target.vue']);
ensure the object containing name: 'target' has pcDemo: 'target' to restore
correct linking between the prop and the demo.
examples/sites/demos/apis/link.js
Outdated
| 'en-US': 'Link open mode' | ||
| }, | ||
| mode: ['pc'], | ||
| pcDemo: 'open-mode' |
PR
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: N/A
What is the new behavior?
Does this PR introduce a breaking change?
Other information
Summary by CodeRabbit
targetprop to the Link component to control where links open (_blank, _self, _parent, _top), defaulting to _self.