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

webos-form-design

v3.2.7

Published

基于layui-vue 表单设计器

Readme

webos-form-design(webos)v3.2

单独剥离vuewebos,需要安装layui-vue,并且设置全局。 框架依赖,需要自行安装,以下未打包到依赖

vue vuedraggable moment vue-ueditor-wrap vue3-json-editor webosutils @layui/layui-vue md-editor-v3 lodash 主要实现表单组件图片上传、颜色选择、按钮、文本输入框、下拉框、单选框、多选框、开关、日期选择、时间选择、文件上传、表格、树形结构、富文本编辑器。

安装

npm install webos-form-design

需安装其他依赖


npm i webosutils
npm i  vuedraggable
npm i moment 
npm i  vue-ueditor-wrap  
npm i vue3-json-editor 
npm i webosutils 
npm i @layui/layui-vue 
npm i md-editor-v3 
npm i lodash

引入


import { createApp } from 'vue'


import Layuid from '@layui/layui-vue'
import App from './App.vue'
import '@layui/layui-vue/lib/index.css';
import 'font-awesome/css/font-awesome.min.css';

const app = createApp(App)

app.use(Layuid);

app.mount('#app');

完整例子

<template>
    <!-- 弹窗表单 -->
<lay-button type="primary" @click="openform()">弹窗表单</lay-button>

<!-- 普通页面表单 -->
<PageForm :fromdata="fromdata" :fromvalue="{}"
     @callback="(e) => { 
        console.log(e);
    }" @errorcallback="() => {
        console.log('errorcallback');
    }
    ">

</PageForm> 
<!-- 表单设计器 -->
<FormDesign @preview="(e) => {

       utls.openform(LayerForm, e);
}
"></FormDesign>
</template>
<script setup lang="ts">
import { ref,h } from "vue";
import { layer } from "@layui/layer-vue";
import   'webos-form-design/lib/index/css';
import { LayerForm,PageForm,FormDesign } from "webos-form-design";
import {utls} from './utls/index';
const openform = () => {
    console.log(LayerForm);
    debugger;
    utls.openform(LayerForm, fromdata);

}
var fromdata = {
    form: {
        mode: "",
        name: "",
        style: "",
        table: "",
        type: "",
        url: "",
    }, data: [{
        icon: "fa fa-edit",
        name: "title",
        id: "1",
        type: "input",
        data: {
            id: "title",
            col: "12",
            label: "标题",
            type: "text",
            name: "title",
            autocomplete: "off",
            placeholder: "请输入标题",
            inputclass: "block",
            disabled: "block",
            showtext: "false",
            required: "true",
            value: "",
            data: { api: "", para: {} },
            input: "",
            excel: "false",
        }
    },
    {
        icon: "fa fa-edit",
        name: "title2",
        id: "1",
        type: "input",
        data: {
            id: "title2",
            col: "12",
            label: "标题2",
            type: "text",
            name: "title2",
            autocomplete: "off",
            placeholder: "placeholder",
            inputclass: "block",
            disabled: "block",
            showtext: "false",
            value: "",
            required: "true",
            data: { api: "", para: {} },
            input: "",
            excel: "false",
        }
    }
    ,
    {
        icon: "fa fa-edit",
        name: "title3",
        id: "1",
        type: "input",
        data: {
            id: "title3",
            col: "24",
            label: "标题2",
            type: "password",
            name: "title3",
            autocomplete: "off",
            placeholder: "placeholder",
            inputclass: "block",
            disabled: "block",
            showtext: "false",
            required: "true",
            value: "",
            data: { api: "", para: {} },
            input: "",
            excel: "false",
        }
    }
],
 rules: {},
 field:{}
};



</script>

完整的表单Json结构

 {
    form: {
        mode: "",
        name: "",
        style: "",
        table: "",
        type: "",
        url: "",
    }, data: [{
        icon: "fa fa-edit",
        name: "title",
        id: "1",
        type: "input",
        data: {
            id: "title",
            col: "12",
            label: "标题",
            type: "text",
            name: "title",
            autocomplete: "off",
            placeholder: "请输入标题",
            inputclass: "block",
            disabled: "block",
            showtext: "false",
            required: "true",
            value: "",
            data: { api: "", para: {} },
            input: "",
            excel: "false",
        }
    },
    {
        icon: "fa fa-edit",
        name: "title2",
        id: "1",
        type: "input",
        data: {
            id: "title2",
            col: "12",
            label: "标题2",
            type: "text",
            name: "title2",
            autocomplete: "off",
            placeholder: "placeholder",
            inputclass: "block",
            disabled: "block",
            showtext: "false",
            value: "",
            required: "true",
            data: { api: "", para: {} },
            input: "",
            excel: "false",
        }
    }
    ,
    {
        icon: "fa fa-edit",
        name: "title3",
        id: "1",
        type: "input",
        data: {
            id: "title3",
            col: "24",
            label: "标题2",
            type: "password",
            name: "title3",
            autocomplete: "off",
            placeholder: "placeholder",
            inputclass: "block",
            disabled: "block",
            showtext: "false",
            required: "true",
            value: "",
            data: { api: "", para: {} },
            input: "",
            excel: "false",
        }
    }
],
 rules: {},
 field:{}
};

实例请查看example

npm run dev