mirror of https://github.com/abpframework/abp.git
6 changed files with 27 additions and 23 deletions
@ -1,18 +0,0 @@ |
|||||
import { Component, Input } from '@angular/core'; |
|
||||
import { EXTENSIBLE_FORM_VIEW_PROVIDER } from '../../tokens/extensible-form-view-provider.token'; |
|
||||
import { FormProp } from '../../models/form-props'; |
|
||||
|
|
||||
@Component({ |
|
||||
selector: 'abp-password', |
|
||||
templateUrl: `password.component.html`, |
|
||||
viewProviders: [EXTENSIBLE_FORM_VIEW_PROVIDER], |
|
||||
}) |
|
||||
export class PasswordComponent { |
|
||||
@Input() prop!: FormProp; |
|
||||
|
|
||||
fieldTextType: boolean; |
|
||||
|
|
||||
toggleFieldTextType() { |
|
||||
this.fieldTextType = !this.fieldTextType; |
|
||||
} |
|
||||
} |
|
||||
@ -0,0 +1,22 @@ |
|||||
|
import {Component, Injector, Input} from '@angular/core'; |
||||
|
import {AbstractNgModelComponent} from "@abp/ng.core"; |
||||
|
|
||||
|
@Component({ |
||||
|
selector: 'abp-password', |
||||
|
templateUrl: `password.component.html`, |
||||
|
}) |
||||
|
export class PasswordComponent extends AbstractNgModelComponent{ |
||||
|
@Input() inputId!: string; |
||||
|
|
||||
|
fieldTextType: boolean; |
||||
|
|
||||
|
constructor( |
||||
|
injector: Injector, |
||||
|
) { |
||||
|
super(injector); |
||||
|
} |
||||
|
|
||||
|
toggleFieldTextType() { |
||||
|
this.fieldTextType = !this.fieldTextType; |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue