Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ubrorg/card

Package Overview
Dependencies
Maintainers
11
Versions
198
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ubrorg/card

card

  • 2.3.6
  • latest
  • npm
  • Socket score

Version published
Maintainers
11
Created
Source

在页面的 page.json 中配置:

{
  "usingComponents": {
    "card": "@ubrorg/card/lib/index"
  }
}

在页面的 page.axml 中使用:

<view class="card-wrapper" a:for="{{items}}">
    <card
      title="abc"
      index="{{index}}"
      onLikeTap="handleLikeTap"
      dataItem="{{item}}"
    >
    </card>
  </view>

option参数

可直接传dataItem="{{item}}" 也可使用具体属性去覆盖data里的属性值

属性类型默认值解释
typestringlarge卡片类型
backgroupImgUrlstringnull头图
projectNamestring''卡片名称
descriptionstring''描述
extrastring''附加描述
projectTagstring''图标
favoriteStatusbooleanfalse是否喜欢
showLikebooleantrue是否展示喜欢图标
indexstringnull列表索引
cardTagNamestringnull标签
projectTypeNamestring''分类类型
hotSortbooleanfalse是否显示热搜排序角标
  • type 可选值

    • large 大卡
    • small 小片
    • scenic 景区卡片
    • goods 1:1卡片
    • search 搜索卡片
    • special 一排一卡片
    • live 直播卡片
    • landreserve 景区预约卡片
  • icontagType 可选值

    • activity
    • quick
    • hot
    • hotel

开发

  1. yarn 安装依赖
  2. 小程序 IDE 打开组件(下载地址

更多命令

  • miapp newbranch: 新建分支
  • miapp push: 提交代码
  • miapp prepub: 预发(发布 beta 版本)
  • miapp publish: 正式发布

FAQs

Package last updated on 19 Feb 2021

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc