@cloud-app-dev/vidc 3.2.38 → 3.2.39

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.
Files changed (121) hide show
  1. package/.dumirc.ts +7 -11
  2. package/.fatherrc.ts +0 -1
  3. package/es/CheckGroupFixed/demo.js +2 -3
  4. package/es/CheckGroupFixed/index.js +4 -7
  5. package/es/Config/index.js +10 -9
  6. package/es/Config/interface.d.ts +2 -3
  7. package/es/CustomRenderSelect/index.js +2 -3
  8. package/es/DynamicList/demo.js +3 -4
  9. package/es/DynamicList/index.js +2 -3
  10. package/es/ErrorFallback/index.js +3 -6
  11. package/es/FrontendPlayer/index.d.ts +4 -2
  12. package/es/List/index.d.ts +0 -13
  13. package/es/List/index.js +1 -19
  14. package/es/LoaderScript/utils.d.ts +0 -1
  15. package/es/LoaderScript/utils.js +1 -36
  16. package/es/Map/FindPio/index.js +2 -3
  17. package/es/Map/LevelCenter/demo.js +2 -4
  18. package/es/Map/ResetTools/index.js +4 -5
  19. package/es/Picture/component/Tools/index.js +6 -7
  20. package/es/Picture/demo.js +9 -13
  21. package/es/Picture/index.js +55 -64
  22. package/es/Picture/utils.js +0 -1
  23. package/es/Player/api/index.js +2 -1
  24. package/es/Player/contraller_bar/volume.js +3 -6
  25. package/es/Player/demo.js +28 -58
  26. package/es/Player/frontend_timeline.js +1 -1
  27. package/es/Player/segment_timeline.js +3 -5
  28. package/es/Player/single_player.js +1 -1
  29. package/es/Player/util.d.ts +0 -1
  30. package/es/Player/util.js +2 -40
  31. package/es/PlayerExt/demo.js +12 -20
  32. package/es/Progress/index.js +4 -6
  33. package/es/RefDrawer/Footer.d.ts +9 -0
  34. package/es/{Drawer → RefDrawer}/Footer.js +3 -5
  35. package/es/{Drawer/Demo.d.ts → RefDrawer/demo.d.ts} +0 -0
  36. package/es/RefDrawer/demo.js +35 -0
  37. package/es/RefDrawer/index.d.ts +26 -0
  38. package/es/{Input → RefDrawer}/index.js +54 -58
  39. package/es/{Input → RefModal}/demo.d.ts +0 -0
  40. package/es/RefModal/demo.js +35 -0
  41. package/es/RefModal/index.d.ts +17 -0
  42. package/es/RefModal/index.js +71 -0
  43. package/es/ScreenPlayer/PlayerWithExt.js +1 -1
  44. package/es/ScreenPlayer/RatePick.js +8 -9
  45. package/es/ScreenPlayer/ScreenSelect.js +2 -3
  46. package/es/ScreenPlayer/SegmentTimeLine.js +3 -11
  47. package/es/ScreenPlayer/TimeMode.js +3 -4
  48. package/es/ScreenPlayer/TimeSelect.js +14 -39
  49. package/es/ScreenPlayer/demo.js +2 -3
  50. package/es/ScreenPlayer/demo2.js +8 -28
  51. package/es/ScreenPlayer/useTimeSlider.js +1 -1
  52. package/es/Service/http.js +6 -8
  53. package/es/TableLayout/index.d.ts +0 -3
  54. package/es/TableLayout/index.js +8 -10
  55. package/es/ThemeAntd/demo.js +21 -40
  56. package/es/ThemeAntd/index.js +16 -2
  57. package/es/ThemeAntd/index.less +0 -12
  58. package/es/Timeout/index.js +2 -2
  59. package/es/core.d.ts +0 -149
  60. package/es/index.d.ts +2 -6
  61. package/es/index.js +2 -6
  62. package/es/useDrawROI/index.js +4 -4
  63. package/es/utils.d.ts +1 -12
  64. package/es/utils.js +0 -56
  65. package/package.json +24 -24
  66. package/theme-config.ts +3 -1
  67. package/typings/global.d.ts +4 -4
  68. package/es/Api/index.d.ts +0 -12
  69. package/es/Api/index.js +0 -267
  70. package/es/Box/BetweenBox/index.d.ts +0 -12
  71. package/es/Box/BetweenBox/index.js +0 -31
  72. package/es/Box/BetweenBox/index.less +0 -5
  73. package/es/Box/InfoBox/index.d.ts +0 -12
  74. package/es/Box/InfoBox/index.js +0 -30
  75. package/es/Box/InfoBox/index.less +0 -24
  76. package/es/Box/TwoColumnBox/index.d.ts +0 -10
  77. package/es/Box/TwoColumnBox/index.js +0 -54
  78. package/es/Box/TwoColumnBox/index.less +0 -80
  79. package/es/Box/deps/content-grid.d.ts +0 -9
  80. package/es/Box/deps/content-grid.js +0 -9
  81. package/es/Box/deps/grid-factory.d.ts +0 -10
  82. package/es/Box/deps/grid-factory.js +0 -72
  83. package/es/Box/deps/simple-grid.d.ts +0 -9
  84. package/es/Box/deps/simple-grid.js +0 -8
  85. package/es/Box/index.d.ts +0 -14
  86. package/es/Box/index.js +0 -39
  87. package/es/Box/index.less +0 -10
  88. package/es/Drawer/Demo.js +0 -109
  89. package/es/Drawer/Footer.d.ts +0 -5
  90. package/es/Drawer/index.d.ts +0 -38
  91. package/es/Drawer/index.js +0 -207
  92. package/es/Drawer/index.less +0 -42
  93. package/es/Drawer/interface.d.ts +0 -22
  94. package/es/Input/demo.js +0 -16
  95. package/es/Input/index.d.ts +0 -19
  96. package/es/Input/index.less +0 -12
  97. package/es/Modal/demo.d.ts +0 -3
  98. package/es/Modal/demo.js +0 -106
  99. package/es/Modal/index.d.ts +0 -44
  100. package/es/Modal/index.js +0 -197
  101. package/es/Modal/index.less +0 -44
  102. package/es/Modal/interface.d.ts +0 -23
  103. package/es/Service/fetch-adapter.d.ts +0 -12
  104. package/es/Service/fetch-adapter.js +0 -203
  105. package/es/ThemeAntd/style/button.less +0 -67
  106. package/es/ThemeAntd/style/checkbox.less +0 -72
  107. package/es/ThemeAntd/style/form.less +0 -12
  108. package/es/ThemeAntd/style/input.less +0 -83
  109. package/es/ThemeAntd/style/pagination.less +0 -96
  110. package/es/ThemeAntd/style/picker.less +0 -106
  111. package/es/ThemeAntd/style/popover.less +0 -5
  112. package/es/ThemeAntd/style/radio.less +0 -87
  113. package/es/ThemeAntd/style/scrollbar.less +0 -23
  114. package/es/ThemeAntd/style/select.less +0 -81
  115. package/es/ThemeAntd/style/table.less +0 -57
  116. package/es/ThemeAntd/style/tree.less +0 -18
  117. package/es/Tree/demo.d.ts +0 -3
  118. package/es/Tree/demo.js +0 -32
  119. package/es/Tree/index.d.ts +0 -24
  120. package/es/Tree/index.js +0 -100
  121. package/es/Tree/index.less +0 -60
package/.dumirc.ts CHANGED
@@ -7,8 +7,14 @@ export default defineConfig({
7
7
  favicons: ['https://user-images.githubusercontent.com/9554297/83762004-a0761b00-a6a9-11ea-83b4-9c8ff721d4b8.png'],
8
8
  outputPath: 'docs-dist',
9
9
  targets: { chrome: 60 },
10
+ // apiParser: {
11
+ // unpkgHost: 'https://unpkg.zhimg.com',
12
+ // },
13
+ resolve: {
14
+ // 配置入口文件路径,API 解析将从这里开始
15
+ entryFile: './src/index.ts',
16
+ },
10
17
  extraBabelPlugins: [
11
- ['import', { libraryName: 'antd', style: true }, 'antd'],
12
18
  [
13
19
  'import',
14
20
  {
@@ -29,16 +35,6 @@ export default defineConfig({
29
35
  },
30
36
  'ahooks',
31
37
  ],
32
- [
33
- 'import',
34
- {
35
- libraryName: '@cloud-app-dev/map',
36
- style: false,
37
- camel2DashComponentName: false,
38
- libraryDirectory: 'es',
39
- },
40
- 'map-components',
41
- ],
42
38
  ],
43
39
  theme: {
44
40
  '@ant-prefix': 'cloudapp',
package/.fatherrc.ts CHANGED
@@ -12,7 +12,6 @@ export default defineConfig({
12
12
  output: 'es',
13
13
  },
14
14
  extraBabelPlugins: [
15
- ['import', { libraryName: 'antd', style: true }, 'antd'],
16
15
  ['import', { libraryName: '@cloud-app-dev/utils', ...importProps }, 'utils'],
17
16
  ['import', { libraryName: 'ahooks', ...importProps }, 'ahooks'],
18
17
  ],
@@ -1,5 +1,4 @@
1
- import "antd/lib/config-provider/style";
2
- import _ConfigProvider from "antd/lib/config-provider";
1
+ import { ConfigProvider } from 'antd';
3
2
  import React from 'react';
4
3
  import CheckGroupFixed from "./index";
5
4
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -11,7 +10,7 @@ var defaultSource = Array.from(new Array(100)).map(function (_, i) {
11
10
  });
12
11
 
13
12
  var App = function App() {
14
- return /*#__PURE__*/_jsx(_ConfigProvider, {
13
+ return /*#__PURE__*/_jsx(ConfigProvider, {
15
14
  prefixCls: "cloudapp",
16
15
  children: /*#__PURE__*/_jsx("div", {
17
16
  style: {
@@ -1,7 +1,3 @@
1
- import "antd/lib/badge/style";
2
- import _Badge from "antd/lib/badge";
3
- import "antd/lib/checkbox/style";
4
- import _Checkbox from "antd/lib/checkbox";
5
1
  import _useUpdateEffect from "ahooks/es/useUpdateEffect";
6
2
 
7
3
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
@@ -22,6 +18,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
22
18
 
23
19
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
24
20
 
21
+ import { Badge, Checkbox } from 'antd';
25
22
  import React, { useLayoutEffect, useMemo, useRef, useState } from 'react';
26
23
  import "./index.less";
27
24
  import { jsxs as _jsxs } from "react/jsx-runtime";
@@ -115,7 +112,7 @@ function CheckGroupFixed(_ref) {
115
112
  style: {
116
113
  height: state.sider ? 'auto' : cutRow * 30
117
114
  },
118
- children: /*#__PURE__*/_jsx(_Checkbox.Group, {
115
+ children: /*#__PURE__*/_jsx(Checkbox.Group, {
119
116
  value: state.selectKeys,
120
117
  className: "check-box-group-layout",
121
118
  onChange: function onChange(keys) {
@@ -126,7 +123,7 @@ function CheckGroupFixed(_ref) {
126
123
  });
127
124
  },
128
125
  children: source.map(function (v) {
129
- return /*#__PURE__*/_jsx(_Checkbox, {
126
+ return /*#__PURE__*/_jsx(Checkbox, {
130
127
  style: {
131
128
  width: checboxSize
132
129
  },
@@ -138,7 +135,7 @@ function CheckGroupFixed(_ref) {
138
135
  }, v.value);
139
136
  })
140
137
  })
141
- }), state.visible && /*#__PURE__*/_jsx(_Badge, {
138
+ }), state.visible && /*#__PURE__*/_jsx(Badge, {
142
139
  count: state.sider ? 0 : state.selectKeys.length,
143
140
  size: "small",
144
141
  offset: [10, 0],
@@ -58,21 +58,22 @@ var Config = {
58
58
  var theme = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
59
59
  insertThemeStyle(theme);
60
60
  Config.theme = produce(Config.theme, function (draft) {
61
- Object.keys(theme).forEach(function (key) {
62
- draft[key] = theme[key];
63
- });
61
+ for (var _key in theme) {
62
+ if (theme[_key]) {
63
+ draft[_key] = theme[_key];
64
+ }
65
+ }
64
66
  });
65
- },
66
- getThemeVarValue: function getThemeVarValue(themeKey) {
67
- return getComputedStyle(document.querySelector(':root')).getPropertyValue("--".concat(themeKey));
68
67
  }
69
68
  };
70
69
 
71
70
  var LMConfig = function () {
72
- if (window['_CONFIG_']) {
73
- return window['_CONFIG_'];
71
+ var _global = window;
72
+
73
+ if (_global['_CONFIG_']) {
74
+ return _global['_CONFIG_'];
74
75
  } else {
75
- window['_CONFIG_'] = Config;
76
+ _global['_CONFIG_'] = Config;
76
77
  lock();
77
78
  return Config;
78
79
  }
@@ -40,13 +40,13 @@ export type BSConfigType = {
40
40
  [key: string]: any;
41
41
  };
42
42
 
43
- export type ThemeInfoType = {
43
+ export interface ThemeInfoType {
44
44
  vars: { [key: string]: string[] };
45
45
  style: {
46
46
  menuType: 'inline' | 'horizontal';
47
47
  hasTab: boolean;
48
48
  };
49
- };
49
+ }
50
50
 
51
51
  export type ConfigKey = 'app' | 'feature' | 'featureIds' | 'bs' | 'theme';
52
52
 
@@ -61,6 +61,5 @@ export type ConfigJOSN = {
61
61
  registerBSConfig: (conf: BSConfigType) => void;
62
62
  registerPlatformFeature: (conf: FeatureItemType[]) => void;
63
63
  registerThemeConfig: (conf: ThemeInfoType) => void;
64
- getThemeVarValue: (themeKey: string) => string;
65
64
  [key: string]: any;
66
65
  };
@@ -1,5 +1,3 @@
1
- import "antd/lib/select/style";
2
- import _Select from "antd/lib/select";
3
1
  import _useClickAway from "ahooks/es/useClickAway";
4
2
  import _useToggle3 from "ahooks/es/useToggle";
5
3
  import _uuid from "@cloud-app-dev/utils/es/uuid";
@@ -27,6 +25,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
27
25
 
28
26
  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; }
29
27
 
28
+ import { Select } from 'antd';
30
29
  import React, { useMemo, useRef } from 'react';
31
30
  import "./index.less";
32
31
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -80,7 +79,7 @@ function CustomRenderSelect(_ref) {
80
79
  return /*#__PURE__*/_jsxs("div", {
81
80
  className: "custom-render-select",
82
81
  ref: domRef,
83
- children: [/*#__PURE__*/_jsx(_Select, _objectSpread(_objectSpread({}, props), {}, {
82
+ children: [/*#__PURE__*/_jsx(Select, _objectSpread(_objectSpread({}, props), {}, {
84
83
  value: value,
85
84
  popupClassName: "custom-render-select-dropdown ".concat(classname, " ").concat(popupClassName),
86
85
  getPopupContainer: getPopupContainer ? getPopupContainer : function () {
@@ -1,6 +1,3 @@
1
- import "antd/lib/config-provider/style";
2
- import _ConfigProvider from "antd/lib/config-provider";
3
-
4
1
  function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
5
2
 
6
3
  function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
@@ -13,6 +10,8 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
13
10
 
14
11
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
15
12
 
13
+ /* eslint-disable @typescript-eslint/no-unused-expressions */
14
+ import { ConfigProvider } from 'antd';
16
15
  import React from 'react';
17
16
  import DynamicList from "./index";
18
17
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -34,7 +33,7 @@ function loadPage(d) {
34
33
  }
35
34
 
36
35
  export default function () {
37
- return /*#__PURE__*/_jsx(_ConfigProvider, {
36
+ return /*#__PURE__*/_jsx(ConfigProvider, {
38
37
  prefixCls: "cloudapp",
39
38
  children: /*#__PURE__*/_jsx("div", {
40
39
  style: {
@@ -1,5 +1,3 @@
1
- import "antd/lib/skeleton/style";
2
- import _Skeleton from "antd/lib/skeleton";
3
1
  import _useUpdateEffect from "ahooks/es/useUpdateEffect";
4
2
 
5
3
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
@@ -14,6 +12,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
14
12
 
15
13
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
16
14
 
15
+ import { Skeleton } from 'antd';
17
16
  import React, { useMemo, useRef } from 'react';
18
17
  import useInfiniteScroll from "../useInfiniteScroll";
19
18
  import useVirtualList from "../useVirtualList";
@@ -90,7 +89,7 @@ function DynamicList(_ref) {
90
89
  height: itemHeight
91
90
  },
92
91
  className: itemClassName,
93
- children: /*#__PURE__*/_jsx(_Skeleton, {
92
+ children: /*#__PURE__*/_jsx(Skeleton, {
94
93
  paragraph: false,
95
94
  loading: true,
96
95
  active: true
@@ -1,7 +1,4 @@
1
- import "antd/lib/result/style";
2
- import _Result from "antd/lib/result";
3
- import "antd/lib/button/style";
4
- import _Button from "antd/lib/button";
1
+ import { Button, Result } from 'antd';
5
2
  import React from 'react';
6
3
  import { jsx as _jsx } from "react/jsx-runtime";
7
4
  import { jsxs as _jsxs } from "react/jsx-runtime";
@@ -9,7 +6,7 @@ import { jsxs as _jsxs } from "react/jsx-runtime";
9
6
  function ErrorFallback(_ref) {
10
7
  var error = _ref.error,
11
8
  resetErrorBoundary = _ref.resetErrorBoundary;
12
- return /*#__PURE__*/_jsx(_Result, {
9
+ return /*#__PURE__*/_jsx(Result, {
13
10
  status: "warning",
14
11
  title: /*#__PURE__*/_jsxs("div", {
15
12
  children: [/*#__PURE__*/_jsx("div", {
@@ -26,7 +23,7 @@ function ErrorFallback(_ref) {
26
23
  width: '100%',
27
24
  height: '100%'
28
25
  },
29
- extra: /*#__PURE__*/_jsx(_Button, {
26
+ extra: /*#__PURE__*/_jsx(Button, {
30
27
  type: "primary",
31
28
  onClick: resetErrorBoundary,
32
29
  children: "\u70B9\u51FB\u5237\u65B0\uFF0C\u91CD\u8BD5"
@@ -1,2 +1,4 @@
1
- import FrontendPlayer from '../Player/frontend_player';
2
- export default FrontendPlayer;
1
+ /// <reference types="react" />
2
+ import { IFrontendPlayerProps } from '../Player/player';
3
+ declare const _default: import("react").FC<IFrontendPlayerProps>;
4
+ export default _default;
@@ -25,17 +25,4 @@ export interface ListProps<T> {
25
25
  renderHeaderExt?: () => JSX.Element;
26
26
  }
27
27
  declare function List<T>(props: ListProps<T>): JSX.Element;
28
- declare namespace List {
29
- var defaultProps: {
30
- className: string;
31
- list: never[];
32
- itemKey: string;
33
- itemNameKey: string;
34
- renderHeaderExt: () => JSX.Element;
35
- };
36
- var VList: typeof import("../VList").default;
37
- var DynamicList: typeof import("../DynamicList").default;
38
- var GridList: React.ForwardRefExoticComponent<import("../GridList").GridListProps<unknown> & React.RefAttributes<HTMLDivElement>>;
39
- var DynamicGridList: typeof import("../DynamicGridList").default;
40
- }
41
28
  export default List;
package/es/List/index.js CHANGED
@@ -1,13 +1,8 @@
1
1
  import React from 'react';
2
- import DynamicGridList from "../DynamicGridList";
3
- import DynamicList from "../DynamicList";
4
- import GridList from "../GridList";
5
- import VList from "../VList"; // style
6
-
2
+ import VList from "../VList";
7
3
  import "./index.less";
8
4
  import { jsx as _jsx } from "react/jsx-runtime";
9
5
  import { jsxs as _jsxs } from "react/jsx-runtime";
10
- import { Fragment as _Fragment } from "react/jsx-runtime";
11
6
 
12
7
  function List(props) {
13
8
  var className = props.className,
@@ -34,17 +29,4 @@ function List(props) {
34
29
  });
35
30
  }
36
31
 
37
- List.defaultProps = {
38
- className: '',
39
- list: [],
40
- itemKey: 'id',
41
- itemNameKey: 'name',
42
- renderHeaderExt: function renderHeaderExt() {
43
- return /*#__PURE__*/_jsx(_Fragment, {});
44
- }
45
- };
46
- List.VList = VList;
47
- List.DynamicList = DynamicList;
48
- List.GridList = GridList;
49
- List.DynamicGridList = DynamicGridList;
50
32
  export default List;
@@ -10,5 +10,4 @@ export declare function createAsyncIterable(options: IOptionsLoader[]): {
10
10
  }>;
11
11
  };
12
12
  };
13
- export declare function tryCatch(resolveFn: () => Promise<any>, rejectFn?: (e: unknown) => void): Promise<void>;
14
13
  export declare function runAsyncIterable(Iterables: any, runtime?: (conf: any) => void, callback?: () => void): void;
@@ -26,6 +26,7 @@ function _asyncIterator(iterable) { var method, async, sync, retry = 2; for ("un
26
26
 
27
27
  function AsyncFromSyncIterator(s) { function AsyncFromSyncIteratorContinuation(r) { if (Object(r) !== r) return Promise.reject(new TypeError(r + " is not an object.")); var done = r.done; return Promise.resolve(r.value).then(function (value) { return { value: value, done: done }; }); } return AsyncFromSyncIterator = function AsyncFromSyncIterator(s) { this.s = s, this.n = s.next; }, AsyncFromSyncIterator.prototype = { s: null, n: null, next: function next() { return AsyncFromSyncIteratorContinuation(this.n.apply(this.s, arguments)); }, return: function _return(value) { var ret = this.s.return; return void 0 === ret ? Promise.resolve({ value: value, done: !0 }) : AsyncFromSyncIteratorContinuation(ret.apply(this.s, arguments)); }, throw: function _throw(value) { var thr = this.s.return; return void 0 === thr ? Promise.reject(value) : AsyncFromSyncIteratorContinuation(thr.apply(this.s, arguments)); } }, new AsyncFromSyncIterator(s); }
28
28
 
29
+ import { tryCatch } from "../utils";
29
30
  var global = window;
30
31
 
31
32
  if (!global._LOADER_SCRIPT_URL) {
@@ -147,42 +148,6 @@ export function createAsyncIterable(options) {
147
148
  };
148
149
  });
149
150
  }
150
- export function tryCatch(_x) {
151
- return _tryCatch.apply(this, arguments);
152
- }
153
-
154
- function _tryCatch() {
155
- _tryCatch = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(resolveFn) {
156
- var rejectFn,
157
- _args3 = arguments;
158
- return _regeneratorRuntime().wrap(function _callee3$(_context3) {
159
- while (1) {
160
- switch (_context3.prev = _context3.next) {
161
- case 0:
162
- rejectFn = _args3.length > 1 && _args3[1] !== undefined ? _args3[1] : console.error;
163
- _context3.prev = 1;
164
- _context3.next = 4;
165
- return resolveFn();
166
-
167
- case 4:
168
- _context3.next = 9;
169
- break;
170
-
171
- case 6:
172
- _context3.prev = 6;
173
- _context3.t0 = _context3["catch"](1);
174
- rejectFn(_context3.t0);
175
-
176
- case 9:
177
- case "end":
178
- return _context3.stop();
179
- }
180
- }
181
- }, _callee3, null, [[1, 6]]);
182
- }));
183
- return _tryCatch.apply(this, arguments);
184
- }
185
-
186
151
  export function runAsyncIterable(Iterables, runtime, callback) {
187
152
  tryCatch( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
188
153
  var _iteratorAbruptCompletion, _didIteratorError, _iteratorError, _iterator, _step, x;
@@ -1,11 +1,10 @@
1
- import "antd/lib/select/style";
2
- import _Select from "antd/lib/select";
3
1
  import React from 'react';
2
+ import { Select } from 'antd';
4
3
  import "./index.less";
5
4
  import { jsx as _jsx } from "react/jsx-runtime";
6
5
 
7
6
  function FindPio() {
8
- return /*#__PURE__*/_jsx(_Select, {
7
+ return /*#__PURE__*/_jsx(Select, {
9
8
  className: "map-find-pio",
10
9
  labelInValue: true,
11
10
  notFoundContent: null,
@@ -1,6 +1,3 @@
1
- import "antd/lib/config-provider/style";
2
- import _ConfigProvider from "antd/lib/config-provider";
3
-
4
1
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
5
2
 
6
3
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
@@ -22,6 +19,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
22
19
  import React, { useEffect, useState } from 'react';
23
20
  import LevelCenter from "./index";
24
21
  import deviceList from "../points.json";
22
+ import { ConfigProvider } from 'antd';
25
23
  import { jsx as _jsx } from "react/jsx-runtime";
26
24
 
27
25
  var App = function App() {
@@ -36,7 +34,7 @@ var App = function App() {
36
34
  useEffect(function () {
37
35
  console.log(state);
38
36
  }, [state]);
39
- return /*#__PURE__*/_jsx(_ConfigProvider, {
37
+ return /*#__PURE__*/_jsx(ConfigProvider, {
40
38
  prefixCls: "cloudapp",
41
39
  children: /*#__PURE__*/_jsx("div", {
42
40
  style: {
@@ -1,7 +1,6 @@
1
- import "antd/lib/popover/style";
2
- import _Popover from "antd/lib/popover";
3
1
  import React, { useCallback, useContext } from 'react';
4
2
  import { mapContext } from "../Context";
3
+ import { Popover } from 'antd';
5
4
  import IconFont from "../../IconFont";
6
5
  import "../../Player/style/iconfont";
7
6
  import "./index.less";
@@ -25,7 +24,7 @@ function ResetTools(_ref) {
25
24
  }, []);
26
25
  return /*#__PURE__*/_jsxs("div", {
27
26
  className: "map-reset-tool-container ".concat(className),
28
- children: [/*#__PURE__*/_jsx(_Popover, {
27
+ children: [/*#__PURE__*/_jsx(Popover, {
29
28
  placement: "left",
30
29
  content: "\u590D\u4F4D",
31
30
  overlayClassName: "map-rest-tools-item-popup",
@@ -38,7 +37,7 @@ function ResetTools(_ref) {
38
37
  })
39
38
  }), /*#__PURE__*/_jsxs("div", {
40
39
  className: "map-zoom",
41
- children: [/*#__PURE__*/_jsx(_Popover, {
40
+ children: [/*#__PURE__*/_jsx(Popover, {
42
41
  placement: "left",
43
42
  content: "\u653E\u5927",
44
43
  overlayClassName: "map-rest-tools-item-popup",
@@ -51,7 +50,7 @@ function ResetTools(_ref) {
51
50
  type: "lm-player-S_Edit_LinePlus"
52
51
  })
53
52
  })
54
- }), /*#__PURE__*/_jsx(_Popover, {
53
+ }), /*#__PURE__*/_jsx(Popover, {
55
54
  placement: "left",
56
55
  content: "\u7F29\u5C0F",
57
56
  overlayClassName: "map-rest-tools-item-popup",
@@ -1,5 +1,4 @@
1
- import "antd/lib/tooltip/style";
2
- import _Tooltip from "antd/lib/tooltip";
1
+ import { Tooltip } from 'antd';
3
2
  import React from 'react';
4
3
  import FullScreen from "../../../FullScreen";
5
4
  import IconFont from "../../../Player/iconfont";
@@ -18,7 +17,7 @@ function Tools(_ref) {
18
17
  return /*#__PURE__*/_jsxs(_Fragment, {
19
18
  children: [/*#__PURE__*/_jsxs("div", {
20
19
  className: "picture-tools",
21
- children: [/*#__PURE__*/_jsx(_Tooltip, {
20
+ children: [/*#__PURE__*/_jsx(Tooltip, {
22
21
  placement: "left",
23
22
  title: "\u590D\u4F4D",
24
23
  children: /*#__PURE__*/_jsx("div", {
@@ -27,7 +26,7 @@ function Tools(_ref) {
27
26
  type: "lm-player-S_View_RotateMiddle"
28
27
  })
29
28
  })
30
- }), /*#__PURE__*/_jsx(_Tooltip, {
29
+ }), /*#__PURE__*/_jsx(Tooltip, {
31
30
  placement: "left",
32
31
  title: "\u653E\u5927",
33
32
  children: /*#__PURE__*/_jsx("div", {
@@ -39,7 +38,7 @@ function Tools(_ref) {
39
38
  type: "lm-player-S_View_ZoomIn"
40
39
  })
41
40
  })
42
- }), /*#__PURE__*/_jsx(_Tooltip, {
41
+ }), /*#__PURE__*/_jsx(Tooltip, {
43
42
  placement: "left",
44
43
  title: "\u7F29\u5C0F",
45
44
  children: /*#__PURE__*/_jsx("div", {
@@ -51,7 +50,7 @@ function Tools(_ref) {
51
50
  type: "lm-player-S_View_ZoomOut"
52
51
  })
53
52
  })
54
- }), /*#__PURE__*/_jsx(_Tooltip, {
53
+ }), /*#__PURE__*/_jsx(Tooltip, {
55
54
  placement: "left",
56
55
  title: "\u5411\u5DE6",
57
56
  children: /*#__PURE__*/_jsx("div", {
@@ -62,7 +61,7 @@ function Tools(_ref) {
62
61
  type: "lm-player-S_View_RotateLeft"
63
62
  })
64
63
  })
65
- }), /*#__PURE__*/_jsx(_Tooltip, {
64
+ }), /*#__PURE__*/_jsx(Tooltip, {
66
65
  placement: "left",
67
66
  title: "\u5411\u53F3",
68
67
  children: /*#__PURE__*/_jsx("div", {
@@ -1,8 +1,3 @@
1
- import "antd/lib/config-provider/style";
2
- import _ConfigProvider from "antd/lib/config-provider";
3
- import "antd/lib/button/style";
4
- import _Button from "antd/lib/button";
5
-
6
1
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
7
2
 
8
3
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
@@ -15,9 +10,10 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
15
10
 
16
11
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
17
12
 
13
+ import { Button, ConfigProvider, Modal } from 'antd';
18
14
  import React from 'react';
19
15
  import Picture from '.';
20
- import { Modal, useSimpleState } from '..';
16
+ import { useSimpleState } from '..';
21
17
  import { jsx as _jsx } from "react/jsx-runtime";
22
18
  import { jsxs as _jsxs } from "react/jsx-runtime";
23
19
  export default function App() {
@@ -29,7 +25,7 @@ export default function App() {
29
25
  state = _useSimpleState2[0],
30
26
  updateState = _useSimpleState2[1];
31
27
 
32
- return /*#__PURE__*/_jsxs(_ConfigProvider, {
28
+ return /*#__PURE__*/_jsxs(ConfigProvider, {
33
29
  prefixCls: "cloudapp",
34
30
  children: [/*#__PURE__*/_jsx("div", {
35
31
  style: {
@@ -47,20 +43,20 @@ export default function App() {
47
43
  }] // imagePath="http://192.168.100.246:5463/oss/v1/100004008/objects/638da35805f5f0a8101021f9?client_token=100004008_0_1670313176_9a47a8459c120d977904c9feb2354a7e"
48
44
  ,
49
45
  isOpenSelect: state.open,
50
- imagePath: "https://img0.baidu.com/it/u=1439439032,129098198&fm=253&fmt=auto?w=120&h=80",
46
+ imagePath: "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fc-ssl.duitang.com%2Fuploads%2Fblog%2F202106%2F09%2F20210609081952_51ef5.thumb.1000_0.jpg&refer=http%3A%2F%2Fc-ssl.duitang.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1673661389&t=906e24291130712565842eb7cf21e277",
51
47
  rects: [{
52
48
  type: 'face',
53
49
  rect: [920.0, 843.0, 96.0, 94.0],
54
50
  needExpand: true
55
51
  }],
56
52
  children: function children() {
57
- return /*#__PURE__*/_jsx(_Button, {
53
+ return /*#__PURE__*/_jsx(Button, {
58
54
  onClick: function onClick() {
59
- updateState({
55
+ return updateState({
60
56
  open: true
61
57
  });
62
58
  },
63
- children: "\xDF\xDF \u622A\u56FE"
59
+ children: "\u622A\u56FE"
64
60
  });
65
61
  }
66
62
  })
@@ -71,7 +67,7 @@ export default function App() {
71
67
  background: '#000',
72
68
  marginTop: 40
73
69
  },
74
- children: [/*#__PURE__*/_jsx(_Button, {
70
+ children: [/*#__PURE__*/_jsx(Button, {
75
71
  onClick: function onClick() {
76
72
  return updateState({
77
73
  open2: true
@@ -94,7 +90,7 @@ export default function App() {
94
90
  backgroundColor: '#000'
95
91
  },
96
92
  children: /*#__PURE__*/_jsx(Picture, {
97
- imagePath: "http://192.168.100.246:5463/oss/v1/100004008/objects/638da35805f5f0a8101021f9?client_token=100004008_0_1670313176_9a47a8459c120d977904c9feb2354a7e",
93
+ imagePath: "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fc-ssl.duitang.com%2Fuploads%2Fblog%2F202106%2F09%2F20210609081952_51ef5.thumb.1000_0.jpg&refer=http%3A%2F%2Fc-ssl.duitang.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1673661389&t=906e24291130712565842eb7cf21e277",
98
94
  isOpenSelect: false,
99
95
  rects: [{
100
96
  type: 'face',