simple-frame-unit 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env.dev +14 -0
- package/CHANGELOG.md +9 -0
- package/README.md +24 -0
- package/dist/ed-frame-vue.common.1.js +11046 -0
- package/dist/ed-frame-vue.common.1.js.map +1 -0
- package/dist/ed-frame-vue.common.2.js +1715 -0
- package/dist/ed-frame-vue.common.2.js.map +1 -0
- package/dist/ed-frame-vue.common.js +53427 -0
- package/dist/ed-frame-vue.common.js.map +1 -0
- package/dist/ed-frame-vue.umd.1.js +11046 -0
- package/dist/ed-frame-vue.umd.1.js.map +1 -0
- package/dist/ed-frame-vue.umd.2.js +1715 -0
- package/dist/ed-frame-vue.umd.2.js.map +1 -0
- package/dist/ed-frame-vue.umd.js +53437 -0
- package/dist/ed-frame-vue.umd.js.map +1 -0
- package/dist/ed-frame-vue.umd.min.1.js +17 -0
- package/dist/ed-frame-vue.umd.min.1.js.map +1 -0
- package/dist/ed-frame-vue.umd.min.2.js +4 -0
- package/dist/ed-frame-vue.umd.min.2.js.map +1 -0
- package/dist/ed-frame-vue.umd.min.js +470 -0
- package/dist/ed-frame-vue.umd.min.js.map +1 -0
- package/import.easydata.js +46 -0
- package/lib/CHANGELOG.md +18 -0
- package/lib/README.md +27 -0
- package/lib/api/ds/index.js +124 -0
- package/lib/api/easyData.js +90 -0
- package/lib/api/easyform/easyForm.js +32 -0
- package/lib/api/index.js +61 -0
- package/lib/api/interface/index.js +32 -0
- package/lib/api/system.js +20 -0
- package/lib/index.js +80 -0
- package/lib/packages/BasicTemplate/EasyDataTemplate.vue +189 -0
- package/lib/packages/BasicTemplate/Props.js +64 -0
- package/lib/packages/BasicTemplate/components/TemplateComp.vue +263 -0
- package/lib/packages/BasicTemplate/components/TemplateViews.vue +292 -0
- package/lib/packages/BasicTemplate/hooks/business.js +74 -0
- package/lib/packages/BasicTemplate/hooks/getFormData.js +89 -0
- package/lib/packages/BasicTemplate/hooks/queryFormData.js +194 -0
- package/lib/packages/BasicTemplate/hooks/submitForm.js +53 -0
- package/lib/packages/BasicTemplate/hooks/useEmits.js +15 -0
- package/lib/packages/BasicTemplate/hooks/validate.js +42 -0
- package/lib/packages/EasyDataForm/EasyDataForm.vue +597 -0
- package/lib/packages/EasyDataForm/Props.js +22 -0
- package/lib/packages/EasyDataForm/components/FormItem.vue +228 -0
- package/lib/packages/EasyDataForm/hooks/useChosePopup.js +85 -0
- package/lib/packages/EasyDataForm/hooks/useEmits.js +19 -0
- package/lib/packages/EasyDataForm/hooks/useForm.js +169 -0
- package/lib/packages/EasyDataForm/hooks/useUpload.js +168 -0
- package/lib/packages/EasyDataList/EasyDataList.vue +348 -0
- package/lib/packages/EasyDataList/Props.js +116 -0
- package/lib/packages/EasyDataList/components/BasicModal.vue +150 -0
- package/lib/packages/EasyDataList/components/FormAction.vue +63 -0
- package/lib/packages/EasyDataList/hooks/useEmits.js +30 -0
- package/lib/packages/EasyDataList/hooks/useForm.js +62 -0
- package/lib/packages/EasyDataList/hooks/useTable.js +314 -0
- package/lib/packages/EasyDataTable/EasyDataTable.vue +233 -0
- package/lib/packages/EasyDataView/EasyDataView.vue +105 -0
- package/lib/packages/EdRichPreview/index.js +32 -0
- package/lib/packages/EdRichText/index.vue +167 -0
- package/lib/packages/EdRichText/replaceUrl.js +49 -0
- package/lib/packages/components/FileView.vue +97 -0
- package/lib/packages/index.js +11 -0
- package/lib/packages/mixins/EasyDataMixins.js +133 -0
- package/lib/packages/mixins/useTable.jsx +130 -0
- package/lib/pages/DataSource/index.js +8 -0
- package/lib/pages/DataSource/src/components/ControlViews/BaseProps.js +103 -0
- package/lib/pages/DataSource/src/components/ControlViews/control.js +1089 -0
- package/lib/pages/DataSource/src/components/ControlViews/index.vue +301 -0
- package/lib/pages/DataSource/src/components/TableOperationModal.vue +225 -0
- package/lib/pages/DataSource/src/components/TablePropsModal.vue +367 -0
- package/lib/pages/DataSource/src/components/ViewPropsModal.vue +737 -0
- package/lib/pages/DataSource/src/components/modal/ChooseDict.vue +119 -0
- package/lib/pages/DataSource/src/hooks/useTable.js +138 -0
- package/lib/pages/DataSource/src/index.vue +431 -0
- package/lib/pages/Interface/index.js +8 -0
- package/lib/pages/Interface/src/components/InterfaceCall.vue +73 -0
- package/lib/pages/Interface/src/components/InterfaceDepend.vue +299 -0
- package/lib/pages/Interface/src/components/InterfaceFee.vue +131 -0
- package/lib/pages/Interface/src/components/InterfaceMessage.vue +878 -0
- package/lib/pages/Interface/src/components/InterfaceMock.vue +203 -0
- package/lib/pages/Interface/src/components/InterfaceParam.vue +308 -0
- package/lib/pages/Interface/src/components/InterfaceRepeat.vue +281 -0
- package/lib/pages/Interface/src/components/InterfaceVariable.vue +31 -0
- package/lib/pages/Interface/src/index.vue +216 -0
- package/lib/pages/Template/index.js +8 -0
- package/lib/pages/Template/src/components/DefineModal.vue +524 -0
- package/lib/pages/Template/src/components/TemplatePreview.vue +109 -0
- package/lib/pages/Template/src/components/model/AddDialog.vue +60 -0
- package/lib/pages/Template/src/components/model/TemplatePreview2.vue +101 -0
- package/lib/pages/Template/src/hooks/index.js +3 -0
- package/lib/pages/Template/src/hooks/useEmits.js +64 -0
- package/lib/pages/Template/src/index.vue +124 -0
- package/lib/popup/index.js +8 -0
- package/lib/popup/src/DataSourceChoose.vue +44 -0
- package/lib/popup/src/DataSourceViewIdChoose.vue +67 -0
- package/lib/popup/src/DictChoose.vue +104 -0
- package/lib/popup/src/InterfaceChoose.vue +46 -0
- package/lib/popup/src/OrgChoose.vue +121 -0
- package/lib/popup/src/RoleChoose.vue +101 -0
- package/lib/popup/src/TemplateChoose.vue +43 -0
- package/lib/popup/src/UserChoose.vue +161 -0
- package/lib/popup//347/273/204/344/273/266/345/274/200/345/217/221/350/247/204/350/214/203.md +25 -0
- package/lib/style/custom.scss +126 -0
- package/lib/style/deep.scss +109 -0
- package/lib/style/index.scss +4 -0
- package/lib/utils/MapLoader.js +48 -0
- package/lib/utils/dateUtils.js +58 -0
- package/lib/utils/index.js +8 -0
- package/lib/utils/setting.js +25 -0
- package/lib/utils/sortable/index.js +3784 -0
- package/lib/utils/useBusiness.js +212 -0
- package/lib/utils/utils.js +588 -0
- package/package.json +77 -0
- package/src/App.vue +12 -0
- package/src/assets/Vue.png +0 -0
- package/src/assets/avatar.png +0 -0
- package/src/assets/images/bg.png +0 -0
- package/src/assets/images/logo-bills.png +0 -0
- package/src/assets/images/pic.png +0 -0
- package/src/assets/images/weplus-logo.png +0 -0
- package/src/assets/marker.png +0 -0
- package/src/assets/styles/common.scss +359 -0
- package/src/assets/styles/ele-docs.css +3278 -0
- package/src/assets/styles/fonts/icomoon.eot +0 -0
- package/src/assets/styles/fonts/icomoon.svg +14 -0
- package/src/assets/styles/fonts/icomoon.ttf +0 -0
- package/src/assets/styles/fonts/icomoon.woff +0 -0
- package/src/assets/styles/fonts/style.css +39 -0
- package/src/assets/styles/higtlightEle.css +84 -0
- package/src/assets/svg/code.svg +7 -0
- package/src/assets/svg/password.svg +1 -0
- package/src/components/Popups/DiyCompDictChoose.vue +112 -0
- package/src/components/Popups/index.js +28 -0
- package/src/components/ed-base-vue/global/variable.js +8 -0
- package/src/components/ed-base-vue/index.js +81 -0
- package/src/components/ed-base-vue/package/EdCard/index.js +7 -0
- package/src/components/ed-base-vue/package/EdCard/src/index.vue +87 -0
- package/src/components/ed-base-vue/package/EdCodeEditor/index.js +8 -0
- package/src/components/ed-base-vue/package/EdCodeEditor/src/AceEditor/AceConfig.js +71 -0
- package/src/components/ed-base-vue/package/EdCodeEditor/src/AceEditor/Editor.vue +137 -0
- package/src/components/ed-base-vue/package/EdCodeEditor/src/AceEditor/Toolbar.vue +68 -0
- package/src/components/ed-base-vue/package/EdCodeEditor/src/AceEditor/index.vue +119 -0
- package/src/components/ed-base-vue/package/EdCodeEditor/src/AceEditor/webpack-resolver.js +51 -0
- package/src/components/ed-base-vue/package/EdCodeEditor/src/Codemirror/Toolbar.vue +57 -0
- package/src/components/ed-base-vue/package/EdCodeEditor/src/Codemirror/config.js +64 -0
- package/src/components/ed-base-vue/package/EdCodeEditor/src/Codemirror/index.vue +309 -0
- package/src/components/ed-base-vue/package/EdCodeEditor/src/EdCodeEditor.vue +238 -0
- package/src/components/ed-base-vue/package/EdDate/index.js +8 -0
- package/src/components/ed-base-vue/package/EdDate/src/index.js +50 -0
- package/src/components/ed-base-vue/package/EdDescriptions/index.js +8 -0
- package/src/components/ed-base-vue/package/EdDescriptions/src/EdDescriptions.vue +46 -0
- package/src/components/ed-base-vue/package/EdDescriptions/src/EdDescriptionsItem.js +20 -0
- package/src/components/ed-base-vue/package/EdDescriptions/src/Props.js +20 -0
- package/src/components/ed-base-vue/package/EdDialog/index.js +8 -0
- package/src/components/ed-base-vue/package/EdDialog/src/EdDialog.vue +138 -0
- package/src/components/ed-base-vue/package/EdDialog/src/Props.js +91 -0
- package/src/components/ed-base-vue/package/EdDialog/src/components/DialogFooter.vue +42 -0
- package/src/components/ed-base-vue/package/EdDialog/src/components/DialogWrapper.vue +53 -0
- package/src/components/ed-base-vue/package/EdDrawer/index.js +8 -0
- package/src/components/ed-base-vue/package/EdDrawer/src/DrawerFooter.vue +41 -0
- package/src/components/ed-base-vue/package/EdDrawer/src/EdDrawer.vue +150 -0
- package/src/components/ed-base-vue/package/EdDrawer/src/props.js +71 -0
- package/src/components/ed-base-vue/package/EdFlow/index.js +8 -0
- package/src/components/ed-base-vue/package/EdFlow/src/EdFlowItem.vue +733 -0
- package/src/components/ed-base-vue/package/EdFlow/src/index.vue +148 -0
- package/src/components/ed-base-vue/package/EdForm/index.js +8 -0
- package/src/components/ed-base-vue/package/EdForm/src/EdForm.vue +172 -0
- package/src/components/ed-base-vue/package/EdForm/src/Props.js +33 -0
- package/src/components/ed-base-vue/package/EdForm/src/components/EdFormItem.vue +34 -0
- package/src/components/ed-base-vue/package/EdIcons/index.js +8 -0
- package/src/components/ed-base-vue/package/EdIcons/src/hooks/Icons.js +406 -0
- package/src/components/ed-base-vue/package/EdIcons/src/hooks/Icons1.js +830 -0
- package/src/components/ed-base-vue/package/EdIcons/src/index.vue +13 -0
- package/src/components/ed-base-vue/package/EdImage/index.js +8 -0
- package/src/components/ed-base-vue/package/EdImage/src/index.vue +28 -0
- package/src/components/ed-base-vue/package/EdInputArray/index.js +8 -0
- package/src/components/ed-base-vue/package/EdInputArray/src/Props.js +26 -0
- package/src/components/ed-base-vue/package/EdInputArray/src/index.vue +97 -0
- package/src/components/ed-base-vue/package/EdInputColor/index.js +8 -0
- package/src/components/ed-base-vue/package/EdInputColor/src/InputColor.vue +81 -0
- package/src/components/ed-base-vue/package/EdInputMap/index.js +9 -0
- package/src/components/ed-base-vue/package/EdInputMap/src/EdInputMap.vue +246 -0
- package/src/components/ed-base-vue/package/EdInputMap/src/EdInputMapProps.js +6 -0
- package/src/components/ed-base-vue/package/EdInputPop/index.js +13 -0
- package/src/components/ed-base-vue/package/EdInputPop/src/EdInputPop.vue +144 -0
- package/src/components/ed-base-vue/package/EdInputPop/src/Props.js +48 -0
- package/src/components/ed-base-vue/package/EdInputTable/index.js +8 -0
- package/src/components/ed-base-vue/package/EdInputTable/src/EdInputTable.vue +368 -0
- package/src/components/ed-base-vue/package/EdInputTable/src/Fetch.js +40 -0
- package/src/components/ed-base-vue/package/EdJsonEditor/index.js +13 -0
- package/src/components/ed-base-vue/package/EdJsonEditor/src/EdJsonEditor.vue +198 -0
- package/src/components/ed-base-vue/package/EdJsonEditor/src/assets/img/jsoneditor-icons.svg +749 -0
- package/src/components/ed-base-vue/package/EdJsonEditor/src/assets/jsoneditor.css +2031 -0
- package/src/components/ed-base-vue/package/EdJsonEditor/src/assets/plus.svg +1 -0
- package/src/components/ed-base-vue/package/EdJsonEditor/src/hooks.js +63 -0
- package/src/components/ed-base-vue/package/EdJsonViewer/index.js +8 -0
- package/src/components/ed-base-vue/package/EdJsonViewer/src/EdJsonViewer.vue +44 -0
- package/src/components/ed-base-vue/package/EdLable/index.js +8 -0
- package/src/components/ed-base-vue/package/EdLable/src/index.vue +34 -0
- package/src/components/ed-base-vue/package/EdLink/index.js +8 -0
- package/src/components/ed-base-vue/package/EdLink/src/index.vue +43 -0
- package/src/components/ed-base-vue/package/EdMarkEditor/index.js +15 -0
- package/src/components/ed-base-vue/package/EdMarkEditor/src/EdMarkEditor.vue +368 -0
- package/src/components/ed-base-vue/package/EdMarkEditor/src/extra-function.js +538 -0
- package/src/components/ed-base-vue/package/EdMarkEditor/src/highlight.js +95 -0
- package/src/components/ed-base-vue/package/EdTable/index.js +8 -0
- package/src/components/ed-base-vue/package/EdTable/src/EdTable.vue +240 -0
- package/src/components/ed-base-vue/package/EdTable/src/Props.js +97 -0
- package/src/components/ed-base-vue/package/EdTable/src/components/TableColumnItem.js +24 -0
- package/src/components/ed-base-vue/package/EdTable/src/components/TablePagination.vue +73 -0
- package/src/components/ed-base-vue/package/EdTableEditor/index.js +8 -0
- package/src/components/ed-base-vue/package/EdTableEditor/src/EdTableEditor.vue +282 -0
- package/src/components/ed-base-vue/package/EdTableEditor/src/Props.js +107 -0
- package/src/components/ed-base-vue/package/EdTableEditor/src/hooks/validate.js +90 -0
- package/src/components/ed-base-vue/package/EdUpload/index.js +8 -0
- package/src/components/ed-base-vue/package/EdUpload/src/Props.js +90 -0
- package/src/components/ed-base-vue/package/EdUpload/src/index.vue +88 -0
- package/src/components/ed-base-vue/package/EdViewer/index.js +8 -0
- package/src/components/ed-base-vue/package/EdViewer/src/EdViewer.vue +310 -0
- package/src/components/ed-base-vue/package/EdWangEditor/index.js +14 -0
- package/src/components/ed-base-vue/package/EdWangEditor/src/EdWangEditor.vue +127 -0
- package/src/components/ed-base-vue/package/ExtendSlot.js +12 -0
- package/src/components/ed-base-vue/package/OptionSlot.js +65 -0
- package/src/components/ed-base-vue/plugin/Message/index.js +2 -0
- package/src/components/ed-base-vue/plugin/Message/src/main.js +91 -0
- package/src/components/ed-base-vue/plugin/Message/src/main.vue +253 -0
- package/src/components/ed-base-vue/plugin/print/index.js +156 -0
- package/src/components/ed-base-vue/plugin/sortable/index.js +3784 -0
- package/src/components/ed-base-vue/style/custom.scss +107 -0
- package/src/components/ed-base-vue/style/deep.scss +100 -0
- package/src/components/ed-base-vue/style/index.scss +4 -0
- package/src/components/ed-base-vue/tools/date-format.js +315 -0
- package/src/components/ed-base-vue/tools/utils.js +124 -0
- package/src/layouts/components/AppMain.vue +17 -0
- package/src/layouts/components/Header.vue +256 -0
- package/src/layouts/components/Logo.vue +56 -0
- package/src/layouts/components/Navbar.vue +169 -0
- package/src/layouts/components/SideBar.vue +107 -0
- package/src/layouts/components/index.js +5 -0
- package/src/layouts/index.vue +57 -0
- package/src/main.js +42 -0
- package/src/request/config.js +6 -0
- package/src/request/index.js +85 -0
- package/src/request/request.js +147 -0
- package/src/router/index.js +65 -0
- package/src/router/modules/baseRouter.js +43 -0
- package/src/router/modules/easydata.js +49 -0
- package/src/views/base/BaseRichPreview.vue +23 -0
- package/src/views/base/BaseRichText.vue +28 -0
- package/src/views/base/EdFormView.vue +54 -0
- package/src/views/base/EdTable.vue +98 -0
- package/src/views/base/inputTable.vue +103 -0
- package/src/views/easydata/Interface.vue +3 -0
- package/src/views/easydata/dataSource.vue +13 -0
- package/src/views/easydata/dataSourceView.vue +71 -0
- package/src/views/easydata/templateDemo.vue +89 -0
- package/src/views/easydata/templateInfo.vue +13 -0
- package/src/views/index.vue +17 -0
- package/src/views/login.vue +208 -0
- package/src/views/redirect.vue +15 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1523765571855" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1927" xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="16"><defs><style type="text/css"></style></defs><path d="M63.989383 105.442494l0 268.396843c0 18.935258 15.368012 34.304294 34.304294 34.304294 18.936281 0 34.304294-15.369036 34.304294-34.304294L132.597971 180.156126l218.107483 218.176045c12.82919 12.830213 33.618679 12.830213 46.515407 0 12.830213-12.897751 12.830213-33.686217 0-46.51643l-218.176045-218.107483 193.683211 0c18.935258 0 34.304294-15.369036 34.304294-34.304294 0-18.935258-15.369036-34.304294-34.304294-34.304294L104.331183 65.09967C79.288834 65.09967 63.989383 77.999468 63.989383 105.442494L63.989383 105.442494z" p-id="1928" fill="#e6e6e6"></path><path d="M917.688719 65.09967 649.290853 65.09967c-18.935258 0-34.304294 15.369036-34.304294 34.304294 0 18.936281 15.369036 34.304294 34.304294 34.304294l193.683211 0-218.176045 218.107483c-12.830213 12.82919-12.830213 33.618679 0 46.51643 12.897751 12.830213 33.686217 12.830213 46.515407 0L889.420909 180.156126l0 193.683211c0 18.935258 15.369036 34.304294 34.304294 34.304294 18.936281 0 34.304294-15.369036 34.304294-34.304294L958.029496 105.442494C958.029496 77.999468 942.79963 65.09967 917.688719 65.09967L917.688719 65.09967z" p-id="1929" fill="#e6e6e6"></path><path d="M104.331183 957.013353l268.397866 0c18.935258 0 34.304294-15.368012 34.304294-34.304294 0-18.936281-15.369036-34.304294-34.304294-34.304294L179.045839 888.404766l218.176045-218.107483c12.830213-12.82919 12.830213-33.618679 0-46.515407-12.897751-12.830213-33.686217-12.830213-46.515407 0l-218.107483 218.176045L132.598994 648.27471c0-18.935258-15.368012-34.304294-34.304294-34.304294-18.936281 0-34.304294 15.369036-34.304294 34.304294l0 268.397866C63.989383 944.115602 79.288834 957.013353 104.331183 957.013353L104.331183 957.013353z" p-id="1930" fill="#e6e6e6"></path><path d="M958.029496 916.671553 958.029496 648.27471c0-18.935258-15.368012-34.304294-34.304294-34.304294-18.935258 0-34.304294 15.369036-34.304294 34.304294l0 193.683211L671.313425 623.781876c-12.82919-12.830213-33.618679-12.830213-46.515407 0-12.830213 12.897751-12.830213 33.686217 0 46.515407l218.176045 218.107483L649.290853 888.404766c-18.935258 0-34.304294 15.368012-34.304294 34.304294 0 18.936281 15.369036 34.304294 34.304294 34.304294l268.397866 0C942.79963 957.013353 958.029496 944.115602 958.029496 916.671553L958.029496 916.671553z" p-id="1931" fill="#e6e6e6"></path></svg>
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
// jsonEditor组件属性列表
|
|
2
|
+
const Basic_JSON_OPTIONS = [
|
|
3
|
+
"ajv",
|
|
4
|
+
"schema",
|
|
5
|
+
"schemaRefs",
|
|
6
|
+
"templates",
|
|
7
|
+
"ace",
|
|
8
|
+
"theme",
|
|
9
|
+
"autocomplete",
|
|
10
|
+
"onChange",
|
|
11
|
+
"onChangeJSON",
|
|
12
|
+
"onChangeText",
|
|
13
|
+
"onExpand",
|
|
14
|
+
"onEditable",
|
|
15
|
+
"onError",
|
|
16
|
+
"onEvent",
|
|
17
|
+
"onModeChange",
|
|
18
|
+
"onNodeName",
|
|
19
|
+
"onValidate",
|
|
20
|
+
"onCreateMenu",
|
|
21
|
+
"onSelectionChange",
|
|
22
|
+
"onTextSelectionChange",
|
|
23
|
+
"onClassName",
|
|
24
|
+
"onFocus",
|
|
25
|
+
"onBlur",
|
|
26
|
+
"colorPicker",
|
|
27
|
+
"onColorPicker",
|
|
28
|
+
"timestampTag",
|
|
29
|
+
"timestampFormat",
|
|
30
|
+
"escapeUnicode",
|
|
31
|
+
"history",
|
|
32
|
+
"search",
|
|
33
|
+
"mode",
|
|
34
|
+
"modes",
|
|
35
|
+
"name",
|
|
36
|
+
"indentation",
|
|
37
|
+
"sortObjectKeys",
|
|
38
|
+
"navigationBar",
|
|
39
|
+
"statusBar",
|
|
40
|
+
"mainMenuBar",
|
|
41
|
+
"languages",
|
|
42
|
+
"language",
|
|
43
|
+
"enableSort",
|
|
44
|
+
"enableTransform",
|
|
45
|
+
"limitDragging",
|
|
46
|
+
"maxVisibleChilds",
|
|
47
|
+
"onValidationError",
|
|
48
|
+
"modalAnchor",
|
|
49
|
+
"popupAnchor",
|
|
50
|
+
"createQuery",
|
|
51
|
+
"executeQuery",
|
|
52
|
+
"query Description",
|
|
53
|
+
"allowSchemaSuggestions"
|
|
54
|
+
]
|
|
55
|
+
|
|
56
|
+
// 默认属性
|
|
57
|
+
export const OPTIONS = {
|
|
58
|
+
modes: ['code', 'form', 'text', 'tree', 'view', 'preview'], // 模式列表
|
|
59
|
+
search: false, // 是否显示搜索框
|
|
60
|
+
enableSort: true, // 是否显示排序
|
|
61
|
+
enableTransform: true, // 是否显示筛选
|
|
62
|
+
queryDescription: "输入JMESPath查询以筛选、排序或转换JSON数据。", // 筛选描述
|
|
63
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<JsonViewer :value="value || {}" v-bind="$props"></JsonViewer>
|
|
3
|
+
</template>
|
|
4
|
+
|
|
5
|
+
<script>
|
|
6
|
+
import JsonViewer from 'vue-json-viewer'
|
|
7
|
+
import 'vue-json-viewer/style.css';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @see https://github.com/chenfengjw163/vue-json-viewer/blob/master/README_CN.md
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* JSON查看器
|
|
14
|
+
* - 示例
|
|
15
|
+
*
|
|
16
|
+
* ```vue
|
|
17
|
+
* <ed-json-viewer v-model="value"></ed-json-viewer>
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
export default {
|
|
21
|
+
name: "EdJsonViewer",
|
|
22
|
+
components: {JsonViewer},
|
|
23
|
+
props: {
|
|
24
|
+
// json对象的值,可以使用v-model,支持响应式
|
|
25
|
+
value: {type: [Object, Array, String, Number, Boolean, Function], require: true},
|
|
26
|
+
// 默认展开的层级
|
|
27
|
+
expandDepth: {type: Number, default: 1},
|
|
28
|
+
// 展示复制按钮,默认文案为:copy、copied!, 你可以设置一个对象{copyText: 'copy', copiedText: 'copied'} 来自定义复制按钮文案
|
|
29
|
+
copyable: {type: [Boolean, Object], default: false},
|
|
30
|
+
// 按照key排序展示
|
|
31
|
+
sort:{type: Boolean, default: false},
|
|
32
|
+
// 为组件添加一个盒样式
|
|
33
|
+
boxed: {type: Boolean, default: false},
|
|
34
|
+
// 添加一个自定义的样式class用作主题
|
|
35
|
+
theme: {type: String},
|
|
36
|
+
// 默认展开视图
|
|
37
|
+
expanded: {type: Boolean, default: false},
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
</script>
|
|
41
|
+
|
|
42
|
+
<style scoped>
|
|
43
|
+
|
|
44
|
+
</style>
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<label v-if="isSlots" :for="labelFor" :form="form">
|
|
3
|
+
<slot></slot>
|
|
4
|
+
</label>
|
|
5
|
+
<label v-else :for="labelFor" :form="form" v-html="content"></label>
|
|
6
|
+
</template>
|
|
7
|
+
|
|
8
|
+
<script>
|
|
9
|
+
export default {
|
|
10
|
+
name: "EdLabel",
|
|
11
|
+
props: {
|
|
12
|
+
for: {
|
|
13
|
+
type: String,
|
|
14
|
+
default: ""
|
|
15
|
+
},
|
|
16
|
+
form: {
|
|
17
|
+
type: String,
|
|
18
|
+
default: ""
|
|
19
|
+
},
|
|
20
|
+
content: {
|
|
21
|
+
type: String,
|
|
22
|
+
default: ""
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
computed: {
|
|
26
|
+
isSlots() {
|
|
27
|
+
return Object.keys(this.$slots).length > 0 || Object.keys(this.$scopedSlots).length > 0
|
|
28
|
+
},
|
|
29
|
+
labelFor() {
|
|
30
|
+
return this.for
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
</script>
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<el-link :disabled="disabled" :href="href" :icon="icon" :type="type" :underline="underline" class="ed-link"
|
|
3
|
+
@click="navTo">
|
|
4
|
+
<slot>{{ text }}</slot>
|
|
5
|
+
</el-link>
|
|
6
|
+
</template>
|
|
7
|
+
|
|
8
|
+
<script>
|
|
9
|
+
export default {
|
|
10
|
+
name: "EdLink",
|
|
11
|
+
props: {
|
|
12
|
+
// 类型 primary / success / warning / danger / info
|
|
13
|
+
type: {type: String, default: "default"},
|
|
14
|
+
// 是否下划线
|
|
15
|
+
underline: {type: Boolean, default: true},
|
|
16
|
+
// 是否禁用状态
|
|
17
|
+
disabled: Boolean,
|
|
18
|
+
// 原生 href 属性
|
|
19
|
+
href: String,
|
|
20
|
+
// 图标类名
|
|
21
|
+
icon: String,
|
|
22
|
+
// 文字描述
|
|
23
|
+
text: String,
|
|
24
|
+
// 原生target, 规定在何处打开链接文档。
|
|
25
|
+
target: {type: String, default: "_self"},
|
|
26
|
+
// route
|
|
27
|
+
to: {
|
|
28
|
+
type: [String, Object],
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
methods: {
|
|
32
|
+
navTo() {
|
|
33
|
+
if (this.to && !this.href) {
|
|
34
|
+
this.$router.push(this.to)
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
</script>
|
|
40
|
+
|
|
41
|
+
<style scoped>
|
|
42
|
+
|
|
43
|
+
</style>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MarkEditor markdown编辑器
|
|
3
|
+
* @link 依赖(mavon-editor):https://github.com/hinesboy/mavonEditor
|
|
4
|
+
* @link 官方:http://www.mavoneditor.com/
|
|
5
|
+
* @description Web 富文本编辑器
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import EdMarkEditor from './src/EdMarkEditor.vue'
|
|
9
|
+
|
|
10
|
+
/* istanbul ignore next */
|
|
11
|
+
EdMarkEditor.install = function (Vue) {
|
|
12
|
+
Vue.component(EdMarkEditor.name, EdMarkEditor)
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export default EdMarkEditor
|
|
@@ -0,0 +1,368 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="markdown-editor">
|
|
3
|
+
<mavon-editor v-model="editorValue" v-bind="getBindValue()" v-on="$listeners">
|
|
4
|
+
<!-- 左工具栏前加入自定义按钮 -->
|
|
5
|
+
<template slot="left-toolbar-before">
|
|
6
|
+
<slot name="left-toolbar-before"></slot>
|
|
7
|
+
</template>
|
|
8
|
+
|
|
9
|
+
<!-- 左工具栏后加入自定义按钮 -->
|
|
10
|
+
<template slot="left-toolbar-after">
|
|
11
|
+
<slot name="left-toolbar-after"></slot>
|
|
12
|
+
</template>
|
|
13
|
+
<!-- 右工具栏前加入自定义按钮 -->
|
|
14
|
+
<template slot="right-toolbar-before">
|
|
15
|
+
<slot name="right-toolbar-before"></slot>
|
|
16
|
+
</template>
|
|
17
|
+
<!-- 右工具栏后加入自定义按钮 -->
|
|
18
|
+
<template slot="right-toolbar-after">
|
|
19
|
+
<slot name="right-toolbar-after"></slot>
|
|
20
|
+
</template>
|
|
21
|
+
</mavon-editor>
|
|
22
|
+
</div>
|
|
23
|
+
</template>
|
|
24
|
+
|
|
25
|
+
<script>
|
|
26
|
+
import { mavonEditor } from 'mavon-editor'
|
|
27
|
+
import 'mavon-editor/dist/css/index.css'
|
|
28
|
+
import highlight from "./highlight";
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Markdown编辑器
|
|
32
|
+
* - 示例
|
|
33
|
+
*
|
|
34
|
+
* ```vue
|
|
35
|
+
* <ed-mark-editor v-model="value"></ed-mark-editor>
|
|
36
|
+
* ```
|
|
37
|
+
*
|
|
38
|
+
* [](./EdMarkEditorProps.md ':include')
|
|
39
|
+
*/
|
|
40
|
+
export default {
|
|
41
|
+
name: "EdMarkEditor",
|
|
42
|
+
components: { mavonEditor },
|
|
43
|
+
props: {
|
|
44
|
+
// 初始值
|
|
45
|
+
value: {
|
|
46
|
+
type: String,
|
|
47
|
+
default: ""
|
|
48
|
+
},
|
|
49
|
+
|
|
50
|
+
// 语言选择,暂支持 zh-CN: 简体中文, zh-TW: 正体中文 , en: 英文 , fr: 法语, pt-BR: 葡萄牙语, ru: 俄语, de: 德语, ja: 日语
|
|
51
|
+
language: {
|
|
52
|
+
type: String,
|
|
53
|
+
default: "zh-CN"
|
|
54
|
+
},
|
|
55
|
+
|
|
56
|
+
// 编辑区域文字大小
|
|
57
|
+
fonts: {
|
|
58
|
+
type: [String, Number],
|
|
59
|
+
default: "14px"
|
|
60
|
+
},
|
|
61
|
+
|
|
62
|
+
// 开启滚动条样式(暂时仅支持chrome)
|
|
63
|
+
scrollStyle: {
|
|
64
|
+
type: Boolean,
|
|
65
|
+
default: true
|
|
66
|
+
},
|
|
67
|
+
|
|
68
|
+
// 开启边框阴影
|
|
69
|
+
boxShadow: {
|
|
70
|
+
type: Boolean,
|
|
71
|
+
default: true
|
|
72
|
+
},
|
|
73
|
+
|
|
74
|
+
// 边框阴影样式
|
|
75
|
+
boxShadowStyle: {
|
|
76
|
+
type: String,
|
|
77
|
+
default: "0 2px 12px 0 rgba(0, 0, 0, 0.1)"
|
|
78
|
+
},
|
|
79
|
+
|
|
80
|
+
// 是否开启过渡动画
|
|
81
|
+
transition: {
|
|
82
|
+
type: Boolean,
|
|
83
|
+
default: true
|
|
84
|
+
},
|
|
85
|
+
|
|
86
|
+
// 工具栏背景颜色
|
|
87
|
+
toolbarsBackground: {
|
|
88
|
+
type: String,
|
|
89
|
+
default: "#ffffff"
|
|
90
|
+
},
|
|
91
|
+
|
|
92
|
+
// 预览框背景颜色
|
|
93
|
+
previewBackground: {
|
|
94
|
+
type: String,
|
|
95
|
+
default: "#fbfbfb"
|
|
96
|
+
},
|
|
97
|
+
|
|
98
|
+
// true: 双栏(编辑预览同屏), false: 单栏(编辑预览分屏)
|
|
99
|
+
subfield: {
|
|
100
|
+
type: Boolean,
|
|
101
|
+
default: true
|
|
102
|
+
},
|
|
103
|
+
|
|
104
|
+
// 在单栏(subfield=false)时默认展示区域.
|
|
105
|
+
// edit: 默认展示编辑区域,
|
|
106
|
+
// preview: 默认展示预览区域
|
|
107
|
+
// 其他 = edit
|
|
108
|
+
defaultOpen: {
|
|
109
|
+
type: String,
|
|
110
|
+
},
|
|
111
|
+
|
|
112
|
+
// 输入框为空时默认提示文本
|
|
113
|
+
placeholder: {
|
|
114
|
+
type: String,
|
|
115
|
+
default: "开始编辑..."
|
|
116
|
+
},
|
|
117
|
+
|
|
118
|
+
// 是否允许编辑
|
|
119
|
+
editable: {
|
|
120
|
+
type: Boolean,
|
|
121
|
+
default: true
|
|
122
|
+
},
|
|
123
|
+
|
|
124
|
+
// markdown样式: 默认github, 可选配色方案
|
|
125
|
+
codeStyle: {
|
|
126
|
+
type: String,
|
|
127
|
+
default: "code-github"
|
|
128
|
+
},
|
|
129
|
+
|
|
130
|
+
// 工具栏是否显示
|
|
131
|
+
toolbarsFlag: {
|
|
132
|
+
type: Boolean,
|
|
133
|
+
default: true
|
|
134
|
+
},
|
|
135
|
+
|
|
136
|
+
// 默认展示目录
|
|
137
|
+
navigation: {
|
|
138
|
+
type: Boolean,
|
|
139
|
+
default: false
|
|
140
|
+
},
|
|
141
|
+
|
|
142
|
+
// 是否启用快捷键
|
|
143
|
+
shortCut: {
|
|
144
|
+
type: Boolean,
|
|
145
|
+
default: true
|
|
146
|
+
},
|
|
147
|
+
|
|
148
|
+
// 自动聚焦到文本框
|
|
149
|
+
autofocus: {
|
|
150
|
+
type: Boolean,
|
|
151
|
+
default: true
|
|
152
|
+
},
|
|
153
|
+
|
|
154
|
+
// 代码高亮
|
|
155
|
+
ishljs: {
|
|
156
|
+
type: Boolean,
|
|
157
|
+
default: true
|
|
158
|
+
},
|
|
159
|
+
|
|
160
|
+
// 图片过滤函数,参数为一个File Object,要求返回一个Boolean, true表示文件合法,false表示文件不合法
|
|
161
|
+
imageFilter: {
|
|
162
|
+
type: Function
|
|
163
|
+
},
|
|
164
|
+
|
|
165
|
+
// 图片点击事件,默认为预览,可覆盖
|
|
166
|
+
imageClick: {
|
|
167
|
+
type: Function
|
|
168
|
+
},
|
|
169
|
+
|
|
170
|
+
// tab转化为几个空格,默认为\t
|
|
171
|
+
tabSize: {
|
|
172
|
+
type: Number,
|
|
173
|
+
},
|
|
174
|
+
|
|
175
|
+
// 启用HTML标签,因为历史原因这个标记一直默认为true,但建议不使用HTML标签就关闭它,它能彻底杜绝安全问题。
|
|
176
|
+
html: {
|
|
177
|
+
type: Boolean,
|
|
178
|
+
default: true
|
|
179
|
+
},
|
|
180
|
+
|
|
181
|
+
// 组件默认cdn外链依赖组件,如需本地化加载,请设置externalLink (false:加载本地 true:加载CDN)
|
|
182
|
+
externalLink: {
|
|
183
|
+
type: Boolean,
|
|
184
|
+
default: true
|
|
185
|
+
},
|
|
186
|
+
|
|
187
|
+
// xss规则配置, 默认开启,设置false可以关闭,开启后会对HTML标签进行过滤,默认过滤所有HTML标签属性,建议按需配置白名单减少被攻击的可能。
|
|
188
|
+
// - 自定义规则参考: https://jsxss.com/zh/options.html
|
|
189
|
+
// - 参考DEMO: dev-demo
|
|
190
|
+
xssOptions: {
|
|
191
|
+
type: Object,
|
|
192
|
+
default: () => {
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
|
|
196
|
+
// 工具栏
|
|
197
|
+
toolbars: {
|
|
198
|
+
type: Object,
|
|
199
|
+
default: () => {
|
|
200
|
+
return {}
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
model: {
|
|
205
|
+
prop: "value",
|
|
206
|
+
event: "input"
|
|
207
|
+
},
|
|
208
|
+
data() {
|
|
209
|
+
return {
|
|
210
|
+
editorValue: this.value,
|
|
211
|
+
defaultToolbars: {
|
|
212
|
+
bold: true, // 粗体
|
|
213
|
+
italic: true, // 斜体
|
|
214
|
+
header: true, // 标题
|
|
215
|
+
underline: true, // 下划线
|
|
216
|
+
strikethrough: true, // 中划线
|
|
217
|
+
mark: true, // 标记
|
|
218
|
+
superscript: false, // 上角标
|
|
219
|
+
subscript: false, // 下角标
|
|
220
|
+
quote: true, // 引用
|
|
221
|
+
ol: true, // 有序列表
|
|
222
|
+
ul: true, // 无序列表
|
|
223
|
+
link: true, // 链接
|
|
224
|
+
imagelink: true, // 图片链接
|
|
225
|
+
code: true, // code
|
|
226
|
+
table: true, // 表格
|
|
227
|
+
fullscreen: true, // 全屏编辑
|
|
228
|
+
readmodel: true, // 沉浸式阅读
|
|
229
|
+
htmlcode: true, // 展示html源码
|
|
230
|
+
help: true, // 帮助
|
|
231
|
+
/* 1.3.5 */
|
|
232
|
+
undo: true, // 上一步
|
|
233
|
+
redo: true, // 下一步
|
|
234
|
+
trash: true, // 清空
|
|
235
|
+
save: true, // 保存(触发events中的save事件)
|
|
236
|
+
/* 1.4.2 */
|
|
237
|
+
navigation: true, // 导航目录
|
|
238
|
+
/* 2.1.8 */
|
|
239
|
+
alignleft: true, // 左对齐
|
|
240
|
+
aligncenter: true, // 居中
|
|
241
|
+
alignright: true, // 右对齐
|
|
242
|
+
/* 2.2.1 */
|
|
243
|
+
subfield: true, // 单双栏模式
|
|
244
|
+
preview: true, // 预览
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
},
|
|
248
|
+
computed: {
|
|
249
|
+
fontSize() {
|
|
250
|
+
return typeof this.fonts === 'number' ? this.fonts + 'px' : this.fonts
|
|
251
|
+
}
|
|
252
|
+
},
|
|
253
|
+
methods: {
|
|
254
|
+
/**
|
|
255
|
+
* 获取绑定数据
|
|
256
|
+
*/
|
|
257
|
+
getBindValue() {
|
|
258
|
+
let props = Object.assign({}, this.$props)
|
|
259
|
+
// props.fontSize = this.fontSize
|
|
260
|
+
props.toolbars = Object.assign({}, this.defaultToolbars, this.toolbars)
|
|
261
|
+
|
|
262
|
+
return props
|
|
263
|
+
},
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* @name setHandleOn
|
|
267
|
+
* @return {Object}
|
|
268
|
+
* @description 设置事件
|
|
269
|
+
*/
|
|
270
|
+
setHandleOn() {
|
|
271
|
+
return {
|
|
272
|
+
change: this.handleChange,
|
|
273
|
+
save: this.handleSave,
|
|
274
|
+
fullScreen: this.handleFullScreen,
|
|
275
|
+
readModel: this.handleReadModel,
|
|
276
|
+
htmlCode: this.handleHtmlCode,
|
|
277
|
+
subfieldToggle: this.handleSubfieldToggle,
|
|
278
|
+
previewToggle: this.handlePreviewToggle,
|
|
279
|
+
helpToggle: this.handleHelpToggle,
|
|
280
|
+
navigationToggle: this.handleNavigationToggle,
|
|
281
|
+
imgAdd: this.handleImgAdd,
|
|
282
|
+
imgDel: this.handleImgDel,
|
|
283
|
+
}
|
|
284
|
+
},
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* @name handleChange
|
|
288
|
+
* @param value {String} 值
|
|
289
|
+
* @param render {String} 解析后的html
|
|
290
|
+
* @description 编辑区发生变化的回调事件
|
|
291
|
+
*/
|
|
292
|
+
handleChange(value, render) {
|
|
293
|
+
this.$emit('input', value)
|
|
294
|
+
this.$emit("change", value, render)
|
|
295
|
+
},
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* @name handleSave
|
|
299
|
+
* @param value {String} 值
|
|
300
|
+
* @param render {String} 解析后的html
|
|
301
|
+
* @description ctrl + s 的回调事件(保存按键,同样触发该回调)
|
|
302
|
+
*/
|
|
303
|
+
handleSave(value, render) {
|
|
304
|
+
this.$emit("save", value, render)
|
|
305
|
+
},
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* @name handleFullScreen
|
|
309
|
+
* @param status {Boolean}
|
|
310
|
+
* @param value {String}
|
|
311
|
+
* @description 切换全屏编辑的回调事件(boolean: 全屏开启状态)
|
|
312
|
+
*/
|
|
313
|
+
handleFullScreen(status, value) {
|
|
314
|
+
this.$emit('fullScreen', status, value)
|
|
315
|
+
},
|
|
316
|
+
|
|
317
|
+
/**
|
|
318
|
+
* @name handleReadModel
|
|
319
|
+
* @param status {Boolean}
|
|
320
|
+
* @param value {String}
|
|
321
|
+
* @description 切换沉浸式阅读的回调事件(boolean: 阅读开启状态)
|
|
322
|
+
*/
|
|
323
|
+
handleReadModel(status, value) {
|
|
324
|
+
this.$emit('readModel', status, value)
|
|
325
|
+
},
|
|
326
|
+
|
|
327
|
+
/**
|
|
328
|
+
* @name handleHtmlCode
|
|
329
|
+
* @param status
|
|
330
|
+
* @param value
|
|
331
|
+
* @description 查看html源码的回调事件(boolean: 源码开启状态)
|
|
332
|
+
*/
|
|
333
|
+
handleHtmlCode(status, value) {
|
|
334
|
+
this.$emit('htmlCode', status, value)
|
|
335
|
+
},
|
|
336
|
+
|
|
337
|
+
/**
|
|
338
|
+
* @name handleSubfieldToggle
|
|
339
|
+
* @param status
|
|
340
|
+
* @param value
|
|
341
|
+
* @description 切换单双栏编辑的回调事件(boolean: 双栏开启状态)
|
|
342
|
+
*/
|
|
343
|
+
handleSubfieldToggle(status, value) {
|
|
344
|
+
this.$emit('subfieldToggle', status, value)
|
|
345
|
+
},
|
|
346
|
+
|
|
347
|
+
// 切换预览编辑的回调事件(boolean: 预览开启状态)
|
|
348
|
+
handlePreviewToggle(status, value) {
|
|
349
|
+
},
|
|
350
|
+
// 查看帮助的回调事件(boolean: 帮助开启状态)
|
|
351
|
+
handleHelpToggle(status, value) {
|
|
352
|
+
},
|
|
353
|
+
// 切换导航目录的回调事件(boolean: 导航开启状态)
|
|
354
|
+
handleNavigationToggle(status, value) {
|
|
355
|
+
},
|
|
356
|
+
// 图片文件添加回调事件(pos: 图片在列表中的位置, File: File Object)
|
|
357
|
+
handleImgAdd(pos, imgFile) {
|
|
358
|
+
},
|
|
359
|
+
// 图片文件删除回调事件(Array(2): 两个元素的数组,第一位是图片在列表中的位置,第二位是File对象)
|
|
360
|
+
handleImgDel(files) {
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
</script>
|
|
365
|
+
|
|
366
|
+
<style scoped>
|
|
367
|
+
|
|
368
|
+
</style>
|