IK
Size: a a a
IK
VV
IK
IK
IK
VV
VV
IK
🧤K
🧤K
name.invalid && (name.dirty || name.touched)на функцию, которую мы опять же будем вызывать в шаблоне и подставлять тоже самое?
VV
KA
🧤K
🧤K
R
KA
VV
D
ВС
AP
export function higherOrderServiceFactory(injector: Injector): NzTreeBaseService {
return injector.get(NzTreeSelectService);
}
const NZ_CONFIG_COMPONENT_NAME = 'treeSelect';
@Component({
selector: 'nz-tree-select',
exportAs: 'nzTreeSelect',
animations: [slideMotion, zoomMotion],
templateUrl: './nz-tree-select.component.html',
providers: [
NzTreeSelectService,
{
provide: NzTreeHigherOrderServiceToken,
useFactory: higherOrderServiceFactory,
deps: [[new Self(), Injector]]
},
{
provide: NG_VALUE_ACCESSOR,
useExisting: forwardRef(() => NzTreeSelectComponent),
multi: true
}
],
host: {
'[class.ant-select-lg]': 'nzSize==="large"',
'[class.ant-select-sm]': 'nzSize==="small"',
'[class.ant-select-enabled]': '!nzDisabled',
'[class.ant-select-disabled]': 'nzDisabled',
'[class.ant-select-allow-clear]': 'nzAllowClear',
'[class.ant-select-open]': 'nzOpen',
'(click)': 'trigger()'
},
styles: [
`
.ant-select-dropdown {
top: 100%;
left: 0;
position: relative;
width: 100%;
margin-top: 4px;
margin-bottom: 4px;
overflow: auto;
}
`
]
})