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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n20-common-lib",
3
- "version": "2.6.83",
3
+ "version": "2.6.85",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -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.onGlobalStateChange((state, prev) => {
116
+ props?.onGlobalStateChange((state) => {
117
117
  // state: 变更后的状态; prev 变更前的状态
118
118
  // console.log('onGlobalStateChange111', state, prev)
119
- vuePar.store.commit('MP/setGlobalState', state)
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="{ checkField: 'checked', checkMethod: forbidSelect }"
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.$emit('selection-change-method', val, row)
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
@@ -99,7 +99,7 @@ function errorFn(status, msg, noMsg, isErr, res) {
99
99
  if (navigator.userAgent.includes('NSTC-WebEntry')) {
100
100
  localStorage.clear()
101
101
  sessionStorage.clear()
102
- window.top.webQuit()
102
+ // window.top.webQuit()
103
103
  } else {
104
104
  auth.removeToken()
105
105
  }