| | |
| | | // console.log("hhhh", el); |
| | | let { x, y, width, height, left, right, top, bottom } = |
| | | el.getBoundingClientRect(); |
| | | console.log(x, "pos"); |
| | | // console.log(x, "pos"); |
| | | this.popPosition.left = right + "px"; |
| | | this.popPosition.top = bottom + "px"; |
| | | this.getSwitchInfo(name); |
| | |
| | | <div class="svg-contain"> |
| | | <div class="pos-full"> |
| | | <svg width="100%" height="100%" viewBox="0 0 500 340"> |
| | | <text-box :offset="[220, 10]"></text-box> |
| | | <text-box :offset="[220, 10]" @click="(el) => showState(el, 'JK11')"></text-box> |
| | | <protector-box |
| | | @click="(el) => showState(el, 'JK12')" |
| | | :offset="[36, 10]" |
| | |
| | | <div class="svg-contain"> |
| | | <div class="pos-full"> |
| | | <svg width="100%" height="100%" viewBox="0 0 500 340"> |
| | | <text-box :offset="[220, 10]"></text-box> |
| | | <text-box :offset="[220, 10]" @click="(el) => showState(el, 'JK21')"></text-box> |
| | | <protector-box |
| | | @click="(el) => showState(el, 'JK22')" |
| | | :offset="[390, 10]" |