bbj-screen-widget 2.4.50 → 2.4.51

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.
@@ -2192,6 +2192,7 @@
2192
2192
  // this.optionChange.emit(this.options);
2193
2193
  };
2194
2194
  SelectComponent.prototype.selectChange = function (value) {
2195
+ this.selectedValue = value;
2195
2196
  if (Array.isArray(value)) {
2196
2197
  // 多选
2197
2198
  if (this.outputFormat === 'string') {
@@ -2218,7 +2219,7 @@
2218
2219
  exports.ɵx.decorators = [
2219
2220
  { type: i0.Component, args: [{
2220
2221
  selector: 'sc-select',
2221
- template: "<nz-select\n class=\"select-wrap\"\n [ngClass]=\"align\"\n [(ngModel)]=\"selectedValue\"\n [nzMode]=\"mode\"\n [nzMaxTagCount]=\"num\"\n [nzDropdownClassName]=\"'dropDown'\"\n [ngStyle]=\"ngStyle\"\n [nzDropdownStyle]=\"dropdownStyle\"\n [nzDropdownClassName]=\"'selectComp'\"\n [nzDropdownRender]=\"renderTemplate\"\n [nzShowSearch]=\"showSearch\"\n (ngModelChange)=\"selectChange($event)\"\n [nzAllowClear]=\"showClean\"\n [nzPlaceHolder]=\"hint\"\n>\n <nz-option\n *ngFor=\"let item of options\"\n [nzValue]=\"item.value ? item.value : item.label\"\n [nzLabel]=\"item.label\"\n ></nz-option>\n</nz-select>\n<ng-template #renderTemplate>\n <div class=\"select-allCheck\" *ngIf=\"options && options.length > 0 && mode === 'multiple'\" (click)=\"selectAllData()\">\n <span>\u5168\u9009</span>\n </div>\n</ng-template>\n",
2222
+ template: "<nz-select\n class=\"select-wrap\"\n [ngClass]=\"align\"\n [ngModel]=\"selectedValue\"\n [nzMode]=\"mode\"\n [nzMaxTagCount]=\"num\"\n [nzDropdownClassName]=\"'dropDown'\"\n [ngStyle]=\"ngStyle\"\n [nzDropdownStyle]=\"dropdownStyle\"\n [nzDropdownClassName]=\"'selectComp'\"\n [nzDropdownRender]=\"renderTemplate\"\n [nzShowSearch]=\"showSearch\"\n (ngModelChange)=\"selectChange($event)\"\n [nzAllowClear]=\"showClean\"\n [nzPlaceHolder]=\"hint\"\n [(nzOpen)]=\"open\"\n>\n <nz-option\n *ngFor=\"let item of options\"\n [nzValue]=\"item.value ? item.value : item.label\"\n [nzLabel]=\"item.label\"\n ></nz-option>\n</nz-select>\n<ng-template #renderTemplate>\n <div>\n <button nz-button *ngIf=\"options && options.length > 0 && mode === 'multiple'\" (click)=\"selectAllData()\">\n \u5168\u9009\n </button>\n <button nz-button *ngIf=\"showClean\" (click)=\"selectChange(null); open = false\">\u6E05\u7A7A</button>\n <button nz-button *ngIf=\"showConfirm\" (click)=\"open = false\">\u67E5\u770B</button>\n </div>\n</ng-template>\n",
2222
2223
  styles: [":host{display:inline-block}:host,:host ::ng-deep .ant-select{width:100%;height:100%}:host ::ng-deep .ant-select.center .ant-select-selection-item{justify-content:center}:host ::ng-deep .ant-select.right .ant-select-selection-item{justify-content:flex-end}:host ::ng-deep .ant-select-selection-item{display:flex;align-items:center}:host ::ng-deep .ant-select-single:not(.ant-select-customize-input) .ant-select-selector{background-color:inherit;border:0;height:100%;box-shadow:none!important}:host ::ng-deep .ant-select-single:not(.ant-select-customize-input) .ant-select-selector .ant-select-selection-search-input{height:100%}:host ::ng-deep .ant-select-arrow,:host ::ng-deep .ant-select-item,:host ::ng-deep .ant-select-item-empty{color:inherit}:host ::ng-deep .ant-select-single.ant-select-show-arrow .ant-select-selection-item,:host ::ng-deep .ant-select-single.ant-select-show-arrow .ant-select-selection-placeholder{line-height:inherit}.select-allCheck:hover{background-color:#f8f8f8}.select-allCheck{display:flex;align-items:center;border-top:1px solid #eee;justify-content:flex-end;height:32px;padding:5px 12px;font-size:14px;position:relative;line-height:22px;font-weight:400;color:#333}.select-allCheck span{flex:1}.select-allCheck p{line-height:32px}:host ::ng-deep ::-webkit-scrollbar{width:2px}::ng-deep .selectComp .cdk-virtual-scroll-viewport::-webkit-scrollbar{width:0}::ng-deep .selectComp .ant-select-item-option{color:inherit;font-size:12px}::ng-deep .selectComp .ant-select-item-option-active{background:var(--selectHoverBackgroundColor);color:var(--selectHoverColor)}::ng-deep .selectComp .ant-select-item-option-selected:not(.ant-select-item-option-disabled){background:var(--dropdownBackgroundColor);color:var(--selectDropDownColor)}::ng-deep .selectComp .ant-select-dropdown{background-color:transparent}"]
2223
2224
  },] }
2224
2225
  ];
@@ -2343,6 +2344,10 @@
2343
2344
  bbjWidgetBase.Property('清空按钮'),
2344
2345
  __metadata("design:type", Boolean)
2345
2346
  ], exports.ɵx.prototype, "showClean", void 0);
2347
+ __decorate([
2348
+ bbjWidgetBase.Property('查看按钮'),
2349
+ __metadata("design:type", Boolean)
2350
+ ], exports.ɵx.prototype, "showConfirm", void 0);
2346
2351
  __decorate([
2347
2352
  bbjWidgetBase.Property('下拉宽度', { type: 'number' }),
2348
2353
  __metadata("design:type", Object)