| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546 |
- export const basicComponents = [
- {
- type: 'input',
- icon: 'icon-input',
- options: {
- width: '100%',
- defaultValue: '',
- required: false,
- requiredMessage: '',
- dataType: '',
- dataTypeCheck: false,
- dataTypeMessage: '',
- pattern: '',
- patternCheck: false,
- patternMessage: '',
- placeholder: '',
- customClass: '',
- disabled: false,
- labelWidth: 100,
- isLabelWidth: false,
- hidden: false,
- dataBind: true,
- showPassword: false,
- }
- },
- {
- type: 'textarea',
- icon: 'icon-diy-com-textarea',
- options: {
- width: '100%',
- defaultValue: '',
- required: false,
- requiredMessage: '',
- disabled: false,
- pattern: '',
- patternMessage: '',
- placeholder: '',
- customClass: '',
- labelWidth: 100,
- isLabelWidth: false,
- hidden: false,
- dataBind: true
- }
- },
- {
- type: 'number',
- icon: 'icon-number',
- options: {
- width: '',
- required: false,
- requiredMessage: '',
- defaultValue: 0,
- min: 0,
- max: 9,
- step: 1,
- disabled: false,
- controlsPosition: '',
- customClass: '',
- labelWidth: 100,
- isLabelWidth: false,
- hidden: false,
- dataBind: true
- }
- },
- {
- type: 'radio',
- icon: 'icon-radio-active',
- options: {
- inline: false,
- defaultValue: '',
- showLabel: true,
- options: [
- {
- value: 'Option 1',
- label: 'Option 1'
- },
- {
- value: 'Option 2',
- label: 'Option 2'
- },
- {
- value: 'Option 3',
- label: 'Option 3'
- }
- ],
- required: false,
- requiredMessage: '',
- width: '',
- remote: false,
- remoteType: 'option',
- remoteOption: '',
- remoteOptions: [],
- props: {
- value: 'value',
- label: 'label'
- },
- remoteFunc: '',
- customClass: '',
- labelWidth: 100,
- isLabelWidth: false,
- hidden: false,
- dataBind: true,
- disabled: false
- }
- },
- {
- type: 'checkbox',
- icon: 'icon-check-box',
- options: {
- inline: false,
- defaultValue: [],
- showLabel: true,
- options: [
- {
- value: 'Option 1'
- },
- {
- value: 'Option 2'
- },
- {
- value: 'Option 3'
- }
- ],
- required: false,
- requiredMessage: '',
- width: '',
- remote: false,
- remoteType: 'option',
- remoteOption: '',
- remoteOptions: [],
- props: {
- value: 'value',
- label: 'label'
- },
- remoteFunc: '',
- customClass: '',
- labelWidth: 100,
- isLabelWidth: false,
- hidden: false,
- dataBind: true,
- disabled: false
- }
- },
- {
- type: 'time',
- icon: 'icon-time',
- options: {
- defaultValue: '',
- readonly: false,
- disabled: false,
- editable: true,
- clearable: true,
- placeholder: '',
- startPlaceholder: '',
- endPlaceholder: '',
- isRange: false,
- arrowControl: true,
- format: 'HH:mm:ss',
- required: false,
- requiredMessage: '',
- width: '',
- customClass: '',
- labelWidth: 100,
- isLabelWidth: false,
- hidden: false,
- dataBind: true
- }
- },
- {
- type: 'date',
- icon: 'icon-date',
- options: {
- defaultValue: '',
- readonly: false,
- disabled: false,
- editable: true,
- clearable: true,
- placeholder: '',
- startPlaceholder: '',
- endPlaceholder: '',
- type: 'date',
- format: 'yyyy-MM-dd',
- timestamp: false,
- required: false,
- requiredMessage: '',
- width: '',
- customClass: '',
- labelWidth: 100,
- isLabelWidth: false,
- hidden: false,
- dataBind: true
- }
- },
- {
- type: 'rate',
- icon: 'icon-pingfen1',
- options: {
- defaultValue: null,
- max: 5,
- disabled: false,
- allowHalf: false,
- required: false,
- requiredMessage: '',
- customClass: '',
- labelWidth: 100,
- isLabelWidth: false,
- hidden: false,
- dataBind: true,
- showScore: false
- }
- },
- {
- type: 'color',
- icon: 'icon-color',
- options: {
- defaultValue: '',
- disabled: false,
- showAlpha: false,
- required: false,
- requiredMessage: '',
- customClass: '',
- labelWidth: 100,
- isLabelWidth: false,
- hidden: false,
- dataBind: true
- }
- },
- {
- type: 'select',
- icon: 'icon-select',
- options: {
- defaultValue: '',
- multiple: false,
- disabled: false,
- clearable: false,
- placeholder: '',
- required: false,
- requiredMessage: '',
- showLabel: true,
- width: '',
- options: [
- {
- value: 'Option 1'
- },
- {
- value: 'Option 2'
- },{
- value: 'Option 3'
- }
- ],
- remote: false,
- remoteType: 'option',
- remoteOption: '',
- filterable: false,
- remoteOptions: [],
- props: {
- value: 'value',
- label: 'label'
- },
- remoteFunc: '',
- customClass: '',
- labelWidth: 100,
- isLabelWidth: false,
- hidden: false,
- dataBind: true
- }
- },
- {
- type: 'switch',
- icon: 'icon-switch',
- options: {
- defaultValue: false,
- required: false,
- requiredMessage: '',
- disabled: false,
- customClass: '',
- labelWidth: 100,
- isLabelWidth: false,
- hidden: false,
- dataBind: true
- }
- },
- {
- type: 'slider',
- icon: 'icon-slider',
- options: {
- defaultValue: 0,
- disabled: false,
- required: false,
- requiredMessage: '',
- min: 0,
- max: 100,
- step: 1,
- showInput: false,
- range: false,
- width: '',
- customClass: '',
- labelWidth: 100,
- isLabelWidth: false,
- hidden: false,
- dataBind: true
- }
- },
- {
- type: 'text',
- icon: 'icon-wenzishezhi-',
- options: {
- defaultValue: 'This is a text',
- customClass: '',
- labelWidth: 100,
- isLabelWidth: false,
- hidden: false,
- dataBind: true
- }
- },
- {
- type: 'html',
- icon: 'icon-html',
- options: {
- defaultValue: '<b style="color: red;">\n\tThis is a HTML5\n</b>',
- labelWidth: 100,
- isLabelWidth: false,
- hidden: false,
- dataBind: true
- }
- }
- ]
- export const advanceComponents = [
- {
- type: 'blank',
- icon: 'icon-zidingyishuju',
- options: {
- defaultType: 'String',
- defaultValue:'',
- customClass: '',
- width: '',
- labelWidth: 100,
- isLabelWidth: false,
- hidden: false,
- dataBind: true
- }
- },
- {
- type: 'component',
- icon: 'icon-component',
- options: {
- customClass: '',
- labelWidth: 100,
- isLabelWidth: false,
- hidden: false,
- dataBind: true,
- template: '<p>自定义内容</p>',
- required: false,
- }
- },
- {
- type: 'fileupload',
- icon: 'icon-wenjianshangchuan',
- options: {
- defaultValue: [],
- width: '',
- tokenFunc: 'funcGetToken',
- token: '',
- domain: 'http://tcdn.form.xiaoyaoji.cn/',
- disabled: false,
- tip: '',
- action: 'http://tools-server.making.link/api/transfer',
- customClass: '',
- limit: 9,
- multiple: false,
- isQiniu: true,
- labelWidth: 100,
- isLabelWidth: false,
- hidden: false,
- dataBind: true,
- headers: [],
- required: false,
- }
- },
- {
- type: 'imgupload',
- icon: 'icon-tupian',
- options: {
- defaultValue: [],
- size: {
- width: 100,
- height: 100,
- },
- width: '',
- tokenFunc: 'funcGetToken',
- token: '',
- domain: 'http://tcdn.form.xiaoyaoji.cn/',
- disabled: false,
- readonly: false,
- limit: 8,
- multiple: false,
- isQiniu: true,
- isDelete: false,
- min: 0,
- isEdit: false,
- action: 'http://tools-server.making.link/api/transfer',
- customClass: '',
- labelWidth: 100,
- isLabelWidth: false,
- hidden: false,
- dataBind: true,
- headers: [],
- required: false,
- }
- },
- {
- type: 'editor',
- icon: 'icon-fuwenbenkuang',
- options: {
- defaultValue: '',
- width: '',
- customClass: '',
- labelWidth: 100,
- isLabelWidth: false,
- hidden: false,
- dataBind: true,
- customToolbar: [
- [ 'bold', 'italic', 'underline', 'strike',
- { 'color': [] },
- { 'background': [] },
- { 'align': [] },
- { 'list': 'ordered'},
- { 'list': 'bullet' },
- { 'indent': '-1'},
- { 'indent': '+1' }
- ],
- [{ 'font': [] },{ 'header': [1, 2, 3, 4, 5, 6, false] }],
- [{ 'script': 'sub'}, { 'script': 'super' }],
- ['link', 'image','blockquote', 'code-block'],
- [{ 'direction': 'rtl' }],
- ['clean']
- ],
- disabled: false,
- required: false,
- }
- },
- {
- type: 'cascader',
- icon: 'icon-jilianxuanze',
- options: {
- defaultValue: [],
- width: '',
- placeholder: '',
- disabled: false,
- clearable: false,
- remote: true,
- remoteType: 'option',
- remoteOption: '',
- remoteOptions: [],
- props: {
- value: 'value',
- label: 'label',
- children: 'children'
- },
- remoteFunc: '',
- customClass: '',
- labelWidth: 100,
- isLabelWidth: false,
- hidden: false,
- dataBind: true,
- required: false,
- }
- },
- {
- type: 'table',
- icon: 'icon-table',
- options: {
- defaultValue: [],
- customClass: '',
- labelWidth: 100,
- isLabelWidth: false,
- hidden: false,
- dataBind: true,
- disabled: false,
- required: false,
- },
- tableColumns: []
- }
- ]
- export const layoutComponents = [
- {
- type: 'grid',
- icon: 'icon-RectangleCopy',
- columns: [
- {
- span: 12,
- xs: 12,
- sm: 12,
- md: 12,
- lg: 12,
- xl: 12,
- list: []
- },
- {
- span: 12,
- xs: 12,
- sm: 12,
- md: 12,
- lg: 12,
- xl: 12,
- list: []
- }
- ],
- options: {
- gutter: 0,
- justify: 'start',
- align: 'top',
- customClass: '',
- hidden: false,
- flex: true,
- responsive: false
- }
- },
- {
- type: 'tabs',
- icon: 'icon-tabs',
- tabs: [
- {
- label: 'Tab 1',
- name: 'tab_1',
- list: []
- }
- ],
- options: {
- type: '',
- tabPosition: 'top',
- customClass: '',
- hidden: false,
- }
- },
- {
- type: 'divider',
- icon: 'icon-fengexian',
- options: {
- hidden: false,
- contentPosition: 'left'
- }
- }
- ]
|