npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

sluggard-antdv

v2.1.5

Published

基于 Ant Design Vue, 对 Form / Pagination / Table 组件进行二次封装. 提供更灵活 更简便 代码量更少的开发体验.

Downloads

17

Readme

AntdSchemaForm 配置项表单

简述

  • 基于 Ant Design Vue Form 组件封装。
  • 使用配置项 schema 参数可自动生成 输入控件formItem,并绑定数据域,无需书写过多HTML。
  • 支持 配置自定义组件自定义组件校验,并且支持 Form 组件所有 API。
  • 支持以 [schema.name/schema.key]-[slotName] 的方式进行配置组件 插槽穿透

表单

Ant Design Vue Form 提供的三种排列方式以外,新增 filter 排列:

  • 样式等同于 行内排列
  • 使用 filter 排列时,会自动生成 operating 区域,包含 展开/收起 重置 查询 三个按钮。
  • 表单会根据页面尺寸动态折叠隐藏,默认只显示两行,可通过 expandRowsCount props参数调整显示行数。
  • operating 区域支持插槽进行自定义。

API

Props

  • 支持 Ant Design Vue Form 组件所有 props。
  • 修改 layout 参数,增加模式 filter

| 参数 | 说明 | 类型 | 默认值 | | --------------- | ------------------------------------------------------------ | -------------------------------------------------- | ------------ | | schema | 表单构造的配置描述,具体项见下表。 | array | [] | | state(v-model) | 表单数据对象,初始可设置为空对象,会自动根据 schema 中的 name 生成对应数据。 | object[] | [{}] | | expandRowsCount | 折叠时显示的最小行数。 | number | 2 | | layout | 表单布局 | 'horizontal' | 'vertical' | 'inline' | 'filter' | 'horizontal' | | itemStyle | item 的通用样式,filter 模式下默认值为 {margin: '8px 10px', width: '275px'} | CSSProperties | {} | | itemClassPrefix | item 的类名前缀,每个 item 会自动添加一个 [itemClassPrefix]-[schema.name/schema.key] 结构的类名。 | string | 'aof' |

schema

生成表单的构造数据对象,分为3个部分:

  • schema 参数
  • Ant Design Vue Form.Item 组件支持的所有参数
  • schema 中使用的组件