chore: remove unused deps, fix loading doc

This commit is contained in:
Justineo
2020-09-02 13:33:28 +08:00
parent 5fa16efe79
commit d64014f3b4
5 changed files with 152 additions and 1420 deletions

View File

@@ -30,7 +30,7 @@
| 名称 | 类型 | 默认值 | 描述 |
| -- | -- | -- | -- |
| `ui` | `string=` | `normal` `m` | [^ui] |
| `ui` | `string=` | - | [^ui] |
| `loading` | `boolean` | `false` | 是否处于加载状态。 |
^^^ui

View File

@@ -1,6 +1,6 @@
<template>
<article>
<div>
<section>
Custom icon-star:
<veui-loading
loading
@@ -14,21 +14,21 @@
</template>
loading...
</veui-loading>
</div>
<div>
Custom icon-sun:
</section>
<section>
Custom icon-sync:
<veui-loading loading>
<template #spinner>
<veui-icon
spin
name="sun"
name="sync"
/>
</template>
loading...
</veui-loading>
</div>
<div>
Custom icon-umbrella:
</section>
<section>
Custom icon-clockwise:
<veui-loading
loading
ui="reverse"
@@ -37,20 +37,20 @@
<template #spinner>
<veui-icon
spin
name="umbrella"
name="clockwise"
/>
</template>
loading...
</veui-loading>
</div>
</section>
</article>
</template>
<script>
import { Icon, Loading } from 'veui'
import 'vue-awesome/icons/sun'
import 'vue-awesome/icons/star'
import 'vue-awesome/icons/umbrella'
import 'veui-theme-dls-icons/sync'
import 'veui-theme-dls-icons/star'
import 'veui-theme-dls-icons/clockwise'
export default {
components: {
@@ -65,4 +65,8 @@ export default {
background: #ccc;
padding: 8px;
}
.section {
margin-bottom: 20px;
}
</style>

View File

@@ -30,7 +30,7 @@ Using `spinner` slot to replace default loading icon.
| Name | Type | Default | Description |
| -- | -- | -- | -- |
| `ui` | `string=` | `normal` `m` | [^ui] |
| `ui` | `string=` | - | [^ui] |
| `loading` | `boolean` | `false` | Whether the component is in loading state. |
^^^ui