|
2 | 2 | <div class="pb-8">
|
3 | 3 | <v-modal
|
4 | 4 | v-model="showModal"
|
5 |
| - v-bind="props" |
| 5 | + :ssr="ssr" |
| 6 | + :lockScroll="lockScroll" |
| 7 | + :hideOverlay="hideOverlay" |
| 8 | + :clickToClose="clickToClose" |
| 9 | + :escToClose="escToClose" |
| 10 | + :preventClick="preventClick" |
| 11 | + :transition="transition ? 'vfm' : ''" |
| 12 | + :overlay-transition="overlayTransition ? 'vfm' : ''" |
| 13 | + :z-index-auto="zIndexAuto" |
| 14 | + :z-index-base="zIndexBase" |
| 15 | + :z-index="allowZIndex ? zIndexBase : false" |
| 16 | + :attach="attach ? '#attach' : false" |
| 17 | + :focus-retain="focusRetain" |
| 18 | + :focus-trap="focusTrap" |
6 | 19 | @confirm="showModal = false"
|
7 | 20 | @cancel="showModal = false"
|
8 | 21 | >
|
@@ -136,26 +149,6 @@ const initData = () => ({
|
136 | 149 |
|
137 | 150 | export default {
|
138 | 151 | data: initData,
|
139 |
| - computed: { |
140 |
| - props() { |
141 |
| - return { |
142 |
| - ssr: this.ssr, |
143 |
| - lockScroll: this.lockScroll, |
144 |
| - hideOverlay: this.hideOverlay, |
145 |
| - clickToClose: this.clickToClose, |
146 |
| - escToClose: this.escToClose, |
147 |
| - preventClick: this.preventClick, |
148 |
| - transition: this.transition ? 'vfm' : '', |
149 |
| - overlayTransition: this.overlayTransition ? 'vfm' : '', |
150 |
| - zIndexAuto: this.zIndexAuto, |
151 |
| - zIndexBase: this.zIndexBase, |
152 |
| - ...(this.allowZIndex && { zIndex: this.zIndex }), |
153 |
| - attach: this.attach ? '#attach' : false, |
154 |
| - focusRetain: this.focusRetain, |
155 |
| - focusTrap: this.focusTrap |
156 |
| - } |
157 |
| - } |
158 |
| - }, |
159 | 152 | methods: {
|
160 | 153 | openAttach() {
|
161 | 154 | this.attach = '#attach'
|
|
0 commit comments