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

sun-form-design

v2.2.81

Published

sun-form-design

Downloads

23

Readme

欢迎使用sun-form-design

sun-form-design是一款专为为前后端开发的低代码开发组件,可以集成到您的vue2项目中。特点描述:

  • 功能丰富 :常用开发组件都已经封装如其中,后续维护还在补充更多插件。
  • 用法简单 :简洁高效的编辑方式,所有APi无需查看接口,选中生成方法。
  • 开发思维 :编程方式符合大部分程序员编程方式。
  • 二次开发 :设计方式是基于组件开发,便捷高效适合二次开发。
  • 开发注意 :目前该组件还处于开发阶段,更新频率较高,谨慎用于生产环境。

示例地址

http://res.jzyglxt.com/app/sun_form/index.html

使用方式

由于sun-form-design使用了element-ui和vxe-table因此相关依赖需要先下载

npm i element-ui

npm i xe-utils vxe-table@legacy

npm install sun-form-design@latest

快速开始

main.js中代码如下:

import Vue from 'vue'
import App from './App.vue'

import sunForm from "sun-form-design";
import "sun-form-design/dist/sunForm.css"
Vue.use(sunForm);
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);
import VXETable from 'vxe-table'
import 'vxe-table/lib/style.css'
import XEUtils from "xe-utils";
Vue.prototype.$utils = XEUtils;
Vue.use(VXETable)
new Vue({
  render: h => h(App)
}).$mount('#app')

关于组件

共暴露出了三个组件

  • sunDesigner :表单设计器。 Alt text
  • sunForm :表单解析器。 Alt text Alt text
  • sunManage :表单管理器。 Alt text

组件使用方式

<sun-designer :headers="{token:'xxx'}"></sun-designer>
<sun-form :headers="{token:'xxx'}"></sun-form>
<sun-manage :apiSet="apiSet"></sun-manage>

apiset配置代码

   {
       baseUrl:'/jcbg',
       headers: {
         "token":`xxx`,
       },
       configDataKey: "configContent",
       configNameKey: "remark",
       configCodeKey: "code",
       configIdKey: "id",
       apiSetList: {
         method: "post",
         apiurl: "/webPage/listWebPageConfig",
         params: [],
         contentType: "JSON",
         dataFormat: "",
         baseInfo: {
           rows: "datas",
           count: "total",
           page: "pageindex",
           limit: "pagesize",
           pageDefault: "20"
         }
       },
       apiSetCreate: {
         method: "post",
         apiurl: "/webPage/addWebPageConfig",
         params: [],
         contentType: "JSON",
         dataFormat: ""
       },
       apiSetUpdate: {
         method: "post",
         apiurl: "/webPage/editWebPageConfig",
         params: [],
         contentType: "JSON",
         dataFormat: ""
       },
       apiSetDelete: {
         method: "post",
         apiurl: "/webPage/deleteWebPageConfig",
         params: [],
         contentType: "JSON",
         dataFormat: ""
       },
       apiSetDetail: {
         method: "post",
         apiurl: "/webPage/getWebPageConfig",
         params: [],
         contentType: "JSON",
         dataFormat: ""
       }
     }

后续开发计划(等我有空/(ㄒoㄒ)/~~)

  • 增加常用模板开发
  • 表单表格根据接口Schema自动生成排版,减少配置人员工作
  • 新增更多UI类组件,让页面更美观如:统计组件,步骤条组件,流程组件等
  • 性能优化
  • 具体使用文档以及二次开发文档

沟通交流

开源代码随后会放地址,如有定制化需求或者学习交流或者功能建议可联系qq:1297425135 或者微信:lllIIIllllIIIlllIII

开源项目地址

https://github.com/Everyer/sun-form-design