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

dinycore

v0.2.14

Published

dinycore-vue组件库

Downloads

31

Readme

dinycore component

版本

  • v0.1.10 : 封装element-ui的动态表单
  • v0.2.14 : 原生ts封装的基础组件及动态表单, 部分组件正在开发中,支持两种数据结构(新结构文档正在开发中),具体请看 文档

定位

  • ts原生封装
  • 响应式
  • 支持vue3,兼容vue2
  • 包括基础组件,重点放在逻辑组件
  • 让开发者更多的关注数据结构而非组件样式和响应式兼容等

进度

  • 目前该组件库的核心组件为dynamicForm,并且input,textarea,radio,checkbox已完成原生封装,其他使用到的组件仍旧是element,目前由element到原生到迁移正在开发中。
  • 如需使用element组件,则使用[email protected]版本即可
  • 否则请安静等待全部组件迁移完成,该过程可能会持续一两个月
  • 待全部组件迁移完成后,将会做响应式
  • 目前仅支持全量引入,后续会添加按需引入

使用方式

// main.ts
import dinycore from 'dinycore'
Vue.component('dn-dynamic-form',dinycore.DnDynamicForm)
// 或直接在使用的vue文件引入
import dinycore from 'dinycore'
...
components:{
    ['dn-dynamic-form']: dinycore.DnDynamicForm
}
/**
 * data: 获取表单数据-questionnaire
 * labelPosition: 表单label和组件排列关系 left/right/top
 * labelWidth: 表单label宽度
 * uploadUrl: 上传图片/文件的接口地址
 * btnList: 表单按钮 
 * onSubmit: (answer:answer) => {} : answer是被提交的表单数据
 * onCancel: () => {} 取消按钮触发事件
 * **/
<dn-dynamic-form 
  :data="questionnaire"  
  :labelPosition="'left'"
  :labelWidth="'300px'"
  :uploadUrl="https://jsonplaceholder.typicode.com/posts/"
  :btnList="[{ label: "取消", event: "onCancel", type: "", plain: true },{ label: "确定", event: "onSubmit", type: "warning",plain: true }]"
  @onSubmit="onSubmit"
  @onCancel="onCancel"/>
...

详细数据结构请前往: https://github.com/JC-Guy/Document

注意事项

  1. 单选/多选 能够控制任意题型显/隐
  2. 目前仅支持条件判断为 “等于”
  3. 字段及结构必须与文档保持 一致