skhj-variant 2.1.12
Sign up to get free protection for your applications and to get access to all the features.
- package/.idea/inspectionProfiles/Project_Default.xml +6 -0
- package/.idea/modules.xml +8 -0
- package/.idea/package.iml +12 -0
- package/README.md +180 -0
- package/babel.config.js +5 -0
- package/dist/build/css/app.9b74af27.css +1 -0
- package/dist/build/css/chunk-vendors.a16c4353.css +1 -0
- package/dist/build/favicon.ico +0 -0
- package/dist/build/fonts/element-icons.535877f5.woff +0 -0
- package/dist/build/fonts/element-icons.732389de.ttf +0 -0
- package/dist/build/img/t1.21b2c158.png +0 -0
- package/dist/build/img/t2.6991670f.png +0 -0
- package/dist/build/img/t3.49724600.png +0 -0
- package/dist/build/img/t4.4acb1808.png +0 -0
- package/dist/build/img/t5.e5e1948c.png +0 -0
- package/dist/build/img/t6.40836551.png +0 -0
- package/dist/build/img/t7.94cf1cc9.png +0 -0
- package/dist/build/img/t8.9291e9c1.png +0 -0
- package/dist/build/index.html +1 -0
- package/dist/build/js/app.dbcf7751.js +1 -0
- package/dist/build/js/chunk-1d66e3dd.7d669272.js +23 -0
- package/dist/build/js/chunk-vendors.be32fc27.js +24 -0
- package/dist/build/report.html +53 -0
- package/dist/lib/VFormDesigner.common-report.html +53 -0
- package/dist/lib/VFormDesigner.common.1.js +14583 -0
- package/dist/lib/VFormDesigner.common.1.js.map +1 -0
- package/dist/lib/VFormDesigner.common.js +71232 -0
- package/dist/lib/VFormDesigner.common.js.map +1 -0
- package/dist/lib/VFormDesigner.css +1 -0
- package/dist/lib/VFormDesigner.umd-report.html +53 -0
- package/dist/lib/VFormDesigner.umd.1.js +14583 -0
- package/dist/lib/VFormDesigner.umd.1.js.map +1 -0
- package/dist/lib/VFormDesigner.umd.js +71242 -0
- package/dist/lib/VFormDesigner.umd.js.map +1 -0
- package/dist/lib/VFormDesigner.umd.min-report.html +53 -0
- package/dist/lib/VFormDesigner.umd.min.1.js +23 -0
- package/dist/lib/VFormDesigner.umd.min.js +19 -0
- package/dist/lib/demo.html +10 -0
- package/dist/lib/img/t1.21b2c158.png +0 -0
- package/dist/lib/img/t2.6991670f.png +0 -0
- package/dist/lib/img/t3.49724600.png +0 -0
- package/dist/lib/img/t4.4acb1808.png +0 -0
- package/dist/lib/img/t5.e5e1948c.png +0 -0
- package/dist/lib/img/t6.40836551.png +0 -0
- package/dist/lib/img/t7.94cf1cc9.png +0 -0
- package/dist/lib/img/t8.9291e9c1.png +0 -0
- package/dist/lib-render/VFormRender.common-report.html +53 -0
- package/dist/lib-render/VFormRender.common.1.js +14583 -0
- package/dist/lib-render/VFormRender.common.1.js.map +1 -0
- package/dist/lib-render/VFormRender.common.js +32421 -0
- package/dist/lib-render/VFormRender.common.js.map +1 -0
- package/dist/lib-render/VFormRender.css +1 -0
- package/dist/lib-render/VFormRender.umd-report.html +53 -0
- package/dist/lib-render/VFormRender.umd.1.js +14583 -0
- package/dist/lib-render/VFormRender.umd.1.js.map +1 -0
- package/dist/lib-render/VFormRender.umd.js +32431 -0
- package/dist/lib-render/VFormRender.umd.js.map +1 -0
- package/dist/lib-render/VFormRender.umd.min-report.html +53 -0
- package/dist/lib-render/VFormRender.umd.min.1.js +23 -0
- package/dist/lib-render/VFormRender.umd.min.js +15 -0
- package/dist/lib-render/demo.html +10 -0
- package/index_template/index_dev.html +19 -0
- package/index_template/index_prod.html +28 -0
- package/index_template/vform_demo.gif +0 -0
- package/install-render.js +29 -0
- package/install.js +41 -0
- package/jsconfig.json +10 -0
- package/license.txt +8 -0
- package/package.json +58 -0
- package/public/favicon.ico +0 -0
- package/public/index.html +28 -0
- package/src/App.vue +22 -0
- package/src/assets/ft-images/t1.png +0 -0
- package/src/assets/ft-images/t2.png +0 -0
- package/src/assets/ft-images/t3.png +0 -0
- package/src/assets/ft-images/t4.png +0 -0
- package/src/assets/ft-images/t5.png +0 -0
- package/src/assets/ft-images/t6.png +0 -0
- package/src/assets/ft-images/t7.png +0 -0
- package/src/assets/ft-images/t8.png +0 -0
- package/src/assets/style.scss +92 -0
- package/src/assets/vform-logo.png +0 -0
- package/src/components/code-editor/index.vue +130 -0
- package/src/components/form-designer/designer.js +926 -0
- package/src/components/form-designer/form-widget/container-widget/container-wrapper.vue +107 -0
- package/src/components/form-designer/form-widget/container-widget/containerMixin.js +85 -0
- package/src/components/form-designer/form-widget/container-widget/grid-col-widget.vue +310 -0
- package/src/components/form-designer/form-widget/container-widget/grid-widget.vue +89 -0
- package/src/components/form-designer/form-widget/container-widget/index.js +24 -0
- package/src/components/form-designer/form-widget/container-widget/tab-widget.vue +119 -0
- package/src/components/form-designer/form-widget/container-widget/table-cell-widget.vue +341 -0
- package/src/components/form-designer/form-widget/container-widget/table-widget.vue +111 -0
- package/src/components/form-designer/form-widget/field-widget/button-widget.vue +87 -0
- package/src/components/form-designer/form-widget/field-widget/cascader-widget.vue +104 -0
- package/src/components/form-designer/form-widget/field-widget/checkbox-widget.vue +105 -0
- package/src/components/form-designer/form-widget/field-widget/color-widget.vue +99 -0
- package/src/components/form-designer/form-widget/field-widget/date-range-widget.vue +104 -0
- package/src/components/form-designer/form-widget/field-widget/date-widget.vue +103 -0
- package/src/components/form-designer/form-widget/field-widget/divider-widget.vue +83 -0
- package/src/components/form-designer/form-widget/field-widget/fieldMixin.js +535 -0
- package/src/components/form-designer/form-widget/field-widget/file-upload-widget.vue +271 -0
- package/src/components/form-designer/form-widget/field-widget/form-item-wrapper.vue +331 -0
- package/src/components/form-designer/form-widget/field-widget/html-text-widget.vue +82 -0
- package/src/components/form-designer/form-widget/field-widget/index.js +10 -0
- package/src/components/form-designer/form-widget/field-widget/input-widget.vue +112 -0
- package/src/components/form-designer/form-widget/field-widget/number-widget.vue +103 -0
- package/src/components/form-designer/form-widget/field-widget/picture-upload-widget.vue +226 -0
- package/src/components/form-designer/form-widget/field-widget/radio-widget.vue +105 -0
- package/src/components/form-designer/form-widget/field-widget/rate-widget.vue +102 -0
- package/src/components/form-designer/form-widget/field-widget/rich-editor-widget.vue +122 -0
- package/src/components/form-designer/form-widget/field-widget/select-widget.vue +115 -0
- package/src/components/form-designer/form-widget/field-widget/slider-widget.vue +100 -0
- package/src/components/form-designer/form-widget/field-widget/static-content-wrapper.vue +189 -0
- package/src/components/form-designer/form-widget/field-widget/static-text-widget.vue +82 -0
- package/src/components/form-designer/form-widget/field-widget/switch-widget.vue +101 -0
- package/src/components/form-designer/form-widget/field-widget/textarea-widget.vue +99 -0
- package/src/components/form-designer/form-widget/field-widget/time-range-widget.vue +104 -0
- package/src/components/form-designer/form-widget/field-widget/time-widget.vue +103 -0
- package/src/components/form-designer/form-widget/index.vue +260 -0
- package/src/components/form-designer/index.vue +448 -0
- package/src/components/form-designer/setting-panel/form-setting.vue +324 -0
- package/src/components/form-designer/setting-panel/index.vue +328 -0
- package/src/components/form-designer/setting-panel/option-items-setting.vue +234 -0
- package/src/components/form-designer/setting-panel/property-editor/allowCreate-editor.vue +24 -0
- package/src/components/form-designer/setting-panel/property-editor/appendButton-editor.vue +28 -0
- package/src/components/form-designer/setting-panel/property-editor/appendButtonDisabled-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/automaticDropdown-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/border-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/buttonIcon-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/buttonStyle-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/clearable-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/columnWidth-editor.vue +40 -0
- package/src/components/form-designer/setting-panel/property-editor/container-grid/colHeight-editor.vue +28 -0
- package/src/components/form-designer/setting-panel/property-editor/container-grid/gutter-editor.vue +81 -0
- package/src/components/form-designer/setting-panel/property-editor/container-grid-col/grid-col-offset-editor.vue +24 -0
- package/src/components/form-designer/setting-panel/property-editor/container-grid-col/grid-col-pull-editor.vue +24 -0
- package/src/components/form-designer/setting-panel/property-editor/container-grid-col/grid-col-push-editor.vue +24 -0
- package/src/components/form-designer/setting-panel/property-editor/container-grid-col/grid-col-responsive-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/container-grid-col/grid-col-span-editor.vue +48 -0
- package/src/components/form-designer/setting-panel/property-editor/container-sub-form/showBlankRow-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/container-sub-form/showRowNumber-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/container-sub-form/sub-form-labelAlign-editor.vue +36 -0
- package/src/components/form-designer/setting-panel/property-editor/container-tab/tab-customClass-editor.vue +119 -0
- package/src/components/form-designer/setting-panel/property-editor/container-table-cell/cellHeight-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/container-table-cell/cellWidth-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/customClass-editor.vue +40 -0
- package/src/components/form-designer/setting-panel/property-editor/defaultValue-editor.vue +25 -0
- package/src/components/form-designer/setting-panel/property-editor/disabled-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/displayStyle-editor.vue +26 -0
- package/src/components/form-designer/setting-panel/property-editor/editable-editor.vue +24 -0
- package/src/components/form-designer/setting-panel/property-editor/endPlaceholder-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/event-handler/eventMixin.js +12 -0
- package/src/components/form-designer/setting-panel/property-editor/event-handler/onBeforeUpload-editor.vue +30 -0
- package/src/components/form-designer/setting-panel/property-editor/event-handler/onBlur-editor.vue +30 -0
- package/src/components/form-designer/setting-panel/property-editor/event-handler/onChange-editor.vue +30 -0
- package/src/components/form-designer/setting-panel/property-editor/event-handler/onClick-editor.vue +30 -0
- package/src/components/form-designer/setting-panel/property-editor/event-handler/onCreated-editor.vue +31 -0
- package/src/components/form-designer/setting-panel/property-editor/event-handler/onFocus-editor.vue +30 -0
- package/src/components/form-designer/setting-panel/property-editor/event-handler/onInput-editor.vue +30 -0
- package/src/components/form-designer/setting-panel/property-editor/event-handler/onMounted-editor.vue +30 -0
- package/src/components/form-designer/setting-panel/property-editor/event-handler/onRemoteQuery-editor.vue +30 -0
- package/src/components/form-designer/setting-panel/property-editor/event-handler/onSubFormRowAdd-editor.vue +30 -0
- package/src/components/form-designer/setting-panel/property-editor/event-handler/onSubFormRowChange-editor.vue +30 -0
- package/src/components/form-designer/setting-panel/property-editor/event-handler/onSubFormRowDelete-editor.vue +30 -0
- package/src/components/form-designer/setting-panel/property-editor/event-handler/onSubFormRowInsert-editor.vue +30 -0
- package/src/components/form-designer/setting-panel/property-editor/event-handler/onUploadError-editor.vue +30 -0
- package/src/components/form-designer/setting-panel/property-editor/event-handler/onUploadSuccess-editor.vue +30 -0
- package/src/components/form-designer/setting-panel/property-editor/event-handler/onValidate-editor.vue +30 -0
- package/src/components/form-designer/setting-panel/property-editor/field-button/button-type-editor.vue +32 -0
- package/src/components/form-designer/setting-panel/property-editor/field-button/circle-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/field-button/icon-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/field-button/plain-editor.vue +24 -0
- package/src/components/form-designer/setting-panel/property-editor/field-button/round-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/field-color/color-defaultValue-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/field-date/date-defaultValue-editor.vue +24 -0
- package/src/components/form-designer/setting-panel/property-editor/field-date/date-format-editor.vue +30 -0
- package/src/components/form-designer/setting-panel/property-editor/field-date/date-type-editor.vue +30 -0
- package/src/components/form-designer/setting-panel/property-editor/field-date/date-valueFormat-editor.vue +26 -0
- package/src/components/form-designer/setting-panel/property-editor/field-date-range/date-range-defaultValue-editor.vue +24 -0
- package/src/components/form-designer/setting-panel/property-editor/field-date-range/date-range-format-editor.vue +30 -0
- package/src/components/form-designer/setting-panel/property-editor/field-date-range/date-range-type-editor.vue +27 -0
- package/src/components/form-designer/setting-panel/property-editor/field-date-range/date-range-valueFormat-editor.vue +26 -0
- package/src/components/form-designer/setting-panel/property-editor/field-divider/contentPosition-editor.vue +27 -0
- package/src/components/form-designer/setting-panel/property-editor/field-file-upload/file-upload-fileTypes-editor.vue +44 -0
- package/src/components/form-designer/setting-panel/property-editor/field-html-text/htmlContent-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/field-number/controlsPosition-editor.vue +27 -0
- package/src/components/form-designer/setting-panel/property-editor/field-picture-upload/picture-upload-fileTypes-editor.vue +43 -0
- package/src/components/form-designer/setting-panel/property-editor/field-rate/allowHalf-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/field-rate/highThreshold-editor.vue +24 -0
- package/src/components/form-designer/setting-panel/property-editor/field-rate/lowThreshold-editor.vue +24 -0
- package/src/components/form-designer/setting-panel/property-editor/field-rate/rate-defaultValue-editor.vue +26 -0
- package/src/components/form-designer/setting-panel/property-editor/field-rate/rate-max-editor.vue +25 -0
- package/src/components/form-designer/setting-panel/property-editor/field-rate/showScore-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/field-rate/showText-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/field-slider/range-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/field-slider/showStops-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/field-slider/vertical-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/field-static-text/textContent-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/field-switch/activeColor-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/field-switch/activeText-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/field-switch/inactiveColor-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/field-switch/inactiveText-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/field-switch/switch-defaultValue-editor.vue +25 -0
- package/src/components/form-designer/setting-panel/property-editor/field-switch/switchWidth-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/field-time/time-defaultValue-editor.vue +24 -0
- package/src/components/form-designer/setting-panel/property-editor/field-time/time-format-editor.vue +27 -0
- package/src/components/form-designer/setting-panel/property-editor/field-time-range/time-range-defaultValue-editor.vue +24 -0
- package/src/components/form-designer/setting-panel/property-editor/field-time-range/time-range-format-editor.vue +27 -0
- package/src/components/form-designer/setting-panel/property-editor/fileMaxSize-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/filterable-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/hidden-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/index.js +10 -0
- package/src/components/form-designer/setting-panel/property-editor/label-editor.vue +30 -0
- package/src/components/form-designer/setting-panel/property-editor/labelAlign-editor.vue +42 -0
- package/src/components/form-designer/setting-panel/property-editor/labelHidden-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/labelIconClass-editor.vue +28 -0
- package/src/components/form-designer/setting-panel/property-editor/labelIconPosition-editor.vue +37 -0
- package/src/components/form-designer/setting-panel/property-editor/labelTooltip-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/labelWidth-editor.vue +25 -0
- package/src/components/form-designer/setting-panel/property-editor/limit-editor.vue +24 -0
- package/src/components/form-designer/setting-panel/property-editor/max-editor.vue +39 -0
- package/src/components/form-designer/setting-panel/property-editor/maxLength-editor.vue +40 -0
- package/src/components/form-designer/setting-panel/property-editor/min-editor.vue +40 -0
- package/src/components/form-designer/setting-panel/property-editor/minLength-editor.vue +41 -0
- package/src/components/form-designer/setting-panel/property-editor/multiple-editor.vue +24 -0
- package/src/components/form-designer/setting-panel/property-editor/multipleLimit-editor.vue +24 -0
- package/src/components/form-designer/setting-panel/property-editor/multipleSelect-editor.vue +24 -0
- package/src/components/form-designer/setting-panel/property-editor/name-editor.vue +80 -0
- package/src/components/form-designer/setting-panel/property-editor/optionItems-editor.vue +28 -0
- package/src/components/form-designer/setting-panel/property-editor/placeholder-editor.vue +24 -0
- package/src/components/form-designer/setting-panel/property-editor/precision-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/prefixIcon-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/propertyMixin.js +47 -0
- package/src/components/form-designer/setting-panel/property-editor/readonly-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/remote-editor.vue +25 -0
- package/src/components/form-designer/setting-panel/property-editor/required-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/rows-editor.vue +24 -0
- package/src/components/form-designer/setting-panel/property-editor/showFileList-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/showPassword-editor.vue +24 -0
- package/src/components/form-designer/setting-panel/property-editor/showWordLimit-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/size-editor.vue +38 -0
- package/src/components/form-designer/setting-panel/property-editor/startPlaceholder-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/step-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/suffixIcon-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/type-editor.vue +33 -0
- package/src/components/form-designer/setting-panel/property-editor/uploadTip-editor.vue +24 -0
- package/src/components/form-designer/setting-panel/property-editor/uploadURL-editor.vue +28 -0
- package/src/components/form-designer/setting-panel/property-editor/validation-editor.vue +48 -0
- package/src/components/form-designer/setting-panel/property-editor/validationHint-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/withCredentials-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor-factory.js +173 -0
- package/src/components/form-designer/setting-panel/propertyRegister.js +198 -0
- package/src/components/form-designer/toolbar-panel/index.vue +1070 -0
- package/src/components/form-designer/widget-panel/index.vue +530 -0
- package/src/components/form-designer/widget-panel/templatesConfig.js +58 -0
- package/src/components/form-designer/widget-panel/widgetsConfig.js +966 -0
- package/src/components/form-render/container-item/container-item-wrapper.vue +34 -0
- package/src/components/form-render/container-item/containerItemMixin.js +136 -0
- package/src/components/form-render/container-item/grid-col-item.vue +115 -0
- package/src/components/form-render/container-item/grid-item.vue +54 -0
- package/src/components/form-render/container-item/index.js +24 -0
- package/src/components/form-render/container-item/sub-form-item.vue +405 -0
- package/src/components/form-render/container-item/tab-item.vue +89 -0
- package/src/components/form-render/container-item/table-cell-item.vue +61 -0
- package/src/components/form-render/container-item/table-item.vue +65 -0
- package/src/components/form-render/index.vue +712 -0
- package/src/components/form-render/refMixin.js +22 -0
- package/src/components/svg-icon/index.vue +49 -0
- package/src/components/v-table/index.vue +106 -0
- package/src/extension/extension-helper.js +23 -0
- package/src/extension/extension-loader.js +112 -0
- package/src/extension/samples/alert/alert-widget.vue +72 -0
- package/src/extension/samples/card/card-item.vue +90 -0
- package/src/extension/samples/card/card-widget.vue +119 -0
- package/src/extension/samples/extension-schema.js +36 -0
- package/src/extension/samples/extension-sfc-generator.js +50 -0
- package/src/iconfont/iconfont.css +29 -0
- package/src/iconfont/iconfont.eot +0 -0
- package/src/iconfont/iconfont.js +1 -0
- package/src/iconfont/iconfont.json +37 -0
- package/src/iconfont/iconfont.svg +35 -0
- package/src/iconfont/iconfont.ttf +0 -0
- package/src/iconfont/iconfont.woff +0 -0
- package/src/iconfont/iconfont.woff2 +0 -0
- package/src/icons/index.js +9 -0
- package/src/icons/svg/alert.svg +1 -0
- package/src/icons/svg/button.svg +1 -0
- package/src/icons/svg/card.svg +1 -0
- package/src/icons/svg/cascader-field.svg +1 -0
- package/src/icons/svg/checkbox-field.svg +1 -0
- package/src/icons/svg/color-field.svg +1 -0
- package/src/icons/svg/custom-component.svg +1 -0
- package/src/icons/svg/data-table.svg +1 -0
- package/src/icons/svg/date-field.svg +1 -0
- package/src/icons/svg/date-range-field.svg +1 -0
- package/src/icons/svg/divider.svg +1 -0
- package/src/icons/svg/document.svg +1 -0
- package/src/icons/svg/drag.svg +1 -0
- package/src/icons/svg/file-upload-field.svg +1 -0
- package/src/icons/svg/github.svg +1 -0
- package/src/icons/svg/grid.svg +1 -0
- package/src/icons/svg/html-text.svg +1 -0
- package/src/icons/svg/node-tree.svg +1 -0
- package/src/icons/svg/number-field.svg +1 -0
- package/src/icons/svg/picture-upload-field.svg +1 -0
- package/src/icons/svg/radio-field.svg +1 -0
- package/src/icons/svg/rate-field.svg +1 -0
- package/src/icons/svg/redo.svg +1 -0
- package/src/icons/svg/rich-editor-field.svg +1 -0
- package/src/icons/svg/section.svg +1 -0
- package/src/icons/svg/select-field.svg +1 -0
- package/src/icons/svg/slider-field.svg +1 -0
- package/src/icons/svg/slot-component.svg +1 -0
- package/src/icons/svg/static-text.svg +1 -0
- package/src/icons/svg/sub-form.svg +1 -0
- package/src/icons/svg/switch-field.svg +1 -0
- package/src/icons/svg/tab.svg +1 -0
- package/src/icons/svg/table.svg +1 -0
- package/src/icons/svg/text-field.svg +1 -0
- package/src/icons/svg/textarea-field.svg +1 -0
- package/src/icons/svg/time-field.svg +1 -0
- package/src/icons/svg/time-range-field.svg +1 -0
- package/src/icons/svg/undo.svg +1 -0
- package/src/icons/svg/vue-sfc.svg +1 -0
- package/src/index.js +41 -0
- package/src/lang/en-US.js +321 -0
- package/src/lang/en-US_extension.js +26 -0
- package/src/lang/en-US_render.js +38 -0
- package/src/lang/zh-CN.js +321 -0
- package/src/lang/zh-CN_extension.js +26 -0
- package/src/lang/zh-CN_render.js +38 -0
- package/src/main.js +29 -0
- package/src/styles/global.scss +103 -0
- package/src/styles/index.scss +15 -0
- package/src/utils/beautifierLoader.js +77 -0
- package/src/utils/code-generator.js +91 -0
- package/src/utils/config.js +19 -0
- package/src/utils/debug-console.js +7 -0
- package/src/utils/directive.js +74 -0
- package/src/utils/i18n.js +70 -0
- package/src/utils/sfc-generator.js +583 -0
- package/src/utils/util.js +232 -0
- package/src/utils/validators.js +127 -0
- package/src/utils/vue2js-generator.js +144 -0
- package/src/utils/vue3js-generator.js +70 -0
- package/vue.config.js +92 -0
@@ -0,0 +1,19 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="">
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
6
|
+
<meta name="renderer" content="webkit">
|
7
|
+
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
8
|
+
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
|
9
|
+
<title><%= htmlWebpackPlugin.options.title %></title>
|
10
|
+
</head>
|
11
|
+
<body>
|
12
|
+
<noscript>
|
13
|
+
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
|
14
|
+
</noscript>
|
15
|
+
|
16
|
+
<div id="app"></div>
|
17
|
+
<!-- built files will be auto injected -->
|
18
|
+
</body>
|
19
|
+
</html>
|
@@ -0,0 +1,28 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="">
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
6
|
+
<meta name="renderer" content="webkit">
|
7
|
+
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
8
|
+
<!-- 禁止浏览器缓存index.html begin -->
|
9
|
+
<meta http-equiv="Expires" content="0">
|
10
|
+
<meta http-equiv="Pragma" content="no-cache">
|
11
|
+
<meta http-equiv="Cache-control" content="no-cache">
|
12
|
+
<meta http-equiv="Cache" content="no-cache">
|
13
|
+
<!-- 禁止浏览器缓存index.html end -->
|
14
|
+
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
|
15
|
+
<title><%= htmlWebpackPlugin.options.title %></title>
|
16
|
+
<link rel="stylesheet" href="https://cdn.staticfile.org/element-ui/2.15.7/theme-chalk/index.min.css">
|
17
|
+
</head>
|
18
|
+
<body>
|
19
|
+
<noscript>
|
20
|
+
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
|
21
|
+
</noscript>
|
22
|
+
<div id="app"></div>
|
23
|
+
<!-- built files will be auto injected -->
|
24
|
+
|
25
|
+
<script src="https://lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/vue/2.6.14/vue.min.js"></script>
|
26
|
+
<script src="https://cdn.staticfile.org/element-ui/2.15.7/index.min.js"></script>
|
27
|
+
</body>
|
28
|
+
</html>
|
Binary file
|
@@ -0,0 +1,29 @@
|
|
1
|
+
import VFormRender from '@/components/form-render/index.vue'
|
2
|
+
import {loadExtension} from "@/extension/extension-loader"
|
3
|
+
import axios from "axios"
|
4
|
+
|
5
|
+
loadExtension()
|
6
|
+
|
7
|
+
VFormRender.install = function (Vue) {
|
8
|
+
Vue.component(VFormRender.name, VFormRender)
|
9
|
+
}
|
10
|
+
|
11
|
+
const components = [
|
12
|
+
VFormRender
|
13
|
+
]
|
14
|
+
|
15
|
+
const install = (Vue) => {
|
16
|
+
components.forEach(component => {
|
17
|
+
Vue.component(component.name, component)
|
18
|
+
})
|
19
|
+
}
|
20
|
+
|
21
|
+
if (typeof window !== 'undefined' && window.Vue) { /* script方式引入时主动调用install方法!! */
|
22
|
+
window.axios = axios
|
23
|
+
install(window.Vue);
|
24
|
+
}
|
25
|
+
|
26
|
+
export default {
|
27
|
+
install,
|
28
|
+
VFormRender
|
29
|
+
}
|
package/install.js
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
import axios from 'axios'
|
2
|
+
|
3
|
+
import VFormDesigner from '@/components/form-designer/index.vue'
|
4
|
+
import VFormRender from '@/components/form-render/index.vue'
|
5
|
+
import {loadExtension} from "@/extension/extension-loader"
|
6
|
+
|
7
|
+
import '@/utils/directive'
|
8
|
+
import '@/icons'
|
9
|
+
import '@/iconfont/iconfont.css'
|
10
|
+
|
11
|
+
loadExtension()
|
12
|
+
|
13
|
+
VFormDesigner.install = function (Vue) {
|
14
|
+
Vue.component(VFormDesigner.name, VFormDesigner)
|
15
|
+
}
|
16
|
+
|
17
|
+
VFormRender.install = function (Vue) {
|
18
|
+
Vue.component(VFormRender.name, VFormRender)
|
19
|
+
}
|
20
|
+
|
21
|
+
const components = [
|
22
|
+
VFormDesigner,
|
23
|
+
VFormRender
|
24
|
+
]
|
25
|
+
|
26
|
+
const install = (Vue) => {
|
27
|
+
components.forEach(component => {
|
28
|
+
Vue.component(component.name, component)
|
29
|
+
})
|
30
|
+
}
|
31
|
+
|
32
|
+
if (typeof window !== 'undefined' && window.Vue) { /* script方式引入时主动调用install方法!! */
|
33
|
+
window.axios = axios
|
34
|
+
install(window.Vue);
|
35
|
+
}
|
36
|
+
|
37
|
+
export default {
|
38
|
+
install,
|
39
|
+
VFormDesigner,
|
40
|
+
VFormRender
|
41
|
+
}
|
package/jsconfig.json
ADDED
package/license.txt
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
# Variant Form 许可条款 1.0
|
2
|
+
|
3
|
+
1. 免责声明:任何情况下根据任何法律,本作者不对用户因使用VariantForm产生的侵权、数据损坏丢失、软硬件故障和违法犯罪等问题承担任何责任;
|
4
|
+
2. 禁止任何用户对VariantForm进行简单包装后,即声称为自己的产品、销售源码获利;
|
5
|
+
3. VariantForm为开源项目,获取到源代码的用户可自由修改源码供自身开发使用,可分发build构建后的库代码,也可分发VariantForm源代码(需保留文件头部的作者声明),本作者保留VariantForm的原始著作权;
|
6
|
+
4. 个人或公司用户均可将VariantForm项目应用于商业项目开发,为支持本项目持续开发,请尽量购买VariantForm Pro版源码订阅更新服务;
|
7
|
+
5. 如果你不同意本许可条款,请勿使用VariantForm;任何情况下,一旦实际使用VariantForm,则代表你已确定完全同意本许可条款;
|
8
|
+
6. 条款内容结束。
|
package/package.json
ADDED
@@ -0,0 +1,58 @@
|
|
1
|
+
{
|
2
|
+
"name": "skhj-variant",
|
3
|
+
"version": "2.1.12",
|
4
|
+
"private": false,
|
5
|
+
"main": "dist/lib/VFormDesigner.umd.min.js",
|
6
|
+
"scripts": {
|
7
|
+
"serve": "vue-cli-service serve --open src/main.js",
|
8
|
+
"build": "vue-cli-service build --report --dest dist/build",
|
9
|
+
"lib": "vue-cli-service build --report --target lib --dest dist/lib --name VFormDesigner install.js",
|
10
|
+
"lib-render": "vue-cli-service build --report --target lib --dest dist/lib-render --name VFormRender install-render.js",
|
11
|
+
"lint": "vue-cli-service lint"
|
12
|
+
},
|
13
|
+
"dependencies": {
|
14
|
+
"axios": "^0.21.1",
|
15
|
+
"clipboard": "^2.0.8",
|
16
|
+
"core-js": "^3.6.5",
|
17
|
+
"element-ui": "^2.15.1",
|
18
|
+
"file-saver": "^2.0.5",
|
19
|
+
"vue": "^2.6.11",
|
20
|
+
"vue-i18n": "^8.24.5",
|
21
|
+
"vue2-editor": "^2.10.2",
|
22
|
+
"vuedraggable": "^2.24.3"
|
23
|
+
},
|
24
|
+
"devDependencies": {
|
25
|
+
"@vue/cli-plugin-babel": "~4.5.0",
|
26
|
+
"@vue/cli-plugin-eslint": "~4.5.0",
|
27
|
+
"@vue/cli-service": "~4.5.0",
|
28
|
+
"ace-builds": "^1.4.12",
|
29
|
+
"babel-eslint": "^10.1.0",
|
30
|
+
"babel-polyfill": "^6.26.0",
|
31
|
+
"eslint": "^6.7.2",
|
32
|
+
"eslint-plugin-vue": "^6.2.2",
|
33
|
+
"mvdir": "^1.0.21",
|
34
|
+
"node-sass": "^4.12.0",
|
35
|
+
"sass-loader": "^8.0.2",
|
36
|
+
"svg-sprite-loader": "^5.2.1",
|
37
|
+
"vue-template-compiler": "^2.6.11"
|
38
|
+
},
|
39
|
+
"eslintConfig": {
|
40
|
+
"root": true,
|
41
|
+
"env": {
|
42
|
+
"node": true
|
43
|
+
},
|
44
|
+
"extends": [
|
45
|
+
"plugin:vue/essential",
|
46
|
+
"eslint:recommended"
|
47
|
+
],
|
48
|
+
"parserOptions": {
|
49
|
+
"parser": "babel-eslint"
|
50
|
+
},
|
51
|
+
"rules": {}
|
52
|
+
},
|
53
|
+
"browserslist": [
|
54
|
+
"> 1%",
|
55
|
+
"last 2 versions",
|
56
|
+
"not dead"
|
57
|
+
]
|
58
|
+
}
|
Binary file
|
@@ -0,0 +1,28 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="">
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
6
|
+
<meta name="renderer" content="webkit">
|
7
|
+
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
8
|
+
<!-- 禁止浏览器缓存index.html begin -->
|
9
|
+
<meta http-equiv="Expires" content="0">
|
10
|
+
<meta http-equiv="Pragma" content="no-cache">
|
11
|
+
<meta http-equiv="Cache-control" content="no-cache">
|
12
|
+
<meta http-equiv="Cache" content="no-cache">
|
13
|
+
<!-- 禁止浏览器缓存index.html end -->
|
14
|
+
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
|
15
|
+
<title><%= htmlWebpackPlugin.options.title %></title>
|
16
|
+
<link rel="stylesheet" href="https://cdn.staticfile.org/element-ui/2.15.7/theme-chalk/index.min.css">
|
17
|
+
</head>
|
18
|
+
<body>
|
19
|
+
<noscript>
|
20
|
+
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
|
21
|
+
</noscript>
|
22
|
+
<div id="app"></div>
|
23
|
+
<!-- built files will be auto injected -->
|
24
|
+
|
25
|
+
<script src="https://lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/vue/2.6.14/vue.min.js"></script>
|
26
|
+
<script src="https://cdn.staticfile.org/element-ui/2.15.7/index.min.js"></script>
|
27
|
+
</body>
|
28
|
+
</html>
|
package/src/App.vue
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
<template>
|
2
|
+
<div id="app">
|
3
|
+
<VFormDesigner />
|
4
|
+
</div>
|
5
|
+
</template>
|
6
|
+
|
7
|
+
<script>
|
8
|
+
import VFormDesigner from "./components/form-designer/index.vue";
|
9
|
+
|
10
|
+
export default {
|
11
|
+
name: "App",
|
12
|
+
components: {
|
13
|
+
VFormDesigner,
|
14
|
+
},
|
15
|
+
};
|
16
|
+
</script>
|
17
|
+
|
18
|
+
<style lang="scss">
|
19
|
+
#app {
|
20
|
+
height: 100%;
|
21
|
+
}
|
22
|
+
</style>
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,92 @@
|
|
1
|
+
.widgetEvent {
|
2
|
+
width: 333px;
|
3
|
+
margin: 0 auto;
|
4
|
+
background: rgba(255, 255, 255, 0.86);
|
5
|
+
border: 1px solid #979797;
|
6
|
+
|
7
|
+
.el-form-item__label {
|
8
|
+
color: #006D42;
|
9
|
+
font-weight: 600;
|
10
|
+
font-size: 12px;
|
11
|
+
height: 29px;
|
12
|
+
line-height: 29px;
|
13
|
+
padding: 0;
|
14
|
+
position: relative;
|
15
|
+
|
16
|
+
&::after {
|
17
|
+
content: "";
|
18
|
+
position: absolute;
|
19
|
+
top: 5%;
|
20
|
+
left: 1%;
|
21
|
+
width: 1px;
|
22
|
+
height: 90%;
|
23
|
+
background: #D8D8D8;
|
24
|
+
}
|
25
|
+
}
|
26
|
+
|
27
|
+
.el-input--medium {
|
28
|
+
font-size: 12px;
|
29
|
+
height: 29px;
|
30
|
+
line-height: 29px;
|
31
|
+
}
|
32
|
+
|
33
|
+
.el-input--medium .el-input__inner {
|
34
|
+
border: none;
|
35
|
+
color: #8E9292;
|
36
|
+
font-weight: 600;
|
37
|
+
font-size: 12px;
|
38
|
+
height: 29px;
|
39
|
+
line-height: 29px !important;
|
40
|
+
}
|
41
|
+
|
42
|
+
.el-form-item {
|
43
|
+
margin-bottom: 3px;
|
44
|
+
|
45
|
+
}
|
46
|
+
|
47
|
+
.grid-container.el-row {
|
48
|
+
margin-left: 0 !important;
|
49
|
+
margin-right: 0 !important;
|
50
|
+
padding: 0;
|
51
|
+
}
|
52
|
+
|
53
|
+
.el-row {
|
54
|
+
border-bottom: 1px solid #D8D8D8;
|
55
|
+
}
|
56
|
+
|
57
|
+
.el-input--medium .el-input__icon {
|
58
|
+
line-height: 29px;
|
59
|
+
}
|
60
|
+
|
61
|
+
.el-form-item__content {
|
62
|
+
line-height: 29px !important;
|
63
|
+
}
|
64
|
+
|
65
|
+
.el-form-item--medium .el-form-item__content,
|
66
|
+
.el-form-item--medium .el-form-item__label {
|
67
|
+
line-height: 30px;
|
68
|
+
}
|
69
|
+
|
70
|
+
.el-range-editor--medium.el-input__inner {
|
71
|
+
height: 29px;
|
72
|
+
line-height: 29px;
|
73
|
+
}
|
74
|
+
|
75
|
+
.el-range-editor--medium .el-range__close-icon,
|
76
|
+
.el-range-editor--medium .el-range__icon {
|
77
|
+
line-height: 26px;
|
78
|
+
}
|
79
|
+
|
80
|
+
.el-input__inner {
|
81
|
+
border: none;
|
82
|
+
color: #8E9292;
|
83
|
+
font-weight: 600;
|
84
|
+
font-size: 12px;
|
85
|
+
height: 29px;
|
86
|
+
line-height: 29px !important;
|
87
|
+
background: none;
|
88
|
+
}
|
89
|
+
.el-range-input{
|
90
|
+
background: none;
|
91
|
+
}
|
92
|
+
}
|
Binary file
|
@@ -0,0 +1,130 @@
|
|
1
|
+
<template>
|
2
|
+
<div class="ace-container">
|
3
|
+
<!-- 官方文档中使用id,这里禁止使用,在后期打包后容易出现问题,使用 ref 或者 DOM 就行 -->
|
4
|
+
<div class="ace-editor" ref="ace"></div>
|
5
|
+
</div>
|
6
|
+
</template>
|
7
|
+
|
8
|
+
<script>
|
9
|
+
import ace from 'ace-builds'
|
10
|
+
/* 启用此行后webpack打包回生成很多动态加载的js文件,不便于部署,故禁用!!
|
11
|
+
特别提示:禁用此行后,需要调用ace.config.set('basePath', 'path...')指定动态js加载URL!!
|
12
|
+
*/
|
13
|
+
//import 'ace-builds/webpack-resolver'
|
14
|
+
|
15
|
+
//import 'ace-builds/src-min-noconflict/theme-monokai' // 默认设置的主题
|
16
|
+
import 'ace-builds/src-min-noconflict/theme-sqlserver' // 新设主题
|
17
|
+
import 'ace-builds/src-min-noconflict/mode-javascript' // 默认设置的语言模式
|
18
|
+
import 'ace-builds/src-min-noconflict/mode-json' //
|
19
|
+
import 'ace-builds/src-min-noconflict/mode-css' //
|
20
|
+
import 'ace-builds/src-min-noconflict/ext-language_tools'
|
21
|
+
import {ACE_BASE_PATH} from "@/utils/config";
|
22
|
+
|
23
|
+
export default {
|
24
|
+
name: 'CodeEditor',
|
25
|
+
props: {
|
26
|
+
value: {
|
27
|
+
type: String,
|
28
|
+
required: true
|
29
|
+
},
|
30
|
+
readonly: {
|
31
|
+
type: Boolean,
|
32
|
+
default: false
|
33
|
+
},
|
34
|
+
mode: {
|
35
|
+
type: String,
|
36
|
+
default: 'javascript'
|
37
|
+
},
|
38
|
+
userWorker: { //是否开启语法检查,默认开启
|
39
|
+
type: Boolean,
|
40
|
+
default: true
|
41
|
+
},
|
42
|
+
|
43
|
+
},
|
44
|
+
mounted() {
|
45
|
+
//ace.config.set('basePath', 'https://ks3-cn-beijing.ksyun.com/vform2021/ace')
|
46
|
+
ace.config.set('basePath', ACE_BASE_PATH)
|
47
|
+
|
48
|
+
this.addAutoCompletion(ace) //添加自定义代码提示!!
|
49
|
+
|
50
|
+
this.aceEditor = ace.edit(this.$refs.ace, {
|
51
|
+
maxLines: 20, // 最大行数,超过会自动出现滚动条
|
52
|
+
minLines: 5, // 最小行数,还未到最大行数时,编辑器会自动伸缩大小
|
53
|
+
fontSize: 12, // 编辑器内字体大小
|
54
|
+
theme: this.themePath, // 默认设置的主题
|
55
|
+
mode: this.modePath, // 默认设置的语言模式
|
56
|
+
tabSize: 2, // 制表符设置为2个空格大小
|
57
|
+
readOnly: this.readonly,
|
58
|
+
highlightActiveLine: true,
|
59
|
+
value: this.codeValue
|
60
|
+
})
|
61
|
+
|
62
|
+
this.aceEditor.setOptions({
|
63
|
+
enableBasicAutocompletion: true,
|
64
|
+
enableSnippets: true, // 设置代码片段提示
|
65
|
+
enableLiveAutocompletion: true, // 设置自动提示
|
66
|
+
})
|
67
|
+
|
68
|
+
if (this.mode === 'json') {
|
69
|
+
this.setJsonMode()
|
70
|
+
} else if (this.mode === 'css') {
|
71
|
+
this.setCssMode()
|
72
|
+
}
|
73
|
+
|
74
|
+
if (!this.userWorker) {
|
75
|
+
this.aceEditor.getSession().setUseWorker(false)
|
76
|
+
}
|
77
|
+
|
78
|
+
//编辑时同步数据
|
79
|
+
this.aceEditor.getSession().on('change',(ev)=>{
|
80
|
+
//this.$emit('update:value', this.aceEditor.getValue()) // 触发更新事件, 实现.sync双向绑定!!
|
81
|
+
this.$emit('input', this.aceEditor.getValue())
|
82
|
+
})
|
83
|
+
},
|
84
|
+
data() {
|
85
|
+
return {
|
86
|
+
aceEditor: null,
|
87
|
+
themePath: 'ace/theme/sqlserver', // 不导入 webpack-resolver,该模块路径会报错
|
88
|
+
modePath: 'ace/mode/javascript', // 同上
|
89
|
+
codeValue: this.value
|
90
|
+
}
|
91
|
+
},
|
92
|
+
watch: {
|
93
|
+
//
|
94
|
+
},
|
95
|
+
methods: {
|
96
|
+
addAutoCompletion(ace) {
|
97
|
+
let acData = [
|
98
|
+
{meta: 'VForm API', caption: 'getWidgetRef', value: 'getWidgetRef()', score: 1},
|
99
|
+
{meta: 'VForm API', caption: 'getFormRef', value: 'getFormRef()', score: 1},
|
100
|
+
//TODO: 待补充!!
|
101
|
+
]
|
102
|
+
let langTools = ace.require('ace/ext/language_tools')
|
103
|
+
langTools.addCompleter({
|
104
|
+
getCompletions: function(editor, session, pos, prefix, callback) {
|
105
|
+
if (prefix.length === 0) {
|
106
|
+
return callback(null, []);
|
107
|
+
}else {
|
108
|
+
return callback(null, acData);
|
109
|
+
}
|
110
|
+
}
|
111
|
+
})
|
112
|
+
},
|
113
|
+
|
114
|
+
setJsonMode() {
|
115
|
+
this.aceEditor.getSession().setMode('ace/mode/json')
|
116
|
+
},
|
117
|
+
|
118
|
+
setCssMode() {
|
119
|
+
this.aceEditor.getSession().setMode('ace/mode/css')
|
120
|
+
},
|
121
|
+
|
122
|
+
}
|
123
|
+
}
|
124
|
+
</script>
|
125
|
+
|
126
|
+
<style lang="scss" scoped>
|
127
|
+
.ace-editor {
|
128
|
+
min-height: 300px;
|
129
|
+
}
|
130
|
+
</style>
|