提交 f1d69f98 编写于 作者: JunZai's avatar JunZai

update

上级 b0f6539c
...@@ -11,6 +11,7 @@ import { AppDatePickerModule } from '@components/app-date-picker/app-date-picker ...@@ -11,6 +11,7 @@ import { AppDatePickerModule } from '@components/app-date-picker/app-date-picker
import { AppSelectModule } from '@components/app-select/app-select.module'; import { AppSelectModule } from '@components/app-select/app-select.module';
import { AppRadioModule } from '@components/app-radio/app-radio.module'; import { AppRadioModule } from '@components/app-radio/app-radio.module';
import { AppCheckboxListModule } from '@components/app-checkbox-list/app-checkbox-list.module'; import { AppCheckboxListModule } from '@components/app-checkbox-list/app-checkbox-list.module';
import { AppCheckboxModule } from '@components/app-checkbox/app-checkbox.module';
@NgModule({ @NgModule({
imports: [ imports: [
...@@ -21,7 +22,8 @@ import { AppCheckboxListModule } from '@components/app-checkbox-list/app-checkbo ...@@ -21,7 +22,8 @@ import { AppCheckboxListModule } from '@components/app-checkbox-list/app-checkbo
AppTimePickerModule, AppTimePickerModule,
AppSelectModule, AppSelectModule,
AppRadioModule, AppRadioModule,
AppCheckboxListModule AppCheckboxListModule,
AppCheckboxModule
], ],
schemas: [CUSTOM_ELEMENTS_SCHEMA], schemas: [CUSTOM_ELEMENTS_SCHEMA],
declarations: [${srfclassname('${ctrl.name}')}], declarations: [${srfclassname('${ctrl.name}')}],
......
<app-select [value]="data.${item.name}"<#if item.getPSCodeList()??><#assign codelist=item.getPSCodeList()> codeListId="${codelist.codeName}"</#if><#if item.getPlaceHolder()??> placeholder="${item.getPlaceHolder()}"</#if> [disabled]="detailsModel.${item.name}.disabled"<#if item.getEditorWidth() gt 0 && item.getEditorParam('width','') != 'auto'> width="${item.getEditorWidth()?c}"</#if> (onFormItemValueChange)="onFormItemValueChange({name: '${item.name}', value: $event})"></app-select> <app-select [value]="data.${item.name}"<#if item.getPSCodeList()??><#assign codelist=item.getPSCodeList()> codeListId="${codelist.codeName}"</#if><#if item.getPlaceHolder()??> placeholder="${item.getPlaceHolder()}"</#if> [disabled]="detailsModel.${item.name}.disabled"<#if item.getEditorWidth() gt 0 && item.getEditorParam('width','') != 'auto'> width="${item.getEditorWidth()?c}"</#if> (onFormItemValueChange)="onFormDataChange('${item.name}', $event)"></app-select>
\ No newline at end of file \ No newline at end of file
<app-select [value]="data.${item.name}"<#if item.getPSCodeList()??><#assign codelist=item.getPSCodeList()> codeListId="${codelist.codeName}"</#if><#if item.getPlaceHolder()??> placeholder="${item.getPlaceHolder()}"</#if> [disabled]="detailsModel.${item.name}.disabled" width="100" (onFormItemValueChange)="onFormItemValueChange({name: '${item.name}', value: $event})"></app-select> <app-select [value]="data.${item.name}"<#if item.getPSCodeList()??><#assign codelist=item.getPSCodeList()> codeListId="${codelist.codeName}"</#if><#if item.getPlaceHolder()??> placeholder="${item.getPlaceHolder()}"</#if> [disabled]="detailsModel.${item.name}.disabled" width="100" (onFormItemValueChange)="onFormDataChange('${item.name}', $event)"></app-select>
\ No newline at end of file \ No newline at end of file
<app-radio [value]="data.${item.name}"<#if item.getPSCodeList()??><#assign codelist=item.getPSCodeList()> codeListId="${codelist.codeName}"</#if><#if item.getPlaceHolder()??> placeholder="${item.getPlaceHolder()}"</#if> [disabled]="detailsModel.${item.name}.disabled"<#if item.getEditorWidth() gt 0 && item.getEditorParam('width','') != 'auto'> width="${item.getEditorWidth()?c}"</#if> (onFormItemValueChange)="onFormItemValueChange({name: '${item.name}', value: $event})"></app-radio> <app-radio [value]="data.${item.name}"<#if item.getPSCodeList()??><#assign codelist=item.getPSCodeList()> codeListId="${codelist.codeName}"</#if><#if item.getPlaceHolder()??> placeholder="${item.getPlaceHolder()}"</#if> [disabled]="detailsModel.${item.name}.disabled"<#if item.getEditorWidth() gt 0 && item.getEditorParam('width','') != 'auto'> width="${item.getEditorWidth()?c}"</#if> (onFormItemValueChange)="onFormDataChange('${item.name}', $event)"></app-radio>
\ No newline at end of file \ No newline at end of file
<div style="${item.getEditorCssStyle()}"><checkbox value={ !this.data.${item.name} ? false : true} on-on-change={($event: any) => $event ? this.data.${item.name} = 1 : this.data.${item.name} = 0} disabled={this.detailsModel.${item.name}.disabled}></checkbox></div> <app-checkbox name="${item.name}" [value]="data.${item.name}" [disabled]="detailsModel.${item.name}.disabled" (onFormItemValueChange)="onFormDataChange('${item.name}', $event)"></app-checkbox>
\ No newline at end of file \ No newline at end of file
<app-checkbox-list [value]="data.${item.name}"<#if item.getPSCodeList()??><#assign codelist=item.getPSCodeList()> codeListId="${codelist.codeName}" mode="${codelist.getOrMode()?lower_case}" separator="${codelist.getValueSeparator()}"</#if><#if item.getPlaceHolder()??> placeholder="${item.getPlaceHolder()}"</#if> [disabled]="detailsModel.${item.name}.disabled"<#if item.getEditorWidth() gt 0 && item.getEditorParam('width','') != 'auto'> width="${item.getEditorWidth()?c}"</#if> (onFormItemValueChange)="onFormItemValueChange({name: '${item.name}', value: $event})"></app-checkbox-list> <app-checkbox-list [value]="data.${item.name}"<#if item.getPSCodeList()??><#assign codelist=item.getPSCodeList()> codeListId="${codelist.codeName}" mode="${codelist.getOrMode()?lower_case}" separator="${codelist.getValueSeparator()}"</#if><#if item.getPlaceHolder()??> placeholder="${item.getPlaceHolder()}"</#if> [disabled]="detailsModel.${item.name}.disabled"<#if item.getEditorWidth() gt 0 && item.getEditorParam('width','') != 'auto'> width="${item.getEditorWidth()?c}"</#if> (onFormItemValueChange)="onFormDataChange('${item.name}', $event)"></app-checkbox-list>
\ No newline at end of file \ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册