Skip to content

Commit

Permalink
Revert "feat: add drag-model directive in Dialog"
Browse files Browse the repository at this point in the history
This reverts commit daa22af.
  • Loading branch information
sendya committed Jul 12, 2021
1 parent 6cd90b1 commit d3b24d6
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 22 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 0 additions & 1 deletion src/components/Dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}, {
Expand Down
2 changes: 0 additions & 2 deletions src/core/lazy_use.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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.')
2 changes: 0 additions & 2 deletions src/core/use.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.')
6 changes: 2 additions & 4 deletions src/views/list/BasicList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,7 @@ export default {
title: 'ζ–°ε’ž',
width: 700,
centered: true,
maskClosable: false,
drag: true
maskClosable: false
})
},
edit (record) {
Expand All @@ -189,8 +188,7 @@ export default {
title: 'ζ“δ½œ',
width: 700,
centered: true,
maskClosable: false,
drag: true
maskClosable: false
})
}
}
Expand Down
12 changes: 0 additions & 12 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit d3b24d6

Please sign in to comment.