+ `,
+ host: {
+ class: 'ant-segmented',
+ '[class.ant-segmented-disabled]': '!!nzDisabled',
+ '[class.ant-segmented-rtl]': `dir === 'rtl'`,
+ '[class.ant-segmented-lg]': `nzSize === 'large'`,
+ '[class.ant-segmented-sm]': `nzSize === 'small'`,
+ '[class.ant-segmented-block]': `!!nzBlock`
+ },
+ providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => NzSegmentedComponent), multi: true }],
+ animations: [thumbMotion]
+})
+export class NzSegmentedComponent implements OnChanges, ControlValueAccessor {
+ static ngAcceptInputType_nzDisabled: BooleanInput;
+ static ngAcceptInputType_nzBlock: BooleanInput;
+
+ readonly _nzModuleName: NzConfigKey = NZ_CONFIG_MODULE_NAME;
+
+ @ViewChildren('itemLabels', { read: ElementRef }) listOfOptions!: QueryList