Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
@antdp/antdp-ui
Advanced tools
快速生成Form表单。
import React, { useRef } from 'react';
import { QuickForm } from '@antdp/antdp-ui'
const QuickFormDemo = (props) => {
const baseRef = useRef();
return (
<QuickForm
ref={baseRef}
formDatas={[
{
label: "备注",
name: "remark",
type: "input"
},
{
label: "水果",
name: "fruit",
type: "select",
options: [{ label: "apple", value: 1 }]
}
]}
/>
);
}
export default QuickFormDemo
interface QuickFormProps<Values> extends FormProps<Values> {
/** 表单集合 */
formDatas: Array<itemsProps | any>,
/** antd collapse 组件属性集合 */
collapseAttributes?: Object;
/** antd collapse.panel 组件属性集合 */
panelAttributes?: Object;
/** 折叠表单下是否初始化选中面板 */
visible?: boolean;
/** 表单单行排列 */
colspan?: number;
/** 组件头部标题 */
header?: React.ReactNode | any;
/** 自定义表单栅格宽度占比,参照 antd 栅格布局 */
defaultFormItemLayout?: Object,
/** 自定义表单排列方式 */
defaultFormLayout?: FormLayout,
/** 尺寸,参照 antd */
size?: any,
/** 表单类型:modal&cardform&CardPro */
type?: string,
/** antd collapse.panel 自定义渲染每个面板右上角的内容 */
extra?: any
}
interface itemsProps {
/** 表单元素标题 */
label: string,
/** 表单名称 antd from 组件 getFieldDecorator 第一个参数 */
name: string,
/** 表单初始值 */
initialValue: string | any,
/** 表单是否独占一行 */
full: boolean,
/** 表单隐藏 */
hideInForm: boolean,
/** input select 等表单组件属性集合 具体参考 antd */
attributes: object
}
export type QuickFormComponent<Values = any> = (
props: QuickFormProps<Values>,
ref?: ((instance: FormInstance<Values> | null) => void) | React.RefObject<FormInstance<Values>> | null | undefined
) => React.ReactElement
FAQs
基于antd封装的组件
The npm package @antdp/antdp-ui receives a total of 12 weekly downloads. As such, @antdp/antdp-ui popularity was classified as not popular.
We found that @antdp/antdp-ui demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
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.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.