![Maven Central Adds Sigstore Signature Validation](https://cdn.sanity.io/images/cgdhsj6q/production/7da3bc8a946cfb5df15d7fcf49767faedc72b483-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
@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 0 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
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.