| | |
| | | <!-- |
| | | * @Date: 2024-01-13 20:46:33 |
| | | * @LastEditors: Sneed |
| | | * @LastEditTime: 2024-03-09 12:47:06 |
| | | * @LastEditTime: 2024-03-09 14:20:34 |
| | | * @FilePath: /belleson-frontend/Users/mache/Documents/demo/mdc/src/container/workshop/device.vue |
| | | --> |
| | | <template> |
| | |
| | | this.concern = !!this.info.concern |
| | | console.log(this.$el.getBoundingClientRect().width,'/////',this.$el.getBoundingClientRect().width / 200) |
| | | this.$nextTick(() => { |
| | | if (this.$el.getBoundingClientRect().width < 400) { |
| | | this.$el.querySelector('.device-item-box').style = `transform:scale(${this.$el.getBoundingClientRect().width / 400})` |
| | | } |
| | | //if (this.$el.getBoundingClientRect().width < 400) { |
| | | this.$el.querySelector('.device-item-box').style = `transform:scale(${this.$el.getBoundingClientRect().width / 360})` |
| | | //} |
| | | }) |
| | | |
| | | |