vue2-client 1.8.455 → 1.8.456
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
|
@@ -71,7 +71,7 @@ export default {
|
|
|
71
71
|
isInAModal: () => { return true }
|
|
72
72
|
}
|
|
73
73
|
},
|
|
74
|
-
inject: ['
|
|
74
|
+
inject: ['getParentComponentByName'],
|
|
75
75
|
computed: {
|
|
76
76
|
businessTitle () {
|
|
77
77
|
return this.businessType + this.title
|
|
@@ -107,8 +107,8 @@ export default {
|
|
|
107
107
|
this.visible = false
|
|
108
108
|
this.$emit('close')
|
|
109
109
|
},
|
|
110
|
-
|
|
111
|
-
const innerRef = this.
|
|
110
|
+
getComponentByName (name) {
|
|
111
|
+
const innerRef = this.getParentComponentByName(name)
|
|
112
112
|
if (innerRef) {
|
|
113
113
|
return innerRef
|
|
114
114
|
} else {
|
|
@@ -132,7 +132,7 @@ export default {
|
|
|
132
132
|
let messageType = 'success'
|
|
133
133
|
// 如果传递了组件名字 自动调用刷新
|
|
134
134
|
if (res?.name) {
|
|
135
|
-
const waitRefreshRef = this.
|
|
135
|
+
const waitRefreshRef = this.getComponentByName(res.name)
|
|
136
136
|
if (waitRefreshRef) {
|
|
137
137
|
waitRefreshRef.refresh()
|
|
138
138
|
} else {
|
|
@@ -255,6 +255,7 @@ export default {
|
|
|
255
255
|
openDialog: this.openDialog,
|
|
256
256
|
registerComponent: this.registerComponent,
|
|
257
257
|
getComponentByName: this.getComponentByName,
|
|
258
|
+
getParentComponentByName: this.getComponentByName,
|
|
258
259
|
getConfigByName: getConfigByName
|
|
259
260
|
}
|
|
260
261
|
},
|
|
@@ -913,7 +914,9 @@ export default {
|
|
|
913
914
|
if (this.configData) {
|
|
914
915
|
this.dataCache = JSON.parse(JSON.stringify(this.configData))
|
|
915
916
|
} else {
|
|
916
|
-
|
|
917
|
+
if (this.config?.data) {
|
|
918
|
+
this.dataCache = JSON.parse(JSON.stringify(this.config.data))
|
|
919
|
+
}
|
|
917
920
|
}
|
|
918
921
|
}
|
|
919
922
|
}
|
|
@@ -5,7 +5,7 @@ const EventLogger = {
|
|
|
5
5
|
// const originalOn = Vue.prototype.$on
|
|
6
6
|
// 排除 一些 vue 框架 / 前端脚手架 底层的一些事件日志
|
|
7
7
|
const exclude = ['menuSelect', 'menuDeselect', 'popupScroll', 'popupFocus', 'mouseenter',
|
|
8
|
-
'mouseleave', 'popupVisibleChange', 'popupScroll', 'click', 'keypress',
|
|
8
|
+
'mouseleave', 'popupVisibleChange', 'popupScroll', 'click', 'keypress', 'keydown ', 'input ',
|
|
9
9
|
'change', 'popupVisibleChange', 'beforeCreate', 'created', 'beforeMount', 'mounted', 'componentDidMounted',
|
|
10
10
|
]
|
|
11
11
|
// 劫持 $emit
|