added scrolling property to toggle CSS for creating or hiding scrollbars
This commit is contained in:
parent
ff16f09614
commit
f9a2e6114d
2 changed files with 20 additions and 2 deletions
|
@ -5,21 +5,26 @@
|
|||
</style>
|
||||
<template>
|
||||
<i-button type="primary" @click="modal1 = true">显示对话框</i-button>
|
||||
<i-button @click="scrolling = !scrolling">Toggle Scrolling</i-button>
|
||||
Scrolling:{{scrolling}}
|
||||
<Modal
|
||||
:visible.sync="modal1"
|
||||
title="普通的Modal对话框标题"
|
||||
:scrolling="scrolling"
|
||||
@on-ok="ok"
|
||||
@on-cancel="cancel">
|
||||
<p>对话框内容</p>
|
||||
<p>对话框内容</p>
|
||||
<p>对话框内容</p>
|
||||
<i-button @click="scrolling = !scrolling">Toggle Scrolling</i-button>
|
||||
</Modal>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
data () {
|
||||
return {
|
||||
modal1: false
|
||||
modal1: false,
|
||||
scrolling: false
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue