npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@gm-mobile/business

v1.1.13

Published

> TODO: description

Readme

@gm-mobile/business

简介

@gm-mobile/business 是业务组件包,提供了常见的业务场景组件,包括优惠券、商品选择、日期选择和电子签名等功能。

安装

npm install @gm-mobile/business
# 或
yarn add @gm-mobile/business

包含的组件

1. Coupon & ReceivedCoupon

优惠券组件,支持多种状态的优惠券展示。

  • Coupon: 可领取/可使用的优惠券组件
  • ReceivedCoupon: 已领取优惠券组件
  • 适用场景:营销活动、优惠券管理、订单结算
  • 详细文档Coupon README

2. ProductSelection

商品选择组件,支持字母索引和商品搜索。

  • 适用场景:商品选择、规格选择、商品列表
  • 主要功能
    • 字母索引导航
    • 商品搜索
    • 多选/单选
    • 自定义渲染
  • 详细文档ProductSelection README

3. TabDateSelect

标签日期选择器,支持日期范围选择和服务时间配置。

  • 适用场景:配送日期选择、预约时间选择
  • 主要功能
    • 日期标签切换
    • 时间段选择
    • 服务时间配置
    • 弹窗展示
  • 详细文档TabDateSelect README

4. Signature

电子签名组件,支持手写签名和签名查看。

  • 适用场景:电子合同、签收确认、授权签名
  • 主要功能
    • 手写签名画布
    • 签名查看模式
    • Base64/Blob 导出
    • 禁用编辑
  • 详细文档Signature README

使用示例

import {
  Coupon,
  ReceivedCoupon,
  ProductSelection,
  TabDateSelect,
  Signature
} from '@gm-mobile/business'

// 优惠券组件
<Coupon
  title="新人专享券"
  subTitle="满100减10"
  status="available"
  onChange={(checked) => console.log(checked)}
/>

// 商品选择组件
<ProductSelection
  data={productList}
  selected={selectedProducts}
  onSelect={handleSelect}
/>

// 日期选择器
<TabDateSelect.render({
  tabs: ['今天', '明天'],
  begin: '2026-03-27',
  end: '2026-03-28',
  onSelect: handleSelect,
})

// 电子签名
<Signature
  onSave={(base64) => console.log('签名保存:', base64)}
  disabledEdit={false}
/>

开发依赖

  • React: ^16.13.1
  • @gm-mobile/react: 依赖基础组件库

相关包

快速链接

许可证

ISC


版本: v1.1.12 最后更新: 2026-03-27