Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
@smt-ui/feed-item
Advanced tools
feed-item
信息流子项
属性名 | 类型 | 必填 | 默认值 | 说明 |
---|---|---|---|---|
theme | string | true | default | 信息流子项的主题 |
content | Object | true | {title: '标题',infoSource: '网易新闻',commentsNum: 2,images: []} | 信息流子项目的内容 |
video | Object | false | {isVideo: true, time: '05:00'} | 是否为视频和视频信息 |
status | String | false | 0 | 阅读状态:0未读,1已读 |
swan:
<view>
<s-feed-item theme='large-image' content='{{feedItem}}' video='{{video}}' status='0' class-name='custom-feed-item' bindfeedItemTap='handleTap'></s-feed-item>
</view>
js:
Page({
data: {
feedItem: {
title: '欧洲各地被遗忘的地ssss我猜你是不知道的哦呵呵呵么么哒呵呵呵',
infoSource: '网易新闻',
commentsNum: 11,i
mages: [`https://hiphotos.baidu.com/fex/%70%69%63/item/e4dde71190ef76c6952c82ce9016fdfaae51675c.jpg`, `https://hiphotos.baidu.com/fex/%70%69%63/item/e4dde71190ef76c6952c82ce9016fdfaae51675c.jpg`, `https://hiphotos.baidu.com/fex/%70%69%63/item/e4dde71190ef76c6952c82ce9016fdfaae51675c.jpg`]},
video: {
isVideo: true,
time: '05:00'}}
})
css:
.custom-feed-item {color: #f00}
FAQs
The npm package @smt-ui/feed-item receives a total of 3 weekly downloads. As such, @smt-ui/feed-item popularity was classified as not popular.
We found that @smt-ui/feed-item demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.