Browse Source
Merge pull request #18510 from abpframework/issue/15988
Add common module and add array type for type multi
pull/18511/head
Masum ULU
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
3 additions and
7 deletions
-
npm/ng-packs/packages/components/extensible/src/lib/components/extensible-form/extensible-form-prop.component.ts
-
npm/ng-packs/packages/components/extensible/src/lib/models/form-props.ts
|
|
|
@ -41,7 +41,7 @@ import {ExtensibleDateTimePickerComponent} from '../date-time-picker/extensible- |
|
|
|
import {NgxValidateCoreModule} from '@ngx-validate/core'; |
|
|
|
import {ExtensibleFormPropService} from '../../services/extensible-form-prop.service'; |
|
|
|
import {CreateInjectorPipe} from '../../pipes/create-injector.pipe'; |
|
|
|
import {AsyncPipe, NgClass, NgSwitch, NgSwitchCase, NgTemplateOutlet} from '@angular/common'; |
|
|
|
import { CommonModule} from '@angular/common'; |
|
|
|
|
|
|
|
@Component({ |
|
|
|
selector: 'abp-extensible-form-prop', |
|
|
|
@ -59,11 +59,7 @@ import {AsyncPipe, NgClass, NgSwitch, NgSwitchCase, NgTemplateOutlet} from '@ang |
|
|
|
ShowPasswordDirective, |
|
|
|
PermissionDirective, |
|
|
|
LocalizationModule, |
|
|
|
AsyncPipe, |
|
|
|
NgSwitch, |
|
|
|
NgSwitchCase, |
|
|
|
NgClass, |
|
|
|
NgTemplateOutlet, |
|
|
|
CommonModule, |
|
|
|
], |
|
|
|
changeDetection: ChangeDetectionStrategy.OnPush, |
|
|
|
providers: [ExtensibleFormPropService], |
|
|
|
|
|
|
|
@ -64,7 +64,7 @@ export class FormProp<R = any> extends Prop<R> { |
|
|
|
readonly disabled: PropPredicate<R>; |
|
|
|
readonly readonly: PropPredicate<R>; |
|
|
|
readonly autocomplete: string; |
|
|
|
readonly defaultValue: boolean | number | string | Date; |
|
|
|
readonly defaultValue: boolean | number | string | Date | Array<string>; |
|
|
|
readonly options: PropCallback<R, Observable<ABP.Option<any>[]>> | undefined; |
|
|
|
readonly id: string | undefined; |
|
|
|
readonly template?: Type<any>; |
|
|
|
|