@cloud-app-dev/vidc 2.2.0-alpha.8 → 2.3.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 CHANGED
@@ -2,6 +2,4 @@
2
2
  .vscode/
3
3
  .cache/
4
4
  /node_modules/
5
- /umd/
6
- rollup.config.js
7
- /src/components/LoaderApp/importHtmlEntry
5
+ /umd/
package/.eslintrc ADDED
@@ -0,0 +1,3 @@
1
+ {
2
+ "extends": "react-app"
3
+ }
package/.prettierignore CHANGED
@@ -5,3 +5,4 @@ package.json
5
5
  .umi
6
6
  .umi-production
7
7
  .umi-test
8
+ .mfsu
package/.umirc.ts CHANGED
@@ -39,61 +39,86 @@ export default defineConfig({
39
39
  },
40
40
  },
41
41
  },
42
- // mfsu: {
43
- // development: {
44
- // output: './.mfsu/dev',
45
- // },
46
- // production: {
47
- // output: './.mfsu/prod',
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: rgba(18,122,255,1);
54
- --primary-light: rgba(59,189,248,1);
55
- --primary-dark: rgba(14,110,232,1);
56
- --danger: rgba(222,0,0,1);
57
- --danger-light: rgba(255,64,64,1);
58
- --danger-dark: rgba(163,1,1,1);
59
- --success: rgba(5,198,13,1);
60
- --success-light: rgba(7,203,45,1);
61
- --success-dark: rgba(1,146,27,1);
62
- --link: rgba(22,134,229,1);
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: 14px;
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
- --sider-size: 330px;
73
- --app-header-color: rgba(0,0,0,1);
74
- --app-header-bg: rgba(255,255,255,1);
75
- --nav-height: 68px;
76
- --nav-bg: linear-gradient(135deg, #5390f0 0%, #488ef0 55%, #3364d2 100%);
77
- --nav-sub-bg: #3e80dc;
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: #86B7FF;
80
- --nav-item-color: rgba(255,255,255,1);
81
- --nav-item-color-selected: rgba(255,255,255,1);
82
- --nav-sub-item-bg-selected: #75AAFB;
83
- --nav-sub-item-color-selected: rgba(255,255,255,1);
84
- --nav-sub-item-color: rgba(55,66,105,1);
85
- --nav-bd-color: rgba(18,122,255,1);
86
- --tab-height: 48px;
87
- --tab-bg: #dbe1ea;
88
- --tab-item-bg: #DADADA;
89
- --tab-item-height: 32px;
90
- --tab-item-color: rgba(72,83,108,1);
91
- --tab-item-selected-bg: #f3f6f9;
92
- --tab-item-selected-color: rgba(18,122,255,1);
93
- --table-bg: #ffffff;
94
- --table-head-bg: rgba(219,225,234,1);
95
- --table-bd: rgba(245,245,245,1);
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-box-bg: rgba(240,242,245,1);
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
  ],
@@ -5,11 +5,10 @@
5
5
  flex-direction: column;
6
6
  }
7
7
  .info-box-layout .info-box-title-wrapper {
8
- background-color: var(--content-info-box-title-bg);
9
- border: 1px solid var(--content-info-box-title-bd);
8
+ background-color: var(--gray2);
9
+ border: 1px solid var(--gray3);
10
10
  border-bottom: none;
11
- height: var(--content-info-box-title-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(--content-info-box-bg);
21
- border: 1px solid var(--content-info-box-bd-color);
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(--content-two-column-box-color);
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: var(--sider-size);
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: var(--sider-size);
23
+ width: 100%;
24
24
  height: 100%;
25
- background-color: var(--content-two-column-box-left-bg);
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: 16px;
29
+ width: 8px;
30
30
  height: 20px;
31
- right: -16px;
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
- background-color: red;
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: 100%;
48
- height: 100%;
42
+ width: 1px;
43
+ height: 16px;
49
44
  z-index: 2;
50
- background-color: var(--content-two-column-box-left-bg);
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: 0;
55
- bottom: -10px;
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: 0;
60
- top: -10px;
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: var(--sider-size);
74
- background-color: var(--content-two-column-box-right-bg);
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(IconFont, {
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
@@ -1,7 +1,7 @@
1
1
  .single-column-layout-container {
2
2
  width: 100%;
3
3
  height: 100%;
4
- background-color: var(--content-box-bg);
4
+ background-color: var(--gray1);
5
5
  }
6
6
  .single-column-layout-container .single-column-content {
7
7
  margin: 0 auto;
@@ -6,7 +6,7 @@ export interface IConfigContextProps {
6
6
  root: HTMLElement;
7
7
  }
8
8
  interface IProviderProps {
9
- getContainer: () => HTMLElement;
9
+ getContainer?: () => HTMLElement;
10
10
  children: React.ReactNode;
11
11
  }
12
12
  declare function Provider({ getContainer, children }: IProviderProps): JSX.Element;
@@ -3,7 +3,7 @@
3
3
  flex-direction: column;
4
4
  width: 100%;
5
5
  height: 100%;
6
- border: 1px solid var(--bd-color);
6
+ border: 1px solid var(--gray2);
7
7
  }
8
8
  .zenview-c-dynamic-device-list-layout .dynamic-list-item {
9
9
  padding: 0 10px;
package/es/List/index.css CHANGED
@@ -4,7 +4,7 @@
4
4
  overflow: hidden;
5
5
  height: 100%;
6
6
  cursor: auto;
7
- border: 1px solid var(--bd-color);
7
+ border: 1px solid var(--gray2);
8
8
  /*列表项*/
9
9
  }
10
10
  .lm-c-check-list-wrapper .lm-c-base-list-layout {
@@ -51,7 +51,7 @@
51
51
  padding: 5px 15px;
52
52
  display: flex;
53
53
  justify-content: space-between;
54
- border-bottom: 1px solid var(--bd-color);
54
+ border-bottom: 1px solid var(--gray2);
55
55
  }
56
56
  .cloudapp-c-check-list-checkext .select-group .anticon {
57
57
  font-size: 16px;
package/es/List/index.js CHANGED
@@ -21,7 +21,6 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
21
21
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
22
22
 
23
23
  import React, { useCallback, useEffect, useMemo, useState } from 'react';
24
- import VList from './VList';
25
24
  import { RenderItem } from './renderItem';
26
25
  import CheckExt from './CheckExt';
27
26
  import DeviceList from './DeviceList';
@@ -29,6 +28,7 @@ import ListExt from './ListExt';
29
28
  import DynamicDeviceList from './DynamicDeviceList';
30
29
  import GridList from './GridList';
31
30
  import DynamicGridList from './DynamicGridList';
31
+ import VList from './VList';
32
32
  import "./index.css";
33
33
 
34
34
  function List(props) {
@@ -57,7 +57,7 @@ function List(props) {
57
57
  return !!onChecked;
58
58
  }, []);
59
59
  /**
60
- * 列表选中处理
60
+ * @desc 列表选中处理
61
61
  */
62
62
 
63
63
  var onCheckedAction = useCallback(function (e) {
@@ -82,7 +82,7 @@ function List(props) {
82
82
  }, // eslint-disable-next-line react-hooks/exhaustive-deps
83
83
  [state.checkedKeys]);
84
84
  /**
85
- * 列表渲染
85
+ * @desc 列表渲染
86
86
  */
87
87
 
88
88
  var renderRow = useCallback(function (data, index) {
@@ -109,7 +109,7 @@ function List(props) {
109
109
  }, // eslint-disable-next-line react-hooks/exhaustive-deps
110
110
  [list, state, onChecked, CustomRender, activeKey]);
111
111
  /**
112
- * 列表全选处理
112
+ * @desc 列表全选处理
113
113
  */
114
114
 
115
115
  var onCheck = useCallback(function () {
@@ -124,7 +124,7 @@ function List(props) {
124
124
  props.onChecked && props.onChecked(ids); // eslint-disable-next-line react-hooks/exhaustive-deps
125
125
  }, [itemKey, list]);
126
126
  /**
127
- * 列表取消
127
+ * @desc 列表取消
128
128
  */
129
129
 
130
130
  var onCancel = useCallback(function () {
@@ -136,7 +136,7 @@ function List(props) {
136
136
  props.onChecked && props.onChecked([]); // eslint-disable-next-line react-hooks/exhaustive-deps
137
137
  }, [itemKey, list]);
138
138
  /**
139
- * 同步选中更新
139
+ * @desc 同步选中更新
140
140
  */
141
141
 
142
142
  useEffect(function () {
@@ -6,7 +6,7 @@
6
6
  height: 100%;
7
7
  display: flex;
8
8
  flex-direction: column;
9
- border-radius: var(--form-redius);
9
+ border-radius: var(--redius1);
10
10
  overflow: hidden;
11
11
  background-color: transparent;
12
12
  }
@@ -7,18 +7,18 @@ declare namespace Modal {
7
7
  className: string;
8
8
  getContainer: boolean;
9
9
  };
10
- var info;
11
- var success;
12
- var error;
13
- var warn;
14
- var warning;
15
- var confirm;
10
+ var info: import("antd/lib/modal/confirm").ModalFunc;
11
+ var success: import("antd/lib/modal/confirm").ModalFunc;
12
+ var error: import("antd/lib/modal/confirm").ModalFunc;
13
+ var warn: import("antd/lib/modal/confirm").ModalFunc;
14
+ var warning: import("antd/lib/modal/confirm").ModalFunc;
15
+ var confirm: import("antd/lib/modal/confirm").ModalFunc;
16
16
  var destroyAll: () => void;
17
17
  var useModal: (prefixCls?: string) => {
18
18
  open: (options: IUseModalHookState) => void;
19
19
  close: () => void;
20
20
  };
21
- var useAntdModal;
21
+ var useAntdModal: typeof import("antd/lib/modal/useModal").default;
22
22
  var RefModal: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<IRefModalMethodsProps>>;
23
23
  }
24
24
  export interface IUseModalHookState {