@94ai/nf-table 3.2.54 → 3.2.56
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/lib/nf-table.cjs.js
CHANGED
|
@@ -6294,7 +6294,7 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
6294
6294
|
index: index2
|
|
6295
6295
|
};
|
|
6296
6296
|
});
|
|
6297
|
-
commonUtils.CachedManager.syncCachedSet(props.storageKey, columnState);
|
|
6297
|
+
return commonUtils.CachedManager.syncCachedSet(props.storageKey, columnState);
|
|
6298
6298
|
}
|
|
6299
6299
|
};
|
|
6300
6300
|
const syncShowItemToInitHidden = () => {
|
|
@@ -6347,16 +6347,15 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
6347
6347
|
}
|
|
6348
6348
|
const cachedPriority = props.priority === "cached";
|
|
6349
6349
|
if (cachedPriority ? cached : (_a2 = localShowColumn.value) == null ? void 0 : _a2.length) {
|
|
6350
|
-
cachedPriority ? await syncCookiesToLocalShowColumn() : syncLocalShowColumnToCookies();
|
|
6350
|
+
cachedPriority ? await syncCookiesToLocalShowColumn() : await syncLocalShowColumnToCookies();
|
|
6351
6351
|
} else if (cachedPriority ? (_b = localShowColumn.value) == null ? void 0 : _b.length : cached) {
|
|
6352
|
-
cachedPriority ? syncLocalShowColumnToCookies() : await syncCookiesToLocalShowColumn();
|
|
6352
|
+
cachedPriority ? await syncLocalShowColumnToCookies() : await syncCookiesToLocalShowColumn();
|
|
6353
6353
|
}
|
|
6354
6354
|
} catch (e) {
|
|
6355
6355
|
console.log(e);
|
|
6356
6356
|
}
|
|
6357
6357
|
}
|
|
6358
6358
|
};
|
|
6359
|
-
initCachedData();
|
|
6360
6359
|
const tableColumns = vueDemi.ref([]);
|
|
6361
6360
|
const elTableRefKey = vueDemi.ref(Date.now());
|
|
6362
6361
|
const syncCookiesToTableColumn = async (readCached = true) => {
|
|
@@ -6423,7 +6422,11 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
6423
6422
|
});
|
|
6424
6423
|
elTableRefKey.value = Date.now();
|
|
6425
6424
|
};
|
|
6426
|
-
|
|
6425
|
+
const initColumn = async () => {
|
|
6426
|
+
await initCachedData();
|
|
6427
|
+
syncCookiesToTableColumn();
|
|
6428
|
+
};
|
|
6429
|
+
initColumn();
|
|
6427
6430
|
vueDemi.onBeforeMount(() => {
|
|
6428
6431
|
vueDemi.watch(() => {
|
|
6429
6432
|
return props.columns;
|
|
@@ -6292,7 +6292,7 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
6292
6292
|
index: index2
|
|
6293
6293
|
};
|
|
6294
6294
|
});
|
|
6295
|
-
CachedManager.syncCachedSet(props.storageKey, columnState);
|
|
6295
|
+
return CachedManager.syncCachedSet(props.storageKey, columnState);
|
|
6296
6296
|
}
|
|
6297
6297
|
};
|
|
6298
6298
|
const syncShowItemToInitHidden = () => {
|
|
@@ -6345,16 +6345,15 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
6345
6345
|
}
|
|
6346
6346
|
const cachedPriority = props.priority === "cached";
|
|
6347
6347
|
if (cachedPriority ? cached : (_a2 = localShowColumn.value) == null ? void 0 : _a2.length) {
|
|
6348
|
-
cachedPriority ? await syncCookiesToLocalShowColumn() : syncLocalShowColumnToCookies();
|
|
6348
|
+
cachedPriority ? await syncCookiesToLocalShowColumn() : await syncLocalShowColumnToCookies();
|
|
6349
6349
|
} else if (cachedPriority ? (_b = localShowColumn.value) == null ? void 0 : _b.length : cached) {
|
|
6350
|
-
cachedPriority ? syncLocalShowColumnToCookies() : await syncCookiesToLocalShowColumn();
|
|
6350
|
+
cachedPriority ? await syncLocalShowColumnToCookies() : await syncCookiesToLocalShowColumn();
|
|
6351
6351
|
}
|
|
6352
6352
|
} catch (e) {
|
|
6353
6353
|
console.log(e);
|
|
6354
6354
|
}
|
|
6355
6355
|
}
|
|
6356
6356
|
};
|
|
6357
|
-
initCachedData();
|
|
6358
6357
|
const tableColumns = ref([]);
|
|
6359
6358
|
const elTableRefKey = ref(Date.now());
|
|
6360
6359
|
const syncCookiesToTableColumn = async (readCached = true) => {
|
|
@@ -6421,7 +6420,11 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
6421
6420
|
});
|
|
6422
6421
|
elTableRefKey.value = Date.now();
|
|
6423
6422
|
};
|
|
6424
|
-
|
|
6423
|
+
const initColumn = async () => {
|
|
6424
|
+
await initCachedData();
|
|
6425
|
+
syncCookiesToTableColumn();
|
|
6426
|
+
};
|
|
6427
|
+
initColumn();
|
|
6425
6428
|
onBeforeMount(() => {
|
|
6426
6429
|
watch(() => {
|
|
6427
6430
|
return props.columns;
|
package/package/nf-table.vue
CHANGED
|
@@ -852,7 +852,7 @@ const syncLocalShowColumnToCookies = () => {
|
|
|
852
852
|
index
|
|
853
853
|
}
|
|
854
854
|
})
|
|
855
|
-
CachedManager.syncCachedSet(props.storageKey, columnState)
|
|
855
|
+
return CachedManager.syncCachedSet(props.storageKey, columnState)
|
|
856
856
|
}
|
|
857
857
|
}
|
|
858
858
|
|
|
@@ -906,9 +906,9 @@ const initCachedData = async () => {
|
|
|
906
906
|
}
|
|
907
907
|
const cachedPriority = props.priority === 'cached'
|
|
908
908
|
if (cachedPriority ? cached : localShowColumn.value?.length) {
|
|
909
|
-
cachedPriority ? await syncCookiesToLocalShowColumn() : syncLocalShowColumnToCookies()
|
|
909
|
+
cachedPriority ? await syncCookiesToLocalShowColumn() : await syncLocalShowColumnToCookies()
|
|
910
910
|
} else if (cachedPriority ? localShowColumn.value?.length : cached) {
|
|
911
|
-
cachedPriority ? syncLocalShowColumnToCookies() : await syncCookiesToLocalShowColumn()
|
|
911
|
+
cachedPriority ? await syncLocalShowColumnToCookies() : await syncCookiesToLocalShowColumn()
|
|
912
912
|
}
|
|
913
913
|
} catch (e) {
|
|
914
914
|
console.log(e)
|
|
@@ -916,7 +916,6 @@ const initCachedData = async () => {
|
|
|
916
916
|
}
|
|
917
917
|
}
|
|
918
918
|
|
|
919
|
-
initCachedData()
|
|
920
919
|
|
|
921
920
|
const tableColumns = ref<NfTableColumnAttributes[]>([])
|
|
922
921
|
const elTableRefKey = ref(Date.now())
|
|
@@ -988,8 +987,12 @@ const syncCookiesToTableColumn = async (readCached = true) => {
|
|
|
988
987
|
})
|
|
989
988
|
elTableRefKey.value = Date.now()
|
|
990
989
|
}
|
|
990
|
+
const initColumn = async () => {
|
|
991
|
+
await initCachedData()
|
|
992
|
+
syncCookiesToTableColumn()
|
|
993
|
+
}
|
|
991
994
|
|
|
992
|
-
|
|
995
|
+
initColumn()
|
|
993
996
|
|
|
994
997
|
onBeforeMount(() => {
|
|
995
998
|
watch(() => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@94ai/nf-table",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.56",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "zoujiahe <zoujiahe@94ai.com>",
|
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
"url": "http://94ai.gitlab.com/zoujiahe/common-ui.git"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@94ai/common-utils": "^3.2.
|
|
18
|
-
"@94ai/nf-button": "^3.2.
|
|
19
|
-
"@94ai/nf-drawer": "^3.2.
|
|
20
|
-
"@94ai/nf-message": "^3.2.
|
|
21
|
-
"@94ai/nf-search-form": "^3.2.
|
|
22
|
-
"@94ai/nf-theme-chalk": "^3.2.
|
|
17
|
+
"@94ai/common-utils": "^3.2.56",
|
|
18
|
+
"@94ai/nf-button": "^3.2.56",
|
|
19
|
+
"@94ai/nf-drawer": "^3.2.56",
|
|
20
|
+
"@94ai/nf-message": "^3.2.56",
|
|
21
|
+
"@94ai/nf-search-form": "^3.2.56",
|
|
22
|
+
"@94ai/nf-theme-chalk": "^3.2.56",
|
|
23
23
|
"idb-keyval": "^6.2.1",
|
|
24
24
|
"vue-demi": "^0.14.5",
|
|
25
25
|
"vuedraggable": "^2.24.3"
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"types": "lib/index.d.ts",
|
|
38
38
|
"main": "lib/nf-table.cjs.js",
|
|
39
39
|
"module": "lib/nf-table.esm-bundler.js",
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "a475b43138116c9b5cf8d660e000903f24dc5ba9"
|
|
41
41
|
}
|