ohayolibs
Version:
Ohayo is a set of essential modules for ohayojp.
32 lines (22 loc) • 785 B
Markdown
type: Layout
title: full-content
subtitle: 全屏工作区
cols: 1
module: import { FullContentModule } from '@ohayo/components/full-content';
全屏工作区,常用于带有滚动条表格,一个在线[示例](https://ohayojp.surge.sh/#/ohayo/simple-table)。
## API
### full-content
| 参数 | 说明 | 类型 | 默认值 |
|----|----|----|-----|
| `[(fullscreen)]` | 是否完整全屏(不包括顶部、侧边栏等) | `boolean` | - |
| `[hideTitle]` | 完整全屏时是否隐藏标题 | `boolean` | `true` |
| `[padding]` | 工作区内边距 | `number` | `24` |
### [full-toggle]
切换是否全屏。
## 全屏控制
包含三种方式:
- 使用 `fullscreen` 双向绑定
- 使用 `[full-toggle]` 指令
- 使用 `FullContentService.toggle()` 服务