WingBlank两翼留白
布局控件
代码演示
<WingBlank size='md'>…</WingBlank>
import { Component } from '@angular/core';
@Component({
selector: 'demo-wing-blank-basic',
template: `
<div style="padding: 15px 0">
<WingBlank>
<ng-template [ngTemplateOutlet]="placeHolder"></ng-template>
</WingBlank>
<WhiteSpace [size]="'lg'"></WhiteSpace>
<WingBlank [size]="'md'">
<ng-template [ngTemplateOutlet]="placeHolder"></ng-template>
</WingBlank>
<WhiteSpace [size]="'lg'"></WhiteSpace>
<WingBlank [size]="'sm'">
<ng-template [ngTemplateOutlet]="placeHolder"></ng-template>
</WingBlank>
<ng-template #placeHolder>
<div class="placeholder" >Block</div>
</ng-template>
</div>
`,
styles: [
`
.placeholder {
background-color: #ebebef;
color: #bbb;
text-align: center;
height: 30px;
line-height: 30px;
width: 100%;
}
`
]
})
export class DemoWingBlankBasicComponent {}
API
属性 | 说明 | 类型 | 默认值 |
---|---|---|---|
size | 两翼留白的间距,可选sm ,md ,lg | string | lg |
当前内容版权归 ant.design 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 ant.design .