Skip to content

Commit

Permalink
fix: #241 #240
Browse files Browse the repository at this point in the history
  • Loading branch information
ly525 committed Oct 11, 2020
1 parent 9434ec5 commit 3787d85
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions front-end/h5/src/components/core/support/contexmenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@
* jsx 相关参考链接:
* onMouseleave: https://github.com/vueComponent/ant-design-vue/blob/master/components/vc-trigger/Trigger.jsx#L205
*
* 后期考虑提供如下方式,来扩展右键菜单
window.GlobalLuban.contextmenu.registerMenu({
label: '复制',
value: 'copy',
elementWhiteList: Array || RegExp
elementBlackList: Array || RegExp
})
*/

import { mapState } from 'vuex'
Expand Down Expand Up @@ -86,13 +93,7 @@ export default {
...mapState('editor', ['editingElement', 'work']),
/**
* 做一下扩展,提供:黑白名单,来针对某些特定组件,展示特定右键菜单
* TODO:后期提供如下方式,来扩展右键菜单
window.GlobalLuban.contextmenu.registerMenu({
label: '复制',
value: 'copy',
elementWhiteList: Array || RegExp
elementBlackList: Array || RegExp
})
*
*/
filteredOptions () {
const elementName = this.editingElement.name
Expand Down

0 comments on commit 3787d85

Please sign in to comment.