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

form-designer-cs

v1.2.12

Published

服务云-表单设计器

Downloads

570

Readme

form-designer-cs

服务云定制化组件-表单设计器

简介:此组件主要用于服务云各个项目中动态表单方面的配置和渲染;包含四类字段属性分别是自定义属性、系统属性、业务组件、纯显示组件;自定义属性需要在字段池功能中手动添加;系统属性是系统后端内置的字段;业务组件是根据不同业务需求定制化的属性组件;纯显示组件是纯粹显示个性化内容的组件。

核心功能:表单配置、表单渲染、查询条件表单渲染器、详情渲染器。

组件依赖:此组件依赖了系统中的Vue对象以及Vue.prototype上挂载的一些方法($request、$download、$confirm、$msgSuccess、$msgWarning、$msgError、$defaultValue、$getUUID、$getFileType、$Validator、$getToken、$toPrice、$getLocalStorage)。

微服务API:VUE_APP_TEMPLATE_API、VUE_APP_FIELDSERVICE_API、VUE_APP_PRODUCT_API、VUE_APP_PARTMGT_API、VUE_APP_AUTHORITY_API、VUE_APP_MANAGEDSERVICE_API、VUE_APP_MAGICCUBE_API

Install

npm install form-designer-cs --save

Usage

import FormDesigner from 'form-designer-cs'

Vue.use(FormDesigner)
  • 调试

使用npm link进行组件联调

  • 创建/解除 form-designer-cs 的全局链接

    // 进入模块目录
    npm link // 创建链接
    npm unlink // 解除链接
  • 创建/解除项目和模块的链接

    // 进入项目目录
    npm link form-designer-cs // 创建链接
    npm unlink form-designer-cs // 解除引用链接
  • npm发布

npm login //  每天登陆一次就行,不需要每次发版登陆

npm publish // 发布到npm
  • 发布完后一定记得push代码

Instructions

开发新的业务组件: 方法一:把lib文件夹下的所有内容Copy到本地项目中作为一个Component引入使用并开发,待开发测试无误后根据组件要求(严格执行)复写到lib中并提交到gitlab 方法二:在本组件项目中开发完build后把dist文件夹copy到服务云项目node_modules/form-designer-cs/

Notes

  • 组件中使用的通用方法都是挂在到Vue.prototype下的方法

  • 接口放在api文件夹下,要跟服务云项目中的api文件夹区分开