Skip to content
This repository has been archived by the owner on Oct 10, 2018. It is now read-only.

关于布局的讨论 #1

Open
vellengs opened this issue Jan 26, 2018 · 0 comments
Open

关于布局的讨论 #1

vellengs opened this issue Jan 26, 2018 · 0 comments

Comments

@vellengs
Copy link
Contributor

示例如下:

<div class="widget nz-date" nz-form-control>
    <div nz-row>
        <div nz-form-label nz-col [nzSpan]="7">
            <label [ngClass]="{'ant-form-item-required':required}" [attr.for]="id" class="horizontal control-label">
                {{ schema.title }}
            </label>
            <span *ngIf="schema.description" class="formHelp">{{schema.description}}</span>
        </div>
        <div nz-form-control nz-col [nzSpan]="16">
            <nz-datepicker [nzDisabled]="schema.readOnly" [formControl]="control" [nzPlaceHolder]="'选择日期'"></nz-datepicker>
        </div>
    </div>
</div>

大家看下如何写,这个widget 结构 比较合理

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant