move-to-container
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

Move To Container

live demo

指定一个容器,将内容包裹在容器中,并且在容器范围内可拖拽

安装

npm install move-to-container

app.component('MoveToContainer', moveToContainer)

参数

  props: {
    to: {
      type: String,
      default: 'body',
    },
    finish: {
      type: Function,
      default: (e: DragEvent | MouseEvent) => { },
    },
  }

使用

usage

依赖

vue

Package Sidebar

Install

npm i move-to-container

Weekly Downloads

1

Version

0.0.2

License

MIT

Unpacked Size

5.22 kB

Total Files

5

Last publish

Collaborators

  • simon_he