mirrors-draggable-vue-directive-master.zip

时间:2024-07-02 11:06:05
【文件属性】:

文件名称:mirrors-draggable-vue-directive-master.zip

文件大小:13KB

文件格式:ZIP

更新时间:2024-07-02 11:06:05

vue

拖动元素: 1.npm install draggable-vue-directive --save 2.

classic draggable
3. import { Draggable } from 'draggable-vue-directive' ... export default { directives: { Draggable, }, ... 4.
move
drag and drop using handler
5.import { Draggable } from 'draggable-vue-directive' ... export default { directives: { Draggable, }, data() { return { handleId: "handle-id", draggableValue: { handle: undefined } }; }, mounted() { this.draggableValue.handle = this.$refs[this.handleId]; } ...


【文件预览】:
draggable-vue-directive
----.gitignore(20B)
----package.json(872B)
----package-lock.json(382B)
----src()
--------index.ts(154B)
--------draggable.ts(8KB)
----LICENSE.md(1KB)
----dist()
--------index.js(195B)
--------index.js.map(137B)
--------draggable.js(9KB)
--------draggable.js.map(7KB)
--------draggable.d.ts(1KB)
--------index.d.ts(127B)
----tsconfig.json(204B)
----README.md(6KB)
----.npmignore(18B)
----.gitattributes(378B)

网友评论