()
| 62 | } |
| 63 | |
| 64 | afterRender () { |
| 65 | super.afterRender() |
| 66 | if (this.modalWidthPercent) { |
| 67 | this.$el.find('.modal-dialog').css({ width: `${this.modalWidthPercent}%` }) |
| 68 | } |
| 69 | this.$el.on('hide.bs.modal', () => { |
| 70 | if (!this.hidden) { this.onHidden() } |
| 71 | this.hidden = true |
| 72 | }) |
| 73 | if (this.plain) { return this.$el.find('.background-wrapper').addClass('plain') } |
| 74 | } |
| 75 | |
| 76 | afterInsert () { |
| 77 | super.afterInsert() |