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

amy-plus

v0.0.54

Published

all components are settled here

Downloads

194

Readme

安装

pnpm install amy-plus@latest

import Vue from "vue"
import AmyPlus from "amy-plus"
import "amy-plus/theme-chalk/index.css"
Vue.use(AmyPlus, {
  name: "",
  appendName: "V2",
})

| 属性 | 默认值 | 描述 | | ---------- | ------ | ------------------ | | name | A | 组件自定义开始名称 | | appendName | - | 组件自定义结束名称 |

CustomForm 属性

| 属性 | 默认值 | 描述 | | ------------ | ------ | --------------------------------------- | | columns | -/必填 | 每个表单的配置项 | | model | -/必填 | 表单的 model 队形 | | rowProps | - | el-row 传递的参数 | | colProps | - | el-col 传递的参数 | | maxlength | 50 | 在输入框最大允许输入的最大字符数 | | contentWidth | - | 控制 el-form-item 的长度(例如:500px) |

兼容 el-form 其它的 props

columns 属性

| 属性 | 默认值 | 描述 | | ------------- | ------ | ------------------------------------------------------------------------------------- | | label | - | 表单 label 文案 | | prop | - | 表单项的 prop | | type | input | 表单项的组件名称(switch/radio,省略 el,也有自定义的组件,multiple-group,tel) | | vif | true | 是否显示表单项,可以是函数,返回值是 boolean | | readonly | false | 表单项是否只读,可以是函数,返回值是 boolean | | disabled | false | 表单项是否禁用,可以是函数,返回值是 boolean | | defaultValue | - | 表单项的默认值 | | renderItem | - | 支持 jsx 格式自定义 el-form-item | | renderPrepend | - | 支持 jsx 格式自定义 el-form-item 的前置插槽 | | renderLabel | - | 支持 jsx 格式自定义 el-form-item label 内容 | | labelTooltip | - | 支持 jsx 格式自定义 el-form-item label 提示内容 | | renderContent | - | 支持 jsx 格式自定义 el-form-item content 内容 | | tooltip | - | 支持 jsx 格式自定义 el-form-item content 提示内容 | | fieldSlots | - | elementui 的自带插槽,如如 el-input,你可以传入{ append:() => 我是 append} | | renderAppend | - | 支持 jsx 格式自定义 el-form-item 的后置插槽 | | formItemProps | - | el-form-item 的所都 props | | fieldProps | - | el-form-item 里面的子元素每一项的 props | | rowProps | - | 覆盖 CustomForm rowProps 属性 | | colProps | - | 覆盖 CustomForm colProps 属性 | | options | - | 组件为 type 为 el-checkbox-group,radio-group,select 是需要传递 |

formItemProps 属性

| 属性 | 默认值 | 描述 | | ------------ | ------ | ------------------------------------------------------- | | contentWidth | - | 控制 el-form-item 的长度(500px),覆盖 CustomForm 属性 | | hasLabel | - | 是否显示 el-form-item 的 label 内容 | | hasContent | - | 是否显示 el-form-item 的 content 内容 |

兼容 el-form-item 其它的 props

fieldProps 属性

| 属性 | 默认值 | 描述 | | ----- | ------ | ----------------------------------------------------- | | emits | - | 监听每个组件的事件,比如 change:(v) => console.log(v) |

兼容 el-form-item 子组件的其它 props

multiple-group 类型的参数

| 属性 | 默认值 | 描述 | | ------------- | ------ | ----------------------------------------------------------------------------------------------------------------- | | columns | - | 参考上面的 columns 属性,当 colums 只有一个的时候,默认返回的是个数组,其它的返回的自己定义的 key,value 对象数组 | | multipleProps | - | 控制最多和最小的数值,maxLength 表示最大,minLength 标识最小 |