sh-view 2.0.5 → 2.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sh-view",
3
- "version": "2.0.5",
3
+ "version": "2.0.7",
4
4
  "description": "基于vxe-table二次封装",
5
5
  "main": "packages/index.js",
6
6
  "scripts": {
@@ -37,7 +37,7 @@
37
37
  "vue-masonry": "^0.16.0",
38
38
  "vue-router": "^4.2.2",
39
39
  "vuex": "^4.1.0",
40
- "vxe-table": "^4.5.6",
40
+ "vxe-table": "^4.5.7",
41
41
  "vxe-table-plugin-export-pdf": "^3.0.4",
42
42
  "vxe-table-plugin-export-xlsx": "^3.0.5",
43
43
  "xe-clipboard": "^1.10.2",
@@ -99,7 +99,7 @@ export default {
99
99
  })
100
100
  if (mount) {
101
101
  this.activeNames = activeNames
102
- if (this.collapsed) return
102
+ if (this.collapsed || this.mode !== 'vertical') return
103
103
  }
104
104
  // 过滤掉所有子节点
105
105
  let menuIndex = activeNames.findIndex(item => item === menuName)
@@ -108,8 +108,9 @@ export default {
108
108
  this.openedNames = parentNames
109
109
  },
110
110
  onMenuSelect(menu) {
111
- this.handleOut()
111
+ this.$emit('update:modelValue', menu.name)
112
112
  this.$emit('change', menu)
113
+ this.handleOut()
113
114
  },
114
115
  onMenuExpand(expand, menu) {
115
116
  this.$emit('expand', expand, menu)