- WingBlank两翼留白
- 代码演示
- API
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 |