| | |
| | | |
| | | <script> |
| | | import helper from './helper/helper.js' |
| | | import '../../../utils/dragBoxes' |
| | | |
| | | export default { |
| | | data () { |
| | |
| | | }, |
| | | computed: {}, |
| | | mounted () { |
| | | let left = this.left |
| | | let top = this.top |
| | | if (left > 0) { |
| | | left = left + 'px' |
| | | } |
| | | if (top > 0) { |
| | | top = top + 'px' |
| | | } |
| | | this.style = { |
| | | left: left || '25%', |
| | | top: top || '35%' |
| | | } |
| | | }, |
| | | methods: { |
| | | close () { |
| | |
| | | }, |
| | | init () { |
| | | const propsData = helper.deepClone(this.content.data) || {} |
| | | propsData.layerid = this.id |
| | | propsData.lydata = this.content.data |
| | | propsData.lyoption = this.options |
| | | const instance = new this.content.content({ |
| | | console.log(propsData) |
| | | const instance = new this.content.comp({ |
| | | // parent: this.content.parent, |
| | | propsData: propsData |
| | | }) |
| | |
| | | .public-bounced { |
| | | z-index: 2000; |
| | | position: absolute; |
| | | top: 35%; |
| | | left: 20%; |
| | | |
| | | .public-bounced-title { |
| | | cursor: move; |