component-shipinlv 2.0.7 → 2.0.9

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() > Date.now() + 86400e3 * 14;
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";
@@ -50,10 +50,9 @@ var VideoStudyPage = function VideoStudyPage(_ref) {
50
50
  className: "itemCard",
51
51
  onClick: function onClick() {
52
52
  Tool.toast('已经开始下载');
53
+ Tool.openWindow(items.videoUrl);
53
54
  },
54
55
  children: /*#__PURE__*/_jsxs("a", {
55
- target: "_blank",
56
- href: items.videoUrl,
57
56
  children: [/*#__PURE__*/_jsx(PlayCircleFilled, {}), " ", index + 1, " ", items.title]
58
57
  })
59
58
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "component-shipinlv",
3
- "version": "2.0.7",
3
+ "version": "2.0.9",
4
4
  "description": "",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",