docs_vue2/one/docs/demo/button/loading.vue

99 lines
1.6 KiB
Vue
Raw Normal View History

2020-08-13 11:47:56 +08:00
<template>
<article>
<section>
<veui-checkbox v-model="loading">
Loading
</veui-checkbox>
</section>
<section>
<veui-button
ui="primary"
2020-09-02 12:34:30 +08:00
:loading="loading"
2020-08-13 11:47:56 +08:00
>
Primary
</veui-button>
<veui-button :loading="loading">
Normal
</veui-button>
<veui-button
2020-09-02 12:34:30 +08:00
ui="basic"
2020-08-13 11:47:56 +08:00
:loading="loading"
2020-09-02 12:34:30 +08:00
>
Basic
</veui-button>
<veui-button
2020-08-13 11:47:56 +08:00
ui="strong"
2020-09-02 12:34:30 +08:00
:loading="loading"
2020-08-13 11:47:56 +08:00
>
Strong
</veui-button>
<veui-button
2020-09-02 12:34:30 +08:00
ui="translucent"
2020-08-13 11:47:56 +08:00
:loading="loading"
2020-09-02 12:34:30 +08:00
>
Translucent
</veui-button>
</section>
<section>
<veui-button
2020-08-13 11:47:56 +08:00
ui="text"
2020-09-02 12:34:30 +08:00
:loading="loading"
2020-08-13 11:47:56 +08:00
>
Text
</veui-button>
<veui-button
ui="icon"
2020-09-02 12:34:30 +08:00
:loading="loading"
>
<veui-icon name="home"/>
</veui-button>
<veui-button
ui="icon strong"
:loading="loading"
>
<veui-icon name="home"/>
</veui-button>
<veui-button
ui="icon aux"
:loading="loading"
>
<veui-icon name="home"/>
</veui-button>
<veui-button
ui="primary square"
:loading="loading"
2020-08-13 11:47:56 +08:00
>
<veui-icon name="home"/>
</veui-button>
</section>
</article>
</template>
<script>
import { Button, Checkbox, Icon } from 'veui'
import 'veui-theme-dls-icons/home'
export default {
components: {
'veui-button': Button,
'veui-checkbox': Checkbox,
'veui-icon': Icon
},
data () {
return {
loading: true
}
}
}
</script>
2021-09-15 20:03:51 +08:00
<style lang="less" scoped>
2020-08-13 11:47:56 +08:00
section {
margin-bottom: 1em;
}
.veui-button {
margin-right: 1em;
}
</style>