Socket
Socket
Sign inDemoInstall

easy-antd-modal

Package Overview
Dependencies
106
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    easy-antd-modal

二次开发, 简化 Ant Design Modal 的使用方式


Version published
Weekly downloads
13
decreased by-43.48%
Maintainers
1
Install size
714 kB
Created
Weekly downloads
 

Changelog

Source

1.6.1 (2024-03-07)

Bug Fixes

  • 改进内部 hook 对外暴露分类 (#20) (3fd6d78)

Features

  • close 支持回调外部 props 方法 (#19) (afec80c)

Readme

Source

easy-antd-modal

NPM version NPM downloads install size

Test CI status Deploy CI Coverage

contributors forks stargazers issues

docs by dumi Build With father

简介

基于 Ant Design 的 Modal 组件的二次封装,简化了 Modal 的使用方式

  • 支持 antd4.x 和 antd5.x, API 保持一致
  • 自动绑定打开事件, 无需维护 open 状态
  • content 增强, 支持内部手动关闭
  • 支持拖拽, 类 window 窗口
  • 可直接对接 antd-mobile 的 Mask, Modal, Popup, Dialog 组件
  • 长期维护 (欢迎 PR)

快速上手

安装

推荐使用 pnpm 安装

pnpm i easy-antd-modal -S

使用

import { Button } from 'antd';
import Modal from 'easy-antd-modal';

export default () => (
  <Modal title="easy-antd-modal" trigger={<Button type="primary">Click Me</Button>}>
    I ❤️ antd
  </Modal>
);

迭代记录

详情:CHANGELOG

License

Copyright © 2023 - present Wxh16144.
This project is MIT licensed.

Keywords

FAQs

Last updated on 07 Mar 2024

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc