n20-common-lib 2.2.20 → 2.2.22

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.2.20",
3
+ "version": "2.2.22",
4
4
  "private": false,
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -7,6 +7,7 @@
7
7
  :type="item.type"
8
8
  :list="item.list"
9
9
  :count-label="countLabel"
10
+ v-bind="$attrs"
10
11
  />
11
12
  </div>
12
13
 
@@ -27,6 +28,7 @@
27
28
  :type="item.type"
28
29
  :list="item.list"
29
30
  :count-label="countLabel"
31
+ v-bind="$attrs"
30
32
  />
31
33
  <i class="n20-icon-nianfenqiehuan-youce" :class="show ? 'rotating-icon-show' : 'rotating-icon'"></i>
32
34
  </div>
@@ -40,6 +42,7 @@
40
42
  :type="item.type"
41
43
  :list="item.list"
42
44
  :count-label="countLabel"
45
+ v-bind="$attrs"
43
46
  />
44
47
  </div>
45
48
  </div>
@@ -41,7 +41,14 @@ async function asyncGetRelaNos(appNo, rns) {
41
41
  rnObj.relaNos = oRelaNos
42
42
 
43
43
  let syncArr = window._keep_syncStorageAppNos
44
- let isSync = appNo && syncArr && syncArr.includes(appNo)
44
+ let isSync = false
45
+ if (syncArr) {
46
+ if (syncArr.includes('ALL')) {
47
+ isSync = true
48
+ } else if (appNo && syncArr.includes(appNo)) {
49
+ isSync = true
50
+ }
51
+ }
45
52
 
46
53
  // sessionStorage.setItem('relaNos', JSON.stringify(ssRelaNos))
47
54
  setItem('relaNos', ssRelaNos, isSync)