Comments (2)
what is the purpose of this? since the tooltip can render as any tag, I don't think this is necessary.
from uiv.
Because sometime can't as parent-child, the target may at everywhere
This is a user-card demo:
<article> <!--<article>is created by rich -->
...
<a href="/people/user1"></a>
<a href="/people/user2"></a>
<a href="/people/user3"></a>
...
</article>
<popover v-model="showCard" :target="hovered" trigger="hover">
{{username}}
{{level}}
{{posts}}
...
</tooltip>
showCard = false
$(document).on('mouseenter', 'a[href]', function (event) {
attr = $(this).attr('href')
if ( attr.indexOf('/people/') === 0 ) {
target = this
$.get('/api/getuserinfo/'+ attr.slice(8), function (response) {
username = response.username
level = response.level
posts = response.posts
showCard = true
})
}
})
from uiv.
Related Issues (20)
- IE 11 Foreach error HOT 1
- Tooltip misbehaviour when using append-to and scrolling: HOT 6
- Action Required: Fix Renovate Configuration
- Badge color not working inside active Tab title slot HOT 2
- Scrollspy initially always highlights the last section (regression) HOT 3
- Will be this lib supported by Vuejs 3? HOT 11
- Max and Min Prop types for TimePicker may not always be a Date type
- Typeahead HOT 4
- Dependency Dashboard
- Maintainers wanted.
- dropdown-menu style when append-to-body HOT 3
- i18n locales not available in npm package HOT 1
- Modal center HOT 5
- Dropdown menu appear out of screen with menu-right prop HOT 2
- Change `beforeDestroy` to `beforeUnmount` HOT 1
- something error : import locale from 'uiv/src/locale/lang/zh-CN' HOT 2
- Notifications overlap each other HOT 2
- Dropdown.vue has a side effect of adjusting local time to UTC HOT 1
- Btn component uses RouterLink component that is missing HOT 1
- XSS Vulnerability on Tooltip HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from uiv.