| | |
| | | } |
| | | } |
| | | |
| | | if (_card.wrap.position === 'fixed') { |
| | | if (_card.wrap.top && _card.wrap.bottom && _card.wrap.top.indexOf('vh') > -1 && _card.wrap.bottom.indexOf('vh') > -1) { |
| | | if (parseFloat(_card.wrap.top) + parseFloat(_card.wrap.bottom) >= 100) { |
| | | message.warning('元素距上距下之和超出100%,可能导致元素无法显示。') |
| | | } |
| | | } |
| | | if (_card.wrap.left && _card.wrap.right && _card.wrap.left.indexOf('vw') > -1 && _card.wrap.right.indexOf('vw') > -1) { |
| | | if (parseFloat(_card.wrap.left) + parseFloat(_card.wrap.right) >= 100) { |
| | | message.warning('元素距左距右之和超出100%,可能导致元素无法显示。') |
| | | } |
| | | } |
| | | } |
| | | |
| | | this.updateComponent(_card) |
| | | } |
| | | |