Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alantoa/vue-insert-directive
A directive to insert input or textarea element for vue.js./一个在任意dom节点中插入input或者textarea元素的vue指令!
https://github.com/alantoa/vue-insert-directive
Last synced: about 2 months ago
JSON representation
A directive to insert input or textarea element for vue.js./一个在任意dom节点中插入input或者textarea元素的vue指令!
- Host: GitHub
- URL: https://github.com/alantoa/vue-insert-directive
- Owner: alantoa
- License: mit
- Created: 2020-07-25T14:32:58.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T12:25:43.000Z (about 2 years ago)
- Last Synced: 2024-10-15T21:38:47.836Z (3 months ago)
- Language: Vue
- Homepage:
- Size: 1.11 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vue-insert-directive
A directive to insert element for vue.js(2.x).
一款支持在任意标签上插入或 元素的 Vue 指令.### Demo:
[🔗https://monsteranan.github.io/vue-insert-directive](https://monsteranan.github.io/vue-insert-directive)
### Import
```js
import InsertDirective from 'vue-insert-derective' // Es6 module```
### Use/使用:```javascript
{{value}}
import InsertDirective from "../src/vue-insert-directive";
export default {
name:'...',
directives: {
input: InsertDirective,
},
}@import url("../src/vue-insert-directive.css");
```
## Install
```
yarn
or
npm install
```### Dev
```
yarn dev
or
npm run dev
```