czy-avue-form-design
Version:
Vue3.0版本,因Avue还存在一些bug,请慎重使用。
51 lines (50 loc) • 1.49 kB
JavaScript
export const KEY_COMPONENT_NAME = 'avue-';
export const KEY_ECHART_NAME = 'echart-';
export const DIC_PROPS = {
rowKey: 'id',
rowParentKey: "parentId",
nodeKey: 'id',
label: 'label',
value: 'value',
desc: 'desc',
groups: 'groups',
title: 'title',
leaf: 'leaf',
children: 'children',
hasChildren: 'hasChildren',
labelText: '名称',
disabled: 'disabled'
};
export const DIC_HTTP_PROPS = {
name: 'name',
url: 'url',
fileName: 'file',
res: ''
};
export const DATE_LIST = [
'dates',
'date',
'datetime',
'datetimerange',
'daterange',
'time',
'timerange',
'week',
'month',
'monthrange',
'year'
];
export const CHILDREN_LIST = ['table', 'dynamic']
export const INPUT_LIST = ['tree', 'number', 'icon', 'color', 'table', 'map'];
export const ARRAY_LIST = ['img', 'array', 'url'];
export const MULTIPLE_LIST = ['cascader', 'tree', 'select'];
export const RANGE_LIST = ['slider']
export const ARRAY_VALUE_LIST = ARRAY_LIST.concat(['upload', 'dynamic', 'map', 'checkbox', 'cascader', 'timerange', 'monthrange', 'daterange', 'datetimerange', 'dates']);
export const SELECT_LIST = DATE_LIST.concat(['select', 'checkbox', 'radio', 'cascader', 'tree', 'color', 'icon', 'table', 'map']);
export const DIC_SHOW_SPLIT = ' | ';
export const DIC_SPLIT = ',';
export const typeList = {
img: /\.(gif|jpg|jpeg|png|webp|svg|GIF|JPG|JPEG|PNG|WEBP|SVG)/,
video: /\.(swf|avi|flv|mpg|rm|mov|wav|asf|3gp|mkv|rmvb|ogg|mp4)/,
audio: /\.(mp3|wav|MP3|WAV)/,
};