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

@gzmjs/mobile-ui

v1.0.0

Published

GZMJS Mobile UI

Readme

移动端基础 UI 组件

简介

移动端基础 UI 组件,属于 GZMJS 项目的移动端组件。

版本

当前版本:0.1.0

包名

@gzmjs/mobile-ui

功能特性

  • 提供移动端基础 UI 组件相关功能
  • 与 GZMJS 生态系统无缝集成
  • 支持模块化开发

安装

pnpm add @gzmjs/mobile-ui

使用方法

核心导出

本包提供以下模块:

page (ui/page)

portrait (ui/portrait)

dataAnnotation (ui/dataAnnotation)

texts (ui/texts)

tenantPicker (ui/tenantPicker)

appModules (ui/appModules)

使用示例

import { } from '@gzmjs/mobile-ui';

// TODO: 添加使用示例

核心功能模块

1. 页面管理 (ui/page)

提供移动端页面导航功能:

  • PageOptions - 页面选项类型
  • openPage() - 打开页面
  • closePage() - 关闭页面
  • onPageOpen() - 监听页面打开事件
  • offPageOpen() - 移除页面打开事件监听
  • onPageClose() - 监听页面关闭事件
  • offPageClose() - 移除页面关闭事件监听

示例:

import { openPage, onPageClose } from '@gzmjs/mobile-ui';

// 打开页面
openPage({ title: '详情页', url: '/detail' });

// 监听页面关闭
const unsubscribe = onPageClose((page) => {
  console.log('页面关闭:', page);
});

2. 人像样式 (ui/portrait)

  • portraitHostStyleSheet - 人像宿主样式表

3. 数据标注表单 (ui/dataAnnotation)

  • createDataAnnotationForm() - 创建数据标注表单
  • DataAnnotation - 数据标注类型
  • FormListOptions - 表单列表选项类型

4. 租户选择器 (ui/tenantPicker)

  • <GZM-MOBILE-TENANT-PICKER> - 租户选择器组件
  • TenantPickerOptions - 租户选择器选项接口

5. 文本资源 (ui/texts)

  • texts - 移动端 UI 文本资源对象

6. 应用模块视图 (ui/appModules)

  • <GZM-MOBILE-APP-MODULE> - 应用模块视图组件
  • AppModuleViewOptions - 应用模块视图选项接口
  • queries - 预定义查询对象

依赖关系

本包依赖以下模块:

  • @gzmjs/ui-basic (workspace:*)
  • @gzmjs/mvvm (workspace:*)
  • @gzmjs/console-types (workspace:*)
  • @gzmjs/console-remote (workspace:*)
  • @gzmjs/mobile-list (workspace:*)
  • @gzmjs/mobile-form (workspace:*)

构建

pnpm run build

许可证

本项目采用 ISC 许可证。