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,23 @@
|
|
1
|
+
<template>
|
2
|
+
<el-form-item :label="i18nt('designer.setting.withCredentials')">
|
3
|
+
<el-checkbox v-model="optionModel.withCredentials"></el-checkbox>
|
4
|
+
</el-form-item>
|
5
|
+
</template>
|
6
|
+
|
7
|
+
<script>
|
8
|
+
import i18n from "@/utils/i18n"
|
9
|
+
|
10
|
+
export default {
|
11
|
+
name: "withCredentials-editor",
|
12
|
+
mixins: [i18n],
|
13
|
+
props: {
|
14
|
+
designer: Object,
|
15
|
+
selectedWidget: Object,
|
16
|
+
optionModel: Object,
|
17
|
+
},
|
18
|
+
}
|
19
|
+
</script>
|
20
|
+
|
21
|
+
<style scoped>
|
22
|
+
|
23
|
+
</style>
|
@@ -0,0 +1,173 @@
|
|
1
|
+
import {translate} from "@/utils/i18n"
|
2
|
+
import emitter from 'element-ui/lib/mixins/emitter'
|
3
|
+
|
4
|
+
export const createInputTextEditor = function (propName, propLabelKey) {
|
5
|
+
return {
|
6
|
+
props: {
|
7
|
+
optionModel: Object,
|
8
|
+
},
|
9
|
+
render(h) {
|
10
|
+
return (
|
11
|
+
<el-form-item label={translate(propLabelKey)}>
|
12
|
+
<el-input type="text" v-model={this.optionModel[propName]} />
|
13
|
+
</el-form-item>
|
14
|
+
)
|
15
|
+
}
|
16
|
+
}
|
17
|
+
}
|
18
|
+
|
19
|
+
export const createInputNumberEditor = function (propName, propLabelKey) {
|
20
|
+
return {
|
21
|
+
props: {
|
22
|
+
optionModel: Object,
|
23
|
+
},
|
24
|
+
methods: {
|
25
|
+
updateValue(newValue) {
|
26
|
+
if ((newValue === undefined) || (newValue === null) || isNaN(newValue)) {
|
27
|
+
this.optionModel[propName] = null
|
28
|
+
} else {
|
29
|
+
this.optionModel[propName] = Number(newValue)
|
30
|
+
}
|
31
|
+
},
|
32
|
+
},
|
33
|
+
render(h) {
|
34
|
+
return (
|
35
|
+
<el-form-item label={translate(propLabelKey)}>
|
36
|
+
<el-input-number type="text" v-model={this.optionModel[propName]}
|
37
|
+
onChange={this.updateValue} style="width: 100%" />
|
38
|
+
</el-form-item>
|
39
|
+
)
|
40
|
+
}
|
41
|
+
}
|
42
|
+
}
|
43
|
+
|
44
|
+
export const createBooleanEditor = function (propName, propLabelKey) {
|
45
|
+
return {
|
46
|
+
props: {
|
47
|
+
optionModel: Object,
|
48
|
+
},
|
49
|
+
render(h) {
|
50
|
+
return (
|
51
|
+
<el-form-item label={translate(propLabelKey)}>
|
52
|
+
<el-checkbox v-model={this.optionModel[propName]} />
|
53
|
+
</el-form-item>
|
54
|
+
)
|
55
|
+
}
|
56
|
+
}
|
57
|
+
}
|
58
|
+
|
59
|
+
export const createCheckboxGroupEditor = function (propName, propLabelKey, configs) {
|
60
|
+
return {
|
61
|
+
props: {
|
62
|
+
optionModel: Object,
|
63
|
+
},
|
64
|
+
render(h) {
|
65
|
+
return (
|
66
|
+
<el-form-item label={translate(propLabelKey)}>
|
67
|
+
<el-checkbox-group v-model={this.optionModel[propName]}>
|
68
|
+
{
|
69
|
+
configs.optionItems.map(item => {
|
70
|
+
return <el-checkbox label={item.value}>{item.label}</el-checkbox>
|
71
|
+
})
|
72
|
+
}
|
73
|
+
</el-checkbox-group>
|
74
|
+
</el-form-item>
|
75
|
+
)
|
76
|
+
}
|
77
|
+
}
|
78
|
+
}
|
79
|
+
|
80
|
+
|
81
|
+
export const createRadioGroupEditor = function (propName, propLabelKey, configs) {
|
82
|
+
return {
|
83
|
+
props: {
|
84
|
+
optionModel: Object,
|
85
|
+
},
|
86
|
+
render(h) {
|
87
|
+
return (
|
88
|
+
<el-form-item label={translate(propLabelKey)}>
|
89
|
+
<el-radio-group v-model={this.optionModel[propName]}>
|
90
|
+
{
|
91
|
+
configs.optionItems.map(item => {
|
92
|
+
return <el-radio label={item.value}>{item.label}</el-radio>
|
93
|
+
})
|
94
|
+
}
|
95
|
+
</el-radio-group>
|
96
|
+
</el-form-item>
|
97
|
+
)
|
98
|
+
}
|
99
|
+
}
|
100
|
+
}
|
101
|
+
|
102
|
+
export const createRadioButtonGroupEditor = function (propName, propLabelKey, configs) {
|
103
|
+
return {
|
104
|
+
props: {
|
105
|
+
optionModel: Object,
|
106
|
+
},
|
107
|
+
render(h) {
|
108
|
+
return (
|
109
|
+
<el-form-item label={translate(propLabelKey)}>
|
110
|
+
<el-radio-group v-model={this.optionModel[propName]}>
|
111
|
+
{
|
112
|
+
configs.optionItems.map(item => {
|
113
|
+
return <el-radio-button label={item.value}>{item.label}</el-radio-button>
|
114
|
+
})
|
115
|
+
}
|
116
|
+
</el-radio-group>
|
117
|
+
</el-form-item>
|
118
|
+
)
|
119
|
+
}
|
120
|
+
}
|
121
|
+
}
|
122
|
+
|
123
|
+
export const createSelectEditor = function (propName, propLabelKey, configs) {
|
124
|
+
return {
|
125
|
+
props: {
|
126
|
+
optionModel: Object,
|
127
|
+
},
|
128
|
+
render(h) {
|
129
|
+
return (
|
130
|
+
<el-form-item label={translate(propLabelKey)}>
|
131
|
+
<el-select v-model={this.optionModel[propName]}>
|
132
|
+
{
|
133
|
+
configs.optionItems.map(item => {
|
134
|
+
return <el-option label={item.label} value={item.value} />
|
135
|
+
})
|
136
|
+
}
|
137
|
+
</el-select>
|
138
|
+
</el-form-item>
|
139
|
+
)
|
140
|
+
}
|
141
|
+
}
|
142
|
+
}
|
143
|
+
|
144
|
+
export const createEventHandlerEditor = function (eventPropName, eventParams) {
|
145
|
+
return {
|
146
|
+
props: {
|
147
|
+
optionModel: Object,
|
148
|
+
},
|
149
|
+
mixins: [emitter],
|
150
|
+
methods: {
|
151
|
+
editEventHandler() {
|
152
|
+
this.dispatch('SettingPanel', 'editEventHandler', [eventPropName, [...eventParams]])
|
153
|
+
},
|
154
|
+
},
|
155
|
+
render(h) {
|
156
|
+
return (
|
157
|
+
<el-form-item label={eventPropName} label-width="150px">
|
158
|
+
<el-button type="info" icon="el-icon-edit" plain round onClick={this.editEventHandler}>
|
159
|
+
{translate('designer.setting.addEventHandler')}</el-button>
|
160
|
+
</el-form-item>
|
161
|
+
)
|
162
|
+
}
|
163
|
+
}
|
164
|
+
}
|
165
|
+
|
166
|
+
export const createEmptyEditor = function () {
|
167
|
+
return {
|
168
|
+
render() {
|
169
|
+
return <div style="display: none" />
|
170
|
+
}
|
171
|
+
}
|
172
|
+
}
|
173
|
+
|
@@ -0,0 +1,198 @@
|
|
1
|
+
import Vue from 'vue'
|
2
|
+
|
3
|
+
/**
|
4
|
+
* 格式说明:属性名称==对应属性编辑器的组件名称
|
5
|
+
*/
|
6
|
+
const COMMON_PROPERTIES = {
|
7
|
+
//字段
|
8
|
+
'name' : 'name-editor',
|
9
|
+
'label' : 'label-editor',
|
10
|
+
'labelAlign' : 'labelAlign-editor',
|
11
|
+
'type' : 'type-editor',
|
12
|
+
'defaultValue' : 'defaultValue-editor',
|
13
|
+
'placeholder' : 'placeholder-editor',
|
14
|
+
'startPlaceholder' : 'startPlaceholder-editor',
|
15
|
+
'endPlaceholder' : 'endPlaceholder-editor',
|
16
|
+
'columnWidth' : 'columnWidth-editor',
|
17
|
+
'size' : 'size-editor',
|
18
|
+
'showStops' : 'showStops-editor',
|
19
|
+
'displayStyle' : 'displayStyle-editor',
|
20
|
+
'buttonStyle' : 'buttonStyle-editor',
|
21
|
+
'border' : 'border-editor',
|
22
|
+
'labelWidth' : 'labelWidth-editor',
|
23
|
+
'labelHidden' : 'labelHidden-editor',
|
24
|
+
'rows' : 'rows-editor',
|
25
|
+
'required' : 'required-editor',
|
26
|
+
'validation' : 'validation-editor',
|
27
|
+
'validationHint' : 'validationHint-editor',
|
28
|
+
'readonly' : 'readonly-editor',
|
29
|
+
'disabled' : 'disabled-editor',
|
30
|
+
'hidden' : 'hidden-editor',
|
31
|
+
'clearable' : 'clearable-editor',
|
32
|
+
'editable' : 'editable-editor',
|
33
|
+
'showPassword' : 'showPassword-editor',
|
34
|
+
'textContent' : 'textContent-editor',
|
35
|
+
'htmlContent' : 'htmlContent-editor',
|
36
|
+
'format' : 'format-editor',
|
37
|
+
'valueFormat' : 'valueFormat-editor',
|
38
|
+
'filterable' : 'filterable-editor',
|
39
|
+
'allowCreate' : 'allowCreate-editor',
|
40
|
+
'remote' : 'remote-editor',
|
41
|
+
'automaticDropdown' : 'automaticDropdown-editor',
|
42
|
+
'multiple' : 'multiple-editor',
|
43
|
+
'multipleLimit' : 'multipleLimit-editor',
|
44
|
+
'contentPosition' : 'contentPosition-editor',
|
45
|
+
'optionItems' : 'optionItems-editor',
|
46
|
+
'uploadURL' : 'uploadURL-editor',
|
47
|
+
'uploadTip' : 'uploadTip-editor',
|
48
|
+
'withCredentials' : 'withCredentials-editor',
|
49
|
+
'multipleSelect' : 'multipleSelect-editor',
|
50
|
+
'limit' : 'limit-editor',
|
51
|
+
'fileMaxSize' : 'fileMaxSize-editor',
|
52
|
+
'fileTypes' : 'fileTypes-editor',
|
53
|
+
'customClass' : 'customClass-editor',
|
54
|
+
|
55
|
+
//容器
|
56
|
+
'showBlankRow' : 'showBlankRow-editor',
|
57
|
+
'showRowNumber' : 'showRowNumber-editor',
|
58
|
+
'cellWidth' : 'cellWidth-editor',
|
59
|
+
'cellHeight' : 'cellHeight-editor',
|
60
|
+
'colHeight' : 'colHeight-editor',
|
61
|
+
'gutter' : 'gutter-editor',
|
62
|
+
'responsive' : 'responsive-editor',
|
63
|
+
'span' : 'span-editor',
|
64
|
+
'offset' : 'offset-editor',
|
65
|
+
'push' : 'push-editor',
|
66
|
+
'pull' : 'pull-editor',
|
67
|
+
|
68
|
+
}
|
69
|
+
|
70
|
+
const ADVANCED_PROPERTIES = {
|
71
|
+
'min' : 'min-editor',
|
72
|
+
'max' : 'max-editor',
|
73
|
+
'precision' : 'precision-editor',
|
74
|
+
'step' : 'step-editor',
|
75
|
+
'controlsPosition' : 'controlsPosition-editor',
|
76
|
+
'minLength' : 'minLength-editor',
|
77
|
+
'maxLength' : 'maxLength-editor',
|
78
|
+
'showWordLimit' : 'showWordLimit-editor',
|
79
|
+
'prefixIcon' : 'prefixIcon-editor',
|
80
|
+
'suffixIcon' : 'suffixIcon-editor',
|
81
|
+
'switchWidth' : 'switchWidth-editor',
|
82
|
+
'activeText' : 'activeText-editor',
|
83
|
+
'inactiveText' : 'inactiveText-editor',
|
84
|
+
'activeColor' : 'activeColor-editor',
|
85
|
+
'inactiveColor' : 'inactiveColor-editor',
|
86
|
+
'lowThreshold' : 'lowThreshold-editor',
|
87
|
+
'highThreshold' : 'highThreshold-editor',
|
88
|
+
'allowHalf' : 'allowHalf-editor',
|
89
|
+
'showText' : 'showText-editor',
|
90
|
+
'showScore' : 'showScore-editor',
|
91
|
+
'range' : 'range-editor',
|
92
|
+
'vertical' : 'vertical-editor',
|
93
|
+
'plain' : 'plain-editor',
|
94
|
+
'round' : 'round-editor',
|
95
|
+
'circle' : 'circle-editor',
|
96
|
+
'icon' : 'icon-editor',
|
97
|
+
'labelIconClass' : 'labelIconClass-editor',
|
98
|
+
'labelIconPosition' : 'labelIconPosition-editor',
|
99
|
+
'labelTooltip' : 'labelTooltip-editor',
|
100
|
+
'appendButton' : 'appendButton-editor',
|
101
|
+
'appendButtonDisabled': 'appendButtonDisabled-editor',
|
102
|
+
'buttonIcon' : 'buttonIcon-editor',
|
103
|
+
|
104
|
+
}
|
105
|
+
|
106
|
+
const EVENT_PROPERTIES = {
|
107
|
+
//字段
|
108
|
+
'onCreated' : 'onCreated-editor',
|
109
|
+
'onMounted' : 'onMounted-editor',
|
110
|
+
'onClick' : 'onClick-editor',
|
111
|
+
'onInput' : 'onInput-editor',
|
112
|
+
'onChange' : 'onChange-editor',
|
113
|
+
'onFocus' : 'onFocus-editor',
|
114
|
+
'onBlur' : 'onBlur-editor',
|
115
|
+
'onRemoteQuery' : 'onRemoteQuery-editor',
|
116
|
+
'onBeforeUpload' : 'onBeforeUpload-editor',
|
117
|
+
'onUploadSuccess' : 'onUploadSuccess-editor',
|
118
|
+
'onUploadError' : 'onUploadError-editor',
|
119
|
+
'onValidate' : 'onValidate-editor',
|
120
|
+
|
121
|
+
//容器
|
122
|
+
'onSubFormRowAdd' : 'onSubFormRowAdd-editor',
|
123
|
+
'onSubFormRowInsert': 'onSubFormRowInsert-editor',
|
124
|
+
'onSubFormRowDelete': 'onSubFormRowDelete-editor',
|
125
|
+
'onSubFormRowChange': 'onSubFormRowChange-editor',
|
126
|
+
|
127
|
+
}
|
128
|
+
|
129
|
+
/**
|
130
|
+
* 注册组件常见属性
|
131
|
+
* 如属性编辑器的组件名称propEditorName设置为null,则不显示该属性编辑器!!
|
132
|
+
* @param uniquePropName 属性名称(保证名称唯一,不跟其他组件属性冲突)
|
133
|
+
* @param propEditorName 对应属性编辑器的组件名称
|
134
|
+
*/
|
135
|
+
export function registerCommonProperty(uniquePropName, propEditorName) {
|
136
|
+
COMMON_PROPERTIES[uniquePropName] = propEditorName
|
137
|
+
}
|
138
|
+
|
139
|
+
/**
|
140
|
+
* 注册组件高级属性
|
141
|
+
* 如属性编辑器的组件名称propEditorName设置为null,则不显示该属性编辑器!!
|
142
|
+
* @param uniquePropName 属性名称(保证名称唯一,不跟其他组件属性冲突)
|
143
|
+
* @param propEditorName 对应属性编辑器的组件名称
|
144
|
+
*/
|
145
|
+
export function registerAdvancedProperty(uniquePropName, propEditorName) {
|
146
|
+
ADVANCED_PROPERTIES[uniquePropName] = propEditorName
|
147
|
+
}
|
148
|
+
|
149
|
+
/**
|
150
|
+
* 注册组件事件属性
|
151
|
+
* 如属性编辑器的组件名称propEditorName设置为null,则不显示该属性编辑器!!
|
152
|
+
* @param uniquePropName 属性名称(保证名称唯一,不跟其他组件属性冲突)
|
153
|
+
* @param propEditorName 对应属性编辑器的组件名称
|
154
|
+
*/
|
155
|
+
export function registerEventProperty(uniquePropName, propEditorName) {
|
156
|
+
EVENT_PROPERTIES[uniquePropName] = propEditorName
|
157
|
+
}
|
158
|
+
|
159
|
+
/**
|
160
|
+
* 注册常见属性对应的属性编辑器
|
161
|
+
* @param uniquePropName
|
162
|
+
* @param propEditorName
|
163
|
+
* @param editorComponent
|
164
|
+
*/
|
165
|
+
export function registerCPEditor(uniquePropName, propEditorName, editorComponent) {
|
166
|
+
Vue.component(propEditorName, editorComponent)
|
167
|
+
registerCommonProperty(uniquePropName, propEditorName)
|
168
|
+
}
|
169
|
+
|
170
|
+
/**
|
171
|
+
* 注册高级属性对应的属性编辑器
|
172
|
+
* @param uniquePropName
|
173
|
+
* @param propEditorName
|
174
|
+
* @param editorComponent
|
175
|
+
*/
|
176
|
+
export function registerAPEditor(uniquePropName, propEditorName, editorComponent) {
|
177
|
+
Vue.component(propEditorName, editorComponent)
|
178
|
+
registerAdvancedProperty(uniquePropName, propEditorName)
|
179
|
+
}
|
180
|
+
|
181
|
+
/**
|
182
|
+
* 注册事件属性对应的属性编辑器
|
183
|
+
* @param uniquePropName
|
184
|
+
* @param propEditorName
|
185
|
+
* @param editorComponent
|
186
|
+
*/
|
187
|
+
export function registerEPEditor(uniquePropName, propEditorName, editorComponent) {
|
188
|
+
Vue.component(propEditorName, editorComponent)
|
189
|
+
registerEventProperty(uniquePropName, propEditorName)
|
190
|
+
}
|
191
|
+
|
192
|
+
export default {
|
193
|
+
COMMON_PROPERTIES,
|
194
|
+
ADVANCED_PROPERTIES,
|
195
|
+
EVENT_PROPERTIES
|
196
|
+
}
|
197
|
+
|
198
|
+
|