@xfu0401/form-generator 1.0.21 → 1.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/.eslintrc.js +0 -48
- package/@xfu0401/form-generator/package.json +0 -62
- package/LICENSE +0 -127
- package/README.md +0 -268
- package/babel.config.js +0 -22
- package/public/favicon.ico +0 -0
- package/public/img/show/PixPin_2024-07-17_16-25-59.gif +0 -0
- package/public/img/show/PixPin_2024-07-17_16-33-51.png +0 -0
- package/public/img/show/file.png +0 -0
- package/public/img/show/image.png +0 -0
- package/public/img/show/pc/347/253/257/346/270/262/346/237/223.png +0 -0
- package/public/img/show/pc/347/253/257/350/257/246/346/203/205.png +0 -0
- package/public/img/show//344/272/213/344/273/266.png +0 -0
- package/public/img/show//345/205/250/345/261/200/344/272/213/344/273/266.png +0 -0
- package/public/img/show//345/205/250/345/261/200/346/240/267/345/274/217.png +0 -0
- package/public/img/show//346/240/267/345/274/217/345/261/236/346/200/247.png +0 -0
- package/public/img/show//347/247/273/345/212/250/347/253/257/346/270/262/346/237/223.png +0 -0
- package/public/img/show//347/247/273/345/212/250/347/253/257/350/257/246/346/203/205.png +0 -0
- package/public/img/show//347/274/226/350/276/221/345/231/2502.png +0 -0
- package/public/img/show//347/274/226/350/276/221/345/231/2503.png +0 -0
- package/public/img/show//347/274/226/350/276/221/345/231/2504.png +0 -0
- package/public/img/temp//344/270/273/344/273/216/350/241/250/345/215/225.jpg +0 -0
- package/public/img/temp//345/210/206/347/273/204/350/241/250/345/215/225.jpg +0 -0
- package/public/img/temp//345/215/225/345/210/227/350/241/250/345/215/225.jpg +0 -0
- package/public/img/temp//345/233/272/345/256/232/350/241/250/346/240/274/350/241/250/345/215/225.jpg +0 -0
- package/public/img/temp//345/244/232/345/210/227/350/241/250/345/215/225.jpg +0 -0
- package/public/img/temp//346/240/207/347/255/276/351/241/265/350/241/250/345/215/225.jpg +0 -0
- package/public/index.html +0 -25
- package/public/static/js/config.js +0 -2
- package/src/App.vue +0 -18
- package/src/api/data.js +0 -52
- package/src/components/Layout/Layout.vue +0 -28
- package/src/components/Layout/LeftMenu.vue +0 -46
- package/src/components/SvgIcon/index.vue +0 -43
- package/src/components/code/Code.vue +0 -98
- package/src/components/common/FGDialog.vue +0 -100
- package/src/components/editor/CodeDialog.vue +0 -68
- package/src/components/editor/CodeEditor.vue +0 -191
- package/src/components/editor/CodeJson.vue +0 -130
- package/src/components/editor/CssEditor.vue +0 -84
- package/src/components/editor/EventEditor.vue +0 -84
- package/src/components/editor/JsonDialog.vue +0 -55
- package/src/components/editor/JsonEditor.vue +0 -58
- package/src/components/editor/components/EditorLeft.vue +0 -138
- package/src/components/fileComs/ExportExcel.vue +0 -49
- package/src/components/fileComs/ExportJson.vue +0 -52
- package/src/components/fileComs/ImportExcel.vue +0 -96
- package/src/components/fileComs/ImportJson.vue +0 -65
- package/src/components/formGenerator/components/formExport.vue +0 -52
- package/src/components/formGenerator/components/formGeneratorAttrField.vue +0 -1113
- package/src/components/formGenerator/components/formGeneratorAttrForm.vue +0 -98
- package/src/components/formGenerator/components/formGeneratorCom.vue +0 -108
- package/src/components/formGenerator/components/formGeneratorOutline.vue +0 -159
- package/src/components/formGenerator/components/formGeneratorTemp.vue +0 -77
- package/src/components/formGenerator/components/formImport.vue +0 -62
- package/src/components/formGenerator/components/formPreview.vue +0 -102
- package/src/components/formGenerator/configComponents/DataConfig.vue +0 -156
- package/src/components/formGenerator/configComponents/DataDialog.vue +0 -188
- package/src/components/formGenerator/configComponents/EventConfig.vue +0 -56
- package/src/components/formGenerator/configComponents/PageConfig.vue +0 -55
- package/src/components/formGenerator/configComponents/RegConfig.vue +0 -105
- package/src/components/formGenerator/configComponents/ShadowConfig.vue +0 -95
- package/src/components/formGenerator/configComponents/SpaceConfig.vue +0 -187
- package/src/components/formGenerator/configComponents/StyleConfig.vue +0 -258
- package/src/components/formGenerator/configComponents/TableConfig.vue +0 -75
- package/src/components/formGenerator/configComponents/TableHead.vue +0 -141
- package/src/components/formGenerator/formComponents/pcComponents/assistComs/formButton.vue +0 -25
- package/src/components/formGenerator/formComponents/pcComponents/assistComs/formDivider.vue +0 -49
- package/src/components/formGenerator/formComponents/pcComponents/assistComs/formHtml.vue +0 -37
- package/src/components/formGenerator/formComponents/pcComponents/assistComs/formLink.vue +0 -26
- package/src/components/formGenerator/formComponents/pcComponents/assistComs/formNotice.vue +0 -118
- package/src/components/formGenerator/formComponents/pcComponents/assistComs/formRemark.vue +0 -29
- package/src/components/formGenerator/formComponents/pcComponents/assistComs/formSwipe.vue +0 -39
- package/src/components/formGenerator/formComponents/pcComponents/assistComs/formTable.vue +0 -130
- package/src/components/formGenerator/formComponents/pcComponents/assistComs/formTableExport.vue +0 -311
- package/src/components/formGenerator/formComponents/pcComponents/assistComs/formTag.vue +0 -30
- package/src/components/formGenerator/formComponents/pcComponents/assistComs/formText.vue +0 -27
- package/src/components/formGenerator/formComponents/pcComponents/assistComs/formTree.vue +0 -47
- package/src/components/formGenerator/formComponents/pcComponents/components/emptyTips.vue +0 -24
- package/src/components/formGenerator/formComponents/pcComponents/components/esignDialog.vue +0 -86
- package/src/components/formGenerator/formComponents/pcComponents/components/filesShow.vue +0 -121
- package/src/components/formGenerator/formComponents/pcComponents/components/imageShow.vue +0 -148
- package/src/components/formGenerator/formComponents/pcComponents/components/nameShow.vue +0 -54
- package/src/components/formGenerator/formComponents/pcComponents/components/tableOptions.vue +0 -56
- package/src/components/formGenerator/formComponents/pcComponents/components/tableStyle.vue +0 -58
- package/src/components/formGenerator/formComponents/pcComponents/components/userPicker.vue +0 -440
- package/src/components/formGenerator/formComponents/pcComponents/inputComs/formAutocomplete.vue +0 -79
- package/src/components/formGenerator/formComponents/pcComponents/inputComs/formInput.vue +0 -56
- package/src/components/formGenerator/formComponents/pcComponents/inputComs/formInputNumber.vue +0 -51
- package/src/components/formGenerator/formComponents/pcComponents/inputComs/formRichText.vue +0 -138
- package/src/components/formGenerator/formComponents/pcComponents/layoutComs/formCard.vue +0 -35
- package/src/components/formGenerator/formComponents/pcComponents/layoutComs/formCollapse.vue +0 -79
- package/src/components/formGenerator/formComponents/pcComponents/layoutComs/formRowContainer.vue +0 -337
- package/src/components/formGenerator/formComponents/pcComponents/layoutComs/formSteps.vue +0 -90
- package/src/components/formGenerator/formComponents/pcComponents/layoutComs/formSub.vue +0 -219
- package/src/components/formGenerator/formComponents/pcComponents/layoutComs/formTableContainer.vue +0 -277
- package/src/components/formGenerator/formComponents/pcComponents/layoutComs/formTabsContainer.vue +0 -65
- package/src/components/formGenerator/formComponents/pcComponents/selectComs/formCascader.vue +0 -62
- package/src/components/formGenerator/formComponents/pcComponents/selectComs/formCheckboxGroup.vue +0 -70
- package/src/components/formGenerator/formComponents/pcComponents/selectComs/formColorPicker.vue +0 -39
- package/src/components/formGenerator/formComponents/pcComponents/selectComs/formDatePicker.vue +0 -43
- package/src/components/formGenerator/formComponents/pcComponents/selectComs/formDaterangePicker.vue +0 -40
- package/src/components/formGenerator/formComponents/pcComponents/selectComs/formImage.vue +0 -235
- package/src/components/formGenerator/formComponents/pcComponents/selectComs/formOrgPicker.vue +0 -131
- package/src/components/formGenerator/formComponents/pcComponents/selectComs/formRadioGroup.vue +0 -59
- package/src/components/formGenerator/formComponents/pcComponents/selectComs/formRate.vue +0 -50
- package/src/components/formGenerator/formComponents/pcComponents/selectComs/formSelect.vue +0 -62
- package/src/components/formGenerator/formComponents/pcComponents/selectComs/formSelectHis.vue +0 -66
- package/src/components/formGenerator/formComponents/pcComponents/selectComs/formSelectProject.vue +0 -62
- package/src/components/formGenerator/formComponents/pcComponents/selectComs/formSignature.vue +0 -98
- package/src/components/formGenerator/formComponents/pcComponents/selectComs/formSlider.vue +0 -46
- package/src/components/formGenerator/formComponents/pcComponents/selectComs/formSwitch.vue +0 -37
- package/src/components/formGenerator/formComponents/pcComponents/selectComs/formTimePicker.vue +0 -41
- package/src/components/formGenerator/formComponents/pcComponents/selectComs/formTimerangePicker.vue +0 -40
- package/src/components/formGenerator/formComponents/pcComponents/selectComs/formUpload.vue +0 -253
- package/src/components/formGenerator/formComponents/pcComponents/selectComs/formUploadTemp.vue +0 -82
- package/src/components/formGenerator/formComponents/pcComponents/selectComs/formUserPicker.vue +0 -142
- package/src/components/formGenerator/formComponents/pcForm.vue +0 -155
- package/src/components/formGenerator/formComponents/phoneComponents/assistComs/formButton.vue +0 -36
- package/src/components/formGenerator/formComponents/phoneComponents/assistComs/formDivider.vue +0 -41
- package/src/components/formGenerator/formComponents/phoneComponents/assistComs/formHtml.vue +0 -37
- package/src/components/formGenerator/formComponents/phoneComponents/assistComs/formLink.vue +0 -49
- package/src/components/formGenerator/formComponents/phoneComponents/assistComs/formNotice.vue +0 -43
- package/src/components/formGenerator/formComponents/phoneComponents/assistComs/formRemark.vue +0 -39
- package/src/components/formGenerator/formComponents/phoneComponents/assistComs/formSwipe.vue +0 -34
- package/src/components/formGenerator/formComponents/phoneComponents/assistComs/formTable.vue +0 -132
- package/src/components/formGenerator/formComponents/phoneComponents/assistComs/formTableExport.vue +0 -268
- package/src/components/formGenerator/formComponents/phoneComponents/assistComs/formTag.vue +0 -147
- package/src/components/formGenerator/formComponents/phoneComponents/assistComs/formText.vue +0 -27
- package/src/components/formGenerator/formComponents/phoneComponents/assistComs/formTree.vue +0 -21
- package/src/components/formGenerator/formComponents/phoneComponents/components/cascaderPicker.vue +0 -81
- package/src/components/formGenerator/formComponents/phoneComponents/components/datePicker.vue +0 -101
- package/src/components/formGenerator/formComponents/phoneComponents/components/esignDialog.vue +0 -156
- package/src/components/formGenerator/formComponents/phoneComponents/components/filesShow.vue +0 -128
- package/src/components/formGenerator/formComponents/phoneComponents/components/imageShow.vue +0 -123
- package/src/components/formGenerator/formComponents/phoneComponents/components/nameShow.vue +0 -84
- package/src/components/formGenerator/formComponents/phoneComponents/components/orgPicker.vue +0 -343
- package/src/components/formGenerator/formComponents/phoneComponents/components/tableShow.vue +0 -149
- package/src/components/formGenerator/formComponents/phoneComponents/components/textShow.vue +0 -25
- package/src/components/formGenerator/formComponents/phoneComponents/components/timePicker.vue +0 -90
- package/src/components/formGenerator/formComponents/phoneComponents/inputComs/formAutocomplete.vue +0 -163
- package/src/components/formGenerator/formComponents/phoneComponents/inputComs/formInput.vue +0 -111
- package/src/components/formGenerator/formComponents/phoneComponents/inputComs/formInputNumber.vue +0 -65
- package/src/components/formGenerator/formComponents/phoneComponents/inputComs/formRichText.vue +0 -147
- package/src/components/formGenerator/formComponents/phoneComponents/layoutComs/formCard.vue +0 -59
- package/src/components/formGenerator/formComponents/phoneComponents/layoutComs/formCollapse.vue +0 -71
- package/src/components/formGenerator/formComponents/phoneComponents/layoutComs/formRowContainer.vue +0 -94
- package/src/components/formGenerator/formComponents/phoneComponents/layoutComs/formSteps.vue +0 -112
- package/src/components/formGenerator/formComponents/phoneComponents/layoutComs/formSub.vue +0 -130
- package/src/components/formGenerator/formComponents/phoneComponents/layoutComs/formTableContainer.vue +0 -93
- package/src/components/formGenerator/formComponents/phoneComponents/layoutComs/formTabsContainer.vue +0 -64
- package/src/components/formGenerator/formComponents/phoneComponents/selectComs/formCascader.vue +0 -210
- package/src/components/formGenerator/formComponents/phoneComponents/selectComs/formCheckboxGroup.vue +0 -86
- package/src/components/formGenerator/formComponents/phoneComponents/selectComs/formColorPicker.vue +0 -63
- package/src/components/formGenerator/formComponents/phoneComponents/selectComs/formDatePicker.vue +0 -100
- package/src/components/formGenerator/formComponents/phoneComponents/selectComs/formDateRangePicker.vue +0 -136
- package/src/components/formGenerator/formComponents/phoneComponents/selectComs/formImage.vue +0 -278
- package/src/components/formGenerator/formComponents/phoneComponents/selectComs/formOrgPicker.vue +0 -107
- package/src/components/formGenerator/formComponents/phoneComponents/selectComs/formRadioGroup.vue +0 -93
- package/src/components/formGenerator/formComponents/phoneComponents/selectComs/formRate.vue +0 -85
- package/src/components/formGenerator/formComponents/phoneComponents/selectComs/formSelect.vue +0 -138
- package/src/components/formGenerator/formComponents/phoneComponents/selectComs/formSelectHis.vue +0 -142
- package/src/components/formGenerator/formComponents/phoneComponents/selectComs/formSelectProject.vue +0 -138
- package/src/components/formGenerator/formComponents/phoneComponents/selectComs/formSignature.vue +0 -108
- package/src/components/formGenerator/formComponents/phoneComponents/selectComs/formSlider.vue +0 -79
- package/src/components/formGenerator/formComponents/phoneComponents/selectComs/formSwitch.vue +0 -88
- package/src/components/formGenerator/formComponents/phoneComponents/selectComs/formTimePicker.vue +0 -112
- package/src/components/formGenerator/formComponents/phoneComponents/selectComs/formTimeRangePicker.vue +0 -155
- package/src/components/formGenerator/formComponents/phoneComponents/selectComs/formUpload.vue +0 -310
- package/src/components/formGenerator/formComponents/phoneComponents/selectComs/formUploadTemp.vue +0 -81
- package/src/components/formGenerator/formComponents/phoneComponents/selectComs/formUserPicker.vue +0 -114
- package/src/components/formGenerator/formComponents/phoneForm.vue +0 -134
- package/src/components/formGenerator/formGenerator.vue +0 -401
- package/src/components/formGenerator/styles/generator.scss +0 -271
- package/src/components/formGenerator/styles/index.scss +0 -136
- package/src/components/formGenerator/styles/left-coms.scss +0 -57
- package/src/components/formGenerator/styles/phone.scss +0 -269
- package/src/components/formGenerator/styles/theme.scss +0 -5
- package/src/components/formGenerator/utils/attribute.js +0 -107
- package/src/components/formGenerator/utils/comMixins.js +0 -148
- package/src/components/formGenerator/utils/component.js +0 -26
- package/src/components/formGenerator/utils/config.js +0 -1730
- package/src/components/formGenerator/utils/event.js +0 -82
- package/src/components/formGenerator/utils/formEvent.js +0 -43
- package/src/components/formGenerator/utils/index.js +0 -666
- package/src/components/formGenerator/utils/rules.js +0 -17
- package/src/components/formGenerator/utils/style.js +0 -75
- package/src/components/formGenerator/utils/table.js +0 -317
- package/src/components/formGenerator/utils/temps.js +0 -15303
- package/src/components/huComponents/FGBreadNav.vue +0 -86
- package/src/components/huComponents/FGCheckCell.vue +0 -107
- package/src/components/huComponents/FGCheckList.vue +0 -318
- package/src/components/huComponents/FGCheckPopUp.vue +0 -164
- package/src/components/huComponents/FGIconsDialog.vue +0 -124
- package/src/components/huComponents/FGNameImg.vue +0 -147
- package/src/components/huComponents/FGOptions.vue +0 -118
- package/src/components/huComponents/FGSelect.vue +0 -46
- package/src/components/huComponents/FGTreeNode.vue +0 -103
- package/src/components/huComponents/FGTreeNodeDialog.vue +0 -89
- package/src/components/huComponents/InputColor.vue +0 -117
- package/src/components/huComponents/InputNumber.vue +0 -78
- package/src/components/huComponents/LayoutTree.vue +0 -67
- package/src/components/huComponents/MenuButton.vue +0 -57
- package/src/components/index.js +0 -14
- package/src/icons/index.js +0 -10
- package/src/icons/svg/active.svg +0 -1
- package/src/icons/svg/addSold.svg +0 -1
- package/src/icons/svg/analyse.svg +0 -1
- package/src/icons/svg/button.svg +0 -1
- package/src/icons/svg/card.svg +0 -1
- package/src/icons/svg/cascader.svg +0 -1
- package/src/icons/svg/checkbox.svg +0 -1
- package/src/icons/svg/collapse.svg +0 -1
- package/src/icons/svg/color.svg +0 -1
- package/src/icons/svg/component.svg +0 -1
- package/src/icons/svg/date-range.svg +0 -1
- package/src/icons/svg/date.svg +0 -1
- package/src/icons/svg/default-dept.svg +0 -9
- package/src/icons/svg/default-role.svg +0 -5
- package/src/icons/svg/default-user.svg +0 -16
- package/src/icons/svg/dept.svg +0 -1
- package/src/icons/svg/divider.svg +0 -1
- package/src/icons/svg/ellipsis.svg +0 -2
- package/src/icons/svg/html.svg +0 -1
- package/src/icons/svg/image.svg +0 -1
- package/src/icons/svg/input.svg +0 -1
- package/src/icons/svg/link.svg +0 -1
- package/src/icons/svg/mp4.svg +0 -19
- package/src/icons/svg/notice.svg +0 -1
- package/src/icons/svg/noview.svg +0 -1
- package/src/icons/svg/number.svg +0 -1
- package/src/icons/svg/password.svg +0 -1
- package/src/icons/svg/pdf.svg +0 -18
- package/src/icons/svg/person.svg +0 -1
- package/src/icons/svg/png.svg +0 -18
- package/src/icons/svg/ppt.svg +0 -19
- package/src/icons/svg/process.svg +0 -1
- package/src/icons/svg/radio.svg +0 -1
- package/src/icons/svg/rate.svg +0 -1
- package/src/icons/svg/remark.svg +0 -1
- package/src/icons/svg/rich-text.svg +0 -1
- package/src/icons/svg/row.svg +0 -1
- package/src/icons/svg/select.svg +0 -1
- package/src/icons/svg/signature.svg +0 -1
- package/src/icons/svg/slider.svg +0 -1
- package/src/icons/svg/steps.svg +0 -1
- package/src/icons/svg/sub.svg +0 -1
- package/src/icons/svg/swipe.svg +0 -1
- package/src/icons/svg/switch.svg +0 -1
- package/src/icons/svg/table-edit.svg +0 -1
- package/src/icons/svg/table.svg +0 -1
- package/src/icons/svg/table2.svg +0 -1
- package/src/icons/svg/table3.svg +0 -1
- package/src/icons/svg/tabs.svg +0 -1
- package/src/icons/svg/tag.svg +0 -1
- package/src/icons/svg/text.svg +0 -1
- package/src/icons/svg/textarea.svg +0 -1
- package/src/icons/svg/time-range.svg +0 -1
- package/src/icons/svg/time.svg +0 -1
- package/src/icons/svg/tree.svg +0 -1
- package/src/icons/svg/unknow.svg +0 -20
- package/src/icons/svg/upload.svg +0 -1
- package/src/icons/svg/view.svg +0 -1
- package/src/icons/svg/word.svg +0 -20
- package/src/icons/svg/xlsx.svg +0 -18
- package/src/icons/svg/zip.svg +0 -20
- package/src/images/phone_bg.png +0 -0
- package/src/main.js +0 -26
- package/src/package/FGDesigner.vue +0 -114
- package/src/package/FGPcForm.vue +0 -100
- package/src/package/FGPcShow.vue +0 -69
- package/src/package/FGPhoneForm.vue +0 -106
- package/src/package/FGPhoneShow.vue +0 -69
- package/src/package/common/init.js +0 -23
- package/src/package/common/initPc.js +0 -26
- package/src/package/common/initPhone.js +0 -28
- package/src/package/common/mixins.js +0 -57
- package/src/package/index.js +0 -40
- package/src/plugins/richEditor/richEditorPc.vue +0 -478
- package/src/plugins/richEditor/richEditorPhone.vue +0 -520
- package/src/plugins/voiceTxtarea/voiceTxtarea.vue +0 -115
- package/src/router.js +0 -111
- package/src/store/index.js +0 -14
- package/src/store/modules/app.js +0 -54
- package/src/store/modules/user.js +0 -23
- package/src/style/color.scss +0 -10
- package/src/style/main.scss +0 -78
- package/src/utils/comsData.js +0 -279
- package/src/utils/defaultValue.js +0 -2288
- package/src/utils/drawingDefalut.js +0 -2749
- package/src/utils/iconData.js +0 -283
- package/src/utils/index.js +0 -6
- package/src/utils/progress.js +0 -96
- package/src/utils/request.js +0 -41
- package/src/views/coms/components/Attributes.vue +0 -28
- package/src/views/coms/components/ELink.vue +0 -23
- package/src/views/coms/components/Events.vue +0 -20
- package/src/views/coms/components/Example.vue +0 -42
- package/src/views/coms/components/Methods.vue +0 -20
- package/src/views/coms/components/VLink.vue +0 -23
- package/src/views/coms/comsDesiger.vue +0 -224
- package/src/views/coms/comsFormPc.vue +0 -76
- package/src/views/coms/comsFormPhone.vue +0 -103
- package/src/views/coms/comsShowPc.vue +0 -56
- package/src/views/coms/comsShowPhone.vue +0 -89
- package/src/views/config/components/configCell.vue +0 -111
- package/src/views/config/config.vue +0 -84
- package/src/views/demo/demo.vue +0 -235
- package/src/views/demo/demo2.vue +0 -131
- package/src/views/demo/table.js +0 -321
- package/src/views/document/index.vue +0 -140
- package/src/views/form/create.vue +0 -44
- package/vue.config.js +0 -72
- /package/{@xfu0401/form-generator/demo.html → demo.html} +0 -0
- /package/{@xfu0401/form-generator/form-generator.common.js → form-generator.common.js} +0 -0
- /package/{@xfu0401/form-generator/form-generator.common.js.map → form-generator.common.js.map} +0 -0
- /package/{@xfu0401/form-generator/form-generator.css → form-generator.css} +0 -0
- /package/{@xfu0401/form-generator/form-generator.umd.js → form-generator.umd.js} +0 -0
- /package/{@xfu0401/form-generator/form-generator.umd.js.map → form-generator.umd.js.map} +0 -0
- /package/{@xfu0401/form-generator/form-generator.umd.min.js → form-generator.umd.min.js} +0 -0
- /package/{@xfu0401/form-generator/form-generator.umd.min.js.map → form-generator.umd.min.js.map} +0 -0
- /package/{@xfu0401/form-generator/static → static}/fonts/element-icons.535877f5.woff +0 -0
- /package/{@xfu0401/form-generator/static → static}/fonts/element-icons.732389de.ttf +0 -0
- /package/{@xfu0401/form-generator/static → static}/img/phone_bg.7ead1463.png +0 -0
|
@@ -1,1730 +0,0 @@
|
|
|
1
|
-
import { deepClone, getUuiKey } from "./index"
|
|
2
|
-
import { styleObj } from "./style"
|
|
3
|
-
import { onCreated, onMounted, onBlur, onFocus, onClick, onChange, onInput, onClear, onConfirm, onFinish, eventList } from "./event"
|
|
4
|
-
|
|
5
|
-
window.APLURL = '/MCAPI'
|
|
6
|
-
|
|
7
|
-
// 表单属性【右面板】
|
|
8
|
-
export let formConf = {
|
|
9
|
-
formRef: 'elForm',
|
|
10
|
-
formCode: '',
|
|
11
|
-
formModel: 'formData',
|
|
12
|
-
size: 'medium',
|
|
13
|
-
labelPosition: 'right',
|
|
14
|
-
labelWidth: 100,
|
|
15
|
-
formRules: 'rules',
|
|
16
|
-
disabled: false,
|
|
17
|
-
// span: 24,
|
|
18
|
-
formBtns: true,
|
|
19
|
-
unFocusedComponentBorder: true,
|
|
20
|
-
cssList: [{ "name": getUuiKey(), "code": "color:red;" }],
|
|
21
|
-
eventList: eventList,
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
// 输入型组件 【左面板】
|
|
25
|
-
export let inputComponents = [
|
|
26
|
-
{
|
|
27
|
-
// 组件的自定义配置
|
|
28
|
-
__config__: {
|
|
29
|
-
label: '单行输入框',
|
|
30
|
-
labelWidth: 135,
|
|
31
|
-
showLabel: true,
|
|
32
|
-
changeTag: true,
|
|
33
|
-
tag: 'form-input',
|
|
34
|
-
tagType: 'input',
|
|
35
|
-
tagIcon: 'input',
|
|
36
|
-
defaultValue: null,
|
|
37
|
-
required: true,
|
|
38
|
-
span: 24,
|
|
39
|
-
// 正则校验规则
|
|
40
|
-
regList: []
|
|
41
|
-
},
|
|
42
|
-
__slot__: {
|
|
43
|
-
prepend: "",
|
|
44
|
-
append: "",
|
|
45
|
-
},
|
|
46
|
-
// 其余的为可直接写在组件标签上的属性
|
|
47
|
-
placeholder: '请输入',
|
|
48
|
-
clearable: true,
|
|
49
|
-
'prefix-icon': '',
|
|
50
|
-
'suffix-icon': '',
|
|
51
|
-
maxlength: 255,
|
|
52
|
-
'show-word-limit': false,
|
|
53
|
-
disabled: false, // 编辑状态禁用
|
|
54
|
-
readonly: false, // 编辑状态的只读
|
|
55
|
-
showonly: false, // 只显示详情状态(非编辑状态)
|
|
56
|
-
isHide: false, // 是否隐藏
|
|
57
|
-
isLock: false, // 是否锁定
|
|
58
|
-
event: { eventName: "", onCreated, onMounted, onBlur, onFocus, onChange, onInput, onClear },
|
|
59
|
-
styleObj, // 样式配置
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
__config__: {
|
|
63
|
-
label: '多行输入框',
|
|
64
|
-
labelWidth: 135,
|
|
65
|
-
showLabel: true,
|
|
66
|
-
tag: 'form-input',
|
|
67
|
-
tagIcon: 'textarea',
|
|
68
|
-
defaultValue: null,
|
|
69
|
-
required: true,
|
|
70
|
-
tagType: 'input',
|
|
71
|
-
span: 24,
|
|
72
|
-
regList: [],
|
|
73
|
-
changeTag: true,
|
|
74
|
-
},
|
|
75
|
-
type: 'textarea',
|
|
76
|
-
placeholder: '请输入',
|
|
77
|
-
autosize: {
|
|
78
|
-
minRows: 4,
|
|
79
|
-
maxRows: 4
|
|
80
|
-
},
|
|
81
|
-
maxlength: 20000,
|
|
82
|
-
'show-word-limit': false,
|
|
83
|
-
readonly: false,
|
|
84
|
-
disabled: false,
|
|
85
|
-
isHide: false, // 是否隐藏
|
|
86
|
-
isLock: false, // 是否锁定
|
|
87
|
-
|
|
88
|
-
event: { eventName: "", onCreated, onMounted, onBlur, onFocus, onChange, onInput, onClear },
|
|
89
|
-
|
|
90
|
-
styleObj, // 样式配置
|
|
91
|
-
},
|
|
92
|
-
// {
|
|
93
|
-
// // 组件的自定义配置
|
|
94
|
-
// __config__: {
|
|
95
|
-
// label: '自动补全',
|
|
96
|
-
// labelWidth: 135,
|
|
97
|
-
// showLabel: true,
|
|
98
|
-
// changeTag: true,
|
|
99
|
-
// tag: 'form-autocomplete',
|
|
100
|
-
// tagType: 'input',
|
|
101
|
-
// tagIcon: 'input',
|
|
102
|
-
// defaultValue: null,
|
|
103
|
-
// required: true,
|
|
104
|
-
// tagType: 'input',
|
|
105
|
-
// span: 24,
|
|
106
|
-
// // 正则校验规则
|
|
107
|
-
// regList: []
|
|
108
|
-
// },
|
|
109
|
-
// __slot__: {
|
|
110
|
-
// prepend: "",
|
|
111
|
-
// append: "",
|
|
112
|
-
// },
|
|
113
|
-
// // 其余的为可直接写在组件标签上的属性
|
|
114
|
-
// placeholder: '请输入',
|
|
115
|
-
// clearable: true,
|
|
116
|
-
// 'prefix-icon': '',
|
|
117
|
-
// 'suffix-icon': '',
|
|
118
|
-
// maxlength: 255,
|
|
119
|
-
// 'show-word-limit': false,
|
|
120
|
-
// disabled: false, // 编辑状态禁用
|
|
121
|
-
// readonly: false, // 编辑状态的只读
|
|
122
|
-
// showonly: false, // 只显示详情状态(非编辑状态)
|
|
123
|
-
// isHide: false, // 是否隐藏
|
|
124
|
-
// isLock: false, // 是否锁定
|
|
125
|
-
// event: { eventName: "", onCreated, onMounted, onBlur, onFocus, onChange, onInput, onClear },
|
|
126
|
-
// styleObj, // 样式配置
|
|
127
|
-
// "dataObj": {
|
|
128
|
-
// type: 'static',
|
|
129
|
-
// "url": "",
|
|
130
|
-
// "method": "get",
|
|
131
|
-
// "request": {},
|
|
132
|
-
// // 请求数据类型 JSON/FormData
|
|
133
|
-
// reDataType: 'JSON',
|
|
134
|
-
// "response": "// response 为接口请求成功时返回的数据",
|
|
135
|
-
// "error": "// error 为接口请求失败时返回的数据",
|
|
136
|
-
// props: {
|
|
137
|
-
// // label: 'label',
|
|
138
|
-
// value: 'value',
|
|
139
|
-
// },
|
|
140
|
-
// value: [{ value: '数据1' }, { value: '数据2' }, { value: '数据3' }], // 静态数据
|
|
141
|
-
// },
|
|
142
|
-
// },
|
|
143
|
-
// {
|
|
144
|
-
// __config__: {
|
|
145
|
-
// label: '密码',
|
|
146
|
-
// showLabel: true,
|
|
147
|
-
// labelWidth: 135,
|
|
148
|
-
// changeTag: true,
|
|
149
|
-
// tag: 'form-input',
|
|
150
|
-
// tagIcon: 'password',
|
|
151
|
-
// defaultValue: null,
|
|
152
|
-
// tagType:'input',
|
|
153
|
-
// span: 24,
|
|
154
|
-
// required: true,
|
|
155
|
-
// regList: [],
|
|
156
|
-
|
|
157
|
-
// },
|
|
158
|
-
// __slot__: {
|
|
159
|
-
// prepend: '',
|
|
160
|
-
// append: ''
|
|
161
|
-
// },
|
|
162
|
-
// placeholder: '请输入',
|
|
163
|
-
// 'show-password': true,
|
|
164
|
-
// clearable: true,
|
|
165
|
-
// 'prefix-icon': '',
|
|
166
|
-
// 'suffix-icon': '',
|
|
167
|
-
// maxlength: null,
|
|
168
|
-
// 'show-word-limit': false,
|
|
169
|
-
// readonly: false,
|
|
170
|
-
// disabled: false,
|
|
171
|
-
// isHide: false, // 是否隐藏
|
|
172
|
-
// isLock: false, // 是否锁定
|
|
173
|
-
// },
|
|
174
|
-
{
|
|
175
|
-
__config__: {
|
|
176
|
-
label: '数字输入框',
|
|
177
|
-
showLabel: true,
|
|
178
|
-
changeTag: true,
|
|
179
|
-
labelWidth: 135,
|
|
180
|
-
tag: 'form-input-number',
|
|
181
|
-
tagIcon: 'number',
|
|
182
|
-
defaultValue: null,
|
|
183
|
-
span: 24,
|
|
184
|
-
tagType: 'input',
|
|
185
|
-
// required: true,
|
|
186
|
-
regList: [],
|
|
187
|
-
},
|
|
188
|
-
placeholder: '',
|
|
189
|
-
min: undefined,
|
|
190
|
-
max: undefined,
|
|
191
|
-
step: 1,
|
|
192
|
-
'step-strictly': false,
|
|
193
|
-
precision: undefined,
|
|
194
|
-
'controls-position': '',
|
|
195
|
-
disabled: false,
|
|
196
|
-
readonly: false,
|
|
197
|
-
isHide: false, // 是否隐藏
|
|
198
|
-
isLock: false, // 是否锁定
|
|
199
|
-
|
|
200
|
-
event: { eventName: "", onCreated, onMounted, onBlur, onFocus, onChange },
|
|
201
|
-
|
|
202
|
-
styleObj, // 样式配置
|
|
203
|
-
},
|
|
204
|
-
{
|
|
205
|
-
__config__: {
|
|
206
|
-
label: '富文本输入框',
|
|
207
|
-
showLabel: true,
|
|
208
|
-
changeTag: true,
|
|
209
|
-
labelWidth: 135,
|
|
210
|
-
tag: 'form-rich-text',
|
|
211
|
-
tagIcon: 'rich-text',
|
|
212
|
-
defaultValue: null,
|
|
213
|
-
defaultValueHidden: true, // 默认值输入框隐藏
|
|
214
|
-
span: 24,
|
|
215
|
-
tagType: 'input',
|
|
216
|
-
required: true,
|
|
217
|
-
regList: [],
|
|
218
|
-
},
|
|
219
|
-
placeholder: '请输入',
|
|
220
|
-
// height: 250, // 编辑器高度
|
|
221
|
-
disabled: false,
|
|
222
|
-
readonly: false,
|
|
223
|
-
maxlength: '20000',
|
|
224
|
-
transcoding: true,
|
|
225
|
-
isHide: false, // 是否隐藏
|
|
226
|
-
isLock: false, // 是否锁定
|
|
227
|
-
|
|
228
|
-
event: { eventName: "", onCreated, onMounted, onBlur, onFocus, onInput },
|
|
229
|
-
|
|
230
|
-
styleObj, // 样式配置
|
|
231
|
-
|
|
232
|
-
}
|
|
233
|
-
]
|
|
234
|
-
|
|
235
|
-
// 选择型组件 【左面板】
|
|
236
|
-
export let selectComponents = [
|
|
237
|
-
{
|
|
238
|
-
__config__: {
|
|
239
|
-
label: '下拉选择',
|
|
240
|
-
showLabel: true,
|
|
241
|
-
labelWidth: 135,
|
|
242
|
-
tag: 'form-select',
|
|
243
|
-
tagIcon: 'select',
|
|
244
|
-
tagType: 'select',
|
|
245
|
-
span: 24,
|
|
246
|
-
required: true,
|
|
247
|
-
regList: [],
|
|
248
|
-
changeTag: true,
|
|
249
|
-
},
|
|
250
|
-
placeholder: '请选择',
|
|
251
|
-
clearable: true,
|
|
252
|
-
disabled: false,
|
|
253
|
-
readonly: false,
|
|
254
|
-
filterable: false,
|
|
255
|
-
multiple: false,
|
|
256
|
-
isHide: false, // 是否隐藏
|
|
257
|
-
isLock: false, // 是否锁定
|
|
258
|
-
// multiple: false,
|
|
259
|
-
"dataObj": {
|
|
260
|
-
type: 'static',
|
|
261
|
-
"url": "",
|
|
262
|
-
"method": "get",
|
|
263
|
-
"request": {},
|
|
264
|
-
// 请求数据类型 JSON/FormData
|
|
265
|
-
reDataType: 'JSON',
|
|
266
|
-
"response": "// response 为接口请求成功时返回的数据",
|
|
267
|
-
"error": "// error 为接口请求失败时返回的数据",
|
|
268
|
-
valueType: 'list', // 静态数据进行增删操作的组件类型
|
|
269
|
-
props: {
|
|
270
|
-
label: 'label',
|
|
271
|
-
value: 'value',
|
|
272
|
-
},
|
|
273
|
-
value: [{
|
|
274
|
-
label: '选项一',
|
|
275
|
-
value: '1'
|
|
276
|
-
}, {
|
|
277
|
-
label: '选项二',
|
|
278
|
-
value: '2'
|
|
279
|
-
}], // 静态数据
|
|
280
|
-
},
|
|
281
|
-
event: { eventName: "", onCreated, onMounted, onBlur, onFocus, onChange, onClear },
|
|
282
|
-
styleObj, // 样式配置
|
|
283
|
-
|
|
284
|
-
},
|
|
285
|
-
{
|
|
286
|
-
__config__: {
|
|
287
|
-
label: '级联选择',
|
|
288
|
-
// url: 'https://www.fastmock.site/mock/f8d7a54fb1e60561e2f720d5a810009d/fg/cascaderList',
|
|
289
|
-
// method: 'get',
|
|
290
|
-
// dataPath: 'list',
|
|
291
|
-
showLabel: true,
|
|
292
|
-
labelWidth: 135,
|
|
293
|
-
tag: 'form-cascader',
|
|
294
|
-
tagIcon: 'cascader',
|
|
295
|
-
tagType: 'select',
|
|
296
|
-
defaultValue: [],
|
|
297
|
-
span: 24,
|
|
298
|
-
required: true,
|
|
299
|
-
regList: [],
|
|
300
|
-
changeTag: true,
|
|
301
|
-
},
|
|
302
|
-
checkStrictly: false, // 任意一级选项
|
|
303
|
-
placeholder: '请选择',
|
|
304
|
-
'show-all-levels': true,
|
|
305
|
-
disabled: false,
|
|
306
|
-
readonly: false,
|
|
307
|
-
clearable: true,
|
|
308
|
-
filterable: false,
|
|
309
|
-
separator: '/',
|
|
310
|
-
isHide: false, // 是否隐藏
|
|
311
|
-
isLock: false, // 是否锁定
|
|
312
|
-
|
|
313
|
-
event: { eventName: "", onCreated, onMounted, onBlur, onFocus, onChange, onClear },
|
|
314
|
-
|
|
315
|
-
styleObj, // 样式配置
|
|
316
|
-
multiple: false,
|
|
317
|
-
"dataObj": {
|
|
318
|
-
type: 'static',
|
|
319
|
-
"url": "",
|
|
320
|
-
"method": "get",
|
|
321
|
-
"request": {},
|
|
322
|
-
// 请求数据类型 JSON/FormData
|
|
323
|
-
reDataType: 'JSON',
|
|
324
|
-
"response": "// response 为接口请求成功时返回的数据",
|
|
325
|
-
"error": "// error 为接口请求失败时返回的数据",
|
|
326
|
-
valueType: 'tree', // 静态数据进行增删操作的组件类型
|
|
327
|
-
props: {
|
|
328
|
-
label: 'label',
|
|
329
|
-
value: 'value',
|
|
330
|
-
children: 'children'
|
|
331
|
-
},
|
|
332
|
-
value: [{
|
|
333
|
-
value: '1',
|
|
334
|
-
label: '选项1',
|
|
335
|
-
children: [{
|
|
336
|
-
value: '2',
|
|
337
|
-
label: '选项1-1',
|
|
338
|
-
}]
|
|
339
|
-
}], // 静态数据
|
|
340
|
-
},
|
|
341
|
-
},
|
|
342
|
-
{
|
|
343
|
-
__config__: {
|
|
344
|
-
label: '单选框组',
|
|
345
|
-
labelWidth: 135,
|
|
346
|
-
showLabel: true,
|
|
347
|
-
tag: 'form-radio-group',
|
|
348
|
-
tagIcon: 'radio',
|
|
349
|
-
changeTag: true,
|
|
350
|
-
defaultValue: null,
|
|
351
|
-
tagType: 'select',
|
|
352
|
-
span: 24,
|
|
353
|
-
optionType: 'default',
|
|
354
|
-
regList: [],
|
|
355
|
-
required: true,
|
|
356
|
-
border: false,
|
|
357
|
-
},
|
|
358
|
-
style: {},
|
|
359
|
-
size: 'medium',
|
|
360
|
-
disabled: false,
|
|
361
|
-
readonly: false,
|
|
362
|
-
isHide: false, // 是否隐藏
|
|
363
|
-
isLock: false, // 是否锁定
|
|
364
|
-
"dataObj": {
|
|
365
|
-
type: 'static',
|
|
366
|
-
"url": "",
|
|
367
|
-
"method": "get",
|
|
368
|
-
"request": {},
|
|
369
|
-
// 请求数据类型 JSON/FormData
|
|
370
|
-
reDataType: 'JSON',
|
|
371
|
-
"response": "// response 为接口请求成功时返回的数据",
|
|
372
|
-
"error": "// error 为接口请求失败时返回的数据",
|
|
373
|
-
valueType: 'list', // 静态数据进行增删操作的组件类型
|
|
374
|
-
props: {
|
|
375
|
-
label: 'label',
|
|
376
|
-
value: 'value',
|
|
377
|
-
},
|
|
378
|
-
value: [{
|
|
379
|
-
label: '选项一',
|
|
380
|
-
value: '1'
|
|
381
|
-
}, {
|
|
382
|
-
label: '选项二',
|
|
383
|
-
value: '2'
|
|
384
|
-
}], // 静态数据
|
|
385
|
-
},
|
|
386
|
-
event: { eventName: "", onCreated, onMounted, onChange },
|
|
387
|
-
|
|
388
|
-
styleObj, // 样式配置
|
|
389
|
-
|
|
390
|
-
},
|
|
391
|
-
{
|
|
392
|
-
__config__: {
|
|
393
|
-
label: '多选框组',
|
|
394
|
-
tag: 'form-checkbox-group',
|
|
395
|
-
tagIcon: 'checkbox',
|
|
396
|
-
defaultValue: '',
|
|
397
|
-
span: 24,
|
|
398
|
-
showLabel: true,
|
|
399
|
-
labelWidth: 135,
|
|
400
|
-
tagType: 'select',
|
|
401
|
-
optionType: 'default',
|
|
402
|
-
required: true,
|
|
403
|
-
regList: [],
|
|
404
|
-
changeTag: true,
|
|
405
|
-
border: false,
|
|
406
|
-
},
|
|
407
|
-
style: {},
|
|
408
|
-
size: 'medium',
|
|
409
|
-
min: null,
|
|
410
|
-
max: null,
|
|
411
|
-
disabled: false,
|
|
412
|
-
readonly: false,
|
|
413
|
-
isHide: false, // 是否隐藏
|
|
414
|
-
isLock: false, // 是否锁定
|
|
415
|
-
"dataObj": {
|
|
416
|
-
type: 'static',
|
|
417
|
-
"url": "",
|
|
418
|
-
"method": "get",
|
|
419
|
-
"request": {},
|
|
420
|
-
// 请求数据类型 JSON/FormData
|
|
421
|
-
reDataType: 'JSON',
|
|
422
|
-
"response": "// response 为接口请求成功时返回的数据",
|
|
423
|
-
"error": "// error 为接口请求失败时返回的数据",
|
|
424
|
-
valueType: 'list', // 静态数据进行增删操作的组件类型
|
|
425
|
-
props: {
|
|
426
|
-
label: 'label',
|
|
427
|
-
value: 'value',
|
|
428
|
-
},
|
|
429
|
-
value: [{
|
|
430
|
-
label: '选项一',
|
|
431
|
-
value: '1'
|
|
432
|
-
}, {
|
|
433
|
-
label: '选项二',
|
|
434
|
-
value: '2'
|
|
435
|
-
}], // 静态数据
|
|
436
|
-
},
|
|
437
|
-
event: { eventName: "", onCreated, onMounted, onChange },
|
|
438
|
-
|
|
439
|
-
styleObj, // 样式配置
|
|
440
|
-
|
|
441
|
-
},
|
|
442
|
-
{
|
|
443
|
-
__config__: {
|
|
444
|
-
label: '开关',
|
|
445
|
-
tag: 'form-switch',
|
|
446
|
-
tagIcon: 'switch',
|
|
447
|
-
defaultValue: false,
|
|
448
|
-
span: 24,
|
|
449
|
-
showLabel: true,
|
|
450
|
-
labelWidth: 135,
|
|
451
|
-
tagType: 'select',
|
|
452
|
-
// required: true,
|
|
453
|
-
// regList: [],
|
|
454
|
-
changeTag: true,
|
|
455
|
-
},
|
|
456
|
-
style: {},
|
|
457
|
-
disabled: false,
|
|
458
|
-
readonly: false,
|
|
459
|
-
'active-text': '',
|
|
460
|
-
'inactive-text': '',
|
|
461
|
-
'active-color': null,
|
|
462
|
-
'inactive-color': null,
|
|
463
|
-
'active-value': true,
|
|
464
|
-
'inactive-value': false,
|
|
465
|
-
isHide: false,
|
|
466
|
-
|
|
467
|
-
event: { eventName: "", onCreated, onMounted, onChange },
|
|
468
|
-
|
|
469
|
-
styleObj, // 样式配置
|
|
470
|
-
|
|
471
|
-
},
|
|
472
|
-
{
|
|
473
|
-
__config__: {
|
|
474
|
-
label: '滑块',
|
|
475
|
-
tag: 'form-slider',
|
|
476
|
-
tagIcon: 'slider',
|
|
477
|
-
defaultValue: null,
|
|
478
|
-
span: 24,
|
|
479
|
-
showLabel: true,
|
|
480
|
-
tagType: 'select',
|
|
481
|
-
labelWidth: 135,
|
|
482
|
-
required: true,
|
|
483
|
-
regList: [],
|
|
484
|
-
changeTag: true,
|
|
485
|
-
},
|
|
486
|
-
disabled: false,
|
|
487
|
-
readonly: false,
|
|
488
|
-
min: 0,
|
|
489
|
-
max: 100,
|
|
490
|
-
step: 1,
|
|
491
|
-
'show-stops': false,
|
|
492
|
-
range: false,
|
|
493
|
-
isHide: false, // 是否隐藏
|
|
494
|
-
isLock: false, // 是否锁定
|
|
495
|
-
|
|
496
|
-
event: { eventName: "", onCreated, onMounted, onChange },
|
|
497
|
-
|
|
498
|
-
styleObj, // 样式配置
|
|
499
|
-
|
|
500
|
-
},
|
|
501
|
-
{
|
|
502
|
-
__config__: {
|
|
503
|
-
label: '时间选择',
|
|
504
|
-
tag: 'form-time-picker',
|
|
505
|
-
tagIcon: 'time',
|
|
506
|
-
defaultValue: null,
|
|
507
|
-
defaultValueHidden: true, // 默认值输入框隐藏
|
|
508
|
-
span: 24,
|
|
509
|
-
showLabel: true,
|
|
510
|
-
tagType: 'select',
|
|
511
|
-
labelWidth: 135,
|
|
512
|
-
required: true,
|
|
513
|
-
regList: [],
|
|
514
|
-
changeTag: true,
|
|
515
|
-
},
|
|
516
|
-
placeholder: '请选择',
|
|
517
|
-
disabled: false,
|
|
518
|
-
readonly: false,
|
|
519
|
-
clearable: true,
|
|
520
|
-
'picker-options': {
|
|
521
|
-
selectableRange: '00:00:00-23:59:59'
|
|
522
|
-
},
|
|
523
|
-
format: 'HH:mm:ss',
|
|
524
|
-
'value-format': 'HH:mm:ss',
|
|
525
|
-
isHide: false, // 是否隐藏
|
|
526
|
-
isLock: false, // 是否锁定
|
|
527
|
-
|
|
528
|
-
event: { eventName: "", onCreated, onMounted, onBlur, onFocus, onChange, onClear },
|
|
529
|
-
|
|
530
|
-
styleObj, // 样式配置
|
|
531
|
-
|
|
532
|
-
},
|
|
533
|
-
{
|
|
534
|
-
__config__: {
|
|
535
|
-
label: '时间区间',
|
|
536
|
-
tag: 'form-timerange-picker',
|
|
537
|
-
tagIcon: 'time-range',
|
|
538
|
-
span: 24,
|
|
539
|
-
showLabel: true,
|
|
540
|
-
labelWidth: 135,
|
|
541
|
-
tagType: 'select',
|
|
542
|
-
defaultValue: null,
|
|
543
|
-
defaultValueHidden: true, // 默认值输入框隐藏
|
|
544
|
-
required: true,
|
|
545
|
-
regList: [],
|
|
546
|
-
changeTag: true,
|
|
547
|
-
},
|
|
548
|
-
disabled: false,
|
|
549
|
-
readonly: false,
|
|
550
|
-
clearable: true,
|
|
551
|
-
'is-range': true,
|
|
552
|
-
'range-separator': '至',
|
|
553
|
-
'start-placeholder': '开始时间',
|
|
554
|
-
'end-placeholder': '结束时间',
|
|
555
|
-
format: 'HH:mm:ss',
|
|
556
|
-
'value-format': 'HH:mm:ss',
|
|
557
|
-
isHide: false, // 是否隐藏
|
|
558
|
-
isLock: false, // 是否锁定
|
|
559
|
-
|
|
560
|
-
event: { eventName: "", onCreated, onMounted, onBlur, onFocus, onChange, onClear },
|
|
561
|
-
|
|
562
|
-
styleObj, // 样式配置
|
|
563
|
-
|
|
564
|
-
},
|
|
565
|
-
{
|
|
566
|
-
__config__: {
|
|
567
|
-
label: '日期选择',
|
|
568
|
-
tag: 'form-date-picker',
|
|
569
|
-
tagIcon: 'date',
|
|
570
|
-
defaultValue: null,
|
|
571
|
-
defaultValueHidden: true, // 默认值输入框隐藏
|
|
572
|
-
showLabel: true,
|
|
573
|
-
labelWidth: 135,
|
|
574
|
-
span: 24,
|
|
575
|
-
tagType: 'select',
|
|
576
|
-
required: true,
|
|
577
|
-
regList: [],
|
|
578
|
-
changeTag: true,
|
|
579
|
-
},
|
|
580
|
-
placeholder: '请选择',
|
|
581
|
-
type: 'date',
|
|
582
|
-
disabled: false,
|
|
583
|
-
clearable: true,
|
|
584
|
-
format: 'yyyy-MM-dd',
|
|
585
|
-
'value-format': 'yyyy-MM-dd',
|
|
586
|
-
readonly: false,
|
|
587
|
-
isHide: false, // 是否隐藏
|
|
588
|
-
isLock: false, // 是否锁定
|
|
589
|
-
|
|
590
|
-
event: { eventName: "", onCreated, onMounted, onBlur, onFocus, onChange, onClear },
|
|
591
|
-
|
|
592
|
-
styleObj, // 样式配置
|
|
593
|
-
|
|
594
|
-
},
|
|
595
|
-
{
|
|
596
|
-
__config__: {
|
|
597
|
-
label: '日期区间',
|
|
598
|
-
tag: 'form-daterange-picker',
|
|
599
|
-
tagIcon: 'date-range',
|
|
600
|
-
defaultValue: null,
|
|
601
|
-
defaultValueHidden: true, // 默认值输入框隐藏
|
|
602
|
-
span: 24,
|
|
603
|
-
showLabel: true,
|
|
604
|
-
labelWidth: 135,
|
|
605
|
-
required: true,
|
|
606
|
-
tagType: 'select',
|
|
607
|
-
regList: [],
|
|
608
|
-
changeTag: true,
|
|
609
|
-
},
|
|
610
|
-
type: 'daterange',
|
|
611
|
-
'range-separator': '至',
|
|
612
|
-
'start-placeholder': '开始日期',
|
|
613
|
-
'end-placeholder': '结束日期',
|
|
614
|
-
disabled: false,
|
|
615
|
-
clearable: true,
|
|
616
|
-
format: 'yyyy-MM-dd',
|
|
617
|
-
'value-format': 'yyyy-MM-dd',
|
|
618
|
-
readonly: false,
|
|
619
|
-
isHide: false, // 是否隐藏
|
|
620
|
-
isLock: false, // 是否锁定
|
|
621
|
-
|
|
622
|
-
event: { eventName: "", onCreated, onMounted, onBlur, onFocus, onChange, onClear },
|
|
623
|
-
|
|
624
|
-
styleObj, // 样式配置
|
|
625
|
-
|
|
626
|
-
},
|
|
627
|
-
{
|
|
628
|
-
__config__: {
|
|
629
|
-
label: '日期时间选择',
|
|
630
|
-
tag: 'form-date-picker',
|
|
631
|
-
tagIcon: 'date',
|
|
632
|
-
defaultValue: null,
|
|
633
|
-
defaultValueHidden: true, // 默认值输入框隐藏
|
|
634
|
-
showLabel: true,
|
|
635
|
-
labelWidth: 135,
|
|
636
|
-
span: 24,
|
|
637
|
-
tagType: 'select',
|
|
638
|
-
required: true,
|
|
639
|
-
regList: [],
|
|
640
|
-
changeTag: true,
|
|
641
|
-
},
|
|
642
|
-
placeholder: '请选择',
|
|
643
|
-
type: 'datetime',
|
|
644
|
-
disabled: false,
|
|
645
|
-
clearable: true,
|
|
646
|
-
format: 'yyyy-MM-dd HH:mm:ss',
|
|
647
|
-
'value-format': 'yyyy-MM-dd HH:mm:ss',
|
|
648
|
-
readonly: false,
|
|
649
|
-
isHide: false, // 是否隐藏
|
|
650
|
-
isLock: false, // 是否锁定
|
|
651
|
-
|
|
652
|
-
event: { eventName: "", onCreated, onMounted, onBlur, onFocus, onChange, onClear },
|
|
653
|
-
|
|
654
|
-
styleObj, // 样式配置
|
|
655
|
-
|
|
656
|
-
},
|
|
657
|
-
{
|
|
658
|
-
__config__: {
|
|
659
|
-
label: '日期时间区间',
|
|
660
|
-
tag: 'form-daterange-picker',
|
|
661
|
-
tagIcon: 'date-range',
|
|
662
|
-
defaultValue: null,
|
|
663
|
-
defaultValueHidden: true, // 默认值输入框隐藏
|
|
664
|
-
span: 24,
|
|
665
|
-
showLabel: true,
|
|
666
|
-
labelWidth: 135,
|
|
667
|
-
required: true,
|
|
668
|
-
tagType: 'select',
|
|
669
|
-
regList: [],
|
|
670
|
-
changeTag: true,
|
|
671
|
-
},
|
|
672
|
-
type: 'datetimerange',
|
|
673
|
-
'range-separator': '至',
|
|
674
|
-
'start-placeholder': '开始日期',
|
|
675
|
-
'end-placeholder': '结束日期',
|
|
676
|
-
|
|
677
|
-
clearable: true,
|
|
678
|
-
format: 'yyyy-MM-dd HH:mm:ss',
|
|
679
|
-
'value-format': 'yyyy-MM-dd HH:mm:ss',
|
|
680
|
-
disabled: false, // 编辑状态禁用
|
|
681
|
-
readonly: false, // 编辑状态的只读
|
|
682
|
-
showonly: false, // 只显示详情状态(非编辑状态)
|
|
683
|
-
isHide: false, // 是否隐藏
|
|
684
|
-
isLock: false, // 是否锁定
|
|
685
|
-
|
|
686
|
-
event: { eventName: "", onCreated, onMounted, onBlur, onFocus, onChange, onClear },
|
|
687
|
-
|
|
688
|
-
styleObj, // 样式配置
|
|
689
|
-
|
|
690
|
-
},
|
|
691
|
-
{
|
|
692
|
-
__config__: {
|
|
693
|
-
label: '评分',
|
|
694
|
-
tag: 'form-rate',
|
|
695
|
-
tagIcon: 'rate',
|
|
696
|
-
defaultValue: 0,
|
|
697
|
-
span: 24,
|
|
698
|
-
showLabel: true,
|
|
699
|
-
labelWidth: 135,
|
|
700
|
-
tagType: 'select',
|
|
701
|
-
required: true,
|
|
702
|
-
regList: [],
|
|
703
|
-
changeTag: true,
|
|
704
|
-
},
|
|
705
|
-
style: {},
|
|
706
|
-
max: 5,
|
|
707
|
-
'allow-half': false,
|
|
708
|
-
'show-text': false,
|
|
709
|
-
'show-score': false,
|
|
710
|
-
disabled: false,
|
|
711
|
-
readonly: false,
|
|
712
|
-
color: '#F7BA2A',
|
|
713
|
-
voidColor: '#C6D1DE',
|
|
714
|
-
isHide: false, // 是否隐藏
|
|
715
|
-
isLock: false, // 是否锁定
|
|
716
|
-
|
|
717
|
-
event: { eventName: "", onCreated, onMounted, onChange },
|
|
718
|
-
|
|
719
|
-
styleObj, // 样式配置
|
|
720
|
-
|
|
721
|
-
},
|
|
722
|
-
{
|
|
723
|
-
__config__: {
|
|
724
|
-
label: '签名',
|
|
725
|
-
tag: 'form-signature',
|
|
726
|
-
tagIcon: 'signature',
|
|
727
|
-
defaultValue: null,
|
|
728
|
-
defaultValueHidden: true,
|
|
729
|
-
span: 24,
|
|
730
|
-
showLabel: true,
|
|
731
|
-
labelWidth: 135,
|
|
732
|
-
tagType: 'select',
|
|
733
|
-
required: true,
|
|
734
|
-
regList: [],
|
|
735
|
-
changeTag: true,
|
|
736
|
-
},
|
|
737
|
-
placeholder: '点击签名',
|
|
738
|
-
disabled: false,
|
|
739
|
-
readonly: false,
|
|
740
|
-
// width: 400,
|
|
741
|
-
// height: 300,
|
|
742
|
-
bgColor: '', // 背景颜色
|
|
743
|
-
lineWidth: 4, // 画笔粗细
|
|
744
|
-
lineColor: "#000", // 画笔颜色
|
|
745
|
-
isHide: false, // 是否隐藏
|
|
746
|
-
isLock: false, // 是否锁定
|
|
747
|
-
event: { eventName: "", onCreated, onMounted, onConfirm },
|
|
748
|
-
styleObj, // 样式配置
|
|
749
|
-
},
|
|
750
|
-
// {
|
|
751
|
-
// __config__: {
|
|
752
|
-
// label: '颜色选择',
|
|
753
|
-
// tag: 'form-color-picker',
|
|
754
|
-
// tagIcon: 'color',
|
|
755
|
-
// span: 24,
|
|
756
|
-
// defaultValue: null,
|
|
757
|
-
// showLabel: true,
|
|
758
|
-
// labelWidth: 135,
|
|
759
|
-
// tagType: 'select',
|
|
760
|
-
// required: true,
|
|
761
|
-
// regList: [],
|
|
762
|
-
// changeTag: true,
|
|
763
|
-
// },
|
|
764
|
-
// 'show-alpha': false,
|
|
765
|
-
// 'color-format': '',
|
|
766
|
-
// disabled: false,
|
|
767
|
-
// readonly: false,
|
|
768
|
-
// size: 'medium',
|
|
769
|
-
// isHide: false, // 是否隐藏
|
|
770
|
-
// isLock: false, // 是否锁定
|
|
771
|
-
// event: { eventName: "", onCreated, onMounted, onChange },
|
|
772
|
-
// styleObj, // 样式配置
|
|
773
|
-
// },
|
|
774
|
-
{
|
|
775
|
-
__config__: {
|
|
776
|
-
label: '附件',
|
|
777
|
-
tag: 'form-upload',
|
|
778
|
-
tagIcon: 'upload',
|
|
779
|
-
tagType: 'select',
|
|
780
|
-
defaultValue: null,
|
|
781
|
-
defaultValueHidden: true, // 默认值输入框隐藏
|
|
782
|
-
showLabel: true,
|
|
783
|
-
labelWidth: 135,
|
|
784
|
-
required: true,
|
|
785
|
-
span: 24,
|
|
786
|
-
showTip: true,
|
|
787
|
-
regList: [],
|
|
788
|
-
changeTag: true,
|
|
789
|
-
fileSize: 50,
|
|
790
|
-
sizeUnit: 'MB',
|
|
791
|
-
},
|
|
792
|
-
action: window.APLURL + '/sys/file/upload',
|
|
793
|
-
download: window.APLURL + '/sys/file/download',
|
|
794
|
-
dName: 'fileId',
|
|
795
|
-
disabled: false,
|
|
796
|
-
readonly: false,
|
|
797
|
-
accept: [],
|
|
798
|
-
limit: 10,
|
|
799
|
-
name: 'multipartFiles',
|
|
800
|
-
multiple: true,
|
|
801
|
-
isHide: false, // 是否隐藏
|
|
802
|
-
isLock: false, // 是否锁定
|
|
803
|
-
remark: '', // 补充说明
|
|
804
|
-
event: { eventName: "", onCreated, onMounted, onChange },
|
|
805
|
-
styleObj, // 样式配置
|
|
806
|
-
},
|
|
807
|
-
{
|
|
808
|
-
__config__: {
|
|
809
|
-
label: '图片',
|
|
810
|
-
tag: 'form-image',
|
|
811
|
-
tagIcon: 'image',
|
|
812
|
-
tagType: 'select',
|
|
813
|
-
defaultValue: null,
|
|
814
|
-
defaultValueHidden: true, // 默认值输入框隐藏
|
|
815
|
-
showLabel: true,
|
|
816
|
-
labelWidth: 135,
|
|
817
|
-
required: true,
|
|
818
|
-
span: 24,
|
|
819
|
-
showTip: true,
|
|
820
|
-
regList: [],
|
|
821
|
-
changeTag: true,
|
|
822
|
-
fileSize: 2,
|
|
823
|
-
sizeUnit: 'MB',
|
|
824
|
-
},
|
|
825
|
-
// isUpload: true,
|
|
826
|
-
action: window.APLURL + '/sys/file/uploadPic',
|
|
827
|
-
name: 'multipartFiles',
|
|
828
|
-
disabled: false,
|
|
829
|
-
readonly: false,
|
|
830
|
-
limit: 10,
|
|
831
|
-
multiple: true,
|
|
832
|
-
isHide: false, // 是否隐藏
|
|
833
|
-
isLock: false, // 是否锁定
|
|
834
|
-
remark: '', // 补充说明
|
|
835
|
-
event: { eventName: "", onCreated, onMounted, onChange },
|
|
836
|
-
|
|
837
|
-
styleObj, // 样式配置
|
|
838
|
-
},
|
|
839
|
-
{
|
|
840
|
-
__config__: {
|
|
841
|
-
label: '附件模板',
|
|
842
|
-
tag: 'form-upload-temp',
|
|
843
|
-
tagIcon: 'upload',
|
|
844
|
-
tagType: 'select',
|
|
845
|
-
defaultValue: null,
|
|
846
|
-
defaultValueHidden: true, // 默认值输入框隐藏
|
|
847
|
-
showLabel: true,
|
|
848
|
-
labelWidth: 135,
|
|
849
|
-
required: true,
|
|
850
|
-
span: 24,
|
|
851
|
-
showTip: true,
|
|
852
|
-
regList: [],
|
|
853
|
-
changeTag: true,
|
|
854
|
-
fileSize: 50,
|
|
855
|
-
sizeUnit: 'MB',
|
|
856
|
-
},
|
|
857
|
-
href: 'https://',
|
|
858
|
-
linkName: '模板下载',
|
|
859
|
-
type: 'primary',
|
|
860
|
-
icon: '',
|
|
861
|
-
action: window.APLURL + '/sys/file/upload',
|
|
862
|
-
download: window.APLURL + '/sys/file/download',
|
|
863
|
-
dName: 'fileId',
|
|
864
|
-
disabled: false,
|
|
865
|
-
readonly: false,
|
|
866
|
-
accept: [],
|
|
867
|
-
limit: 10,
|
|
868
|
-
name: 'multipartFiles',
|
|
869
|
-
multiple: true,
|
|
870
|
-
isHide: false, // 是否隐藏
|
|
871
|
-
isLock: false, // 是否锁定
|
|
872
|
-
remark: '', // 补充说明
|
|
873
|
-
event: { eventName: "", onCreated, onMounted, onChange },
|
|
874
|
-
styleObj, // 样式配置
|
|
875
|
-
},
|
|
876
|
-
{
|
|
877
|
-
__config__: {
|
|
878
|
-
label: '人员选择',
|
|
879
|
-
tag: 'form-user-picker',
|
|
880
|
-
tagIcon: 'person',
|
|
881
|
-
tagType: 'select',
|
|
882
|
-
defaultValue: null,
|
|
883
|
-
defaultValueHidden: true, // 默认值输入框隐藏
|
|
884
|
-
showLabel: true,
|
|
885
|
-
labelWidth: 135,
|
|
886
|
-
required: true,
|
|
887
|
-
span: 24,
|
|
888
|
-
regList: [],
|
|
889
|
-
changeTag: true,
|
|
890
|
-
},
|
|
891
|
-
disabled: false,
|
|
892
|
-
readonly: false,
|
|
893
|
-
multiple: true,
|
|
894
|
-
placeholder: '请选择人员',
|
|
895
|
-
isHide: false, // 是否隐藏
|
|
896
|
-
isLock: false, // 是否锁定
|
|
897
|
-
event: { eventName: [], onCreated, onMounted, onConfirm },
|
|
898
|
-
styleObj, // 样式配置
|
|
899
|
-
"dataObj": {
|
|
900
|
-
type: 'dynamic',
|
|
901
|
-
props: {
|
|
902
|
-
// 请求数据映射
|
|
903
|
-
request: {
|
|
904
|
-
deptId: 'deptId',
|
|
905
|
-
},
|
|
906
|
-
// 请求数据类型 JSON/FormData
|
|
907
|
-
reDataType: 'JSON',
|
|
908
|
-
// 响应数据映射
|
|
909
|
-
response: {
|
|
910
|
-
id: 'id',
|
|
911
|
-
name: 'name',
|
|
912
|
-
type: 'type',
|
|
913
|
-
avatar: 'avatar',
|
|
914
|
-
|
|
915
|
-
}
|
|
916
|
-
},
|
|
917
|
-
"url": window.APLURL + "/oa/org/tree",
|
|
918
|
-
"method": "get",
|
|
919
|
-
"request": { type: 'user' },
|
|
920
|
-
// 请求数据类型 JSON/FormData
|
|
921
|
-
reDataType: 'JSON',
|
|
922
|
-
"response": "// response 为接口请求成功时返回的数据",
|
|
923
|
-
"error": "// error 为接口请求失败时返回的数据",
|
|
924
|
-
value: [], // 静态数据
|
|
925
|
-
},
|
|
926
|
-
// 搜索配置
|
|
927
|
-
search: {
|
|
928
|
-
type: 'dynamic',
|
|
929
|
-
text: '请输入人员姓名、用户手机号',
|
|
930
|
-
props: {
|
|
931
|
-
// 请求数据映射
|
|
932
|
-
request: {
|
|
933
|
-
userName: 'userName'
|
|
934
|
-
},
|
|
935
|
-
// 请求数据类型 JSON/FormData
|
|
936
|
-
reDataType: 'JSON',
|
|
937
|
-
// 响应数据映射
|
|
938
|
-
// response: {
|
|
939
|
-
// id: 'id',
|
|
940
|
-
// name: 'name',
|
|
941
|
-
// type: 'type',
|
|
942
|
-
// avatar: 'avatar',
|
|
943
|
-
// }
|
|
944
|
-
},
|
|
945
|
-
url: window.APLURL + "/oa/org/tree/user/search",
|
|
946
|
-
"method": "get",
|
|
947
|
-
"request": { type: 'user', userName: '' },
|
|
948
|
-
// 请求数据类型 JSON/FormData
|
|
949
|
-
reDataType: 'JSON',
|
|
950
|
-
"response": "// response 为接口请求成功时返回的数据",
|
|
951
|
-
"error": "// error 为接口请求失败时返回的数据",
|
|
952
|
-
value: [], // 静态数据
|
|
953
|
-
}
|
|
954
|
-
},
|
|
955
|
-
{
|
|
956
|
-
__config__: {
|
|
957
|
-
label: '部门选择',
|
|
958
|
-
tag: 'form-org-picker',
|
|
959
|
-
tagIcon: 'dept',
|
|
960
|
-
tagType: 'select',
|
|
961
|
-
defaultValue: null,
|
|
962
|
-
defaultValueHidden: true, // 默认值输入框隐藏
|
|
963
|
-
showLabel: true,
|
|
964
|
-
labelWidth: 135,
|
|
965
|
-
required: true,
|
|
966
|
-
span: 24,
|
|
967
|
-
regList: [],
|
|
968
|
-
changeTag: true,
|
|
969
|
-
},
|
|
970
|
-
|
|
971
|
-
disabled: false,
|
|
972
|
-
readonly: false,
|
|
973
|
-
multiple: true,
|
|
974
|
-
// enablePrint: true, // 可打印
|
|
975
|
-
placeholder: '请选择部门',
|
|
976
|
-
isHide: false, // 是否隐藏
|
|
977
|
-
isLock: false, // 是否锁定,
|
|
978
|
-
|
|
979
|
-
event: { eventName: "", onCreated, onMounted, onConfirm },
|
|
980
|
-
|
|
981
|
-
styleObj, // 样式配置
|
|
982
|
-
"dataObj": {
|
|
983
|
-
type: 'dynamic',
|
|
984
|
-
"url": window.APLURL + "/oa/org/tree",
|
|
985
|
-
props: {
|
|
986
|
-
// 请求数据映射
|
|
987
|
-
request: {
|
|
988
|
-
deptId: 'deptId'
|
|
989
|
-
},
|
|
990
|
-
// 请求数据类型 JSON/FormData
|
|
991
|
-
reDataType: 'JSON',
|
|
992
|
-
// 响应数据映射
|
|
993
|
-
response: {
|
|
994
|
-
id: 'id',
|
|
995
|
-
name: 'name',
|
|
996
|
-
type: 'type',
|
|
997
|
-
avatar: 'avatar',
|
|
998
|
-
}
|
|
999
|
-
},
|
|
1000
|
-
"method": "get",
|
|
1001
|
-
"request": { type: 'dept' },
|
|
1002
|
-
// 请求数据类型 JSON / FormData
|
|
1003
|
-
reDataType: 'JSON',
|
|
1004
|
-
"response": "// response 为接口请求成功时返回的数据",
|
|
1005
|
-
"error": "// error 为接口请求失败时返回的数据",
|
|
1006
|
-
},
|
|
1007
|
-
search: {
|
|
1008
|
-
type: 'dynamic',
|
|
1009
|
-
text: '请输入人员姓名、用户手机号',
|
|
1010
|
-
props: {
|
|
1011
|
-
// 请求数据映射
|
|
1012
|
-
request: {
|
|
1013
|
-
userName: 'userName'
|
|
1014
|
-
},
|
|
1015
|
-
// 请求数据类型 JSON/FormData
|
|
1016
|
-
reDataType: 'JSON',
|
|
1017
|
-
// 响应数据映射
|
|
1018
|
-
// response: {
|
|
1019
|
-
// id: 'id',
|
|
1020
|
-
// name: 'name',
|
|
1021
|
-
// type: 'type',
|
|
1022
|
-
// avatar: 'avatar',
|
|
1023
|
-
// }
|
|
1024
|
-
},
|
|
1025
|
-
url: window.APLURL + "/oa/org/tree/user/search",
|
|
1026
|
-
"method": "get",
|
|
1027
|
-
"request": { type: 'dept', userName: '' },
|
|
1028
|
-
// 请求数据类型 JSON/FormData
|
|
1029
|
-
reDataType: 'JSON',
|
|
1030
|
-
"response": "// response 为接口请求成功时返回的数据",
|
|
1031
|
-
"error": "// error 为接口请求失败时返回的数据",
|
|
1032
|
-
value: [], // 静态数据
|
|
1033
|
-
}
|
|
1034
|
-
},
|
|
1035
|
-
{
|
|
1036
|
-
__config__: {
|
|
1037
|
-
label: '历史申请',
|
|
1038
|
-
showLabel: true,
|
|
1039
|
-
labelWidth: 135,
|
|
1040
|
-
tag: 'form-select-his',
|
|
1041
|
-
tagIcon: 'select',
|
|
1042
|
-
tagType: 'select',
|
|
1043
|
-
span: 24,
|
|
1044
|
-
required: true,
|
|
1045
|
-
regList: [],
|
|
1046
|
-
changeTag: true,
|
|
1047
|
-
},
|
|
1048
|
-
placeholder: '请选择',
|
|
1049
|
-
clearable: true,
|
|
1050
|
-
disabled: false,
|
|
1051
|
-
readonly: false,
|
|
1052
|
-
filterable: false,
|
|
1053
|
-
multiple: false,
|
|
1054
|
-
isHide: false, // 是否隐藏
|
|
1055
|
-
isLock: false, // 是否锁定
|
|
1056
|
-
// multiple: false,
|
|
1057
|
-
"dataObj": {
|
|
1058
|
-
type: 'dynamic',
|
|
1059
|
-
"url": window.APLURL + '/oa/history/apply',
|
|
1060
|
-
"method": "post",
|
|
1061
|
-
"request": {},
|
|
1062
|
-
// 请求数据类型 JSON/FormData
|
|
1063
|
-
reDataType: 'JSON',
|
|
1064
|
-
"response": "// response 为接口请求成功时返回的数据",
|
|
1065
|
-
"error": "// error 为接口请求失败时返回的数据",
|
|
1066
|
-
valueType: 'list', // 静态数据进行增删操作的组件类型
|
|
1067
|
-
props: {
|
|
1068
|
-
label: 'label',
|
|
1069
|
-
value: 'value',
|
|
1070
|
-
},
|
|
1071
|
-
value: [{
|
|
1072
|
-
label: '选项一',
|
|
1073
|
-
value: '1'
|
|
1074
|
-
}, {
|
|
1075
|
-
label: '选项二',
|
|
1076
|
-
value: '2'
|
|
1077
|
-
}], // 静态数据
|
|
1078
|
-
},
|
|
1079
|
-
event: { eventName: "", onCreated, onMounted, onBlur, onFocus, onChange, onClear },
|
|
1080
|
-
styleObj, // 样式配置
|
|
1081
|
-
},
|
|
1082
|
-
{
|
|
1083
|
-
__config__: {
|
|
1084
|
-
label: '项目选择',
|
|
1085
|
-
showLabel: true,
|
|
1086
|
-
labelWidth: 135,
|
|
1087
|
-
tag: 'form-select-project',
|
|
1088
|
-
tagIcon: 'select',
|
|
1089
|
-
tagType: 'select',
|
|
1090
|
-
span: 24,
|
|
1091
|
-
required: true,
|
|
1092
|
-
regList: [],
|
|
1093
|
-
changeTag: true,
|
|
1094
|
-
},
|
|
1095
|
-
placeholder: '请选择',
|
|
1096
|
-
clearable: true,
|
|
1097
|
-
disabled: false,
|
|
1098
|
-
readonly: false,
|
|
1099
|
-
filterable: false,
|
|
1100
|
-
multiple: false,
|
|
1101
|
-
isHide: false, // 是否隐藏
|
|
1102
|
-
isLock: false, // 是否锁定
|
|
1103
|
-
// multiple: false,
|
|
1104
|
-
"dataObj": {
|
|
1105
|
-
type: 'dynamic',
|
|
1106
|
-
"url": window.APLURL + '/oa/project',
|
|
1107
|
-
"method": "post",
|
|
1108
|
-
"request": {},
|
|
1109
|
-
// 请求数据类型 JSON/FormData
|
|
1110
|
-
reDataType: 'JSON',
|
|
1111
|
-
"response": "// response 为接口请求成功时返回的数据",
|
|
1112
|
-
"error": "// error 为接口请求失败时返回的数据",
|
|
1113
|
-
valueType: 'list', // 静态数据进行增删操作的组件类型
|
|
1114
|
-
props: {
|
|
1115
|
-
label: 'label',
|
|
1116
|
-
value: 'value',
|
|
1117
|
-
},
|
|
1118
|
-
value: [{
|
|
1119
|
-
label: '选项一',
|
|
1120
|
-
value: '1'
|
|
1121
|
-
}, {
|
|
1122
|
-
label: '选项二',
|
|
1123
|
-
value: '2'
|
|
1124
|
-
}], // 静态数据
|
|
1125
|
-
},
|
|
1126
|
-
event: { eventName: "", onCreated, onMounted, onBlur, onFocus, onChange, onClear },
|
|
1127
|
-
styleObj, // 样式配置
|
|
1128
|
-
},
|
|
1129
|
-
]
|
|
1130
|
-
|
|
1131
|
-
// 布局型组件 【左面板】
|
|
1132
|
-
export let layoutComponents = [
|
|
1133
|
-
{
|
|
1134
|
-
__config__: {
|
|
1135
|
-
tag: 'form-row-container',
|
|
1136
|
-
tagType: 'layout',
|
|
1137
|
-
tagIcon: 'row',
|
|
1138
|
-
label: '行容器',
|
|
1139
|
-
layoutTree: true,
|
|
1140
|
-
},
|
|
1141
|
-
type: 'default',
|
|
1142
|
-
justify: 'start',
|
|
1143
|
-
align: 'top',
|
|
1144
|
-
gutter: 20,
|
|
1145
|
-
isHide: false, // 是否隐藏
|
|
1146
|
-
isLock: false, // 是否锁定
|
|
1147
|
-
children: [],
|
|
1148
|
-
allowDrop: true, // 拖拽时判定目标节点能否被放置
|
|
1149
|
-
className: [],
|
|
1150
|
-
styleObj,
|
|
1151
|
-
},
|
|
1152
|
-
{
|
|
1153
|
-
__config__: {
|
|
1154
|
-
tag: 'form-table-container',
|
|
1155
|
-
tagType: 'layout',
|
|
1156
|
-
tagIcon: 'table-edit',
|
|
1157
|
-
label: '表格布局',
|
|
1158
|
-
layoutTree: true,
|
|
1159
|
-
},
|
|
1160
|
-
borderWidth: 1,
|
|
1161
|
-
isHide: false, // 是否隐藏
|
|
1162
|
-
isLock: false, // 是否锁定
|
|
1163
|
-
// cellspacing: 0,
|
|
1164
|
-
cellpadding: 8,
|
|
1165
|
-
tableAlign: 'center',
|
|
1166
|
-
borderColor: '#ebeef5',
|
|
1167
|
-
className: [],
|
|
1168
|
-
styleObj,
|
|
1169
|
-
children: [
|
|
1170
|
-
{
|
|
1171
|
-
id: 'tr_' + getUuiKey(),
|
|
1172
|
-
style: {},
|
|
1173
|
-
children: [
|
|
1174
|
-
{
|
|
1175
|
-
colspan: 1,
|
|
1176
|
-
rowspan: 1,
|
|
1177
|
-
children: [],
|
|
1178
|
-
id: 'td_' + getUuiKey(),
|
|
1179
|
-
width: 50,
|
|
1180
|
-
style: {},
|
|
1181
|
-
allowDrop: true, // 拖拽时判定目标节点能否被放置
|
|
1182
|
-
|
|
1183
|
-
},
|
|
1184
|
-
{
|
|
1185
|
-
colspan: 1,
|
|
1186
|
-
rowspan: 1,
|
|
1187
|
-
children: [],
|
|
1188
|
-
id: 'td_' + getUuiKey(),
|
|
1189
|
-
width: 50,
|
|
1190
|
-
style: {},
|
|
1191
|
-
allowDrop: true, // 拖拽时判定目标节点能否被放置
|
|
1192
|
-
},
|
|
1193
|
-
]
|
|
1194
|
-
},
|
|
1195
|
-
{
|
|
1196
|
-
id: 'tr_' + getUuiKey(),
|
|
1197
|
-
style: {},
|
|
1198
|
-
children: [
|
|
1199
|
-
{
|
|
1200
|
-
colspan: 1,
|
|
1201
|
-
rowspan: 1,
|
|
1202
|
-
children: [],
|
|
1203
|
-
id: 'td_' + getUuiKey(),
|
|
1204
|
-
width: 50,
|
|
1205
|
-
style: {},
|
|
1206
|
-
allowDrop: true, // 拖拽时判定目标节点能否被放置
|
|
1207
|
-
},
|
|
1208
|
-
{
|
|
1209
|
-
colspan: 1,
|
|
1210
|
-
rowspan: 1,
|
|
1211
|
-
children: [],
|
|
1212
|
-
id: 'td_' + getUuiKey(),
|
|
1213
|
-
width: 50,
|
|
1214
|
-
style: {},
|
|
1215
|
-
allowDrop: true, // 拖拽时判定目标节点能否被放置
|
|
1216
|
-
},
|
|
1217
|
-
]
|
|
1218
|
-
},
|
|
1219
|
-
|
|
1220
|
-
]
|
|
1221
|
-
},
|
|
1222
|
-
{
|
|
1223
|
-
__config__: {
|
|
1224
|
-
tag: 'form-tabs-container',
|
|
1225
|
-
tagType: 'layout',
|
|
1226
|
-
tagIcon: 'tabs',
|
|
1227
|
-
label: '标签页',
|
|
1228
|
-
layoutTree: true,
|
|
1229
|
-
defaultValue: '1',
|
|
1230
|
-
isStage: true, // 是否为分阶段的组件
|
|
1231
|
-
},
|
|
1232
|
-
isHide: false, // 是否隐藏
|
|
1233
|
-
isLock: false, // 是否锁定
|
|
1234
|
-
children: [{
|
|
1235
|
-
"label": "标签一",
|
|
1236
|
-
value: "1",
|
|
1237
|
-
"children": [],
|
|
1238
|
-
allowDrop: true, // 拖拽时判定目标节点能否被放置
|
|
1239
|
-
}, {
|
|
1240
|
-
"label": "标签二",
|
|
1241
|
-
value: "2",
|
|
1242
|
-
"children": [],
|
|
1243
|
-
allowDrop: true, // 拖拽时判定目标节点能否被放置
|
|
1244
|
-
},],
|
|
1245
|
-
type: '',
|
|
1246
|
-
className: [],
|
|
1247
|
-
styleObj,
|
|
1248
|
-
},
|
|
1249
|
-
// {
|
|
1250
|
-
// __config__: {
|
|
1251
|
-
// tag: 'form-collapse',
|
|
1252
|
-
// tagType: 'layout',
|
|
1253
|
-
// tagIcon: 'collapse',
|
|
1254
|
-
// label: '折叠面板',
|
|
1255
|
-
// layoutTree: true,
|
|
1256
|
-
// defaultValue: '1',
|
|
1257
|
-
// isStage: true, // 是否为分阶段的组件
|
|
1258
|
-
// },
|
|
1259
|
-
// children: [{
|
|
1260
|
-
// "label": "面板一",
|
|
1261
|
-
// value: "1",
|
|
1262
|
-
// "children": [],
|
|
1263
|
-
// allowDrop: true, // 拖拽时判定目标节点能否被放置
|
|
1264
|
-
// }, {
|
|
1265
|
-
// "label": "面板二",
|
|
1266
|
-
// value: "2",
|
|
1267
|
-
// "children": [],
|
|
1268
|
-
// allowDrop: true, // 拖拽时判定目标节点能否被放置
|
|
1269
|
-
// },],
|
|
1270
|
-
// className: [],
|
|
1271
|
-
// styleObj,
|
|
1272
|
-
// type: '',
|
|
1273
|
-
// isHide: false, // 是否隐藏
|
|
1274
|
-
// isLock: false, // 是否锁定
|
|
1275
|
-
// },
|
|
1276
|
-
// {
|
|
1277
|
-
// __config__: {
|
|
1278
|
-
// tag: 'form-steps',
|
|
1279
|
-
// tagType: 'layout',
|
|
1280
|
-
// tagIcon: 'steps',
|
|
1281
|
-
// label: '分步表单',
|
|
1282
|
-
// layoutTree: true,
|
|
1283
|
-
// defaultValue: '1',
|
|
1284
|
-
// isStage: true, // 是否为分阶段的组件
|
|
1285
|
-
// },
|
|
1286
|
-
// children: [{
|
|
1287
|
-
// "label": "步骤1",
|
|
1288
|
-
// value: "1",
|
|
1289
|
-
// "children": [],
|
|
1290
|
-
// allowDrop: true, // 拖拽时判定目标节点能否被放置
|
|
1291
|
-
// }, {
|
|
1292
|
-
// "label": "步骤2",
|
|
1293
|
-
// value: "2",
|
|
1294
|
-
// "children": [],
|
|
1295
|
-
// allowDrop: true, // 拖拽时判定目标节点能否被放置
|
|
1296
|
-
// }, {
|
|
1297
|
-
// "label": "步骤3",
|
|
1298
|
-
// value: "3",
|
|
1299
|
-
// "children": [],
|
|
1300
|
-
// allowDrop: true, // 拖拽时判定目标节点能否被放置
|
|
1301
|
-
// },],
|
|
1302
|
-
// className: [],
|
|
1303
|
-
// styleObj,
|
|
1304
|
-
// simple: false,
|
|
1305
|
-
// isHide: false, // 是否隐藏
|
|
1306
|
-
// isLock: false, // 是否锁定
|
|
1307
|
-
// // direction: 'horizontal'
|
|
1308
|
-
// },
|
|
1309
|
-
{
|
|
1310
|
-
__config__: {
|
|
1311
|
-
tag: 'form-card',
|
|
1312
|
-
tagType: 'layout',
|
|
1313
|
-
tagIcon: 'card',
|
|
1314
|
-
label: '卡片',
|
|
1315
|
-
layoutTree: true,
|
|
1316
|
-
},
|
|
1317
|
-
children: [],
|
|
1318
|
-
allowDrop: true, // 拖拽时判定目标节点能否被放置
|
|
1319
|
-
header: '标题',
|
|
1320
|
-
shadow: "always",
|
|
1321
|
-
isHide: false, // 是否隐藏
|
|
1322
|
-
isLock: false, // 是否锁定
|
|
1323
|
-
className: [],
|
|
1324
|
-
styleObj,
|
|
1325
|
-
},
|
|
1326
|
-
{
|
|
1327
|
-
__config__: {
|
|
1328
|
-
tag: 'form-sub',
|
|
1329
|
-
tagType: 'layout',
|
|
1330
|
-
tagIcon: 'sub',
|
|
1331
|
-
label: '子表单',
|
|
1332
|
-
layoutTree: true,
|
|
1333
|
-
},
|
|
1334
|
-
children: [
|
|
1335
|
-
{
|
|
1336
|
-
label: "第1项",
|
|
1337
|
-
value: getUuiKey(),
|
|
1338
|
-
children: [],
|
|
1339
|
-
allowDrop: true, // 拖拽时判定目标节点能否被放置
|
|
1340
|
-
},
|
|
1341
|
-
],
|
|
1342
|
-
className: [],
|
|
1343
|
-
styleObj,
|
|
1344
|
-
maxSize: 10,
|
|
1345
|
-
subType: 'form',
|
|
1346
|
-
stripe: false,
|
|
1347
|
-
size: 'medium',
|
|
1348
|
-
showHeader: true,
|
|
1349
|
-
isHide: false, // 是否隐藏
|
|
1350
|
-
isLock: false, // 是否锁定
|
|
1351
|
-
// 'highlight-current-row': false
|
|
1352
|
-
},
|
|
1353
|
-
|
|
1354
|
-
]
|
|
1355
|
-
|
|
1356
|
-
// 辅助组件
|
|
1357
|
-
export let assistComponents = [
|
|
1358
|
-
{
|
|
1359
|
-
__config__: {
|
|
1360
|
-
label: '分割线',
|
|
1361
|
-
tag: 'form-divider',
|
|
1362
|
-
defaultValue: '分割线',
|
|
1363
|
-
tagIcon: 'divider',
|
|
1364
|
-
span: 24,
|
|
1365
|
-
tagType: 'assist',
|
|
1366
|
-
},
|
|
1367
|
-
className: [],
|
|
1368
|
-
styleObj: { ...styleObj, marginTop: '16px', marginBottom: '16px' },
|
|
1369
|
-
icon: '',
|
|
1370
|
-
isHide: false, // 是否隐藏
|
|
1371
|
-
isLock: false, // 是否锁定
|
|
1372
|
-
contentPosition: 'center', // 分割线文案位置
|
|
1373
|
-
},
|
|
1374
|
-
{
|
|
1375
|
-
__config__: {
|
|
1376
|
-
label: '说明',
|
|
1377
|
-
tag: 'form-remark',
|
|
1378
|
-
tagIcon: 'remark',
|
|
1379
|
-
defaultValue: '只是一段说明文字',
|
|
1380
|
-
span: 24,
|
|
1381
|
-
showLabel: true,
|
|
1382
|
-
tagType: 'input',
|
|
1383
|
-
labelWidth: 135,
|
|
1384
|
-
},
|
|
1385
|
-
icon: 'el-icon-warning-outline', // 图标
|
|
1386
|
-
className: [],
|
|
1387
|
-
styleObj,
|
|
1388
|
-
isHide: false, // 是否隐藏
|
|
1389
|
-
isLock: false, // 是否锁定
|
|
1390
|
-
},
|
|
1391
|
-
{
|
|
1392
|
-
__config__: {
|
|
1393
|
-
label: '文本',
|
|
1394
|
-
tag: 'form-text',
|
|
1395
|
-
tagIcon: 'text',
|
|
1396
|
-
defaultValue: '文本内容',
|
|
1397
|
-
span: 24,
|
|
1398
|
-
// showLabel: false,
|
|
1399
|
-
tagType: 'assist',
|
|
1400
|
-
labelWidth: 135,
|
|
1401
|
-
},
|
|
1402
|
-
className: [],
|
|
1403
|
-
styleObj,
|
|
1404
|
-
isHide: false, // 是否隐藏
|
|
1405
|
-
isLock: false, // 是否锁定
|
|
1406
|
-
},
|
|
1407
|
-
{
|
|
1408
|
-
__config__: {
|
|
1409
|
-
label: 'HTML',
|
|
1410
|
-
tag: 'form-html',
|
|
1411
|
-
tagIcon: 'html',
|
|
1412
|
-
// defaultValue: '<div style="color:blue">HTML HTML HTML HTML</div>',
|
|
1413
|
-
// defaultValueHidden: true, // 默认值输入框隐藏
|
|
1414
|
-
span: 24,
|
|
1415
|
-
// showLabel: false,
|
|
1416
|
-
tagType: 'assist',
|
|
1417
|
-
labelWidth: 135,
|
|
1418
|
-
},
|
|
1419
|
-
html: `<div style="color:blue">HTML HTML HTML HTML</div>`,
|
|
1420
|
-
isHide: false, // 是否隐藏
|
|
1421
|
-
isLock: false, // 是否锁定
|
|
1422
|
-
className: [],
|
|
1423
|
-
styleObj,
|
|
1424
|
-
},
|
|
1425
|
-
{
|
|
1426
|
-
__config__: {
|
|
1427
|
-
label: '链接',
|
|
1428
|
-
tag: 'form-link',
|
|
1429
|
-
tagIcon: 'link',
|
|
1430
|
-
defaultValue: '默认链接',
|
|
1431
|
-
span: 24,
|
|
1432
|
-
// showLabel: false,
|
|
1433
|
-
tagType: 'assist',
|
|
1434
|
-
labelWidth: 135,
|
|
1435
|
-
},
|
|
1436
|
-
href: 'https://',
|
|
1437
|
-
type: 'primary',
|
|
1438
|
-
underline: false,
|
|
1439
|
-
disabled: false,
|
|
1440
|
-
icon: '',
|
|
1441
|
-
target: '_self',
|
|
1442
|
-
className: [],
|
|
1443
|
-
styleObj,
|
|
1444
|
-
isHide: false, // 是否隐藏
|
|
1445
|
-
isLock: false, // 是否锁定
|
|
1446
|
-
},
|
|
1447
|
-
{
|
|
1448
|
-
__config__: {
|
|
1449
|
-
label: '标签',
|
|
1450
|
-
tag: 'form-tag',
|
|
1451
|
-
tagIcon: 'tag',
|
|
1452
|
-
defaultValue: '标签',
|
|
1453
|
-
span: 24,
|
|
1454
|
-
// showLabel: false,
|
|
1455
|
-
tagType: 'assist',
|
|
1456
|
-
labelWidth: 135,
|
|
1457
|
-
},
|
|
1458
|
-
type: 'primary',
|
|
1459
|
-
hit: false, // 是否有边框描边
|
|
1460
|
-
// color: '', // 背景色
|
|
1461
|
-
// textColor: '',
|
|
1462
|
-
effect: 'light', // 主题
|
|
1463
|
-
closable: false,
|
|
1464
|
-
round: false,
|
|
1465
|
-
size: 'medium',
|
|
1466
|
-
isHide: false, // 是否隐藏
|
|
1467
|
-
isLock: false, // 是否锁定
|
|
1468
|
-
className: [],
|
|
1469
|
-
styleObj,
|
|
1470
|
-
},
|
|
1471
|
-
{
|
|
1472
|
-
__config__: {
|
|
1473
|
-
label: '按钮',
|
|
1474
|
-
tag: 'form-button',
|
|
1475
|
-
tagIcon: 'button',
|
|
1476
|
-
defaultValue: '按钮',
|
|
1477
|
-
span: 24,
|
|
1478
|
-
// showLabel: false,
|
|
1479
|
-
tagType: 'assist',
|
|
1480
|
-
labelWidth: 135,
|
|
1481
|
-
},
|
|
1482
|
-
type: 'primary',
|
|
1483
|
-
round: false,
|
|
1484
|
-
plain: false,
|
|
1485
|
-
disabled: false,
|
|
1486
|
-
// circle: false,
|
|
1487
|
-
size: 'medium',
|
|
1488
|
-
icon: '',
|
|
1489
|
-
isHide: false, // 是否隐藏
|
|
1490
|
-
isLock: false, // 是否锁定
|
|
1491
|
-
className: [],
|
|
1492
|
-
styleObj,
|
|
1493
|
-
event: { eventName: "", onCreated, onMounted, onClick },
|
|
1494
|
-
|
|
1495
|
-
},
|
|
1496
|
-
{
|
|
1497
|
-
__config__: {
|
|
1498
|
-
label: '树',
|
|
1499
|
-
showLabel: false,
|
|
1500
|
-
labelWidth: 135,
|
|
1501
|
-
tag: 'form-tree',
|
|
1502
|
-
tagIcon: 'tree',
|
|
1503
|
-
tagType: 'select',
|
|
1504
|
-
defaultValue: [],
|
|
1505
|
-
span: 24,
|
|
1506
|
-
changeTag: true,
|
|
1507
|
-
},
|
|
1508
|
-
placeholder: '请选择',
|
|
1509
|
-
isHide: false, // 是否隐藏
|
|
1510
|
-
isLock: false, // 是否锁定
|
|
1511
|
-
event: { eventName: "", onCreated, onMounted, onBlur, onFocus, onChange, onClear },
|
|
1512
|
-
styleObj, // 样式配置
|
|
1513
|
-
// multiple: false,
|
|
1514
|
-
"dataObj": {
|
|
1515
|
-
type: 'static',
|
|
1516
|
-
"url": "",
|
|
1517
|
-
"method": "get",
|
|
1518
|
-
"request": {},
|
|
1519
|
-
// 请求数据类型 JSON/FormData
|
|
1520
|
-
reDataType: 'JSON',
|
|
1521
|
-
"response": "// response 为接口请求成功时返回的数据",
|
|
1522
|
-
"error": "// error 为接口请求失败时返回的数据",
|
|
1523
|
-
props: {
|
|
1524
|
-
label: 'label',
|
|
1525
|
-
value: 'value',
|
|
1526
|
-
children: 'children',
|
|
1527
|
-
isLeaf: 'isLeaf',
|
|
1528
|
-
icon: 'icon',
|
|
1529
|
-
className: 'className', // 类名
|
|
1530
|
-
},
|
|
1531
|
-
value: [{
|
|
1532
|
-
value: '1',
|
|
1533
|
-
label: '选项1',
|
|
1534
|
-
children: [{
|
|
1535
|
-
value: '2',
|
|
1536
|
-
label: '选项1-1',
|
|
1537
|
-
icon: 'el-icon-user-solid',
|
|
1538
|
-
className: '',
|
|
1539
|
-
}]
|
|
1540
|
-
}], // 静态数据
|
|
1541
|
-
},
|
|
1542
|
-
defaultExpandAll: true
|
|
1543
|
-
},
|
|
1544
|
-
{
|
|
1545
|
-
__config__: {
|
|
1546
|
-
label: '数据表格',
|
|
1547
|
-
tag: 'form-table',
|
|
1548
|
-
tagIcon: 'table',
|
|
1549
|
-
// defaultValue: null,
|
|
1550
|
-
span: 24,
|
|
1551
|
-
// showLabel: false,
|
|
1552
|
-
tagType: 'select',
|
|
1553
|
-
labelWidth: 135,
|
|
1554
|
-
changeTag: true,
|
|
1555
|
-
},
|
|
1556
|
-
"dataObj": {
|
|
1557
|
-
type: 'static',
|
|
1558
|
-
"url": "",
|
|
1559
|
-
"method": "get",
|
|
1560
|
-
"request": {
|
|
1561
|
-
current: 1,
|
|
1562
|
-
size: 10,
|
|
1563
|
-
},
|
|
1564
|
-
// 请求数据类型 JSON/FormData
|
|
1565
|
-
reDataType: 'JSON',
|
|
1566
|
-
"response": "// response 为接口请求成功时返回的数据",
|
|
1567
|
-
"error": "// error 为接口请求失败时返回的数据",
|
|
1568
|
-
props: {
|
|
1569
|
-
total: 'total',
|
|
1570
|
-
records: 'records',
|
|
1571
|
-
current: 'current',
|
|
1572
|
-
size: 'size',
|
|
1573
|
-
},
|
|
1574
|
-
head: [
|
|
1575
|
-
{ prop: 'date', label: '日期', width: '150', align: 'center', render: 'text', hide: false },
|
|
1576
|
-
{ prop: 'image', label: '头像', width: '100', align: 'center', render: 'img', hide: false },
|
|
1577
|
-
{ prop: 'name', label: '名称', width: '150', align: 'center', render: 'tag', hide: false },
|
|
1578
|
-
{ prop: 'address', label: '地址', width: '300', align: 'center', render: 'text', hide: false },
|
|
1579
|
-
],
|
|
1580
|
-
value: {
|
|
1581
|
-
total: 4,
|
|
1582
|
-
records: [
|
|
1583
|
-
{
|
|
1584
|
-
date: '2016-05-02',
|
|
1585
|
-
name: '王小虎',
|
|
1586
|
-
address: '上海市普陀区金沙江路 1518 弄',
|
|
1587
|
-
image: 'https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg'
|
|
1588
|
-
}, {
|
|
1589
|
-
date: '2016-05-04',
|
|
1590
|
-
name: '王小虎',
|
|
1591
|
-
address: '上海市普陀区金沙江路 1517 弄',
|
|
1592
|
-
image: 'https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg'
|
|
1593
|
-
}, {
|
|
1594
|
-
date: '2016-05-01',
|
|
1595
|
-
name: '王小虎',
|
|
1596
|
-
address: '上海市普陀区金沙江路 1519 弄',
|
|
1597
|
-
image: 'https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg'
|
|
1598
|
-
}, {
|
|
1599
|
-
date: '2016-05-03',
|
|
1600
|
-
name: '王小虎',
|
|
1601
|
-
address: '上海市普陀区金沙江路 1516 弄',
|
|
1602
|
-
image: 'https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg'
|
|
1603
|
-
}
|
|
1604
|
-
]
|
|
1605
|
-
}, // 静态数据
|
|
1606
|
-
},
|
|
1607
|
-
isPage: false, // 是否分页
|
|
1608
|
-
// 分页配置
|
|
1609
|
-
pagination: {
|
|
1610
|
-
layout: ['prev', 'pager', 'next'],
|
|
1611
|
-
background: true,
|
|
1612
|
-
position: 'center',
|
|
1613
|
-
small: false,
|
|
1614
|
-
},
|
|
1615
|
-
stripe: false,
|
|
1616
|
-
border: false,
|
|
1617
|
-
size: 'medium',
|
|
1618
|
-
showHeader: true,
|
|
1619
|
-
// 'highlight-current-row': false,
|
|
1620
|
-
color: '#e8eefc',
|
|
1621
|
-
isHide: false, // 是否隐藏
|
|
1622
|
-
isLock: false, // 是否锁定
|
|
1623
|
-
|
|
1624
|
-
styleObj, // 样式配置
|
|
1625
|
-
},
|
|
1626
|
-
{
|
|
1627
|
-
__config__: {
|
|
1628
|
-
label: '导入表格',
|
|
1629
|
-
tag: 'form-table-export',
|
|
1630
|
-
tagIcon: 'table',
|
|
1631
|
-
defaultValue: null,
|
|
1632
|
-
defaultValueHidden: true,
|
|
1633
|
-
span: 24,
|
|
1634
|
-
showLabel: true,
|
|
1635
|
-
tagType: 'select',
|
|
1636
|
-
labelWidth: 135,
|
|
1637
|
-
changeTag: true,
|
|
1638
|
-
},
|
|
1639
|
-
"dataObj": {
|
|
1640
|
-
// type: 'static',
|
|
1641
|
-
head: [
|
|
1642
|
-
{ prop: 'ip', label: 'ip', width: '', align: 'center', render: 'text', hide: false },
|
|
1643
|
-
{ prop: 'remark', label: '备注', width: '', align: 'center', render: 'text', hide: false },
|
|
1644
|
-
],
|
|
1645
|
-
},
|
|
1646
|
-
height: '', // 组件高度
|
|
1647
|
-
stripe: false,
|
|
1648
|
-
border: false,
|
|
1649
|
-
size: 'medium',
|
|
1650
|
-
showHeader: true,
|
|
1651
|
-
color: '#e8eefc',
|
|
1652
|
-
isHide: false, // 是否隐藏
|
|
1653
|
-
isLock: false, // 是否锁定
|
|
1654
|
-
},
|
|
1655
|
-
// {
|
|
1656
|
-
// __config__: {
|
|
1657
|
-
// label: '通知栏',
|
|
1658
|
-
// tag: 'form-notice',
|
|
1659
|
-
// tagIcon: 'notice',
|
|
1660
|
-
// defaultValue: '通知栏通知栏通知栏通知栏通知栏通知栏通知栏通知栏通知栏通知栏',
|
|
1661
|
-
// span: 24,
|
|
1662
|
-
// // showLabel: false,
|
|
1663
|
-
// tagType: 'assist',
|
|
1664
|
-
// labelWidth: 135,
|
|
1665
|
-
// },
|
|
1666
|
-
// speed: 50, // 滚动速率 (px/s)
|
|
1667
|
-
// closable: false,
|
|
1668
|
-
// icon: 'el-icon-message-solid', // 图标
|
|
1669
|
-
// className: [],
|
|
1670
|
-
// styleObj: { ...styleObj, color: '#FF6600', backgroundColor: '#FFFBE8' },
|
|
1671
|
-
// },
|
|
1672
|
-
// {
|
|
1673
|
-
// __config__: {
|
|
1674
|
-
// label: '轮播图',
|
|
1675
|
-
// tag: 'form-swipe',
|
|
1676
|
-
// tagIcon: 'swipe',
|
|
1677
|
-
// span: 24,
|
|
1678
|
-
// // showLabel: false,
|
|
1679
|
-
// tagType: 'assist',
|
|
1680
|
-
// labelWidth: 135,
|
|
1681
|
-
// },
|
|
1682
|
-
// className: [],
|
|
1683
|
-
// styleObj,
|
|
1684
|
-
// type: 'default', // 走马灯类型
|
|
1685
|
-
// autoplay: true,
|
|
1686
|
-
// // direction: 'horizontal',
|
|
1687
|
-
// interval: 3000, // 自动切换时间
|
|
1688
|
-
// loop: true,
|
|
1689
|
-
// initialIndex: 0,
|
|
1690
|
-
// "dataObj": {
|
|
1691
|
-
// type: 'static',
|
|
1692
|
-
// "url": "",
|
|
1693
|
-
// "method": "get",
|
|
1694
|
-
// "request": {},
|
|
1695
|
-
// // 请求数据类型 JSON/FormData
|
|
1696
|
-
// reDataType: 'JSON',
|
|
1697
|
-
// "response": "// response 为接口请求成功时返回的数据",
|
|
1698
|
-
// "error": "// error 为接口请求失败时返回的数据",
|
|
1699
|
-
// value: [{
|
|
1700
|
-
// name: '图片1',
|
|
1701
|
-
// // image: 'https://picsum.photos/300/200?1'
|
|
1702
|
-
// path: 'https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg'
|
|
1703
|
-
// }, {
|
|
1704
|
-
// name: '图片2',
|
|
1705
|
-
// path: 'https://picsum.photos/300/200?2'
|
|
1706
|
-
// }, {
|
|
1707
|
-
// name: '图片3',
|
|
1708
|
-
// path: 'https://picsum.photos/300/200?3'
|
|
1709
|
-
// }, {
|
|
1710
|
-
// name: '图片4',
|
|
1711
|
-
// path: 'https://picsum.photos/300/200?4'
|
|
1712
|
-
// }], // 静态数据
|
|
1713
|
-
// },
|
|
1714
|
-
// },
|
|
1715
|
-
]
|
|
1716
|
-
|
|
1717
|
-
export function setConfig(defaultConfig) {
|
|
1718
|
-
if (!defaultConfig) return
|
|
1719
|
-
if (!Object.keys(defaultConfig).length) return
|
|
1720
|
-
// 1. 表单配置
|
|
1721
|
-
if (defaultConfig.formConf) formConf = deepClone(defaultConfig.formConf)
|
|
1722
|
-
// 2.1 输入型组件 【左面板】
|
|
1723
|
-
if (defaultConfig.inputComponents) inputComponents = deepClone(defaultConfig.inputComponents)
|
|
1724
|
-
// 2.2 选择型组件 【左面板】
|
|
1725
|
-
if (defaultConfig.selectComponents) selectComponents = deepClone(defaultConfig.selectComponents)
|
|
1726
|
-
// 2.3 布局型组件 【左面板】
|
|
1727
|
-
if (defaultConfig.layoutComponents) layoutComponents = deepClone(defaultConfig.layoutComponents)
|
|
1728
|
-
// 2.4 辅助组件
|
|
1729
|
-
if (defaultConfig.assistComponents) assistComponents = deepClone(defaultConfig.assistComponents)
|
|
1730
|
-
}
|