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 🙏

© 2025 – Pkg Stats / Ryan Hefner

conf-table-form-lib

v1.0.7

Published

## Use ```javascript // yarn add conf-table-form-lib

Downloads

41

Readme

conf-table-form-lib

Use

// yarn add conf-table-form-lib

import Vue from 'vue'
import ConfTableForm from 'conf-table-form-lib'

Vue.use(ConfTableForm)

// ...

Option

除以下特殊属性外,option 下其他属性均默认为 props

属性名以 $ 开头不会被处理,其中 $parent$children$text 为预留属性。

  • option.props

    • Vue 组件 props
    • option.props.data = { a: 1 } 等同于 <input :data="{ a: 1 }" />
  • option.on

    • Vue 组件事件句柄
    • option.on.click = console.log 等同于 <button @click="console.log" />
  • option.attrs

    • Dom 属性
    • option.attrs.placeholder = '请输入' 等同于 <input placeholder="请输入" />
  • option.nativeOn

    • Dom 事件句柄
    • option.nativeOn.click = console.log 等同于 <button @click.native="console.log" />
  • option.class

    • class
  • option.style

    • style
  • option.key

    • v-key
  • option.ref

    • ref
  • option.slot

    • slot
  • option.$parent

    • Group 组件外层组件
    • option.$parent = option
  • option.$children

    • Group 组件内层组件
    • option.$children = option
  • option.$text

    • 当前组件的 innerText
  • option.domProps

    • 不详

Example

Online demo.

Config see example.

table config

{
  // <el-table>
  table: option,

  // <el-table-column>
  // 嵌套表头 option 内有 $colums 属性
  // option.formatter 可使用 jsx 渲染 table cell
  colums: [option],

  // <el-pagination>
  pagination: option
}

form config

{
    // 对应 <el-form />
    form: option,

    // 表单项配置
    items: [
      {
        // 表单类型 input、select、radio、checkbox ...
        type: 'input',

        // <el-form-item/>
        config: option,

        // component 会包裹一层 <el-col>
        // 通常没啥用
        container: option

        // 具体 component
        // component 为函数时可定义 jsx 函数渲染
        // render 需要在当前函数作用域定义 h = vue.createElement
        component: option
      },
      {
        type: 'checkboxGroup',
        config: option,
        container: option

        // Group 组件
        component: {
          $parent: option,
          $children: [option]
        }
      }
      // ...
    ],

    // 对应组件上的 style
    style: {
      // <el-form :style="styleObj">
      form: styleObj,

      // ...
      formItem: styleObj,
      container: styleObj,
      component: styleObj
    }
 }