component-shipinlv 1.0.11 → 1.0.13
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/UI/PageContentWarp.d.ts +1 -1
- package/dist/UI/PageContentWarp.js +1 -1
- package/dist/VideoPublish/creat-task/index.css.d.ts +2 -0
- package/dist/VideoPublish/creat-task/index.css.js +4 -2
- package/dist/VideoPublish/creat-task/index.d.ts +1 -0
- package/dist/VideoPublish/creat-task/index.js +28 -7
- package/dist/VideoPublish/creat-task/select-list.css.js +1 -1
- package/dist/VideoPublish/creat-task/select-list.js +3 -4
- package/dist/VideoPublish/index.d.ts +2 -0
- package/dist/VideoPublish/index.js +42 -26
- package/dist/VideoPublish/index.less +17 -3
- package/dist/VideoPublish/task-list/index.d.ts +1 -0
- package/dist/VideoPublish/task-list/index.js +2 -1
- package/dist/VideoPublish/video-account/index.d.ts +1 -0
- package/dist/VideoPublish/video-account/index.js +2 -1
- package/dist/lib/Tool.d.ts +1 -1
- package/dist/types/VideoPublish.d.ts +1 -0
- package/package.json +1 -1
@@ -25,7 +25,7 @@ var PageContentWarp = function PageContentWarp(_ref) {
|
|
25
25
|
return /*#__PURE__*/_jsxs(styles.PageContentBox, {
|
26
26
|
className: "ktv-ai-pageContentBox ".concat(className),
|
27
27
|
style: {
|
28
|
-
minHeight: minHeight
|
28
|
+
minHeight: minHeight ? minHeight : 'auto'
|
29
29
|
},
|
30
30
|
children: [title && /*#__PURE__*/_jsx("h2", {
|
31
31
|
children: title
|
@@ -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 .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
|
};
|
@@ -4,7 +4,7 @@ import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
4
4
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
5
5
|
import React, { useState } from "react";
|
6
6
|
import styles from "./index.css";
|
7
|
-
import { Button, ConfigProvider, DatePicker, Divider, Form, InputNumber, Radio, Select, Switch, Tag } from "antd";
|
7
|
+
import { Alert, Button, ConfigProvider, DatePicker, Divider, Form, InputNumber, Radio, Select, Switch, Tag } from "antd";
|
8
8
|
import { PlusOutlined, ShoppingOutlined, UsergroupAddOutlined, VideoCameraOutlined } from "@ant-design/icons";
|
9
9
|
import PageContentWarp from "../../UI/PageContentWarp";
|
10
10
|
import { TreeSelect } from 'antd';
|
@@ -20,7 +20,8 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
20
20
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
21
21
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
22
22
|
var VideoPublishCreateTask = function VideoPublishCreateTask(_ref) {
|
23
|
-
var
|
23
|
+
var disabled = _ref.disabled,
|
24
|
+
productType = _ref.productType,
|
24
25
|
apiUrl = _ref.apiUrl,
|
25
26
|
env = _ref.env;
|
26
27
|
var _useState = useState({
|
@@ -76,13 +77,26 @@ var VideoPublishCreateTask = function VideoPublishCreateTask(_ref) {
|
|
76
77
|
children: []
|
77
78
|
};
|
78
79
|
}
|
80
|
+
var followerCount = items.followerCount > 9999 ? /*#__PURE__*/_jsxs(_Fragment, {
|
81
|
+
children: [parseFloat((items.followerCount / 1e4).toFixed(1)), /*#__PURE__*/_jsx("small", {
|
82
|
+
children: "\u4E07"
|
83
|
+
})]
|
84
|
+
}) : items.followerCount;
|
79
85
|
dict[items.groupId].children.push({
|
80
86
|
title: /*#__PURE__*/_jsxs(_Fragment, {
|
81
87
|
children: [/*#__PURE__*/_jsx(VideoPlatformLogo, {
|
82
88
|
platform: items.platform,
|
83
89
|
size: 14
|
84
|
-
}), " ", items.nickname
|
90
|
+
}), " ", items.nickname, /*#__PURE__*/_jsxs(styles.followerCount, {
|
91
|
+
children: [/*#__PURE__*/_jsx(UsergroupAddOutlined, {}), " ", followerCount, " "]
|
92
|
+
}), !items.isLoginValid && /*#__PURE__*/_jsx(styles.notLoginValid, {
|
93
|
+
children: /*#__PURE__*/_jsx(Tag, {
|
94
|
+
color: "red",
|
95
|
+
children: "\u672A\u767B\u5F55"
|
96
|
+
})
|
97
|
+
})]
|
85
98
|
}),
|
99
|
+
disabled: !items.isLoginValid,
|
86
100
|
value: "account-".concat(items.id),
|
87
101
|
key: "account-".concat(items.id)
|
88
102
|
});
|
@@ -223,16 +237,23 @@ var VideoPublishCreateTask = function VideoPublishCreateTask(_ref) {
|
|
223
237
|
};
|
224
238
|
var formLabelSpan = 3;
|
225
239
|
return /*#__PURE__*/_jsx(styles.videoPublishCreateTask, {
|
226
|
-
children: /*#__PURE__*/
|
240
|
+
children: /*#__PURE__*/_jsxs(PageContentWarp, {
|
227
241
|
loading: loading,
|
228
242
|
error: error,
|
229
243
|
onReload: run,
|
230
|
-
children: /*#__PURE__*/
|
244
|
+
children: [disabled && /*#__PURE__*/_jsx(Alert, {
|
245
|
+
message: "\u529F\u80FD\u5347\u7EA7\u4E2D\uFF0C\u5373\u5C06\u5F00\u653E\uFF0C\u656C\u8BF7\u671F\u5F85",
|
246
|
+
type: "warning",
|
247
|
+
showIcon: true,
|
248
|
+
style: {
|
249
|
+
width: 320
|
250
|
+
}
|
251
|
+
}), /*#__PURE__*/_jsxs(Form, {
|
231
252
|
labelCol: {
|
232
253
|
span: formLabelSpan
|
233
254
|
},
|
234
255
|
initialValues: _objectSpread({}, formData),
|
235
|
-
disabled: loadingTask,
|
256
|
+
disabled: disabled || loadingTask,
|
236
257
|
scrollToFirstError: true,
|
237
258
|
onFinish: onFinish,
|
238
259
|
children: [/*#__PURE__*/_jsx(Divider, {
|
@@ -447,7 +468,7 @@ var VideoPublishCreateTask = function VideoPublishCreateTask(_ref) {
|
|
447
468
|
children: "\u63D0\u4EA4"
|
448
469
|
})
|
449
470
|
})]
|
450
|
-
})
|
471
|
+
})]
|
451
472
|
})
|
452
473
|
});
|
453
474
|
};
|
@@ -2,5 +2,5 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLit
|
|
2
2
|
var _templateObject;
|
3
3
|
import styled from 'styled-components';
|
4
4
|
export default {
|
5
|
-
videoPublishTaskSelectList: styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n
|
5
|
+
videoPublishTaskSelectList: styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n overflow-y: auto;\n box-shadow: 0 3px 3px #EEE;\n max-height: 60vh;\n .title{\n width: 120px;\n overflow: hidden;\n word-break: keep-all;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n .remark{\n max-width: 200px;\n }\n .remarkInput{\n label.content{\n position: relative;\n display: inline-block;\n overflow: hidden;\n word-break: keep-all;\n white-space: nowrap;\n text-overflow: ellipsis;\n max-width: 200px;\n }\n }\n .videoKindTag{\n width: 120px;\n }\n "])))
|
6
6
|
};
|
@@ -94,6 +94,7 @@ var VideoPublishSelectList = function VideoPublishSelectList(_ref) {
|
|
94
94
|
render: function render(videoKindTag, record) {
|
95
95
|
var index = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : -1;
|
96
96
|
return /*#__PURE__*/_jsxs(Select, {
|
97
|
+
size: "small",
|
97
98
|
defaultValue: videoKindTag,
|
98
99
|
className: "videoKindTag",
|
99
100
|
onChange: function onChange(e) {
|
@@ -119,7 +120,7 @@ var VideoPublishSelectList = function VideoPublishSelectList(_ref) {
|
|
119
120
|
render: function render(kindTagValue, record) {
|
120
121
|
var index = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : -1;
|
121
122
|
return /*#__PURE__*/_jsx(Popover, {
|
122
|
-
title: "\u5E26\u8D27/\u5C0F\u7A0B\u5E8F",
|
123
|
+
title: "\u5E26\u8D27/\u5C0F\u7A0B\u5E8F/\u5B9A\u4F4D",
|
123
124
|
content: kindTagValue,
|
124
125
|
children: /*#__PURE__*/_jsx("div", {
|
125
126
|
className: "remark",
|
@@ -174,6 +175,7 @@ var VideoPublishSelectList = function VideoPublishSelectList(_ref) {
|
|
174
175
|
disabled: !(record !== null && record !== void 0 && record.videoFinishUrl),
|
175
176
|
icon: /*#__PURE__*/_jsx(FolderOpenOutlined, {}),
|
176
177
|
type: "link",
|
178
|
+
size: "small",
|
177
179
|
children: "\u67E5\u770B"
|
178
180
|
})
|
179
181
|
}) : /*#__PURE__*/_jsx(_Fragment, {
|
@@ -242,9 +244,6 @@ var VideoPublishSelectList = function VideoPublishSelectList(_ref) {
|
|
242
244
|
children: /*#__PURE__*/_jsx(Table, {
|
243
245
|
size: "small",
|
244
246
|
bordered: true,
|
245
|
-
scroll: {
|
246
|
-
y: window.innerHeight * 0.5
|
247
|
-
},
|
248
247
|
rowKey: function rowKey(record, index) {
|
249
248
|
return "".concat(index, "-").concat(record.id, "-").concat(record === null || record === void 0 ? void 0 : record.videoFinishUrl);
|
250
249
|
},
|
@@ -7,10 +7,13 @@ import isInClient from "../lib/isInClient";
|
|
7
7
|
import { ClockCircleOutlined, UsergroupAddOutlined, VideoCameraAddOutlined } from "@ant-design/icons";
|
8
8
|
import VideoPublishVideoAccount from "./video-account";
|
9
9
|
import VideoPublishTaskList from "./task-list";
|
10
|
+
import PageContentWarp from "../UI/PageContentWarp";
|
10
11
|
import { jsx as _jsx } from "react/jsx-runtime";
|
11
12
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
12
13
|
var VideoPublish = function VideoPublish(_ref) {
|
13
|
-
var
|
14
|
+
var disabled = _ref.disabled,
|
15
|
+
contentHeight = _ref.contentHeight,
|
16
|
+
productType = _ref.productType,
|
14
17
|
apiUrl = _ref.apiUrl,
|
15
18
|
env = _ref.env;
|
16
19
|
var _useState = useState([]),
|
@@ -30,6 +33,7 @@ var VideoPublish = function VideoPublish(_ref) {
|
|
30
33
|
icon: /*#__PURE__*/_jsx(VideoCameraAddOutlined, {}),
|
31
34
|
label: '定时发布',
|
32
35
|
children: /*#__PURE__*/_jsx(VideoPublishCreateTask, {
|
36
|
+
disabled: disabled,
|
33
37
|
productType: productType,
|
34
38
|
apiUrl: apiUrl,
|
35
39
|
env: env
|
@@ -39,6 +43,7 @@ var VideoPublish = function VideoPublish(_ref) {
|
|
39
43
|
icon: /*#__PURE__*/_jsx(ClockCircleOutlined, {}),
|
40
44
|
label: '发布任务',
|
41
45
|
children: /*#__PURE__*/_jsx(VideoPublishTaskList, {
|
46
|
+
disabled: disabled,
|
42
47
|
env: env
|
43
48
|
})
|
44
49
|
}, {
|
@@ -46,6 +51,7 @@ var VideoPublish = function VideoPublish(_ref) {
|
|
46
51
|
icon: /*#__PURE__*/_jsx(UsergroupAddOutlined, {}),
|
47
52
|
label: '短视频账户',
|
48
53
|
children: /*#__PURE__*/_jsx(VideoPublishVideoAccount, {
|
54
|
+
disabled: disabled,
|
49
55
|
env: env
|
50
56
|
})
|
51
57
|
}];
|
@@ -76,31 +82,41 @@ var VideoPublish = function VideoPublish(_ref) {
|
|
76
82
|
useEffect(function () {
|
77
83
|
onInit();
|
78
84
|
}, []);
|
79
|
-
return /*#__PURE__*/
|
80
|
-
|
81
|
-
children:
|
82
|
-
className: "
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
85
|
+
return /*#__PURE__*/_jsx(PageContentWarp, {
|
86
|
+
minHeight: contentHeight ? contentHeight : '100%',
|
87
|
+
children: /*#__PURE__*/_jsxs("div", {
|
88
|
+
className: "videoPublish",
|
89
|
+
style: {
|
90
|
+
height: contentHeight ? contentHeight : '100%'
|
91
|
+
},
|
92
|
+
children: [/*#__PURE__*/_jsx("div", {
|
93
|
+
className: "menuBox",
|
94
|
+
children: /*#__PURE__*/_jsx("div", {
|
95
|
+
className: "menuWarp",
|
96
|
+
children: /*#__PURE__*/_jsx(Menu, {
|
97
|
+
className: "menu",
|
98
|
+
onClick: function onClick(e) {
|
99
|
+
return onMenu(e.key);
|
100
|
+
},
|
101
|
+
style: {
|
102
|
+
width: '100%'
|
103
|
+
},
|
104
|
+
mode: "inline"
|
105
|
+
// defaultSelectedKeys={[ activeKey ]}
|
106
|
+
,
|
107
|
+
selectedKeys: [activeKey],
|
108
|
+
items: menuList
|
109
|
+
})
|
110
|
+
})
|
111
|
+
}), /*#__PURE__*/_jsx("div", {
|
112
|
+
className: "pageContents",
|
113
|
+
children: /*#__PURE__*/_jsx(Tabs, {
|
114
|
+
activeKey: activeKey,
|
115
|
+
className: "my-tabs",
|
116
|
+
items: tabsItems
|
117
|
+
})
|
118
|
+
})]
|
119
|
+
})
|
104
120
|
});
|
105
121
|
};
|
106
122
|
export default VideoPublish;
|
@@ -2,16 +2,25 @@
|
|
2
2
|
display: flex;
|
3
3
|
flex-direction: row;
|
4
4
|
height: 100%;
|
5
|
+
position: static;
|
5
6
|
|
6
|
-
.
|
7
|
+
.menuBox {
|
7
8
|
display: flex;
|
8
9
|
flex-direction: column;
|
9
10
|
width: 180px;
|
10
|
-
margin: 0 12px 0 0;
|
11
|
+
//margin: 0 12px 0 0;
|
11
12
|
padding: 0 10px 0 0;
|
12
13
|
min-height: 100%;
|
13
14
|
border-right: 1px solid #E8E8E8;
|
14
15
|
|
16
|
+
.menuWarp{
|
17
|
+
position: fixed;
|
18
|
+
width: 180px;
|
19
|
+
padding: 0 0 0 5px;
|
20
|
+
}
|
21
|
+
.menu{
|
22
|
+
}
|
23
|
+
|
15
24
|
.ant-menu {
|
16
25
|
margin: 10px 0 0;
|
17
26
|
}
|
@@ -24,11 +33,16 @@
|
|
24
33
|
|
25
34
|
.pageContents {
|
26
35
|
flex: 1;
|
27
|
-
padding:
|
36
|
+
padding: 16px 16px 16px ;
|
28
37
|
overflow-y: auto;
|
29
38
|
|
30
39
|
.my-tabs {
|
31
40
|
width: 100%;
|
41
|
+
.ktv-ai-pageContentBox{
|
42
|
+
>h2{
|
43
|
+
margin-top: 0;
|
44
|
+
}
|
45
|
+
}
|
32
46
|
|
33
47
|
> .ant-tabs-nav {
|
34
48
|
display: none;
|
@@ -9,7 +9,8 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
9
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
10
10
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
11
11
|
var VideoPublishTaskList = function VideoPublishTaskList(_ref) {
|
12
|
-
var
|
12
|
+
var disabled = _ref.disabled,
|
13
|
+
env = _ref.env;
|
13
14
|
var _useState = useState([]),
|
14
15
|
_useState2 = _slicedToArray(_useState, 2),
|
15
16
|
listData = _useState2[0],
|
@@ -9,7 +9,8 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
9
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
10
10
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
11
11
|
var VideoPublishVideoAccount = function VideoPublishVideoAccount(_ref) {
|
12
|
-
var
|
12
|
+
var disabled = _ref.disabled,
|
13
|
+
env = _ref.env;
|
13
14
|
var _useState = useState([]),
|
14
15
|
_useState2 = _slicedToArray(_useState, 2),
|
15
16
|
listData = _useState2[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;
|