2022年2月28日

uniapp:uni-table设置选中样式、uni-td设置字体颜色样式在真机上无效

摘要: 需求 一个表格,点击表格,某行字体颜色改变; 解决方案 表格行的点击事件是直接在原生组件里面加的,具体方法参考此处 2.来看下页面结构。 <uni-table> <uni-tr> <uni-td> <view></view> </uni-td> <uni-td> <view></view> </un 阅读全文

posted @ 2022-02-28 18:22 northwest 阅读(5198) 评论(0) 推荐(0) 编辑

uniapp: 动态绑定/加载/切换元素class的一种有效姿势

摘要: 试过两个办法。 第一种: <view :class="(a>b)?classa:classb"></view> 但是这种方法报错了。 报错信息: Property or method "xxx" is not defined on the instance but referenced during 阅读全文

posted @ 2022-02-28 17:05 northwest 阅读(1412) 评论(0) 推荐(0) 编辑

导航