ifanrx / brick-layout Goto Github PK
View Code? Open in Web Editor NEWA brick layout solution for miniprograms. 瀑布流解决方案小程序特供版。
License: Apache License 2.0
A brick layout solution for miniprograms. 瀑布流解决方案小程序特供版。
License: Apache License 2.0
在options中加了自定义icon不好使呢
option: {
defaultExpandStatus: true,
imageFillMode: 'widthFix',
forceRepaint: false,
liked:false,
icon: {
fill: 'http://www.hihill.cn/like.svg'
}
}
dataSet: [{
id: '1',
content: 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. ',
backgroundColor: '#6a8',
fontColor: '#6a8',
time: 1533106010,
likedCount: 0,
liked: false,
user: {
avatar: 'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1536490263336&di=e3171a8c5aff5a6044488a45c574f8f3&imgtype=0&src=http%3A%2F%2Fimg3.duitang.com%2Fuploads%2Fitem%2F201409%2F10%2F20140910202407_vZFfJ.jpeg',
username: 'MS Car',
userId: '1'
}
}
]
fontColor: '#6a8' 无效,是使用方法不对还是有bug?
不想要点击图片大图预览,希望楼主早日回复
多见于点击跳转一页后返回,比较随机,有一定概率但不高,不知道出现的原因。
插件很牛X,希望增加一个自定义图标的接口,意思是在点赞图标后面还能再放一个回复的图标就更完美了,期待改进。
this.setData({ renderList }, () => {
setTimeout(() => {
that._computeCardHeight()
}, 0)
})
setTimeOut 时长设置500为基本正常
计算出来的高度 都会固定值302
希望能有图片为背景图的样式
liked填写但是没有大拇指的标志。
动态的更新页面,我往dataSet里面加数据后瀑布流变空了
VM2056:1 thirdScriptError
Cannot read property 'backgroundColor' of null; [Component] Property Observer Error @ plugin-private://wx3c042630f3cdc175/components/brickLayout/brickLayout#observer
TypeError: Cannot read property 'backgroundColor' of null
at c.observer (http://127.0.0.1:19206/appservice/__onlineplugin__/wx3c042630f3cdc175/0.1.1/appservice.js:1275:451)
at Function.o.safeCallback (http://127.0.0.1:19206/appservice/__dev__/WAService.js:15:2311)
at i. (http://127.0.0.1:19206/appservice/__dev__/WAService.js:16:2495)
at d (http://127.0.0.1:19206/appservice/__dev__/WAService.js:15:11899)
at a.doUpdates (http://127.0.0.1:19206/appservice/__dev__/WAService.js:15:13111)
at r.applyProperties (http://127.0.0.1:19206/appservice/__dev__/WAService.js:18:1425)
at e.value (http://127.0.0.1:19206/appservice/__dev__/WAService.js:17:26120)
at http://127.0.0.1:19206/appservice/__dev__/WAService.js:17:26192
at Array.forEach ()
at e.value (http://127.0.0.1:19206/appservice/__dev__/WAService.js:17:26164)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.