@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,401 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="Fg-gener" :style="{'--themeColor':themeColor,'--selectedColor':selectedColor}">
|
|
3
|
-
<div class="Fg-gener-left" :class="toLeft?'Fg-gener-side-close':''">
|
|
4
|
-
<!-- <div class="Fg-gener-left-title">组件库</div> -->
|
|
5
|
-
<el-tabs v-model="leftTab" stretch>
|
|
6
|
-
<el-tab-pane label="组件" name="coms" />
|
|
7
|
-
<el-tab-pane label="模板" name="temps" v-if="!hideTemps" />
|
|
8
|
-
<el-tab-pane label="大纲" name="outline" v-if="!hideOutline" />
|
|
9
|
-
</el-tabs>
|
|
10
|
-
<!-- 左侧组件 -->
|
|
11
|
-
<div class="Fg-gener-left-cont">
|
|
12
|
-
<FormGeneratorCom
|
|
13
|
-
v-show="leftTab=='coms'"
|
|
14
|
-
:formConf="formAttrData"
|
|
15
|
-
@add="handleAdd"
|
|
16
|
-
@drag="handleDrag"
|
|
17
|
-
/>
|
|
18
|
-
<FormGeneratorOutline :list.sync="drawingList" v-show="leftTab=='outline'" />
|
|
19
|
-
<FormGeneratorTemp v-if="leftTab=='temps'" @change="handleTemp" />
|
|
20
|
-
</div>
|
|
21
|
-
</div>
|
|
22
|
-
<div class="Fg-gener-content" :style="contentStyle">
|
|
23
|
-
<div class="Fg-gener-button">
|
|
24
|
-
<div class="Fg-gener-button-left">
|
|
25
|
-
<FormExport :value="formObj" />
|
|
26
|
-
<FormImport :value="formObj" @confirm="handleImport" />
|
|
27
|
-
|
|
28
|
-
<!-- <el-button type="text" icon="el-icon-refresh-left"></el-button>
|
|
29
|
-
<el-button type="text" icon="el-icon-refresh-right"></el-button>-->
|
|
30
|
-
</div>
|
|
31
|
-
<div>
|
|
32
|
-
<el-button
|
|
33
|
-
v-if="!hideSaveBtn"
|
|
34
|
-
type="success"
|
|
35
|
-
plain
|
|
36
|
-
icon="el-icon-folder-checked"
|
|
37
|
-
size="mini"
|
|
38
|
-
@click="handleSave"
|
|
39
|
-
>保存</el-button>
|
|
40
|
-
<el-button type="primary" plain size="mini" icon="el-icon-view" @click="handleView">预览</el-button>
|
|
41
|
-
<el-button type="danger" plain icon="el-icon-delete" size="mini" @click="handleClear">清空</el-button>
|
|
42
|
-
</div>
|
|
43
|
-
</div>
|
|
44
|
-
<!-- 中间表单内容 -->
|
|
45
|
-
<el-form
|
|
46
|
-
class="Fg-gener-form"
|
|
47
|
-
:ref="formAttrData.formRef"
|
|
48
|
-
:size="formAttrData.size"
|
|
49
|
-
:label-position="formAttrData.labelPosition"
|
|
50
|
-
:disabled="formAttrData.disabled"
|
|
51
|
-
:label-width="formAttrData.labelWidth + 'px'"
|
|
52
|
-
>
|
|
53
|
-
<form-row-container
|
|
54
|
-
:enabled="enabled"
|
|
55
|
-
:list.sync="drawingList"
|
|
56
|
-
:formConf="formAttrData"
|
|
57
|
-
height="100%"
|
|
58
|
-
@clone="handleClone"
|
|
59
|
-
/>
|
|
60
|
-
<el-empty class="form-empty" v-show="!drawingList.length" description="从左侧拖入或点选组件进行表单设计"></el-empty>
|
|
61
|
-
</el-form>
|
|
62
|
-
<i class="el-icon-arrow-left toLeft" @click="toLeft=!toLeft" />
|
|
63
|
-
<i class="el-icon-arrow-right toRight" @click="toRight=!toRight" />
|
|
64
|
-
</div>
|
|
65
|
-
<div class="Fg-gener-right" :class="toRight?'Fg-gener-side-close':''">
|
|
66
|
-
<!-- 右侧表单属性 -->
|
|
67
|
-
<el-tabs v-model="rightTab" stretch>
|
|
68
|
-
<el-tab-pane label="组件属性" name="field" />
|
|
69
|
-
<el-tab-pane label="表单属性" name="form" />
|
|
70
|
-
</el-tabs>
|
|
71
|
-
<div class="Fg-gener-attr-cont">
|
|
72
|
-
<FormGeneratorAttrField v-show="rightTab == 'field'" :formConf="formAttrData" />
|
|
73
|
-
<FormGeneratorAttrForm v-show="rightTab == 'form'" :formConf.sync="formAttrData" />
|
|
74
|
-
</div>
|
|
75
|
-
</div>
|
|
76
|
-
|
|
77
|
-
<FormPreview ref="FormPreview" :hidePhone="hidePhone" />
|
|
78
|
-
</div>
|
|
79
|
-
</template>
|
|
80
|
-
|
|
81
|
-
<script>
|
|
82
|
-
import FormGeneratorCom from "./components/formGeneratorCom.vue";
|
|
83
|
-
import FormGeneratorOutline from "./components/formGeneratorOutline.vue";
|
|
84
|
-
import FormGeneratorAttrField from "./components/formGeneratorAttrField.vue";
|
|
85
|
-
import FormGeneratorAttrForm from "./components/formGeneratorAttrForm.vue";
|
|
86
|
-
import FormGeneratorTemp from "./components/formGeneratorTemp.vue";
|
|
87
|
-
import FormPreview from "./components/formPreview.vue";
|
|
88
|
-
import FormExport from "./components/formExport.vue";
|
|
89
|
-
import FormImport from "./components/formImport.vue";
|
|
90
|
-
import { formConf } from "./utils/config";
|
|
91
|
-
import { Message, MessageBox } from "element-ui";
|
|
92
|
-
import { deepClone, validateForm, getUuiKey, formTreeToArray } from "./utils";
|
|
93
|
-
import store from "@/store";
|
|
94
|
-
export default {
|
|
95
|
-
components: {
|
|
96
|
-
FormGeneratorCom,
|
|
97
|
-
FormGeneratorOutline,
|
|
98
|
-
FormGeneratorAttrField,
|
|
99
|
-
FormGeneratorAttrForm,
|
|
100
|
-
FormGeneratorTemp,
|
|
101
|
-
FormPreview,
|
|
102
|
-
FormExport,
|
|
103
|
-
FormImport,
|
|
104
|
-
},
|
|
105
|
-
|
|
106
|
-
props: {
|
|
107
|
-
// 用于回显的旧数据表单列表
|
|
108
|
-
formLists: {
|
|
109
|
-
type: Array,
|
|
110
|
-
default: () => [],
|
|
111
|
-
},
|
|
112
|
-
// 用于回显的旧数据表单属性
|
|
113
|
-
formAttrs: {
|
|
114
|
-
type: Object,
|
|
115
|
-
default: () => {},
|
|
116
|
-
},
|
|
117
|
-
// 隐藏保存按钮
|
|
118
|
-
hideSaveBtn: {
|
|
119
|
-
type: Boolean,
|
|
120
|
-
default: false,
|
|
121
|
-
},
|
|
122
|
-
// 编辑器时是否可以点击操作
|
|
123
|
-
enabled: {
|
|
124
|
-
type: Boolean,
|
|
125
|
-
default: false,
|
|
126
|
-
},
|
|
127
|
-
// 主题色:只支持rgb和hex格式
|
|
128
|
-
themeColor: {
|
|
129
|
-
type: String,
|
|
130
|
-
default: "#409EFF", // #409EFF
|
|
131
|
-
},
|
|
132
|
-
hideOutline: {
|
|
133
|
-
type: Boolean,
|
|
134
|
-
default: false,
|
|
135
|
-
},
|
|
136
|
-
hideTemps: {
|
|
137
|
-
type: Boolean,
|
|
138
|
-
default: false,
|
|
139
|
-
},
|
|
140
|
-
hidePhone: {
|
|
141
|
-
type: Boolean,
|
|
142
|
-
default: false,
|
|
143
|
-
},
|
|
144
|
-
},
|
|
145
|
-
data() {
|
|
146
|
-
return {
|
|
147
|
-
drawingList: this.formLists, // 初始化时默认选中表单组件
|
|
148
|
-
formAttrData: {
|
|
149
|
-
...{ ...formConf, formId: getUuiKey(), formCode: "form" + getUuiKey() },
|
|
150
|
-
...this.formAttrs,
|
|
151
|
-
}, // 当前的表单属性
|
|
152
|
-
leftTab: "coms",
|
|
153
|
-
rightTab: "field",
|
|
154
|
-
toLeft: false,
|
|
155
|
-
toRight: false,
|
|
156
|
-
};
|
|
157
|
-
},
|
|
158
|
-
mounted() {
|
|
159
|
-
this.init();
|
|
160
|
-
},
|
|
161
|
-
computed: {
|
|
162
|
-
contentStyle() {
|
|
163
|
-
const left = this.toLeft ? 0 : 260;
|
|
164
|
-
const right = this.toRight ? 0 : 350;
|
|
165
|
-
return {
|
|
166
|
-
width: `calc(100% - ${left}px - ${right}px)`,
|
|
167
|
-
};
|
|
168
|
-
},
|
|
169
|
-
selectedColor() {
|
|
170
|
-
return store.state.app.selectedColor;
|
|
171
|
-
},
|
|
172
|
-
formObj() {
|
|
173
|
-
return { ...this.formAttrData, list: this.drawingList };
|
|
174
|
-
},
|
|
175
|
-
},
|
|
176
|
-
methods: {
|
|
177
|
-
init() {
|
|
178
|
-
// 给初始值表单设置表单项id formId
|
|
179
|
-
store.commit("SET_ACTIVEDATA", this.drawingList[0] || {});
|
|
180
|
-
store.commit("SET_THEMECOLOR", this.themeColor);
|
|
181
|
-
},
|
|
182
|
-
|
|
183
|
-
// 校验
|
|
184
|
-
validate(cb) {
|
|
185
|
-
// 1. 不允许为空
|
|
186
|
-
if (!this.drawingList.length) {
|
|
187
|
-
cb(false, ["表单为空,请添加组件"]);
|
|
188
|
-
return;
|
|
189
|
-
}
|
|
190
|
-
// 2. 表单名称不能为空
|
|
191
|
-
const obj = validateForm(this.drawingList);
|
|
192
|
-
cb(obj.valid, obj.errorMsg);
|
|
193
|
-
},
|
|
194
|
-
|
|
195
|
-
// 导入
|
|
196
|
-
handleImport(formConfig, list) {
|
|
197
|
-
this.formAttrData = formConfig;
|
|
198
|
-
this.drawingList = list;
|
|
199
|
-
},
|
|
200
|
-
|
|
201
|
-
// 从左侧控件点击某一控件添加表单项
|
|
202
|
-
handleAdd(item) {
|
|
203
|
-
this.drawingList.push(item);
|
|
204
|
-
store.commit("SET_ACTIVEDATA", item);
|
|
205
|
-
},
|
|
206
|
-
// 从左侧控件拖拽某一控件添加表单项,拖拽会自动添加,无须手动添加表单项,只需要更新当前选中表单项
|
|
207
|
-
handleDrag(item) {
|
|
208
|
-
store.commit("SET_ACTIVEDATA", deepClone(item));
|
|
209
|
-
},
|
|
210
|
-
// 选择模板
|
|
211
|
-
handleTemp(temp) {
|
|
212
|
-
this.drawingList = deepClone(temp);
|
|
213
|
-
},
|
|
214
|
-
// 清空表单
|
|
215
|
-
handleClear() {
|
|
216
|
-
// 平铺表单
|
|
217
|
-
const list = formTreeToArray(this.drawingList);
|
|
218
|
-
// 获取表单中被锁定的表单
|
|
219
|
-
const lockForm = list.find((item) => item.isLock);
|
|
220
|
-
if (lockForm) return Message.error("存在已锁定组件,无法清空!");
|
|
221
|
-
MessageBox.confirm("确定要清空所有组件吗?", {
|
|
222
|
-
type: "warning",
|
|
223
|
-
}).then(() => {
|
|
224
|
-
this.drawingList = [];
|
|
225
|
-
store.commit("SET_ACTIVEDATA", {});
|
|
226
|
-
});
|
|
227
|
-
},
|
|
228
|
-
// 预览表单
|
|
229
|
-
handleView() {
|
|
230
|
-
if (!this.drawingList.length) {
|
|
231
|
-
return Message.error("请选择表单组件!");
|
|
232
|
-
}
|
|
233
|
-
this.$refs.FormPreview.open(this.drawingList, this.formAttrData);
|
|
234
|
-
},
|
|
235
|
-
// 预览表单(移动端)
|
|
236
|
-
handleViewPhone() {
|
|
237
|
-
if (!this.drawingList.length) {
|
|
238
|
-
return Message.error("请选择表单组件!");
|
|
239
|
-
}
|
|
240
|
-
this.$refs.FormPhoneDialog.open(this.drawingList, this.formAttrData);
|
|
241
|
-
},
|
|
242
|
-
handleClone(clone) {
|
|
243
|
-
this.drawingList.push(clone);
|
|
244
|
-
},
|
|
245
|
-
// 保存
|
|
246
|
-
handleSave() {
|
|
247
|
-
if (!this.drawingList.length) {
|
|
248
|
-
return Message.error("请选择表单组件!");
|
|
249
|
-
}
|
|
250
|
-
// MessageBox.confirm("确定保存该表单吗?", {
|
|
251
|
-
// type: "warning",
|
|
252
|
-
// }).then(() => {
|
|
253
|
-
// Message.success("保存成功!");
|
|
254
|
-
const list = deepClone(this.drawingList);
|
|
255
|
-
const attrs = deepClone(this.formAttrData);
|
|
256
|
-
this.$emit("save", list, attrs);
|
|
257
|
-
// });
|
|
258
|
-
},
|
|
259
|
-
},
|
|
260
|
-
watch: {
|
|
261
|
-
drawingList(newValue) {
|
|
262
|
-
this.$emit("update:formLists", newValue);
|
|
263
|
-
this.$emit("update", this.drawingList, this.formAttrData);
|
|
264
|
-
},
|
|
265
|
-
formAttrData(newValue) {
|
|
266
|
-
this.$emit("update:formAttrs", newValue);
|
|
267
|
-
this.$emit("update", this.drawingList, this.formAttrData);
|
|
268
|
-
},
|
|
269
|
-
},
|
|
270
|
-
};
|
|
271
|
-
</script>
|
|
272
|
-
|
|
273
|
-
<style lang="scss">
|
|
274
|
-
@import "./styles/index.scss";
|
|
275
|
-
@import "./styles/generator.scss";
|
|
276
|
-
@import "./styles/theme.scss";
|
|
277
|
-
|
|
278
|
-
.Fg-gener {
|
|
279
|
-
font-size: 14px;
|
|
280
|
-
position: relative;
|
|
281
|
-
width: 100%;
|
|
282
|
-
height: 100%;
|
|
283
|
-
overflow: hidden;
|
|
284
|
-
display: flex;
|
|
285
|
-
justify-content: space-between;
|
|
286
|
-
.el-tabs__header {
|
|
287
|
-
margin: 0;
|
|
288
|
-
}
|
|
289
|
-
.el-tabs__item {
|
|
290
|
-
height: 44px;
|
|
291
|
-
}
|
|
292
|
-
.Fg-gener-left,
|
|
293
|
-
.Fg-gener-right {
|
|
294
|
-
background-color: #fff;
|
|
295
|
-
z-index: 1;
|
|
296
|
-
overflow: hidden;
|
|
297
|
-
-webkit-transition: -webkit-transform 0.3s;
|
|
298
|
-
transition: -webkit-transform 0.3s;
|
|
299
|
-
transition: transform 0.3s;
|
|
300
|
-
transition: transform 0.3s, -webkit-transform 0.3s;
|
|
301
|
-
transition: transform 0.3s, -webkit-transform 0.3s;
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
.Fg-gener-left {
|
|
305
|
-
width: 260px;
|
|
306
|
-
box-shadow: 0 0 8px $shadowColor;
|
|
307
|
-
.Fg-gener-left-title {
|
|
308
|
-
height: 42px;
|
|
309
|
-
line-height: 42px;
|
|
310
|
-
text-align: center;
|
|
311
|
-
font-size: 14px;
|
|
312
|
-
color: $themeColor;
|
|
313
|
-
}
|
|
314
|
-
.Fg-gener-left-cont {
|
|
315
|
-
height: calc(100% - 43px);
|
|
316
|
-
overflow: auto;
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
.Fg-gener-content {
|
|
320
|
-
flex: 1;
|
|
321
|
-
position: relative;
|
|
322
|
-
> .toLeft,
|
|
323
|
-
> .toRight {
|
|
324
|
-
display: inline-block;
|
|
325
|
-
// box-shadow: 2px 0 12px $shadowColor;
|
|
326
|
-
border-radius: 0 6px 6px 0;
|
|
327
|
-
position: absolute;
|
|
328
|
-
top: 50%;
|
|
329
|
-
transform: translateY(-16px);
|
|
330
|
-
color: #666;
|
|
331
|
-
outline: none;
|
|
332
|
-
height: 32px;
|
|
333
|
-
width: 16px;
|
|
334
|
-
display: flex;
|
|
335
|
-
justify-content: center;
|
|
336
|
-
align-items: center;
|
|
337
|
-
cursor: pointer;
|
|
338
|
-
}
|
|
339
|
-
> .toLeft {
|
|
340
|
-
left: 0;
|
|
341
|
-
box-shadow: 3px 0 3px $shadowColor;
|
|
342
|
-
-webkit-transform: perspective(10px) rotateY(9deg);
|
|
343
|
-
transform: perspective(10px) rotateY(9deg);
|
|
344
|
-
}
|
|
345
|
-
> .toRight {
|
|
346
|
-
-webkit-transform: perspective(10px) rotateY(-9deg);
|
|
347
|
-
transform: perspective(10px) rotateY(-9deg);
|
|
348
|
-
right: 0;
|
|
349
|
-
box-shadow: -3px 0 3px $shadowColor;
|
|
350
|
-
}
|
|
351
|
-
.Fg-gener-button {
|
|
352
|
-
height: 42px;
|
|
353
|
-
box-shadow: 0 0 8px $shadowColor;
|
|
354
|
-
padding: 0 15px;
|
|
355
|
-
display: flex;
|
|
356
|
-
justify-content: space-between;
|
|
357
|
-
align-items: center;
|
|
358
|
-
// // border-bottom: 1px solid $borderColor;
|
|
359
|
-
.Fg-gener-button-left {
|
|
360
|
-
display: flex;
|
|
361
|
-
align-items: center;
|
|
362
|
-
justify-content: center;
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
|
-
.Fg-gener-form {
|
|
366
|
-
padding: 16px;
|
|
367
|
-
height: calc(100% - 43px);
|
|
368
|
-
overflow-y: auto;
|
|
369
|
-
box-sizing: border-box;
|
|
370
|
-
position: relative;
|
|
371
|
-
}
|
|
372
|
-
.form-empty {
|
|
373
|
-
position: absolute;
|
|
374
|
-
top: 0;
|
|
375
|
-
left: 0;
|
|
376
|
-
right: 0;
|
|
377
|
-
bottom: 0;
|
|
378
|
-
display: flex;
|
|
379
|
-
align-items: center;
|
|
380
|
-
justify-content: center;
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
.Fg-gener-right {
|
|
384
|
-
// border-left: 1px solid $borderColor;
|
|
385
|
-
box-shadow: 0 0 8px $shadowColor;
|
|
386
|
-
width: 350px;
|
|
387
|
-
height: 100%;
|
|
388
|
-
|
|
389
|
-
.Fg-gener-attr-cont {
|
|
390
|
-
height: calc(100% - 44px);
|
|
391
|
-
padding: 16px;
|
|
392
|
-
box-sizing: border-box;
|
|
393
|
-
overflow-y: auto;
|
|
394
|
-
overflow-x: hidden;
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
-
.Fg-gener-side-close {
|
|
398
|
-
width: 0;
|
|
399
|
-
}
|
|
400
|
-
}
|
|
401
|
-
</style>
|
|
@@ -1,271 +0,0 @@
|
|
|
1
|
-
$themeColor:var(--themeColor);
|
|
2
|
-
$selectedColor: var(--selectedColor);
|
|
3
|
-
$borderColor:#f1e8e8;
|
|
4
|
-
$shadowColor:#0000001a;
|
|
5
|
-
$shadow:0 0 4px $shadowColor;
|
|
6
|
-
|
|
7
|
-
$grey-light:#93969e;
|
|
8
|
-
|
|
9
|
-
.Fg-Blue {
|
|
10
|
-
color: $themeColor;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
@mixin Fg-drop-here() {
|
|
14
|
-
background: #f2f8ff;
|
|
15
|
-
// border: 1px dashed #ccc;
|
|
16
|
-
}
|
|
17
|
-
.Fg-form-item {
|
|
18
|
-
overflow: hidden;
|
|
19
|
-
.el-table .el-table__header {
|
|
20
|
-
line-height: 23px;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
.drawing-board {
|
|
24
|
-
|
|
25
|
-
.Fg-form-item {
|
|
26
|
-
// background-color: #fff;
|
|
27
|
-
.el-form-item {
|
|
28
|
-
background: transparent !important;
|
|
29
|
-
}
|
|
30
|
-
.el-input__inner {
|
|
31
|
-
// background: transparent;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
.el-input__inner,.el-textarea__inner {
|
|
35
|
-
background: transparent;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
.Fg-active {
|
|
40
|
-
position: relative;
|
|
41
|
-
border: 2px solid $themeColor !important;
|
|
42
|
-
}
|
|
43
|
-
height: 100%;
|
|
44
|
-
// min-height: 60px;
|
|
45
|
-
position: relative;
|
|
46
|
-
.sortable-ghost {
|
|
47
|
-
position: relative;
|
|
48
|
-
display: block;
|
|
49
|
-
overflow: hidden;
|
|
50
|
-
&::before {
|
|
51
|
-
content: " ";
|
|
52
|
-
position: absolute;
|
|
53
|
-
left: 0;
|
|
54
|
-
right: 0;
|
|
55
|
-
top: 0;
|
|
56
|
-
height: 3px;
|
|
57
|
-
background: $themeColor;
|
|
58
|
-
z-index: 2;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
.components-item.sortable-ghost {
|
|
62
|
-
width: 100%;
|
|
63
|
-
height: 60px;
|
|
64
|
-
// background-color: $selectedColor;
|
|
65
|
-
}
|
|
66
|
-
.drawing-item-edit:last-child{
|
|
67
|
-
margin-bottom: 0;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
.drawing-item-edit{
|
|
71
|
-
position: relative;
|
|
72
|
-
cursor: move;
|
|
73
|
-
// margin-bottom: 16px;
|
|
74
|
-
padding: 8px;
|
|
75
|
-
&.unfocus-bordered:not(.active-from-item) > div:first-child {
|
|
76
|
-
border: 1px dashed #ccc;
|
|
77
|
-
}
|
|
78
|
-
.el-form-item{
|
|
79
|
-
// padding: 12px 10px;
|
|
80
|
-
margin-bottom: 0;
|
|
81
|
-
background-color: #fff;
|
|
82
|
-
}
|
|
83
|
-
.Fg-table-container {
|
|
84
|
-
td {
|
|
85
|
-
height: 60px;
|
|
86
|
-
box-sizing: border-box;
|
|
87
|
-
background-color: #f2f8ff;
|
|
88
|
-
>.Fg-tips {
|
|
89
|
-
>.Fg-tips-content {
|
|
90
|
-
border-width: 0;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
.Fg-com-mini, .Fg-com-small,.Fg-com-medium {
|
|
96
|
-
margin-bottom: 0;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.form-row-container {
|
|
100
|
-
padding: 8px;
|
|
101
|
-
}
|
|
102
|
-
.Fg-table-container {
|
|
103
|
-
.form-row-container {
|
|
104
|
-
padding: 0;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.Fg-tabs-container {
|
|
109
|
-
.el-tabs__content {
|
|
110
|
-
@include Fg-drop-here();
|
|
111
|
-
}
|
|
112
|
-
&.el-tabs--border-card>.el-tabs__content {
|
|
113
|
-
padding: 0;
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
.Fg-card {
|
|
117
|
-
.el-card__body {
|
|
118
|
-
@include Fg-drop-here();
|
|
119
|
-
padding: 0;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
.Fg-collapse {
|
|
124
|
-
.el-collapse-item__content {
|
|
125
|
-
@include Fg-drop-here();
|
|
126
|
-
padding-bottom: 0;
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
.Fg-sub {
|
|
130
|
-
.Fg-sub-item {
|
|
131
|
-
@include Fg-drop-here();
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
.Fg-steps {
|
|
135
|
-
.Fg-steps--content {
|
|
136
|
-
@include Fg-drop-here();
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
.Fg-tips {
|
|
140
|
-
position: relative;
|
|
141
|
-
.Fg-tips-content {
|
|
142
|
-
display: flex;
|
|
143
|
-
align-items: center;
|
|
144
|
-
justify-content: center;
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
.form-row-container {
|
|
151
|
-
font-size: 14px;
|
|
152
|
-
input,textarea {
|
|
153
|
-
// background: transparent;
|
|
154
|
-
}
|
|
155
|
-
.el-form-item__label {
|
|
156
|
-
// color: inherit;
|
|
157
|
-
// font-size: inherit;
|
|
158
|
-
// text-decoration-line: inherit;
|
|
159
|
-
// text-decoration-color:inherit;
|
|
160
|
-
// text-decoration-style:inherit;
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
.drawing-border {
|
|
164
|
-
@include Fg-drop-here()
|
|
165
|
-
}
|
|
166
|
-
.drawing-row-item{
|
|
167
|
-
position: relative;
|
|
168
|
-
cursor: move;
|
|
169
|
-
box-sizing: border-box;
|
|
170
|
-
border: 1px dashed #ccc;
|
|
171
|
-
// border-radius: 3px;
|
|
172
|
-
.drag-wrapper{
|
|
173
|
-
min-height: 80px;
|
|
174
|
-
}
|
|
175
|
-
.component-name{
|
|
176
|
-
position: absolute;
|
|
177
|
-
top: 0;
|
|
178
|
-
left: 10px;
|
|
179
|
-
font-size: 12px;
|
|
180
|
-
color: #bbb;
|
|
181
|
-
display: inline-block;
|
|
182
|
-
padding: 0 6px;
|
|
183
|
-
}
|
|
184
|
-
.el-input-number,
|
|
185
|
-
.el-autocomplete {
|
|
186
|
-
width: 100%;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
.drawing-item-hover {
|
|
192
|
-
&:hover {
|
|
193
|
-
border: 1px dashed $themeColor ;
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
.drawing-item-edit, .drawing-row-item{
|
|
198
|
-
.Fg-form-item--topIcon {
|
|
199
|
-
position: absolute;
|
|
200
|
-
top: 5px;
|
|
201
|
-
left:5px;
|
|
202
|
-
z-index: 1;
|
|
203
|
-
}
|
|
204
|
-
.Fg-form-item--icon {
|
|
205
|
-
position: absolute;
|
|
206
|
-
// top: -10px;
|
|
207
|
-
// right: 24px;
|
|
208
|
-
bottom: 1px;
|
|
209
|
-
right: 1px;
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
.Fg-bottom-0 {
|
|
214
|
-
margin-bottom: 0;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
.Fg-com-mini {
|
|
218
|
-
margin-bottom: 18px;
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
.Fg-com-small {
|
|
222
|
-
margin-bottom: 18px;
|
|
223
|
-
}
|
|
224
|
-
.Fg-com-medium {
|
|
225
|
-
margin-bottom: 22px;
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
.Fg-cursor {
|
|
229
|
-
cursor: pointer;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
.Fg-upload-tips {
|
|
233
|
-
color: $grey-light;
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
// 组件文字行高
|
|
237
|
-
@mixin FgTextLH($lh) {
|
|
238
|
-
// 富文本行高
|
|
239
|
-
.rich-text-show {
|
|
240
|
-
line-height: $lh !important;
|
|
241
|
-
.ql-editor {
|
|
242
|
-
padding: 0 !important;
|
|
243
|
-
line-height: $lh !important;
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
// 附件行高
|
|
247
|
-
.Fg-file-item {
|
|
248
|
-
line-height: $lh !important;
|
|
249
|
-
}
|
|
250
|
-
//
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
.el-form-item--mini {
|
|
254
|
-
@include FgTextLH(28px);
|
|
255
|
-
.Fg-tree {
|
|
256
|
-
margin: 1px 0;
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
.el-form-item--small {
|
|
260
|
-
@include FgTextLH(32px);
|
|
261
|
-
.Fg-tree {
|
|
262
|
-
margin: 3px 0;
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
.el-form-item--medium {
|
|
266
|
-
@include FgTextLH(36px);
|
|
267
|
-
.Fg-tree {
|
|
268
|
-
margin: 5px 0;
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
|