Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rhyzx/vue-transfer-dom
Transfer DOM to another place.
https://github.com/rhyzx/vue-transfer-dom
Last synced: 4 months ago
JSON representation
Transfer DOM to another place.
- Host: GitHub
- URL: https://github.com/rhyzx/vue-transfer-dom
- Owner: rhyzx
- Archived: true
- Created: 2016-01-11T08:30:49.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-03-22T01:46:11.000Z (almost 9 years ago)
- Last Synced: 2024-08-01T00:40:01.347Z (6 months ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 64
- Watchers: 5
- Forks: 21
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-vue-cn - vue-transfer-dom ★18
README
# vue-transfer-dom
> requires Vue v1.0.19+Transfer DOM to another place (eg. ``).
Useful in some situations such as z-index management, see discussion [here](https://github.com/vuejs/vue/issues/2130).
## Demo (prevent modal overlap by other elements)
http://jsfiddle.net/rhyzx/br5cepu3/## Installation
```sh
npm install vue-transfer-dom
```## Usage
```js
Vue.use(VueTransferDom /*, {name: 'transferDom'}*/)new Vue({
template: 'foo', // div will be appended to body(default)
})// append to specific place
new Vue({
template: 'foo', // div will be appended to #bar(document.getElementById)
})
```