fantasy-ngzorro 2.0.6 → 2.0.7
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/README.md +5 -3
- package/bundles/fantasy-ngzorro.umd.js +12 -2
- 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-detail-form/hd-detail-form.component.js +13 -3
- package/esm5/hd-detail-form/hd-detail-form.component.js +13 -3
- package/fantasy-ngzorro.metadata.json +1 -1
- package/fesm2015/fantasy-ngzorro.js +12 -2
- package/fesm2015/fantasy-ngzorro.js.map +1 -1
- package/fesm5/fantasy-ngzorro.js +12 -2
- package/fesm5/fantasy-ngzorro.js.map +1 -1
- package/hd-detail-form/hd-detail-form.component.d.ts +9 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -471,6 +471,7 @@ this.hdFormLines.getValid(); // 获取整表校验状态
|
|
|
471
471
|
|
|
472
472
|
```html
|
|
473
473
|
<hd-detail-form [formCols]="formCols"></hd-detail-form>
|
|
474
|
+
<!-- 固定两列:<hd-detail-form [formCols]="formCols" [nzColumn]="2"></hd-detail-form> -->
|
|
474
475
|
```
|
|
475
476
|
|
|
476
477
|
```typescript
|
|
@@ -480,9 +481,10 @@ formCols: HdOption[] = [
|
|
|
480
481
|
];
|
|
481
482
|
```
|
|
482
483
|
|
|
483
|
-
| 参数 | 类型 | 说明 |
|
|
484
|
-
| ---- | ---- | ---- |
|
|
485
|
-
| formCols | HdOption[] | 展示字段,见 [HdOption](#hdoption键值展示项) |
|
|
484
|
+
| 参数 | 类型 | 默认值 | 说明 |
|
|
485
|
+
| ---- | ---- | ------ | ---- |
|
|
486
|
+
| formCols | HdOption[] | — | 展示字段,见 [HdOption](#hdoption键值展示项) |
|
|
487
|
+
| nzColumn | number \| object | `{ xxl: 4, xl: 3, lg: 3, md: 3, sm: 2, xs: 1 }` | 列数;传数字为固定列数,传对象为响应式列数 |
|
|
486
488
|
|
|
487
489
|
---
|
|
488
490
|
|
|
@@ -440,6 +440,10 @@
|
|
|
440
440
|
var HdDetailFormComponent = /** @class */ (function () {
|
|
441
441
|
function HdDetailFormComponent() {
|
|
442
442
|
this.formCols = new Array();
|
|
443
|
+
/**
|
|
444
|
+
* 列数,支持数字或响应式配置,默认按屏幕宽度自适应
|
|
445
|
+
*/
|
|
446
|
+
this.nzColumn = { xxl: 4, xl: 3, lg: 3, md: 3, sm: 2, xs: 1 };
|
|
443
447
|
}
|
|
444
448
|
/**
|
|
445
449
|
* @return {?}
|
|
@@ -493,20 +497,26 @@
|
|
|
493
497
|
HdDetailFormComponent.decorators = [
|
|
494
498
|
{ type: core.Component, args: [{
|
|
495
499
|
selector: 'hd-detail-form',
|
|
496
|
-
template: "<nz-content class=\"hd-detail-form-container\">\n <nz-descriptions [nzColumn]=\"
|
|
500
|
+
template: "<nz-content class=\"hd-detail-form-container\">\n <nz-descriptions [nzColumn]=\"nzColumn\">\n <ng-container *ngFor=\"let col of formCols\">\n <nz-descriptions-item *ngIf=\"!col.click\" [nzTitle]=\"col.label\">\n <span [ngStyle]=\"{'color': col?.color ? col.color : null}\">{{(col.value === '0' || col.value === 0 || col.value\n )? col.value : '<\u7A7A>'}}</span>\n </nz-descriptions-item>\n <nz-descriptions-item *ngIf=\"col.click\" [nzTitle]=\"col.label\">\n <span [ngStyle]=\"{'color': col?.color ? col.color : null}\" *ngIf=\"col.clickText\">\n {{(col.value === '0' || col.value === 0 || col.value\n )? col.value : '<\u7A7A>'}}\n <a (click)=\"triggerEvent(col.click || null)\"> {{ col.clickText }}</a>\n </span>\n <span [ngStyle]=\"{'color': col?.color ? col.color : null}\" *ngIf=\"!col.clickText\">\n <a (click)=\"triggerEvent(col.click || null)\">{{(col.value === '0' || col.value === 0 || col.value\n )? col.value : '<\u7A7A>'}}</a>\n </span>\n </nz-descriptions-item>\n </ng-container>\n </nz-descriptions>\n</nz-content>\n",
|
|
497
501
|
styles: ["::ng-deep .common-btn-group>a{font-size:14px;font-weight:400;color:#20b95d!important;white-space:nowrap}::ng-deep .common-btn-group .common-danger-btn:hover{color:#f05b24!important}::ng-deep .common-btn-group>a:hover{color:#20bd62!important}::ng-deep .common-btn-group>a:not(:last-child)::after{content:'';margin:0 2px}::ng-deep .common-billNumber>a{color:#3b77e3}button{box-shadow:unset;text-shadow:unset}::ng-deep .ant-form-item-label>label{color:#4b504e;font-size:14px}::ng-deep .ant-input-number-input{height:32px}::ng-deep .ant-input-number{height:32px}textarea.ant-input{height:auto;min-height:32px}::ng-deep .ant-select-selection--multiple{min-height:32px}::ng-deep .ant-select-selection__rendered>ul>li{height:26px!important;margin-top:3px!important;line-height:26px!important}::ng-deep .ant-advanced-search-form .ant-form-item{margin-bottom:0!important}::ng-deep .ant-select-selection--single{height:32px!important}::ng-deep .ant-input{height:32px}::ng-deep .ant-input[disabled]:hover{border-color:#d9d9d9!important}::ng-deep .ant-select-selection__rendered{line-height:32px!important}::ng-deep .ant-calendar-range-picker-input{text-align:left!important}::ng-deep .ant-calendar-picker{width:100%!important}::ng-deep .ant-row{margin-right:0!important;margin-left:0!important}::ng-deep .ant-col-6{padding-left:12px;padding-right:12px}::ng-deep .ant-col-12{padding-left:12px;padding-right:12px}::ng-deep .ant-col-18{padding-left:12px;padding-right:12px}::ng-deep .ant-col-24{padding-left:12px;padding-right:12px}::ng-deep .ant-alert-info{background-color:#f5f8f6;border:1px solid #cfe3d4}:host ::ng-deep th{background:#f5f8f6!important;font-weight:700!important;white-space:nowrap;font-size:14px;font-family:PingFangSC-Medium,PingFang SC;color:#2a3634;padding:8px!important;box-sizing:border-box}:host ::ng-deep td{font-weight:400;font-style:normal;font-size:14px;color:#2a3634;text-align:left;white-space:nowrap;padding:8px!important;box-sizing:border-box}::ng-deep .ant-pagination-options{display:inline-flex;align-items:center}::ng-deep .ant-time-picker{width:100%}.ant-input-number-disabled,.ant-input[disabled],.ant-select-disabled{color:#4b504e}.hd-detail-form-container{font-size:14px}.hd-detail-form-container ::ng-deep .ant-descriptions-item-content{word-break:break-all;color:rgba(0,0,0,.85);font-weight:400;font-size:14px}.hd-detail-form-container ::ng-deep .ant-descriptions-item-label{color:#868a9c;font-size:14px;width:180px}.hd-detail-form-container ::ng-deep .ant-descriptions-item-label::after{content:''!important}.hd-detail-form-container ::ng-deep .ant-descriptions-item{padding-top:6px!important;padding-bottom:6px!important;font-size:14px}.hd-detail-form-container ::ng-deep a{font-size:14px}.hd-detail-form-container ::ng-deep td{white-space:unset!important}.hd-detail-form-container .ng-star-inserted,.hd-detail-form-container ::ng-deep .ant-descriptions-item{padding-left:0!important}"]
|
|
498
502
|
}] }
|
|
499
503
|
];
|
|
500
504
|
/** @nocollapse */
|
|
501
505
|
HdDetailFormComponent.ctorParameters = function () { return []; };
|
|
502
506
|
HdDetailFormComponent.propDecorators = {
|
|
503
|
-
formCols: [{ type: core.Input }]
|
|
507
|
+
formCols: [{ type: core.Input }],
|
|
508
|
+
nzColumn: [{ type: core.Input }]
|
|
504
509
|
};
|
|
505
510
|
return HdDetailFormComponent;
|
|
506
511
|
}());
|
|
507
512
|
if (false) {
|
|
508
513
|
/** @type {?} */
|
|
509
514
|
HdDetailFormComponent.prototype.formCols;
|
|
515
|
+
/**
|
|
516
|
+
* 列数,支持数字或响应式配置,默认按屏幕宽度自适应
|
|
517
|
+
* @type {?}
|
|
518
|
+
*/
|
|
519
|
+
HdDetailFormComponent.prototype.nzColumn;
|
|
510
520
|
}
|
|
511
521
|
|
|
512
522
|
/**
|