@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,520 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="phone-richText">
|
|
3
|
-
<quill-editor
|
|
4
|
-
class="quill-editor"
|
|
5
|
-
:id="id"
|
|
6
|
-
v-model="content"
|
|
7
|
-
:ref="'QuillEditor' + id"
|
|
8
|
-
:options="editorOption"
|
|
9
|
-
@blur="onEditorBlur($event)"
|
|
10
|
-
@focus="onEditorFocus($event)"
|
|
11
|
-
@change="onEditorChange($event)"
|
|
12
|
-
@click.native="onEditorClick"
|
|
13
|
-
></quill-editor>
|
|
14
|
-
</div>
|
|
15
|
-
</template>
|
|
16
|
-
|
|
17
|
-
<script>
|
|
18
|
-
// 富文本全局样式引入
|
|
19
|
-
import "quill/dist/quill.core.css";
|
|
20
|
-
import "quill/dist/quill.snow.css";
|
|
21
|
-
import "quill/dist/quill.bubble.css";
|
|
22
|
-
import { quillEditor, Quill } from "vue-quill-editor";
|
|
23
|
-
const fontSizeStyle = Quill.import("attributors/style/size"); // 引入这个后会把样式写在style上
|
|
24
|
-
fontSizeStyle.whitelist = ["14px", "18px", "24px", "28px", "32px", "36px"];
|
|
25
|
-
Quill.register(fontSizeStyle, true);
|
|
26
|
-
|
|
27
|
-
// 设置字体样式
|
|
28
|
-
const Font = Quill.import("attributors/style/font"); // 引入这个后会把样式写在style上
|
|
29
|
-
// 客户提供的字体文件勿动 2022/7/19
|
|
30
|
-
const fonts = ["仿宋", "方正小标宋简", "simhei", "simkai"];
|
|
31
|
-
Font.whitelist = fonts; // 将字体加入到白名单
|
|
32
|
-
Quill.register(Font, true);
|
|
33
|
-
export default {
|
|
34
|
-
components: {
|
|
35
|
-
quillEditor,
|
|
36
|
-
},
|
|
37
|
-
props: {
|
|
38
|
-
value: {
|
|
39
|
-
// 传入的原始数据
|
|
40
|
-
type: String,
|
|
41
|
-
default: "",
|
|
42
|
-
},
|
|
43
|
-
placeholder: {
|
|
44
|
-
// 传入的占位符
|
|
45
|
-
type: String,
|
|
46
|
-
default: "请输入...",
|
|
47
|
-
},
|
|
48
|
-
maxlength: {
|
|
49
|
-
type: [Number, String],
|
|
50
|
-
default: 3000,
|
|
51
|
-
},
|
|
52
|
-
// 是否开启转码
|
|
53
|
-
transcoding: {
|
|
54
|
-
type: Boolean,
|
|
55
|
-
default: true,
|
|
56
|
-
},
|
|
57
|
-
// 是否只读
|
|
58
|
-
readonly: {
|
|
59
|
-
type: Boolean,
|
|
60
|
-
default: false,
|
|
61
|
-
},
|
|
62
|
-
height: {
|
|
63
|
-
type: [String, Number],
|
|
64
|
-
default: "",
|
|
65
|
-
},
|
|
66
|
-
},
|
|
67
|
-
data() {
|
|
68
|
-
return {
|
|
69
|
-
id: "quill-" + +new Date() + ((Math.random() * 1000).toFixed(0) + ""),
|
|
70
|
-
content: ``, //双向数据绑定数据
|
|
71
|
-
valueLength: 0, // 输入字符长度
|
|
72
|
-
editorOption: {
|
|
73
|
-
//编辑器配置项
|
|
74
|
-
modules: {
|
|
75
|
-
toolbar: [
|
|
76
|
-
//[{ header: [1, 2, 3, 4, 5, 6, false] }], //几级标题
|
|
77
|
-
[
|
|
78
|
-
"bold",
|
|
79
|
-
"italic",
|
|
80
|
-
"underline",
|
|
81
|
-
"strike",
|
|
82
|
-
{ header: 1 },
|
|
83
|
-
{ header: 2 },
|
|
84
|
-
{ color: [] },
|
|
85
|
-
], //加粗,斜体,下划线,删除线
|
|
86
|
-
//["blockquote", "code-block"], //引用,代码块
|
|
87
|
-
// [{ header: 1 }, { header: 2 }], // 标题,键值对的形式;1、2表示字体大小
|
|
88
|
-
//[{ list: "ordered" }, { list: "bullet" }], //列表
|
|
89
|
-
//[{ script: "sub" }, { script: "super" }], // 上下标
|
|
90
|
-
//[{ indent: "-1" }, { indent: "+1" }], // 缩进
|
|
91
|
-
//[{ direction: "rtl" }], // 文本方向
|
|
92
|
-
// [{ color: [] }], // 字体颜色,字体背景颜色
|
|
93
|
-
[{ background: [] }, { align: [] }], //对齐方式
|
|
94
|
-
[
|
|
95
|
-
// { font: fonts },
|
|
96
|
-
{ size: fontSizeStyle.whitelist },
|
|
97
|
-
], // 字体大小
|
|
98
|
-
|
|
99
|
-
//["clean"], //清除字体样式
|
|
100
|
-
],
|
|
101
|
-
},
|
|
102
|
-
placeholder: this.placeholder,
|
|
103
|
-
},
|
|
104
|
-
};
|
|
105
|
-
},
|
|
106
|
-
mounted() {
|
|
107
|
-
this.init();
|
|
108
|
-
this.maxWindow();
|
|
109
|
-
},
|
|
110
|
-
watch: {
|
|
111
|
-
value: {
|
|
112
|
-
handler(nd, od) {
|
|
113
|
-
if (nd && nd !== od) {
|
|
114
|
-
// 是否开启转码
|
|
115
|
-
if (this.transcoding) {
|
|
116
|
-
this.$nextTick(() => {
|
|
117
|
-
this.content = decodeURIComponent(
|
|
118
|
-
nd.replace(/%(?!\d|[ABCDEF]+)/g, "%25")
|
|
119
|
-
);
|
|
120
|
-
});
|
|
121
|
-
} else {
|
|
122
|
-
this.content = nd;
|
|
123
|
-
}
|
|
124
|
-
} else {
|
|
125
|
-
this.content = "";
|
|
126
|
-
}
|
|
127
|
-
},
|
|
128
|
-
deep: true,
|
|
129
|
-
immediate: true,
|
|
130
|
-
},
|
|
131
|
-
},
|
|
132
|
-
methods: {
|
|
133
|
-
init() {
|
|
134
|
-
// 如果设置了最大长度
|
|
135
|
-
if (this.maxlength) {
|
|
136
|
-
this.$nextTick(() => {
|
|
137
|
-
// 给富文本右下角添加计数功能
|
|
138
|
-
const el = this.$refs["QuillEditor" + this.id].$el;
|
|
139
|
-
let dom = document.createElement("span");
|
|
140
|
-
dom.className = "hu-number";
|
|
141
|
-
dom.innerHTML = `${this.valueLength}/${this.maxlength}`;
|
|
142
|
-
el.appendChild(dom);
|
|
143
|
-
});
|
|
144
|
-
}
|
|
145
|
-
// 1. 初始化时令vue-quill-editor失效
|
|
146
|
-
this.$refs["QuillEditor" + this.id].quill.enable(false);
|
|
147
|
-
// if (this.value) {
|
|
148
|
-
// // 是否开启转码
|
|
149
|
-
// if (this.transcoding) {
|
|
150
|
-
// this.$nextTick(() => {
|
|
151
|
-
// let content = decodeURIComponent(
|
|
152
|
-
// this.value.replace(/%(?!\d|[ABCDEF]+)/g, "%25")
|
|
153
|
-
// );
|
|
154
|
-
// this.content =
|
|
155
|
-
// content.length > this.maxlength
|
|
156
|
-
// ? content.substr(0, this.maxlength)
|
|
157
|
-
// : content;
|
|
158
|
-
// });
|
|
159
|
-
// } else {
|
|
160
|
-
// this.content =
|
|
161
|
-
// this.value.length > this.maxlength
|
|
162
|
-
// ? this.value.substr(0, this.maxlength)
|
|
163
|
-
// : this.value;
|
|
164
|
-
// }
|
|
165
|
-
// } else {
|
|
166
|
-
// this.content = "";
|
|
167
|
-
// }
|
|
168
|
-
// 1. 初始化时令vue-quill-editor失效
|
|
169
|
-
// this.$refs["QuillEditor" + this.id].quill.enable(false);
|
|
170
|
-
},
|
|
171
|
-
// 2. 点击富文本框时令quill-editor生效,并聚焦
|
|
172
|
-
onEditorClick() {
|
|
173
|
-
this.$refs["QuillEditor" + this.id].quill.enable(true);
|
|
174
|
-
this.$refs["QuillEditor" + this.id].quill.focus();
|
|
175
|
-
},
|
|
176
|
-
|
|
177
|
-
onEditorBlur(event) {
|
|
178
|
-
this.$emit("blur", event);
|
|
179
|
-
}, // 失去焦点触发事件
|
|
180
|
-
|
|
181
|
-
// 获取焦点
|
|
182
|
-
onEditorFocus(event) {
|
|
183
|
-
// 当为只读时,设置富文本编辑器不可编辑
|
|
184
|
-
if (this.readonly) {
|
|
185
|
-
event.enable(false); //设置富文本编辑器不可编辑
|
|
186
|
-
}
|
|
187
|
-
this.$emit("focus", event);
|
|
188
|
-
}, // 获得焦点触发事件
|
|
189
|
-
|
|
190
|
-
// 内容改变触发事件
|
|
191
|
-
onEditorChange(event) {
|
|
192
|
-
// 如果是 <p> </p> 空标签 就清空内容
|
|
193
|
-
if (this.isRichTextEmpit(this.content)) {
|
|
194
|
-
this.content = "";
|
|
195
|
-
}
|
|
196
|
-
// 是否开启转码 并且不为空
|
|
197
|
-
if (this.transcoding && this.content != "") {
|
|
198
|
-
this.$emit("input", encodeURIComponent(this.content));
|
|
199
|
-
} else {
|
|
200
|
-
this.$emit("input", this.content);
|
|
201
|
-
}
|
|
202
|
-
const el = this.$refs["QuillEditor" + this.id];
|
|
203
|
-
let qlCount = el.$el.querySelector(".hu-number");
|
|
204
|
-
|
|
205
|
-
// 如果设置了最大长度
|
|
206
|
-
if (this.maxlength) {
|
|
207
|
-
// 右下角显示输入的字符长度
|
|
208
|
-
if (this.content === "") {
|
|
209
|
-
this.valueLength = 0;
|
|
210
|
-
} else {
|
|
211
|
-
this.valueLength = event.quill.getLength() - 1;
|
|
212
|
-
}
|
|
213
|
-
qlCount.innerHTML = `${this.valueLength}/${this.maxlength}`;
|
|
214
|
-
// 限制输入最长字符
|
|
215
|
-
event.quill.deleteText(this.maxlength, 1, this.content);
|
|
216
|
-
}
|
|
217
|
-
},
|
|
218
|
-
|
|
219
|
-
// 正则匹配 <p> </p> 空标签
|
|
220
|
-
isRichTextEmpit(s) {
|
|
221
|
-
let re = /^(<p>)(\s*)(<\/p>)/;
|
|
222
|
-
return re.test(s);
|
|
223
|
-
},
|
|
224
|
-
|
|
225
|
-
// 添加全屏功能
|
|
226
|
-
maxWindow() {
|
|
227
|
-
const domList = [
|
|
228
|
-
{
|
|
229
|
-
dom: `<svg t="1669630560143" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="6049" ><path d="M924 616a36 36 0 0 0-36 36v236H652a36 36 0 0 0 0 72h272a36 36 0 0 0 36-36V652a36 36 0 0 0-36-36zM372 64H100a36 36 0 0 0-36 36v272a36 36 0 0 0 72 0V136h236a36 36 0 0 0 0-72zM924 64H652a36 36 0 0 0 0 72h185.09L626.54 346.54a36 36 0 1 0 50.92 50.91L888 186.91V372a36 36 0 0 0 72 0V100a36 36 0 0 0-36-36zM372 616a35.87 35.87 0 0 0-25.46 10.55L136 837.09V652a36 36 0 0 0-72 0v272a36 36 0 0 0 36 36h272a36 36 0 0 0 0-72H186.91l210.55-210.54A36 36 0 0 0 372 616z" p-id="6050" fill="#727888"></path></svg>`,
|
|
230
|
-
tit: "最大化",
|
|
231
|
-
id: "maxId",
|
|
232
|
-
display: "block",
|
|
233
|
-
},
|
|
234
|
-
{
|
|
235
|
-
dom: `<svg t="1669702510511" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4513"><path d="M351.665658 639.937506h0.699931c17.398301 0 31.696905 14.298604 31.696905 31.696905v320.668684c0 17.398301-14.298604 31.696905-31.696905 31.696905h-0.699931c-17.398301 0-31.696905-14.298604-31.696905-31.696905V671.634411c0-17.398301 14.298604-31.696905 31.696905-31.696905z" fill="#727888" p-id="4514"></path><path d="M0 672.234352v-0.699932C0 654.23611 14.198613 639.937506 31.696905 639.937506h320.668684c17.398301 0 31.696905 14.298604 31.696905 31.696905v0.699931c0 17.398301-14.298604 31.696905-31.696905 31.696905H31.696905C14.198613 703.931257 0 689.732643 0 672.234352z" fill="#727888" p-id="4515"></path><path d="M374.263451 649.136608l0.499951 0.499951c12.298799 12.298799 12.298799 32.496826 0 44.795625L55.494581 1013.601016c-12.298799 12.298799-32.496826 12.298799-44.795626 0l-0.499951-0.499952c-12.298799-12.298799-12.298799-32.496826 0-44.795625l319.168831-319.168831c12.398789-12.298799 32.596817-12.298799 44.895616 0z" fill="#727888" p-id="4516"></path><path d="M672.234352 639.937506h-0.699932c-17.398301 0-31.696905 14.298604-31.696904 31.696905v320.668684c0 17.398301 14.298604 31.696905 31.696904 31.696905h0.699932c17.398301 0 31.696905-14.298604 31.696905-31.696905V671.634411c0-17.398301-14.198613-31.696905-31.696905-31.696905z" fill="#727888" p-id="4517"></path><path d="M1023.90001 672.234352v-0.699932c0-17.398301-14.298604-31.696905-31.696905-31.696904H671.634411c-17.398301 0-31.696905 14.298604-31.696905 31.696904v0.699932c0 17.398301 14.298604 31.696905 31.696905 31.696905h320.668684c17.398301 0 31.596914-14.198613 31.596915-31.696905z" fill="#727888" p-id="4518"></path><path d="M649.636559 649.136608l-0.499951 0.499951c-12.298799 12.298799-12.298799 32.496826 0 44.795625l319.168831 319.168832c12.298799 12.298799 32.496826 12.298799 44.795625 0l0.499952-0.499952c12.298799-12.298799 12.298799-32.496826 0-44.795625L694.432184 649.136608c-12.298799-12.298799-32.496826-12.298799-44.795625 0z" fill="#727888" p-id="4519"></path><path d="M351.665658 383.962504h0.699931c17.398301 0 31.696905-14.298604 31.696905-31.696905V31.696905C383.962504 14.198613 369.76389 0 352.265599 0h-0.699932C334.267357 0 319.968753 14.198613 319.968753 31.696905v320.668684c0 17.398301 14.298604 31.596914 31.696905 31.596915z" fill="#727888" p-id="4520"></path><path d="M0 351.665658v0.699931C0 369.76389 14.198613 383.962504 31.696905 383.962504h320.668684c17.398301 0 31.696905-14.298604 31.696905-31.696905v-0.699932c0-17.398301-14.298604-31.696905-31.696905-31.696904H31.696905C14.198613 319.968753 0 334.267357 0 351.665658z" fill="#727888" p-id="4521"></path><path d="M374.263451 374.763402l0.499951-0.499951c12.298799-12.298799 12.298799-32.496826 0-44.795626L55.494581 10.298994C43.195782-1.999805 22.997754-1.999805 10.698955 10.298994l-0.499951 0.499951c-12.298799 12.298799-12.298799 32.496826 0 44.795626l319.168831 319.168831c12.398789 12.298799 32.596817 12.298799 44.895616 0z" fill="#727888" p-id="4522"></path><path d="M672.234352 383.962504h-0.699932c-17.398301 0-31.696905-14.298604-31.696904-31.696905V31.696905C639.937506 14.198613 654.23611 0 671.634411 0h0.699931C689.732643 0 703.931257 14.198613 703.931257 31.696905v320.668684c0 17.398301-14.198613 31.596914-31.696905 31.596915z" fill="#727888" p-id="4523"></path><path d="M1023.90001 351.665658v0.699931c0 17.398301-14.298604 31.696905-31.696905 31.696905H671.634411c-17.398301 0-31.696905-14.298604-31.696905-31.696905v-0.699931c0-17.398301 14.298604-31.696905 31.696905-31.696905h320.668684c17.398301 0 31.596914 14.298604 31.596915 31.696905z" fill="#727888" p-id="4524"></path><path d="M649.636559 374.763402l-0.499951-0.499951c-12.298799-12.298799-12.298799-32.496826 0-44.795626L968.405429 10.298994c12.298799-12.298799 32.496826-12.298799 44.795626 0l0.499951 0.499951c12.298799 12.298799 12.298799 32.496826 0 44.795626L694.432184 374.763402c-12.298799 12.298799-32.496826 12.298799-44.795625 0z" fill="#727888" p-id="4525"></path></svg>`,
|
|
236
|
-
tit: "还原",
|
|
237
|
-
id: "minId",
|
|
238
|
-
display: "none",
|
|
239
|
-
},
|
|
240
|
-
];
|
|
241
|
-
|
|
242
|
-
this.$nextTick(() => {
|
|
243
|
-
const el = this.$refs["QuillEditor" + this.id].$el;
|
|
244
|
-
let dialogHeaderEl = el.querySelector(".ql-formats");
|
|
245
|
-
|
|
246
|
-
domList.map((item) => {
|
|
247
|
-
let dom = document.createElement("span");
|
|
248
|
-
|
|
249
|
-
dom.className = "ql-max-min";
|
|
250
|
-
dom.style.display = item.display;
|
|
251
|
-
|
|
252
|
-
dom.innerHTML = `<button title="${item.tit}" id="${
|
|
253
|
-
item.id + this.id
|
|
254
|
-
}" type="button" class="ql-clean">${item.dom}</button>`;
|
|
255
|
-
|
|
256
|
-
dialogHeaderEl.insertBefore(dom, dialogHeaderEl.childNodes[7]);
|
|
257
|
-
});
|
|
258
|
-
|
|
259
|
-
let maxId = document.getElementById("maxId" + this.id);
|
|
260
|
-
let minId = document.getElementById("minId" + this.id);
|
|
261
|
-
//最大化
|
|
262
|
-
maxId.onclick = () => {
|
|
263
|
-
el.style.width = 100 + "vw";
|
|
264
|
-
el.style.height = 100 + "vh";
|
|
265
|
-
el.style.position = "fixed";
|
|
266
|
-
el.style.top = 0;
|
|
267
|
-
el.style.left = 0;
|
|
268
|
-
el.style.zIndex = 9999;
|
|
269
|
-
el.style.background = "white";
|
|
270
|
-
// maxId.style.display = "none";
|
|
271
|
-
maxId.parentNode.style.display = "none";
|
|
272
|
-
// minId.style.display = "block";
|
|
273
|
-
minId.parentNode.style.display = "block";
|
|
274
|
-
};
|
|
275
|
-
//最小化
|
|
276
|
-
minId.onclick = () => {
|
|
277
|
-
el.style.width = "auto";
|
|
278
|
-
el.style.height = "auto";
|
|
279
|
-
el.style.position = "inherit";
|
|
280
|
-
|
|
281
|
-
// maxId.style.display = "block";
|
|
282
|
-
maxId.parentNode.style.display = "block";
|
|
283
|
-
|
|
284
|
-
// minId.style.display = "none";
|
|
285
|
-
minId.parentNode.style.display = "none";
|
|
286
|
-
};
|
|
287
|
-
});
|
|
288
|
-
},
|
|
289
|
-
},
|
|
290
|
-
};
|
|
291
|
-
</script>
|
|
292
|
-
|
|
293
|
-
<style lang="scss">
|
|
294
|
-
@import "@/style/color";
|
|
295
|
-
|
|
296
|
-
/* ios 会生成默认样式:-webkit-user-select:none;导致无法选中文本框,无法输入 */
|
|
297
|
-
// .quill-editor {
|
|
298
|
-
// -webkit-touch-callout: text !important;
|
|
299
|
-
// -webkit-user-select: text !important;
|
|
300
|
-
// -khtml-user-select: text !important;
|
|
301
|
-
// -moz-user-select: text !important;
|
|
302
|
-
// -ms-user-select: text !important;
|
|
303
|
-
// }
|
|
304
|
-
|
|
305
|
-
.phone-richText {
|
|
306
|
-
// margin-top: 10px;
|
|
307
|
-
position: relative;
|
|
308
|
-
.hu-number {
|
|
309
|
-
color: #646566;
|
|
310
|
-
font-size: 12px;
|
|
311
|
-
}
|
|
312
|
-
.ql-editor {
|
|
313
|
-
min-height: 150px;
|
|
314
|
-
padding: 12px 15px;
|
|
315
|
-
}
|
|
316
|
-
.ql-toolbar.ql-snow .ql-formats {
|
|
317
|
-
margin-right: 0;
|
|
318
|
-
}
|
|
319
|
-
.ql-toolbar.ql-snow {
|
|
320
|
-
border: 0;
|
|
321
|
-
// 用于十六进制颜色透明设置
|
|
322
|
-
background: hsla(hue($blue), saturation($blue), lightness($blue), 0.04);
|
|
323
|
-
text-align: left;
|
|
324
|
-
padding: 12px;
|
|
325
|
-
}
|
|
326
|
-
.ql-container.ql-snow {
|
|
327
|
-
border: 0;
|
|
328
|
-
}
|
|
329
|
-
.ql-snow .ql-stroke {
|
|
330
|
-
stroke: #727888;
|
|
331
|
-
}
|
|
332
|
-
.ql-snow .ql-fill,
|
|
333
|
-
.ql-snow .ql-stroke.ql-fill {
|
|
334
|
-
fill: #727888;
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
.ql-snow .ql-picker-label {
|
|
338
|
-
width: 100%;
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
.ql-formats:first-child {
|
|
342
|
-
width: 100%;
|
|
343
|
-
display: grid;
|
|
344
|
-
grid-template-columns: 12.5% 12.5% 12.5% 12.5% 12.5% 12.5% 12.5% 12.5%; //后面跟几个数据就是一行排几个
|
|
345
|
-
justify-content: space-between;
|
|
346
|
-
button {
|
|
347
|
-
display: flex;
|
|
348
|
-
justify-content: center;
|
|
349
|
-
}
|
|
350
|
-
.ql-max-min {
|
|
351
|
-
border-left: 1px solid $gray-3;
|
|
352
|
-
.ql-clean {
|
|
353
|
-
display: flex;
|
|
354
|
-
justify-content: flex-end;
|
|
355
|
-
width: 100%;
|
|
356
|
-
}
|
|
357
|
-
}
|
|
358
|
-
.ql-picker.ql-expanded .ql-picker-options {
|
|
359
|
-
left: -50px;
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
.ql-formats:nth-child(2) {
|
|
363
|
-
width: 100%;
|
|
364
|
-
display: grid;
|
|
365
|
-
grid-template-columns: 12.5% 12.5%;
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
.ql-formats:nth-child(3) {
|
|
369
|
-
margin-top: 10px;
|
|
370
|
-
padding-top: 11px;
|
|
371
|
-
border-top: 1px solid $gray-3;
|
|
372
|
-
width: 100%;
|
|
373
|
-
.ql-picker {
|
|
374
|
-
border-radius: 2px;
|
|
375
|
-
border: 1px solid rgba(114, 120, 136, 0.24);
|
|
376
|
-
margin-right: 8px;
|
|
377
|
-
}
|
|
378
|
-
.ql-picker:first-child {
|
|
379
|
-
width: 140px;
|
|
380
|
-
height: 24px;
|
|
381
|
-
}
|
|
382
|
-
.ql-picker:nth-child(2) .ql-size {
|
|
383
|
-
width: 60px;
|
|
384
|
-
height: 24px;
|
|
385
|
-
}
|
|
386
|
-
}
|
|
387
|
-
}
|
|
388
|
-
|
|
389
|
-
.ql-snow .ql-picker.ql-size .ql-picker-label[data-value="10px"]::before,
|
|
390
|
-
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value="10px"]::before {
|
|
391
|
-
content: "10px";
|
|
392
|
-
}
|
|
393
|
-
.ql-snow .ql-picker.ql-size .ql-picker-label[data-value="12px"]::before,
|
|
394
|
-
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value="12px"]::before {
|
|
395
|
-
content: "12px";
|
|
396
|
-
}
|
|
397
|
-
.ql-snow .ql-picker.ql-size .ql-picker-label[data-value="14px"]::before,
|
|
398
|
-
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value="14px"]::before {
|
|
399
|
-
content: "14px";
|
|
400
|
-
}
|
|
401
|
-
.ql-snow .ql-picker.ql-size .ql-picker-label[data-value="16px"]::before,
|
|
402
|
-
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value="16px"]::before {
|
|
403
|
-
content: "16px";
|
|
404
|
-
}
|
|
405
|
-
.ql-snow .ql-picker.ql-size .ql-picker-label[data-value="18px"]::before,
|
|
406
|
-
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value="18px"]::before {
|
|
407
|
-
content: "18px";
|
|
408
|
-
}
|
|
409
|
-
.ql-snow .ql-picker.ql-size .ql-picker-label[data-value="20px"]::before,
|
|
410
|
-
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value="20px"]::before {
|
|
411
|
-
content: "20px";
|
|
412
|
-
}
|
|
413
|
-
.ql-snow .ql-picker.ql-size .ql-picker-label[data-value="22px"]::before,
|
|
414
|
-
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value="22px"]::before {
|
|
415
|
-
content: "22px";
|
|
416
|
-
}
|
|
417
|
-
.ql-snow .ql-picker.ql-size .ql-picker-label[data-value="24px"]::before,
|
|
418
|
-
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value="24px"]::before {
|
|
419
|
-
content: "24px";
|
|
420
|
-
}
|
|
421
|
-
.ql-snow .ql-picker.ql-size .ql-picker-label[data-value="26px"]::before,
|
|
422
|
-
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value="26px"]::before {
|
|
423
|
-
content: "26px";
|
|
424
|
-
}
|
|
425
|
-
.ql-snow .ql-picker.ql-size .ql-picker-label[data-value="28px"]::before,
|
|
426
|
-
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value="28px"]::before {
|
|
427
|
-
content: "28px";
|
|
428
|
-
}
|
|
429
|
-
.ql-snow .ql-picker.ql-size .ql-picker-label[data-value="30px"]::before,
|
|
430
|
-
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value="30px"]::before {
|
|
431
|
-
content: "30px";
|
|
432
|
-
}
|
|
433
|
-
.ql-snow .ql-picker.ql-size .ql-picker-label[data-value="32px"]::before,
|
|
434
|
-
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value="32px"]::before {
|
|
435
|
-
content: "32px";
|
|
436
|
-
}
|
|
437
|
-
.ql-snow .ql-picker.ql-size .ql-picker-label[data-value="36px"]::before,
|
|
438
|
-
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value="36px"]::before {
|
|
439
|
-
content: "36px";
|
|
440
|
-
}
|
|
441
|
-
.ql-snow .ql-picker.ql-size .ql-picker-label[data-value="38px"]::before,
|
|
442
|
-
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value="38px"]::before {
|
|
443
|
-
content: "38px";
|
|
444
|
-
}
|
|
445
|
-
.ql-snow .ql-picker.ql-size .ql-picker-label[data-value="40px"]::before,
|
|
446
|
-
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value="40px"]::before {
|
|
447
|
-
content: "40px";
|
|
448
|
-
}
|
|
449
|
-
.ql-snow .ql-picker.ql-size .ql-picker-label[data-value="45px"]::before,
|
|
450
|
-
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value="45px"]::before {
|
|
451
|
-
content: "45px";
|
|
452
|
-
}
|
|
453
|
-
.ql-snow .ql-picker.ql-size .ql-picker-label[data-value="50px"]::before,
|
|
454
|
-
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value="50px"]::before {
|
|
455
|
-
content: "50px";
|
|
456
|
-
}
|
|
457
|
-
|
|
458
|
-
.ql-snow .ql-picker.ql-size .ql-picker-label::before,
|
|
459
|
-
.ql-snow .ql-picker.ql-size .ql-picker-item::before {
|
|
460
|
-
content: "14px";
|
|
461
|
-
}
|
|
462
|
-
.ql-snow .ql-picker.ql-size .ql-picker-label[data-value="small"]::before,
|
|
463
|
-
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value="small"]::before {
|
|
464
|
-
content: "10px";
|
|
465
|
-
}
|
|
466
|
-
.ql-snow .ql-picker.ql-size .ql-picker-label[data-value="large"]::before,
|
|
467
|
-
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value="large"]::before {
|
|
468
|
-
content: "18px";
|
|
469
|
-
}
|
|
470
|
-
.ql-snow .ql-picker.ql-size .ql-picker-label[data-value="huge"]::before,
|
|
471
|
-
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value="huge"]::before {
|
|
472
|
-
content: "32px";
|
|
473
|
-
}
|
|
474
|
-
|
|
475
|
-
.ql-snow .ql-picker.ql-header .ql-picker-label::before,
|
|
476
|
-
.ql-snow .ql-picker.ql-header .ql-picker-item::before {
|
|
477
|
-
content: "标题";
|
|
478
|
-
}
|
|
479
|
-
.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="1"]::before,
|
|
480
|
-
.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]::before {
|
|
481
|
-
content: "标题1";
|
|
482
|
-
}
|
|
483
|
-
.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]::before,
|
|
484
|
-
.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]::before {
|
|
485
|
-
content: "标题2";
|
|
486
|
-
}
|
|
487
|
-
.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]::before,
|
|
488
|
-
.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]::before {
|
|
489
|
-
content: "标题3";
|
|
490
|
-
}
|
|
491
|
-
.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="4"]::before,
|
|
492
|
-
.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]::before {
|
|
493
|
-
content: "标题4";
|
|
494
|
-
}
|
|
495
|
-
.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="5"]::before,
|
|
496
|
-
.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]::before {
|
|
497
|
-
content: "标题5";
|
|
498
|
-
}
|
|
499
|
-
.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="6"]::before,
|
|
500
|
-
.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]::before {
|
|
501
|
-
content: "标题6";
|
|
502
|
-
}
|
|
503
|
-
|
|
504
|
-
.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="方正小标宋简"]::before,
|
|
505
|
-
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="方正小标宋简"]::before {
|
|
506
|
-
content: "方正小标宋简";
|
|
507
|
-
}
|
|
508
|
-
.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="仿宋"]::before,
|
|
509
|
-
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="仿宋"]::before {
|
|
510
|
-
content: "仿宋";
|
|
511
|
-
}
|
|
512
|
-
.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="simhei"]::before,
|
|
513
|
-
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="simhei"]::before {
|
|
514
|
-
content: "黑体";
|
|
515
|
-
}
|
|
516
|
-
.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="simkai"]::before,
|
|
517
|
-
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="simkai"]::before {
|
|
518
|
-
content: "楷体";
|
|
519
|
-
}
|
|
520
|
-
</style>
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="voice-icon-wrap" ref="vc">
|
|
3
|
-
<div class="hu-voice-icon">
|
|
4
|
-
<i class="iconfont icon-voice" @click.stop="talkStart"></i>
|
|
5
|
-
</div>
|
|
6
|
-
<transition name="fadeShow">
|
|
7
|
-
<div class="voice-wrap" v-if="show" @click="talkOver">
|
|
8
|
-
<img src="../../images/speak3.gif" class="img-vc" />
|
|
9
|
-
<span style="font-size: 16px">语音录入中...</span>
|
|
10
|
-
</div>
|
|
11
|
-
</transition>
|
|
12
|
-
</div>
|
|
13
|
-
</template>
|
|
14
|
-
|
|
15
|
-
<script>
|
|
16
|
-
import { Toast } from "vant";
|
|
17
|
-
|
|
18
|
-
export default {
|
|
19
|
-
props: {
|
|
20
|
-
isSearch: {
|
|
21
|
-
default: false,
|
|
22
|
-
},
|
|
23
|
-
// 是否只读
|
|
24
|
-
readOnly: {
|
|
25
|
-
type: Boolean,
|
|
26
|
-
default: false,
|
|
27
|
-
},
|
|
28
|
-
// 与语音绑定的输入id
|
|
29
|
-
id: {
|
|
30
|
-
type: String,
|
|
31
|
-
default: "textarea",
|
|
32
|
-
},
|
|
33
|
-
// 已经输入的内容
|
|
34
|
-
oldValue: {
|
|
35
|
-
type: String,
|
|
36
|
-
default: "",
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
data() {
|
|
40
|
-
return {
|
|
41
|
-
msg: "",
|
|
42
|
-
show: false,
|
|
43
|
-
};
|
|
44
|
-
},
|
|
45
|
-
methods: {
|
|
46
|
-
// 开始录音的代码写在此处
|
|
47
|
-
talkStart() {
|
|
48
|
-
// if (this.readOnly) {
|
|
49
|
-
// return;
|
|
50
|
-
// }
|
|
51
|
-
// if (!this.$store.state.app.isClient) {
|
|
52
|
-
// return Toast.fail("检测到当前客户端不可用语音录入功能!");
|
|
53
|
-
// }
|
|
54
|
-
// let is = this._props.isSearch;
|
|
55
|
-
// let self = this;
|
|
56
|
-
// let val = this.oldValue;
|
|
57
|
-
// let el;
|
|
58
|
-
// self.show = true;
|
|
59
|
-
// if (!is) {
|
|
60
|
-
// el = this.$refs.vc.parentNode.parentNode.querySelector(this.id);
|
|
61
|
-
// if (el) val = el.value;
|
|
62
|
-
// }
|
|
63
|
-
// // 1、开始 2、 停止 3 、 取消 默认 1
|
|
64
|
-
// _vrvInit.voiceToTxt((v) => {
|
|
65
|
-
// if (is) {
|
|
66
|
-
// let vv = v
|
|
67
|
-
// .toString()
|
|
68
|
-
// .replace(
|
|
69
|
-
// /[\u3002|\uff1f|\uff01|\uff0c|\u3001|\uff1b|\uff1a|\u201c|\u201d|\u2018|\u2019|\uff08|\uff09|\u300a|\u300b|\u3008|\u3009|\u3010|\u3011|\u300e|\u300f|\u300c|\u300d|\ufe43|\ufe44|\u3014|\u3015|\u2026|\u2014|\uff5e|\ufe4f|\uffe5]/g,
|
|
70
|
-
// ""
|
|
71
|
-
// );
|
|
72
|
-
// _data.bus.$emit("searchVoice", vv);
|
|
73
|
-
// } else {
|
|
74
|
-
// // el.value = val + v;
|
|
75
|
-
// this.$emit("vc", val + v);
|
|
76
|
-
// }
|
|
77
|
-
// self.talkOver();
|
|
78
|
-
// }, 1);
|
|
79
|
-
},
|
|
80
|
-
talkOver() {
|
|
81
|
-
// this.show = false;
|
|
82
|
-
// _vrvInit.voiceToTxt(v => {}, 3);
|
|
83
|
-
},
|
|
84
|
-
},
|
|
85
|
-
};
|
|
86
|
-
</script>
|
|
87
|
-
|
|
88
|
-
<style lang="scss">
|
|
89
|
-
@import "@/style/color";
|
|
90
|
-
.voice-wrap {
|
|
91
|
-
height: 100%;
|
|
92
|
-
width: 100%;
|
|
93
|
-
position: fixed;
|
|
94
|
-
display: flex;
|
|
95
|
-
align-items: center;
|
|
96
|
-
justify-content: center;
|
|
97
|
-
flex-direction: column;
|
|
98
|
-
top: 0;
|
|
99
|
-
left: 0;
|
|
100
|
-
right: 0;
|
|
101
|
-
bottom: 0;
|
|
102
|
-
z-index: 1000;
|
|
103
|
-
background-color: rgba(0, 0, 0, 0.3);
|
|
104
|
-
color: #fff;
|
|
105
|
-
.img-vc {
|
|
106
|
-
margin-top: 18px;
|
|
107
|
-
margin-bottom: 20px;
|
|
108
|
-
height: 80px;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
.hu-voice-icon {
|
|
112
|
-
color: $blue;
|
|
113
|
-
transform: rotate(45deg);
|
|
114
|
-
}
|
|
115
|
-
</style>
|