component-shipinlv 1.1.25 → 1.1.26

Sign up to get free protection for your applications and to get access to all the features.
@@ -90,7 +90,7 @@ var VideoPublish = function VideoPublish(_ref) {
90
90
  key: 'task-list',
91
91
  icon: /*#__PURE__*/_jsx(ClockCircleOutlined, {}),
92
92
  label: '发布列表',
93
- disabled: !canPublish,
93
+ // disabled: ! canPublish,
94
94
  children: /*#__PURE__*/_jsx(VideoPublishTaskList, {
95
95
  disabled: disabled,
96
96
  env: env
@@ -99,13 +99,13 @@ var VideoPublish = function VideoPublish(_ref) {
99
99
  key: 'setting',
100
100
  icon: /*#__PURE__*/_jsx(SettingOutlined, {}),
101
101
  label: '配置',
102
- disabled: !canPublish,
102
+ // disabled: ! canPublish,
103
103
  children: /*#__PURE__*/_jsx(VideoPublishAccountManageSettingPage, {})
104
104
  }, {
105
105
  key: 'publish-log',
106
106
  icon: /*#__PURE__*/_jsx(FileSearchOutlined, {}),
107
107
  label: '发布日志',
108
- disabled: !canPublish,
108
+ // disabled: ! canPublish,
109
109
  forceRender: canPublish,
110
110
  children: /*#__PURE__*/_jsx(VideoPublishLog, {
111
111
  env: env,
@@ -177,6 +177,7 @@ var VideoPublish = function VideoPublish(_ref) {
177
177
  })
178
178
  })]
179
179
  }), /*#__PURE__*/_jsx(VideoPublishPublishVideoPlan, {
180
+ disabled: disabled,
180
181
  env: env,
181
182
  clientIdentity: clientIdentity
182
183
  })]
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  import './index.less';
3
3
  interface Props {
4
4
  env?: Global.Env;
5
+ disabled?: boolean;
5
6
  clientIdentity: string;
6
7
  }
7
8
  declare const VideoPublishPublishVideoPlan: React.FC<Props>;
@@ -3,9 +3,13 @@ import "./index.less";
3
3
  import PublishTaskPlanClass from "./tool";
4
4
  import { jsx as _jsx } from "react/jsx-runtime";
5
5
  var VideoPublishPublishVideoPlan = function VideoPublishPublishVideoPlan(_ref) {
6
- var env = _ref.env,
6
+ var disabled = _ref.disabled,
7
+ env = _ref.env,
7
8
  clientIdentity = _ref.clientIdentity;
8
9
  useEffect(function () {
10
+ if (disabled) {
11
+ return;
12
+ }
9
13
  var publishTaskPlan = new PublishTaskPlanClass(env, clientIdentity);
10
14
  publishTaskPlan.onInit();
11
15
  }, []);
@@ -161,7 +161,7 @@ declare const Tool: {
161
161
  OsPathSeparator(): string;
162
162
  getTitleByPath(path: string): string;
163
163
  h5Pay(query: Pay.H5PayQuery): void;
164
- notification(type: "error" | "success" | "info" | "warning", message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
164
+ notification(type: "info" | "error" | "success" | "warning", message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
165
165
  notificationSuccess(message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
166
166
  notificationError(message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
167
167
  notificationWarning(message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
@@ -25,6 +25,7 @@ declare namespace PublishTaskPlan {
25
25
  kindTagValue: string;
26
26
  videoUrl: string;
27
27
  publishCoverUrl: string;
28
+ goodsTitle: string;
28
29
  publishTime: number;
29
30
  }
30
31
  interface TaskDetailComment {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "component-shipinlv",
3
- "version": "1.1.25",
3
+ "version": "1.1.26",
4
4
  "description": "",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",