Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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指令!

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
```