@xfu0401/form-generator 1.1.18 → 1.1.19

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.
Files changed (328) hide show
  1. package/package.json +1 -1
  2. package/.eslintrc.js +0 -48
  3. package/@xfu0401/form-generator/package.json +0 -63
  4. package/LICENSE +0 -127
  5. package/README.md +0 -268
  6. package/REMAKR.md +0 -15
  7. package/babel.config.js +0 -22
  8. package/public/favicon.ico +0 -0
  9. package/public/img/show/PixPin_2024-07-17_16-25-59.gif +0 -0
  10. package/public/img/show/PixPin_2024-07-17_16-33-51.png +0 -0
  11. package/public/img/show/file.png +0 -0
  12. package/public/img/show/image.png +0 -0
  13. package/public/img/show/pc/347/253/257/346/270/262/346/237/223.png +0 -0
  14. package/public/img/show/pc/347/253/257/350/257/246/346/203/205.png +0 -0
  15. package/public/img/show//344/272/213/344/273/266.png +0 -0
  16. package/public/img/show//345/205/250/345/261/200/344/272/213/344/273/266.png +0 -0
  17. package/public/img/show//345/205/250/345/261/200/346/240/267/345/274/217.png +0 -0
  18. package/public/img/show//346/240/267/345/274/217/345/261/236/346/200/247.png +0 -0
  19. package/public/img/show//347/247/273/345/212/250/347/253/257/346/270/262/346/237/223.png +0 -0
  20. package/public/img/show//347/247/273/345/212/250/347/253/257/350/257/246/346/203/205.png +0 -0
  21. package/public/img/show//347/274/226/350/276/221/345/231/2502.png +0 -0
  22. package/public/img/show//347/274/226/350/276/221/345/231/2503.png +0 -0
  23. package/public/img/show//347/274/226/350/276/221/345/231/2504.png +0 -0
  24. package/public/img/temp//344/270/273/344/273/216/350/241/250/345/215/225.jpg +0 -0
  25. package/public/img/temp//345/210/206/347/273/204/350/241/250/345/215/225.jpg +0 -0
  26. package/public/img/temp//345/215/225/345/210/227/350/241/250/345/215/225.jpg +0 -0
  27. 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
  28. package/public/img/temp//345/244/232/345/210/227/350/241/250/345/215/225.jpg +0 -0
  29. package/public/img/temp//346/240/207/347/255/276/351/241/265/350/241/250/345/215/225.jpg +0 -0
  30. package/public/index.html +0 -25
  31. package/public/static/js/config.js +0 -2
  32. package/src/App.vue +0 -18
  33. package/src/api/data.js +0 -60
  34. package/src/components/Layout/Layout.vue +0 -28
  35. package/src/components/Layout/LeftMenu.vue +0 -46
  36. package/src/components/SvgIcon/index.vue +0 -43
  37. package/src/components/code/Code.vue +0 -98
  38. package/src/components/common/FGDialog.vue +0 -100
  39. package/src/components/editor/CodeDialog.vue +0 -68
  40. package/src/components/editor/CodeEditor.vue +0 -191
  41. package/src/components/editor/CodeJson.vue +0 -130
  42. package/src/components/editor/CssEditor.vue +0 -84
  43. package/src/components/editor/EventEditor.vue +0 -84
  44. package/src/components/editor/JsonDialog.vue +0 -55
  45. package/src/components/editor/JsonEditor.vue +0 -58
  46. package/src/components/editor/components/EditorLeft.vue +0 -138
  47. package/src/components/fileComs/ExportExcel.vue +0 -49
  48. package/src/components/fileComs/ExportJson.vue +0 -52
  49. package/src/components/fileComs/ImportExcel.vue +0 -96
  50. package/src/components/fileComs/ImportJson.vue +0 -65
  51. package/src/components/formGenerator/components/formExport.vue +0 -52
  52. package/src/components/formGenerator/components/formGeneratorAttrField.vue +0 -1113
  53. package/src/components/formGenerator/components/formGeneratorAttrForm.vue +0 -98
  54. package/src/components/formGenerator/components/formGeneratorCom.vue +0 -108
  55. package/src/components/formGenerator/components/formGeneratorOutline.vue +0 -159
  56. package/src/components/formGenerator/components/formGeneratorTemp.vue +0 -77
  57. package/src/components/formGenerator/components/formImport.vue +0 -62
  58. package/src/components/formGenerator/components/formPreview.vue +0 -102
  59. package/src/components/formGenerator/configComponents/DataConfig.vue +0 -156
  60. package/src/components/formGenerator/configComponents/DataDialog.vue +0 -188
  61. package/src/components/formGenerator/configComponents/EventConfig.vue +0 -56
  62. package/src/components/formGenerator/configComponents/PageConfig.vue +0 -55
  63. package/src/components/formGenerator/configComponents/RegConfig.vue +0 -105
  64. package/src/components/formGenerator/configComponents/ShadowConfig.vue +0 -95
  65. package/src/components/formGenerator/configComponents/SpaceConfig.vue +0 -187
  66. package/src/components/formGenerator/configComponents/StyleConfig.vue +0 -258
  67. package/src/components/formGenerator/configComponents/TableConfig.vue +0 -75
  68. package/src/components/formGenerator/configComponents/TableHead.vue +0 -141
  69. package/src/components/formGenerator/formComponents/pcComponents/assistComs/formButton.vue +0 -25
  70. package/src/components/formGenerator/formComponents/pcComponents/assistComs/formDivider.vue +0 -49
  71. package/src/components/formGenerator/formComponents/pcComponents/assistComs/formHtml.vue +0 -37
  72. package/src/components/formGenerator/formComponents/pcComponents/assistComs/formLink.vue +0 -26
  73. package/src/components/formGenerator/formComponents/pcComponents/assistComs/formNotice.vue +0 -118
  74. package/src/components/formGenerator/formComponents/pcComponents/assistComs/formRemark.vue +0 -29
  75. package/src/components/formGenerator/formComponents/pcComponents/assistComs/formSwipe.vue +0 -39
  76. package/src/components/formGenerator/formComponents/pcComponents/assistComs/formTable.vue +0 -130
  77. package/src/components/formGenerator/formComponents/pcComponents/assistComs/formTableExport.vue +0 -311
  78. package/src/components/formGenerator/formComponents/pcComponents/assistComs/formTag.vue +0 -30
  79. package/src/components/formGenerator/formComponents/pcComponents/assistComs/formText.vue +0 -27
  80. package/src/components/formGenerator/formComponents/pcComponents/assistComs/formTree.vue +0 -47
  81. package/src/components/formGenerator/formComponents/pcComponents/components/emptyTips.vue +0 -24
  82. package/src/components/formGenerator/formComponents/pcComponents/components/esignDialog.vue +0 -86
  83. package/src/components/formGenerator/formComponents/pcComponents/components/filesShow.vue +0 -151
  84. package/src/components/formGenerator/formComponents/pcComponents/components/imageShow.vue +0 -148
  85. package/src/components/formGenerator/formComponents/pcComponents/components/nameShow.vue +0 -54
  86. package/src/components/formGenerator/formComponents/pcComponents/components/tableOptions.vue +0 -56
  87. package/src/components/formGenerator/formComponents/pcComponents/components/tableStyle.vue +0 -58
  88. package/src/components/formGenerator/formComponents/pcComponents/components/userPicker.vue +0 -440
  89. package/src/components/formGenerator/formComponents/pcComponents/inputComs/formAutocomplete.vue +0 -79
  90. package/src/components/formGenerator/formComponents/pcComponents/inputComs/formInput.vue +0 -56
  91. package/src/components/formGenerator/formComponents/pcComponents/inputComs/formInputNumber.vue +0 -51
  92. package/src/components/formGenerator/formComponents/pcComponents/inputComs/formRichText.vue +0 -138
  93. package/src/components/formGenerator/formComponents/pcComponents/layoutComs/formCard.vue +0 -35
  94. package/src/components/formGenerator/formComponents/pcComponents/layoutComs/formCollapse.vue +0 -79
  95. package/src/components/formGenerator/formComponents/pcComponents/layoutComs/formRowContainer.vue +0 -339
  96. package/src/components/formGenerator/formComponents/pcComponents/layoutComs/formSteps.vue +0 -90
  97. package/src/components/formGenerator/formComponents/pcComponents/layoutComs/formSub.vue +0 -219
  98. package/src/components/formGenerator/formComponents/pcComponents/layoutComs/formTableContainer.vue +0 -277
  99. package/src/components/formGenerator/formComponents/pcComponents/layoutComs/formTabsContainer.vue +0 -65
  100. package/src/components/formGenerator/formComponents/pcComponents/selectComs/formCascader.vue +0 -62
  101. package/src/components/formGenerator/formComponents/pcComponents/selectComs/formCascaderOrg.vue +0 -66
  102. package/src/components/formGenerator/formComponents/pcComponents/selectComs/formCheckboxGroup.vue +0 -70
  103. package/src/components/formGenerator/formComponents/pcComponents/selectComs/formColorPicker.vue +0 -39
  104. package/src/components/formGenerator/formComponents/pcComponents/selectComs/formDatePicker.vue +0 -43
  105. package/src/components/formGenerator/formComponents/pcComponents/selectComs/formDaterangePicker.vue +0 -40
  106. package/src/components/formGenerator/formComponents/pcComponents/selectComs/formImage.vue +0 -235
  107. package/src/components/formGenerator/formComponents/pcComponents/selectComs/formOrgPicker.vue +0 -131
  108. package/src/components/formGenerator/formComponents/pcComponents/selectComs/formRadioGroup.vue +0 -59
  109. package/src/components/formGenerator/formComponents/pcComponents/selectComs/formRate.vue +0 -50
  110. package/src/components/formGenerator/formComponents/pcComponents/selectComs/formSelect.vue +0 -62
  111. package/src/components/formGenerator/formComponents/pcComponents/selectComs/formSelectHis.vue +0 -75
  112. package/src/components/formGenerator/formComponents/pcComponents/selectComs/formSelectProject.vue +0 -62
  113. package/src/components/formGenerator/formComponents/pcComponents/selectComs/formSignature.vue +0 -98
  114. package/src/components/formGenerator/formComponents/pcComponents/selectComs/formSlider.vue +0 -46
  115. package/src/components/formGenerator/formComponents/pcComponents/selectComs/formSwitch.vue +0 -37
  116. package/src/components/formGenerator/formComponents/pcComponents/selectComs/formTimePicker.vue +0 -41
  117. package/src/components/formGenerator/formComponents/pcComponents/selectComs/formTimerangePicker.vue +0 -40
  118. package/src/components/formGenerator/formComponents/pcComponents/selectComs/formUpload.vue +0 -306
  119. package/src/components/formGenerator/formComponents/pcComponents/selectComs/formUploadTemp.vue +0 -82
  120. package/src/components/formGenerator/formComponents/pcComponents/selectComs/formUserPicker.vue +0 -142
  121. package/src/components/formGenerator/formComponents/pcForm.vue +0 -155
  122. package/src/components/formGenerator/formComponents/phoneComponents/assistComs/formButton.vue +0 -36
  123. package/src/components/formGenerator/formComponents/phoneComponents/assistComs/formDivider.vue +0 -41
  124. package/src/components/formGenerator/formComponents/phoneComponents/assistComs/formHtml.vue +0 -37
  125. package/src/components/formGenerator/formComponents/phoneComponents/assistComs/formLink.vue +0 -49
  126. package/src/components/formGenerator/formComponents/phoneComponents/assistComs/formNotice.vue +0 -43
  127. package/src/components/formGenerator/formComponents/phoneComponents/assistComs/formRemark.vue +0 -39
  128. package/src/components/formGenerator/formComponents/phoneComponents/assistComs/formSwipe.vue +0 -34
  129. package/src/components/formGenerator/formComponents/phoneComponents/assistComs/formTable.vue +0 -132
  130. package/src/components/formGenerator/formComponents/phoneComponents/assistComs/formTableExport.vue +0 -276
  131. package/src/components/formGenerator/formComponents/phoneComponents/assistComs/formTag.vue +0 -147
  132. package/src/components/formGenerator/formComponents/phoneComponents/assistComs/formText.vue +0 -27
  133. package/src/components/formGenerator/formComponents/phoneComponents/assistComs/formTree.vue +0 -21
  134. package/src/components/formGenerator/formComponents/phoneComponents/components/cascaderPicker.vue +0 -81
  135. package/src/components/formGenerator/formComponents/phoneComponents/components/datePicker.vue +0 -101
  136. package/src/components/formGenerator/formComponents/phoneComponents/components/esignDialog.vue +0 -156
  137. package/src/components/formGenerator/formComponents/phoneComponents/components/filesShow.vue +0 -129
  138. package/src/components/formGenerator/formComponents/phoneComponents/components/imageShow.vue +0 -123
  139. package/src/components/formGenerator/formComponents/phoneComponents/components/nameShow.vue +0 -84
  140. package/src/components/formGenerator/formComponents/phoneComponents/components/orgPicker.vue +0 -343
  141. package/src/components/formGenerator/formComponents/phoneComponents/components/tableShow.vue +0 -149
  142. package/src/components/formGenerator/formComponents/phoneComponents/components/textShow.vue +0 -25
  143. package/src/components/formGenerator/formComponents/phoneComponents/components/timePicker.vue +0 -90
  144. package/src/components/formGenerator/formComponents/phoneComponents/inputComs/formAutocomplete.vue +0 -163
  145. package/src/components/formGenerator/formComponents/phoneComponents/inputComs/formInput.vue +0 -111
  146. package/src/components/formGenerator/formComponents/phoneComponents/inputComs/formInputNumber.vue +0 -65
  147. package/src/components/formGenerator/formComponents/phoneComponents/inputComs/formRichText.vue +0 -147
  148. package/src/components/formGenerator/formComponents/phoneComponents/layoutComs/formCard.vue +0 -59
  149. package/src/components/formGenerator/formComponents/phoneComponents/layoutComs/formCollapse.vue +0 -71
  150. package/src/components/formGenerator/formComponents/phoneComponents/layoutComs/formRowContainer.vue +0 -98
  151. package/src/components/formGenerator/formComponents/phoneComponents/layoutComs/formSteps.vue +0 -112
  152. package/src/components/formGenerator/formComponents/phoneComponents/layoutComs/formSub.vue +0 -130
  153. package/src/components/formGenerator/formComponents/phoneComponents/layoutComs/formTableContainer.vue +0 -93
  154. package/src/components/formGenerator/formComponents/phoneComponents/layoutComs/formTabsContainer.vue +0 -64
  155. package/src/components/formGenerator/formComponents/phoneComponents/selectComs/formCascader.vue +0 -210
  156. package/src/components/formGenerator/formComponents/phoneComponents/selectComs/formCascaderOrg.vue +0 -210
  157. package/src/components/formGenerator/formComponents/phoneComponents/selectComs/formCheckboxGroup.vue +0 -86
  158. package/src/components/formGenerator/formComponents/phoneComponents/selectComs/formColorPicker.vue +0 -63
  159. package/src/components/formGenerator/formComponents/phoneComponents/selectComs/formDatePicker.vue +0 -100
  160. package/src/components/formGenerator/formComponents/phoneComponents/selectComs/formDateRangePicker.vue +0 -136
  161. package/src/components/formGenerator/formComponents/phoneComponents/selectComs/formImage.vue +0 -278
  162. package/src/components/formGenerator/formComponents/phoneComponents/selectComs/formOrgPicker.vue +0 -107
  163. package/src/components/formGenerator/formComponents/phoneComponents/selectComs/formRadioGroup.vue +0 -93
  164. package/src/components/formGenerator/formComponents/phoneComponents/selectComs/formRate.vue +0 -85
  165. package/src/components/formGenerator/formComponents/phoneComponents/selectComs/formSelect.vue +0 -138
  166. package/src/components/formGenerator/formComponents/phoneComponents/selectComs/formSelectHis.vue +0 -156
  167. package/src/components/formGenerator/formComponents/phoneComponents/selectComs/formSelectProject.vue +0 -138
  168. package/src/components/formGenerator/formComponents/phoneComponents/selectComs/formSignature.vue +0 -108
  169. package/src/components/formGenerator/formComponents/phoneComponents/selectComs/formSlider.vue +0 -79
  170. package/src/components/formGenerator/formComponents/phoneComponents/selectComs/formSwitch.vue +0 -88
  171. package/src/components/formGenerator/formComponents/phoneComponents/selectComs/formTimePicker.vue +0 -112
  172. package/src/components/formGenerator/formComponents/phoneComponents/selectComs/formTimeRangePicker.vue +0 -155
  173. package/src/components/formGenerator/formComponents/phoneComponents/selectComs/formUpload.vue +0 -367
  174. package/src/components/formGenerator/formComponents/phoneComponents/selectComs/formUploadTemp.vue +0 -81
  175. package/src/components/formGenerator/formComponents/phoneComponents/selectComs/formUserPicker.vue +0 -114
  176. package/src/components/formGenerator/formComponents/phoneForm.vue +0 -137
  177. package/src/components/formGenerator/formGenerator.vue +0 -401
  178. package/src/components/formGenerator/styles/generator.scss +0 -271
  179. package/src/components/formGenerator/styles/index.scss +0 -136
  180. package/src/components/formGenerator/styles/left-coms.scss +0 -57
  181. package/src/components/formGenerator/styles/phone.scss +0 -269
  182. package/src/components/formGenerator/styles/theme.scss +0 -5
  183. package/src/components/formGenerator/utils/attribute.js +0 -107
  184. package/src/components/formGenerator/utils/comMixins.js +0 -148
  185. package/src/components/formGenerator/utils/component.js +0 -26
  186. package/src/components/formGenerator/utils/config.js +0 -1785
  187. package/src/components/formGenerator/utils/event.js +0 -82
  188. package/src/components/formGenerator/utils/formEvent.js +0 -43
  189. package/src/components/formGenerator/utils/index.js +0 -671
  190. package/src/components/formGenerator/utils/rules.js +0 -17
  191. package/src/components/formGenerator/utils/style.js +0 -75
  192. package/src/components/formGenerator/utils/table.js +0 -317
  193. package/src/components/formGenerator/utils/temps.js +0 -15303
  194. package/src/components/huComponents/FGBreadNav.vue +0 -86
  195. package/src/components/huComponents/FGCheckCell.vue +0 -107
  196. package/src/components/huComponents/FGCheckList.vue +0 -318
  197. package/src/components/huComponents/FGCheckPopUp.vue +0 -164
  198. package/src/components/huComponents/FGIconsDialog.vue +0 -124
  199. package/src/components/huComponents/FGNameImg.vue +0 -147
  200. package/src/components/huComponents/FGOptions.vue +0 -118
  201. package/src/components/huComponents/FGSelect.vue +0 -46
  202. package/src/components/huComponents/FGTreeNode.vue +0 -103
  203. package/src/components/huComponents/FGTreeNodeDialog.vue +0 -89
  204. package/src/components/huComponents/InputColor.vue +0 -117
  205. package/src/components/huComponents/InputNumber.vue +0 -78
  206. package/src/components/huComponents/LayoutTree.vue +0 -67
  207. package/src/components/huComponents/MenuButton.vue +0 -57
  208. package/src/components/index.js +0 -14
  209. package/src/icons/index.js +0 -10
  210. package/src/icons/svg/active.svg +0 -1
  211. package/src/icons/svg/addSold.svg +0 -1
  212. package/src/icons/svg/analyse.svg +0 -1
  213. package/src/icons/svg/button.svg +0 -1
  214. package/src/icons/svg/card.svg +0 -1
  215. package/src/icons/svg/cascader.svg +0 -1
  216. package/src/icons/svg/checkbox.svg +0 -1
  217. package/src/icons/svg/collapse.svg +0 -1
  218. package/src/icons/svg/color.svg +0 -1
  219. package/src/icons/svg/component.svg +0 -1
  220. package/src/icons/svg/date-range.svg +0 -1
  221. package/src/icons/svg/date.svg +0 -1
  222. package/src/icons/svg/default-dept.svg +0 -9
  223. package/src/icons/svg/default-role.svg +0 -5
  224. package/src/icons/svg/default-user.svg +0 -16
  225. package/src/icons/svg/dept.svg +0 -1
  226. package/src/icons/svg/divider.svg +0 -1
  227. package/src/icons/svg/ellipsis.svg +0 -2
  228. package/src/icons/svg/html.svg +0 -1
  229. package/src/icons/svg/image.svg +0 -1
  230. package/src/icons/svg/input.svg +0 -1
  231. package/src/icons/svg/link.svg +0 -1
  232. package/src/icons/svg/mp4.svg +0 -19
  233. package/src/icons/svg/notice.svg +0 -1
  234. package/src/icons/svg/noview.svg +0 -1
  235. package/src/icons/svg/number.svg +0 -1
  236. package/src/icons/svg/password.svg +0 -1
  237. package/src/icons/svg/pdf.svg +0 -18
  238. package/src/icons/svg/person.svg +0 -1
  239. package/src/icons/svg/png.svg +0 -18
  240. package/src/icons/svg/ppt.svg +0 -19
  241. package/src/icons/svg/process.svg +0 -1
  242. package/src/icons/svg/radio.svg +0 -1
  243. package/src/icons/svg/rate.svg +0 -1
  244. package/src/icons/svg/remark.svg +0 -1
  245. package/src/icons/svg/rich-text.svg +0 -1
  246. package/src/icons/svg/row.svg +0 -1
  247. package/src/icons/svg/select.svg +0 -1
  248. package/src/icons/svg/signature.svg +0 -1
  249. package/src/icons/svg/slider.svg +0 -1
  250. package/src/icons/svg/steps.svg +0 -1
  251. package/src/icons/svg/sub.svg +0 -1
  252. package/src/icons/svg/swipe.svg +0 -1
  253. package/src/icons/svg/switch.svg +0 -1
  254. package/src/icons/svg/table-edit.svg +0 -1
  255. package/src/icons/svg/table.svg +0 -1
  256. package/src/icons/svg/table2.svg +0 -1
  257. package/src/icons/svg/table3.svg +0 -1
  258. package/src/icons/svg/tabs.svg +0 -1
  259. package/src/icons/svg/tag.svg +0 -1
  260. package/src/icons/svg/text.svg +0 -1
  261. package/src/icons/svg/textarea.svg +0 -1
  262. package/src/icons/svg/time-range.svg +0 -1
  263. package/src/icons/svg/time.svg +0 -1
  264. package/src/icons/svg/tree.svg +0 -1
  265. package/src/icons/svg/unknow.svg +0 -20
  266. package/src/icons/svg/upload.svg +0 -1
  267. package/src/icons/svg/view.svg +0 -1
  268. package/src/icons/svg/word.svg +0 -20
  269. package/src/icons/svg/xlsx.svg +0 -18
  270. package/src/icons/svg/zip.svg +0 -20
  271. package/src/images/phone_bg.png +0 -0
  272. package/src/main.js +0 -26
  273. package/src/package/FGDesigner.vue +0 -114
  274. package/src/package/FGPcForm.vue +0 -100
  275. package/src/package/FGPcShow.vue +0 -69
  276. package/src/package/FGPhoneForm.vue +0 -109
  277. package/src/package/FGPhoneShow.vue +0 -72
  278. package/src/package/common/init.js +0 -23
  279. package/src/package/common/initPc.js +0 -26
  280. package/src/package/common/initPhone.js +0 -28
  281. package/src/package/common/mixins.js +0 -57
  282. package/src/package/index.js +0 -40
  283. package/src/plugins/richEditor/richEditorPc.vue +0 -478
  284. package/src/plugins/richEditor/richEditorPhone.vue +0 -520
  285. package/src/plugins/voiceTxtarea/voiceTxtarea.vue +0 -115
  286. package/src/router.js +0 -111
  287. package/src/store/index.js +0 -14
  288. package/src/store/modules/app.js +0 -54
  289. package/src/store/modules/user.js +0 -23
  290. package/src/style/color.scss +0 -10
  291. package/src/style/main.scss +0 -78
  292. package/src/utils/comsData.js +0 -279
  293. package/src/utils/defaultValue.js +0 -2288
  294. package/src/utils/drawingDefalut.js +0 -2749
  295. package/src/utils/iconData.js +0 -283
  296. package/src/utils/index.js +0 -6
  297. package/src/utils/progress.js +0 -96
  298. package/src/utils/request.js +0 -41
  299. package/src/views/coms/components/Attributes.vue +0 -28
  300. package/src/views/coms/components/ELink.vue +0 -23
  301. package/src/views/coms/components/Events.vue +0 -20
  302. package/src/views/coms/components/Example.vue +0 -42
  303. package/src/views/coms/components/Methods.vue +0 -20
  304. package/src/views/coms/components/VLink.vue +0 -23
  305. package/src/views/coms/comsDesiger.vue +0 -225
  306. package/src/views/coms/comsFormPc.vue +0 -76
  307. package/src/views/coms/comsFormPhone.vue +0 -103
  308. package/src/views/coms/comsShowPc.vue +0 -56
  309. package/src/views/coms/comsShowPhone.vue +0 -89
  310. package/src/views/config/components/configCell.vue +0 -111
  311. package/src/views/config/config.vue +0 -84
  312. package/src/views/demo/demo.vue +0 -235
  313. package/src/views/demo/demo2.vue +0 -131
  314. package/src/views/demo/table.js +0 -321
  315. package/src/views/document/index.vue +0 -140
  316. package/src/views/form/create.vue +0 -44
  317. package/vue.config.js +0 -81
  318. /package/{@xfu0401/form-generator/demo.html → demo.html} +0 -0
  319. /package/{@xfu0401/form-generator/form-generator.common.js → form-generator.common.js} +0 -0
  320. /package/{@xfu0401/form-generator/form-generator.common.js.map → form-generator.common.js.map} +0 -0
  321. /package/{@xfu0401/form-generator/form-generator.css → form-generator.css} +0 -0
  322. /package/{@xfu0401/form-generator/form-generator.umd.js → form-generator.umd.js} +0 -0
  323. /package/{@xfu0401/form-generator/form-generator.umd.js.map → form-generator.umd.js.map} +0 -0
  324. /package/{@xfu0401/form-generator/form-generator.umd.min.js → form-generator.umd.min.js} +0 -0
  325. /package/{@xfu0401/form-generator/form-generator.umd.min.js.map → form-generator.umd.min.js.map} +0 -0
  326. /package/{@xfu0401/form-generator/static → static}/fonts/element-icons.535877f5.woff +0 -0
  327. /package/{@xfu0401/form-generator/static → static}/fonts/element-icons.732389de.ttf +0 -0
  328. /package/{@xfu0401/form-generator/static → static}/img/phone_bg.7ead1463.png +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xfu0401/form-generator",
3
- "version": "1.1.18",
3
+ "version": "1.1.19",
4
4
  "description": "表单设计器,功能包括:表单编辑、表单填报及已填报表单显示",
5
5
  "main": "form-generator.common.js",
6
6
  "keywords": [],
package/.eslintrc.js DELETED
@@ -1,48 +0,0 @@
1
- module.exports = {
2
- root: true,
3
- parserOptions: {
4
- sourceType: 'module',
5
- parser: "babel-eslint"
6
- },
7
- parser: "vue-eslint-parser",
8
- env: { // 指定环境
9
- browser: true,
10
- node: true,
11
- es6: true
12
- },
13
- rules: { // 0,不启用这个规则 1,出现问题会有警告 2,出现问题会报错
14
- 'no-console': process.env.NODE_ENV !== 'production' ? 0 : 1,
15
- 'no-useless-escape': 0,
16
- 'semi': [0, 'always'], // 行尾使用分号
17
- 'indent': [2, 2, { // 缩进
18
- 'SwitchCase': 1
19
- }],
20
- "comma-dangle": [0, "never"], // 是否允许对象中出现结尾逗号
21
- "no-cond-assign": 2, // 条件语句的条件中不允许出现赋值运算符
22
- "no-dupe-keys": 2, // 对象中不允许出现重复的键
23
- "no-duplicate-case": 2, // switch语句中不允许出现重复的case标签
24
- "no-extra-semi": 2, // 不允许出现不必要的分号
25
- "no-regex-spaces": 2, // 正则表达式中不允许出现多个连续空格
26
- "no-unreachable": 2, // 在return,throw,continue,break语句后不允许出现不可能到达的语句
27
- "use-isnan": 2, // 要求检查NaN的时候使用isNaN()
28
- "no-alert": 1, // 不允许使用alert,confirm,prompt语句
29
- "no-caller": 2, // 不允许使用arguments.callee和arguments.caller属性
30
- "no-multi-spaces": 2, // 不允许出现多余的空格
31
- "no-redeclare": 2, // 不允许变量重复声明
32
- "no-sequences": 2, // 不允许使用逗号表达式
33
- "no-label-var": 2, // 不允许标签和变量同名
34
- "fun-call-spacing": [0, "never"], // 函数调用时,函数名与()之间不能有空格
35
- "no-multiple-empty-lines": [2, { "max": 2 }], // 空行最多不能超过两行
36
- "no-trailing-spaces": 2, // 一行最后不允许有空格
37
- "no-extra-parens": 1, // 不允许出现多余的括号
38
- "space-before-blocks": [2, "always"], // 块前的空格
39
- "no-var": 1, // 使用let和const代替var
40
- "eqeqeq": 0, // == 验证
41
- "padded-blocks": [2, "never"],
42
- "arrow-spacing": [2, { "before": true, "after": true }], // 箭头函数空格限制
43
- "spaced-comment": [2, "always", { "exceptions": ["-"] }],
44
- "no-undef": 2, // 任何对未声明的变量的引用都会导致警告
45
- "no-unused-vars": 0, // 消除未使用的变量,函数和函数的参数
46
- "prefer-promise-reject-errors": 0
47
- }
48
- }
@@ -1,63 +0,0 @@
1
- {
2
- "name": "@xfu0401/form-generator",
3
- "version": "1.1.18",
4
- "description": "表单设计器,功能包括:表单编辑、表单填报及已填报表单显示",
5
- "main": "form-generator.common.js",
6
- "keywords": [],
7
- "author": "huliuyu",
8
- "license": "ISC",
9
- "publishConfig": {
10
- "access": "public",
11
- "registry": "https://registry.npmjs.org/"
12
- },
13
- "scripts": {
14
- "serve": "vue-cli-service serve",
15
- "build": "vue-cli-service build",
16
- "lint": "vue-cli-service lint",
17
- "package": "vue-cli-service build --target lib ./src/package/index.js --name form-generator --dest @xfu0401/form-generator"
18
- },
19
- "dependencies": {
20
- "@babel/parser": "^7.7.4",
21
- "axios": "^0.19.2",
22
- "ali-oss": "^6.23.0",
23
- "codemirror": "^5.65.17",
24
- "core-js": "^3.6.5",
25
- "element-ui": "^2.15.13",
26
- "file": "^0.2.2",
27
- "file-saver": "^2.0.5",
28
- "highlight.js": "^11.9.0",
29
- "js-md5": "^0.7.3",
30
- "jshint": "^2.13.6",
31
- "jsonlint": "^1.6.3",
32
- "moment": "^2.30.1",
33
- "quill": "^2.0.0-dev.4",
34
- "system": "^2.0.1",
35
- "vant": "^2.13.2",
36
- "vue": "^2.6.11",
37
- "vue-codemirror": "^4.0.6",
38
- "vue-esign": "^1.1.4",
39
- "vue-json-editor": "^1.4.3",
40
- "vue-quill-editor": "^3.0.6",
41
- "vue-router": "^3.1.5",
42
- "vuedraggable": "^2.23.2",
43
- "vuex": "^3.0.1",
44
- "xlsx": "^0.18.5"
45
- },
46
- "devDependencies": {
47
- "@vue/cli-plugin-babel": "~4.4.0",
48
- "@vue/cli-plugin-eslint": "~4.4.0",
49
- "@vue/cli-service": "~4.4.0",
50
- "babel-eslint": "^10.1.0",
51
- "babel-plugin-component": "^1.1.1",
52
- "babel-plugin-import": "^1.13.8",
53
- "eslint": "^6.8.0",
54
- "eslint-config-airbnb-base": "^14.0.0",
55
- "eslint-plugin-import": "^2.20.0",
56
- "eslint-plugin-vue": "^6.2.2",
57
- "sass": "^1.23.7",
58
- "sass-loader": "^8.0.0",
59
- "svg-sprite-loader": "^4.1.6",
60
- "vue-template-compiler": "^2.6.11"
61
- },
62
- "homepage": "https://gitee.com/deer_bambi_hly/form-generator"
63
- }
package/LICENSE DELETED
@@ -1,127 +0,0 @@
1
- 木兰宽松许可证, 第2版
2
-
3
- 木兰宽松许可证, 第2版
4
- 2020年1月 http://license.coscl.org.cn/MulanPSL2
5
-
6
-
7
- 您对“软件”的复制、使用、修改及分发受木兰宽松许可证,第2版(“本许可证”)的如下条款的约束:
8
-
9
- 0. 定义
10
-
11
- “软件”是指由“贡献”构成的许可在“本许可证”下的程序和相关文档的集合。
12
-
13
- “贡献”是指由任一“贡献者”许可在“本许可证”下的受版权法保护的作品。
14
-
15
- “贡献者”是指将受版权法保护的作品许可在“本许可证”下的自然人或“法人实体”。
16
-
17
- “法人实体”是指提交贡献的机构及其“关联实体”。
18
-
19
- “关联实体”是指,对“本许可证”下的行为方而言,控制、受控制或与其共同受控制的机构,此处的控制是指有受控方或共同受控方至少50%直接或间接的投票权、资金或其他有价证券。
20
-
21
- 1. 授予版权许可
22
-
23
- 每个“贡献者”根据“本许可证”授予您永久性的、全球性的、免费的、非独占的、不可撤销的版权许可,您可以复制、使用、修改、分发其“贡献”,不论修改与否。
24
-
25
- 2. 授予专利许可
26
-
27
- 每个“贡献者”根据“本许可证”授予您永久性的、全球性的、免费的、非独占的、不可撤销的(根据本条规定撤销除外)专利许可,供您制造、委托制造、使用、许诺销售、销售、进口其“贡献”或以其他方式转移其“贡献”。前述专利许可仅限于“贡献者”现在或将来拥有或控制的其“贡献”本身或其“贡献”与许可“贡献”时的“软件”结合而将必然会侵犯的专利权利要求,不包括对“贡献”的修改或包含“贡献”的其他结合。如果您或您的“关联实体”直接或间接地,就“软件”或其中的“贡献”对任何人发起专利侵权诉讼(包括反诉或交叉诉讼)或其他专利维权行动,指控其侵犯专利权,则“本许可证”授予您对“软件”的专利许可自您提起诉讼或发起维权行动之日终止。
28
-
29
- 3. 无商标许可
30
-
31
- “本许可证”不提供对“贡献者”的商品名称、商标、服务标志或产品名称的商标许可,但您为满足第4条规定的声明义务而必须使用除外。
32
-
33
- 4. 分发限制
34
-
35
- 您可以在任何媒介中将“软件”以源程序形式或可执行形式重新分发,不论修改与否,但您必须向接收者提供“本许可证”的副本,并保留“软件”中的版权、商标、专利及免责声明。
36
-
37
- 5. 免责声明与责任限制
38
-
39
- “软件”及其中的“贡献”在提供时不带任何明示或默示的担保。在任何情况下,“贡献者”或版权所有者不对任何人因使用“软件”或其中的“贡献”而引发的任何直接或间接损失承担责任,不论因何种原因导致或者基于何种法律理论,即使其曾被建议有此种损失的可能性。
40
-
41
- 6. 语言
42
- “本许可证”以中英文双语表述,中英文版本具有同等法律效力。如果中英文版本存在任何冲突不一致,以中文版为准。
43
-
44
- 条款结束
45
-
46
- 如何将木兰宽松许可证,第2版,应用到您的软件
47
-
48
- 如果您希望将木兰宽松许可证,第2版,应用到您的新软件,为了方便接收者查阅,建议您完成如下三步:
49
-
50
- 1, 请您补充如下声明中的空白,包括软件名、软件的首次发表年份以及您作为版权人的名字;
51
-
52
- 2, 请您在软件包的一级目录下创建以“LICENSE”为名的文件,将整个许可证文本放入该文件中;
53
-
54
- 3, 请将如下声明文本放入每个源文件的头部注释中。
55
-
56
- Copyright (c) [Year] [name of copyright holder]
57
- [Software Name] is licensed under Mulan PSL v2.
58
- You can use this software according to the terms and conditions of the Mulan PSL v2.
59
- You may obtain a copy of Mulan PSL v2 at:
60
- http://license.coscl.org.cn/MulanPSL2
61
- THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
62
- See the Mulan PSL v2 for more details.
63
-
64
-
65
- Mulan Permissive Software License,Version 2
66
-
67
- Mulan Permissive Software License,Version 2 (Mulan PSL v2)
68
- January 2020 http://license.coscl.org.cn/MulanPSL2
69
-
70
- Your reproduction, use, modification and distribution of the Software shall be subject to Mulan PSL v2 (this License) with the following terms and conditions:
71
-
72
- 0. Definition
73
-
74
- Software means the program and related documents which are licensed under this License and comprise all Contribution(s).
75
-
76
- Contribution means the copyrightable work licensed by a particular Contributor under this License.
77
-
78
- Contributor means the Individual or Legal Entity who licenses its copyrightable work under this License.
79
-
80
- Legal Entity means the entity making a Contribution and all its Affiliates.
81
-
82
- Affiliates means entities that control, are controlled by, or are under common control with the acting entity under this License, ‘control’ means direct or indirect ownership of at least fifty percent (50%) of the voting power, capital or other securities of controlled or commonly controlled entity.
83
-
84
- 1. Grant of Copyright License
85
-
86
- Subject to the terms and conditions of this License, each Contributor hereby grants to you a perpetual, worldwide, royalty-free, non-exclusive, irrevocable copyright license to reproduce, use, modify, or distribute its Contribution, with modification or not.
87
-
88
- 2. Grant of Patent License
89
-
90
- Subject to the terms and conditions of this License, each Contributor hereby grants to you a perpetual, worldwide, royalty-free, non-exclusive, irrevocable (except for revocation under this Section) patent license to make, have made, use, offer for sale, sell, import or otherwise transfer its Contribution, where such patent license is only limited to the patent claims owned or controlled by such Contributor now or in future which will be necessarily infringed by its Contribution alone, or by combination of the Contribution with the Software to which the Contribution was contributed. The patent license shall not apply to any modification of the Contribution, and any other combination which includes the Contribution. If you or your Affiliates directly or indirectly institute patent litigation (including a cross claim or counterclaim in a litigation) or other patent enforcement activities against any individual or entity by alleging that the Software or any Contribution in it infringes patents, then any patent license granted to you under this License for the Software shall terminate as of the date such litigation or activity is filed or taken.
91
-
92
- 3. No Trademark License
93
-
94
- No trademark license is granted to use the trade names, trademarks, service marks, or product names of Contributor, except as required to fulfill notice requirements in Section 4.
95
-
96
- 4. Distribution Restriction
97
-
98
- You may distribute the Software in any medium with or without modification, whether in source or executable forms, provided that you provide recipients with a copy of this License and retain copyright, patent, trademark and disclaimer statements in the Software.
99
-
100
- 5. Disclaimer of Warranty and Limitation of Liability
101
-
102
- THE SOFTWARE AND CONTRIBUTION IN IT ARE PROVIDED WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED. IN NO EVENT SHALL ANY CONTRIBUTOR OR COPYRIGHT HOLDER BE LIABLE TO YOU FOR ANY DAMAGES, INCLUDING, BUT NOT LIMITED TO ANY DIRECT, OR INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING FROM YOUR USE OR INABILITY TO USE THE SOFTWARE OR THE CONTRIBUTION IN IT, NO MATTER HOW IT’S CAUSED OR BASED ON WHICH LEGAL THEORY, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
103
-
104
- 6. Language
105
-
106
- THIS LICENSE IS WRITTEN IN BOTH CHINESE AND ENGLISH, AND THE CHINESE VERSION AND ENGLISH VERSION SHALL HAVE THE SAME LEGAL EFFECT. IN THE CASE OF DIVERGENCE BETWEEN THE CHINESE AND ENGLISH VERSIONS, THE CHINESE VERSION SHALL PREVAIL.
107
-
108
- END OF THE TERMS AND CONDITIONS
109
-
110
- How to Apply the Mulan Permissive Software License,Version 2 (Mulan PSL v2) to Your Software
111
-
112
- To apply the Mulan PSL v2 to your work, for easy identification by recipients, you are suggested to complete following three steps:
113
-
114
- i Fill in the blanks in following statement, including insert your software name, the year of the first publication of your software, and your name identified as the copyright owner;
115
-
116
- ii Create a file named “LICENSE” which contains the whole context of this License in the first directory of your software package;
117
-
118
- iii Attach the statement to the appropriate annotated syntax at the beginning of each source file.
119
-
120
-
121
- Copyright (c) [Year] [name of copyright holder]
122
- [Software Name] is licensed under Mulan PSL v2.
123
- You can use this software according to the terms and conditions of the Mulan PSL v2.
124
- You may obtain a copy of Mulan PSL v2 at:
125
- http://license.coscl.org.cn/MulanPSL2
126
- THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
127
- See the Mulan PSL v2 for more details.
package/README.md DELETED
@@ -1,268 +0,0 @@
1
- # form-generator
2
-
3
- 表单设计器,功能包括:表单编辑、表单填报及已填报表单显示
4
-
5
- 在线预览地址:http://47.96.66.232:8090/form-generator/index.html#/comsDesiger
6
-
7
- ![输入图片说明](public/img/show/PixPin_2024-07-17_16-25-59.gif)
8
- # dev@1.0.0 新增
9
- 1. 多个布局组件及辅助型组件
10
-
11
- ![输入图片说明](public/img/show/image.png)
12
-
13
- 2. 样式配置
14
- * 局部样式:每个组件的配置面板单独提供样式配置
15
- ![输入图片说明](public/img/show/%E6%A0%B7%E5%BC%8F%E5%B1%9E%E6%80%A7.png)
16
- * 全局样式:所有代码均可配置,需要在每个组件的配置面板上选择
17
- ![输入图片说明](public/img/show/%E5%85%A8%E5%B1%80%E6%A0%B7%E5%BC%8F.png)
18
-
19
- 3. 事件配置
20
- 可以编写js代码,触发每个组件的对应事件时执行代码
21
- * 局部事件:每个组件的配置面板单独提供事件代码编写
22
- ![输入图片说明](public/img/show/%E4%BA%8B%E4%BB%B6.png)
23
- * 全局事件:所有代码均可配置,需要在每个组件的配置面板上选择
24
- ![输入图片说明](public/img/show/%E5%85%A8%E5%B1%80%E4%BA%8B%E4%BB%B6.png)
25
-
26
- 4. 接口返回格式
27
- * 附件接口
28
- ![输入图片说明](public/img/show/file.png)
29
-
30
-
31
- # 使用文档
32
-
33
- ## 安装
34
- ```
35
- npm install @huliuyu/form-generator
36
- ```
37
-
38
- ## 使用
39
- ### 完整引入
40
- ```
41
- main.js 中
42
- import FG from '@huliuyu/form-generator'
43
- 或者 import FG from '@huliuyu/form-generator/form-generator.umd.js'
44
- import '@huliuyu/form-generator/form-generator.css'
45
- Vue.use(FG)
46
- ```
47
-
48
- ## 包含组件
49
- ### 编辑器
50
- ![Alt text](/public/img/show/PixPin_2024-07-17_16-33-51.png)
51
- #### pc端预览
52
- ![Alt text](/public/img/show/%E7%BC%96%E8%BE%91%E5%99%A83.png)
53
- #### 移动端预览
54
- ![Alt text](/public/img/show/%E7%BC%96%E8%BE%91%E5%99%A84.png)
55
- #### 表单数据查看
56
- ![Alt text](/public/img/show/%E7%BC%96%E8%BE%91%E5%99%A82.png)
57
- #### 使用
58
- ```
59
- <template>
60
- <div style="height: 100%">
61
- <el-button type="primary" @click="handlePublish">发布</el-button>
62
- <el-button type="primary" @click="handleValidate">校验</el-button>
63
- <FGDesigner ref="FGDesigner" v-model="formConf" />
64
- </div>
65
- </template>
66
- export default {
67
- data() {
68
- return {
69
- formConf: {},
70
- };
71
- },
72
- methods: {
73
- handleValidate() {
74
- this.$refs.FGDesigner.validate((valid, message) => {
75
- if (valid) {
76
- } else {
77
- this.$message.error(message);
78
- }
79
- });
80
- },
81
- handlePublish() {
82
- this.$refs.FGDesigner.submit((value) => {
83
- console.log(value);
84
- });
85
- },
86
- },
87
- };
88
- ```
89
- #### Attributes
90
- | 参数 | 说明 | 类型 | 可选值 | 默认值 |
91
- |-------|-------|-------|-------|-------|
92
- | value / v-model | 为包含表单属性及组件列表的对象 | Object | - | - |
93
- | form | 为包含表单组件对应的key和value | Object | - | - |
94
- | enabled | 编辑器控件是否可以点击操作 | Boolean | - | false |
95
- | enabled | 编辑器控件是否可以点击操作 | Boolean | - | false |
96
- | options | 编辑器配置(如下) | Object | - | - |
97
-
98
- #### 编辑器配置options【FGPcForm/FGPhoneForm/FGPcShow/FGPhoneShow同理】
99
- ```
100
- <FGDesigner :options='options' />
101
- options: {
102
- themeColor:'', // 编辑器主题色
103
- header: { // 接口请求头内容,如果存在则将其放置到表单编辑器的接口请求头上
104
- // 如果编辑器配置的接口需要带上token,可以从此处传入,参数名自定义
105
- // "token": '',
106
- },
107
- hideTemps: false,// 是否隐藏模板
108
- hideOutline: false,// 是否隐藏大纲
109
- hidePhone: false // 是否隐藏手机端
110
- }
111
- ```
112
-
113
-
114
-
115
- #### Methods
116
- | 方法名 | 说明 | 参数 |
117
- |-------|-------|-------|
118
- | validate | 对整个表单进行校验的方法,参数为一个回调函数。该回调函数会在校验结束后被调用,并传入两个个参数:校验是否通过、校验提示语 | Function(callback: Function(Boolean,Array)) |
119
- | submit | 对整个表单进行提交的方法,参数为一个回调函数。传入一个参数:即为已修改的value值 | Function(callback: Function(object)) |
120
-
121
- #### Event
122
- | 事件名称 | 说明 | 回调参数 |
123
- |-------|-------|-------|
124
- | save | 点击保存按钮触发 | 新状态的value值,新状态的组件列表,新状态的表单属性 |
125
- | change | 数据更改触发 | 新状态的value值 |
126
-
127
- ### PC表单渲染
128
- ![Alt text](/public/img/show/pc%E7%AB%AF%E6%B8%B2%E6%9F%93.png)
129
- #### 使用
130
- ```
131
- <template>
132
- <FGPcForm ref="FGPcForm" v-model="drawingDefalut" :form='form' @submit='handleSubmit'/>
133
- <el-button @click='submitForm'>提交</el-button>
134
- </template>
135
-
136
- <script>
137
- export default {
138
- data() {
139
- return {
140
- drawingDefalut: '',
141
- form:{}
142
- };
143
- },
144
-
145
- methods: {
146
- submitForm() {
147
- this.$refs["FGPcForm"].validateForm((form) => {
148
- console.log("form", form);
149
- });
150
- },
151
- resetForm() {
152
- this.$refs["FGPcForm"].resetForm();
153
- },
154
- handleSubmit(form,list) {
155
-
156
- }
157
- },
158
- };
159
- </script>
160
- ```
161
- #### Attributes
162
- | 参数 | 说明 | 类型 | 可选值 | 默认值 |
163
- |-------|-------|-------|-------|-------|
164
- | value / v-model | 为包含表单属性及组件列表的对象 | String | - | - |
165
- | form | 为包含表单组件对应的key和value | Object | - | - |
166
-
167
- #### Methods
168
- | 方法名 | 说明 | 参数 |
169
- |-------|-------|-------|
170
- | validateForm | 对整个表单进行校验的方法,参数为一个回调函数。该回调函数会在校验结束后被调用,并传入一个参数:即为校验通过的value值 | Function(callback: Function(object)) |
171
- | submitForm | 对整个表单进行提交的方法,参数为一个回调函数。传入一个参数:即为已修改的value值 | Function(callback: Function(object)) |
172
- | resetForm | 对整个表单进行重置,将所有字段值重置为初始值并移除校验结果 | - |
173
-
174
-
175
- ### phone表单渲染
176
- ![Alt text](/public/img/show/%E7%A7%BB%E5%8A%A8%E7%AB%AF%E6%B8%B2%E6%9F%93.png)
177
- #### 使用
178
- ```
179
- <template>
180
- <FGPhoneForm ref="FGPhoneForm" v-model="drawingDefalut" />
181
- </template>
182
-
183
- <script>
184
- export default {
185
- data() {
186
- return {
187
- drawingDefalut: '',
188
- };
189
- },
190
-
191
- methods: {
192
- submitForm() {
193
- this.$refs["FGPhoneForm"].validateForm((form) => {
194
- console.log("form", form);
195
- });
196
- },
197
- resetForm() {
198
- this.$refs["FGPhoneForm"].resetForm();
199
- },
200
- },
201
- };
202
- </script>
203
- ```
204
- #### Attributes
205
- | 参数 | 说明 | 类型 | 可选值 | 默认值 |
206
- |-------|-------|-------|-------|-------|
207
- | value / v-model | 为包含表单属性及组件列表的对象 | String | - | - |
208
- | form | 为包含表单组件对应的key和value | Object | - | - |
209
-
210
- #### Methods
211
- | 方法名 | 说明 | 参数 |
212
- |-------|-------|-------|
213
- | validateForm | 对整个表单进行校验的方法,参数为一个回调函数。该回调函数会在校验结束后被调用,并传入一个参数:即为校验通过的value值 | Function(callback: Function(object)) |
214
- | submitForm | 对整个表单进行提交的方法,参数为一个回调函数。传入一个参数:即为已修改的value值 | Function(callback: Function(object)) |
215
- | resetForm | 对整个表单进行重置,将所有字段值重置为初始值并移除校验结果 | - |
216
-
217
-
218
- ### phone表单详情
219
- ![Alt text](/public/img/show/%E7%A7%BB%E5%8A%A8%E7%AB%AF%E8%AF%A6%E6%83%85.png)
220
- #### 使用
221
- ```
222
- <template>
223
- <FGPhoneShow :value="drawingDefalut" />
224
- </template>
225
- <script>
226
- export default {
227
- data() {
228
- return {
229
- drawingDefalut: '',
230
- };
231
- },
232
- };
233
- </script>
234
- ```
235
- #### Attributes
236
- | 参数 | 说明 | 类型 | 可选值 | 默认值 |
237
- |-------|-------|-------|-------|-------|
238
- | value | 为包含表单属性及组件列表的对象 | String | - | - |
239
- | form | 为包含表单组件对应的key和value | Object | - | - |
240
-
241
-
242
- ### PC表单详情
243
- ![Alt text](/public/img/show/pc%E7%AB%AF%E8%AF%A6%E6%83%85.png)
244
- #### 使用
245
- ```
246
- <template>
247
- <FGPcShow :value="drawingDefalut" />
248
- </template>
249
-
250
- <script>
251
- export default {
252
- data() {
253
- return {
254
- drawingDefalut: '',
255
- };
256
- },
257
- };
258
- </script>
259
- ```
260
- #### Attributes
261
- | 参数 | 说明 | 类型 | 可选值 | 默认值 |
262
- |-------|-------|-------|-------|-------|
263
- | value | 为包含表单属性及组件列表的对象 | String | - | - |
264
- | form | 为包含表单组件对应的key和value | Object | - | - |
265
-
266
-
267
-
268
-
package/REMAKR.md DELETED
@@ -1,15 +0,0 @@
1
- ```
2
- npm config set registry https://registry.npmjs.org
3
-
4
- npm login
5
-
6
- 先要进入发布目录
7
-
8
- cd @xfu0401/form-generator
9
-
10
- npm publish
11
-
12
- npm logout
13
-
14
- 需要开启2FA 验证
15
- ```
package/babel.config.js DELETED
@@ -1,22 +0,0 @@
1
- module.exports = {
2
- presets: [
3
- [
4
- '@vue/app', // 需要改成这种配置方式,因为main.js 引入了脚手架自带的一些插件
5
- {
6
- targets: { ie: '11' }, //目标浏览器和版本
7
- useBuiltIns: 'entry' // vuecli有具体说明-参考官方浏览器兼容Polyfill配置项的第三点
8
- }
9
- ]
10
- ],
11
- plugins: [
12
- ["import", {
13
- "libraryName": "vant",
14
- "libraryDirectory": "es",
15
- "style": true
16
- }],
17
- ["component", {
18
- "libraryName": "element-ui",
19
- "styleLibraryName": "theme-chalk"
20
- }]
21
- ]
22
- };
Binary file
Binary file
Binary file
package/public/index.html DELETED
@@ -1,25 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
-
4
- <head>
5
- <meta charset="utf-8">
6
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
7
- <meta name="viewport" content="width=device-width,initial-scale=1.0">
8
- <link rel="icon" href="<%= BASE_URL %>favicon.ico">
9
- <script src="./static/js/config.js"></script>
10
- <title>
11
- 表单编辑器
12
- </title>
13
- </head>
14
-
15
- <body>
16
- <noscript>
17
- <strong>We're sorry but admin doesn't work properly without JavaScript enabled. Please enable it to
18
- continue.</strong>
19
- </noscript>
20
- <div id="app"></div>
21
- <!-- built files will be auto injected -->
22
- </body>
23
-
24
-
25
- </html>
@@ -1,2 +0,0 @@
1
- // 接口前缀
2
- window.APLURL = '/MCAPI'
package/src/App.vue DELETED
@@ -1,18 +0,0 @@
1
- <template>
2
- <div id="app" class="pc">
3
- <router-view />
4
- </div>
5
- </template>
6
-
7
- <script>
8
- export default {
9
- name: "App"
10
- };
11
- </script>
12
-
13
- <style lang="scss" scoped>
14
- #app {
15
- // padding: 0 20%;
16
- box-sizing: border-box;
17
- }
18
- </style>