component-shipinlv 2.3.6 → 2.3.8

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.
Files changed (117) hide show
  1. package/dist/Auth/index.js +45 -26
  2. package/dist/AuthClient/qr/index.css.js +1 -1
  3. package/dist/PhonePublish/account-manage/home.d.ts +11 -0
  4. package/dist/PhonePublish/account-manage/home.js +243 -0
  5. package/dist/PhonePublish/account-manage/home.less +28 -0
  6. package/dist/PhonePublish/account-manage/index.d.ts +3 -0
  7. package/dist/PhonePublish/account-manage/index.js +56 -0
  8. package/dist/PhonePublish/account-manage/index.less +59 -0
  9. package/dist/PhonePublish/account-manage/list.d.ts +17 -0
  10. package/dist/PhonePublish/account-manage/list.js +443 -0
  11. package/dist/PhonePublish/account-manage/list.less +95 -0
  12. package/dist/PhonePublish/account-manage/setting/index.d.ts +6 -0
  13. package/dist/PhonePublish/account-manage/setting/index.js +199 -0
  14. package/dist/PhonePublish/account-manage/setting/index.less +11 -0
  15. package/dist/PhonePublish/create-task/base/index.d.ts +10 -0
  16. package/dist/PhonePublish/create-task/base/index.js +386 -0
  17. package/dist/PhonePublish/create-task/base/index.less +64 -0
  18. package/dist/PhonePublish/create-task/getVideoGoodsUrl.d.ts +2 -0
  19. package/dist/PhonePublish/create-task/getVideoGoodsUrl.js +136 -0
  20. package/dist/PhonePublish/create-task/hour-enabled.d.ts +9 -0
  21. package/dist/PhonePublish/create-task/hour-enabled.js +42 -0
  22. package/dist/PhonePublish/create-task/hour-enabled.less +24 -0
  23. package/dist/PhonePublish/create-task/index.d.ts +11 -0
  24. package/dist/PhonePublish/create-task/index.js +449 -0
  25. package/dist/PhonePublish/create-task/index.less +75 -0
  26. package/dist/PhonePublish/create-task/select-list.css.d.ts +5 -0
  27. package/dist/PhonePublish/create-task/select-list.css.js +6 -0
  28. package/dist/PhonePublish/create-task/select-list.d.ts +8 -0
  29. package/dist/PhonePublish/create-task/select-list.js +304 -0
  30. package/dist/PhonePublish/create-task/task-list.css.d.ts +5 -0
  31. package/dist/PhonePublish/create-task/task-list.css.js +6 -0
  32. package/dist/PhonePublish/create-task/task-list.d.ts +9 -0
  33. package/dist/PhonePublish/create-task/task-list.js +323 -0
  34. package/dist/PhonePublish/index.css.d.ts +2 -0
  35. package/dist/PhonePublish/index.css.js +35 -0
  36. package/dist/PhonePublish/index.d.ts +15 -0
  37. package/dist/PhonePublish/index.js +191 -0
  38. package/dist/PhonePublish/index.less +55 -0
  39. package/dist/PhonePublish/lib/chrome-quit.d.ts +2 -0
  40. package/dist/PhonePublish/lib/chrome-quit.js +20 -0
  41. package/dist/PhonePublish/log/index.d.ts +8 -0
  42. package/dist/PhonePublish/log/index.js +186 -0
  43. package/dist/PhonePublish/log/index.less +81 -0
  44. package/dist/PhonePublish/publish-task-plan/index.d.ts +9 -0
  45. package/dist/PhonePublish/publish-task-plan/index.js +32 -0
  46. package/dist/PhonePublish/publish-task-plan/index.less +4 -0
  47. package/dist/PhonePublish/publish-task-plan/tool-bak.txt +219 -0
  48. package/dist/PhonePublish/publish-task-plan/tool.d.ts +29 -0
  49. package/dist/PhonePublish/publish-task-plan/tool.js +720 -0
  50. package/dist/PhonePublish/task-list/index.d.ts +8 -0
  51. package/dist/PhonePublish/task-list/index.js +224 -0
  52. package/dist/PhonePublish/task-list/index.less +8 -0
  53. package/dist/PhonePublish/task-list/plan/list.d.ts +12 -0
  54. package/dist/PhonePublish/task-list/plan/list.js +290 -0
  55. package/dist/PhonePublish/task-list/plan/list.less +87 -0
  56. package/dist/PhonePublish/task-list/plan/operate.d.ts +8 -0
  57. package/dist/PhonePublish/task-list/plan/operate.js +145 -0
  58. package/dist/PhonePublish/task-list/plan/query.d.ts +8 -0
  59. package/dist/PhonePublish/task-list/plan/query.js +89 -0
  60. package/dist/PhonePublish/task-list/plan/query.less +9 -0
  61. package/dist/PhonePublish/task-list/plan/status.d.ts +13 -0
  62. package/dist/PhonePublish/task-list/plan/status.js +53 -0
  63. package/dist/PhonePublish/task-list/query.d.ts +8 -0
  64. package/dist/PhonePublish/task-list/query.js +76 -0
  65. package/dist/PhonePublish/task-list/query.less +19 -0
  66. package/dist/PhonePublish/task-list/who-can-view.d.ts +12 -0
  67. package/dist/PhonePublish/task-list/who-can-view.js +37 -0
  68. package/dist/PhonePublish/video-account/ban/index.d.ts +10 -0
  69. package/dist/PhonePublish/video-account/ban/index.js +94 -0
  70. package/dist/PhonePublish/video-account/ban/index.less +4 -0
  71. package/dist/PhonePublish/video-account/base-info.d.ts +13 -0
  72. package/dist/PhonePublish/video-account/base-info.js +75 -0
  73. package/dist/PhonePublish/video-account/base-info.less +92 -0
  74. package/dist/PhonePublish/video-account/create.d.ts +8 -0
  75. package/dist/PhonePublish/video-account/create.js +174 -0
  76. package/dist/PhonePublish/video-account/group.d.ts +9 -0
  77. package/dist/PhonePublish/video-account/group.js +255 -0
  78. package/dist/PhonePublish/video-account/group.less +10 -0
  79. package/dist/PhonePublish/video-account/index.d.ts +8 -0
  80. package/dist/PhonePublish/video-account/index.js +403 -0
  81. package/dist/PhonePublish/video-account/index.less +92 -0
  82. package/dist/PhonePublish/video-account/query.d.ts +8 -0
  83. package/dist/PhonePublish/video-account/query.js +115 -0
  84. package/dist/PhonePublish/video-account/query.less +18 -0
  85. package/dist/PhonePublish/video-publish-statistic/account-trend/index.d.ts +8 -0
  86. package/dist/PhonePublish/video-publish-statistic/account-trend/index.js +173 -0
  87. package/dist/PhonePublish/video-publish-statistic/account-trend/index.less +3 -0
  88. package/dist/PhonePublish/video-publish-statistic/account-trend/kind-list.d.ts +7 -0
  89. package/dist/PhonePublish/video-publish-statistic/account-trend/kind-list.js +22 -0
  90. package/dist/PhonePublish/video-publish-statistic/account-trend/query.d.ts +9 -0
  91. package/dist/PhonePublish/video-publish-statistic/account-trend/query.js +54 -0
  92. package/dist/PhonePublish/video-publish-statistic/account-trend/query.less +3 -0
  93. package/dist/PhonePublish/video-publish-statistic/index.d.ts +2 -0
  94. package/dist/PhonePublish/video-publish-statistic/index.js +37 -0
  95. package/dist/PhonePublish/video-publish-statistic/kind.d.ts +16 -0
  96. package/dist/PhonePublish/video-publish-statistic/kind.js +57 -0
  97. package/dist/PhonePublish/video-publish-statistic/operation/list.d.ts +7 -0
  98. package/dist/PhonePublish/video-publish-statistic/operation/list.js +242 -0
  99. package/dist/PhonePublish/video-publish-statistic/operation/list.less +10 -0
  100. package/dist/PhonePublish/video-publish-statistic/operation/query.d.ts +8 -0
  101. package/dist/PhonePublish/video-publish-statistic/operation/query.js +56 -0
  102. package/dist/PhonePublish/video-publish-statistic/operation/query.less +3 -0
  103. package/dist/PhonePublish/video-publish-statistic/publish-plan/list.d.ts +8 -0
  104. package/dist/PhonePublish/video-publish-statistic/publish-plan/list.js +257 -0
  105. package/dist/PhonePublish/video-publish-statistic/publish-plan/list.less +105 -0
  106. package/dist/PhonePublish/video-publish-statistic/publish-plan/query.d.ts +9 -0
  107. package/dist/PhonePublish/video-publish-statistic/publish-plan/query.js +79 -0
  108. package/dist/PhonePublish/video-publish-statistic/publish-plan/query.less +3 -0
  109. package/dist/VideoPublish/account-manage/list.js +1 -1
  110. package/dist/index.d.ts +1 -0
  111. package/dist/index.js +1 -0
  112. package/dist/lib/Tool.d.ts +1 -1
  113. package/dist/phone/index.d.ts +8 -0
  114. package/dist/phone/index.js +62 -0
  115. package/dist/phone/index.less +170 -0
  116. package/dist/typings.d.ts +1 -1
  117. package/package.json +1 -1
@@ -0,0 +1,75 @@
1
+ .videoPublishCreateTask {
2
+ padding: 0 12px 0 0;
3
+ display: flex;
4
+ flex-direction: column;
5
+ height: 100%;
6
+ .groupIcon{
7
+ color: blue;
8
+ }
9
+ .rateSelect{
10
+ width: 120px;
11
+ }
12
+ .normalVideo{
13
+ color: blue;
14
+ }
15
+ .shoppingCart{
16
+ color: #F60;
17
+ }
18
+ .selectFile{
19
+ padding: 12px 0 0;
20
+ }
21
+ .submits{
22
+ text-align: right;
23
+ padding: 0 0 36px 0;
24
+ }
25
+ .accountListWarp{
26
+ display: flex;
27
+ flex-direction: row;
28
+ .accountList{
29
+ flex: 2;
30
+ margin-left: 5px;
31
+ }
32
+ .renew{
33
+ font-size: 20px;
34
+ padding: 0 12px;
35
+ }
36
+ }
37
+
38
+ .followerCount {
39
+ background-color: #F2F2F2;
40
+ border-radius: 3px;
41
+ font-size: smaller;
42
+ line-height: 1em;
43
+ margin-left: 3px;
44
+ padding: 2px 3px;
45
+ }
46
+ .notLoginValid {
47
+ margin-left: 5px;
48
+
49
+ }
50
+ .nicknameRemark {
51
+ color: #999;
52
+ padding: 0 3px;
53
+ }
54
+
55
+ .batchOperate{
56
+ display: flex;
57
+ flex-direction: row;
58
+ justify-content: space-between;
59
+ padding: 0 0 12px 0;
60
+ margin: -16px 0 0 0;
61
+ .ant-form-item{
62
+ margin-bottom: 0;
63
+ }
64
+ .shoppingCar{
65
+ font-size: 20px;
66
+ }
67
+ .videoTitleInput,
68
+ .goodsTitleInput{
69
+ width: 260px;
70
+ }
71
+ .videoKindTag{
72
+ width: 180px;
73
+ }
74
+ }
75
+ }
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ declare const _default: {
3
+ videoPublishTaskSelectList: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
4
+ };
5
+ export default _default;
@@ -0,0 +1,6 @@
1
+ import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
2
+ var _templateObject;
3
+ import styled from 'styled-components';
4
+ export default {
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
+ };
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ interface Props {
3
+ from: 'local' | 'task';
4
+ list: VideoPublish.VideoSelectList[];
5
+ onList: (list: VideoPublish.VideoSelectList[]) => void;
6
+ }
7
+ declare const VideoPublishSelectList: React.FC<Props>;
8
+ export default VideoPublishSelectList;
@@ -0,0 +1,304 @@
1
+ import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
2
+ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
3
+ import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
4
+ import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
5
+ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
6
+ import React, { useState } from "react";
7
+ import { Button, Popover, Select, Space, Table } from "antd";
8
+ import Duration from "../../UI/duration";
9
+ import FileSize from "../../UI/FileSize";
10
+ import styles from "./select-list.css";
11
+ import TextInput from "../../UI/text-input";
12
+ import VideoKindTag, { VideoKindTagList } from "../../component/videoKindTag";
13
+ import { FolderOpenOutlined, UnorderedListOutlined } from "@ant-design/icons";
14
+ import { onMediaShowView } from "../../component/media-show";
15
+ import Tool from "../../lib/Tool";
16
+ import openInFolder from "../../base/openInFolder";
17
+ import { jsx as _jsx } from "react/jsx-runtime";
18
+ import { jsxs as _jsxs } from "react/jsx-runtime";
19
+ import { Fragment as _Fragment } from "react/jsx-runtime";
20
+ var VideoPublishSelectList = function VideoPublishSelectList(_ref) {
21
+ var _ref$from = _ref.from,
22
+ from = _ref$from === void 0 ? '' : _ref$from,
23
+ _ref$list = _ref.list,
24
+ list = _ref$list === void 0 ? [] : _ref$list,
25
+ _ref$onList = _ref.onList,
26
+ onList = _ref$onList === void 0 ? function () {} : _ref$onList;
27
+ var _useState = useState({}),
28
+ _useState2 = _slicedToArray(_useState, 2),
29
+ loadingOpenDirDict = _useState2[0],
30
+ setLoadingOpenDirDict = _useState2[1];
31
+ var columns = [{
32
+ title: '序号',
33
+ dataIndex: '-',
34
+ key: '-',
35
+ render: function render(_, _1) {
36
+ var index = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
37
+ return index + 1;
38
+ }
39
+ }, {
40
+ title: '编号',
41
+ dataIndex: 'id',
42
+ key: 'id'
43
+ }, {
44
+ title: '视频标题',
45
+ dataIndex: 'title',
46
+ key: 'title',
47
+ render: function render(title, record) {
48
+ var index = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
49
+ return /*#__PURE__*/_jsx(Popover, {
50
+ title: "\u89C6\u9891\u6807\u9898",
51
+ content: title,
52
+ children: /*#__PURE__*/_jsx("div", {
53
+ className: "title",
54
+ children: /*#__PURE__*/_jsx(TextInput, {
55
+ className: "remarkInput",
56
+ maxLength: 30,
57
+ label: title || '',
58
+ value: title || '',
59
+ onFinish: function onFinish(title) {
60
+ onItem(index, 'title', title);
61
+ }
62
+ })
63
+ })
64
+ });
65
+ }
66
+ }, {
67
+ title: '视频简介',
68
+ dataIndex: 'introduction',
69
+ key: 'introduction',
70
+ render: function render(introduction, record) {
71
+ var index = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
72
+ return /*#__PURE__*/_jsx(Popover, {
73
+ title: "\u89C6\u9891\u7B80\u4ECB",
74
+ content: introduction,
75
+ children: /*#__PURE__*/_jsx("div", {
76
+ className: "remark",
77
+ children: /*#__PURE__*/_jsx(TextInput, {
78
+ type: "textarea",
79
+ className: "remarkInput",
80
+ maxLength: 1000,
81
+ label: introduction || '',
82
+ value: introduction || '',
83
+ onFinish: function onFinish(introduction) {
84
+ onItem(index, 'introduction', introduction);
85
+ }
86
+ })
87
+ })
88
+ });
89
+ }
90
+ }, {
91
+ title: '类型标签',
92
+ dataIndex: 'videoKindTag',
93
+ key: 'videoKindTag',
94
+ render: function render(videoKindTag, record) {
95
+ var index = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : -1;
96
+ return /*#__PURE__*/_jsxs(Select, {
97
+ size: "small",
98
+ defaultValue: videoKindTag,
99
+ className: "videoKindTag",
100
+ onChange: function onChange(e) {
101
+ return onVideoKindTag(index, e);
102
+ },
103
+ children: [/*#__PURE__*/_jsxs(Select.Option, {
104
+ value: "",
105
+ children: [/*#__PURE__*/_jsx(UnorderedListOutlined, {}), " [\u65E0]"]
106
+ }), VideoKindTagList.map(function (item) {
107
+ return /*#__PURE__*/_jsx(Select.Option, {
108
+ value: item.videoKindTag,
109
+ children: /*#__PURE__*/_jsx(VideoKindTag, {
110
+ videoKindTag: item.videoKindTag
111
+ })
112
+ }, item.videoKindTag);
113
+ })]
114
+ });
115
+ }
116
+ }, {
117
+ title: '带货/小程序',
118
+ dataIndex: 'kindTagValue',
119
+ key: 'kindTagValue',
120
+ render: function render(kindTagValue, record) {
121
+ var index = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : -1;
122
+ return /*#__PURE__*/_jsx(Popover, {
123
+ title: "\u5E26\u8D27/\u5C0F\u7A0B\u5E8F/\u5B9A\u4F4D",
124
+ content: kindTagValue,
125
+ children: /*#__PURE__*/_jsx("div", {
126
+ className: "remark",
127
+ children: /*#__PURE__*/_jsx(TextInput, {
128
+ className: "remarkInput",
129
+ label: kindTagValue || '',
130
+ value: kindTagValue || '',
131
+ onFinish: function onFinish(kindTagValue) {
132
+ onItem(index, 'kindTagValue', kindTagValue);
133
+ }
134
+ })
135
+ })
136
+ });
137
+ }
138
+ }, {
139
+ title: '商品标题',
140
+ dataIndex: 'goodsTitle',
141
+ key: 'goodsTitle',
142
+ render: function render(goodsTitle, record) {
143
+ var index = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : -1;
144
+ return /*#__PURE__*/_jsx(Popover, {
145
+ title: /*#__PURE__*/_jsxs(_Fragment, {
146
+ children: ["\u5546\u54C1\u6807\u9898 ", /*#__PURE__*/_jsx("small", {
147
+ children: "\u53EA\u652F\u6301\uFF1A\u6C49\u5B57\uFF0C\u6570\u5B57\uFF1B\u6700\u591A\u8F93\u516510\u4E2A\u6C49\u5B57"
148
+ })]
149
+ }),
150
+ content: goodsTitle,
151
+ children: /*#__PURE__*/_jsx("div", {
152
+ className: "remark",
153
+ children: /*#__PURE__*/_jsx(TextInput, {
154
+ className: "remarkInput",
155
+ maxLength: 10,
156
+ label: goodsTitle || '',
157
+ value: goodsTitle || '',
158
+ onFinish: function onFinish(goodsTitle) {
159
+ onItem(index, 'goodsTitle', goodsTitle);
160
+ }
161
+ })
162
+ })
163
+ });
164
+ }
165
+ }, {
166
+ title: /*#__PURE__*/_jsx(_Fragment, {
167
+ children: "\u65F6\u957F"
168
+ }),
169
+ dataIndex: 'videoDuration',
170
+ key: 'videoDuration',
171
+ render: function render(videoDuration, record) {
172
+ return videoDuration > 0 ? /*#__PURE__*/_jsx(Duration, {
173
+ duration: videoDuration
174
+ }) : '-';
175
+ }
176
+ }, {
177
+ title: /*#__PURE__*/_jsx(_Fragment, {
178
+ children: "\u5927\u5C0F"
179
+ }),
180
+ dataIndex: 'videoSize',
181
+ key: 'videoSize',
182
+ render: function render(videoSize, record) {
183
+ return videoSize > 0 ? /*#__PURE__*/_jsx(FileSize, {
184
+ fileSize: videoSize
185
+ }) : '-';
186
+ }
187
+ }, {
188
+ title: /*#__PURE__*/_jsx(_Fragment, {
189
+ children: "\u89C6\u9891"
190
+ }),
191
+ dataIndex: 'videoFinishUrl',
192
+ key: 'videoFinishUrl',
193
+ render: function render(videoFinishUrl, record) {
194
+ var index = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
195
+ var isLocalUrl = !/^https?:/i.test(videoFinishUrl);
196
+ return /*#__PURE__*/_jsxs(Space, {
197
+ children: [isLocalUrl ? /*#__PURE__*/_jsx(_Fragment, {
198
+ children: /*#__PURE__*/_jsx(Button, {
199
+ onClick: function onClick() {
200
+ return onOpenDir((record === null || record === void 0 ? void 0 : record.id) || 0, (record === null || record === void 0 ? void 0 : record.videoFinishUrl) || '');
201
+ },
202
+ loading: loadingOpenDirDict[(record === null || record === void 0 ? void 0 : record.id) || 0],
203
+ disabled: !(record !== null && record !== void 0 && record.videoFinishUrl),
204
+ icon: /*#__PURE__*/_jsx(FolderOpenOutlined, {}),
205
+ type: "link",
206
+ size: "small",
207
+ children: "\u67E5\u770B"
208
+ })
209
+ }) : /*#__PURE__*/_jsx(_Fragment, {
210
+ children: /*#__PURE__*/_jsx(Button, {
211
+ onClick: function onClick() {
212
+ return onVideoPreview((record === null || record === void 0 ? void 0 : record.videoFinishUrl) || '');
213
+ },
214
+ loading: loadingOpenDirDict[(record === null || record === void 0 ? void 0 : record.id) || 0],
215
+ disabled: !(record !== null && record !== void 0 && record.videoFinishUrl),
216
+ icon: /*#__PURE__*/_jsx(FolderOpenOutlined, {}),
217
+ type: "link",
218
+ children: "\u9884\u89C8"
219
+ })
220
+ }), /*#__PURE__*/_jsx(Button, {
221
+ type: "link",
222
+ ghost: true,
223
+ danger: true,
224
+ size: "small",
225
+ onClick: function onClick() {
226
+ return onDel(index || 0);
227
+ },
228
+ children: "\u5220\u9664"
229
+ })]
230
+ });
231
+ }
232
+ }];
233
+ var onVideoKindTag = function onVideoKindTag(index, videoKindTag) {
234
+ console.log('onKindTagValue:', index, list);
235
+ list[index].videoKindTag = videoKindTag;
236
+ onList(_toConsumableArray(list));
237
+ };
238
+ var onItem = function onItem(index, filed, value) {
239
+ list[index][filed] = value;
240
+ onList(_toConsumableArray(list));
241
+ };
242
+ var onVideoPreview = function onVideoPreview(url) {
243
+ onMediaShowView('视频预览', url, 'video');
244
+ };
245
+ var onOpenDir = /*#__PURE__*/function () {
246
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(id, filePath) {
247
+ var fileResul;
248
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
249
+ while (1) switch (_context.prev = _context.next) {
250
+ case 0:
251
+ loadingOpenDirDict[id] = true;
252
+ setLoadingOpenDirDict(_objectSpread({}, loadingOpenDirDict));
253
+ _context.next = 4;
254
+ return openInFolder(filePath).catch(function (err) {
255
+ console.log("openInFolder:", err);
256
+ if (!(err !== null && err !== void 0 && err.success)) {
257
+ Tool.toastError(err === null || err === void 0 ? void 0 : err.message);
258
+ return;
259
+ }
260
+ console.log('open In Folder err:', err);
261
+ console.log('open In Folder err 2:', JSON.stringify(err));
262
+ Tool.toastError("\u6253\u5F00\u6587\u4EF6\u5931\u8D25\uFF1A".concat(err === null || err === void 0 ? void 0 : err.message, "\uFF01 \u6587\u4EF6\u5730\u5740\uFF1A ").concat(filePath));
263
+ });
264
+ case 4:
265
+ fileResul = _context.sent;
266
+ setTimeout(function () {
267
+ loadingOpenDirDict[id] = false;
268
+ setLoadingOpenDirDict(_objectSpread({}, loadingOpenDirDict));
269
+ }, 1e3);
270
+ case 6:
271
+ case "end":
272
+ return _context.stop();
273
+ }
274
+ }, _callee);
275
+ }));
276
+ return function onOpenDir(_x, _x2) {
277
+ return _ref2.apply(this, arguments);
278
+ };
279
+ }();
280
+ var onDel = function onDel(index) {
281
+ list.splice(index, 1);
282
+ onList(_toConsumableArray(list));
283
+ Tool.toast('已删除');
284
+ };
285
+ return /*#__PURE__*/_jsx(styles.videoPublishTaskSelectList, {
286
+ children: /*#__PURE__*/_jsx(Table, {
287
+ size: "small",
288
+ bordered: true,
289
+ rowKey: function rowKey(record, index) {
290
+ var encoder = new TextEncoder(); // 创建一个TextEncoder实例
291
+ var encoded = encoder.encode(JSON.stringify(record)); // 编码为UTF-8
292
+ var key = "".concat(index, "-").concat(encoded.join(''));
293
+ console.log("encoded key:", key); // 输出UTF-8编码的Uint8Array
294
+
295
+ return key;
296
+ },
297
+ loading: false,
298
+ columns: columns,
299
+ dataSource: list,
300
+ pagination: false
301
+ })
302
+ });
303
+ };
304
+ export default VideoPublishSelectList;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ declare const _default: {
3
+ videoPublishTaskList: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
4
+ };
5
+ export default _default;
@@ -0,0 +1,6 @@
1
+ import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
2
+ var _templateObject;
3
+ import styled from 'styled-components';
4
+ export default {
5
+ videoPublishTaskList: styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n max-width: 100%;\n .remark{\n width: 120px;\n overflow: hidden;\n word-break: keep-all;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n .kindTagValue{\n width: 120px;\n overflow: hidden;\n word-break: keep-all;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n .operate{\n padding: 0 0 12px 0;\n display: flex;\n flex-direction: row;\n line-height: 24px;\n .left{\n flex: 2;\n }\n .showInfo{\n text-align: right;\n .high{\n color: #F60;\n }\n }\n }\n .goodsTitle{\n max-width: 80px;\n overflow: hidden;\n word-break: keep-all;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n "])))
6
+ };
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ interface Props {
3
+ apiUrl: string;
4
+ defaultSelectList?: VideoPublish.VideoSelectList[];
5
+ productType: VideoPublish.ProductType;
6
+ onFinish: (list: VideoPublish.VideoSelectList[]) => void;
7
+ }
8
+ declare const VideoPublishTaskList: React.FC<Props>;
9
+ export default VideoPublishTaskList;