vue :style 使用calc() |
您所在的位置:网站首页 › 华为电脑怎么快捷锁屏幕显示桌面上 › vue :style 使用calc() |
:style 使用写在计算属性 computed 里面的函数并传递参数
南庐: [code=html] .text-overfollow-2(v-else :aria-label="itemData[item.prop]" :style="ElementsStyle(i)") {{itemData[item.prop] || itemData[item.prop] === 0 ? itemData[item.prop] : "--"}} [/code] [code=javascript] ElementsStyle(index) { // return index => { const str = "activeListH" + index; const Elements = this.$refs[str]; console.log(str, index, this.$refs[str], Elements); return { height: Elements ? Elements.offsetHeight + "px" : 141 + "px", display: "flex", "align-items": "center", "justify-content": "center" }; // }; } [/code] 不需要返回函数,但是页面会提示没有使用new的构造函数,返回函数反而没效果 echarts x轴 只显示最小和最大两个值weixin_44781403: 给interval设置了很大的值,但是没有生效,会是什么原因呢 微信小程序 单个页面横屏 & 整个小程序设置横屏清蒸鱼跃龙门: wx.setPageOrientation 这个接口文档里都搜不到啊 |
今日新闻 |
点击排行 |
|
推荐新闻 |
图片新闻 |
|
专题文章 |
CopyRight 2018-2019 实验室设备网 版权所有 win10的实时保护怎么永久关闭 |