fantasy-ngzorro 1.1.10 → 1.1.12
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/bundles/fantasy-ngzorro.umd.js +14 -5
- package/bundles/fantasy-ngzorro.umd.js.map +1 -1
- package/bundles/fantasy-ngzorro.umd.min.js +1 -1
- package/bundles/fantasy-ngzorro.umd.min.js.map +1 -1
- package/esm2015/hd-table/hd-table.component.js +15 -6
- package/esm5/hd-table/hd-table.component.js +15 -6
- package/fesm2015/fantasy-ngzorro.js +15 -6
- package/fesm2015/fantasy-ngzorro.js.map +1 -1
- package/fesm5/fantasy-ngzorro.js +15 -6
- package/fesm5/fantasy-ngzorro.js.map +1 -1
- package/hd-table/hd-table.component.d.ts +1 -0
- package/package.json +3 -2
|
@@ -3465,6 +3465,7 @@
|
|
|
3465
3465
|
this.cancelNowListNodes = [];
|
|
3466
3466
|
this.cancelHideListNodes = [];
|
|
3467
3467
|
this.showDetail = false;
|
|
3468
|
+
this.localforage = null;
|
|
3468
3469
|
// 拖拽操作
|
|
3469
3470
|
this.beforeDrop = (/**
|
|
3470
3471
|
* @param {?} arg
|
|
@@ -3504,8 +3505,7 @@
|
|
|
3504
3505
|
}
|
|
3505
3506
|
});
|
|
3506
3507
|
console.log('localforage', localforage);
|
|
3507
|
-
|
|
3508
|
-
localforage.config({
|
|
3508
|
+
this.localforage = localforage.createInstance({
|
|
3509
3509
|
driver: localforage.INDEXEDDB,
|
|
3510
3510
|
name: 'hd-fscm',
|
|
3511
3511
|
// 设置存储库的名称
|
|
@@ -3513,6 +3513,13 @@
|
|
|
3513
3513
|
// 设置存储库的版本
|
|
3514
3514
|
storeName: 'hd-fscm-store',
|
|
3515
3515
|
});
|
|
3516
|
+
// // 初始化 localforage
|
|
3517
|
+
// localforage.config({
|
|
3518
|
+
// driver: localforage.INDEXEDDB,
|
|
3519
|
+
// name: 'hd-fscm', // 设置存储库的名称
|
|
3520
|
+
// version: 1.0, // 设置存储库的版本
|
|
3521
|
+
// storeName: 'hd-fscm-store', // 设置存储库的存储空间名称
|
|
3522
|
+
// });
|
|
3516
3523
|
}
|
|
3517
3524
|
/**
|
|
3518
3525
|
* @return {?}
|
|
@@ -3529,7 +3536,7 @@
|
|
|
3529
3536
|
userCode: 'dev'
|
|
3530
3537
|
};
|
|
3531
3538
|
}
|
|
3532
|
-
localforage.ready().then((/**
|
|
3539
|
+
this.localforage.ready().then((/**
|
|
3533
3540
|
* @return {?}
|
|
3534
3541
|
*/
|
|
3535
3542
|
function () {
|
|
@@ -3551,7 +3558,7 @@
|
|
|
3551
3558
|
function () {
|
|
3552
3559
|
var _this = this;
|
|
3553
3560
|
// 首先获取当前hd-table存储的数据 如果没有,则初始化下当前的数据
|
|
3554
|
-
localforage.getItem('hd-table_' + this.userSession.userCode + '_' + this.uuid).then((/**
|
|
3561
|
+
this.localforage.getItem('hd-table_' + this.userSession.userCode + '_' + this.uuid).then((/**
|
|
3555
3562
|
* @param {?} value
|
|
3556
3563
|
* @return {?}
|
|
3557
3564
|
*/
|
|
@@ -3946,7 +3953,7 @@
|
|
|
3946
3953
|
* @return {?}
|
|
3947
3954
|
*/
|
|
3948
3955
|
function () {
|
|
3949
|
-
localforage.setItem('hd-table_' + this.userSession.userCode + '_' + this.uuid, this.tableCacheOption);
|
|
3956
|
+
this.localforage.setItem('hd-table_' + this.userSession.userCode + '_' + this.uuid, this.tableCacheOption);
|
|
3950
3957
|
};
|
|
3951
3958
|
/**
|
|
3952
3959
|
* @return {?}
|
|
@@ -4381,6 +4388,8 @@
|
|
|
4381
4388
|
/** @type {?} */
|
|
4382
4389
|
HdTableComponent.prototype.showDetail;
|
|
4383
4390
|
/** @type {?} */
|
|
4391
|
+
HdTableComponent.prototype.localforage;
|
|
4392
|
+
/** @type {?} */
|
|
4384
4393
|
HdTableComponent.prototype.beforeDrop;
|
|
4385
4394
|
/**
|
|
4386
4395
|
* @type {?}
|