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/react

v1.1.20

Published

## 简介

Readme

@gm-mobile/react

简介

@gm-mobile/react 是一套完整的移动端 React 组件库,提供了 50+ 个高质量组件,涵盖表单、布局、浮层、基础组件和数据展示等多个分类。

安装

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

包含的组件

表单组件(12个)

Button & ButtonTime

按钮组件,支持多种样式和自动 loading 处理。

Input, InputPassword & BorderInput

输入框组件系列,支持普通输入、密码输入和带字符计数的输入框。

Checkbox

复选框组件,支持多选。

Radio

单选框组件。

Textarea

多行文本输入组件。

Switch

开关组件。

Picker (6个变体)

选择器组件系列,支持多种选择场景。

Calendar (3个变体)

日历组件系列,支持单选、多选和范围选择。

Keyboard (3个变体)

数字键盘组件系列。

Counter

计数器组件。

Uploader

文件上传组件。

Cell (4个变体)

单元格组件系列。

布局组件(8个)

Flex

弹性布局容器。

Divider

分割线组件。

List

列表组件。

Page

页面容器组件。

Header

页面头部组件。

Panel

面板容器组件。

Square

正方形容器组件。

LayoutRoot

布局根容器,管理所有浮层组件。

浮层组件(8个)

Dialog (4个静态方法)

对话框组件,支持 Alert、Confirm、Prompt、Delete。

Popup

弹出层组件。

ActionSheet

动作面板组件。

Toast (7个静态方法)

提示组件,支持多种提示类型。

Mask

遮罩层组件。

InnerLayer

内页容器组件。

Tooltip

提示框组件。

基础组件(7个)

Loading

加载组件。

Image

图片组件,支持自动重试。

Badge

徽章组件。

Label

标签组件。

Tag

标签包裹器组件。

ProgressBar

进度条组件。

Price

价格显示组件。

数据展示组件(10个)

Tabs

标签页组件。

Tabbar (2个变体)

底部导航组件。

Nav

导航组件。

Lazy (2个变体)

懒加载组件。

Scroll

滚动列表组件。

PullUpDown

下拉刷新上拉加载组件。

LetterIndex (2个变体)

字母索引组件。

FlipNumber

翻牌数字组件。

NProgress

进度条组件。

Slider (3个变体)

轮播组件系列。

其他组件(5个)

Search (3个变体)

搜索组件系列。

ScrollIntoView

滚动到可视区域组件。

RepeatTimes

连续点击触发器。

Canvas

画布组件。

Storage (2个变体)

本地存储组件。

快速开始

import { Button, Input, Dialog } from '@gm-mobile/react'

// 使用按钮
<Button type="primary" onClick={() => console.log('点击')}>
  点击我
</Button>

// 使用输入框
<Input
  value={value}
  onChange={(e) => setValue(e.target.value)}
  placeholder="请输入内容"
/>

// 使用对话框
Dialog.alert({
  title: '提示',
  content: '操作成功',
})

开发依赖

  • React: ^16.13.1
  • React-DOM: ^16.13.1
  • @gm-common/number: ^2.2.9
  • @gm-common/tool: ^2.2.9
  • @gm-mobile/locales: ^1.1.11
  • classnames: ^2.2.6

相关包

文档导航

许可证

ISC


版本: v1.1.12 组件数量: 50+ 最后更新: 2026-03-27