Socket
Book a DemoInstallSign in
Socket

greatjoy-hooks

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

greatjoy-hooks

A React input component based on antd-mobile with enhanced features

latest
npmnpm
Version
1.0.1
Version published
Weekly downloads
28
-81.08%
Maintainers
1
Weekly downloads
 
Created
Source

GreatJoy Modal

一个基于 antd-mobile 的增强型 React 模态框组件,支持组件式和指令式两种使用方式。

安装

npm install greatjoy-modal antd-mobile

引入样式

重要:必须引入样式文件才能正常显示!

// 在你的应用入口文件中引入样式
import "greatjoy-modal/dist/index.css";

使用方法

import GreatJoyModal from "greatjoy-modal";

API

  • 组件式调用

    key是否必填类型描述
    contentstring | React.ReactNode模态框内容
    confirmTextstring确认按钮文本,默认为"确认",非 true 时不展示确认按钮
    cancelTextstring取消按钮文本,默认为"取消",非 true 时不展示取消按钮
    onConfirm() => void确认按钮点击回调函数
    onCancel() => void取消按钮点击回调函数
    otherProps--其他传递给Modal组件的属性

    其他参数详见 https://ant-design-mobile.antgroup.com/zh/components/modal#modal

Keywords

react

FAQs

Package last updated on 19 Sep 2025

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