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 🙏

© 2026 – Pkg Stats / Ryan Hefner

un-config-visual

v0.1.17

Published

## 项目介绍

Readme

uniubi-config-visual

项目介绍

设备配置可视化项目,使用 formilyJS 搭建

开始开发

安装依赖

yarn add uniubi-config-visual --save
// or
npm i uniubi-config-visual --save

使用方式:

  • 参数表

| 名称 | 解释 | 类型 | 其他 | | :------------- | :----------------------------- | :------ | :------------------------- | | mockSchemaData | mock 数据源 | Object | json schema 形式 | | ajaxUrl | 组件内 ajax 地址,组件调用使用 | Object | | | ajaxParams | 组件内 ajax 需要的入参 | Object | | | envValue | 环境变量 | String | | | editable | 是否可编辑 | Boolean | true 可编辑 false 不可编辑 | | value | 回填数据 | Object | | | rowKey | 唯一值 | | |


  • 按钮 buttonConfig

    目前支持三种按钮:提交、重置、自定义,按钮按需加载

| 名称 | 解释 | 类型 | | :----------- | :-------------------------------------------------------------------------------------------------- | :------- | | onSubmit | 提交按钮的自定义方法,入参 value 可获取所有输入的值,当有提交按钮时必传 | ()=>void | | buttonConfig | 按钮配置数组,其中,type:类型,包含 submit、reset、selfDefined;word:按钮文字;handle:自定义方法 | Array |


举例:


const submit = (value) => {}

const cancel = () => {}

 <DeviceConfig
        mockSchemaData={configObj}
        ajaxUrl={{
          ossUrl: '/api/v1/signature',
          fireUrl: '/api/v2/web/device/setFireAlarm',
        }}
        ajaxParams={{
          deviceNo,
          projectGuid: props.projectGuid,
        }}
        envValue={process.env.OSS_ENV}
        editable={!disabled}
        onSubmit={onSubmit}
        value={configData}
        rowKey={source}
        buttonConfig={[
          {
            type: 'submit',
            word: '提交',
          },
          {
            type: 'reset',
            word: '重置',
          },
          {
            type: 'selfDefined',
            word: '自定义',
            handle: cancel,
          },
        ]}
      />

调试方法

  • 进入/uniubi-config-visual,下文叫“外层“,执行yarn start

  • 进入/uniubi-config-visual/example,下文叫”里层“,执行yarn start

  • 修改外层代码,里层自动刷新,方便调试。