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
|
})]
|
@@ -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
|
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
|
}, []);
|
package/dist/lib/Tool.d.ts
CHANGED
@@ -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: "
|
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;
|