component-shipinlv 2.0.10 → 2.0.12

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.
@@ -8,6 +8,7 @@ interface Props {
8
8
  apiUrl: string;
9
9
  env?: Global.Env;
10
10
  clientIdentity: string;
11
+ openLocalBrowser: (url: string) => void;
11
12
  }
12
13
  declare const VideoPublish: React.FC<Props>;
13
14
  export default VideoPublish;
@@ -27,7 +27,8 @@ var VideoPublish = function VideoPublish(_ref) {
27
27
  productType = _ref.productType,
28
28
  apiUrl = _ref.apiUrl,
29
29
  env = _ref.env,
30
- clientIdentity = _ref.clientIdentity;
30
+ clientIdentity = _ref.clientIdentity,
31
+ openLocalBrowser = _ref.openLocalBrowser;
31
32
  var _useState = useState([]),
32
33
  _useState2 = _slicedToArray(_useState, 2),
33
34
  menuList = _useState2[0],
@@ -137,7 +138,8 @@ var VideoPublish = function VideoPublish(_ref) {
137
138
  children: /*#__PURE__*/_jsx(VideoStudyPage, {
138
139
  title: "\u53D1\u5E03\u529F\u80FD \xB7 \u89C6\u9891\u6559\u7A0B",
139
140
  productType: "video-publish",
140
- env: env
141
+ env: env,
142
+ openLocalBrowser: openLocalBrowser
141
143
  })
142
144
  }];
143
145
  var _onMenu = function _onMenu(key) {
@@ -5,7 +5,7 @@ interface Props {
5
5
  subtitle?: string;
6
6
  productType: string;
7
7
  env?: Global.Env;
8
- onLink?: (url: string) => void;
8
+ openLocalBrowser?: (url: string) => void;
9
9
  }
10
10
  declare const VideoStudyPage: React.FC<Props>;
11
11
  export default VideoStudyPage;
@@ -14,7 +14,7 @@ var VideoStudyPage = function VideoStudyPage(_ref) {
14
14
  subtitle = _ref.subtitle,
15
15
  productType = _ref.productType,
16
16
  env = _ref.env,
17
- onLink = _ref.onLink;
17
+ openLocalBrowser = _ref.openLocalBrowser;
18
18
  var _useState = useState([]),
19
19
  _useState2 = _slicedToArray(_useState, 2),
20
20
  listData = _useState2[0],
@@ -51,8 +51,8 @@ var VideoStudyPage = function VideoStudyPage(_ref) {
51
51
  className: "itemCard",
52
52
  onClick: function onClick() {
53
53
  Tool.toast('已经开始下载');
54
- if (typeof onLink == 'function') {
55
- onLink(items.videoUrl);
54
+ if (typeof openLocalBrowser == 'function') {
55
+ openLocalBrowser(items.videoUrl);
56
56
  } else {
57
57
  Tool.openWindow(items.videoUrl);
58
58
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "component-shipinlv",
3
- "version": "2.0.10",
3
+ "version": "2.0.12",
4
4
  "description": "",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",