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,966 @@
|
|
1
|
+
|
2
|
+
export const containers = [
|
3
|
+
{
|
4
|
+
type: 'grid',
|
5
|
+
category: 'container',
|
6
|
+
icon: 'grid',
|
7
|
+
cols: [],
|
8
|
+
options: {
|
9
|
+
name: '',
|
10
|
+
hidden: false,
|
11
|
+
gutter: 12,
|
12
|
+
colHeight: null, //栅格列统一高度属性,用于解决栅格列设置响应式布局浮动后被挂住的问题!!
|
13
|
+
customClass: '', //自定义css类名
|
14
|
+
}
|
15
|
+
},
|
16
|
+
|
17
|
+
{
|
18
|
+
type: 'table',
|
19
|
+
category: 'container',
|
20
|
+
icon: 'table',
|
21
|
+
rows: [],
|
22
|
+
options: {
|
23
|
+
name: '',
|
24
|
+
hidden: false,
|
25
|
+
customClass: '', //自定义css类名
|
26
|
+
}
|
27
|
+
},
|
28
|
+
|
29
|
+
{
|
30
|
+
type: 'tab',
|
31
|
+
category: 'container',
|
32
|
+
icon: 'tab',
|
33
|
+
displayType: 'border-card',
|
34
|
+
tabs: [],
|
35
|
+
options: {
|
36
|
+
name: '',
|
37
|
+
hidden: false,
|
38
|
+
customClass: '', //自定义css类名
|
39
|
+
}
|
40
|
+
},
|
41
|
+
|
42
|
+
/*
|
43
|
+
{
|
44
|
+
type: 'section',
|
45
|
+
category: 'container',
|
46
|
+
icon: 'section',
|
47
|
+
widgetList: [],
|
48
|
+
options: {
|
49
|
+
name: '',
|
50
|
+
hidden: false,
|
51
|
+
customClass: '', //自定义css类名
|
52
|
+
}
|
53
|
+
},
|
54
|
+
*/
|
55
|
+
|
56
|
+
{
|
57
|
+
type: 'grid-col',
|
58
|
+
category: 'container',
|
59
|
+
icon: 'grid-col',
|
60
|
+
internal: true,
|
61
|
+
widgetList: [],
|
62
|
+
options: {
|
63
|
+
name: '',
|
64
|
+
hidden: false,
|
65
|
+
span: 12,
|
66
|
+
offset: 0,
|
67
|
+
push: 0,
|
68
|
+
pull: 0,
|
69
|
+
responsive: false, //是否开启响应式布局
|
70
|
+
md: 12,
|
71
|
+
sm: 12,
|
72
|
+
xs: 12,
|
73
|
+
customClass: '', //自定义css类名
|
74
|
+
}
|
75
|
+
},
|
76
|
+
|
77
|
+
{
|
78
|
+
type: 'table-cell',
|
79
|
+
category: 'container',
|
80
|
+
icon: 'table-cell',
|
81
|
+
internal: true,
|
82
|
+
widgetList: [],
|
83
|
+
merged: false,
|
84
|
+
options: {
|
85
|
+
name: '',
|
86
|
+
cellWidth: '',
|
87
|
+
cellHeight: '',
|
88
|
+
colspan: 1,
|
89
|
+
rowspan: 1,
|
90
|
+
customClass: '', //自定义css类名
|
91
|
+
}
|
92
|
+
},
|
93
|
+
|
94
|
+
{
|
95
|
+
type: 'tab-pane',
|
96
|
+
category: 'container',
|
97
|
+
icon: 'tab-pane',
|
98
|
+
internal: true,
|
99
|
+
widgetList: [],
|
100
|
+
options: {
|
101
|
+
name: '',
|
102
|
+
label: '',
|
103
|
+
hidden: false,
|
104
|
+
active: false,
|
105
|
+
disabled: false,
|
106
|
+
customClass: '', //自定义css类名
|
107
|
+
}
|
108
|
+
},
|
109
|
+
|
110
|
+
/*
|
111
|
+
{
|
112
|
+
type: 'data-table',
|
113
|
+
category: 'container',
|
114
|
+
icon: 'data-table',
|
115
|
+
options: {
|
116
|
+
name: '',
|
117
|
+
label: '',
|
118
|
+
hidden: false,
|
119
|
+
columns: {},
|
120
|
+
checkboxColumn: {
|
121
|
+
width: 45,
|
122
|
+
},
|
123
|
+
operationColumn: {
|
124
|
+
buttons: [
|
125
|
+
{label: 'Edit', name: '', type: '', plain: false, round: true, circle: false, disabled: false, hidden: false},
|
126
|
+
{label: 'View', name: '', type: '', plain: false, round: true, circle: false, disabled: false, hidden: false},
|
127
|
+
{label: 'Delete', name: '', type: '', plain: false, round: true, circle: false, disabled: false, hidden: false},
|
128
|
+
{label: 'More...', name: '', type: '', plain: false, round: true, circle: false, disabled: false, hidden: false},
|
129
|
+
]
|
130
|
+
},
|
131
|
+
size: 'medium',
|
132
|
+
height: '100%',
|
133
|
+
maxHeight: '1200px',
|
134
|
+
stripe: false,
|
135
|
+
border: false,
|
136
|
+
fit: true,
|
137
|
+
highlightCurrentRow: false,
|
138
|
+
emptyText: 'no data',
|
139
|
+
showHeader: true,
|
140
|
+
showCheckBox: true,
|
141
|
+
showPager: false,
|
142
|
+
pagerPosition: 'center',
|
143
|
+
pagerSmall: false,
|
144
|
+
pagerBackground: false,
|
145
|
+
pagerCount: 7,
|
146
|
+
}
|
147
|
+
}
|
148
|
+
*/
|
149
|
+
|
150
|
+
]
|
151
|
+
|
152
|
+
export const basicFields = [
|
153
|
+
{
|
154
|
+
type: 'input',
|
155
|
+
icon: 'text-field',
|
156
|
+
formItemFlag: true,
|
157
|
+
options: {
|
158
|
+
name: '',
|
159
|
+
label: '',
|
160
|
+
labelAlign: '',
|
161
|
+
type: 'text',
|
162
|
+
defaultValue: '',
|
163
|
+
placeholder: '',
|
164
|
+
columnWidth: '200px',
|
165
|
+
size: '',
|
166
|
+
labelWidth: null,
|
167
|
+
labelHidden: false,
|
168
|
+
readonly: false,
|
169
|
+
disabled: false,
|
170
|
+
hidden: false,
|
171
|
+
clearable: true,
|
172
|
+
showPassword: false,
|
173
|
+
required: false,
|
174
|
+
validation: '',
|
175
|
+
validationHint: '',
|
176
|
+
//-------------------
|
177
|
+
customClass: '', //自定义css类名
|
178
|
+
labelIconClass: null,
|
179
|
+
labelIconPosition: 'rear',
|
180
|
+
labelTooltip: null,
|
181
|
+
minLength: null,
|
182
|
+
maxLength: null,
|
183
|
+
showWordLimit: false,
|
184
|
+
prefixIcon: '',
|
185
|
+
suffixIcon: '',
|
186
|
+
appendButton: false,
|
187
|
+
appendButtonDisabled: false,
|
188
|
+
buttonIcon: 'el-icon-search',
|
189
|
+
//-------------------
|
190
|
+
onCreated: '',
|
191
|
+
onMounted: '',
|
192
|
+
onInput: '',
|
193
|
+
onChange: '',
|
194
|
+
onFocus: '',
|
195
|
+
onBlur: '',
|
196
|
+
onValidate: '',
|
197
|
+
},
|
198
|
+
},
|
199
|
+
|
200
|
+
{
|
201
|
+
type: 'textarea',
|
202
|
+
icon: 'textarea-field',
|
203
|
+
formItemFlag: true,
|
204
|
+
options: {
|
205
|
+
name: '',
|
206
|
+
label: '',
|
207
|
+
labelAlign: '',
|
208
|
+
rows: 3,
|
209
|
+
defaultValue: '',
|
210
|
+
placeholder: '',
|
211
|
+
columnWidth: '200px',
|
212
|
+
size: '',
|
213
|
+
labelWidth: null,
|
214
|
+
labelHidden: false,
|
215
|
+
readonly: false,
|
216
|
+
disabled: false,
|
217
|
+
hidden: false,
|
218
|
+
required: false,
|
219
|
+
validation: '',
|
220
|
+
validationHint: '',
|
221
|
+
//-------------------
|
222
|
+
customClass: '', //自定义css类名
|
223
|
+
labelIconClass: null,
|
224
|
+
labelIconPosition: 'rear',
|
225
|
+
labelTooltip: null,
|
226
|
+
minLength: null,
|
227
|
+
maxLength: null,
|
228
|
+
showWordLimit: false,
|
229
|
+
//-------------------
|
230
|
+
onCreated: '',
|
231
|
+
onMounted: '',
|
232
|
+
onInput: '',
|
233
|
+
onChange: '',
|
234
|
+
onFocus: '',
|
235
|
+
onBlur: '',
|
236
|
+
onValidate: '',
|
237
|
+
},
|
238
|
+
},
|
239
|
+
|
240
|
+
{
|
241
|
+
type: 'number',
|
242
|
+
icon: 'number-field',
|
243
|
+
formItemFlag: true,
|
244
|
+
options: {
|
245
|
+
name: '',
|
246
|
+
label: '',
|
247
|
+
labelAlign: '',
|
248
|
+
defaultValue: 0,
|
249
|
+
placeholder: '',
|
250
|
+
columnWidth: '200px',
|
251
|
+
size: '',
|
252
|
+
labelWidth: null,
|
253
|
+
labelHidden: false,
|
254
|
+
disabled: false,
|
255
|
+
hidden: false,
|
256
|
+
required: false,
|
257
|
+
validation: '',
|
258
|
+
validationHint: '',
|
259
|
+
//-------------------
|
260
|
+
customClass: '', //自定义css类名
|
261
|
+
labelIconClass: null,
|
262
|
+
labelIconPosition: 'rear',
|
263
|
+
labelTooltip: null,
|
264
|
+
min: -100000000000,
|
265
|
+
max: 100000000000,
|
266
|
+
precision: 0,
|
267
|
+
step: 1,
|
268
|
+
controlsPosition: 'right',
|
269
|
+
//-------------------
|
270
|
+
onCreated: '',
|
271
|
+
onMounted: '',
|
272
|
+
onChange: '',
|
273
|
+
onFocus: '',
|
274
|
+
onBlur: '',
|
275
|
+
onValidate: '',
|
276
|
+
},
|
277
|
+
},
|
278
|
+
|
279
|
+
{
|
280
|
+
type: 'radio',
|
281
|
+
icon: 'radio-field',
|
282
|
+
formItemFlag: true,
|
283
|
+
options: {
|
284
|
+
name: '',
|
285
|
+
label: '',
|
286
|
+
labelAlign: '',
|
287
|
+
defaultValue: null,
|
288
|
+
columnWidth: '200px',
|
289
|
+
size: '',
|
290
|
+
displayStyle: 'inline',
|
291
|
+
buttonStyle: false,
|
292
|
+
border: false,
|
293
|
+
labelWidth: null,
|
294
|
+
labelHidden: false,
|
295
|
+
disabled: false,
|
296
|
+
hidden: false,
|
297
|
+
optionItems: [
|
298
|
+
{label: 'radio 1', value: 1},
|
299
|
+
{label: 'radio 2', value: 2},
|
300
|
+
{label: 'radio 3', value: 3},
|
301
|
+
],
|
302
|
+
required: false,
|
303
|
+
validation: '',
|
304
|
+
validationHint: '',
|
305
|
+
//-------------------
|
306
|
+
customClass: '', //自定义css类名
|
307
|
+
labelIconClass: null,
|
308
|
+
labelIconPosition: 'rear',
|
309
|
+
labelTooltip: null,
|
310
|
+
//-------------------
|
311
|
+
onCreated: '',
|
312
|
+
onMounted: '',
|
313
|
+
onChange: '',
|
314
|
+
onValidate: '',
|
315
|
+
},
|
316
|
+
},
|
317
|
+
|
318
|
+
{
|
319
|
+
type: 'checkbox',
|
320
|
+
icon: 'checkbox-field',
|
321
|
+
formItemFlag: true,
|
322
|
+
options: {
|
323
|
+
name: '',
|
324
|
+
label: '',
|
325
|
+
labelAlign: '',
|
326
|
+
defaultValue: [],
|
327
|
+
columnWidth: '200px',
|
328
|
+
size: '',
|
329
|
+
displayStyle: 'inline',
|
330
|
+
buttonStyle: false,
|
331
|
+
border: false,
|
332
|
+
labelWidth: null,
|
333
|
+
labelHidden: false,
|
334
|
+
disabled: false,
|
335
|
+
hidden: false,
|
336
|
+
optionItems: [
|
337
|
+
{label: 'check 1', value: 1},
|
338
|
+
{label: 'check 2', value: 2},
|
339
|
+
{label: 'check 3', value: 3},
|
340
|
+
],
|
341
|
+
required: false,
|
342
|
+
validation: '',
|
343
|
+
validationHint: '',
|
344
|
+
//-------------------
|
345
|
+
customClass: '', //自定义css类名
|
346
|
+
labelIconClass: null,
|
347
|
+
labelIconPosition: 'rear',
|
348
|
+
labelTooltip: null,
|
349
|
+
//-------------------
|
350
|
+
onCreated: '',
|
351
|
+
onMounted: '',
|
352
|
+
onChange: '',
|
353
|
+
onValidate: '',
|
354
|
+
},
|
355
|
+
},
|
356
|
+
|
357
|
+
{
|
358
|
+
type: 'select',
|
359
|
+
icon: 'select-field',
|
360
|
+
formItemFlag: true,
|
361
|
+
options: {
|
362
|
+
name: '',
|
363
|
+
label: '',
|
364
|
+
labelAlign: '',
|
365
|
+
defaultValue: '',
|
366
|
+
placeholder: '',
|
367
|
+
columnWidth: '200px',
|
368
|
+
size: '',
|
369
|
+
labelWidth: null,
|
370
|
+
labelHidden: false,
|
371
|
+
disabled: false,
|
372
|
+
hidden: false,
|
373
|
+
clearable: true,
|
374
|
+
filterable: false,
|
375
|
+
allowCreate: false,
|
376
|
+
remote: false,
|
377
|
+
automaticDropdown: false, //自动下拉
|
378
|
+
multiple: false,
|
379
|
+
multipleLimit: 0,
|
380
|
+
optionItems: [
|
381
|
+
{label: 'select 1', value: 1},
|
382
|
+
{label: 'select 2', value: 2},
|
383
|
+
{label: 'select 3', value: 3},
|
384
|
+
],
|
385
|
+
required: false,
|
386
|
+
validation: '',
|
387
|
+
validationHint: '',
|
388
|
+
//-------------------
|
389
|
+
customClass: '', //自定义css类名
|
390
|
+
labelIconClass: null,
|
391
|
+
labelIconPosition: 'rear',
|
392
|
+
labelTooltip: null,
|
393
|
+
//-------------------
|
394
|
+
onCreated: '',
|
395
|
+
onMounted: '',
|
396
|
+
onRemoteQuery: '',
|
397
|
+
onChange: '',
|
398
|
+
onFocus: '',
|
399
|
+
onBlur: '',
|
400
|
+
onValidate: '',
|
401
|
+
},
|
402
|
+
},
|
403
|
+
|
404
|
+
{
|
405
|
+
type: 'time',
|
406
|
+
icon: 'time-field',
|
407
|
+
formItemFlag: true,
|
408
|
+
options: {
|
409
|
+
name: '',
|
410
|
+
label: '',
|
411
|
+
labelAlign: '',
|
412
|
+
defaultValue: null,
|
413
|
+
placeholder: '',
|
414
|
+
columnWidth: '200px',
|
415
|
+
size: '',
|
416
|
+
labelWidth: null,
|
417
|
+
labelHidden: false,
|
418
|
+
readonly: false,
|
419
|
+
disabled: false,
|
420
|
+
hidden: false,
|
421
|
+
clearable: true,
|
422
|
+
editable: false,
|
423
|
+
format: 'HH:mm:ss', //时间格式
|
424
|
+
required: false,
|
425
|
+
validation: '',
|
426
|
+
validationHint: '',
|
427
|
+
//-------------------
|
428
|
+
customClass: '', //自定义css类名
|
429
|
+
labelIconClass: null,
|
430
|
+
labelIconPosition: 'rear',
|
431
|
+
labelTooltip: null,
|
432
|
+
//-------------------
|
433
|
+
onCreated: '',
|
434
|
+
onMounted: '',
|
435
|
+
onChange: '',
|
436
|
+
onFocus: '',
|
437
|
+
onBlur: '',
|
438
|
+
onValidate: '',
|
439
|
+
},
|
440
|
+
},
|
441
|
+
|
442
|
+
{
|
443
|
+
type: 'time-range',
|
444
|
+
icon: 'time-range-field',
|
445
|
+
formItemFlag: true,
|
446
|
+
options: {
|
447
|
+
name: '',
|
448
|
+
label: '',
|
449
|
+
labelAlign: '',
|
450
|
+
defaultValue: null,
|
451
|
+
startPlaceholder: '',
|
452
|
+
endPlaceholder: '',
|
453
|
+
columnWidth: '200px',
|
454
|
+
size: '',
|
455
|
+
labelWidth: null,
|
456
|
+
labelHidden: false,
|
457
|
+
readonly: false,
|
458
|
+
disabled: false,
|
459
|
+
hidden: false,
|
460
|
+
clearable: true,
|
461
|
+
editable: false,
|
462
|
+
format: 'HH:mm:ss', //时间格式
|
463
|
+
required: false,
|
464
|
+
validation: '',
|
465
|
+
validationHint: '',
|
466
|
+
//-------------------
|
467
|
+
customClass: '', //自定义css类名
|
468
|
+
labelIconClass: null,
|
469
|
+
labelIconPosition: 'rear',
|
470
|
+
labelTooltip: null,
|
471
|
+
//-------------------
|
472
|
+
onCreated: '',
|
473
|
+
onMounted: '',
|
474
|
+
onChange: '',
|
475
|
+
onFocus: '',
|
476
|
+
onBlur: '',
|
477
|
+
onValidate: '',
|
478
|
+
},
|
479
|
+
},
|
480
|
+
|
481
|
+
{
|
482
|
+
type: 'date',
|
483
|
+
icon: 'date-field',
|
484
|
+
formItemFlag: true,
|
485
|
+
options: {
|
486
|
+
name: '',
|
487
|
+
label: '',
|
488
|
+
labelAlign: '',
|
489
|
+
type: 'date',
|
490
|
+
defaultValue: null,
|
491
|
+
placeholder: '',
|
492
|
+
columnWidth: '200px',
|
493
|
+
size: '',
|
494
|
+
labelWidth: null,
|
495
|
+
labelHidden: false,
|
496
|
+
readonly: false,
|
497
|
+
disabled: false,
|
498
|
+
hidden: false,
|
499
|
+
clearable: true,
|
500
|
+
editable: false,
|
501
|
+
format: 'yyyy-MM-dd', //日期显示格式
|
502
|
+
valueFormat: 'yyyy-MM-dd', //日期对象格式
|
503
|
+
required: false,
|
504
|
+
validation: '',
|
505
|
+
validationHint: '',
|
506
|
+
//-------------------
|
507
|
+
customClass: '', //自定义css类名
|
508
|
+
labelIconClass: null,
|
509
|
+
labelIconPosition: 'rear',
|
510
|
+
labelTooltip: null,
|
511
|
+
//-------------------
|
512
|
+
onCreated: '',
|
513
|
+
onMounted: '',
|
514
|
+
onChange: '',
|
515
|
+
onFocus: '',
|
516
|
+
onBlur: '',
|
517
|
+
onValidate: '',
|
518
|
+
},
|
519
|
+
},
|
520
|
+
|
521
|
+
{
|
522
|
+
type: 'date-range',
|
523
|
+
icon: 'date-range-field',
|
524
|
+
formItemFlag: true,
|
525
|
+
options: {
|
526
|
+
name: '',
|
527
|
+
label: '',
|
528
|
+
labelAlign: '',
|
529
|
+
type: 'daterange',
|
530
|
+
defaultValue: null,
|
531
|
+
startPlaceholder: '',
|
532
|
+
endPlaceholder: '',
|
533
|
+
columnWidth: '200px',
|
534
|
+
size: '',
|
535
|
+
labelWidth: null,
|
536
|
+
labelHidden: false,
|
537
|
+
readonly: false,
|
538
|
+
disabled: false,
|
539
|
+
hidden: false,
|
540
|
+
clearable: true,
|
541
|
+
editable: false,
|
542
|
+
format: 'yyyy-MM-dd', //日期显示格式
|
543
|
+
valueFormat: 'yyyy-MM-dd', //日期对象格式
|
544
|
+
required: false,
|
545
|
+
validation: '',
|
546
|
+
validationHint: '',
|
547
|
+
//-------------------
|
548
|
+
customClass: '', //自定义css类名
|
549
|
+
labelIconClass: null,
|
550
|
+
labelIconPosition: 'rear',
|
551
|
+
labelTooltip: null,
|
552
|
+
//-------------------
|
553
|
+
onCreated: '',
|
554
|
+
onMounted: '',
|
555
|
+
onChange: '',
|
556
|
+
onFocus: '',
|
557
|
+
onBlur: '',
|
558
|
+
onValidate: '',
|
559
|
+
},
|
560
|
+
},
|
561
|
+
|
562
|
+
{
|
563
|
+
type: 'switch',
|
564
|
+
icon: 'switch-field',
|
565
|
+
formItemFlag: true,
|
566
|
+
options: {
|
567
|
+
name: '',
|
568
|
+
label: '',
|
569
|
+
labelAlign: '',
|
570
|
+
defaultValue: null,
|
571
|
+
columnWidth: '200px',
|
572
|
+
labelWidth: null,
|
573
|
+
labelHidden: false,
|
574
|
+
disabled: false,
|
575
|
+
hidden: false,
|
576
|
+
//-------------------
|
577
|
+
customClass: '', //自定义css类名
|
578
|
+
labelIconClass: null,
|
579
|
+
labelIconPosition: 'rear',
|
580
|
+
labelTooltip: null,
|
581
|
+
switchWidth: 40,
|
582
|
+
activeText: '',
|
583
|
+
inactiveText: '',
|
584
|
+
activeColor: null,
|
585
|
+
inactiveColor: null,
|
586
|
+
//-------------------
|
587
|
+
onCreated: '',
|
588
|
+
onMounted: '',
|
589
|
+
onChange: '',
|
590
|
+
onValidate: '',
|
591
|
+
},
|
592
|
+
},
|
593
|
+
|
594
|
+
{
|
595
|
+
type: 'rate',
|
596
|
+
icon: 'rate-field',
|
597
|
+
formItemFlag: true,
|
598
|
+
options: {
|
599
|
+
name: '',
|
600
|
+
label: '',
|
601
|
+
labelAlign: '',
|
602
|
+
defaultValue: null,
|
603
|
+
columnWidth: '200px',
|
604
|
+
labelWidth: null,
|
605
|
+
labelHidden: false,
|
606
|
+
disabled: false,
|
607
|
+
hidden: false,
|
608
|
+
required: false,
|
609
|
+
validation: '',
|
610
|
+
validationHint: '',
|
611
|
+
//-------------------
|
612
|
+
customClass: '', //自定义css类名
|
613
|
+
labelIconClass: null,
|
614
|
+
labelIconPosition: 'rear',
|
615
|
+
labelTooltip: null,
|
616
|
+
max: 5,
|
617
|
+
lowThreshold: 2,
|
618
|
+
highThreshold: 4,
|
619
|
+
allowHalf: false,
|
620
|
+
showText: false,
|
621
|
+
showScore: false,
|
622
|
+
//-------------------
|
623
|
+
onCreated: '',
|
624
|
+
onMounted: '',
|
625
|
+
onChange: '',
|
626
|
+
onValidate: '',
|
627
|
+
},
|
628
|
+
},
|
629
|
+
|
630
|
+
{
|
631
|
+
type: 'color',
|
632
|
+
icon: 'color-field',
|
633
|
+
formItemFlag: true,
|
634
|
+
options: {
|
635
|
+
name: '',
|
636
|
+
label: '',
|
637
|
+
labelAlign: '',
|
638
|
+
defaultValue: null,
|
639
|
+
columnWidth: '200px',
|
640
|
+
size: '',
|
641
|
+
labelWidth: null,
|
642
|
+
labelHidden: false,
|
643
|
+
disabled: false,
|
644
|
+
hidden: false,
|
645
|
+
required: false,
|
646
|
+
validation: '',
|
647
|
+
validationHint: '',
|
648
|
+
//-------------------
|
649
|
+
customClass: '', //自定义css类名
|
650
|
+
labelIconClass: null,
|
651
|
+
labelIconPosition: 'rear',
|
652
|
+
labelTooltip: null,
|
653
|
+
//-------------------
|
654
|
+
onCreated: '',
|
655
|
+
onMounted: '',
|
656
|
+
onChange: '',
|
657
|
+
onValidate: '',
|
658
|
+
},
|
659
|
+
},
|
660
|
+
|
661
|
+
{
|
662
|
+
type: 'slider',
|
663
|
+
icon: 'slider-field',
|
664
|
+
formItemFlag: true,
|
665
|
+
options: {
|
666
|
+
name: '',
|
667
|
+
label: '',
|
668
|
+
labelAlign: '',
|
669
|
+
columnWidth: '200px',
|
670
|
+
showStops: true,
|
671
|
+
size: '',
|
672
|
+
labelWidth: null,
|
673
|
+
labelHidden: false,
|
674
|
+
disabled: false,
|
675
|
+
hidden: false,
|
676
|
+
required: false,
|
677
|
+
validation: '',
|
678
|
+
validationHint: '',
|
679
|
+
//-------------------
|
680
|
+
customClass: '', //自定义css类名
|
681
|
+
labelIconClass: null,
|
682
|
+
labelIconPosition: 'rear',
|
683
|
+
labelTooltip: null,
|
684
|
+
min: 0,
|
685
|
+
max: 100,
|
686
|
+
step: 10,
|
687
|
+
range: false,
|
688
|
+
//vertical: false,
|
689
|
+
height: null,
|
690
|
+
//-------------------
|
691
|
+
onCreated: '',
|
692
|
+
onMounted: '',
|
693
|
+
onChange: '',
|
694
|
+
onValidate: '',
|
695
|
+
},
|
696
|
+
},
|
697
|
+
|
698
|
+
{
|
699
|
+
type: 'static-text',
|
700
|
+
icon: 'static-text',
|
701
|
+
formItemFlag: false,
|
702
|
+
options: {
|
703
|
+
name: '',
|
704
|
+
columnWidth: '200px',
|
705
|
+
hidden: false,
|
706
|
+
textContent: 'static text',
|
707
|
+
//-------------------
|
708
|
+
customClass: '', //自定义css类名
|
709
|
+
//-------------------
|
710
|
+
onCreated: '',
|
711
|
+
onMounted: '',
|
712
|
+
},
|
713
|
+
},
|
714
|
+
|
715
|
+
{
|
716
|
+
type: 'html-text',
|
717
|
+
icon: 'html-text',
|
718
|
+
formItemFlag: false,
|
719
|
+
options: {
|
720
|
+
name: '',
|
721
|
+
columnWidth: '200px',
|
722
|
+
hidden: false,
|
723
|
+
htmlContent: '<b>html text</b>',
|
724
|
+
//-------------------
|
725
|
+
customClass: '', //自定义css类名
|
726
|
+
//-------------------
|
727
|
+
onCreated: '',
|
728
|
+
onMounted: '',
|
729
|
+
},
|
730
|
+
},
|
731
|
+
|
732
|
+
{
|
733
|
+
type: 'button',
|
734
|
+
icon: 'button',
|
735
|
+
formItemFlag: false,
|
736
|
+
options: {
|
737
|
+
name: '',
|
738
|
+
label: '',
|
739
|
+
columnWidth: '200px',
|
740
|
+
size: '',
|
741
|
+
disabled: false,
|
742
|
+
hidden: false,
|
743
|
+
type: '',
|
744
|
+
plain: false,
|
745
|
+
round: false,
|
746
|
+
circle: false,
|
747
|
+
icon: null,
|
748
|
+
//-------------------
|
749
|
+
customClass: '', //自定义css类名
|
750
|
+
//-------------------
|
751
|
+
onCreated: '',
|
752
|
+
onMounted: '',
|
753
|
+
onClick: '',
|
754
|
+
},
|
755
|
+
},
|
756
|
+
|
757
|
+
{
|
758
|
+
type: 'divider',
|
759
|
+
icon: 'divider',
|
760
|
+
formItemFlag: false,
|
761
|
+
options: {
|
762
|
+
name: '',
|
763
|
+
label: '',
|
764
|
+
columnWidth: '200px',
|
765
|
+
direction: 'horizontal',
|
766
|
+
contentPosition: 'center',
|
767
|
+
hidden: false,
|
768
|
+
//-------------------
|
769
|
+
customClass: '', //自定义css类名
|
770
|
+
//-------------------
|
771
|
+
onCreated: '',
|
772
|
+
onMounted: '',
|
773
|
+
},
|
774
|
+
},
|
775
|
+
|
776
|
+
//
|
777
|
+
|
778
|
+
]
|
779
|
+
|
780
|
+
export const advancedFields = [
|
781
|
+
{
|
782
|
+
type: 'picture-upload',
|
783
|
+
icon: 'picture-upload-field',
|
784
|
+
formItemFlag: true,
|
785
|
+
options: {
|
786
|
+
name: '',
|
787
|
+
label: '',
|
788
|
+
labelWidth: null,
|
789
|
+
labelHidden: false,
|
790
|
+
disabled: false,
|
791
|
+
hidden: false,
|
792
|
+
required: false,
|
793
|
+
requiredHint: '',
|
794
|
+
customRule: '',
|
795
|
+
customRuleHint: '',
|
796
|
+
//-------------------
|
797
|
+
uploadURL: '',
|
798
|
+
uploadTip: '',
|
799
|
+
withCredentials: false,
|
800
|
+
multipleSelect: false,
|
801
|
+
showFileList: true,
|
802
|
+
limit: 3,
|
803
|
+
fileMaxSize: 5, //MB
|
804
|
+
fileTypes: ['jpeg', 'png'],
|
805
|
+
//headers: [],
|
806
|
+
//-------------------
|
807
|
+
customClass: '', //自定义css类名
|
808
|
+
labelIconClass: null,
|
809
|
+
labelIconPosition: 'rear',
|
810
|
+
labelTooltip: null,
|
811
|
+
//-------------------
|
812
|
+
onCreated: '',
|
813
|
+
onMounted: '',
|
814
|
+
onBeforeUpload: '',
|
815
|
+
onUploadSuccess: '',
|
816
|
+
onUploadError: '',
|
817
|
+
onValidate: '',
|
818
|
+
//onFileChange: '',
|
819
|
+
},
|
820
|
+
|
821
|
+
},
|
822
|
+
|
823
|
+
{
|
824
|
+
type: 'file-upload',
|
825
|
+
icon: 'file-upload-field',
|
826
|
+
formItemFlag: true,
|
827
|
+
options: {
|
828
|
+
name: '',
|
829
|
+
label: '',
|
830
|
+
labelWidth: null,
|
831
|
+
labelHidden: false,
|
832
|
+
disabled: false,
|
833
|
+
hidden: false,
|
834
|
+
required: false,
|
835
|
+
requiredHint: '',
|
836
|
+
customRule: '',
|
837
|
+
customRuleHint: '',
|
838
|
+
//-------------------
|
839
|
+
uploadURL: '',
|
840
|
+
uploadTip: '',
|
841
|
+
withCredentials: false,
|
842
|
+
multipleSelect: false,
|
843
|
+
showFileList: true,
|
844
|
+
limit: 3,
|
845
|
+
fileMaxSize: 5, //MB
|
846
|
+
fileTypes: ['doc', 'docx', 'xls', 'xlsx'],
|
847
|
+
//headers: [],
|
848
|
+
//-------------------
|
849
|
+
customClass: '', //自定义css类名
|
850
|
+
labelIconClass: null,
|
851
|
+
labelIconPosition: 'rear',
|
852
|
+
labelTooltip: null,
|
853
|
+
//-------------------
|
854
|
+
onCreated: '',
|
855
|
+
onMounted: '',
|
856
|
+
onBeforeUpload: '',
|
857
|
+
onUploadSuccess: '',
|
858
|
+
onUploadError: '',
|
859
|
+
onValidate: '',
|
860
|
+
//onFileChange: '',
|
861
|
+
},
|
862
|
+
},
|
863
|
+
|
864
|
+
{
|
865
|
+
type: 'rich-editor',
|
866
|
+
icon: 'rich-editor-field',
|
867
|
+
formItemFlag: true,
|
868
|
+
options: {
|
869
|
+
name: '',
|
870
|
+
label: '',
|
871
|
+
placeholder: '',
|
872
|
+
labelWidth: null,
|
873
|
+
labelHidden: false,
|
874
|
+
disabled: false,
|
875
|
+
hidden: false,
|
876
|
+
required: false,
|
877
|
+
requiredHint: '',
|
878
|
+
customRule: '',
|
879
|
+
customRuleHint: '',
|
880
|
+
//-------------------
|
881
|
+
customClass: '', //自定义css类名
|
882
|
+
labelIconClass: null,
|
883
|
+
labelIconPosition: 'rear',
|
884
|
+
labelTooltip: null,
|
885
|
+
minLength: null,
|
886
|
+
maxLength: null,
|
887
|
+
showWordLimit: false,
|
888
|
+
//-------------------
|
889
|
+
onCreated: '',
|
890
|
+
onMounted: '',
|
891
|
+
onValidate: '',
|
892
|
+
},
|
893
|
+
},
|
894
|
+
|
895
|
+
{
|
896
|
+
type: 'cascader',
|
897
|
+
icon: 'cascader-field',
|
898
|
+
formItemFlag: true,
|
899
|
+
options: {
|
900
|
+
name: '',
|
901
|
+
label: '',
|
902
|
+
defaultValue: '',
|
903
|
+
placeholder: '',
|
904
|
+
size: '',
|
905
|
+
labelWidth: null,
|
906
|
+
labelHidden: false,
|
907
|
+
disabled: false,
|
908
|
+
hidden: false,
|
909
|
+
clearable: true,
|
910
|
+
filterable: false,
|
911
|
+
optionItems: [
|
912
|
+
{label: 'select 1', value: 1, children: [{label: 'child 1', value: 11}]},
|
913
|
+
{label: 'select 2', value: 2},
|
914
|
+
{label: 'select 3', value: 3},
|
915
|
+
],
|
916
|
+
required: false,
|
917
|
+
requiredHint: '',
|
918
|
+
customRule: '',
|
919
|
+
customRuleHint: '',
|
920
|
+
//-------------------
|
921
|
+
customClass: '', //自定义css类名
|
922
|
+
labelIconClass: null,
|
923
|
+
labelIconPosition: 'rear',
|
924
|
+
labelTooltip: null,
|
925
|
+
//-------------------
|
926
|
+
onCreated: '',
|
927
|
+
onMounted: '',
|
928
|
+
onChange: '',
|
929
|
+
onFocus: '',
|
930
|
+
onBlur: '',
|
931
|
+
onValidate: '',
|
932
|
+
},
|
933
|
+
},
|
934
|
+
|
935
|
+
]
|
936
|
+
|
937
|
+
export const customFields = [
|
938
|
+
/*
|
939
|
+
{
|
940
|
+
type: 'custom',
|
941
|
+
icon: 'custom-component',
|
942
|
+
},
|
943
|
+
|
944
|
+
{
|
945
|
+
type: 'slot',
|
946
|
+
icon: 'slot-component',
|
947
|
+
},
|
948
|
+
*/
|
949
|
+
|
950
|
+
]
|
951
|
+
|
952
|
+
export function addContainerWidgetSchema(containerSchema) {
|
953
|
+
containers.push(containerSchema)
|
954
|
+
}
|
955
|
+
|
956
|
+
export function addBasicFieldSchema(fieldSchema) {
|
957
|
+
basicFields.push(fieldSchema)
|
958
|
+
}
|
959
|
+
|
960
|
+
export function addAdvancedFieldSchema(fieldSchema) {
|
961
|
+
advancedFields.push(fieldSchema)
|
962
|
+
}
|
963
|
+
|
964
|
+
export function addCustomWidgetSchema(widgetSchema) {
|
965
|
+
customFields.push(widgetSchema)
|
966
|
+
}
|