@cloud-app-dev/vidc 2.2.0-alpha.7 → 3.0.0
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/.eslintignore +1 -3
- package/.eslintrc +3 -0
- package/.prettierignore +1 -0
- package/.umirc.ts +74 -74
- package/es/AppContext/Sync.d.ts +3 -2
- package/es/AppContext/Sync.js +11 -2
- package/es/AppContext/index.js +63 -9
- package/es/AppContext/interface.d.ts +10 -1
- package/es/AppContext/static.d.ts +2 -0
- package/es/AppContext/static.js +5 -1
- package/es/Box/InfoBox/index.css +5 -6
- package/es/Box/TwoColumnBox/index.css +17 -24
- package/es/Box/TwoColumnBox/index.js +1 -4
- package/es/Box/index.css +1 -1
- package/es/Config/interface.d.ts +2 -1
- package/es/ConfigContext/index.d.ts +1 -1
- package/es/DomMove/demo.d.ts +2 -0
- package/es/DomMove/demo.js +16 -0
- package/es/DomMove/index.d.ts +16 -0
- package/es/DomMove/index.js +145 -0
- package/es/DomMove/utils.d.ts +8 -0
- package/es/{Picture/component/MoveContent → DomMove}/utils.js +19 -0
- package/es/Drawer/index.d.ts +2 -2
- package/es/Drawer/interface.d.ts +4 -174
- package/es/ErrorBoundary/index.d.ts +18 -0
- package/es/ErrorBoundary/index.js +84 -0
- package/es/List/DynamicGridList/Demo.js +40 -27
- package/es/List/DynamicGridList/index.d.ts +19 -18
- package/es/List/DynamicGridList/index.js +36 -36
- package/es/List/DynamicList/index.css +15 -0
- package/es/List/DynamicList/index.d.ts +14 -0
- package/es/List/DynamicList/index.js +105 -0
- package/es/List/DynamicList/interface.d.ts +19 -0
- package/es/List/DynamicList/utils.d.ts +4 -0
- package/es/List/DynamicList/utils.js +6 -0
- package/es/List/GridList/Demo.js +27 -4
- package/es/List/GridList/index.css +1 -0
- package/es/List/GridList/index.d.ts +2 -2
- package/es/List/GridList/index.js +8 -12
- package/es/List/GridList/interface.d.ts +1 -1
- package/es/List/VList/index.js +2 -3
- package/es/List/index.css +3 -55
- package/es/List/index.d.ts +5 -6
- package/es/List/index.js +15 -154
- package/es/List/interface.d.ts +3 -61
- package/es/LoaderApp/index.d.ts +1 -1
- package/es/LoaderApp/index.js +27 -46
- package/es/LoaderApp/interface.d.ts +3 -0
- package/es/LoaderApp/loader.d.ts +6 -7
- package/es/LoaderApp/loader.js +20 -30
- package/es/LoaderApp/sandbox.back.d.ts +18 -0
- package/es/LoaderApp/sandbox.back.js +356 -0
- package/es/LoaderApp/sandbox.d.ts +12 -0
- package/es/LoaderApp/sandbox.js +110 -0
- package/es/LoaderApp/utils.d.ts +5 -1
- package/es/LoaderApp/utils.js +98 -2
- package/es/Map/AMap.d.ts +1572 -0
- package/es/Map/BasicMap/AMapInstance.d.ts +15 -0
- package/es/Map/BasicMap/AMapInstance.js +66 -0
- package/es/Map/BasicMap/LeafletInstance.d.ts +15 -0
- package/es/Map/BasicMap/LeafletInstance.js +98 -0
- package/es/Map/BasicMap/index.css +24 -0
- package/es/Map/BasicMap/index.d.ts +9 -0
- package/es/Map/BasicMap/index.js +108 -0
- package/es/Map/ClusterLayer/hook.d.ts +5 -0
- package/es/Map/ClusterLayer/hook.js +144 -0
- package/es/Map/ClusterLayer/index.css +26 -0
- package/es/Map/ClusterLayer/index.d.ts +5 -0
- package/es/Map/ClusterLayer/index.js +31 -0
- package/es/Map/ClusterLayer/props.d.ts +8 -0
- package/es/Map/Config/index.d.ts +7 -0
- package/es/{InitialConfig → Map/Config}/index.js +35 -36
- package/es/Map/Config/utils.d.ts +2 -0
- package/es/{List/DynamicDeviceList → Map/Config}/utils.js +48 -45
- package/es/Map/Context/index.d.ts +11 -0
- package/es/Map/Context/index.js +66 -0
- package/es/Map/FindPio/index.css +7 -0
- package/es/Map/FindPio/index.d.ts +4 -0
- package/es/Map/FindPio/index.js +16 -0
- package/es/{WorkerFlow/Demo.d.ts → Map/InfoWindow/demo.d.ts} +0 -0
- package/es/{List/DynamicDeviceList/Demo.js → Map/InfoWindow/demo.js} +27 -25
- package/es/Map/InfoWindow/index.d.ts +8 -0
- package/es/Map/InfoWindow/index.js +74 -0
- package/es/Map/LevelCenter/DragMarker/index.d.ts +12 -0
- package/es/Map/LevelCenter/DragMarker/index.js +48 -0
- package/es/{List/DeviceList → Map/LevelCenter}/index.css +0 -0
- package/es/Map/LevelCenter/index.d.ts +13 -0
- package/es/Map/LevelCenter/index.js +42 -0
- package/es/Map/LoaderMap/index.d.ts +12 -0
- package/es/Map/LoaderMap/index.js +58 -0
- package/es/Map/ResetTools/index.css +32 -0
- package/es/Map/ResetTools/index.d.ts +9 -0
- package/es/Map/ResetTools/index.js +61 -0
- package/es/Map/SinglePoint/Marker/index.d.ts +7 -0
- package/es/Map/SinglePoint/Marker/index.js +29 -0
- package/es/Map/SinglePoint/icon/Place_icon_OnLine_Hover.svg +15 -0
- package/es/Map/SinglePoint/icon/Place_icon_OnLine_Normal.svg +15 -0
- package/es/Map/SinglePoint/icon/Place_icon_OutLine_Hover.svg +15 -0
- package/es/Map/SinglePoint/icon/Place_icon_OutLine_Normal.svg +15 -0
- package/es/Map/SinglePoint/index.css +29 -0
- package/es/Map/SinglePoint/index.d.ts +7 -0
- package/es/Map/SinglePoint/index.js +32 -0
- package/es/Map/hook/useMapType.d.ts +4 -0
- package/es/Map/hook/useMapType.js +13 -0
- package/es/Map/icon.d.ts +2 -0
- package/es/Map/icon.js +10 -0
- package/es/Map/index.d.ts +23 -0
- package/es/Map/index.js +25 -0
- package/es/Map/interface.d.ts +55 -0
- package/es/Map/points.json +61247 -0
- package/es/{Picture/component/MoveContent → Map/useMarker}/index.css +0 -0
- package/es/Map/useMarker/index.d.ts +11 -0
- package/es/{WorkerFlow/Form/FormAuth.js → Map/useMarker/index.js} +57 -80
- package/es/Map/withMap/index.d.ts +2 -0
- package/es/Map/withMap/index.js +12 -0
- package/es/Modal/index.css +1 -1
- package/es/Modal/index.d.ts +7 -7
- package/es/Picture/index.d.ts +1 -1
- package/es/Picture/index.js +2 -2
- package/es/Player/api/index.d.ts +1 -0
- package/es/Player/api/index.js +7 -1
- package/es/Player/demo.js +13 -21
- package/es/Player/event/index.js +5 -1
- package/es/Player/frontend_player.d.ts +1 -1
- package/es/Player/frontend_player.js +20 -13
- package/es/Player/frontend_timeline.d.ts +1 -1
- package/es/Player/live_heart.js +45 -12
- package/es/Player/message.js +23 -12
- package/es/Player/player.d.ts +31 -7
- package/es/Player/segment_player.d.ts +1 -1
- package/es/Player/segment_player.js +30 -18
- package/es/Player/segment_timeline.js +6 -6
- package/es/Player/single_player.js +50 -9
- package/es/Player/timeline.js +8 -6
- package/es/Player/util.d.ts +2 -1
- package/es/Player/util.js +4 -1
- package/es/PlayerExt/index.css +2 -2
- package/es/PlayerExt/index.d.ts +3 -1
- package/es/PlayerExt/index.js +19 -5
- package/es/ScreenPlayer/Live.d.ts +5 -0
- package/es/ScreenPlayer/Live.js +109 -0
- package/es/ScreenPlayer/LiveTools.d.ts +15 -0
- package/es/ScreenPlayer/LiveTools.js +95 -0
- package/es/ScreenPlayer/PlayerWithExt.d.ts +22 -0
- package/es/ScreenPlayer/PlayerWithExt.js +169 -0
- package/es/ScreenPlayer/Record.d.ts +5 -0
- package/es/{WorkerFlow/index.js → ScreenPlayer/Record.js} +290 -273
- package/es/ScreenPlayer/RecordTools.d.ts +17 -0
- package/es/ScreenPlayer/RecordTools.js +102 -0
- package/es/ScreenPlayer/SegmentTimeLine.d.ts +10 -0
- package/es/ScreenPlayer/SegmentTimeLine.js +40 -0
- package/es/ScreenPlayer/TimeSlider.d.ts +127 -0
- package/es/ScreenPlayer/TimeSlider.js +528 -0
- package/es/ScreenPlayer/demo.d.ts +2 -0
- package/es/ScreenPlayer/demo.js +25 -0
- package/es/ScreenPlayer/demo2.d.ts +2 -0
- package/es/ScreenPlayer/demo2.js +153 -0
- package/es/ScreenPlayer/index.css +50 -0
- package/es/ScreenPlayer/index.d.ts +6 -0
- package/es/ScreenPlayer/index.js +7 -0
- package/es/ScreenPlayer/interface.d.ts +81 -0
- package/es/ScreenPlayer/useRecordList.d.ts +3 -0
- package/es/{WorkerFlow/Form/UserAndGroupSelect.js → ScreenPlayer/useRecordList.js} +173 -176
- package/es/ScreenPlayer/useVideoFit.d.ts +5 -0
- package/es/{Tree/BaseTree/demo.js → ScreenPlayer/useVideoFit.js} +30 -55
- package/es/ScreenPlayer/utils.d.ts +25 -0
- package/es/ScreenPlayer/utils.js +84 -0
- package/es/ThemeAntd/index.css +58 -58
- package/es/ThemeAntd/style/button.css +1 -1
- package/es/ThemeAntd/style/checkbox.css +8 -8
- package/es/ThemeAntd/style/input.css +13 -13
- package/es/ThemeAntd/style/pagination.css +5 -5
- package/es/ThemeAntd/style/picker.css +11 -11
- package/es/ThemeAntd/style/popover.css +1 -1
- package/es/ThemeAntd/style/radio.css +4 -4
- package/es/ThemeAntd/style/scrollbar.css +3 -3
- package/es/ThemeAntd/style/select.css +11 -11
- package/es/ThemeAntd/style/table.css +1 -1
- package/es/Tree/demo.js +9 -12
- package/es/Tree/index.css +55 -29
- package/es/Tree/index.d.ts +20 -19
- package/es/Tree/index.js +70 -185
- package/es/index.d.ts +7 -9
- package/es/index.js +7 -9
- package/es/useInfiniteScroll/index.d.ts +16 -0
- package/es/{useHttp → useInfiniteScroll}/index.js +79 -43
- package/es/useVirtualList/index.d.ts +13 -0
- package/es/useVirtualList/index.js +175 -0
- package/es/withErrorBoundary/index.d.ts +8 -0
- package/es/withErrorBoundary/index.js +43 -0
- package/package.json +19 -21
- package/test.js +48 -0
- package/es/DeviceIcon/icon.d.ts +0 -9
- package/es/DeviceIcon/icon.js +0 -138
- package/es/DeviceIcon/index.css +0 -8
- package/es/DeviceIcon/index.d.ts +0 -14
- package/es/DeviceIcon/index.js +0 -37
- package/es/DeviceSelect/TreeType.d.ts +0 -7
- package/es/DeviceSelect/TreeType.js +0 -36
- package/es/DeviceSelect/demo.d.ts +0 -3
- package/es/DeviceSelect/demo.js +0 -22
- package/es/DeviceSelect/index.css +0 -11
- package/es/DeviceSelect/index.d.ts +0 -13
- package/es/DeviceSelect/index.js +0 -191
- package/es/Dict/cache.d.ts +0 -3
- package/es/Dict/cache.js +0 -21
- package/es/Dict/device.d.ts +0 -28
- package/es/Dict/device.js +0 -117
- package/es/Dict/hook.d.ts +0 -3
- package/es/Dict/hook.js +0 -98
- package/es/Dict/index.d.ts +0 -9
- package/es/Dict/index.js +0 -10
- package/es/Dict/interface.d.ts +0 -16
- package/es/Dict/utils.d.ts +0 -10
- package/es/Dict/utils.js +0 -44
- package/es/InitialConfig/index.d.ts +0 -8
- package/es/InitialConfig/utils.d.ts +0 -20
- package/es/InitialConfig/utils.js +0 -110
- package/es/InitialRequest/index.d.ts +0 -9
- package/es/InitialRequest/index.js +0 -97
- package/es/InitialRequest/utils.d.ts +0 -10
- package/es/InitialRequest/utils.js +0 -116
- package/es/List/CheckExt.d.ts +0 -9
- package/es/List/CheckExt.js +0 -36
- package/es/List/DeviceList/index.d.ts +0 -11
- package/es/List/DeviceList/index.js +0 -50
- package/es/List/DynamicDeviceList/Demo.d.ts +0 -3
- package/es/List/DynamicDeviceList/index.css +0 -39
- package/es/List/DynamicDeviceList/index.d.ts +0 -12
- package/es/List/DynamicDeviceList/index.js +0 -205
- package/es/List/DynamicDeviceList/interface.d.ts +0 -37
- package/es/List/DynamicDeviceList/utils.d.ts +0 -16
- package/es/List/ListExt/index.css +0 -3
- package/es/List/ListExt/index.d.ts +0 -19
- package/es/List/ListExt/index.js +0 -44
- package/es/Picture/component/MoveContent/index.d.ts +0 -39
- package/es/Picture/component/MoveContent/index.js +0 -244
- package/es/Picture/component/MoveContent/utils.d.ts +0 -4
- package/es/Title/index.css +0 -25
- package/es/Title/index.d.ts +0 -12
- package/es/Title/index.js +0 -30
- package/es/Tree/BaseTree/demo.d.ts +0 -3
- package/es/Tree/BaseTree/index.css +0 -64
- package/es/Tree/BaseTree/index.d.ts +0 -24
- package/es/Tree/BaseTree/index.js +0 -83
- package/es/UserSelect/demo.d.ts +0 -3
- package/es/UserSelect/demo.js +0 -21
- package/es/UserSelect/index.css +0 -16
- package/es/UserSelect/index.d.ts +0 -18
- package/es/UserSelect/index.js +0 -194
- package/es/WorkerFlow/Demo.js +0 -57
- package/es/WorkerFlow/Form/Approver.d.ts +0 -10
- package/es/WorkerFlow/Form/Approver.js +0 -33
- package/es/WorkerFlow/Form/Condition.d.ts +0 -11
- package/es/WorkerFlow/Form/Condition.js +0 -235
- package/es/WorkerFlow/Form/EmptyUserSet.d.ts +0 -8
- package/es/WorkerFlow/Form/EmptyUserSet.js +0 -137
- package/es/WorkerFlow/Form/FormAuth.d.ts +0 -8
- package/es/WorkerFlow/Form/GroupList.d.ts +0 -12
- package/es/WorkerFlow/Form/GroupList.js +0 -44
- package/es/WorkerFlow/Form/GroupSelect.d.ts +0 -8
- package/es/WorkerFlow/Form/GroupSelect.js +0 -167
- package/es/WorkerFlow/Form/GroupSelectModalContent.d.ts +0 -6
- package/es/WorkerFlow/Form/GroupSelectModalContent.js +0 -177
- package/es/WorkerFlow/Form/Handle.d.ts +0 -10
- package/es/WorkerFlow/Form/Handle.js +0 -33
- package/es/WorkerFlow/Form/LevelGroupSelect.d.ts +0 -12
- package/es/WorkerFlow/Form/LevelGroupSelect.js +0 -208
- package/es/WorkerFlow/Form/Notifier.d.ts +0 -8
- package/es/WorkerFlow/Form/Notifier.js +0 -16
- package/es/WorkerFlow/Form/UserAndGroupSelect.d.ts +0 -8
- package/es/WorkerFlow/Form/UserSelect.d.ts +0 -8
- package/es/WorkerFlow/Form/UserSelect.js +0 -150
- package/es/WorkerFlow/Form/UserSelectModalContent.d.ts +0 -6
- package/es/WorkerFlow/Form/UserSelectModalContent.js +0 -166
- package/es/WorkerFlow/Form/UserSet.d.ts +0 -14
- package/es/WorkerFlow/Form/UserSet.js +0 -308
- package/es/WorkerFlow/Form/UsersHandleType.d.ts +0 -7
- package/es/WorkerFlow/Form/UsersHandleType.js +0 -32
- package/es/WorkerFlow/Form/utils.d.ts +0 -3
- package/es/WorkerFlow/Form/utils.js +0 -47
- package/es/WorkerFlow/Nodes/Add.d.ts +0 -7
- package/es/WorkerFlow/Nodes/Add.js +0 -97
- package/es/WorkerFlow/Nodes/AddOption.d.ts +0 -10
- package/es/WorkerFlow/Nodes/AddOption.js +0 -23
- package/es/WorkerFlow/Nodes/AddOptionList.d.ts +0 -8
- package/es/WorkerFlow/Nodes/AddOptionList.js +0 -46
- package/es/WorkerFlow/Nodes/Approver.d.ts +0 -11
- package/es/WorkerFlow/Nodes/Approver.js +0 -53
- package/es/WorkerFlow/Nodes/Condition.d.ts +0 -10
- package/es/WorkerFlow/Nodes/Condition.js +0 -140
- package/es/WorkerFlow/Nodes/Constants.d.ts +0 -35
- package/es/WorkerFlow/Nodes/Constants.js +0 -150
- package/es/WorkerFlow/Nodes/End.d.ts +0 -7
- package/es/WorkerFlow/Nodes/End.js +0 -16
- package/es/WorkerFlow/Nodes/Handle.d.ts +0 -11
- package/es/WorkerFlow/Nodes/Handle.js +0 -52
- package/es/WorkerFlow/Nodes/Node.d.ts +0 -8
- package/es/WorkerFlow/Nodes/Node.js +0 -26
- package/es/WorkerFlow/Nodes/Notifier.d.ts +0 -11
- package/es/WorkerFlow/Nodes/Notifier.js +0 -52
- package/es/WorkerFlow/Nodes/Render.d.ts +0 -8
- package/es/WorkerFlow/Nodes/Render.js +0 -16
- package/es/WorkerFlow/Nodes/Start.d.ts +0 -12
- package/es/WorkerFlow/Nodes/Start.js +0 -26
- package/es/WorkerFlow/Nodes/TitleElement.d.ts +0 -10
- package/es/WorkerFlow/Nodes/TitleElement.js +0 -127
- package/es/WorkerFlow/Nodes/Wrap.d.ts +0 -13
- package/es/WorkerFlow/Nodes/Wrap.js +0 -35
- package/es/WorkerFlow/OperatorContext.d.ts +0 -4
- package/es/WorkerFlow/OperatorContext.js +0 -3
- package/es/WorkerFlow/Tools.d.ts +0 -8
- package/es/WorkerFlow/Tools.js +0 -78
- package/es/WorkerFlow/XML/CanvasTag.d.ts +0 -3
- package/es/WorkerFlow/XML/CanvasTag.js +0 -142
- package/es/WorkerFlow/XML/EndEvent.d.ts +0 -1
- package/es/WorkerFlow/XML/EndEvent.js +0 -14
- package/es/WorkerFlow/XML/ExclusiveGateway.d.ts +0 -9
- package/es/WorkerFlow/XML/ExclusiveGateway.js +0 -101
- package/es/WorkerFlow/XML/Root.d.ts +0 -1
- package/es/WorkerFlow/XML/Root.js +0 -5
- package/es/WorkerFlow/XML/StartEvent.d.ts +0 -5
- package/es/WorkerFlow/XML/StartEvent.js +0 -28
- package/es/WorkerFlow/XML/UserTask.d.ts +0 -5
- package/es/WorkerFlow/XML/UserTask.js +0 -93
- package/es/WorkerFlow/XML/index.d.ts +0 -4
- package/es/WorkerFlow/XML/index.js +0 -100
- package/es/WorkerFlow/XML/utils.d.ts +0 -6
- package/es/WorkerFlow/XML/utils.js +0 -97
- package/es/WorkerFlow/data.json +0 -83
- package/es/WorkerFlow/index.css +0 -779
- package/es/WorkerFlow/index.d.ts +0 -13
- package/es/WorkerFlow/interface.d.ts +0 -93
- package/es/WorkerFlow/template.d.ts +0 -2
- package/es/WorkerFlow/template.js +0 -17
- package/es/WorkerFlow/utils.d.ts +0 -7
- package/es/WorkerFlow/utils.js +0 -197
- package/es/useHttp/index.d.ts +0 -8
- package/pnpm-lock.yaml +0 -13650
package/.eslintignore
CHANGED
package/.eslintrc
ADDED
package/.prettierignore
CHANGED
package/.umirc.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { defineConfig } from 'dumi';
|
|
|
2
2
|
import path from 'path';
|
|
3
3
|
|
|
4
4
|
const token =
|
|
5
|
-
'eyJhbGciOiJIUzI1NiJ9.
|
|
5
|
+
'eyJhbGciOiJIUzI1NiJ9.eyJvcmdhbml6YXRpb25JZCI6IjEwMDEwMTAwMDQ0NSIsImV4dCI6MTY2MTA3ODE3NDEzOCwidWlkIjoiMTAxMDAwMDAwNjk5IiwidmFsaWRTdGF0ZSI6MTA0NDA2LCJyb2xlSWQiOlsxMDAwMDAxMTA1MTgsMTAwMDAwMTEwNzI4XSwidmFsaWRUaW1lIjoxNzA0MzgzOTk5MDAwLCJvcHRDZW50ZXJJZCI6IjEwMDEwMDAwMDIzMyIsInVzZXJUeXBlIjoxMDA3MDQsImlhdCI6MTY2MDgxODk3NDEzOH0.5aCna8JWe8ynj9SXuXZ3TMDizpnK7WJFeAgJZhSsRvg';
|
|
6
6
|
|
|
7
7
|
export default defineConfig({
|
|
8
8
|
title: 'CloudApp VIDC',
|
|
@@ -32,68 +32,93 @@ export default defineConfig({
|
|
|
32
32
|
},
|
|
33
33
|
proxy: {
|
|
34
34
|
'/api': {
|
|
35
|
-
target: '
|
|
35
|
+
target: 'https://jxsr-eye.antelopecloud.cn/',
|
|
36
36
|
changeOrigin: true,
|
|
37
37
|
onProxyReq(proxyReq: any) {
|
|
38
38
|
proxyReq.setHeader('authorization', token);
|
|
39
39
|
},
|
|
40
40
|
},
|
|
41
41
|
},
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
// },
|
|
49
|
-
// },
|
|
42
|
+
mfsu: {
|
|
43
|
+
development: {
|
|
44
|
+
output: './.mfsu/dev',
|
|
45
|
+
},
|
|
46
|
+
production: undefined,
|
|
47
|
+
},
|
|
50
48
|
scripts: ['//at.alicdn.com/t/font_1724012_972m5d05cou.js'],
|
|
51
49
|
styles: [
|
|
52
50
|
`:root{
|
|
53
|
-
--primary:
|
|
54
|
-
--primary-light:
|
|
55
|
-
--primary-dark:
|
|
56
|
-
--
|
|
57
|
-
--
|
|
58
|
-
--
|
|
59
|
-
--
|
|
60
|
-
--
|
|
61
|
-
--
|
|
62
|
-
--
|
|
51
|
+
--primary: #248FFA;
|
|
52
|
+
--primary-light: #248FFA;
|
|
53
|
+
--primary-dark: #227BD5;
|
|
54
|
+
--secondary1: #6D8EFB;
|
|
55
|
+
--secondary1-light: #86A2FF;
|
|
56
|
+
--secondary1-dark: #5D7FF0;
|
|
57
|
+
--secondary2: #33AAFF;
|
|
58
|
+
--secondary2-light: #61BDFF;
|
|
59
|
+
--secondary2-dark: #2194E5;
|
|
60
|
+
--secondary3: #F3A75F;
|
|
61
|
+
--secondary3-light: #F8B578;
|
|
62
|
+
--secondary3-dark: #DC914C;
|
|
63
|
+
--danger: #F32D37;
|
|
64
|
+
--danger-light: #FF4D4F;
|
|
65
|
+
--danger-dark: #DC1B2A;
|
|
66
|
+
--warn: #FD8535;
|
|
67
|
+
--warn-light: #FF9F5E;
|
|
68
|
+
--warn-dark: #DC1B2A;
|
|
69
|
+
--success: #35BD77;
|
|
70
|
+
--success-light: #55C98D;
|
|
71
|
+
--success-dark: #21965A;
|
|
72
|
+
--gray1: #FFFFFF;
|
|
73
|
+
--gray2: #F3F3F3;
|
|
74
|
+
--gray3: #EEEEEE;
|
|
75
|
+
--gray4: #E7E7E7;
|
|
76
|
+
--gray5: #DCDCDC;
|
|
77
|
+
--gray6: #C5C5C5;
|
|
78
|
+
--gray7: #A6A6A6;
|
|
79
|
+
--gray8: #8B8B8B;
|
|
80
|
+
--gray9: #777777;
|
|
81
|
+
--gray10: #5E5E5E;
|
|
82
|
+
--gray11: #4B4B4B;
|
|
83
|
+
--gray12: #383838;
|
|
84
|
+
--background: #348fe2;
|
|
63
85
|
--fs: 14px;
|
|
64
86
|
--fs-small: 12px;
|
|
65
|
-
--fs-large:
|
|
66
|
-
--icon: rgba(98,112,139,1);
|
|
67
|
-
--disabled: rgba(153,153,153,1);
|
|
68
|
-
--bd-color: #dbe1ea;
|
|
87
|
+
--fs-large: 20px;
|
|
69
88
|
--color: rgba(0,0,0,1);
|
|
70
89
|
--color-dark: #000000;
|
|
71
90
|
--color-light: rgba(102,102,102,1);
|
|
72
|
-
--
|
|
73
|
-
--
|
|
74
|
-
--
|
|
75
|
-
--
|
|
76
|
-
--
|
|
77
|
-
--
|
|
91
|
+
--color-disabled: rgba(0,0,0,0.26);
|
|
92
|
+
--shadow1: 2px 0 10px 0 rgba(0,0,0,0.06);
|
|
93
|
+
--shadow2: 2px 0 10px 0 rgba(0,0,0,0.06);
|
|
94
|
+
--shadow3: 2px 0 10px 0 rgba(0,0,0,0.06);
|
|
95
|
+
--radius1: 4px;
|
|
96
|
+
--radius2: 8px;
|
|
97
|
+
--radius3: 16px;
|
|
98
|
+
--header-color: #FFFFFF;
|
|
99
|
+
--header-bg: #348fe2;
|
|
100
|
+
--header-height: 66px;
|
|
101
|
+
--nav-height: 66px;
|
|
102
|
+
--nav-bg: #348fe2;
|
|
103
|
+
--nav-sub-bg: rgba(255,255,255,1);
|
|
78
104
|
--nav-sub-bg2: rgba(241,244,247,0.8);
|
|
79
|
-
--nav-item-bg-selected: #
|
|
80
|
-
--nav-item-color:
|
|
81
|
-
--nav-
|
|
82
|
-
--nav-
|
|
83
|
-
--nav-
|
|
84
|
-
--nav-
|
|
85
|
-
--nav-
|
|
86
|
-
--
|
|
87
|
-
--
|
|
88
|
-
--
|
|
89
|
-
--tab-
|
|
90
|
-
--tab-
|
|
91
|
-
--tab-item-
|
|
92
|
-
--tab-item-
|
|
93
|
-
--
|
|
94
|
-
--
|
|
95
|
-
--
|
|
96
|
-
--table-row-hover-color: rgba(237,245,250,1);
|
|
105
|
+
--nav-item-bg-selected: #FFFFFF;
|
|
106
|
+
--nav-item-color: #FFFFFF;
|
|
107
|
+
--nav-icon-color: rgba(255, 255, 255, 0.4);
|
|
108
|
+
--nav-icon-color-selected: #3495EF;
|
|
109
|
+
--nav-item-bg: #348fe2;
|
|
110
|
+
--nav-item-color-selected: rgba(0, 0, 0, 0.9);
|
|
111
|
+
--nav-sub-item-bg-selected: #F3F5F6;
|
|
112
|
+
--nav-sub-item-color-selected: #348fe2;
|
|
113
|
+
--nav-sub-item-color: rgba(0, 0, 0, 0.9);
|
|
114
|
+
--nav-bd-color: rgba(0,0,0,0);
|
|
115
|
+
--tab-height: 34px;
|
|
116
|
+
--tab-bg: #348fe2;
|
|
117
|
+
--tab-item-bg: #348fe2;
|
|
118
|
+
--tab-item-height: 34px;
|
|
119
|
+
--tab-item-color: #FFFFFF;
|
|
120
|
+
--tab-item-selected-bg: #F3F5F6;
|
|
121
|
+
--tab-item-selected-color: rgba(0, 0, 0, 0.9);
|
|
97
122
|
--drawer-title-height: 48px;
|
|
98
123
|
--drawer-title-bg: rgba(255,255,255,1);
|
|
99
124
|
--drawer-divider-color: rgba(219,225,234,1);
|
|
@@ -114,38 +139,13 @@ export default defineConfig({
|
|
|
114
139
|
--card-bd-color: rgba(219,225,234,1);
|
|
115
140
|
--card-hover-bd-color: rgba(18,122,255,1);
|
|
116
141
|
--card-footer-bg: rgba(219,225,234,1);
|
|
117
|
-
--content-
|
|
118
|
-
--content-two-column-box-left-bg: rgba(255,255,255,1);
|
|
119
|
-
--content-two-column-box-right-bg: #f0f2f5;
|
|
120
|
-
--content-two-column-box-color: rgba(51,51,51,1);
|
|
121
|
-
--content-info-box-bg: rgba(255,255,255,1);
|
|
122
|
-
--content-info-box-bd-color: #dbe1ea;
|
|
123
|
-
--content-info-box-title-bg: rgba(0,0,0,0);
|
|
124
|
-
--content-info-box-title-bd: rgba(0,0,0,0);
|
|
125
|
-
--content-info-box-title-height: 40px;
|
|
126
|
-
--content-list-box-bg: rgba(255,255,255,1);
|
|
127
|
-
--content-list-box-bd-color: rgba(219,225,234,1);
|
|
128
|
-
--content-list-box-title-bg: rgba(229,235,241,1);
|
|
129
|
-
--content-list-box-title-bd: rgba(219,225,234,1);
|
|
130
|
-
--content-list-box-title-height: 40px;
|
|
131
|
-
--content-tools-box-bg: rgba(255,255,255,1);
|
|
132
|
-
--form-redius: 0px;
|
|
133
|
-
--form-bg: rgba(255,255,255,1);
|
|
134
|
-
--form-bd: rgba(181,190,207,1);
|
|
135
|
-
--form-bg-dark: rgba(240,244,245,1);
|
|
136
|
-
--form-bg-light: rgba(217,223,229,1);
|
|
137
|
-
--form-divider-color: rgba(219,225,234,1);
|
|
142
|
+
--content-bg: #ffffff;
|
|
138
143
|
--scrollbar-width: 8px;
|
|
139
144
|
--scrollbar-track-bg: rgba(239,241,244,1);
|
|
140
145
|
--scrollbar-thumb-bg: rgba(185,193,203,1);
|
|
141
146
|
--scrollbar-thumb-hover-bg: rgba(195,209,229,1);
|
|
142
147
|
--scrollbar-track-shadow: 0 0 3px 0 rgba(255, 255, 255, 0.1) inset;
|
|
143
148
|
--scrollbar-thumb-shadow: 0 0 3px 0 rgba(0, 0, 0, 0.3) inset;
|
|
144
|
-
--force-place: rgba(255,187,34,1);
|
|
145
|
-
--force-device: rgba(185,181,255,1);
|
|
146
|
-
--force-person: rgba(34,153,255,1);
|
|
147
|
-
--force-nonVehicle: rgba(255,131,125,1);
|
|
148
|
-
--force-vehicle: rgba(20,204,143,1);
|
|
149
149
|
}
|
|
150
150
|
`,
|
|
151
151
|
],
|
package/es/AppContext/Sync.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { AppContextInterface } from './interface';
|
|
2
|
+
import { AppContextInterface, AppStoreType } from './interface';
|
|
3
3
|
interface ISyncProps {
|
|
4
4
|
stateChange: (options: AppContextInterface) => void;
|
|
5
|
+
storeChange: (store: AppStoreType) => void;
|
|
5
6
|
}
|
|
6
|
-
declare function Sync({ stateChange }: ISyncProps): JSX.Element;
|
|
7
|
+
declare function Sync({ stateChange, storeChange }: ISyncProps): JSX.Element;
|
|
7
8
|
export default Sync;
|
package/es/AppContext/Sync.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import _SocketEmitter from "@cloud-app-dev/utils/es/SocketEmitter";
|
|
2
2
|
import React, { useEffect } from 'react';
|
|
3
|
-
import { _LOGIN_STATUS_EVENT_CHANGE_, _OPERATION_EVENT_CHANGE_, _USER_EVENT_CHANGE_ } from './static';
|
|
3
|
+
import { _LOGIN_STATUS_EVENT_CHANGE_, _OPERATION_EVENT_CHANGE_, _USER_EVENT_CHANGE_, _STORE_EVENT_CHANGE_ } from './static';
|
|
4
4
|
|
|
5
5
|
function Sync(_ref) {
|
|
6
|
-
var stateChange = _ref.stateChange
|
|
6
|
+
var stateChange = _ref.stateChange,
|
|
7
|
+
storeChange = _ref.storeChange;
|
|
7
8
|
|
|
8
9
|
/**
|
|
9
10
|
* @description 用户微应用之间的状态同步
|
|
@@ -27,18 +28,26 @@ function Sync(_ref) {
|
|
|
27
28
|
});
|
|
28
29
|
};
|
|
29
30
|
|
|
31
|
+
var storeFn = function storeFn(store) {
|
|
32
|
+
return storeChange(store);
|
|
33
|
+
};
|
|
34
|
+
|
|
30
35
|
_SocketEmitter.on(_USER_EVENT_CHANGE_, userFn);
|
|
31
36
|
|
|
32
37
|
_SocketEmitter.on(_OPERATION_EVENT_CHANGE_, operationFn);
|
|
33
38
|
|
|
34
39
|
_SocketEmitter.on(_LOGIN_STATUS_EVENT_CHANGE_, statusFn);
|
|
35
40
|
|
|
41
|
+
_SocketEmitter.on(_STORE_EVENT_CHANGE_, storeFn);
|
|
42
|
+
|
|
36
43
|
return function () {
|
|
37
44
|
_SocketEmitter.off(_USER_EVENT_CHANGE_, userFn);
|
|
38
45
|
|
|
39
46
|
_SocketEmitter.off(_OPERATION_EVENT_CHANGE_, operationFn);
|
|
40
47
|
|
|
41
48
|
_SocketEmitter.off(_LOGIN_STATUS_EVENT_CHANGE_, statusFn);
|
|
49
|
+
|
|
50
|
+
_SocketEmitter.off(_STORE_EVENT_CHANGE_, storeFn);
|
|
42
51
|
};
|
|
43
52
|
}, []);
|
|
44
53
|
return /*#__PURE__*/React.createElement(React.Fragment, null);
|
package/es/AppContext/index.js
CHANGED
|
@@ -17,12 +17,15 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
17
17
|
import React, { useCallback, useMemo, useState } from 'react';
|
|
18
18
|
import Sync from './Sync';
|
|
19
19
|
import * as Static from './static';
|
|
20
|
+
import { isEmpty } from 'lodash-es';
|
|
20
21
|
var _USER_SESSION_ = Static._USER_SESSION_,
|
|
21
22
|
_OPERATION_SESSION_ = Static._OPERATION_SESSION_,
|
|
22
23
|
_LOGIN_STATUS_SESSION_ = Static._LOGIN_STATUS_SESSION_,
|
|
23
24
|
_USER_EVENT_CHANGE_ = Static._USER_EVENT_CHANGE_,
|
|
24
25
|
_OPERATION_EVENT_CHANGE_ = Static._OPERATION_EVENT_CHANGE_,
|
|
25
|
-
_LOGIN_STATUS_EVENT_CHANGE_ = Static._LOGIN_STATUS_EVENT_CHANGE_
|
|
26
|
+
_LOGIN_STATUS_EVENT_CHANGE_ = Static._LOGIN_STATUS_EVENT_CHANGE_,
|
|
27
|
+
_STORE_SESSION_ = Static._STORE_SESSION_,
|
|
28
|
+
_STORE_EVENT_CHANGE_ = Static._STORE_EVENT_CHANGE_;
|
|
26
29
|
var Context = /*#__PURE__*/React.createContext(null);
|
|
27
30
|
|
|
28
31
|
function Provider(_ref) {
|
|
@@ -31,7 +34,8 @@ function Provider(_ref) {
|
|
|
31
34
|
var _useState = useState({
|
|
32
35
|
user: _cache.getCache(_USER_SESSION_, 'session') || {},
|
|
33
36
|
operation: _cache.getCache(_OPERATION_SESSION_, 'session') || {},
|
|
34
|
-
loginStatus: _cache.getCache(_LOGIN_STATUS_SESSION_, 'session') || false
|
|
37
|
+
loginStatus: _cache.getCache(_LOGIN_STATUS_SESSION_, 'session') || false,
|
|
38
|
+
store: _cache.getCache(_STORE_SESSION_, 'session') || {}
|
|
35
39
|
}),
|
|
36
40
|
_useState2 = _slicedToArray(_useState, 2),
|
|
37
41
|
state = _useState2[0],
|
|
@@ -51,7 +55,7 @@ function Provider(_ref) {
|
|
|
51
55
|
|
|
52
56
|
_cache.setCache(_USER_SESSION_, newUser, 'session');
|
|
53
57
|
|
|
54
|
-
console.
|
|
58
|
+
console.info('AppContext updateUser is run !', user);
|
|
55
59
|
});
|
|
56
60
|
}
|
|
57
61
|
|
|
@@ -69,15 +73,19 @@ function Provider(_ref) {
|
|
|
69
73
|
|
|
70
74
|
_cache.setCache(_OPERATION_SESSION_, newOperation, 'session');
|
|
71
75
|
|
|
72
|
-
console.
|
|
76
|
+
console.info('AppContext updateOperation is run !', operation);
|
|
73
77
|
});
|
|
74
78
|
}
|
|
75
79
|
|
|
76
80
|
function updateLoginStatus(status) {
|
|
81
|
+
if (typeof status !== 'boolean') {
|
|
82
|
+
throw new Error('status type is boolean !');
|
|
83
|
+
}
|
|
84
|
+
|
|
77
85
|
setState(function (old) {
|
|
78
|
-
return Object.assign(Object.assign({}, old), {
|
|
86
|
+
return status !== old.loginStatus ? Object.assign(Object.assign({}, old), {
|
|
79
87
|
loginStatus: status
|
|
80
|
-
});
|
|
88
|
+
}) : old;
|
|
81
89
|
});
|
|
82
90
|
|
|
83
91
|
_nextTick(function () {
|
|
@@ -85,7 +93,43 @@ function Provider(_ref) {
|
|
|
85
93
|
|
|
86
94
|
_cache.setCache(_LOGIN_STATUS_SESSION_, status, 'session');
|
|
87
95
|
|
|
88
|
-
console.
|
|
96
|
+
console.info('AppContext updateLoginStatus is run !', status);
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* @desc 用于全局自定义状态存储,依赖sessionStorage持久化能力,不建议存储大数据量
|
|
101
|
+
* @param data
|
|
102
|
+
*/
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
function updateStore() {
|
|
106
|
+
var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
107
|
+
setState(function (old) {
|
|
108
|
+
var newData = {}; //获取变更项
|
|
109
|
+
|
|
110
|
+
for (var key in data) {
|
|
111
|
+
if (data[key] !== old.store[key]) {
|
|
112
|
+
newData[key] = data[key];
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
if (isEmpty(newData)) {
|
|
117
|
+
return old;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
var newStore = Object.assign(Object.assign({}, old.store), newData);
|
|
121
|
+
|
|
122
|
+
_cache.setCache(_STORE_SESSION_, newStore, 'session');
|
|
123
|
+
|
|
124
|
+
return Object.assign(Object.assign({}, old), {
|
|
125
|
+
store: newStore
|
|
126
|
+
});
|
|
127
|
+
});
|
|
128
|
+
|
|
129
|
+
_nextTick(function () {
|
|
130
|
+
_SocketEmitter.emit(_STORE_EVENT_CHANGE_, data);
|
|
131
|
+
|
|
132
|
+
console.info('AppContext updateStore is run !', data);
|
|
89
133
|
});
|
|
90
134
|
}
|
|
91
135
|
|
|
@@ -94,20 +138,30 @@ function Provider(_ref) {
|
|
|
94
138
|
return Object.assign(Object.assign({}, old), options);
|
|
95
139
|
});
|
|
96
140
|
}, []);
|
|
141
|
+
var storeChange = useCallback(function (store) {
|
|
142
|
+
return setState(function (old) {
|
|
143
|
+
return Object.assign(Object.assign({}, old), {
|
|
144
|
+
store: Object.assign(Object.assign({}, old.store), store)
|
|
145
|
+
});
|
|
146
|
+
});
|
|
147
|
+
}, []);
|
|
97
148
|
var providerValue = useMemo(function () {
|
|
98
149
|
return {
|
|
99
150
|
user: state.user,
|
|
100
151
|
operation: state.operation,
|
|
101
152
|
loginStatus: state.loginStatus,
|
|
153
|
+
store: state.store,
|
|
102
154
|
updateUser: updateUser,
|
|
103
155
|
updateOperation: updateOperation,
|
|
104
|
-
updateLoginStatus: updateLoginStatus
|
|
156
|
+
updateLoginStatus: updateLoginStatus,
|
|
157
|
+
updateStore: updateStore
|
|
105
158
|
};
|
|
106
159
|
}, [state.user, state.operation, state.loginStatus]);
|
|
107
160
|
return /*#__PURE__*/React.createElement(Context.Provider, {
|
|
108
161
|
value: providerValue
|
|
109
162
|
}, children, /*#__PURE__*/React.createElement(Sync, {
|
|
110
|
-
stateChange: stateChange
|
|
163
|
+
stateChange: stateChange,
|
|
164
|
+
storeChange: storeChange
|
|
111
165
|
}));
|
|
112
166
|
}
|
|
113
167
|
|
|
@@ -22,11 +22,20 @@ export type OperationInfoType = {
|
|
|
22
22
|
[key: string]: any;
|
|
23
23
|
};
|
|
24
24
|
|
|
25
|
-
export
|
|
25
|
+
export type AppStoreType = {
|
|
26
|
+
[key: string]: any;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export interface IProviderState {
|
|
26
30
|
user: UserInfoType;
|
|
27
31
|
operation: OperationInfoType;
|
|
28
32
|
loginStatus: boolean;
|
|
33
|
+
store: AppStoreType;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface AppContextInterface extends IProviderState {
|
|
29
37
|
updateUser: (user: UserInfoType) => void;
|
|
30
38
|
updateOperation: (user: OperationInfoType) => void;
|
|
31
39
|
updateLoginStatus: (status: boolean) => void;
|
|
40
|
+
updateStore: (data: { [key: string]: any }) => void;
|
|
32
41
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export declare const _USER_EVENT_CHANGE_ = "_USER_EVENT_CHANGE_";
|
|
2
2
|
export declare const _OPERATION_EVENT_CHANGE_ = "_OPERATION_EVENT_CHANGE_";
|
|
3
3
|
export declare const _LOGIN_STATUS_EVENT_CHANGE_ = "_LOGIN_STATUS_EVENT_CHANGE_";
|
|
4
|
+
export declare const _STORE_EVENT_CHANGE_ = "_STORE_EVENT_CHANGE_";
|
|
4
5
|
export declare const _USER_SESSION_ = "_USER_SESSION_";
|
|
5
6
|
export declare const _OPERATION_SESSION_ = "_OPERATION_SESSION_";
|
|
6
7
|
export declare const _LOGIN_STATUS_SESSION_ = "_LOGIN_STATUS_SESSION_";
|
|
8
|
+
export declare const _STORE_SESSION_ = "_STORE_SESSION_";
|
package/es/AppContext/static.js
CHANGED
|
@@ -4,8 +4,12 @@ export var _OPERATION_EVENT_CHANGE_ = '_OPERATION_EVENT_CHANGE_'; //应用系统
|
|
|
4
4
|
|
|
5
5
|
export var _LOGIN_STATUS_EVENT_CHANGE_ = '_LOGIN_STATUS_EVENT_CHANGE_'; //登录状态变化
|
|
6
6
|
|
|
7
|
+
export var _STORE_EVENT_CHANGE_ = '_STORE_EVENT_CHANGE_'; //登录状态变化
|
|
8
|
+
|
|
7
9
|
export var _USER_SESSION_ = '_USER_SESSION_'; //用户信息 缓存key
|
|
8
10
|
|
|
9
11
|
export var _OPERATION_SESSION_ = '_OPERATION_SESSION_'; //应用系统信息 缓存key
|
|
10
12
|
|
|
11
|
-
export var _LOGIN_STATUS_SESSION_ = '_LOGIN_STATUS_SESSION_'; //登录状态 缓存key
|
|
13
|
+
export var _LOGIN_STATUS_SESSION_ = '_LOGIN_STATUS_SESSION_'; //登录状态 缓存key
|
|
14
|
+
|
|
15
|
+
export var _STORE_SESSION_ = '_STORE_SESSION_'; //登录状态 缓存key
|
package/es/Box/InfoBox/index.css
CHANGED
|
@@ -5,11 +5,10 @@
|
|
|
5
5
|
flex-direction: column;
|
|
6
6
|
}
|
|
7
7
|
.info-box-layout .info-box-title-wrapper {
|
|
8
|
-
background-color: var(--
|
|
9
|
-
border: 1px solid var(--
|
|
8
|
+
background-color: var(--gray2);
|
|
9
|
+
border: 1px solid var(--gray3);
|
|
10
10
|
border-bottom: none;
|
|
11
|
-
height:
|
|
12
|
-
line-height: var(--content-info-box-title-height);
|
|
11
|
+
height: 3em;
|
|
13
12
|
min-height: max-content;
|
|
14
13
|
display: flex;
|
|
15
14
|
align-items: center;
|
|
@@ -17,7 +16,7 @@
|
|
|
17
16
|
font-weight: 700;
|
|
18
17
|
}
|
|
19
18
|
.info-box-layout .info-box-content-wrapper {
|
|
20
|
-
background-color: var(--
|
|
21
|
-
border: 1px solid var(--
|
|
19
|
+
background-color: var(--gray1);
|
|
20
|
+
border: 1px solid var(--gray3);
|
|
22
21
|
flex: 1;
|
|
23
22
|
}
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
width: 100%;
|
|
3
3
|
height: 100%;
|
|
4
4
|
position: relative;
|
|
5
|
-
color: var(--
|
|
5
|
+
color: var(--color1);
|
|
6
6
|
}
|
|
7
7
|
.two-column-layout-container .two-column-aside {
|
|
8
8
|
transition: width 0.1s ease-in;
|
|
9
|
-
width:
|
|
9
|
+
width: 30%;
|
|
10
10
|
height: 100%;
|
|
11
11
|
z-index: 9;
|
|
12
12
|
position: absolute;
|
|
@@ -20,45 +20,38 @@
|
|
|
20
20
|
overflow: hidden;
|
|
21
21
|
}
|
|
22
22
|
.two-column-layout-container .two-column-aside .two-colum-left-content {
|
|
23
|
-
width:
|
|
23
|
+
width: 100%;
|
|
24
24
|
height: 100%;
|
|
25
|
-
background-color: var(--
|
|
25
|
+
background-color: var(--gray1);
|
|
26
26
|
}
|
|
27
27
|
.two-column-layout-container .two-column-aside .left-aside-slider-btn {
|
|
28
28
|
position: absolute;
|
|
29
|
-
width:
|
|
29
|
+
width: 8px;
|
|
30
30
|
height: 20px;
|
|
31
|
-
right: -
|
|
31
|
+
right: -8px;
|
|
32
32
|
top: 50%;
|
|
33
33
|
margin-top: -8px;
|
|
34
34
|
font-size: var(--fs-large);
|
|
35
|
+
background-color: var(--gray5);
|
|
35
36
|
cursor: pointer;
|
|
36
|
-
|
|
37
|
-
}
|
|
38
|
-
.two-column-layout-container .two-column-aside .left-aside-slider-btn .anticon {
|
|
39
|
-
background: var(--content-two-column-box-left-bg);
|
|
40
|
-
vertical-align: unset;
|
|
41
|
-
position: relative;
|
|
42
|
-
z-index: 3;
|
|
37
|
+
z-index: 9;
|
|
43
38
|
}
|
|
44
39
|
.two-column-layout-container .two-column-aside .left-aside-slider-btn:before,
|
|
45
40
|
.two-column-layout-container .two-column-aside .left-aside-slider-btn:after {
|
|
46
41
|
content: '';
|
|
47
|
-
width:
|
|
48
|
-
height:
|
|
42
|
+
width: 1px;
|
|
43
|
+
height: 16px;
|
|
49
44
|
z-index: 2;
|
|
50
|
-
background-color: var(--
|
|
45
|
+
background-color: var(--gray1);
|
|
51
46
|
position: absolute;
|
|
52
47
|
}
|
|
53
48
|
.two-column-layout-container .two-column-aside .left-aside-slider-btn:before {
|
|
54
|
-
left:
|
|
55
|
-
bottom:
|
|
56
|
-
transform: skewY(-20deg);
|
|
49
|
+
left: 2px;
|
|
50
|
+
bottom: 2px;
|
|
57
51
|
}
|
|
58
52
|
.two-column-layout-container .two-column-aside .left-aside-slider-btn:after {
|
|
59
|
-
right:
|
|
60
|
-
top:
|
|
61
|
-
transform: skewY(20deg);
|
|
53
|
+
right: 2px;
|
|
54
|
+
top: 2px;
|
|
62
55
|
}
|
|
63
56
|
.two-column-layout-container .two-column-aside.hide-left-aside {
|
|
64
57
|
width: 0;
|
|
@@ -70,8 +63,8 @@
|
|
|
70
63
|
width: 100%;
|
|
71
64
|
height: 100%;
|
|
72
65
|
overflow: hidden;
|
|
73
|
-
padding-left:
|
|
74
|
-
background-color: var(--
|
|
66
|
+
padding-left: 30%;
|
|
67
|
+
background-color: var(--gray2);
|
|
75
68
|
transition: padding-left 0.3s ease-in-out;
|
|
76
69
|
box-sizing: border-box;
|
|
77
70
|
}
|
|
@@ -11,7 +11,6 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
11
11
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
12
12
|
|
|
13
13
|
import React, { useState } from 'react';
|
|
14
|
-
import IconFont from '../../IconFont';
|
|
15
14
|
import "./index.css";
|
|
16
15
|
|
|
17
16
|
function TwoColumnBox(_ref) {
|
|
@@ -40,9 +39,7 @@ function TwoColumnBox(_ref) {
|
|
|
40
39
|
return setCollapsed(!collapsed);
|
|
41
40
|
},
|
|
42
41
|
className: "left-aside-slider-btn"
|
|
43
|
-
}, /*#__PURE__*/React.createElement(
|
|
44
|
-
type: collapsed ? 'icon-S_Arrow_SmallRight' : 'icon-S_Arrow_SmallLeft'
|
|
45
|
-
}))))), /*#__PURE__*/React.createElement("div", {
|
|
42
|
+
})))), /*#__PURE__*/React.createElement("div", {
|
|
46
43
|
className: "two-column-content"
|
|
47
44
|
}, children));
|
|
48
45
|
}
|
package/es/Box/index.css
CHANGED
package/es/Config/interface.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export interface IConfigContextProps {
|
|
|
6
6
|
root: HTMLElement;
|
|
7
7
|
}
|
|
8
8
|
interface IProviderProps {
|
|
9
|
-
getContainer
|
|
9
|
+
getContainer?: () => HTMLElement;
|
|
10
10
|
children: React.ReactNode;
|
|
11
11
|
}
|
|
12
12
|
declare function Provider({ getContainer, children }: IProviderProps): JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import DomMove from './index';
|
|
3
|
+
export default function () {
|
|
4
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
5
|
+
style: {
|
|
6
|
+
width: 800,
|
|
7
|
+
height: 800
|
|
8
|
+
}
|
|
9
|
+
}, /*#__PURE__*/React.createElement(DomMove, null, /*#__PURE__*/React.createElement("div", {
|
|
10
|
+
style: {
|
|
11
|
+
width: 30,
|
|
12
|
+
height: 30,
|
|
13
|
+
background: 'red'
|
|
14
|
+
}
|
|
15
|
+
})));
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PositionType, SizeType } from '../Picture/interface';
|
|
3
|
+
interface IDomMoveProps {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
onDrag?: (e: MouseEvent, position: PositionType) => void;
|
|
6
|
+
onDragChange?: (position: PositionType) => void;
|
|
7
|
+
onDragEnd?: (e: MouseEvent, position: PositionType) => void;
|
|
8
|
+
position?: PositionType;
|
|
9
|
+
size?: SizeType;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
className?: string;
|
|
12
|
+
style?: React.CSSProperties;
|
|
13
|
+
forwordRef?: React.MutableRefObject<any>;
|
|
14
|
+
}
|
|
15
|
+
declare const _default: React.ForwardRefExoticComponent<IDomMoveProps & React.RefAttributes<unknown>>;
|
|
16
|
+
export default _default;
|