docs_vue2/one/docs/demo/dialog/status.vue
xiaodemen c738f7e8ca docs: update disabled prop/demo for dialog
Change-Id: I7eaa2da3d5f1d62b874c6a6282d4cd38229bdeda
2021-05-25 16:56:11 +08:00

51 lines
890 B
Vue

<template>
<article>
<div class="op-wrap">
<veui-button @click="aOpen = true">
Open Dialog
</veui-button>
<veui-checkbox v-model="loading">Loading</veui-checkbox>
<veui-checkbox class="ml-3p" v-model="disabled">Disabled</veui-checkbox>
</div>
<veui-dialog
:open.sync="aOpen"
title="Dialog A"
:loading="loading"
:disabled="disabled"
>
The content of Dialog A.
</veui-dialog>
</article>
</template>
<script>
import { Dialog, Button, Checkbox } from 'veui'
export default {
components: {
'veui-dialog': Dialog,
'veui-button': Button,
'veui-checkbox': Checkbox
},
data () {
return {
aOpen: false,
disabled: false,
loading: false
}
}
}
</script>
<style lang="less" scoped docs>
.veui-button {
margin-right: 20px;
}
.op-wrap {
display: flex;
}
.ml-3p {
margin-left: 12px;
}
</style>