sh-view 2.0.5 → 2.0.6
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.
|
|
3
|
+
"version": "2.0.6",
|
|
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.
|
|
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",
|
|
@@ -101,6 +101,7 @@ export default {
|
|
|
101
101
|
this.activeNames = activeNames
|
|
102
102
|
if (this.collapsed) return
|
|
103
103
|
}
|
|
104
|
+
if (this.mode !== 'vertical') return
|
|
104
105
|
// 过滤掉所有子节点
|
|
105
106
|
let menuIndex = activeNames.findIndex(item => item === menuName)
|
|
106
107
|
let parentNames = activeNames.filter((item, itemIndex) => menuIndex >= itemIndex)
|
|
@@ -108,8 +109,9 @@ export default {
|
|
|
108
109
|
this.openedNames = parentNames
|
|
109
110
|
},
|
|
110
111
|
onMenuSelect(menu) {
|
|
111
|
-
this.
|
|
112
|
+
this.$emit('update:modelValue', menu.name)
|
|
112
113
|
this.$emit('change', menu)
|
|
114
|
+
this.handleOut()
|
|
113
115
|
},
|
|
114
116
|
onMenuExpand(expand, menu) {
|
|
115
117
|
this.$emit('expand', expand, menu)
|