| | |
| | | <template> |
| | | <div ref="publicBox"> |
| | | <div class="header"> |
| | | <slot name="public-box-header"></slot> |
| | | </div> |
| | | <div class="content"> |
| | | <slot name="public-box-content"></slot> |
| | | <div class="current-wrapper" @click="close"> |
| | | <div ref="publicBox" :class="className"> |
| | | <div class="header"> |
| | | <slot name="public-box-header"></slot> |
| | | </div> |
| | | <div class="content"> |
| | | <slot name="public-box-content"></slot> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </template> |
| | |
| | | |
| | | export default { |
| | | name: 'PublicBox', |
| | | props: ['className'], |
| | | data () { |
| | | return { |
| | | } |
| | |
| | | created () { |
| | | }, |
| | | methods: { |
| | | |
| | | close () { |
| | | this.$parent.closeCurrentPopup() |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style scoped lang='scss'> |
| | | .current-wrapper { |
| | | position: fixed; |
| | | top: 0; |
| | | left: 0; |
| | | width: 100%; |
| | | height: 100%; |
| | | z-index: 99; |
| | | background: rgba(0, 0, 0, 0.5); |
| | | } |
| | | </style> |