vap1 0.0.1
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/basetype.d.ts +62 -0
- package/basetype.js +2 -0
- package/components/Box/Box.d.ts +118 -0
- package/components/Box/Box.js +150 -0
- package/components/Box/SelectBar.d.ts +90 -0
- package/components/Box/SelectBar.js +93 -0
- package/components/Box/_register.d.ts +49 -0
- package/components/Box/_register.js +29 -0
- package/components/Box/index.d.ts +9 -0
- package/components/Box/index.js +6 -0
- package/components/Lists/SList.d.ts +58 -0
- package/components/Lists/SList.js +167 -0
- package/components/SearchBar/ActionButtons.d.ts +49 -0
- package/components/SearchBar/ActionButtons.js +96 -0
- package/components/SearchBar/ByField.d.ts +3 -0
- package/components/SearchBar/ByField.js +193 -0
- package/components/SearchBar/ByKeyword.d.ts +3 -0
- package/components/SearchBar/ByKeyword.js +34 -0
- package/components/SearchBar/SearchField.d.ts +15 -0
- package/components/SearchBar/SearchField.js +25 -0
- package/components/SearchBar/SearchTags.d.ts +2 -0
- package/components/SearchBar/SearchTags.js +18 -0
- package/components/SearchBar/_FieldType.d.ts +8 -0
- package/components/SearchBar/_FieldType.js +45 -0
- package/components/SearchBar/_register.d.ts +65 -0
- package/components/SearchBar/_register.js +29 -0
- package/components/SearchBar/index.d.ts +134 -0
- package/components/SearchBar/index.js +33 -0
- package/components/Tables/ApiTable.d.ts +18 -0
- package/components/Tables/ApiTable.js +48 -0
- package/components/Tables/ApiTableModal.d.ts +22 -0
- package/components/Tables/ApiTableModal.js +73 -0
- package/components/Tables/Components/ActionBar.d.ts +56 -0
- package/components/Tables/Components/ActionBar.js +100 -0
- package/components/Tables/Components/Actions.d.ts +47 -0
- package/components/Tables/Components/Actions.js +91 -0
- package/components/Tables/Components/Summary.d.ts +11 -0
- package/components/Tables/Components/Summary.js +11 -0
- package/components/Tables/Components/index.d.ts +17 -0
- package/components/Tables/Components/index.js +19 -0
- package/components/Tables/STable.d.ts +5 -0
- package/components/Tables/STable.js +37 -0
- package/components/Tables/TopTable.d.ts +24 -0
- package/components/Tables/TopTable.js +157 -0
- package/components/Tables/TopTableModal.d.ts +5 -0
- package/components/Tables/TopTableModal.js +20 -0
- package/components/Tables/Util.d.ts +3 -0
- package/components/Tables/Util.js +41 -0
- package/components/Tables/VTable.d.ts +11 -0
- package/components/Tables/VTable.js +237 -0
- package/components/Tables/index.d.ts +81 -0
- package/components/Tables/index.js +20 -0
- package/components/TreeSelect/BaseTreeSelect.d.ts +33 -0
- package/components/TreeSelect/BaseTreeSelect.js +190 -0
- package/components/TreeSelect/DTreeSelect.d.ts +24 -0
- package/components/TreeSelect/DTreeSelect.js +66 -0
- package/components/TreeSelect/FTreeSelect.d.ts +11 -0
- package/components/TreeSelect/FTreeSelect.js +39 -0
- package/components/TreeSelect/STreeSelect.d.ts +14 -0
- package/components/TreeSelect/STreeSelect.js +52 -0
- package/components/TreeSelect/index.d.ts +94 -0
- package/components/TreeSelect/index.js +9 -0
- package/components/Trees/ActionTree.d.ts +54 -0
- package/components/Trees/ActionTree.js +657 -0
- package/components/Trees/BaseTree.d.ts +31 -0
- package/components/Trees/BaseTree.js +185 -0
- package/components/Trees/DTree.d.ts +48 -0
- package/components/Trees/DTree.js +142 -0
- package/components/Trees/FTree.d.ts +33 -0
- package/components/Trees/FTree.js +79 -0
- package/components/Trees/STree.d.ts +21 -0
- package/components/Trees/STree.js +92 -0
- package/components/Trees/index.d.ts +134 -0
- package/components/Trees/index.js +9 -0
- package/components/UForm/FormWrapper.d.ts +22 -0
- package/components/UForm/FormWrapper.js +270 -0
- package/components/UForm/UDescriptions.d.ts +5 -0
- package/components/UForm/UDescriptions.js +134 -0
- package/components/UForm/UForm.d.ts +33 -0
- package/components/UForm/UForm.js +484 -0
- package/components/UForm/UFormModal.d.ts +3 -0
- package/components/UForm/UFormModal.js +149 -0
- package/components/UForm/UInfo.d.ts +10 -0
- package/components/UForm/UInfo.js +75 -0
- package/components/UForm/UInfoModal.d.ts +3 -0
- package/components/UForm/UInfoModal.js +50 -0
- package/components/UForm/UModal.d.ts +3 -0
- package/components/UForm/UModal.js +24 -0
- package/components/UForm/_FieldType.d.ts +8 -0
- package/components/UForm/_FieldType.js +100 -0
- package/components/UForm/_FormUtils.d.ts +5 -0
- package/components/UForm/_FormUtils.js +75 -0
- package/components/UForm/_input.d.ts +59 -0
- package/components/UForm/_input.js +147 -0
- package/components/UForm/_register.d.ts +87 -0
- package/components/UForm/_register.js +44 -0
- package/components/UForm/index.d.ts +387 -0
- package/components/UForm/index.js +15 -0
- package/components/Upload/UploadFile.d.ts +3 -0
- package/components/Upload/UploadFile.js +40 -0
- package/components/Upload/UploadImage.d.ts +24 -0
- package/components/Upload/UploadImage.js +93 -0
- package/components/Upload/UploadModal.d.ts +50 -0
- package/components/Upload/UploadModal.js +140 -0
- package/components/Upload/index.d.ts +77 -0
- package/components/Upload/index.js +9 -0
- package/components/Upload/useUpload.d.ts +15 -0
- package/components/Upload/useUpload.js +93 -0
- package/components/_RegisterUtil.d.ts +1 -0
- package/components/_RegisterUtil.js +25 -0
- package/components/_adapt/Alert.d.ts +11 -0
- package/components/_adapt/Alert.js +43 -0
- package/components/_adapt/Button.d.ts +20 -0
- package/components/_adapt/Button.js +26 -0
- package/components/_adapt/Col.d.ts +53 -0
- package/components/_adapt/Col.js +90 -0
- package/components/_adapt/Collapse.d.ts +30 -0
- package/components/_adapt/Collapse.js +33 -0
- package/components/_adapt/Drawer.d.ts +12 -0
- package/components/_adapt/Drawer.js +11 -0
- package/components/_adapt/Dropdown.d.ts +15 -0
- package/components/_adapt/Dropdown.js +38 -0
- package/components/_adapt/Icon.d.ts +14 -0
- package/components/_adapt/Icon.js +34 -0
- package/components/_adapt/Image.d.ts +4 -0
- package/components/_adapt/Image.js +11 -0
- package/components/_adapt/Menu.d.ts +32 -0
- package/components/_adapt/Menu.js +25 -0
- package/components/_adapt/Modal.d.ts +23 -0
- package/components/_adapt/Modal.js +69 -0
- package/components/_adapt/Popconfirm.d.ts +5 -0
- package/components/_adapt/Popconfirm.js +34 -0
- package/components/_adapt/Popover.d.ts +5 -0
- package/components/_adapt/Popover.js +34 -0
- package/components/_adapt/Progress.d.ts +14 -0
- package/components/_adapt/Progress.js +56 -0
- package/components/_adapt/Row.d.ts +10 -0
- package/components/_adapt/Row.js +23 -0
- package/components/_adapt/Select.d.ts +14 -0
- package/components/_adapt/Select.js +47 -0
- package/components/_adapt/Tag.d.ts +7 -0
- package/components/_adapt/Tag.js +12 -0
- package/components/_adapt/Tooltip.d.ts +5 -0
- package/components/_adapt/Tooltip.js +11 -0
- package/components/_adapt/todo/ColorPicker.d.ts +3 -0
- package/components/_adapt/todo/ColorPicker.js +42 -0
- package/components/_adapt/todo/FloatButton.d.ts +2 -0
- package/components/_adapt/todo/FloatButton.js +6 -0
- package/components/_adapt/todo/Image.d.ts +2 -0
- package/components/_adapt/todo/Image.js +6 -0
- package/components/_adapt/todo/Segmented.d.ts +2 -0
- package/components/_adapt/todo/Segmented.js +6 -0
- package/components/_adapt/todo/Space.d.ts +2 -0
- package/components/_adapt/todo/Space.js +6 -0
- package/components/_adapt/utils.d.ts +12 -0
- package/components/_adapt/utils.js +93 -0
- package/components/_common/AutoComplete.d.ts +32 -0
- package/components/_common/AutoComplete.js +87 -0
- package/components/_common/CountUp.d.ts +38 -0
- package/components/_common/CountUp.js +60 -0
- package/components/_common/DateRange.d.ts +52 -0
- package/components/_common/DateRange.js +108 -0
- package/components/_common/HighLight.d.ts +15 -0
- package/components/_common/HighLight.js +37 -0
- package/components/_common/I18N.d.ts +7 -0
- package/components/_common/I18N.js +6 -0
- package/components/_common/Loading.d.ts +9 -0
- package/components/_common/Loading.js +52 -0
- package/components/_common/MonthRange.d.ts +46 -0
- package/components/_common/MonthRange.js +130 -0
- package/components/_common/PromiseLabel.d.ts +11 -0
- package/components/_common/PromiseLabel.js +34 -0
- package/components/_common/Role.d.ts +5 -0
- package/components/_common/Role.js +11 -0
- package/components/_common/Upagination.d.ts +21 -0
- package/components/_common/Upagination.js +106 -0
- package/components/_setup/Const.d.ts +205 -0
- package/components/_setup/Const.js +112 -0
- package/components/_setup/I18N/enUS.d.ts +1 -0
- package/components/_setup/I18N/enUS.js +106 -0
- package/components/_setup/I18N/index.d.ts +3 -0
- package/components/_setup/I18N/index.js +5 -0
- package/components/_setup/I18N/zhCN.d.ts +3 -0
- package/components/_setup/I18N/zhCN.js +109 -0
- package/components/_setup/I18N/zhHK.d.ts +1 -0
- package/components/_setup/I18N/zhHK.js +107 -0
- package/components/_setup/ICON/IconTypes.d.ts +1 -0
- package/components/_setup/ICON/IconTypes.js +10 -0
- package/components/_setup/SearchField/SearchFieldAdvance.d.ts +1 -0
- package/components/_setup/SearchField/SearchFieldAdvance.js +57 -0
- package/components/_setup/SearchField/SearchFieldDate.d.ts +1 -0
- package/components/_setup/SearchField/SearchFieldDate.js +186 -0
- package/components/_setup/SearchField/SearchFieldInput.d.ts +3 -0
- package/components/_setup/SearchField/SearchFieldInput.js +20 -0
- package/components/_setup/SearchField/SearchFieldSelect.d.ts +1 -0
- package/components/_setup/SearchField/SearchFieldSelect.js +106 -0
- package/components/_setup/SearchField/SearchFieldTree.d.ts +1 -0
- package/components/_setup/SearchField/SearchFieldTree.js +191 -0
- package/components/_setup/SelectBar/SelectList.d.ts +1 -0
- package/components/_setup/SelectBar/SelectList.js +21 -0
- package/components/_setup/SelectBar/SelectTree.d.ts +1 -0
- package/components/_setup/SelectBar/SelectTree.js +11 -0
- package/components/_setup/UForm/UFormAdvanceInput.d.ts +1 -0
- package/components/_setup/UForm/UFormAdvanceInput.js +300 -0
- package/components/_setup/UForm/UFormAdvanceSelect.d.ts +0 -0
- package/components/_setup/UForm/UFormAdvanceSelect.js +26 -0
- package/components/_setup/UForm/UFormCrontab.d.ts +1 -0
- package/components/_setup/UForm/UFormCrontab.js +199 -0
- package/components/_setup/UForm/UFormDate.d.ts +1 -0
- package/components/_setup/UForm/UFormDate.js +313 -0
- package/components/_setup/UForm/UFormInput.d.ts +1 -0
- package/components/_setup/UForm/UFormInput.js +159 -0
- package/components/_setup/UForm/UFormJSON.d.ts +1 -0
- package/components/_setup/UForm/UFormJSON.js +219 -0
- package/components/_setup/UForm/UFormOrg.d.ts +1 -0
- package/components/_setup/UForm/UFormOrg.js +121 -0
- package/components/_setup/UForm/UFormRole.d.ts +1 -0
- package/components/_setup/UForm/UFormRole.js +47 -0
- package/components/_setup/UForm/UFormSearch.d.ts +0 -0
- package/components/_setup/UForm/UFormSearch.js +35 -0
- package/components/_setup/UForm/UFormSelect.d.ts +1 -0
- package/components/_setup/UForm/UFormSelect.js +179 -0
- package/components/_setup/UForm/UFormTree.d.ts +0 -0
- package/components/_setup/UForm/UFormTree.js +134 -0
- package/components/_setup/UForm/UFormUpload.d.ts +1 -0
- package/components/_setup/UForm/UFormUpload.js +173 -0
- package/components/_setup/UForm/_utils.d.ts +11 -0
- package/components/_setup/UForm/_utils.js +41 -0
- package/components/_setup/index.d.ts +21 -0
- package/components/_setup/index.js +25 -0
- package/components/index.d.ts +7 -0
- package/components/index.js +16 -0
- package/deps/JsonView.d.ts +6 -0
- package/deps/JsonView.js +57 -0
- package/deps/SpringBoot.d.ts +4 -0
- package/deps/SpringBoot.js +18 -0
- package/deps/SpringCloud.d.ts +14 -0
- package/deps/SpringCloud.js +29 -0
- package/deps/_editor/advance/_Audio.d.ts +0 -0
- package/deps/_editor/advance/_Audio.js +1 -0
- package/deps/_editor/advance/_Image.d.ts +2 -0
- package/deps/_editor/advance/_Image.js +89 -0
- package/deps/_editor/advance/_Table.d.ts +0 -0
- package/deps/_editor/advance/_Table.js +1 -0
- package/deps/_editor/advance/_Video.d.ts +0 -0
- package/deps/_editor/advance/_Video.js +1 -0
- package/deps/_editor/base/Element.d.ts +5 -0
- package/deps/_editor/base/Element.js +43 -0
- package/deps/_editor/base/Leaf.d.ts +3 -0
- package/deps/_editor/base/Leaf.js +36 -0
- package/deps/_editor/base/Support.d.ts +2 -0
- package/deps/_editor/base/Support.js +78 -0
- package/deps/_editor/base/types.d.ts +156 -0
- package/deps/_editor/base/types.js +10 -0
- package/deps/_editor/i18n.d.ts +1 -0
- package/deps/_editor/i18n.js +31 -0
- package/deps/_editor/tools/Button.d.ts +6 -0
- package/deps/_editor/tools/Button.js +86 -0
- package/deps/_editor/tools/ToolBar.d.ts +8 -0
- package/deps/_editor/tools/ToolBar.js +10 -0
- package/deps/_editor/tools/_BlockButton.d.ts +4 -0
- package/deps/_editor/tools/_BlockButton.js +77 -0
- package/deps/_editor/tools/_InsertButton.d.ts +6 -0
- package/deps/_editor/tools/_InsertButton.js +65 -0
- package/deps/_editor/tools/_MarkButton.d.ts +6 -0
- package/deps/_editor/tools/_MarkButton.js +45 -0
- package/deps/_editor/tools/_TxtButton.d.ts +7 -0
- package/deps/_editor/tools/_TxtButton.js +187 -0
- package/deps/_editor/utils/ParseHtml.d.ts +0 -0
- package/deps/_editor/utils/ParseHtml.js +220 -0
- package/deps/api-audit.d.ts +1 -0
- package/deps/api-audit.js +6 -0
- package/deps/api-data.d.ts +0 -0
- package/deps/api-data.js +1 -0
- package/deps/apis/useSource.d.ts +0 -0
- package/deps/apis/useSource.js +152 -0
- package/deps/echarts.d.ts +26 -0
- package/deps/echarts.js +71 -0
- package/deps/editor.d.ts +34 -0
- package/deps/editor.js +111 -0
- package/deps/registerEditor.d.ts +1 -0
- package/deps/registerEditor.js +15 -0
- package/hooks/_list.d.ts +87 -0
- package/hooks/_list.js +13 -0
- package/hooks/index.d.ts +14 -0
- package/hooks/index.js +49 -0
- package/hooks/useAjax.d.ts +14 -0
- package/hooks/useAjax.js +43 -0
- package/hooks/useAjaxAction.d.ts +13 -0
- package/hooks/useAjaxAction.js +42 -0
- package/hooks/useAjaxQuery.d.ts +40 -0
- package/hooks/useAjaxQuery.js +81 -0
- package/hooks/useApi.d.ts +69 -0
- package/hooks/useApi.js +352 -0
- package/hooks/useApiGlobal.d.ts +0 -0
- package/hooks/useApiGlobal.js +5 -0
- package/hooks/useApp.d.ts +243 -0
- package/hooks/useApp.js +17 -0
- package/hooks/useArray.d.ts +21 -0
- package/hooks/useArray.js +182 -0
- package/hooks/useCounter.d.ts +0 -0
- package/hooks/useCounter.js +82 -0
- package/hooks/useDefault.d.ts +6 -0
- package/hooks/useDefault.js +16 -0
- package/hooks/useDoLoad.d.ts +17 -0
- package/hooks/useDoLoad.js +44 -0
- package/hooks/useEffectFunction.d.ts +8 -0
- package/hooks/useEffectFunction.js +16 -0
- package/hooks/useEffectOnce.d.ts +5 -0
- package/hooks/useEffectOnce.js +23 -0
- package/hooks/useError.d.ts +5 -0
- package/hooks/useError.js +21 -0
- package/hooks/useFirstMountState.d.ts +6 -0
- package/hooks/useFirstMountState.js +18 -0
- package/hooks/useGenkey.d.ts +2 -0
- package/hooks/useGenkey.js +16 -0
- package/hooks/useGetSet.d.ts +11 -0
- package/hooks/useGetSet.js +27 -0
- package/hooks/useGlobal.d.ts +19 -0
- package/hooks/useGlobal.js +62 -0
- package/hooks/useGlobal_back.d.ts +1 -0
- package/hooks/useGlobal_back.js +11 -0
- package/hooks/useHover.d.ts +8 -0
- package/hooks/useHover.js +49 -0
- package/hooks/useMemoPromise.d.ts +6 -0
- package/hooks/useMemoPromise.js +42 -0
- package/hooks/useModals.d.ts +40 -0
- package/hooks/useModals.js +98 -0
- package/hooks/useMountedState.d.ts +5 -0
- package/hooks/useMountedState.js +20 -0
- package/hooks/useOpenState.d.ts +28 -0
- package/hooks/useOpenState.js +23 -0
- package/hooks/usePromise.d.ts +7 -0
- package/hooks/usePromise.js +22 -0
- package/hooks/useQueue.d.ts +12 -0
- package/hooks/useQueue.js +34 -0
- package/hooks/useSetState.d.ts +9 -0
- package/hooks/useSetState.js +26 -0
- package/hooks/useStateList.d.ts +13 -0
- package/hooks/useStateList.js +59 -0
- package/hooks/useToggle.d.ts +6 -0
- package/hooks/useToggle.js +12 -0
- package/hooks/useUnmountPromise.d.ts +6 -0
- package/hooks/useUnmountPromise.js +36 -0
- package/hooks/useUpdate.d.ts +7 -0
- package/hooks/useUpdate.js +15 -0
- package/hooks/useUpdateEffect.d.ts +6 -0
- package/hooks/useUpdateEffect.js +18 -0
- package/index.d.ts +139 -0
- package/index.js +161 -0
- package/login/Base65.d.ts +8 -0
- package/login/Base65.js +65 -0
- package/login/Password.d.ts +61 -0
- package/login/Password.js +124 -0
- package/login/SM4.d.ts +20 -0
- package/login/SM4.js +193 -0
- package/login/cems/index.d.ts +10 -0
- package/login/cems/index.js +17 -0
- package/login/jit/index.d.ts +32 -0
- package/login/jit/index.js +180 -0
- package/login/jit/pnxclient.d.ts +54 -0
- package/login/jit/pnxclient.js +575 -0
- package/login/sso/index.d.ts +0 -0
- package/login/sso/index.js +0 -0
- package/login/vap/index.d.ts +1 -0
- package/login/vap/index.js +6 -0
- package/login/xrtx/index.d.ts +2 -0
- package/login/xrtx/index.js +33 -0
- package/package.json +1 -0
- package/screen/Comment.d.ts +31 -0
- package/screen/Comment.js +29 -0
- package/screen/EchartContent.d.ts +0 -0
- package/screen/EchartContent.js +63 -0
- package/screen/Page.d.ts +13 -0
- package/screen/Page.js +74 -0
- package/screen/index.d.ts +3 -0
- package/screen/index.js +9 -0
- package/screen/render.d.ts +5 -0
- package/screen/render.js +10 -0
- package/utils/Ajax.d.ts +85 -0
- package/utils/Ajax.js +147 -0
- package/utils/ArrayUtil.d.ts +22 -0
- package/utils/ArrayUtil.js +51 -0
- package/utils/CacheUtil.d.ts +20 -0
- package/utils/CacheUtil.js +86 -0
- package/utils/Const.d.ts +14 -0
- package/utils/Const.js +37 -0
- package/utils/CustomApp.d.ts +242 -0
- package/utils/CustomApp.js +18 -0
- package/utils/EventUtil.d.ts +22 -0
- package/utils/EventUtil.js +63 -0
- package/utils/Format.d.ts +28 -0
- package/utils/Format.js +206 -0
- package/utils/Global.d.ts +276 -0
- package/utils/Global.js +125 -0
- package/utils/Logger.d.ts +5 -0
- package/utils/Logger.js +32 -0
- package/utils/PageUtil.d.ts +24 -0
- package/utils/PageUtil.js +87 -0
- package/utils/Renders/ApiGetRender.d.ts +23 -0
- package/utils/Renders/ApiGetRender.js +192 -0
- package/utils/Renders/ApiPostRender.d.ts +17 -0
- package/utils/Renders/ApiPostRender.js +161 -0
- package/utils/Renders/DateRender.d.ts +8 -0
- package/utils/Renders/DateRender.js +35 -0
- package/utils/Renders/DictRender.d.ts +23 -0
- package/utils/Renders/DictRender.js +258 -0
- package/utils/Renders/FileRender.d.ts +3 -0
- package/utils/Renders/FileRender.js +46 -0
- package/utils/Renders/ListRender.d.ts +23 -0
- package/utils/Renders/ListRender.js +111 -0
- package/utils/Renders/NumberRender.d.ts +19 -0
- package/utils/Renders/NumberRender.js +65 -0
- package/utils/Renders/StatusRender.d.ts +12 -0
- package/utils/Renders/StatusRender.js +68 -0
- package/utils/Renders/StringRender.d.ts +14 -0
- package/utils/Renders/StringRender.js +194 -0
- package/utils/Renders/_define.d.ts +26 -0
- package/utils/Renders/_define.js +64 -0
- package/utils/Renders/index.d.ts +9 -0
- package/utils/Renders/index.js +42 -0
- package/utils/StringUtil.d.ts +124 -0
- package/utils/StringUtil.js +352 -0
- package/utils/TreeUtil.d.ts +42 -0
- package/utils/TreeUtil.js +69 -0
- package/utils/VAP.d.ts +16 -0
- package/utils/VAP.js +78 -0
- package/utils/XHR.d.ts +9 -0
- package/utils/XHR.js +53 -0
- package/utils/_AjaxUtil.d.ts +11 -0
- package/utils/_AjaxUtil.js +45 -0
- package/utils/_Support.d.ts +22 -0
- package/utils/_Support.js +106 -0
- package/utils/i18n.d.ts +60 -0
- package/utils/i18n.js +184 -0
- package/utils/index.d.ts +19 -0
- package/utils/index.js +54 -0
- package/utils/screenful.d.ts +15 -0
- package/utils/screenful.js +64 -0
- package/widget/index.d.ts +39 -0
- package/widget/index.js +21 -0
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
// import React from 'react';
|
|
2
|
+
// import _ from 'lodash';
|
|
3
|
+
// import { TreeSelect } from 'antd';
|
|
4
|
+
// import { registerInputType, UFormInput } from 'vap/_common/UForm';
|
|
5
|
+
// import { Option } from 'vap/_common/UForm/interface';
|
|
6
|
+
// import { TreeNode } from 'antd/lib/tree-select/interface';
|
|
7
|
+
// import { MULTI_CHOOSE_SHOW } from './Select';
|
|
8
|
+
// const optionToTree = (options: Option[]): TreeNode[] => {
|
|
9
|
+
// return options.map((item) => {
|
|
10
|
+
// let result: TreeNode = { value: item.value, title: item.name, disabled: item.disabled };
|
|
11
|
+
// if (_.isArray(item.children) && item.children.length > 0) {
|
|
12
|
+
// result.children = optionToTree(item.children)
|
|
13
|
+
// }
|
|
14
|
+
// return result;
|
|
15
|
+
// })
|
|
16
|
+
// }
|
|
17
|
+
// const flatOptionToTree = (options: Option[], parent: string): TreeNode[] => {
|
|
18
|
+
// return options.map(item => {
|
|
19
|
+
// let result: TreeNode = { value: item.value, title: item.name };
|
|
20
|
+
// if (_.isArray(item.children) && item.children.length > 0) {
|
|
21
|
+
// result.children = optionToTree(item.children)
|
|
22
|
+
// }
|
|
23
|
+
// return result;
|
|
24
|
+
// })
|
|
25
|
+
// }
|
|
26
|
+
// registerInputType('stree-select', class extends UFormInput {
|
|
27
|
+
// render() {
|
|
28
|
+
// const { value, field, disabled } = this.props;
|
|
29
|
+
// let params: any = { disabled, value, showSearch: true, searchPlaceholder: '输入关键字过滤', treeDefaultExpandAll: true }
|
|
30
|
+
// if (field.rule && _.find(field.rule, { required: true })) {
|
|
31
|
+
// params.allowClear = false;
|
|
32
|
+
// }
|
|
33
|
+
// if (!_.has(field, 'config.treeData')) {
|
|
34
|
+
// if (_.has(field, 'options')) {
|
|
35
|
+
// params.treeData = optionToTree(field.options);
|
|
36
|
+
// } else {
|
|
37
|
+
// params.treeData = []
|
|
38
|
+
// }
|
|
39
|
+
// }
|
|
40
|
+
// return <TreeSelect
|
|
41
|
+
// dropdownStyle={{ maxHeight: 389 ,overflow:'auto'}}
|
|
42
|
+
// {...params}
|
|
43
|
+
// {...field.config}
|
|
44
|
+
// placeholder={this.getSelectTip()}
|
|
45
|
+
// multiple={false}
|
|
46
|
+
// value={value}
|
|
47
|
+
// treeCheckable={false}
|
|
48
|
+
// onChange={value => this.onChange(value)}
|
|
49
|
+
// />
|
|
50
|
+
// }
|
|
51
|
+
// })
|
|
52
|
+
// registerInputType('dtree-select', class extends UFormInput {
|
|
53
|
+
// render() {
|
|
54
|
+
// const { value, field, disabled } = this.props;
|
|
55
|
+
// let selectKey = [];
|
|
56
|
+
// if (value) {
|
|
57
|
+
// selectKey = value.split(',').map(item => item.trim())
|
|
58
|
+
// }
|
|
59
|
+
// let params: any = { disabled, value, showSearch: true, searchPlaceholder: '输入关键字过滤', treeDefaultExpandAll: true }
|
|
60
|
+
// if (field.rule && _.find(field.rule, { required: true })) {
|
|
61
|
+
// params.allowClear = false;
|
|
62
|
+
// }
|
|
63
|
+
// if (!_.has(field, 'config.treeData')) {
|
|
64
|
+
// if (_.has(field, 'options')) {
|
|
65
|
+
// params.treeData = optionToTree(field.options);
|
|
66
|
+
// } else {
|
|
67
|
+
// params.treeData = []
|
|
68
|
+
// }
|
|
69
|
+
// }
|
|
70
|
+
// return <TreeSelect
|
|
71
|
+
// searchPlaceholder={`输入关键字过滤`}
|
|
72
|
+
// {...params}
|
|
73
|
+
// {...field.config}
|
|
74
|
+
// value={selectKey}
|
|
75
|
+
// placeholder={this.getSelectTip()}
|
|
76
|
+
// multiple={true}
|
|
77
|
+
// treeCheckable
|
|
78
|
+
// onChange={value => this.onChange((value && (value as string[]).length) ? (value as string[]).join(',') : undefined)}
|
|
79
|
+
// />
|
|
80
|
+
// }
|
|
81
|
+
// }, {
|
|
82
|
+
// show: MULTI_CHOOSE_SHOW
|
|
83
|
+
// })
|
|
84
|
+
// // registerInputType('flat-tree-select', class extends UFormInput {
|
|
85
|
+
// // render() {
|
|
86
|
+
// // const { value, field, disabled } = this.props;
|
|
87
|
+
// // let params: any = { disabled, value, showSearch: true }
|
|
88
|
+
// // if (field.rule && _.find(field.rule, { required: true })) {
|
|
89
|
+
// // params.allowClear = false;
|
|
90
|
+
// // }
|
|
91
|
+
// // if (!_.has(field, 'config.treeData')) {
|
|
92
|
+
// // if (_.has(field, 'options')) {
|
|
93
|
+
// // params.treeData = flatOptionToTree(field.options);
|
|
94
|
+
// // } else {
|
|
95
|
+
// // params.treeData = []
|
|
96
|
+
// // }
|
|
97
|
+
// // }
|
|
98
|
+
// // return <TreeSelect
|
|
99
|
+
// // {...params}
|
|
100
|
+
// // {...field.config}
|
|
101
|
+
// // placeholder={this.getSelectTip()}
|
|
102
|
+
// // multiple={false}
|
|
103
|
+
// // treeCheckable={false}
|
|
104
|
+
// // onChange={value => this.onChange(value)}
|
|
105
|
+
// // />
|
|
106
|
+
// // }
|
|
107
|
+
// // })
|
|
108
|
+
// // registerInputType('multi-flat-tree-select', class extends UFormInput {
|
|
109
|
+
// // render() {
|
|
110
|
+
// // const { value, field, disabled } = this.props;
|
|
111
|
+
// // let selectKey = [];
|
|
112
|
+
// // if (value) {
|
|
113
|
+
// // selectKey = value.split(',').map(item => item.trim())
|
|
114
|
+
// // }
|
|
115
|
+
// // let params: any = { disabled, value: selectKey, showSearch: true }
|
|
116
|
+
// // if (field.rule && _.find(field.rule, { required: true })) {
|
|
117
|
+
// // params.allowClear = false;
|
|
118
|
+
// // }
|
|
119
|
+
// // if (!_.has(field, 'config.treeData')) {
|
|
120
|
+
// // if (_.has(field, 'options')) {
|
|
121
|
+
// // params.treeData = flatOptionToTree(field.options);
|
|
122
|
+
// // } else {
|
|
123
|
+
// // params.treeData = []
|
|
124
|
+
// // }
|
|
125
|
+
// // }
|
|
126
|
+
// // return <TreeSelect
|
|
127
|
+
// // {...params}
|
|
128
|
+
// // placeholder={this.getSelectTip()}
|
|
129
|
+
// // multiple={true}
|
|
130
|
+
// // treeCheckable
|
|
131
|
+
// // onChange={value => this.onChange((value as string[]).join(','))}
|
|
132
|
+
// // />
|
|
133
|
+
// // }
|
|
134
|
+
// // })
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const react_1 = __importDefault(require("react"));
|
|
7
|
+
const lodash_1 = __importDefault(require("lodash"));
|
|
8
|
+
const Upload_1 = require("../../Upload");
|
|
9
|
+
const _register_1 = require("../../UForm/_register");
|
|
10
|
+
const _input_1 = require("../../UForm/_input");
|
|
11
|
+
const utils_1 = require("../../../utils");
|
|
12
|
+
const utils_2 = require("../../../utils");
|
|
13
|
+
const DefaultResultChange = (result) => result.fileId || result.guid || result.id;
|
|
14
|
+
const getUploadValue = (values) => {
|
|
15
|
+
if (!lodash_1.default.isArray(values))
|
|
16
|
+
return null;
|
|
17
|
+
if (values[0] == null || values[0] == undefined)
|
|
18
|
+
return null;
|
|
19
|
+
return {
|
|
20
|
+
fileId: values[0],
|
|
21
|
+
fileName: (values.length > 1 && values[1] != null) ? values[1] : values[0]
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
(0, _register_1.registerFormField)('file', (props) => {
|
|
25
|
+
const { field, disabled, value, } = props;
|
|
26
|
+
const fileProps = {
|
|
27
|
+
disabled,
|
|
28
|
+
onChange: (data, file) => {
|
|
29
|
+
const change = lodash_1.default.has(field.config, 'onChange') && lodash_1.default.isFunction(field.config.onChange) ? field.config.onChange : DefaultResultChange;
|
|
30
|
+
const fileId = change(data);
|
|
31
|
+
const val = { [fields[0]]: fileId };
|
|
32
|
+
if (fields.length > 1) {
|
|
33
|
+
val[fields[1]] = file.name || file.fileName;
|
|
34
|
+
}
|
|
35
|
+
props.onChange(val);
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
const [fields, values] = (0, _input_1.getMultiFieldValues)(field, value);
|
|
39
|
+
let uploadValue = getUploadValue(values);
|
|
40
|
+
if (uploadValue != null)
|
|
41
|
+
fileProps.value = uploadValue;
|
|
42
|
+
return react_1.default.createElement(Upload_1.UploadFile, Object.assign({}, fileProps));
|
|
43
|
+
}, {
|
|
44
|
+
isMultiple: true,
|
|
45
|
+
render: (value, data, field) => {
|
|
46
|
+
const [fields, values] = (0, _input_1.getMultiFieldValues)(field, data);
|
|
47
|
+
return utils_1.Renders.fileRender(values[0], values[1]);
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
const RATIO = 1280 / 1920;
|
|
51
|
+
(0, _register_1.registerFormField)('img', (props) => {
|
|
52
|
+
const { field, disabled, value, } = props;
|
|
53
|
+
const fileProps = {
|
|
54
|
+
disabled,
|
|
55
|
+
onChange: (data) => {
|
|
56
|
+
const change = lodash_1.default.has(field.config, 'onChange') && lodash_1.default.isFunction(field.config.onChange) ? field.config.onChange : DefaultResultChange;
|
|
57
|
+
const fileId = change(data);
|
|
58
|
+
props.onChange(fileId);
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
if (value) {
|
|
62
|
+
fileProps.value = { fileId: value };
|
|
63
|
+
}
|
|
64
|
+
return react_1.default.createElement(Upload_1.UploadImage, Object.assign({}, field.config, fileProps));
|
|
65
|
+
}, {
|
|
66
|
+
breakCol: true,
|
|
67
|
+
render: (value, data, field) => {
|
|
68
|
+
const style = {
|
|
69
|
+
cursor: 'pointer', borderRadius: '6px'
|
|
70
|
+
};
|
|
71
|
+
if (lodash_1.default.has(field.config, 'width')) {
|
|
72
|
+
style.width = field.config.width;
|
|
73
|
+
if (lodash_1.default.has(field.config, 'height')) {
|
|
74
|
+
style.height = field.config.height;
|
|
75
|
+
}
|
|
76
|
+
else {
|
|
77
|
+
style.height = field.config.width * RATIO;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
else if (lodash_1.default.has(field.config, 'height')) {
|
|
81
|
+
style.height = field.config.height;
|
|
82
|
+
if (lodash_1.default.has(field.config, 'width')) {
|
|
83
|
+
style.width = field.config.width;
|
|
84
|
+
}
|
|
85
|
+
else {
|
|
86
|
+
style.width = field.config.height / RATIO;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
else {
|
|
90
|
+
style.height = 80;
|
|
91
|
+
style.width = 80;
|
|
92
|
+
}
|
|
93
|
+
return react_1.default.createElement("img", { src: utils_2.GLOBAL.CONFIG.UPLOAD.PREVIEW + value, style: style, onClick: (evt) => utils_2.PageUtil.stopEvent(evt, () => window.open(utils_2.GLOBAL.CONFIG.UPLOAD.PREVIEW + value, '_blank')) });
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
// registerFormField('multi-file', (props) => {
|
|
97
|
+
// return <div></div>
|
|
98
|
+
// });
|
|
99
|
+
// registerInputType('multi-file', class extends UFormInput {
|
|
100
|
+
// state = {
|
|
101
|
+
// fileList: [],
|
|
102
|
+
// };
|
|
103
|
+
// componentDidMount() {
|
|
104
|
+
// const { value } = this.props;
|
|
105
|
+
// if (value) {
|
|
106
|
+
// try {
|
|
107
|
+
// let list = JSON.parse(value)
|
|
108
|
+
// if (_.isArray(list)) {
|
|
109
|
+
// const fileList = list.map(item => {
|
|
110
|
+
// return { uid: item.uid, name: item.name, url: `/api/fs/view/${item.uid}` }
|
|
111
|
+
// });
|
|
112
|
+
// this.setState({ fileList });
|
|
113
|
+
// }
|
|
114
|
+
// } catch {
|
|
115
|
+
// console.error('文件列表解析失败')
|
|
116
|
+
// }
|
|
117
|
+
// }
|
|
118
|
+
// }
|
|
119
|
+
// handleChange(info: UploadChangeParam) {
|
|
120
|
+
// this.setState({ fileList: info.fileList }, () => {
|
|
121
|
+
// if (info.file.status == 'removed') {
|
|
122
|
+
// this.props.onChange({
|
|
123
|
+
// [this.props.field.field]: JSON.stringify(info.fileList.filter(item => !_.has(item, 'status')))
|
|
124
|
+
// })
|
|
125
|
+
// return;
|
|
126
|
+
// }
|
|
127
|
+
// if (info.file.status != 'done') return;
|
|
128
|
+
// let idx = _.findIndex(info.fileList, { uid: info.file.uid });
|
|
129
|
+
// let files = [...info.fileList.slice(0, idx), {
|
|
130
|
+
// uid: info.file.response.data.guid,
|
|
131
|
+
// name: info.file.response.data.orginName,
|
|
132
|
+
// url: `/api/fs/view/${info.file.response.data.guid}`,
|
|
133
|
+
// }, ...info.fileList.slice(idx + 1)]
|
|
134
|
+
// this.setState({ fileList: files });
|
|
135
|
+
// this.props.onChange({
|
|
136
|
+
// [this.props.field.field]: JSON.stringify(
|
|
137
|
+
// _.filter(files, item => !_.has(item, 'status')).map((item: any) => ({ uid: item.uid, name: item.name }))
|
|
138
|
+
// )
|
|
139
|
+
// })
|
|
140
|
+
// });
|
|
141
|
+
// };
|
|
142
|
+
// render(): React.ReactNode {
|
|
143
|
+
// return <Upload
|
|
144
|
+
// action='/api/fs/upload'
|
|
145
|
+
// multiple
|
|
146
|
+
// showUploadList={{
|
|
147
|
+
// showPreviewIcon: true,
|
|
148
|
+
// showDownloadIcon: true,
|
|
149
|
+
// showRemoveIcon: true,
|
|
150
|
+
// }}
|
|
151
|
+
// onChange={info => this.handleChange(info)}
|
|
152
|
+
// fileList={this.state.fileList as any}
|
|
153
|
+
// >
|
|
154
|
+
// <Button icon="upload">请上传附件,支持多个</Button>
|
|
155
|
+
// </Upload >
|
|
156
|
+
// }
|
|
157
|
+
// }, {
|
|
158
|
+
// breakCol: true,
|
|
159
|
+
// show: (value) => {
|
|
160
|
+
// if (value == null) return <React.Fragment />
|
|
161
|
+
// try {
|
|
162
|
+
// let files = JSON.parse(value)
|
|
163
|
+
// if (_.isArray(files)) {
|
|
164
|
+
// return <ul className='multi-file-show'>
|
|
165
|
+
// {files.map(item => <li>{renderFile(item)}</li>)}
|
|
166
|
+
// </ul>
|
|
167
|
+
// }
|
|
168
|
+
// } catch {
|
|
169
|
+
// console.error('签收人JSON格式错误')
|
|
170
|
+
// }
|
|
171
|
+
// return <React.Fragment />
|
|
172
|
+
// }
|
|
173
|
+
// })
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { UFormField } from '../../UForm';
|
|
2
|
+
import type { ValidationRule } from 'antd/es/form/Form';
|
|
3
|
+
import type { PlainObject } from '../../../basetype';
|
|
4
|
+
/**
|
|
5
|
+
* 特殊字符校验(不包含网站符号)
|
|
6
|
+
*/
|
|
7
|
+
export declare const ILLEGAL_CHAR_VALIDATER: (field: UFormField) => ValidationRule[];
|
|
8
|
+
/**
|
|
9
|
+
* 多选,render,
|
|
10
|
+
*/
|
|
11
|
+
export declare const MULTI_CHOOSE_SHOW: (value: any, data: PlainObject, field: UFormField) => string;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MULTI_CHOOSE_SHOW = exports.ILLEGAL_CHAR_VALIDATER = void 0;
|
|
4
|
+
const utils_1 = require("../../../utils");
|
|
5
|
+
const Const_1 = require("../Const");
|
|
6
|
+
/**
|
|
7
|
+
* 特殊字符校验(不包含网站符号)
|
|
8
|
+
*/
|
|
9
|
+
const ILLEGAL_CHAR_VALIDATER = (field) => {
|
|
10
|
+
if (!utils_1.GLOBAL.CONFIG.FORM.ILLEGAL_CHAR_VALIDATE)
|
|
11
|
+
return [];
|
|
12
|
+
if (field.ignore || field.config && field.config.ignore)
|
|
13
|
+
return [];
|
|
14
|
+
return [{
|
|
15
|
+
validator: (rule, value, callback) => {
|
|
16
|
+
if (utils_1.GLOBAL.CONFIG.FORM.ILLEGAL_CHAR_REGEXP.test(value)) {
|
|
17
|
+
callback(utils_1.i18n.txt(Const_1.V.ERR_ILLEGAL_CHAR));
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
callback();
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
}];
|
|
24
|
+
};
|
|
25
|
+
exports.ILLEGAL_CHAR_VALIDATER = ILLEGAL_CHAR_VALIDATER;
|
|
26
|
+
/**
|
|
27
|
+
* 多选,render,
|
|
28
|
+
*/
|
|
29
|
+
const MULTI_CHOOSE_SHOW = (value, data, field) => {
|
|
30
|
+
if (value == '')
|
|
31
|
+
return '';
|
|
32
|
+
let MAP = new Map();
|
|
33
|
+
field.options.map(item => MAP.set(item.value + '', item.label));
|
|
34
|
+
let values = [];
|
|
35
|
+
value.split(',').map(key => {
|
|
36
|
+
if (MAP.has(key))
|
|
37
|
+
values.push(MAP.get(key));
|
|
38
|
+
});
|
|
39
|
+
return values.join(',');
|
|
40
|
+
};
|
|
41
|
+
exports.MULTI_CHOOSE_SHOW = MULTI_CHOOSE_SHOW;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import './I18N/index';
|
|
2
|
+
import './ICON/IconTypes';
|
|
3
|
+
import './SelectBar/SelectTree';
|
|
4
|
+
import './SelectBar/SelectList';
|
|
5
|
+
import './SearchField/SearchFieldInput';
|
|
6
|
+
import './SearchField/SearchFieldSelect';
|
|
7
|
+
import './SearchField/SearchFieldDate';
|
|
8
|
+
import './SearchField/SearchFieldTree';
|
|
9
|
+
import './SearchField/SearchFieldAdvance';
|
|
10
|
+
import './UForm/UFormInput';
|
|
11
|
+
import './UForm/UFormSelect';
|
|
12
|
+
import './UForm/UFormDate';
|
|
13
|
+
import './UForm/UFormUpload';
|
|
14
|
+
import './UForm/UFormTree';
|
|
15
|
+
import './UForm/UFormRole';
|
|
16
|
+
import './UForm/UFormOrg';
|
|
17
|
+
import './UForm/UFormSearch';
|
|
18
|
+
import './UForm/UFormJSON';
|
|
19
|
+
import './UForm/UFormCrontab';
|
|
20
|
+
import './UForm/UFormAdvanceInput';
|
|
21
|
+
import './UForm/UFormAdvanceSelect';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
// 内置组件一键注册
|
|
4
|
+
require("./I18N/index"); // 内置I18N
|
|
5
|
+
require("./ICON/IconTypes"); // 图标
|
|
6
|
+
require("./SelectBar/SelectTree"); // 选择框,树选择
|
|
7
|
+
require("./SelectBar/SelectList"); // 选择框,列表选择
|
|
8
|
+
//
|
|
9
|
+
require("./SearchField/SearchFieldInput"); // 搜索框: 输入
|
|
10
|
+
require("./SearchField/SearchFieldSelect"); // 搜索框: 选择
|
|
11
|
+
require("./SearchField/SearchFieldDate"); // 搜索框: 日期
|
|
12
|
+
require("./SearchField/SearchFieldTree"); // 搜索框: 树
|
|
13
|
+
require("./SearchField/SearchFieldAdvance"); // 搜索框: 高级类型
|
|
14
|
+
require("./UForm/UFormInput"); // 基础类型:输入
|
|
15
|
+
require("./UForm/UFormSelect"); // 基础类型:选择
|
|
16
|
+
require("./UForm/UFormDate"); // 基础类型:日期
|
|
17
|
+
require("./UForm/UFormUpload"); // 基础类型:上传
|
|
18
|
+
require("./UForm/UFormTree"); // 高阶类型:树选择
|
|
19
|
+
require("./UForm/UFormRole"); // 高阶类型:角色
|
|
20
|
+
require("./UForm/UFormOrg"); // 高阶类型:机构
|
|
21
|
+
require("./UForm/UFormSearch"); // 高阶类型:自动填充/自动搜索(API接口获取数据)
|
|
22
|
+
require("./UForm/UFormJSON"); // 高阶类型:JSON Array, JSON Object
|
|
23
|
+
require("./UForm/UFormCrontab"); // 高阶类型:Crontab
|
|
24
|
+
require("./UForm/UFormAdvanceInput"); // 高阶类型:高级输入
|
|
25
|
+
require("./UForm/UFormAdvanceSelect"); // 高阶类型:高级选择
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { registerFormField, } from './UForm/_register';
|
|
2
|
+
export { getPlaceholder, getMultiFieldValues, registerApiTableSelector } from './UForm/_input';
|
|
3
|
+
export type { FormFieldComponent, FormFieldProps, FormFieldOptions, } from './UForm/_register';
|
|
4
|
+
export { registerSearchField, } from './SearchBar/_register';
|
|
5
|
+
export type { SearchFieldComponent, SearchFieldProps, SearchFieldOptions, } from './SearchBar/_register';
|
|
6
|
+
export { registerSelectBar } from './Box/_register';
|
|
7
|
+
export type { SelectBarComponent, SelectBarProps, SelectBarOptions, } from './Box/_register';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.registerSelectBar = exports.registerSearchField = exports.registerApiTableSelector = exports.getMultiFieldValues = exports.getPlaceholder = exports.registerFormField = void 0;
|
|
4
|
+
// UForm 表单输入字段
|
|
5
|
+
var _register_1 = require("./UForm/_register");
|
|
6
|
+
Object.defineProperty(exports, "registerFormField", { enumerable: true, get: function () { return _register_1.registerFormField; } });
|
|
7
|
+
var _input_1 = require("./UForm/_input"); // 常用方法
|
|
8
|
+
Object.defineProperty(exports, "getPlaceholder", { enumerable: true, get: function () { return _input_1.getPlaceholder; } });
|
|
9
|
+
Object.defineProperty(exports, "getMultiFieldValues", { enumerable: true, get: function () { return _input_1.getMultiFieldValues; } });
|
|
10
|
+
Object.defineProperty(exports, "registerApiTableSelector", { enumerable: true, get: function () { return _input_1.registerApiTableSelector; } });
|
|
11
|
+
// SearchField 搜索条件输入字段
|
|
12
|
+
var _register_2 = require("./SearchBar/_register");
|
|
13
|
+
Object.defineProperty(exports, "registerSearchField", { enumerable: true, get: function () { return _register_2.registerSearchField; } });
|
|
14
|
+
// SelectBar - 左侧边栏
|
|
15
|
+
var _register_3 = require("./Box/_register");
|
|
16
|
+
Object.defineProperty(exports, "registerSelectBar", { enumerable: true, get: function () { return _register_3.registerSelectBar; } });
|
package/deps/JsonView.js
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.JsonView = void 0;
|
|
30
|
+
// 依赖
|
|
31
|
+
const react_1 = __importStar(require("react"));
|
|
32
|
+
const lodash_1 = __importDefault(require("lodash"));
|
|
33
|
+
const react_json_view_1 = __importDefault(require("react-json-view"));
|
|
34
|
+
const JsonView = props => {
|
|
35
|
+
const jsonViewProps = (0, react_1.useMemo)(() => {
|
|
36
|
+
let params = Object.assign(Object.assign({ name: false }, props), { src: props.data });
|
|
37
|
+
if (props.data == null)
|
|
38
|
+
return params;
|
|
39
|
+
// Auto Detect Collapse Level
|
|
40
|
+
if (!lodash_1.default.has(props, 'collapsed')) {
|
|
41
|
+
if (lodash_1.default.isArray(props.data)) {
|
|
42
|
+
if (props.data.length >= 2) {
|
|
43
|
+
params.collapsed = 1;
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
params.collapsed = 2;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
params.collapsed = 2;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
return params;
|
|
54
|
+
}, [props.data]);
|
|
55
|
+
return react_1.default.createElement(react_json_view_1.default, Object.assign({}, jsonViewProps));
|
|
56
|
+
};
|
|
57
|
+
exports.JsonView = JsonView;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* 只用于单机版的组件 (Spring Boot)
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Link = void 0;
|
|
7
|
+
// export const CEMS = {};
|
|
8
|
+
const Link = () => {
|
|
9
|
+
};
|
|
10
|
+
exports.Link = Link;
|
|
11
|
+
// function draw({
|
|
12
|
+
// shape: Shape,
|
|
13
|
+
// xPos: number = 100,
|
|
14
|
+
// yPos: number = 100
|
|
15
|
+
// }) {
|
|
16
|
+
// let myShape = shape; // 报错
|
|
17
|
+
// let x = xPos; // 报错
|
|
18
|
+
// }
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 只用于微服务版的组件 (SpringCloud)
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* 微服务组件说明:
|
|
6
|
+
* 并不需要显示引入其它依赖,但仅适用于 微服务(Spring Cloud)项目中使用
|
|
7
|
+
* 单机项目中使用时,
|
|
8
|
+
*/
|
|
9
|
+
import React from 'react';
|
|
10
|
+
export declare const Service: () => React.JSX.Element;
|
|
11
|
+
/**
|
|
12
|
+
* 安全域
|
|
13
|
+
*/
|
|
14
|
+
export declare const Domain: () => React.JSX.Element;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* 只用于微服务版的组件 (SpringCloud)
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* 微服务组件说明:
|
|
7
|
+
* 并不需要显示引入其它依赖,但仅适用于 微服务(Spring Cloud)项目中使用
|
|
8
|
+
* 单机项目中使用时,
|
|
9
|
+
*/
|
|
10
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
11
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.Domain = exports.Service = void 0;
|
|
15
|
+
const react_1 = __importDefault(require("react"));
|
|
16
|
+
/**
|
|
17
|
+
* 服务容器
|
|
18
|
+
*/
|
|
19
|
+
const utils_1 = require("../utils");
|
|
20
|
+
utils_1.Ajax.SESSION('/api-common/services');
|
|
21
|
+
const Service = () => {
|
|
22
|
+
return utils_1.Const.NONE;
|
|
23
|
+
};
|
|
24
|
+
exports.Service = Service;
|
|
25
|
+
/**
|
|
26
|
+
* 安全域
|
|
27
|
+
*/
|
|
28
|
+
const Domain = () => react_1.default.createElement("div", null);
|
|
29
|
+
exports.Domain = Domain;
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// Audio Support Todo
|