1.0.0 • Published 7 months ago

@mt-kit/vue-directives v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
7 months ago

@mt-kit/vue-hooks

注:Vue 自定义指令

下载

npm i @mt-kit/vue-hooks

API

draggable

1、引入

import { createApp } from 'vue';
import App from './App.vue';
import { directiveDraggable } from 'micro-vue-directives';

const app = createApp(App);
app.use(directiveDraggable); // 引入到全剧终
app.mount('#app');

2、使用

<div v-directiveDraggable>directives2</div>
<!-- 或 -->
<div v-directiveDraggable="true">directives2</div>
1.0.0

7 months ago