component-shipinlv 1.0.12 → 1.0.15
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,7 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
declare const _default: {
|
3
3
|
videoPublishCreateTask: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
4
|
+
followerCount: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, never>>;
|
5
|
+
notLoginValid: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>>;
|
4
6
|
};
|
5
7
|
export default _default;
|
@@ -1,6 +1,8 @@
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
|
2
|
-
var _templateObject;
|
2
|
+
var _templateObject, _templateObject2, _templateObject3;
|
3
3
|
import styled from 'styled-components';
|
4
4
|
export default {
|
5
|
-
videoPublishCreateTask: styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n padding: 0 12px 0 0;\n display: flex;\n flex-direction: column;\n height: 100%;\n .groupIcon{\n color: blue;\n }\n .rateSelect{\n width: 120px;\n }\n .normalVideo{\n color: blue;\n }\n .shoppingCart{\n color: #F60;\n }\n .selectFile{\n padding: 12px 0 0;\n }\n .submits{\n text-align: right;\n padding: 0 0 36px 0;\n }\n "])))
|
5
|
+
videoPublishCreateTask: styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n padding: 0 12px 0 0;\n display: flex;\n flex-direction: column;\n height: 100%;\n .groupIcon{\n color: blue;\n }\n .rateSelect{\n width: 120px;\n }\n .normalVideo{\n color: blue;\n }\n .shoppingCart{\n color: #F60;\n }\n .selectFile{\n padding: 12px 0 0;\n }\n .submits{\n text-align: right;\n padding: 0 0 36px 0;\n }\n "]))),
|
6
|
+
followerCount: styled.small(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n background-color: #F2F2F2;\n border-radius: 3px;\n font-size: smaller;\n line-height: 1em;\n margin-left: 3px;\n padding: 2px 3px;\n\n "]))),
|
7
|
+
notLoginValid: styled.span(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n margin-left: 5px;\n\n "])))
|
6
8
|
};
|
@@ -30,6 +30,7 @@ var VideoPublishCreateTask = function VideoPublishCreateTask(_ref) {
|
|
30
30
|
normalVideoRate: 1,
|
31
31
|
normalVideoRateType: 'hour',
|
32
32
|
normalDayMaxCount: 1,
|
33
|
+
startTime: null,
|
33
34
|
salesVideoRate: 2,
|
34
35
|
salesVideoRateType: 'hour',
|
35
36
|
salesDayMaxCount: 2,
|
@@ -77,13 +78,26 @@ var VideoPublishCreateTask = function VideoPublishCreateTask(_ref) {
|
|
77
78
|
children: []
|
78
79
|
};
|
79
80
|
}
|
81
|
+
var followerCount = items.followerCount > 9999 ? /*#__PURE__*/_jsxs(_Fragment, {
|
82
|
+
children: [parseFloat((items.followerCount / 1e4).toFixed(1)), /*#__PURE__*/_jsx("small", {
|
83
|
+
children: "\u4E07"
|
84
|
+
})]
|
85
|
+
}) : items.followerCount;
|
80
86
|
dict[items.groupId].children.push({
|
81
87
|
title: /*#__PURE__*/_jsxs(_Fragment, {
|
82
88
|
children: [/*#__PURE__*/_jsx(VideoPlatformLogo, {
|
83
89
|
platform: items.platform,
|
84
90
|
size: 14
|
85
|
-
}), " ", items.nickname
|
91
|
+
}), " ", items.nickname, /*#__PURE__*/_jsxs(styles.followerCount, {
|
92
|
+
children: [/*#__PURE__*/_jsx(UsergroupAddOutlined, {}), " ", followerCount, " "]
|
93
|
+
}), !items.isLoginValid && /*#__PURE__*/_jsx(styles.notLoginValid, {
|
94
|
+
children: /*#__PURE__*/_jsx(Tag, {
|
95
|
+
color: "red",
|
96
|
+
children: "\u672A\u767B\u5F55"
|
97
|
+
})
|
98
|
+
})]
|
86
99
|
}),
|
100
|
+
disabled: !items.isLoginValid,
|
87
101
|
value: "account-".concat(items.id),
|
88
102
|
key: "account-".concat(items.id)
|
89
103
|
});
|
@@ -182,6 +196,7 @@ var VideoPublishCreateTask = function VideoPublishCreateTask(_ref) {
|
|
182
196
|
};
|
183
197
|
}();
|
184
198
|
var onFinish = function onFinish(values) {
|
199
|
+
var _values$startTime;
|
185
200
|
var videoList = [];
|
186
201
|
if (formData.videoFrom === 'local') {
|
187
202
|
localSelectList.forEach(function (item) {
|
@@ -213,6 +228,7 @@ var VideoPublishCreateTask = function VideoPublishCreateTask(_ref) {
|
|
213
228
|
});
|
214
229
|
}
|
215
230
|
var data = _objectSpread(_objectSpread(_objectSpread({}, formData), values), {}, {
|
231
|
+
startTime: values.startTime ? parseInt((((_values$startTime = values.startTime) === null || _values$startTime === void 0 ? void 0 : _values$startTime.valueOf()) * 0.001).toFixed(0)) : 0,
|
216
232
|
videoList: videoList
|
217
233
|
});
|
218
234
|
if (videoList.length === 0) {
|
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: "error" | "success" | "
|
164
|
+
notification(type: "error" | "success" | "info" | "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;
|
@@ -77,6 +77,7 @@ declare namespace VideoPublish {
|
|
77
77
|
title: React.ReactNode;
|
78
78
|
value: string;
|
79
79
|
key: string;
|
80
|
+
disabled?: boolean;
|
80
81
|
children?: TreeVideoAccountChildren[];
|
81
82
|
}
|
82
83
|
interface PublishVideoList {
|
@@ -97,6 +98,7 @@ declare namespace VideoPublish {
|
|
97
98
|
salesVideoRateType: 'hour' | 'day';
|
98
99
|
salesDayMaxCount: number;
|
99
100
|
accountList: string[];
|
101
|
+
startTime: number | null;
|
100
102
|
videoList: {
|
101
103
|
taskId: number;
|
102
104
|
productType: string;
|