Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
@hzab/schema-descriptions
Advanced tools
通过 schema 生成的描述列表组件
import SchemaDes from "@hzab/schema-descriptions";
// testSchema 为 formily 生成的 schema json
<SchemaDes schema={testSchema} data={data} />;
参数 | 类型 | 必填 | 默认值 | 说明 |
---|---|---|---|---|
schema | Object | 是 | - | 数据信息的 schema |
data | Object | 是 | - | 展示的数据 |
bordered | Boolean | 否 | true | 控制是否显示边框 |
layout | string | 否 | 布局:horizontal / vertical | |
column | number | 否 | 2 | 一行的 DescriptionItems 数量,可以写成像素值或支持响应式的对象写法 { xs: 8, sm: 16, md: 24} |
desConf | Object | 否 | 2 | antd descriptions 的默认配置项 |
Slots | Object | 否 | - | 数据展示的插槽 |
LabelSlots | Object | 否 | - | label 的插槽 |
import SchemaDes from "@hzab/schema-descriptions";
// testSchema 中存在 name 为 userName 的字段
<SchemaDes
schema={testSchema}
data={data}
Slots={{
userName(props) {
console.log("Slots props", props);
return "Slots-" + props.value + props.dataVal;
},
}}
LabelSlots={{
userName(props) {
console.log("Label props", props);
return "Label-Slots-" + props.label;
},
}}
/>;
命令:npm publish --access public
发布目录:
FAQs
通过 schema 生成的描述列表组件
We found that @hzab/schema-descriptions demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.