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

justine-form

v1.0.7

Published

在element-ui上封装的配置表单

Downloads

13

Readme

##表单的简单封装 在element-ui上进行的封装,具体的传参可以参考element-ui传参方式 ####参数设置

| 参数 | 说明 | 类型 | 默认值 | |:-----|:-----|:-----|:-----| |inline | 行内表单模式 | boolean | false | |formOptions | 表单样式及保存按钮样式 | Object | |formData | 表单模板| Object | |formTemplate| 表单模板|Object | |formRules |表单验证规则,具体的使用可以参照eleemnt-ui表单的规则验证 | Object|

####formOptions 参数设置

| 参数 | 说明 | 类型 |可选值| 默认值 | |:-----|:-----|:-----|:-----|:-----| | labelWidth | 表单 label 宽度 | String | | labelPosition | 表单 label 位置 | String | | | | saveButtonSize | 保存按钮尺寸 | String | medium / small / mini| | | saveButtonType | 保存按钮类型 | String | primary / success / warning / danger / info / text| | | saveButtonIcon | 保存按钮图标类名 | String | | | | saveButtonText | 保存按钮文字 | String | | | | saveLoading | 保存按钮是否加载中状态 |Boolean | | false| | | | | | |

####formTemplate参数设置

| 参数 | 说明 | 类型 |可选值| 默认值 | |:-----|:-----|:-----|:-----|:-----| | title | 表单 label 的名称 | String | | | | value | 表单模板的默认值 | | | | | component.name | 表单渲染的组件名,组件请参考 组件,自定义组件写法请参考自定义组件示例 |String |el-input / el-input-number / el-radio / el-checkbox / el-select / el-cascader / el-switch / el-slider / el-time-select / el-time-picker / el-date-picker / el-rate / el-color-picker / 自定义组件 |el-input | | component.options |el-radio / el-checkbox / el-select 中的 options | Array | | | | component.show | 是否显示此项 |Boolean | | | | component.disabled | 是否禁用此项 | Boolean | | | | component.span | 表单布局所占栅格数,栅格布局请参考 Layout 布局 | Number | | | | component.offset |表单栅格布局偏移量,栅格布局请参考 Layout 布局 |Number | | |

####安装

npm i justine-form

####使用

    import Vue from 'vue'
    import ElementUI from 'element-ui'
    import 'element-ui/lib/theme-chalk/index.css'
    import JustineForm from 'justine-form'
    Vue.use(ElementUI)
    Vue.use(JustineForm)