style:系统弹窗的修改
Showing
3 changed files
with
10 additions
and
6 deletions
| ... | @@ -56,7 +56,9 @@ | ... | @@ -56,7 +56,9 @@ |
| 56 | isShow (newValue) { | 56 | isShow (newValue) { |
| 57 | this.editItem = this.loadViewFn(this.editItem) | 57 | this.editItem = this.loadViewFn(this.editItem) |
| 58 | document.body.appendChild(this.$el); | 58 | document.body.appendChild(this.$el); |
| 59 | this.myShow = newValue | 59 | this.$nextTick(() => { |
| 60 | this.myShow = newValue | ||
| 61 | }) | ||
| 60 | } | 62 | } |
| 61 | }, | 63 | }, |
| 62 | mounted () { | 64 | mounted () { | ... | ... |
| ... | @@ -53,9 +53,11 @@ | ... | @@ -53,9 +53,11 @@ |
| 53 | }, | 53 | }, |
| 54 | watch: { | 54 | watch: { |
| 55 | isShow (newValue) { | 55 | isShow (newValue) { |
| 56 | this.editItem = this.loadViewFn(this.editItem) | ||
| 57 | document.body.appendChild(this.$el); | ||
| 56 | this.$nextTick(() => { | 58 | this.$nextTick(() => { |
| 57 | this.editItem = this.loadViewFn(this.editItem) | 59 | // this.editItem = this.loadViewFn(this.editItem) |
| 58 | document.body.appendChild(this.$el); | 60 | // document.body.appendChild(this.$el); |
| 59 | this.myShow = newValue | 61 | this.myShow = newValue |
| 60 | }) | 62 | }) |
| 61 | } | 63 | } | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Description: | 2 | * @Description: |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2023-09-21 09:25:47 | 4 | * @LastEditTime: 2023-10-13 11:01:27 |
| 5 | --> | 5 | --> |
| 6 | <template> | 6 | <template> |
| 7 | <transition name="msgbox-fade"> | 7 | <transition name="msgbox-fade"> |
| ... | @@ -53,9 +53,9 @@ | ... | @@ -53,9 +53,9 @@ |
| 53 | }, | 53 | }, |
| 54 | watch: { | 54 | watch: { |
| 55 | isShow (newValue) { | 55 | isShow (newValue) { |
| 56 | this.editItem = this.loadViewFn(this.editItem) | ||
| 57 | document.body.appendChild(this.$el); | ||
| 56 | this.$nextTick(() => { | 58 | this.$nextTick(() => { |
| 57 | this.editItem = this.loadViewFn(this.editItem) | ||
| 58 | document.body.appendChild(this.$el); | ||
| 59 | this.myShow = newValue | 59 | this.myShow = newValue |
| 60 | }) | 60 | }) |
| 61 | } | 61 | } | ... | ... |
-
Please register or sign in to post a comment