@cloud-app-dev/vidc 3.2.16 → 3.2.18
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/.prettierrc.js +1 -1
- package/.stylelintrc.js +113 -0
- package/es/AppContext/index.js +3 -4
- package/es/Box/InfoBox/index.less +8 -6
- package/es/Box/TwoColumnBox/index.less +32 -22
- package/es/Box/index.less +1 -1
- package/es/CheckGroupFixed/index.less +17 -14
- package/es/CustomRenderSelect/index.less +7 -7
- package/es/DisableMark/index.less +3 -3
- package/es/DomMove/index.js +5 -5
- package/es/Drag/DragAndDropItem.js +1 -2
- package/es/Drag/DropItem.js +2 -2
- package/es/Drag/index.d.ts +9 -7
- package/es/Drawer/index.js +19 -20
- package/es/Drawer/index.less +8 -8
- package/es/Drawer/interface.d.ts +4 -3
- package/es/DynamicGridList/Demo.js +1 -1
- package/es/DynamicList/index.less +2 -0
- package/es/FullScreen/index.less +6 -4
- package/es/GridList/Demo.js +2 -2
- package/es/GridList/index.js +2 -1
- package/es/GridList/index.less +1 -1
- package/es/ImageView/index.less +2 -1
- package/es/Input/index.less +1 -1
- package/es/LabelValue/index.less +5 -2
- package/es/List/index.less +2 -2
- package/es/ListWithSizeAnimate/demo.js +0 -1
- package/es/ListWithSizeAnimate/index.js +18 -28
- package/es/ListWithSizeAnimate/index.less +10 -6
- package/es/Map/BasicMap/index.less +8 -3
- package/es/Map/ClusterLayer/index.less +8 -6
- package/es/Map/FindPio/index.less +2 -2
- package/es/Map/LevelCenter/index.js +3 -4
- package/es/Map/MapDrawSelect/index.js +2 -3
- package/es/Map/ResetTools/index.less +10 -6
- package/es/Map/SinglePoint/index.less +3 -3
- package/es/Map/useMarker/index.js +1 -1
- package/es/Modal/index.js +17 -17
- package/es/Modal/index.less +10 -11
- package/es/Picture/component/DefaultRects/index.js +3 -1
- package/es/Picture/component/DefaultRects/index.less +51 -28
- package/es/Picture/component/DrawRect/index.js +3 -1
- package/es/Picture/component/DrawRect/index.less +2 -2
- package/es/Picture/component/RectMenu/index.less +11 -6
- package/es/Picture/component/Tools/index.js +1 -1
- package/es/Picture/component/Tools/index.less +12 -6
- package/es/Picture/index.js +50 -26
- package/es/Picture/index.less +3 -2
- package/es/Picture/useDraw.js +1 -1
- package/es/Picture/utils.js +35 -34
- package/es/Player/api/index.js +67 -35
- package/es/Player/contraller_bar/contraller_event.js +4 -4
- package/es/Player/contraller_bar/left_bar.js +12 -10
- package/es/Player/empty.js +6 -0
- package/es/Player/event/errorEvent.js +7 -8
- package/es/Player/event/index.js +1 -1
- package/es/Player/fps_play.js +10 -8
- package/es/Player/frontend_player.js +13 -10
- package/es/Player/frontend_timeline.js +41 -41
- package/es/Player/live_heart.js +15 -5
- package/es/Player/message.js +5 -5
- package/es/Player/segment_player.js +31 -24
- package/es/Player/segment_timeline.js +71 -71
- package/es/Player/single_player.js +17 -21
- package/es/Player/style/bar.less +13 -9
- package/es/Player/style/index.less +8 -4
- package/es/Player/style/message.less +22 -16
- package/es/Player/style/slider.less +40 -37
- package/es/Player/style/timeline.less +43 -33
- package/es/Player/style/volume.less +7 -4
- package/es/Player/timeline.js +16 -8
- package/es/Player/util.js +82 -58
- package/es/PlayerExt/index.less +2 -2
- package/es/Progress/index.d.ts +8 -11
- package/es/Progress/index.less +5 -4
- package/es/ROI/index.less +8 -4
- package/es/ScreenPlayer/index.less +49 -26
- package/es/TableLayout/index.less +1 -1
- package/es/ThemeAntd/demo.less +4 -3
- package/es/ThemeAntd/index.less +12 -12
- package/es/ThemeAntd/style/button.less +4 -4
- package/es/ThemeAntd/style/checkbox.less +3 -3
- package/es/ThemeAntd/style/input.less +7 -7
- package/es/ThemeAntd/style/pagination.less +4 -4
- package/es/ThemeAntd/style/picker.less +5 -5
- package/es/ThemeAntd/style/radio.less +2 -2
- package/es/ThemeAntd/style/scrollbar.less +5 -3
- package/es/ThemeAntd/style/select.less +8 -8
- package/es/ThemeAntd/style/table.less +4 -4
- package/es/Tree/index.less +13 -12
- package/es/VList/index.d.ts +12 -18
- package/es/useSimpleState/index.js +1 -1
- package/package.json +12 -6
- package/tsconfig.json +12 -0
- package/es/Api/index.d.ts +0 -12
- package/es/AppContext/Sync.d.ts +0 -8
- package/es/AppContext/index.d.ts +0 -10
- package/es/AppContext/static.d.ts +0 -8
- package/es/Auth/index.d.ts +0 -8
- package/es/AutoExit/index.d.ts +0 -6
- package/es/Box/BetweenBox/index.d.ts +0 -12
- package/es/Box/InfoBox/index.d.ts +0 -12
- package/es/Box/TwoColumnBox/index.d.ts +0 -10
- package/es/Box/deps/content-grid.d.ts +0 -9
- package/es/Box/deps/grid-factory.d.ts +0 -10
- package/es/Box/deps/simple-grid.d.ts +0 -9
- package/es/Box/index.d.ts +0 -14
- package/es/CheckGroupFixed/demo.d.ts +0 -3
- package/es/CheckGroupFixed/index.d.ts +0 -18
- package/es/Config/index.d.ts +0 -4
- package/es/Config/utils.d.ts +0 -4
- package/es/ConfigContext/index.d.ts +0 -22
- package/es/CustomRenderSelect/index.d.ts +0 -12
- package/es/DisableMark/index.d.ts +0 -9
- package/es/DomMove/demo.d.ts +0 -2
- package/es/DomMove/index.d.ts +0 -16
- package/es/DomMove/utils.d.ts +0 -8
- package/es/Drag/DragAndDropItem.d.ts +0 -4
- package/es/Drag/DropItem.d.ts +0 -4
- package/es/Drag/index.less +0 -0
- package/es/Drawer/Footer.d.ts +0 -5
- package/es/Drawer/demo.d.ts +0 -3
- package/es/Drawer/index.d.ts +0 -38
- package/es/DynamicGridList/Demo.d.ts +0 -3
- package/es/DynamicGridList/index.d.ts +0 -27
- package/es/DynamicList/demo.d.ts +0 -2
- package/es/DynamicList/index.d.ts +0 -31
- package/es/DynamicList/utils.d.ts +0 -4
- package/es/ErrorFallback/index.d.ts +0 -9
- package/es/FrontendPlayer/index.d.ts +0 -2
- package/es/FullScreen/index.d.ts +0 -22
- package/es/GridList/Demo.d.ts +0 -3
- package/es/GridList/data.d.ts +0 -16
- package/es/GridList/hook.d.ts +0 -13
- package/es/GridList/index.d.ts +0 -15
- package/es/GridList/utils.d.ts +0 -9
- package/es/HightLevel/index.d.ts +0 -9
- package/es/IconFont/index.d.ts +0 -12
- package/es/ImageView/index.d.ts +0 -17
- package/es/Input/demo.d.ts +0 -3
- package/es/Input/index.d.ts +0 -19
- package/es/InstanceHistory/index.d.ts +0 -3
- package/es/LabelValue/index.d.ts +0 -23
- package/es/List/demo.d.ts +0 -3
- package/es/List/index.d.ts +0 -41
- package/es/ListWithSizeAnimate/demo.d.ts +0 -2
- package/es/ListWithSizeAnimate/index.d.ts +0 -15
- package/es/LoaderApp/index.d.ts +0 -31
- package/es/LoaderApp/loader.d.ts +0 -19
- package/es/LoaderApp/sandbox.back.d.ts +0 -18
- package/es/LoaderApp/sandbox.d.ts +0 -12
- package/es/LoaderApp/utils.d.ts +0 -19
- package/es/LoaderScript/index.d.ts +0 -26
- package/es/LoaderScript/utils.d.ts +0 -14
- package/es/Map/BasicMap/AMapInstance.d.ts +0 -19
- package/es/Map/BasicMap/LeafletInstance.d.ts +0 -18
- package/es/Map/BasicMap/index.d.ts +0 -9
- package/es/Map/ClusterLayer/hook.d.ts +0 -5
- package/es/Map/ClusterLayer/index.d.ts +0 -6
- package/es/Map/Config/index.d.ts +0 -7
- package/es/Map/Config/utils.d.ts +0 -2
- package/es/Map/Context/index.d.ts +0 -11
- package/es/Map/FindPio/index.d.ts +0 -4
- package/es/Map/InfoWindow/MakerLikeWindow.d.ts +0 -4
- package/es/Map/InfoWindow/demo.d.ts +0 -3
- package/es/Map/InfoWindow/index.d.ts +0 -10
- package/es/Map/LevelCenter/DragMarker/index.d.ts +0 -10
- package/es/Map/LevelCenter/demo.d.ts +0 -3
- package/es/Map/LevelCenter/index.d.ts +0 -16
- package/es/Map/LevelCenter/index.less +0 -2
- package/es/Map/LoaderMap/index.d.ts +0 -12
- package/es/Map/MapDrawSelect/demo.d.ts +0 -3
- package/es/Map/MapDrawSelect/index.d.ts +0 -16
- package/es/Map/MapDrawSelect/index.less +0 -2
- package/es/Map/MouseTool/index.d.ts +0 -10
- package/es/Map/MouseTool/useMouseTools.d.ts +0 -7
- package/es/Map/ResetTools/index.d.ts +0 -10
- package/es/Map/SinglePoint/index.d.ts +0 -27
- package/es/Map/hook/useMapEvent.d.ts +0 -2
- package/es/Map/hook/useMapType.d.ts +0 -4
- package/es/Map/icon.d.ts +0 -2
- package/es/Map/index.d.ts +0 -24
- package/es/Map/useMarker/index.d.ts +0 -11
- package/es/Map/useMarker/index.less +0 -0
- package/es/Map/withMap/index.d.ts +0 -3
- package/es/Modal/demo.d.ts +0 -3
- package/es/Modal/index.d.ts +0 -44
- package/es/Picture/component/DefaultRects/RectInfo.d.ts +0 -8
- package/es/Picture/component/DefaultRects/index.d.ts +0 -13
- package/es/Picture/component/DefaultRects/utils.d.ts +0 -2
- package/es/Picture/component/DrawRect/index.d.ts +0 -13
- package/es/Picture/component/RectMenu/index.d.ts +0 -12
- package/es/Picture/component/RectMenu/utils.d.ts +0 -12
- package/es/Picture/component/Tools/index.d.ts +0 -13
- package/es/Picture/component/WheelScale/index.d.ts +0 -7
- package/es/Picture/demo.d.ts +0 -2
- package/es/Picture/dragBound.d.ts +0 -5
- package/es/Picture/index.d.ts +0 -19
- package/es/Picture/loadCaptureRectImage.d.ts +0 -8
- package/es/Picture/useDraw.d.ts +0 -1
- package/es/Picture/utils.d.ts +0 -21
- package/es/Player/api/index.d.ts +0 -68
- package/es/Player/context.d.ts +0 -21
- package/es/Player/contraller_bar/bar.d.ts +0 -8
- package/es/Player/contraller_bar/contraller_event.d.ts +0 -6
- package/es/Player/contraller_bar/index.d.ts +0 -14
- package/es/Player/contraller_bar/left_bar.d.ts +0 -10
- package/es/Player/contraller_bar/right_bar.d.ts +0 -8
- package/es/Player/contraller_bar/time.d.ts +0 -3
- package/es/Player/contraller_bar/useBarStatus.d.ts +0 -2
- package/es/Player/contraller_bar/volume.d.ts +0 -9
- package/es/Player/demo.d.ts +0 -3
- package/es/Player/event/errorEvent.d.ts +0 -16
- package/es/Player/event/eventName.d.ts +0 -18
- package/es/Player/event/index.d.ts +0 -24
- package/es/Player/fps_play.d.ts +0 -11
- package/es/Player/frontend_player.d.ts +0 -8
- package/es/Player/frontend_timeline.d.ts +0 -10
- package/es/Player/iconfont.d.ts +0 -5
- package/es/Player/index.d.ts +0 -2
- package/es/Player/live_heart.d.ts +0 -8
- package/es/Player/message.d.ts +0 -5
- package/es/Player/segment_player.d.ts +0 -9
- package/es/Player/segment_timeline.d.ts +0 -12
- package/es/Player/single_player.d.ts +0 -5
- package/es/Player/timeline.d.ts +0 -5
- package/es/Player/util.d.ts +0 -28
- package/es/PlayerExt/demo.d.ts +0 -3
- package/es/PlayerExt/index.d.ts +0 -48
- package/es/ROI/demo.d.ts +0 -3
- package/es/ROI/index.d.ts +0 -39
- package/es/ROI/utils.d.ts +0 -1
- package/es/ScreenPlayer/Live.d.ts +0 -10
- package/es/ScreenPlayer/LiveTools.d.ts +0 -29
- package/es/ScreenPlayer/PlayerWithExt.d.ts +0 -34
- package/es/ScreenPlayer/RatePick.d.ts +0 -7
- package/es/ScreenPlayer/Record.d.ts +0 -10
- package/es/ScreenPlayer/RecordTools.d.ts +0 -37
- package/es/ScreenPlayer/ScreenSelect.d.ts +0 -7
- package/es/ScreenPlayer/SegmentTimeLine.d.ts +0 -17
- package/es/ScreenPlayer/TimeMode.d.ts +0 -7
- package/es/ScreenPlayer/TimeSelect.d.ts +0 -7
- package/es/ScreenPlayer/demo.d.ts +0 -2
- package/es/ScreenPlayer/demo2.d.ts +0 -2
- package/es/ScreenPlayer/index.d.ts +0 -6
- package/es/ScreenPlayer/useTimeSlider.d.ts +0 -25
- package/es/ScreenPlayer/useVideoFit.d.ts +0 -5
- package/es/ScreenPlayer/utils.d.ts +0 -19
- package/es/SegmentPlayer/index.d.ts +0 -2
- package/es/Service/fetch-adapter.d.ts +0 -12
- package/es/Service/http.d.ts +0 -6
- package/es/Service/index.d.ts +0 -3
- package/es/Service/middleware.d.ts +0 -5
- package/es/TableLayout/index.d.ts +0 -13
- package/es/ThemeAntd/demo.d.ts +0 -4
- package/es/ThemeAntd/index.d.ts +0 -7
- package/es/Timeout/index.d.ts +0 -32
- package/es/Tree/demo.d.ts +0 -3
- package/es/Tree/index.d.ts +0 -24
- package/es/VList/utils.d.ts +0 -14
- package/es/index.d.ts +0 -52
- package/es/useDrawROI/index.d.ts +0 -16
- package/es/useEventEmitterHandle/index.d.ts +0 -2
- package/es/useFullscreen/demo.d.ts +0 -2
- package/es/useFullscreen/index.d.ts +0 -12
- package/es/useHistory/index.d.ts +0 -3
- package/es/useInfiniteScroll/index.d.ts +0 -16
- package/es/useRafInterval/index.d.ts +0 -5
- package/es/useSimpleState/index.d.ts +0 -3
- package/es/useVirtualList/index.d.ts +0 -13
- package/es/utils.d.ts +0 -25
package/.prettierrc.js
CHANGED
package/.stylelintrc.js
ADDED
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
// .stylelintrc.js
|
|
2
|
+
module.exports = {
|
|
3
|
+
processors: [],
|
|
4
|
+
plugins: ['stylelint-order'],
|
|
5
|
+
extends: ['stylelint-config-standard', 'stylelint-config-prettier'],
|
|
6
|
+
rules: {
|
|
7
|
+
'selector-class-pattern': [
|
|
8
|
+
// 命名规范 -
|
|
9
|
+
'^([a-z][a-z0-9]*)(-[a-z0-9]+)*$',
|
|
10
|
+
{
|
|
11
|
+
message: 'Expected class selector to be kebab-case',
|
|
12
|
+
severity: 'warning',
|
|
13
|
+
},
|
|
14
|
+
],
|
|
15
|
+
'string-quotes': 'single', // 单引号
|
|
16
|
+
'at-rule-empty-line-before': null,
|
|
17
|
+
'at-rule-no-unknown': null,
|
|
18
|
+
'at-rule-name-case': 'lower', // 指定@规则名的大小写
|
|
19
|
+
'length-zero-no-unit': true, // 禁止零长度的单位(可自动修复)
|
|
20
|
+
'shorthand-property-no-redundant-values': true, // 简写属性
|
|
21
|
+
'number-leading-zero': 'never', // 小数不带0
|
|
22
|
+
'declaration-block-no-duplicate-properties': true, // 禁止声明快重复属性
|
|
23
|
+
'no-descending-specificity': [true, { severity: 'warning' }], // 禁止在具有较高优先级的选择器后出现被其覆盖的较低优先级的选择器。
|
|
24
|
+
'no-duplicate-selectors': [true, { severity: 'warning' }], // 选择器内部重复
|
|
25
|
+
'selector-max-id': 1, // 限制一个选择器中 ID 选择器的数量
|
|
26
|
+
'max-nesting-depth': 10, // 选择器层级
|
|
27
|
+
indentation: [
|
|
28
|
+
2,
|
|
29
|
+
{
|
|
30
|
+
// 指定缩进 warning 提醒
|
|
31
|
+
severity: 'warning',
|
|
32
|
+
},
|
|
33
|
+
],
|
|
34
|
+
'order/properties-order': [
|
|
35
|
+
// 规则顺序
|
|
36
|
+
'position',
|
|
37
|
+
'top',
|
|
38
|
+
'right',
|
|
39
|
+
'bottom',
|
|
40
|
+
'left',
|
|
41
|
+
'z-index',
|
|
42
|
+
'display',
|
|
43
|
+
'float',
|
|
44
|
+
'width',
|
|
45
|
+
'height',
|
|
46
|
+
'max-width',
|
|
47
|
+
'max-height',
|
|
48
|
+
'min-width',
|
|
49
|
+
'min-height',
|
|
50
|
+
'padding',
|
|
51
|
+
'padding-top',
|
|
52
|
+
'padding-right',
|
|
53
|
+
'padding-bottom',
|
|
54
|
+
'padding-left',
|
|
55
|
+
'margin',
|
|
56
|
+
'margin-top',
|
|
57
|
+
'margin-right',
|
|
58
|
+
'margin-bottom',
|
|
59
|
+
'margin-left',
|
|
60
|
+
'margin-collapse',
|
|
61
|
+
'margin-top-collapse',
|
|
62
|
+
'margin-right-collapse',
|
|
63
|
+
'margin-bottom-collapse',
|
|
64
|
+
'margin-left-collapse',
|
|
65
|
+
'overflow',
|
|
66
|
+
'overflow-x',
|
|
67
|
+
'overflow-y',
|
|
68
|
+
'clip',
|
|
69
|
+
'clear',
|
|
70
|
+
'font',
|
|
71
|
+
'font-family',
|
|
72
|
+
'font-size',
|
|
73
|
+
'font-smoothing',
|
|
74
|
+
'osx-font-smoothing',
|
|
75
|
+
'font-style',
|
|
76
|
+
'font-weight',
|
|
77
|
+
'line-height',
|
|
78
|
+
'letter-spacing',
|
|
79
|
+
'word-spacing',
|
|
80
|
+
'color',
|
|
81
|
+
'text-align',
|
|
82
|
+
'text-decoration',
|
|
83
|
+
'text-indent',
|
|
84
|
+
'text-overflow',
|
|
85
|
+
'text-rendering',
|
|
86
|
+
'text-size-adjust',
|
|
87
|
+
'text-shadow',
|
|
88
|
+
'text-transform',
|
|
89
|
+
'word-break',
|
|
90
|
+
'word-wrap',
|
|
91
|
+
'white-space',
|
|
92
|
+
'vertical-align',
|
|
93
|
+
'list-style',
|
|
94
|
+
'list-style-type',
|
|
95
|
+
'list-style-position',
|
|
96
|
+
'list-style-image',
|
|
97
|
+
'pointer-events',
|
|
98
|
+
'cursor',
|
|
99
|
+
'background',
|
|
100
|
+
'background-color',
|
|
101
|
+
'border',
|
|
102
|
+
'border-radius',
|
|
103
|
+
'content',
|
|
104
|
+
'outline',
|
|
105
|
+
'outline-offset',
|
|
106
|
+
'opacity',
|
|
107
|
+
'filter',
|
|
108
|
+
'visibility',
|
|
109
|
+
'size',
|
|
110
|
+
'transform',
|
|
111
|
+
],
|
|
112
|
+
},
|
|
113
|
+
};
|
package/es/AppContext/index.js
CHANGED
|
@@ -20,10 +20,10 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
20
20
|
|
|
21
21
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
22
22
|
|
|
23
|
+
import { isEmpty } from 'lodash-es';
|
|
23
24
|
import React, { useCallback, useMemo, useState } from 'react';
|
|
24
|
-
import Sync from "./Sync";
|
|
25
25
|
import * as Static from "./static";
|
|
26
|
-
import
|
|
26
|
+
import Sync from "./Sync";
|
|
27
27
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
28
28
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
29
29
|
var _USER_SESSION_ = Static._USER_SESSION_,
|
|
@@ -177,8 +177,7 @@ function Provider(_ref) {
|
|
|
177
177
|
storeChange: storeChange
|
|
178
178
|
})]
|
|
179
179
|
});
|
|
180
|
-
}
|
|
181
|
-
|
|
180
|
+
}
|
|
182
181
|
|
|
183
182
|
export default {
|
|
184
183
|
Provider: Provider,
|
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
.info-box-layout {
|
|
2
|
+
display: flex;
|
|
2
3
|
width: 100%;
|
|
3
4
|
margin-bottom: 20px;
|
|
4
|
-
display: flex;
|
|
5
5
|
flex-direction: column;
|
|
6
|
+
|
|
6
7
|
.info-box-title-wrapper {
|
|
7
|
-
|
|
8
|
-
border: 1px solid var(--gray3);
|
|
9
|
-
border-bottom: none;
|
|
8
|
+
display: flex;
|
|
10
9
|
height: 3em;
|
|
11
10
|
min-height: max-content;
|
|
12
|
-
display: flex;
|
|
13
|
-
align-items: center;
|
|
14
11
|
padding: 0 10px;
|
|
15
12
|
font-weight: 700;
|
|
13
|
+
background-color: var(--gray2);
|
|
14
|
+
border: 1px solid var(--gray3);
|
|
15
|
+
border-bottom: none;
|
|
16
|
+
align-items: center;
|
|
16
17
|
}
|
|
18
|
+
|
|
17
19
|
.info-box-content-wrapper {
|
|
18
20
|
background-color: var(--gray1);
|
|
19
21
|
border: 1px solid var(--gray3);
|
|
@@ -1,70 +1,80 @@
|
|
|
1
1
|
.two-column-layout-container {
|
|
2
|
+
position: relative;
|
|
2
3
|
width: 100%;
|
|
3
4
|
height: 100%;
|
|
4
|
-
position: relative;
|
|
5
5
|
color: var(--color1);
|
|
6
|
+
|
|
6
7
|
.two-column-aside {
|
|
7
|
-
transition: width 0.1s ease-in;
|
|
8
|
-
width: 30%;
|
|
9
|
-
height: 100%;
|
|
10
|
-
z-index: 9;
|
|
11
8
|
position: absolute;
|
|
12
|
-
left: 0;
|
|
13
9
|
top: 0;
|
|
14
|
-
|
|
10
|
+
left: 0;
|
|
11
|
+
z-index: 9;
|
|
12
|
+
width: 30%;
|
|
13
|
+
height: 100%;
|
|
14
|
+
transition: width .1s ease-in;
|
|
15
|
+
box-shadow: 0 2px 8px rgb(0 0 0 / 10%);
|
|
16
|
+
|
|
15
17
|
.two-colum-left-wrapper {
|
|
16
18
|
width: 100%;
|
|
17
19
|
height: 100%;
|
|
18
20
|
overflow: hidden;
|
|
19
21
|
}
|
|
22
|
+
|
|
20
23
|
.two-colum-left-content {
|
|
21
24
|
width: 100%;
|
|
22
25
|
height: 100%;
|
|
23
26
|
background-color: var(--gray1);
|
|
24
27
|
}
|
|
28
|
+
|
|
25
29
|
.left-aside-slider-btn {
|
|
26
30
|
position: absolute;
|
|
31
|
+
top: 50%;
|
|
32
|
+
right: -8px;
|
|
33
|
+
z-index: 9;
|
|
27
34
|
width: 8px;
|
|
28
35
|
height: 20px;
|
|
29
|
-
right: -8px;
|
|
30
|
-
top: 50%;
|
|
31
36
|
margin-top: -8px;
|
|
32
37
|
font-size: var(--fs-large);
|
|
33
|
-
background-color: var(--gray5);
|
|
34
38
|
cursor: pointer;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
+
background-color: var(--gray5);
|
|
40
|
+
|
|
41
|
+
&::before,
|
|
42
|
+
&::after {
|
|
43
|
+
position: absolute;
|
|
44
|
+
z-index: 2;
|
|
39
45
|
width: 1px;
|
|
40
46
|
height: 16px;
|
|
41
|
-
z-index: 2;
|
|
42
47
|
background-color: var(--gray1);
|
|
43
|
-
|
|
48
|
+
content: '';
|
|
44
49
|
}
|
|
45
|
-
|
|
46
|
-
|
|
50
|
+
|
|
51
|
+
&::before {
|
|
47
52
|
bottom: 2px;
|
|
53
|
+
left: 2px;
|
|
48
54
|
}
|
|
49
|
-
|
|
50
|
-
|
|
55
|
+
|
|
56
|
+
&::after {
|
|
51
57
|
top: 2px;
|
|
58
|
+
right: 2px;
|
|
52
59
|
}
|
|
53
60
|
}
|
|
61
|
+
|
|
54
62
|
&.hide-left-aside {
|
|
55
63
|
width: 0;
|
|
64
|
+
|
|
56
65
|
& + .two-column-content {
|
|
57
66
|
padding-left: 0;
|
|
58
67
|
}
|
|
59
68
|
}
|
|
60
69
|
}
|
|
70
|
+
|
|
61
71
|
.two-column-content {
|
|
62
72
|
width: 100%;
|
|
63
73
|
height: 100%;
|
|
64
|
-
overflow: hidden;
|
|
65
74
|
padding-left: 30%;
|
|
75
|
+
overflow: hidden;
|
|
66
76
|
background-color: var(--gray2);
|
|
67
|
-
transition: padding-left
|
|
77
|
+
transition: padding-left .3s ease-in-out;
|
|
68
78
|
box-sizing: border-box;
|
|
69
79
|
}
|
|
70
80
|
}
|
package/es/Box/index.less
CHANGED
|
@@ -1,50 +1,53 @@
|
|
|
1
1
|
.c-check-group-layout {
|
|
2
2
|
position: relative;
|
|
3
|
+
|
|
3
4
|
.c-check-group-box {
|
|
4
|
-
padding: 10px;
|
|
5
5
|
display: flex;
|
|
6
|
+
padding: 10px;
|
|
6
7
|
}
|
|
8
|
+
|
|
7
9
|
.check-label-box {
|
|
8
10
|
width: 80px;
|
|
9
11
|
color: #999;
|
|
10
12
|
}
|
|
13
|
+
|
|
11
14
|
.check-content-box {
|
|
12
15
|
width: 100%;
|
|
13
|
-
flex: 1;
|
|
14
|
-
overflow: hidden;
|
|
15
16
|
height: 30px;
|
|
17
|
+
overflow: hidden;
|
|
18
|
+
flex: 1;
|
|
16
19
|
.@{ant-prefix}-checkbox-group {
|
|
17
20
|
display: grid;
|
|
18
21
|
grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
|
|
19
|
-
grid-
|
|
20
|
-
grid-column-gap: 10px;
|
|
22
|
+
grid-gap: 10px;
|
|
21
23
|
.@{ant-prefix}-checkbox-wrapper {
|
|
24
|
+
display: flex;
|
|
22
25
|
width: 120px;
|
|
23
|
-
margin-left: 0;
|
|
24
26
|
height: 30px;
|
|
25
|
-
|
|
27
|
+
margin-left: 0;
|
|
26
28
|
> span:not(.@{ant-prefix}-checkbox) {
|
|
27
|
-
flex: 1;
|
|
28
|
-
overflow: hidden;
|
|
29
|
-
white-space: nowrap;
|
|
30
29
|
overflow: hidden;
|
|
31
30
|
text-overflow: ellipsis;
|
|
31
|
+
white-space: nowrap;
|
|
32
|
+
flex: 1;
|
|
32
33
|
}
|
|
33
34
|
}
|
|
34
35
|
}
|
|
35
36
|
}
|
|
37
|
+
|
|
36
38
|
.sider-mask {
|
|
37
39
|
position: fixed;
|
|
40
|
+
top: 0;
|
|
41
|
+
left: 0;
|
|
38
42
|
z-index: 98;
|
|
39
43
|
width: 100%;
|
|
40
44
|
height: 100%;
|
|
41
|
-
left: 0;
|
|
42
|
-
top: 0;
|
|
43
45
|
}
|
|
46
|
+
|
|
44
47
|
.slice-btn {
|
|
45
|
-
color: var(--primary);
|
|
46
|
-
cursor: pointer;
|
|
47
48
|
position: relative;
|
|
48
49
|
top: 4px;
|
|
50
|
+
color: var(--primary);
|
|
51
|
+
cursor: pointer;
|
|
49
52
|
}
|
|
50
53
|
}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
.custom-render-select {
|
|
2
|
-
display: inline-block;
|
|
3
2
|
position: relative;
|
|
3
|
+
display: inline-block;
|
|
4
4
|
width: max-content;
|
|
5
5
|
overflow: hidden;
|
|
6
|
+
|
|
6
7
|
.custom-render-box {
|
|
7
|
-
display: inline-block;
|
|
8
8
|
position: relative;
|
|
9
9
|
z-index: 22;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
display: inline-block;
|
|
11
|
+
|
|
12
|
+
|
|
13
13
|
}
|
|
14
14
|
.@{ant-prefix}-select{
|
|
15
15
|
position: absolute;
|
|
16
|
+
top:50%;
|
|
17
|
+
left: 50%;
|
|
16
18
|
width: max-content;
|
|
17
19
|
height: 100%;
|
|
18
|
-
left: 50%;
|
|
19
|
-
top:50%;
|
|
20
20
|
opacity: 0;
|
|
21
21
|
transform: translate(-50%,-50%);
|
|
22
22
|
|
package/es/DomMove/index.js
CHANGED
|
@@ -9,7 +9,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
9
9
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
10
10
|
|
|
11
11
|
import React, { useEffect, useImperativeHandle, useRef } from 'react';
|
|
12
|
-
import {
|
|
12
|
+
import { getMouseXY, getPosition } from "./utils";
|
|
13
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
14
|
|
|
15
15
|
function DomMove(_ref) {
|
|
@@ -123,8 +123,8 @@ function DomMove(_ref) {
|
|
|
123
123
|
});
|
|
124
124
|
|
|
125
125
|
var _ref3 = onDrag ? {
|
|
126
|
-
x: position.x,
|
|
127
|
-
y: position.y
|
|
126
|
+
x: position === null || position === void 0 ? void 0 : position.x,
|
|
127
|
+
y: position === null || position === void 0 ? void 0 : position.y
|
|
128
128
|
} : {
|
|
129
129
|
x: ref.current.position.x,
|
|
130
130
|
y: ref.current.position.y
|
|
@@ -137,8 +137,8 @@ function DomMove(_ref) {
|
|
|
137
137
|
className: "drag-move-Content ".concat(className),
|
|
138
138
|
style: {
|
|
139
139
|
transform: "translate(".concat(x, "px,").concat(y, "px)"),
|
|
140
|
-
width: size.width,
|
|
141
|
-
height: size.height
|
|
140
|
+
width: size === null || size === void 0 ? void 0 : size.width,
|
|
141
|
+
height: size === null || size === void 0 ? void 0 : size.height
|
|
142
142
|
},
|
|
143
143
|
children: children
|
|
144
144
|
});
|
|
@@ -18,8 +18,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
18
18
|
|
|
19
19
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
20
20
|
|
|
21
|
-
import React, {
|
|
22
|
-
import { useRef, useMemo } from 'react';
|
|
21
|
+
import React, { useCallback, useMemo, useRef, useState } from 'react';
|
|
23
22
|
|
|
24
23
|
function DragAndDropItem(_ref) {
|
|
25
24
|
var children = _ref.children,
|
package/es/Drag/DropItem.js
CHANGED
|
@@ -16,8 +16,8 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
16
16
|
|
|
17
17
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
import { useRef } from 'react';
|
|
19
|
+
/* eslint-disable @typescript-eslint/no-unused-expressions */
|
|
20
|
+
import React, { useCallback, useRef, useState } from 'react';
|
|
21
21
|
|
|
22
22
|
function DropItem(_ref) {
|
|
23
23
|
var children = _ref.children,
|
package/es/Drag/index.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IDragAndDropItemProps, IDropItemProps } from './interface';
|
|
3
|
+
|
|
4
|
+
interface IDragInterface<T> {
|
|
5
|
+
DragAndDropItemProps: React.FC<IDragAndDropItemProps<T>>;
|
|
6
|
+
DropItem: React.FC<IDropItemProps<T>>;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export default IDragInterface;
|
package/es/Drawer/index.js
CHANGED
|
@@ -26,12 +26,11 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
26
26
|
|
|
27
27
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
28
28
|
|
|
29
|
-
import Footer from "./Footer";
|
|
30
29
|
import React, { useContext, useEffect, useImperativeHandle, useMemo, useState } from 'react';
|
|
31
30
|
import * as ReactDOMClient from 'react-dom/client';
|
|
32
|
-
import CC from "../ConfigContext";
|
|
31
|
+
import { default as CC, default as ConfigContext } from "../ConfigContext";
|
|
32
|
+
import Footer from "./Footer";
|
|
33
33
|
import "./index.less";
|
|
34
|
-
import ConfigContext from "../ConfigContext";
|
|
35
34
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
36
35
|
|
|
37
36
|
function Drawer(_ref) {
|
|
@@ -99,6 +98,23 @@ function useDrawer() {
|
|
|
99
98
|
onRecoverableError: console.error
|
|
100
99
|
});
|
|
101
100
|
}, []);
|
|
101
|
+
|
|
102
|
+
var open = function open(options) {
|
|
103
|
+
setState(function (old) {
|
|
104
|
+
return _objectSpread(_objectSpread(_objectSpread({}, old), options), {}, {
|
|
105
|
+
visible: true
|
|
106
|
+
});
|
|
107
|
+
});
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
var close = function close() {
|
|
111
|
+
setState(function (old) {
|
|
112
|
+
return _objectSpread(_objectSpread({}, old), {}, {
|
|
113
|
+
visible: false
|
|
114
|
+
});
|
|
115
|
+
});
|
|
116
|
+
};
|
|
117
|
+
|
|
102
118
|
useEffect(function () {
|
|
103
119
|
container.appendChild(div);
|
|
104
120
|
return function () {
|
|
@@ -126,23 +142,6 @@ function useDrawer() {
|
|
|
126
142
|
})
|
|
127
143
|
}));
|
|
128
144
|
}, [state.content, state.visible, state.title, state.onOk, state.width, state.className]);
|
|
129
|
-
|
|
130
|
-
var open = function open(options) {
|
|
131
|
-
setState(function (old) {
|
|
132
|
-
return _objectSpread(_objectSpread(_objectSpread({}, old), options), {}, {
|
|
133
|
-
visible: true
|
|
134
|
-
});
|
|
135
|
-
});
|
|
136
|
-
};
|
|
137
|
-
|
|
138
|
-
var close = function close() {
|
|
139
|
-
setState(function (old) {
|
|
140
|
-
return _objectSpread(_objectSpread({}, old), {}, {
|
|
141
|
-
visible: false
|
|
142
|
-
});
|
|
143
|
-
});
|
|
144
|
-
};
|
|
145
|
-
|
|
146
145
|
return {
|
|
147
146
|
open: open,
|
|
148
147
|
close: close
|
package/es/Drawer/index.less
CHANGED
|
@@ -5,36 +5,36 @@
|
|
|
5
5
|
height: 100%;
|
|
6
6
|
}
|
|
7
7
|
.@{ant-prefix}-drawer-header {
|
|
8
|
+
position: relative;
|
|
8
9
|
display: flex;
|
|
9
|
-
|
|
10
|
-
align-items: center;
|
|
10
|
+
height: var(--drawer-title-height);
|
|
11
11
|
padding: 0 24px;
|
|
12
12
|
color: inherit;
|
|
13
|
-
height: var(--drawer-title-height);
|
|
14
13
|
background-color: var(--drawer-title-bg);
|
|
14
|
+
justify-content: space-between;
|
|
15
|
+
align-items: center;
|
|
15
16
|
border-bottom-color: var(--drawer-divider-color);
|
|
16
|
-
position: relative;
|
|
17
17
|
.@{ant-prefix}-drawer-title {
|
|
18
|
-
color: inherit;
|
|
19
18
|
font-size: var(--fs-large);
|
|
20
19
|
line-height: 2em;
|
|
20
|
+
color: inherit;
|
|
21
21
|
}
|
|
22
22
|
.@{ant-prefix}-drawer-close {
|
|
23
|
-
padding: 0;
|
|
24
23
|
position: absolute;
|
|
25
24
|
right: 0;
|
|
25
|
+
padding: 0;
|
|
26
26
|
color: inherit;
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
.@{ant-prefix}-drawer-body {
|
|
30
|
+
overflow: auto;
|
|
30
31
|
background: var(--drawer-content-bg);
|
|
31
32
|
flex: 1;
|
|
32
|
-
overflow: auto;
|
|
33
33
|
}
|
|
34
34
|
.@{ant-prefix}-drawer-footer {
|
|
35
35
|
height: var(--drawer-footer-height);
|
|
36
|
-
overflow: hidden;
|
|
37
36
|
padding: 0 24px;
|
|
37
|
+
overflow: hidden;
|
|
38
38
|
line-height: var(--drawer-footer-height);
|
|
39
39
|
background: var(--drawer-footer-bg);
|
|
40
40
|
border-top-color: var(--drawer-divider-color);
|
package/es/Drawer/interface.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import type { DrawerProps } from 'antd';
|
|
2
|
+
import React from 'react';
|
|
2
3
|
|
|
3
4
|
export interface IDrawerProps extends DrawerProps {
|
|
4
5
|
cancelText?: string;
|
|
5
6
|
|
|
6
|
-
onOk?: (e:
|
|
7
|
+
onOk?: (e: React.MouseEvent) => void;
|
|
7
8
|
|
|
8
9
|
/**
|
|
9
10
|
* @description 确认按钮文本
|
|
@@ -14,8 +15,8 @@ export interface IDrawerProps extends DrawerProps {
|
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
export interface IFooterProps {
|
|
17
|
-
onClose: (e:
|
|
18
|
+
onClose: (e: React.MouseEvent) => void;
|
|
18
19
|
cancelText: string;
|
|
19
20
|
okText: string;
|
|
20
|
-
onOk: (e:
|
|
21
|
+
onOk: (e: React.MouseEvent) => void;
|
|
21
22
|
}
|
package/es/FullScreen/index.less
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
.tools-screen-layer {
|
|
2
|
-
flex: 1;
|
|
3
|
-
align-self: center;
|
|
4
|
-
text-align: center;
|
|
5
|
-
font-size: var(--fs-small);
|
|
6
2
|
position: relative;
|
|
3
|
+
font-size: var(--fs-small);
|
|
4
|
+
text-align: center;
|
|
7
5
|
cursor: pointer;
|
|
6
|
+
flex: 1;
|
|
7
|
+
align-self: center;
|
|
8
|
+
|
|
8
9
|
.anticon {
|
|
9
10
|
padding-right: 5px;
|
|
10
11
|
}
|
|
12
|
+
|
|
11
13
|
.defualt-fullscreen-icon {
|
|
12
14
|
position: relative;
|
|
13
15
|
top: 1px;
|
package/es/GridList/Demo.js
CHANGED
|
@@ -15,7 +15,7 @@ import data from "./data";
|
|
|
15
15
|
import GridList from "./index";
|
|
16
16
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
17
17
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
18
|
-
var ITEM_WIDTH =
|
|
18
|
+
var ITEM_WIDTH = 250;
|
|
19
19
|
|
|
20
20
|
function getGridGap(elementWidth, windowHeight) {
|
|
21
21
|
if (elementWidth > 720 && windowHeight > 480) {
|
|
@@ -26,7 +26,7 @@ function getGridGap(elementWidth, windowHeight) {
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
function getColumnCount(elementWidth, gridGap) {
|
|
29
|
-
return Math.floor(
|
|
29
|
+
return Math.floor(elementWidth / (ITEM_WIDTH + gridGap));
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
function getWindowMargin(windowHeight) {
|
package/es/GridList/index.js
CHANGED
|
@@ -33,7 +33,8 @@ var GridList = /*#__PURE__*/React.forwardRef(function GridList(props, ref) {
|
|
|
33
33
|
return /*#__PURE__*/_jsx("div", {
|
|
34
34
|
style: {
|
|
35
35
|
height: cell.height,
|
|
36
|
-
maxWidth: cell.width,
|
|
36
|
+
// maxWidth: cell.width,
|
|
37
|
+
width: '100%',
|
|
37
38
|
gridColumnStart: "".concat(cell.columnNumber),
|
|
38
39
|
gridRowStart: getGridRowStart(cell, renderData)
|
|
39
40
|
},
|