Dot 点
基础用法
查看代码
vue
<template>
<div>
<el-space size="large" style="width: 100%;">
<gi-dot color="primary" />
<gi-dot color="success" />
<gi-dot color="danger" />
<gi-dot color="warning" />
<gi-dot color="info" />
</el-space>
<el-space size="large" style="width: 100%;">
<gi-dot type="square" color="primary" />
<gi-dot type="square" color="success" />
<gi-dot type="square" color="danger" />
<gi-dot type="square" color="warning" />
<gi-dot type="square" color="info" />
</el-space>
</div>
</template>动画
查看代码
vue
<template>
<div>
<el-space size="large" style="width: 100%;">
<gi-dot color="primary" animation />
<gi-dot color="success" animation />
<gi-dot color="danger" animation />
<gi-dot color="warning" animation />
<gi-dot color="info" animation />
</el-space>
<el-space size="large" style="width: 100%;">
<gi-dot type="square" color="primary" animation />
<gi-dot type="square" color="success" animation />
<gi-dot type="square" color="danger" animation />
<gi-dot type="square" color="warning" animation />
<gi-dot type="square" color="info" animation />
</el-space>
</div>
</template>自定义颜色
查看代码
vue
<template>
<div>
<el-space size="large" style="width: 100%;">
<gi-dot color="#7816ff" animation />
<gi-dot color="#eb0aa4" animation />
<gi-dot color="#00b42a" animation />
<gi-dot color="#ff5722" animation />
<gi-dot color="#eb0aa4" animation />
</el-space>
<el-space size="large" style="width: 100%;">
<gi-dot type="square" color="#7816ff" animation />
<gi-dot type="square" color="#eb0aa4" animation />
<gi-dot type="square" color="#00b42a" animation />
<gi-dot type="square" color="#ff5722" animation />
<gi-dot type="square" color="#eb0aa4" animation />
</el-space>
</div>
</template>API
| 属性 | 说明 | 类型 | 默认值 |
|---|---|---|---|
| type | 点的类型 | circle|square | circle |
| size | 尺寸 | number | 6 |
| color | 点的颜色 | string|primary|success|warning|error|info | -- |
| animation | 是否添加动画 | boolean | false |
