component-shipinlv 2.0.7 → 2.0.10
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.
@@ -13,6 +13,7 @@ import { useRequest } from "@umijs/hooks";
|
|
13
13
|
import * as VideoPublishController from "../../../service/api/VideoPublishController";
|
14
14
|
import VideoPlatform from "../../../component/video-platform/logo";
|
15
15
|
import VideoPublishCreateTaskHourEnabled from "../hour-enabled";
|
16
|
+
import dayjs from "dayjs";
|
16
17
|
import { jsx as _jsx } from "react/jsx-runtime";
|
17
18
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
18
19
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
@@ -345,7 +346,7 @@ var VideoPublishCreateTaskBase = function VideoPublishCreateTaskBase(_ref) {
|
|
345
346
|
children: /*#__PURE__*/_jsx(DatePicker, {
|
346
347
|
showTime: true,
|
347
348
|
disabledDate: function disabledDate(e) {
|
348
|
-
return e.valueOf() + 86400e3 < Date.now() || e.valueOf()
|
349
|
+
return e.valueOf() + 86400e3 < Date.now() || e.valueOf() >= dayjs().startOf('date').valueOf() + 86400e3 * 14;
|
349
350
|
},
|
350
351
|
onChange: function onChange(value, dateString) {
|
351
352
|
console.log('Selected Time: ', value);
|
package/dist/index.d.ts
CHANGED
@@ -25,3 +25,4 @@ export { default as openInFolder } from './base/openInFolder';
|
|
25
25
|
export { default as soundInfo } from './base/soundInfo';
|
26
26
|
export { default as fileListContent } from './base/fileListContent';
|
27
27
|
export { default as fileList } from './base/fileList';
|
28
|
+
export { default as VideoStudy } from './video-study';
|
package/dist/index.js
CHANGED
@@ -28,4 +28,5 @@ export { default as folderSelect } from "./base/folderSelect";
|
|
28
28
|
export { default as openInFolder } from "./base/openInFolder";
|
29
29
|
export { default as soundInfo } from "./base/soundInfo";
|
30
30
|
export { default as fileListContent } from "./base/fileListContent";
|
31
|
-
export { default as fileList } from "./base/fileList";
|
31
|
+
export { default as fileList } from "./base/fileList";
|
32
|
+
export { default as VideoStudy } from "./video-study";
|
@@ -13,7 +13,8 @@ var VideoStudyPage = function VideoStudyPage(_ref) {
|
|
13
13
|
var title = _ref.title,
|
14
14
|
subtitle = _ref.subtitle,
|
15
15
|
productType = _ref.productType,
|
16
|
-
env = _ref.env
|
16
|
+
env = _ref.env,
|
17
|
+
onLink = _ref.onLink;
|
17
18
|
var _useState = useState([]),
|
18
19
|
_useState2 = _slicedToArray(_useState, 2),
|
19
20
|
listData = _useState2[0],
|
@@ -50,10 +51,13 @@ var VideoStudyPage = function VideoStudyPage(_ref) {
|
|
50
51
|
className: "itemCard",
|
51
52
|
onClick: function onClick() {
|
52
53
|
Tool.toast('已经开始下载');
|
54
|
+
if (typeof onLink == 'function') {
|
55
|
+
onLink(items.videoUrl);
|
56
|
+
} else {
|
57
|
+
Tool.openWindow(items.videoUrl);
|
58
|
+
}
|
53
59
|
},
|
54
60
|
children: /*#__PURE__*/_jsxs("a", {
|
55
|
-
target: "_blank",
|
56
|
-
href: items.videoUrl,
|
57
61
|
children: [/*#__PURE__*/_jsx(PlayCircleFilled, {}), " ", index + 1, " ", items.title]
|
58
62
|
})
|
59
63
|
})
|