New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

advanced-antd

Package Overview
Dependencies
Maintainers
0
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

advanced-antd

[English](./README.md) · 中文

latest
Source
npmnpm
Version
0.1.4
Version published
Maintainers
0
Created
Source

advanced-antd

English · 中文

Summary

ScrollTable:

Automatically adjust the scroll-y attribute of the table based on page layout.

DragModal:

The DragModal component is a secondary encapsulation based on the antd Modal component, which can achieve drag and drop pop ups.

Example

https://jilangyangbo.github.io/advanced-antd/

Install

npm install advanced-antd  or  pnpm install advanced-antd or yarn add advanced-antd

Usage

ScrollTable:

The usage is similar to antd's Table

import {ScrollTable} from 'advanced-antd'
...

  <ScrollTable>
    dataSource={data}
    scroll={{x:true}}
    ...
    bottomHeight={0}
  <ScrollTable/>

DragModal:

The usage is similar to antd's Modal

import {ScrollTable} from 'advanced-antd'
...
const [open, setOpen] = useState(false)
...

  <DragModal
    title="Dragable Modal"
    open={open}
    onCancel={()=>setOpen(false)}
    onOk={()=>setOpen(false)}
  >
    content
  </DragModal>

Props

ScrollTable:

Includes all the props of antd Table component.

additional props

PropDefaultTypeDescription
bottomHeight74numberThe distance between the table content and the bottom of the screen, such as the height of a pagenation or other component, the default value is 74
minHeight60numberThe minimum height of the table content, which is used to prevent the table content from being too small, and the default value is 60
isFullUpfalsebooleanWhether the table content occupies the entire screen. If set to true, the pagenation component will be fixed at the bottom of the screen

DragModal:

Includes all the props of antd Modal component.

additional props

PropDefaultTypeDescription
dragabletruebooleanWhether to enable drag and drop
resetOnClosefalsebooleanWhether to reset the position of the modal when it is closed

Keywords

react

FAQs

Package last updated on 08 Aug 2024

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