北风蛙,索多玛120天迅雷下载,技能鉴定全国统考人员网上报名系统
版本:v1.5.4
自定义了一个icon的组件,部分代码如下
<template> <text :class="[name, icon]" :style="{'color': color, 'font-size': fontsize}"> </text> </template> <script> export default { props: { name: { type: string, default: 'iconfont' }, icon: { type: string }, color: { type: string, default: '#666666' }, size: { type: [number, string], default: 30 } }, computed: { cls(){ return `${this.name} ${this.icon}` }, fontsize(){ return this.size + 'upx' } } } </script>
使用
<lb-icon icon="icon-message"></lb-icon>
h5
端显示正常无异常,模拟器模拟显示class
之间多了逗号,如图所示
解决方法
利用
computed
进行class拼接
<text :class="cls" :style="{'color': color, 'font-size': fontsize}"> </text> computed: { cls(){ return `${this.name} ${this.icon}` } }
版本:v1.5.4
正常使用mapgetters的时候,h5端无异常,非h5端会报错
typeerror: cannot read property 'getters' of undefined
解决方法
main.js
中增加vue.prototype.$store = store
如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复
Html+Css+Jquery实现左侧滑动拉伸导航菜单栏的示例代码
Html5 Canvas实现图片标记、缩放、移动和保存历史状态功能 (附转换公式)
html5 移动端视频video的android兼容(去除播放控件、全屏)
网友评论