diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..cf121cf --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1,4 @@ +# These are supported funding model platforms + +github: [surmon-china] +custom: ['https://paypal.me/surmon', 'https://surmon.me/sponsor'] diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md deleted file mode 100644 index a981588..0000000 --- a/.github/ISSUE_TEMPLATE.md +++ /dev/null @@ -1,22 +0,0 @@ - -### 中文用户注意: - -1. 尽量用英文描述你的 issue -2. 不要把内容堆彻在标题上,逻辑清晰地写在内容区 -3. 贴代码要提前格式化好,有颜色高亮那种,贴文本,不要贴图片 -4. 提问题前,必须仔细阅读 REMADE.md + 在已关闭的问题中寻找与自身相关的问题,90% 的可能它已经被解决 -5. **如果无法做到提一个合格、优秀的问题,则问题会被 close + block** - -### BUG REPORT TEMPLATE - -#### Vue.js version and component version - -#### Reproduction Link -- A minimal JSBin, JSFiddle, Codepen, or a GitHub repository that can reproduce the bug. -- You could start with this template: https://jsfiddle.net/39epgLj0/ - -#### Steps to reproduce - -#### What is Expected? - -#### What is actually happening? \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 4b2735b..809304e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,5 @@ ## CHANGELOG ### v2.0.0 - -- add content component -- update build +- Add content component +- Update build diff --git a/LICENSE b/LICENSE index ef5c67d..1bfb3cb 100755 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2016 Surmon +Copyright (c) 2020 Surmon Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index b90c06f..16720d0 100755 --- a/README.md +++ b/README.md @@ -5,7 +5,6 @@ [![GitHub forks](https://img.shields.io/github/forks/surmon-china/vue-drag-zone.svg?style=flat-square)](https://github.com/surmon-china/vue-drag-zone/network) [![GitHub last commit](https://img.shields.io/github/last-commit/google/skia.svg?style=flat-square)](https://github.com/surmon-china/vue-drag-zone) [![license](https://img.shields.io/github/license/mashape/apistatus.svg?style=flat-square)](https://github.com/surmon-china/vue-drag-zone) -[![Twitter](https://img.shields.io/twitter/url/https/github.com/surmon-china/vue-drag-zone.svg?style=flat-square)](https://twitter.com/intent/tweet?url=https://github.com/surmon-china/vue-drag-zone) [![NPM](https://nodei.co/npm/vue-drag-zone.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/vue-drag-zone/) @@ -14,15 +13,13 @@ # Vue-Drag-Zone Drag Zone component for Vue. - 适用于 Vue 的 DOM 拖动组件。 -# Example - -[Demo Page](https://surmon-china.github.io/vue-drag-zone) +### Example +[Example Page](https://github.surmon.me/vue-drag-zone) -# Install +### Install #### CDN @@ -67,7 +64,7 @@ export default { ### component -```vue +```html ``` - -# Author -[Surmon](https://surmon.me) diff --git a/examples/01-example.vue b/examples/01-example.vue deleted file mode 100755 index 63854f3..0000000 --- a/examples/01-example.vue +++ /dev/null @@ -1,90 +0,0 @@ - - - - - diff --git a/examples/02-example.vue b/examples/02-example.vue deleted file mode 100755 index 81bc253..0000000 --- a/examples/02-example.vue +++ /dev/null @@ -1,96 +0,0 @@ - - - - - diff --git a/examples/03-example.vue b/examples/03-example.vue deleted file mode 100755 index ea29da2..0000000 --- a/examples/03-example.vue +++ /dev/null @@ -1,94 +0,0 @@ - - - - - diff --git a/examples/04-example.vue b/examples/04-example.vue deleted file mode 100755 index 8c72862..0000000 --- a/examples/04-example.vue +++ /dev/null @@ -1,98 +0,0 @@ - - - - - diff --git a/examples/05-example.vue b/examples/05-example.vue deleted file mode 100755 index 23f925e..0000000 --- a/examples/05-example.vue +++ /dev/null @@ -1,157 +0,0 @@ - - - - - diff --git a/examples/index.js b/examples/index.js deleted file mode 100755 index 7e79671..0000000 --- a/examples/index.js +++ /dev/null @@ -1,13 +0,0 @@ -import example01 from './01-example.vue' -import example02 from './02-example.vue' -import example03 from './03-example.vue' -import example04 from './04-example.vue' -import example05 from './05-example.vue' - -export default { - example01, - example02, - example03, - example04, - example05 -} diff --git a/package.json b/package.json index a9c5f86..bb3dbd7 100755 --- a/package.json +++ b/package.json @@ -1,13 +1,12 @@ { "name": "vue-drag-zone", "description": "Drag Zone component for Vue", - "version": "2.0.0-rc1", + "version": "2.0.0", "license": "MIT", "private": false, "author": { "name": "Surmon", - "email": "surmon@foxmail.com", - "url": "http://surmon.me" + "url": "https://surmon.me" }, "bugs": { "url": "https://github.com/surmon-china/vue-drag-zone/issues" diff --git a/src/content.vue b/src/content.vue index 473cfdf..e940395 100644 --- a/src/content.vue +++ b/src/content.vue @@ -1,7 +1,9 @@ diff --git a/src/handle.vue b/src/handle.vue index abcabe0..a41f637 100644 --- a/src/handle.vue +++ b/src/handle.vue @@ -1,11 +1,13 @@ @@ -46,9 +48,11 @@ // 获取所有同级手柄组件 getAllHandles() { return this.$parent.$children.filter(com => { - return com.$vnode && - com.$vnode.componentOptions && - com.$vnode.componentOptions.tag === 'drag-handle' + return ( + com.$vnode && + com.$vnode.componentOptions && + com.$vnode.componentOptions.tag === 'drag-handle' + ) }) }, // 分割前面和后面的所有兄弟手柄组件