@daysnap/horn-ui
Version:
hron ui
83 lines (62 loc) • 1.14 kB
Markdown
# HorView
### 介绍
一个用于新页面或满屏弹框快速布局的组件
## 代码演示
### 基础用法
```html
<hor-view :placeholder="false" title="hor-view">
<hor-cell label="哈哈哈哈"></hor-cell>
</hor-view>
```
## API
### 属性 Props
<table>
<tr>
<td>名称</td>
<td>类型</td>
<td>默认值</td>
</tr>
<tr v-for="(item, key) in horViewProps" :key="key">
<td>{{ key }}</td>
<td>{{ parseType(item.type || item) }}</td>
<td>{{ reserve(item.default, '-') }}</td>
</tr>
</table>
<table>
<tr>
<td>名称</td>
<td>说明</td>
</tr>
<tr>
<td>xx</td>
<td>xxx</td>
</tr>
</table>
### 插槽 Slots
<table>
<tr>
<td>名称</td>
<td>说明</td>
</tr>
<tr>
<td>xx</td>
<td>xxx</td>
</tr>
</table>
### 实例方法
<table>
<tr>
<td>名称</td>
<td>说明</td>
</tr>
<tr>
<td>xx</td>
<td>xxx</td>
</tr>
</table>
<script setup lang="ts">
import { reserve } from '@daysnap/utils'
import { HorCell } from '../hor-cell'
import { HorView, horViewProps } from '.'
import { parseType } from '../utils'
</script>