fantasy-ngzorro 1.1.0 → 1.1.1

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.
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('ng-zorro-antd'), require('ng-zorro-antd/core'), require('lodash'), require('@angular/cdk/drag-drop'), require('ng-zorro-antd/table'), require('ng-zorro-antd/modal'), require('ng-zorro-antd/dropdown'), require('ng-zorro-antd/popconfirm'), require('ng-zorro-antd/resizable'), require('ng-zorro-antd/tooltip'), require('ng-zorro-antd/tree'), require('fantasy-ngzorro/model/colWidth'), require('localforage'), require('rxjs'), require('rxjs/operators')) :
3
- typeof define === 'function' && define.amd ? define('fantasy-ngzorro', ['exports', '@angular/core', '@angular/common', '@angular/forms', 'ng-zorro-antd', 'ng-zorro-antd/core', 'lodash', '@angular/cdk/drag-drop', 'ng-zorro-antd/table', 'ng-zorro-antd/modal', 'ng-zorro-antd/dropdown', 'ng-zorro-antd/popconfirm', 'ng-zorro-antd/resizable', 'ng-zorro-antd/tooltip', 'ng-zorro-antd/tree', 'fantasy-ngzorro/model/colWidth', 'localforage', 'rxjs', 'rxjs/operators'], factory) :
4
- (global = global || self, factory(global['fantasy-ngzorro'] = {}, global.ng.core, global.ng.common, global.ng.forms, global.ngZorroAntd, global.core$1, global.lodash, global.ng.cdk['drag-drop'], global.table, global.modal, global.dropdown, global.popconfirm, global.resizable, global.tooltip, global.tree, global.colWidth, global.localforage, global.rxjs, global.rxjs.operators));
5
- }(this, (function (exports, core, common, forms, ngZorroAntd, core$1, lodash, dragDrop, table, modal, dropdown, popconfirm, resizable, tooltip, tree, colWidth, localforage, rxjs, operators) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('ng-zorro-antd'), require('ng-zorro-antd/core'), require('lodash'), require('@angular/cdk/drag-drop'), require('ng-zorro-antd/table'), require('ng-zorro-antd/modal'), require('ng-zorro-antd/dropdown'), require('ng-zorro-antd/popconfirm'), require('ng-zorro-antd/resizable'), require('ng-zorro-antd/tooltip'), require('ng-zorro-antd/tree'), require('localforage'), require('rxjs'), require('rxjs/operators')) :
3
+ typeof define === 'function' && define.amd ? define('fantasy-ngzorro', ['exports', '@angular/core', '@angular/common', '@angular/forms', 'ng-zorro-antd', 'ng-zorro-antd/core', 'lodash', '@angular/cdk/drag-drop', 'ng-zorro-antd/table', 'ng-zorro-antd/modal', 'ng-zorro-antd/dropdown', 'ng-zorro-antd/popconfirm', 'ng-zorro-antd/resizable', 'ng-zorro-antd/tooltip', 'ng-zorro-antd/tree', 'localforage', 'rxjs', 'rxjs/operators'], factory) :
4
+ (global = global || self, factory(global['fantasy-ngzorro'] = {}, global.ng.core, global.ng.common, global.ng.forms, global.ngZorroAntd, global.core$1, global.lodash, global.ng.cdk['drag-drop'], global.table, global.modal, global.dropdown, global.popconfirm, global.resizable, global.tooltip, global.tree, global.localforage, global.rxjs, global.rxjs.operators));
5
+ }(this, (function (exports, core, common, forms, ngZorroAntd, core$1, lodash, dragDrop, table, modal, dropdown, popconfirm, resizable, tooltip, tree, localforage, rxjs, operators) { 'use strict';
6
6
 
7
7
  /*! *****************************************************************************
8
8
  Copyright (c) Microsoft Corporation.
@@ -3263,6 +3263,37 @@
3263
3263
  return CommonSessionService;
3264
3264
  }());
3265
3265
 
3266
+ /**
3267
+ * @fileoverview added by tsickle
3268
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3269
+ */
3270
+ /** @type {?} */
3271
+ var ColWidth = {
3272
+ billNumberColWidth: 150,
3273
+ // 单据单号列宽度
3274
+ nameColWidth: 150,
3275
+ // 基本资料名称列宽度
3276
+ codeColWidth: 100,
3277
+ // 基本资料代码列宽度
3278
+ codeNameColWidth: 200,
3279
+ // 用于门店、货主、供应商以“[code]name“格式展示时固定宽度
3280
+ enumColWidth: 100,
3281
+ // 枚举列宽度
3282
+ dateColWidth: 100,
3283
+ // 单个日期
3284
+ dateTimeColWidth: 150,
3285
+ // 单个日期带时间
3286
+ dateRangeWidth: 200,
3287
+ // 日期范围
3288
+ operateColWidth: 150,
3289
+ // 操作列宽度
3290
+ numberColWidth: 100,
3291
+ // 数字列
3292
+ remarkColwidth: 250,
3293
+ // 备注列
3294
+ fixColWidth: 150,
3295
+ };
3296
+
3266
3297
  /**
3267
3298
  * @fileoverview added by tsickle
3268
3299
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
@@ -3984,9 +4015,9 @@
3984
4015
  */
3985
4016
  function () {
3986
4017
  /** @type {?} */
3987
- var colWidth$1 = 0;
4018
+ var colWidth = 0;
3988
4019
  if (this.showSelected) {
3989
- colWidth$1 += 40;
4020
+ colWidth += 40;
3990
4021
  }
3991
4022
  this.tableCols.forEach((/**
3992
4023
  * @param {?} item
@@ -3994,11 +4025,11 @@
3994
4025
  */
3995
4026
  function (item) {
3996
4027
  if (!item.width) {
3997
- item.width = colWidth.ColWidth.fixColWidth;
4028
+ item.width = ColWidth.fixColWidth;
3998
4029
  }
3999
4030
  if (item.isShow) {
4000
- item.fixedWidth = colWidth$1;
4001
- colWidth$1 += item.width;
4031
+ item.fixedWidth = colWidth;
4032
+ colWidth += item.width;
4002
4033
  }
4003
4034
  }));
4004
4035
  this.scroll = {