import { Component, Input } from '@angular/core';
@Component({
selector: 'app-custom-input',
template:
,
styles: [ /* Add your custom styles */ .custom-style .ui-inputnumber-input { background-color: lightgreen; }
]
})
export class CustomInputComponent {
@Input() value: number;
@Input() customColor: string;
@Input() disabled: boolean;
@Input() readonly: boolean;
}
这样,你就可以在你的应用程序中使用自定义样式了。