This commit is contained in:
Valentin Mihai 2023-01-25 22:07:59 +02:00
parent eb84e5f348
commit 35386f60e0
3 changed files with 5 additions and 13 deletions

View File

@ -1,6 +1,7 @@
@use 'common-mixins' as mixins; @use 'common-mixins' as mixins;
form .iqser-input-group:not(first-of-type), iqser-dynamic-input:not(first-of-type) { form .iqser-input-group:not(first-of-type),
iqser-dynamic-input:not(first-of-type) {
margin-top: 14px; margin-top: 14px;
} }

View File

@ -1,6 +1,5 @@
<!--<div class="iqser-input-group" [ngClass]="classList" [class.datepicker-wrapper]="isDate">--> <!--<div class="iqser-input-group" [ngClass]="classList" [class.datepicker-wrapper]="isDate">-->
<div class="iqser-input-group" [ngClass]="classList" [class.datepicker-wrapper]="isDate"> <div class="iqser-input-group" [ngClass]="classList" [class.datepicker-wrapper]="isDate">
<label> {{ label }} </label> <label> {{ label }} </label>
<ng-container *ngIf="isDate"> <ng-container *ngIf="isDate">
@ -28,12 +27,5 @@
type="text" type="text"
/> />
<input <input *ngIf="isNumber" [(ngModel)]="input" (ngModelChange)="onChange($event)" [id]="id" [name]="name" type="number" />
*ngIf="isNumber"
[(ngModel)]="input"
(ngModelChange)="onChange($event)"
[id]="id"
[name]="name"
type="number"
/>
</div> </div>

View File

@ -29,10 +29,9 @@ type DynamicInput = number | string | Date;
multi: true, multi: true,
useExisting: DynamicInputComponent, useExisting: DynamicInputComponent,
}, },
] ],
}) })
export class DynamicInputComponent extends FormFieldComponent<DynamicInput> { export class DynamicInputComponent extends FormFieldComponent<DynamicInput> {
@Input() label!: string; @Input() label!: string;
@Input() type!: InputType; @Input() type!: InputType;