From 19ecddaed39014aa63c54d3f7aa830b1d999443e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A8=80=E8=82=86?= <18x@loacg.com> Date: Mon, 12 Jul 2021 11:49:40 +0800 Subject: [PATCH] Revert "feat: add drag-model directive in Dialog" This reverts commit daa22af06e8b8699d6c9c48d552e23b71fdeda52. --- package.json | 1 - src/components/Dialog.js | 1 - src/core/lazy_use.js | 2 -- src/core/use.js | 2 -- src/views/list/BasicList.vue | 6 ++---- yarn.lock | 12 ------------ 6 files changed, 2 insertions(+), 22 deletions(-) diff --git a/package.json b/package.json index 5323e5a421..a8d7c1bbf3 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,6 @@ "vue": "^2.6.10", "vue-clipboard2": "^0.2.1", "vue-cropper": "0.4.9", - "vue-drags": "^1.0.0", "vue-i18n": "^8.17.4", "vue-quill-editor": "^3.0.6", "vue-router": "^3.1.2", diff --git a/src/components/Dialog.js b/src/components/Dialog.js index 1cff9fe2fa..78e95b277b 100644 --- a/src/components/Dialog.js +++ b/src/components/Dialog.js @@ -67,7 +67,6 @@ export default (Vue) => { delete modalProps.model } const ModalProps = Object.assign({}, modalModel && { model: modalModel } || {}, { - directives: modalProps.drag ? [{ name: 'drag-model' }] : [], attrs: Object.assign({}, { ...(modalProps.attrs || modalProps) }, { diff --git a/src/core/lazy_use.js b/src/core/lazy_use.js index bd7802a5fa..ccbf73c790 100644 --- a/src/core/lazy_use.js +++ b/src/core/lazy_use.js @@ -56,7 +56,6 @@ import MultiTab from '@/components/MultiTab' import PageLoading from '@/components/PageLoading' import PermissionHelper from '@/core/permission/permission' import './directives/action' -import Drags from 'vue-drags' Vue.use(ConfigProvider) Vue.use(Layout) @@ -115,6 +114,5 @@ Vue.use(MultiTab) Vue.use(PageLoading) Vue.use(PermissionHelper) Vue.use(VueCropper) -Vue.use(Drags) process.env.NODE_ENV !== 'production' && console.warn('[antd-pro] NOTICE: Antd use lazy-load.') diff --git a/src/core/use.js b/src/core/use.js index 978fa0f9c8..d98cd16b9c 100644 --- a/src/core/use.js +++ b/src/core/use.js @@ -12,7 +12,6 @@ import MultiTab from '@/components/MultiTab' import PageLoading from '@/components/PageLoading' import PermissionHelper from '@/core/permission/permission' // import '@/components/use' -import Drags from 'vue-drags' import './directives/action' VueClipboard.config.autoSetContainer = true @@ -24,6 +23,5 @@ Vue.use(PageLoading) Vue.use(VueClipboard) Vue.use(PermissionHelper) Vue.use(VueCropper) -Vue.use(Drags) process.env.NODE_ENV !== 'production' && console.warn('[antd-pro] WARNING: Antd now use fulled imported.') diff --git a/src/views/list/BasicList.vue b/src/views/list/BasicList.vue index 6f95b013ef..1e9423b6bc 100644 --- a/src/views/list/BasicList.vue +++ b/src/views/list/BasicList.vue @@ -162,8 +162,7 @@ export default { title: '新增', width: 700, centered: true, - maskClosable: false, - drag: true + maskClosable: false }) }, edit (record) { @@ -189,8 +188,7 @@ export default { title: '操作', width: 700, centered: true, - maskClosable: false, - drag: true + maskClosable: false }) } } diff --git a/yarn.lock b/yarn.lock index 11d60430be..59bb083f59 100644 --- a/yarn.lock +++ b/yarn.lock @@ -11204,13 +11204,6 @@ vue-cropper@0.4.9: resolved "https://registry.npm.taobao.org/vue-cropper/download/vue-cropper-0.4.9.tgz#fe650f32516ecf29014bbd4a9079191c8dc5a5ae" integrity sha1-/mUPMlFuzykBS71KkHkZHI3Fpa4= -vue-drags@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/vue-drags/-/vue-drags-1.0.0.tgz#199999ca8734270e24d4b44631c67b9b193e300f" - integrity sha512-Cys+Inz1s4emb8zKQg77CTZlMcn24AhOPO4vfbTHcuJ4bOwQ8kMhO3WgSkPc2Qb8jVXSKZ36CafDVp4blsqrjA== - dependencies: - vue "^2.6.14" - vue-eslint-parser@^5.0.0: version "5.0.0" resolved "https://registry.npm.taobao.org/vue-eslint-parser/download/vue-eslint-parser-5.0.0.tgz?cache=0&sync_timestamp=1573306368916&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fvue-eslint-parser%2Fdownload%2Fvue-eslint-parser-5.0.0.tgz#00f4e4da94ec974b821a26ff0ed0f7a78402b8a1" @@ -11339,11 +11332,6 @@ vue@^2.5.3: resolved "https://registry.npm.taobao.org/vue/download/vue-2.6.11.tgz#76594d877d4b12234406e84e35275c6d514125c5" integrity sha1-dllNh31LEiNEBuhONSdcbVFBJcU= -vue@^2.6.14: - version "2.6.14" - resolved "https://registry.yarnpkg.com/vue/-/vue-2.6.14.tgz#e51aa5250250d569a3fbad3a8a5a687d6036e235" - integrity sha512-x2284lgYvjOMj3Za7kqzRcUSxBboHqtgRE2zlos1qWaOye5yUmHn42LB1250NJBLRwEcdrB0JRwyPTEPhfQjiQ== - vuex@^3.1.1: version "3.6.2" resolved "https://registry.yarnpkg.com/vuex/-/vuex-3.6.2.tgz#236bc086a870c3ae79946f107f16de59d5895e71"