n20-common-lib 2.6.83 → 2.6.85
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
package/src/_qiankun/index.js
CHANGED
|
@@ -113,10 +113,10 @@ export async function bootstrap() {
|
|
|
113
113
|
}
|
|
114
114
|
export async function mount(props) {
|
|
115
115
|
// console.log('[vue] props from main framework', props)
|
|
116
|
-
props
|
|
116
|
+
props?.onGlobalStateChange((state) => {
|
|
117
117
|
// state: 变更后的状态; prev 变更前的状态
|
|
118
118
|
// console.log('onGlobalStateChange111', state, prev)
|
|
119
|
-
vuePar
|
|
119
|
+
vuePar?.store?.commit('MP/setGlobalState', state)
|
|
120
120
|
}, true)
|
|
121
121
|
/* 从其他子运用再切回这个运用,是否保持之前的状态 */
|
|
122
122
|
KEEP_ALIVE && !props.router ? _mountKeep(props) : _mount(props)
|
|
@@ -7,7 +7,12 @@
|
|
|
7
7
|
:data="data"
|
|
8
8
|
:height="height"
|
|
9
9
|
:class="{ 'cell-default-set--': cellDefault }"
|
|
10
|
-
:checkbox-config="{
|
|
10
|
+
:checkbox-config="{
|
|
11
|
+
checkField: 'checked',
|
|
12
|
+
checkMethod: forbidSelect,
|
|
13
|
+
...$attrs['checkbox-config'],
|
|
14
|
+
...$attrs.checkboxConfig
|
|
15
|
+
}"
|
|
11
16
|
show-header-overflow
|
|
12
17
|
show-overflow
|
|
13
18
|
:row-config="{ isHover: true, useKey: true, ...$attrs.rowConfig, ...$attrs['row-config'] }"
|
|
@@ -266,7 +271,8 @@ export default {
|
|
|
266
271
|
// row当前单次勾选的哪一行数据 包含checked字段
|
|
267
272
|
handleSelectionChange(row = '') {
|
|
268
273
|
const val = this.$refs.vxeTable.getCheckboxRecords()
|
|
269
|
-
this.$
|
|
274
|
+
const val1 = this.$refs.vxeTable.getCheckboxReserveRecords()
|
|
275
|
+
this.$emit('selection-change-method', [...val, ...val1], row)
|
|
270
276
|
},
|
|
271
277
|
sizeUp(size) {
|
|
272
278
|
this.sizeC = size
|
package/src/utils/axios.js
CHANGED