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

vue-form-model

v1.3.0

Published

vue插件 - 根据 model模型建立表单 - 添加 tips控制 - 下拉、复选、单选的 key和value 支持自定义

Downloads

21

Readme

引用

npm install vue-form-model --save

注册后即可使用

<vueFormModel v-if="editContractModal" // 显示联动 :enumList="selectAllList" // 枚举的 selectAllList labelWidth="125px" // label 宽度 :rules="rules" // 表单验证 :dataItem="contractFormDataItem" // 表单项的描述 :dataForm="contractFormData" > // 表单的初始值 model // 自定义表单项

预览

https://file.ljchappy.com/%E8%87%AA%E5%AE%9A%E4%B9%89%E8%A1%A8%E5%8D%95.png

数据模型

contractFormDataItem: [ // input 输入框 - number、textarea等 { bindKey: 'salesManager', label: '销售经理', placeholder: '销售经理', type: 'input', }, // time 时间选择 { bindKey: 'projectApprovalTime', label: '立项审批通过时间', placeholder: '立项审批通过时间', type: 'time', timeFormat: 'yyyy-MM-dd', timeType: 'month|year'}, // select 选择框 { bindKey: 'openingDataOrNot', multiple: false, changeHandle: this.changeHandle, label: '是否期初数据', placeholder: '是否期初数据', type: 'select', selectList: [{ keyStr: '是', valueStr: 1 }, { keyStr: '否', valueStr: 0 }], }, // checkbox 复选框 { width: '100%', bindKey: 'myCheckBox', label: '多选测试', type: 'checkbox', checkboxList: [{ valueStr: '看书', keyStr: '1' }, { valueStr: '学习2', keyStr: '2' }, { valueStr: '学习3', keyStr: '3' }, { valueStr: '学习4', keyStr: '4' }, { valueStr: '学习5', keyStr: '5' }], changeHandle: this.checkboxChangeHandle, }, // radio 单选框 { bindKey: 'myRadioBox', label: '单选测试', type: 'radio', width: '100%', radioList: [{ valueStr: '看书', keyStr: '1' }, { valueStr: '学习', keyStr: '2' }], changeHandle: this.radioChangeHandle, }, // upload 图片上传 { bindKey: 'imageUrl', width: '100%', type: 'upload', label: '图片上传', icon: 'el-icon-folder-add', action: 'http://www.baidu.com', showFileList: false, handleUploadSuccess: this.handleUploadSuccess, beforeFileUpload: this.beforeFileUpload, }, // 自定义 { bindKey: 'mySlot', width: '66%', type: 'slot', }, ],