@cloud-app-dev/vidc 3.2.11 → 3.2.14
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/.dumirc.ts +71 -0
- package/.editorconfig +0 -3
- package/.eslintrc.js +3 -0
- package/.fatherrc.ts +19 -0
- package/.husky/commit-msg +5 -0
- package/.husky/pre-commit +4 -0
- package/.prettierrc.js +16 -0
- package/README.md +14 -26
- package/es/Api/index.js +100 -30
- package/es/AppContext/Sync.js +19 -3
- package/es/AppContext/index.js +86 -42
- package/es/AppContext/static.js +7 -0
- package/es/Auth/index.js +11 -4
- package/es/AutoExit/index.js +11 -3
- package/es/Box/BetweenBox/index.js +19 -10
- package/es/Box/BetweenBox/{index.css → index.less} +0 -0
- package/es/Box/InfoBox/index.js +24 -18
- package/es/Box/InfoBox/index.less +22 -0
- package/es/Box/TwoColumnBox/index.js +42 -25
- package/es/Box/TwoColumnBox/index.less +70 -0
- package/es/Box/deps/grid-factory.d.ts +2 -2
- package/es/Box/deps/grid-factory.js +12 -0
- package/es/Box/index.js +29 -16
- package/es/Box/{index.css → index.less} +5 -4
- package/es/CheckGroupFixed/demo.d.ts +3 -0
- package/es/CheckGroupFixed/demo.js +28 -0
- package/es/CheckGroupFixed/index.js +117 -82
- package/es/CheckGroupFixed/index.less +50 -0
- package/es/Config/index.js +5 -1
- package/es/Config/utils.js +18 -3
- package/es/ConfigContext/index.js +8 -4
- package/es/CustomRenderSelect/index.js +71 -36
- package/es/CustomRenderSelect/index.less +25 -0
- package/es/DisableMark/index.js +14 -11
- package/es/DisableMark/{index.css → index.less} +0 -0
- package/es/DomMove/demo.js +14 -10
- package/es/DomMove/index.js +52 -30
- package/es/DomMove/utils.js +8 -3
- package/es/Drag/DragAndDropItem.js +44 -20
- package/es/Drag/DropItem.js +22 -6
- package/es/Drag/index.js +2 -2
- package/es/Drag/{index.css → index.less} +0 -0
- package/es/Drawer/Footer.js +22 -15
- package/es/Drawer/{Demo.d.ts → demo.d.ts} +0 -0
- package/es/Drawer/demo.js +109 -0
- package/es/Drawer/index.js +98 -60
- package/es/Drawer/index.less +42 -0
- package/es/ErrorFallback/index.js +23 -14
- package/es/FrontendPlayer/index.js +1 -1
- package/es/FullScreen/index.js +30 -17
- package/es/FullScreen/index.less +16 -0
- package/es/HightLevel/index.js +11 -4
- package/es/HightLevel/{index.css → index.less} +0 -0
- package/es/IconFont/index.js +39 -18
- package/es/ImageView/index.js +37 -13
- package/es/ImageView/index.less +10 -0
- package/es/Input/demo.d.ts +3 -0
- package/es/Input/demo.js +16 -0
- package/es/Input/index.js +46 -22
- package/es/Input/index.less +12 -0
- package/es/InstanceHistory/index.js +2 -0
- package/es/LabelValue/index.js +25 -18
- package/es/LabelValue/index.less +20 -0
- package/es/List/DynamicGridList/Demo.d.ts +1 -0
- package/es/List/DynamicGridList/Demo.js +52 -32
- package/es/List/DynamicGridList/index.d.ts +3 -3
- package/es/List/DynamicGridList/index.js +41 -26
- package/es/List/DynamicList/index.js +76 -56
- package/es/List/DynamicList/index.less +15 -0
- package/es/List/GridList/Demo.d.ts +1 -0
- package/es/List/GridList/Demo.js +60 -38
- package/es/List/GridList/hook.d.ts +1 -1
- package/es/List/GridList/hook.js +66 -35
- package/es/List/GridList/index.js +33 -29
- package/es/List/GridList/{index.css → index.less} +0 -0
- package/es/List/GridList/utils.d.ts +2 -2
- package/es/List/GridList/utils.js +1 -0
- package/es/List/VList/index.d.ts +1 -1
- package/es/List/VList/index.js +32 -19
- package/es/List/VList/{index.css → index.less} +0 -0
- package/es/List/VList/utils.d.ts +2 -2
- package/es/List/VList/utils.js +8 -6
- package/es/List/demo.d.ts +3 -0
- package/es/List/demo.js +26 -0
- package/es/List/index.d.ts +1 -1
- package/es/List/index.js +31 -23
- package/es/List/{index.css → index.less} +5 -4
- package/es/ListWithSizeAnimate/demo.d.ts +2 -0
- package/es/ListWithSizeAnimate/demo.js +19 -0
- package/es/ListWithSizeAnimate/index.d.ts +9 -0
- package/es/ListWithSizeAnimate/index.js +71 -0
- package/es/ListWithSizeAnimate/index.less +13 -0
- package/es/LoaderApp/index.js +59 -25
- package/es/LoaderApp/{index.css → index.less} +0 -0
- package/es/LoaderApp/loader.js +40 -23
- package/es/LoaderApp/sandbox.back.js +101 -24
- package/es/LoaderApp/sandbox.js +26 -9
- package/es/LoaderApp/utils.d.ts +1 -1
- package/es/LoaderApp/utils.js +68 -25
- package/es/LoaderScript/index.js +25 -10
- package/es/LoaderScript/utils.js +151 -87
- package/es/Map/BasicMap/AMapInstance.d.ts +1 -1
- package/es/Map/BasicMap/AMapInstance.js +25 -3
- package/es/Map/BasicMap/LeafletInstance.js +28 -11
- package/es/Map/BasicMap/index.js +67 -27
- package/es/Map/BasicMap/index.less +24 -0
- package/es/Map/ClusterLayer/hook.d.ts +2 -2
- package/es/Map/ClusterLayer/hook.js +51 -23
- package/es/Map/ClusterLayer/index.d.ts +1 -1
- package/es/Map/ClusterLayer/index.js +14 -6
- package/es/Map/ClusterLayer/index.less +27 -0
- package/es/Map/Config/index.js +44 -16
- package/es/Map/Config/utils.js +17 -3
- package/es/Map/Context/index.js +43 -9
- package/es/Map/FindPio/index.js +5 -2
- package/es/Map/FindPio/{index.css → index.less} +0 -0
- package/es/Map/InfoWindow/MakerLikeWindow.d.ts +1 -1
- package/es/Map/InfoWindow/MakerLikeWindow.js +41 -18
- package/es/Map/InfoWindow/demo.d.ts +1 -0
- package/es/Map/InfoWindow/demo.js +51 -29
- package/es/Map/InfoWindow/index.d.ts +1 -1
- package/es/Map/InfoWindow/index.js +39 -18
- package/es/Map/LevelCenter/DragMarker/index.js +16 -10
- package/es/Map/LevelCenter/demo.d.ts +1 -0
- package/es/Map/LevelCenter/demo.js +41 -22
- package/es/Map/LevelCenter/index.js +41 -29
- package/es/Map/LevelCenter/index.less +2 -0
- package/es/Map/LoaderMap/index.js +38 -22
- package/es/Map/MapDrawSelect/demo.d.ts +1 -0
- package/es/Map/MapDrawSelect/demo.js +65 -46
- package/es/Map/MapDrawSelect/index.js +43 -31
- package/es/Map/MapDrawSelect/index.less +2 -0
- package/es/Map/MouseTool/index.js +32 -18
- package/es/Map/MouseTool/useMouseTools.js +37 -8
- package/es/Map/ResetTools/index.js +58 -44
- package/es/Map/ResetTools/index.less +35 -0
- package/es/Map/SinglePoint/index.js +39 -27
- package/es/Map/SinglePoint/index.less +41 -0
- package/es/Map/hook/useMapEvent.js +8 -4
- package/es/Map/hook/useMapType.js +3 -2
- package/es/Map/index.d.ts +1 -0
- package/es/Map/index.js +11 -11
- package/es/Map/useMarker/index.d.ts +1 -1
- package/es/Map/useMarker/index.js +33 -13
- package/es/Map/{LevelCenter/index.css → useMarker/index.less} +0 -0
- package/es/Map/withMap/index.d.ts +1 -0
- package/es/Map/withMap/index.js +14 -4
- package/es/Modal/demo.d.ts +3 -0
- package/es/Modal/demo.js +106 -0
- package/es/Modal/index.js +94 -57
- package/es/Modal/index.less +45 -0
- package/es/Picture/component/DefaultRects/RectInfo.js +59 -37
- package/es/Picture/component/DefaultRects/index.js +46 -32
- package/es/Picture/component/DefaultRects/index.less +188 -0
- package/es/Picture/component/DrawRect/index.js +37 -24
- package/es/Picture/component/DrawRect/{index.css → index.less} +0 -0
- package/es/Picture/component/RectMenu/index.js +35 -26
- package/es/Picture/component/RectMenu/index.less +31 -0
- package/es/Picture/component/RectMenu/utils.js +6 -3
- package/es/Picture/component/Tools/index.js +91 -69
- package/es/Picture/component/Tools/index.less +43 -0
- package/es/Picture/component/WheelScale/index.js +9 -4
- package/es/Picture/demo.js +14 -11
- package/es/Picture/dragBound.d.ts +1 -1
- package/es/Picture/dragBound.js +17 -4
- package/es/Picture/index.d.ts +2 -2
- package/es/Picture/index.js +201 -137
- package/es/Picture/index.less +14 -0
- package/es/Picture/interface.d.ts +0 -6
- package/es/Picture/loadCaptureRectImage.d.ts +1 -1
- package/es/Picture/loadCaptureRectImage.js +39 -14
- package/es/Picture/useDraw.js +40 -20
- package/es/Picture/utils.d.ts +9 -9
- package/es/Picture/utils.js +18 -3
- package/es/Player/api/index.d.ts +3 -3
- package/es/Player/api/index.js +117 -82
- package/es/Player/context.js +21 -7
- package/es/Player/contraller_bar/bar.d.ts +1 -1
- package/es/Player/contraller_bar/bar.js +28 -10
- package/es/Player/contraller_bar/contraller_event.js +34 -12
- package/es/Player/contraller_bar/index.js +30 -22
- package/es/Player/contraller_bar/left_bar.js +62 -39
- package/es/Player/contraller_bar/right_bar.js +34 -18
- package/es/Player/contraller_bar/time.js +19 -8
- package/es/Player/contraller_bar/useBarStatus.js +29 -11
- package/es/Player/contraller_bar/volume.d.ts +1 -1
- package/es/Player/contraller_bar/volume.js +43 -21
- package/es/Player/demo.d.ts +1 -0
- package/es/Player/demo.js +258 -215
- package/es/Player/event/errorEvent.js +41 -16
- package/es/Player/event/eventName.js +12 -1
- package/es/Player/event/index.js +66 -24
- package/es/Player/fps_play.js +33 -15
- package/es/Player/frontend_player.js +42 -20
- package/es/Player/frontend_timeline.js +95 -55
- package/es/Player/iconfont.js +23 -8
- package/es/Player/index.js +1 -1
- package/es/Player/live_heart.js +15 -3
- package/es/Player/message.js +68 -37
- package/es/Player/segment_player.js +113 -62
- package/es/Player/segment_timeline.js +145 -97
- package/es/Player/single_player.js +153 -111
- package/es/Player/style/bar.less +39 -0
- package/es/Player/style/iconfont.js +17 -10
- package/es/Player/style/index.less +30 -0
- package/es/Player/style/message.less +50 -0
- package/es/Player/style/slider.less +103 -0
- package/es/Player/style/timeline.less +106 -0
- package/es/Player/style/volume.less +21 -0
- package/es/Player/timeline.d.ts +1 -1
- package/es/Player/timeline.js +59 -32
- package/es/Player/util.js +46 -7
- package/es/PlayerExt/demo.d.ts +1 -0
- package/es/PlayerExt/demo.js +145 -112
- package/es/PlayerExt/index.d.ts +2 -2
- package/es/PlayerExt/index.js +139 -87
- package/es/PlayerExt/{index.css → index.less} +0 -0
- package/es/Progress/index.js +18 -5
- package/es/Progress/index.less +20 -0
- package/es/ROI/demo.d.ts +1 -0
- package/es/ROI/demo.js +12 -8
- package/es/ROI/index.js +45 -35
- package/es/ROI/index.less +29 -0
- package/es/ScreenPlayer/Live.d.ts +2 -2
- package/es/ScreenPlayer/Live.js +172 -109
- package/es/ScreenPlayer/LiveTools.d.ts +2 -2
- package/es/ScreenPlayer/LiveTools.js +156 -116
- package/es/ScreenPlayer/PlayerWithExt.d.ts +2 -2
- package/es/ScreenPlayer/PlayerWithExt.js +172 -115
- package/es/ScreenPlayer/RatePick.js +35 -22
- package/es/ScreenPlayer/Record.d.ts +1 -1
- package/es/ScreenPlayer/Record.js +307 -192
- package/es/ScreenPlayer/RecordTools.d.ts +2 -2
- package/es/ScreenPlayer/RecordTools.js +201 -149
- package/es/ScreenPlayer/ScreenSelect.js +37 -28
- package/es/ScreenPlayer/SegmentTimeLine.d.ts +1 -1
- package/es/ScreenPlayer/SegmentTimeLine.js +24 -17
- package/es/ScreenPlayer/TimeMode.js +22 -16
- package/es/ScreenPlayer/TimeSelect.js +86 -65
- package/es/ScreenPlayer/demo.js +16 -18
- package/es/ScreenPlayer/demo2.js +193 -178
- package/es/ScreenPlayer/index.d.ts +1 -0
- package/es/ScreenPlayer/index.js +3 -3
- package/es/ScreenPlayer/index.less +178 -0
- package/es/ScreenPlayer/interface.d.ts +2 -2
- package/es/ScreenPlayer/useTimeSlider.d.ts +8 -8
- package/es/ScreenPlayer/useTimeSlider.js +167 -60
- package/es/ScreenPlayer/useVideoFit.d.ts +1 -1
- package/es/ScreenPlayer/useVideoFit.js +18 -5
- package/es/ScreenPlayer/utils.d.ts +1 -1
- package/es/ScreenPlayer/utils.js +10 -1
- package/es/SegmentPlayer/index.js +1 -1
- package/es/Service/fetch-adapter.d.ts +1 -1
- package/es/Service/fetch-adapter.js +48 -5
- package/es/Service/http.js +46 -16
- package/es/Service/index.js +2 -2
- package/es/TableLayout/index.js +18 -12
- package/es/TableLayout/{index.css → index.less} +0 -0
- package/es/ThemeAntd/demo.d.ts +1 -0
- package/es/ThemeAntd/demo.js +126 -76
- package/es/ThemeAntd/{demo.css → demo.less} +4 -3
- package/es/ThemeAntd/index.js +6 -2
- package/es/ThemeAntd/index.less +16 -0
- package/es/ThemeAntd/style/button.less +67 -0
- package/es/ThemeAntd/style/checkbox.less +72 -0
- package/es/ThemeAntd/style/form.less +12 -0
- package/es/ThemeAntd/style/input.less +83 -0
- package/es/ThemeAntd/style/pagination.less +95 -0
- package/es/ThemeAntd/style/picker.less +106 -0
- package/es/ThemeAntd/style/popover.less +5 -0
- package/es/ThemeAntd/style/radio.less +87 -0
- package/es/ThemeAntd/style/{scrollbar.css → scrollbar.less} +4 -2
- package/es/ThemeAntd/style/select.less +81 -0
- package/es/ThemeAntd/style/table.less +57 -0
- package/es/ThemeAntd/style/tree.less +18 -0
- package/es/Timeout/index.js +36 -12
- package/es/Tree/demo.js +26 -21
- package/es/Tree/index.js +51 -30
- package/es/Tree/index.less +59 -0
- package/es/index.d.ts +1 -0
- package/es/index.js +48 -47
- package/es/useDrawROI/index.js +130 -65
- package/es/useEventEmitterHandle/index.js +6 -2
- package/es/useFullscreen/demo.js +44 -27
- package/es/useFullscreen/index.js +30 -8
- package/es/useHistory/index.js +3 -1
- package/es/useInfiniteScroll/index.js +50 -19
- package/es/useRafInterval/index.js +28 -4
- package/es/useSimpleState/index.js +23 -6
- package/es/useVirtualList/index.js +58 -20
- package/es/utils.d.ts +1 -1
- package/es/utils.js +53 -14
- package/package.json +37 -32
- package/tsconfig.json +8 -32
- package/.eslintrc +0 -4
- package/.fatherrc.js +0 -25
- package/.prettierrc +0 -11
- package/.umirc.ts +0 -55
- package/clear-cache.sh +0 -4
- package/es/Box/InfoBox/index.css +0 -22
- package/es/Box/TwoColumnBox/index.css +0 -70
- package/es/CheckGroupFixed/index.css +0 -49
- package/es/CustomRenderSelect/index.css +0 -20
- package/es/Drawer/Demo.js +0 -59
- package/es/Drawer/index.css +0 -40
- package/es/FullScreen/index.css +0 -16
- package/es/ImageView/index.css +0 -10
- package/es/Input/index.css +0 -8
- package/es/LabelValue/index.css +0 -18
- package/es/List/DynamicList/index.css +0 -15
- package/es/Map/BasicMap/index.css +0 -24
- package/es/Map/ClusterLayer/index.css +0 -26
- package/es/Map/MapDrawSelect/index.css +0 -0
- package/es/Map/ResetTools/index.css +0 -32
- package/es/Map/SinglePoint/icon/Place_icon_OnLine_Hover.svg +0 -15
- package/es/Map/SinglePoint/icon/Place_icon_OnLine_Normal.svg +0 -15
- package/es/Map/SinglePoint/icon/Place_icon_OutLine_Hover.svg +0 -15
- package/es/Map/SinglePoint/icon/Place_icon_OutLine_Normal.svg +0 -15
- package/es/Map/SinglePoint/index.css +0 -29
- package/es/Map/useMarker/index.css +0 -0
- package/es/Modal/index.css +0 -43
- package/es/Picture/component/DefaultRects/index.css +0 -247
- package/es/Picture/component/RectMenu/index.css +0 -31
- package/es/Picture/component/Tools/index.css +0 -42
- package/es/Picture/index.css +0 -12
- package/es/Player/style/bar.css +0 -38
- package/es/Player/style/index.css +0 -30
- package/es/Player/style/message.css +0 -49
- package/es/Player/style/slider.css +0 -96
- package/es/Player/style/timeline.css +0 -99
- package/es/Player/style/volume.css +0 -19
- package/es/Progress/index.css +0 -20
- package/es/ROI/index.css +0 -29
- package/es/ScreenPlayer/index.css +0 -166
- package/es/ThemeAntd/index.css +0 -620
- package/es/ThemeAntd/style/button.css +0 -55
- package/es/ThemeAntd/style/checkbox.css +0 -64
- package/es/ThemeAntd/style/form.css +0 -10
- package/es/ThemeAntd/style/input.css +0 -68
- package/es/ThemeAntd/style/pagination.css +0 -82
- package/es/ThemeAntd/style/picker.css +0 -98
- package/es/ThemeAntd/style/popover.css +0 -3
- package/es/ThemeAntd/style/radio.css +0 -80
- package/es/ThemeAntd/style/select.css +0 -76
- package/es/ThemeAntd/style/table.css +0 -46
- package/es/ThemeAntd/style/tree.css +0 -16
- package/es/Tree/index.css +0 -64
package/es/Drawer/index.js
CHANGED
|
@@ -2,71 +2,98 @@ import "antd/lib/config-provider/style";
|
|
|
2
2
|
import _ConfigProvider from "antd/lib/config-provider";
|
|
3
3
|
import "antd/lib/drawer/style";
|
|
4
4
|
import _Drawer from "antd/lib/drawer";
|
|
5
|
+
var _excluded = ["style", "getContainer", "onClose", "className", "onOk", "cancelText", "okText", "children"];
|
|
6
|
+
|
|
5
7
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8
|
+
|
|
6
9
|
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."); }
|
|
10
|
+
|
|
7
11
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
12
|
+
|
|
8
13
|
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; }
|
|
14
|
+
|
|
9
15
|
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
16
|
+
|
|
10
17
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
11
|
-
|
|
12
|
-
|
|
18
|
+
|
|
19
|
+
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; }
|
|
20
|
+
|
|
21
|
+
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
|
+
|
|
23
|
+
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; }
|
|
24
|
+
|
|
25
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
26
|
+
|
|
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
|
+
|
|
29
|
+
import Footer from "./Footer";
|
|
13
30
|
import React, { useContext, useEffect, useImperativeHandle, useMemo, useState } from 'react';
|
|
14
31
|
import * as ReactDOMClient from 'react-dom/client';
|
|
15
|
-
import CC from
|
|
16
|
-
import "./index.
|
|
17
|
-
import ConfigContext from
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
32
|
+
import CC from "../ConfigContext";
|
|
33
|
+
import "./index.less";
|
|
34
|
+
import ConfigContext from "../ConfigContext";
|
|
35
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
36
|
+
|
|
37
|
+
function Drawer(_ref) {
|
|
38
|
+
var style = _ref.style,
|
|
39
|
+
getContainer = _ref.getContainer,
|
|
40
|
+
onClose = _ref.onClose,
|
|
41
|
+
className = _ref.className,
|
|
42
|
+
onOk = _ref.onOk,
|
|
43
|
+
cancelText = _ref.cancelText,
|
|
44
|
+
okText = _ref.okText,
|
|
45
|
+
children = _ref.children,
|
|
46
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
47
|
+
|
|
48
|
+
return /*#__PURE__*/_jsx(_Drawer, _objectSpread(_objectSpread({
|
|
49
|
+
style: _objectSpread(_objectSpread({}, style), {}, {
|
|
30
50
|
textAlign: 'left'
|
|
31
51
|
}),
|
|
32
52
|
className: "lm-drawer-container ".concat(className),
|
|
33
53
|
onClose: onClose,
|
|
34
54
|
getContainer: getContainer,
|
|
35
|
-
footer: /*#__PURE__*/
|
|
55
|
+
footer: /*#__PURE__*/_jsx(Footer, {
|
|
36
56
|
onClose: onClose,
|
|
37
57
|
onOk: onOk,
|
|
38
58
|
cancelText: cancelText,
|
|
39
59
|
okText: okText
|
|
40
60
|
})
|
|
41
|
-
}, props),
|
|
61
|
+
}, props), {}, {
|
|
62
|
+
children: children
|
|
63
|
+
}));
|
|
42
64
|
}
|
|
65
|
+
|
|
43
66
|
Drawer.defaultProps = {
|
|
44
67
|
getContainer: false,
|
|
45
68
|
className: '',
|
|
46
69
|
cancelText: '取消',
|
|
47
70
|
okText: '确定'
|
|
48
71
|
};
|
|
72
|
+
|
|
49
73
|
function useDrawer() {
|
|
50
74
|
var prefixCls = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'cloudapp';
|
|
51
75
|
var context = useContext(CC.Context);
|
|
52
76
|
var container = useMemo(function () {
|
|
53
|
-
var
|
|
54
|
-
|
|
77
|
+
var _context$root;
|
|
78
|
+
|
|
79
|
+
return (_context$root = context === null || context === void 0 ? void 0 : context.root) !== null && _context$root !== void 0 ? _context$root : document.body;
|
|
55
80
|
}, [context === null || context === void 0 ? void 0 : context.root]);
|
|
56
81
|
var div = useMemo(function () {
|
|
57
82
|
return document.createElement('div');
|
|
58
83
|
}, []);
|
|
84
|
+
|
|
59
85
|
var _useState = useState({
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
86
|
+
content: null,
|
|
87
|
+
visible: false,
|
|
88
|
+
title: '',
|
|
89
|
+
onOk: undefined,
|
|
90
|
+
width: undefined,
|
|
91
|
+
className: undefined
|
|
92
|
+
}),
|
|
93
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
94
|
+
state = _useState2[0],
|
|
95
|
+
setState = _useState2[1];
|
|
96
|
+
|
|
70
97
|
var root = useMemo(function () {
|
|
71
98
|
return ReactDOMClient.createRoot(div, {
|
|
72
99
|
onRecoverableError: console.error
|
|
@@ -81,78 +108,88 @@ function useDrawer() {
|
|
|
81
108
|
};
|
|
82
109
|
}, []);
|
|
83
110
|
useEffect(function () {
|
|
84
|
-
root.render( /*#__PURE__*/
|
|
111
|
+
root.render( /*#__PURE__*/_jsx(_ConfigProvider, {
|
|
85
112
|
prefixCls: prefixCls,
|
|
86
113
|
getPopupContainer: function getPopupContainer() {
|
|
87
114
|
return container;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
115
|
+
},
|
|
116
|
+
children: /*#__PURE__*/_jsx(Drawer, {
|
|
117
|
+
visible: state.visible,
|
|
118
|
+
onOk: state.onOk,
|
|
119
|
+
onClose: close,
|
|
120
|
+
destroyOnClose: true,
|
|
121
|
+
title: state.title,
|
|
122
|
+
width: state.width,
|
|
123
|
+
className: state.className,
|
|
124
|
+
getContainer: false,
|
|
125
|
+
children: state.content
|
|
126
|
+
})
|
|
127
|
+
}));
|
|
99
128
|
}, [state.content, state.visible, state.title, state.onOk, state.width, state.className]);
|
|
129
|
+
|
|
100
130
|
var open = function open(options) {
|
|
101
131
|
setState(function (old) {
|
|
102
|
-
return
|
|
132
|
+
return _objectSpread(_objectSpread(_objectSpread({}, old), options), {}, {
|
|
103
133
|
visible: true
|
|
104
134
|
});
|
|
105
135
|
});
|
|
106
136
|
};
|
|
137
|
+
|
|
107
138
|
var close = function close() {
|
|
108
139
|
setState(function (old) {
|
|
109
|
-
return
|
|
140
|
+
return _objectSpread(_objectSpread({}, old), {}, {
|
|
110
141
|
visible: false
|
|
111
142
|
});
|
|
112
143
|
});
|
|
113
144
|
};
|
|
145
|
+
|
|
114
146
|
return {
|
|
115
147
|
open: open,
|
|
116
148
|
close: close
|
|
117
149
|
};
|
|
118
150
|
}
|
|
151
|
+
|
|
119
152
|
var RefDrawer = /*#__PURE__*/React.forwardRef(function RefDrawer(_, ref) {
|
|
120
153
|
var context = useContext(ConfigContext.Context);
|
|
121
154
|
var root = useMemo(function () {
|
|
122
155
|
return (context === null || context === void 0 ? void 0 : context.root) || document.body;
|
|
123
156
|
}, [context === null || context === void 0 ? void 0 : context.root]);
|
|
157
|
+
|
|
124
158
|
var _useState3 = useState({
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
159
|
+
content: null,
|
|
160
|
+
visible: false,
|
|
161
|
+
title: '',
|
|
162
|
+
onOk: undefined,
|
|
163
|
+
width: undefined,
|
|
164
|
+
className: undefined
|
|
165
|
+
}),
|
|
166
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
167
|
+
state = _useState4[0],
|
|
168
|
+
setState = _useState4[1];
|
|
169
|
+
|
|
135
170
|
var open = function open(options) {
|
|
136
171
|
setState(function (old) {
|
|
137
|
-
return
|
|
172
|
+
return _objectSpread(_objectSpread(_objectSpread({}, old), options), {}, {
|
|
138
173
|
visible: true
|
|
139
174
|
});
|
|
140
175
|
});
|
|
141
176
|
};
|
|
177
|
+
|
|
142
178
|
var close = function close() {
|
|
143
179
|
setState(function (old) {
|
|
144
|
-
return
|
|
180
|
+
return _objectSpread(_objectSpread({}, old), {}, {
|
|
145
181
|
visible: false
|
|
146
182
|
});
|
|
147
183
|
});
|
|
148
184
|
};
|
|
185
|
+
|
|
149
186
|
useImperativeHandle(ref, function () {
|
|
150
187
|
return {
|
|
151
188
|
open: open,
|
|
152
189
|
close: close
|
|
153
190
|
};
|
|
154
191
|
}, [state]);
|
|
155
|
-
return /*#__PURE__*/
|
|
192
|
+
return /*#__PURE__*/_jsx(Drawer, {
|
|
156
193
|
visible: state.visible,
|
|
157
194
|
onOk: state.onOk,
|
|
158
195
|
onClose: close,
|
|
@@ -162,8 +199,9 @@ var RefDrawer = /*#__PURE__*/React.forwardRef(function RefDrawer(_, ref) {
|
|
|
162
199
|
className: state.className,
|
|
163
200
|
getContainer: function getContainer() {
|
|
164
201
|
return root;
|
|
165
|
-
}
|
|
166
|
-
|
|
202
|
+
},
|
|
203
|
+
children: state.content
|
|
204
|
+
});
|
|
167
205
|
});
|
|
168
206
|
Drawer.useDrawer = useDrawer;
|
|
169
207
|
Drawer.RefDrawer = RefDrawer;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
.lm-drawer-container.@{ant-prefix}-drawer {
|
|
2
|
+
.@{ant-prefix}-drawer-wrapper-body {
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
height: 100%;
|
|
6
|
+
}
|
|
7
|
+
.@{ant-prefix}-drawer-header {
|
|
8
|
+
display: flex;
|
|
9
|
+
justify-content: space-between;
|
|
10
|
+
align-items: center;
|
|
11
|
+
padding: 0 24px;
|
|
12
|
+
color: inherit;
|
|
13
|
+
height: var(--drawer-title-height);
|
|
14
|
+
background-color: var(--drawer-title-bg);
|
|
15
|
+
border-bottom-color: var(--drawer-divider-color);
|
|
16
|
+
position: relative;
|
|
17
|
+
.@{ant-prefix}-drawer-title {
|
|
18
|
+
color: inherit;
|
|
19
|
+
font-size: var(--fs-large);
|
|
20
|
+
line-height: 2em;
|
|
21
|
+
}
|
|
22
|
+
.@{ant-prefix}-drawer-close {
|
|
23
|
+
padding: 0;
|
|
24
|
+
position: absolute;
|
|
25
|
+
right: 0;
|
|
26
|
+
color: inherit;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
.@{ant-prefix}-drawer-body {
|
|
30
|
+
background: var(--drawer-content-bg);
|
|
31
|
+
flex: 1;
|
|
32
|
+
overflow: auto;
|
|
33
|
+
}
|
|
34
|
+
.@{ant-prefix}-drawer-footer {
|
|
35
|
+
height: var(--drawer-footer-height);
|
|
36
|
+
overflow: hidden;
|
|
37
|
+
padding: 0 24px;
|
|
38
|
+
line-height: var(--drawer-footer-height);
|
|
39
|
+
background: var(--drawer-footer-bg);
|
|
40
|
+
border-top-color: var(--drawer-divider-color);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -1,30 +1,39 @@
|
|
|
1
|
-
import "antd/lib/button/style";
|
|
2
|
-
import _Button from "antd/lib/button";
|
|
3
1
|
import "antd/lib/result/style";
|
|
4
2
|
import _Result from "antd/lib/result";
|
|
3
|
+
import "antd/lib/button/style";
|
|
4
|
+
import _Button from "antd/lib/button";
|
|
5
5
|
import React from 'react';
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
|
+
|
|
6
9
|
function ErrorFallback(_ref) {
|
|
7
10
|
var error = _ref.error,
|
|
8
|
-
|
|
9
|
-
return /*#__PURE__*/
|
|
11
|
+
resetErrorBoundary = _ref.resetErrorBoundary;
|
|
12
|
+
return /*#__PURE__*/_jsx(_Result, {
|
|
10
13
|
status: "warning",
|
|
11
|
-
title: /*#__PURE__*/
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
title: /*#__PURE__*/_jsxs("div", {
|
|
15
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
16
|
+
children: "\u6E32\u67D3\u5931\u8D25\uFF0C\u8BF7\u5237\u65B0\u91CD\u8BD5!"
|
|
17
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
18
|
+
style: {
|
|
19
|
+
color: 'var(--gray9)',
|
|
20
|
+
fontStyle: 'italic'
|
|
21
|
+
},
|
|
22
|
+
children: error.message
|
|
23
|
+
})]
|
|
24
|
+
}),
|
|
17
25
|
style: {
|
|
18
26
|
width: '100%',
|
|
19
27
|
height: '100%'
|
|
20
28
|
},
|
|
21
|
-
extra: /*#__PURE__*/
|
|
29
|
+
extra: /*#__PURE__*/_jsx(_Button, {
|
|
22
30
|
type: "primary",
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}, "
|
|
31
|
+
onClick: resetErrorBoundary,
|
|
32
|
+
children: "\u70B9\u51FB\u5237\u65B0\uFF0C\u91CD\u8BD5"
|
|
33
|
+
}, "refresh")
|
|
26
34
|
});
|
|
27
35
|
}
|
|
36
|
+
|
|
28
37
|
export var errorBoundaryOptions = {
|
|
29
38
|
FallbackComponent: ErrorFallback,
|
|
30
39
|
onReset: function onReset() {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import FrontendPlayer from
|
|
1
|
+
import FrontendPlayer from "../Player/frontend_player";
|
|
2
2
|
export default FrontendPlayer;
|
package/es/FullScreen/index.js
CHANGED
|
@@ -1,34 +1,47 @@
|
|
|
1
1
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
|
+
|
|
2
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."); }
|
|
4
|
+
|
|
3
5
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
6
|
+
|
|
4
7
|
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; }
|
|
8
|
+
|
|
5
9
|
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
10
|
+
|
|
6
11
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
12
|
+
|
|
7
13
|
import React, { useEffect } from 'react';
|
|
8
|
-
import useFullscreen from
|
|
9
|
-
import IconFont from
|
|
10
|
-
import "./index.
|
|
14
|
+
import useFullscreen from "../useFullscreen";
|
|
15
|
+
import IconFont from "../IconFont";
|
|
16
|
+
import "./index.less";
|
|
17
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
18
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
19
|
+
|
|
11
20
|
function FullScreen(_ref) {
|
|
12
21
|
var className = _ref.className,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
22
|
+
getContainer = _ref.getContainer,
|
|
23
|
+
fullScreenChange = _ref.fullScreenChange,
|
|
24
|
+
hasText = _ref.hasText;
|
|
25
|
+
|
|
16
26
|
var _useFullscreen = useFullscreen(getContainer),
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
27
|
+
_useFullscreen2 = _slicedToArray(_useFullscreen, 2),
|
|
28
|
+
isFullscreen = _useFullscreen2[0],
|
|
29
|
+
toggleFullscreen = _useFullscreen2[1].toggleFullscreen;
|
|
30
|
+
|
|
20
31
|
useEffect(function () {
|
|
21
32
|
if (isFullscreen) {
|
|
22
33
|
fullScreenChange === null || fullScreenChange === void 0 ? void 0 : fullScreenChange(isFullscreen);
|
|
23
|
-
}
|
|
24
|
-
|
|
34
|
+
} // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
35
|
+
|
|
25
36
|
}, [isFullscreen]);
|
|
26
|
-
return /*#__PURE__*/
|
|
37
|
+
return /*#__PURE__*/_jsxs("span", {
|
|
27
38
|
className: "tools-screen-layer ".concat(className !== null && className !== void 0 ? className : ''),
|
|
28
|
-
onClick: toggleFullscreen
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
39
|
+
onClick: toggleFullscreen,
|
|
40
|
+
children: [/*#__PURE__*/_jsx(IconFont, {
|
|
41
|
+
className: "defualt-fullscreen-icon icon-primary",
|
|
42
|
+
type: !isFullscreen ? 'lm-player-S_View_ScreenViewFull' : 'lm-player-S_View_ScreenViewExit'
|
|
43
|
+
}), hasText ? !isFullscreen ? '全屏' : '窗口' : undefined]
|
|
44
|
+
});
|
|
33
45
|
}
|
|
46
|
+
|
|
34
47
|
export default FullScreen;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
.tools-screen-layer {
|
|
2
|
+
flex: 1;
|
|
3
|
+
align-self: center;
|
|
4
|
+
text-align: center;
|
|
5
|
+
font-size: var(--fs-small);
|
|
6
|
+
position: relative;
|
|
7
|
+
cursor: pointer;
|
|
8
|
+
.anticon {
|
|
9
|
+
padding-right: 5px;
|
|
10
|
+
}
|
|
11
|
+
.defualt-fullscreen-icon {
|
|
12
|
+
position: relative;
|
|
13
|
+
top: 1px;
|
|
14
|
+
font-size: 16px;
|
|
15
|
+
}
|
|
16
|
+
}
|
package/es/HightLevel/index.js
CHANGED
|
@@ -1,18 +1,25 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { replace, escapeRegExp } from 'lodash-es';
|
|
3
|
-
import "./index.
|
|
3
|
+
import "./index.less";
|
|
4
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
+
|
|
4
6
|
function HighLevel(_ref) {
|
|
5
7
|
var keyword = _ref.keyword,
|
|
6
|
-
|
|
8
|
+
name = _ref.name;
|
|
9
|
+
|
|
7
10
|
if (!keyword) {
|
|
8
|
-
return /*#__PURE__*/
|
|
11
|
+
return /*#__PURE__*/_jsx("span", {
|
|
12
|
+
children: name
|
|
13
|
+
});
|
|
9
14
|
}
|
|
15
|
+
|
|
10
16
|
var reg = new RegExp(escapeRegExp(keyword), 'g');
|
|
11
17
|
var html = replace(name, reg, "<span class=\"high-level\">".concat(keyword, "</span>"));
|
|
12
|
-
return /*#__PURE__*/
|
|
18
|
+
return /*#__PURE__*/_jsx("span", {
|
|
13
19
|
dangerouslySetInnerHTML: {
|
|
14
20
|
__html: html
|
|
15
21
|
}
|
|
16
22
|
});
|
|
17
23
|
}
|
|
24
|
+
|
|
18
25
|
export default /*#__PURE__*/React.memo(HighLevel);
|
|
File without changes
|
package/es/IconFont/index.js
CHANGED
|
@@ -1,9 +1,23 @@
|
|
|
1
|
-
|
|
1
|
+
var _excluded = ["type", "className", "title", "style"];
|
|
2
|
+
|
|
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; }
|
|
4
|
+
|
|
5
|
+
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; }
|
|
6
|
+
|
|
7
|
+
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; }
|
|
8
|
+
|
|
9
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
10
|
+
|
|
11
|
+
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; }
|
|
12
|
+
|
|
2
13
|
import React from 'react';
|
|
14
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
15
|
var global = window;
|
|
16
|
+
|
|
4
17
|
if (!global._ICON_SCRIPT_URL) {
|
|
5
18
|
global._ICON_SCRIPT_URL = {};
|
|
6
19
|
}
|
|
20
|
+
|
|
7
21
|
function loadScript(url) {
|
|
8
22
|
return new Promise(function (resolve, reject) {
|
|
9
23
|
var script = document.createElement('script');
|
|
@@ -17,6 +31,7 @@ function loadScript(url) {
|
|
|
17
31
|
});
|
|
18
32
|
});
|
|
19
33
|
}
|
|
34
|
+
|
|
20
35
|
function registerIconFont(scriptUrl) {
|
|
21
36
|
if (!global._ICON_SCRIPT_URL[scriptUrl]) {
|
|
22
37
|
global._ICON_SCRIPT_URL[scriptUrl] = true;
|
|
@@ -26,26 +41,32 @@ function registerIconFont(scriptUrl) {
|
|
|
26
41
|
});
|
|
27
42
|
}
|
|
28
43
|
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
44
|
+
|
|
45
|
+
function IconFont(_ref) {
|
|
46
|
+
var type = _ref.type,
|
|
47
|
+
_ref$className = _ref.className,
|
|
48
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
49
|
+
title = _ref.title,
|
|
50
|
+
style = _ref.style,
|
|
51
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
52
|
+
|
|
53
|
+
return /*#__PURE__*/_jsx("i", _objectSpread(_objectSpread({
|
|
37
54
|
className: "anticon ".concat(className),
|
|
38
55
|
title: title,
|
|
39
56
|
style: style
|
|
40
|
-
}, props),
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
57
|
+
}, props), {}, {
|
|
58
|
+
children: /*#__PURE__*/_jsx("svg", {
|
|
59
|
+
width: "1em",
|
|
60
|
+
height: "1em",
|
|
61
|
+
fill: "currentColor",
|
|
62
|
+
"aria-hidden": "true",
|
|
63
|
+
focusable: "false",
|
|
64
|
+
children: /*#__PURE__*/_jsx("use", {
|
|
65
|
+
xlinkHref: "#".concat(type)
|
|
66
|
+
})
|
|
67
|
+
})
|
|
68
|
+
}));
|
|
49
69
|
}
|
|
70
|
+
|
|
50
71
|
IconFont.registerIconFont = registerIconFont;
|
|
51
72
|
export default IconFont;
|