摘要:
input组件中绑定input事件,将input事件和输入的值传给父组件 父组件通过v-model接收 button组件中当点击button后,阻止默认事件,并且发送给父组件点击事件和参数 this.$emit('click', e) e.preventDefault() 主页面中,将input传过 阅读全文
摘要:
展开扩大:平台(通用) .antzone:before { position: absolute; content: ''; width: 10px; height: 5px; top: 5px; left: 50%; background-color: #f00; transition: all 阅读全文
摘要:
由于通过zoom控制局限性太大,所以改用监听缩放比例的方案,配合rem技术,也可以实现对浏览器缩放的控制 关键代码 @media all and (-webkit-min-device-pixel-ratio: 1) { html { font-size: 14px !important; } } 阅读全文
摘要:
/** * @author trsoliu * @date 2019-12-05 * @description 校正windows页面在系统进行缩放后导致页面被放大的问题,通常放大比例是125%、150% * **/ class DevicePixelRatio { constructor() { 阅读全文