New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

pigx

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pigx

本项目是一款基于 Avue 的表单设计器,拖拽式操作让你快速构建一个表单。 [在线预览](http://112.74.43.150/)

latest
Source
npmnpm
Version
1.1.2
Version published
Maintainers
1
Created
Source

简介

本项目是一款基于 Avue 的表单设计器,拖拽式操作让你快速构建一个表单。 在线预览

依赖

element-ui 2.12.0+

$ npm i element-ui

@smallwei/avue 2.2.0+

$ npm i @smallwei/avue

或自行引入cdn

安装

组件

$ npm i avue-form-design
或
$ yarn add avue-form-design

源码

github

$ yarn
$ yarn serve

使用

import AvueFormDesign from 'avue-form-design'

Vue.use(AvueFormDesign)
<avue-form-design :options="options"
                  :aside-left-width="270"
                  :aside-right-width="380"
                  storage
                  @submit="handleSubmit"><avue-from-design>

属性

参数说明类型默认值
options字段配置Object{ column: [] }
storage开启本地存储功能,防止浏览器刷新丢失jsonBooleanfalse
asideLeftWidth左工具栏宽度String/Number'270px'
asideRightWidth右工具栏宽度String/Number'380px'

options字段配置

Avue文档

属性说明类型可选值默认值
columnAvue字段Array-[]
labelPosition字段位置String'left'/'center'/'right''left'
labelWidth字段宽度Number-120
gutter字段间隔Number-0
menuBtn表单按钮Booleantrue/falsefalse
menuPosition表单按钮位置String'left'/'center'/'right''center'
submitBtn显示提交按钮Booleantrue/falsefalse
submitSize提交按钮大小String'medium'/'small'/'mini''medium'
submitText提交按钮文本String-'提交'
emptyBtn显示清空按钮Booleantrue/falsefalse
emptySize清空按钮大小String'medium'/'small'/'mini''medium'
emptyText清空按钮文本String-'清空'

事件

名称说明回调参数
submit生成json回调当前配置的json

Avue插件

富文本

import AvueUeditor from 'avue-plugin-ueditor'

Vue.use(AvueUeditor)

坐标拾取器

import AvueMap from 'avue-plugin-map'

Vue.use(AvueMap)

打包

组件

$ yarn lib

源码

$ yarn build

捐赠

如果你觉得本项目帮助到你的话,可以给作者买杯咖啡。

License

MIT

Keywords

vue

FAQs

Package last updated on 17 Mar 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts