component-shipinlv 2.2.6 → 2.2.7
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.
- package/dist/ActiveAccountMode/task/index.js +2 -1
- package/dist/VideoPublish/account-manage/home.js +3 -0
- package/dist/VideoPublish/account-manage/list.d.ts +1 -0
- package/dist/VideoPublish/account-manage/list.js +2 -0
- package/dist/VideoPublish/task-list/plan/list.js +2 -0
- package/dist/VideoPublish/task-list/plan/operate.js +2 -1
- package/dist/VideoPublish/task-list/plan/query.js +41 -1
- package/dist/VideoPublish/task-list/plan/query.less +6 -0
- package/dist/VideoPublish/task-list/plan/status.js +1 -1
- package/dist/VideoPublish/video-account/base-info.d.ts +1 -0
- package/dist/VideoPublish/video-account/base-info.js +6 -2
- package/dist/VideoPublish/video-account/create.js +2 -2
- package/dist/VideoPublish/video-account/index.js +13 -9
- package/dist/VideoPublish/video-account/index.less +10 -0
- package/dist/VideoPublish/video-account/query.js +21 -0
- package/dist/VideoPublish/video-account/query.less +3 -0
- package/dist/component/AccountBan/index.d.ts +7 -0
- package/dist/component/AccountBan/index.js +10 -0
- package/dist/component/AccountBan/index.less +12 -0
- package/dist/lib/Tool.d.ts +1 -1
- package/dist/lib/accountManageSettingConfig.js +2 -2
- package/dist/lib/fs.js +2 -1
- package/dist/lib/save-path.js +19 -15
- package/dist/types/VideoPublish.d.ts +1 -0
- package/dist/types/VideoPublishTaskPlan.d.ts +2 -0
- package/dist/types/VideoPublishVideoAccount.d.ts +1 -0
- package/package.json +1 -1
@@ -772,10 +772,11 @@ var ActiveAccountModeTask = /*#__PURE__*/function () {
|
|
772
772
|
console.log('newFilePath:', newFilePath);
|
773
773
|
return _context12.abrupt("return", new Promise( /*#__PURE__*/function () {
|
774
774
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11(resolve, reject) {
|
775
|
+
var _window$getBridge2;
|
775
776
|
return _regeneratorRuntime().wrap(function _callee11$(_context11) {
|
776
777
|
while (1) switch (_context11.prev = _context11.next) {
|
777
778
|
case 0:
|
778
|
-
window.getBridge().fs.rename(videoPath, newFilePath, function (err) {
|
779
|
+
(_window$getBridge2 = window.getBridge()) === null || _window$getBridge2 === void 0 || _window$getBridge2.fs.rename(videoPath, newFilePath, function (err) {
|
779
780
|
if (err) {
|
780
781
|
console.log('videoRename err:', err);
|
781
782
|
reject(err);
|
@@ -195,6 +195,9 @@ var VideoPublishAccountManageHomePage = function VideoPublishAccountManageHomePa
|
|
195
195
|
}), /*#__PURE__*/_jsx("div", {
|
196
196
|
className: "userId",
|
197
197
|
children: accountDetail.uniqueId
|
198
|
+
}), /*#__PURE__*/_jsx("div", {
|
199
|
+
className: "nicknameRemark",
|
200
|
+
children: accountDetail.nicknameRemark
|
198
201
|
})]
|
199
202
|
})]
|
200
203
|
}), /*#__PURE__*/_jsx(Descriptions, {
|
@@ -5,6 +5,7 @@ interface Props {
|
|
5
5
|
env?: Global.Env;
|
6
6
|
currentAccountDetail: VideoPublishVideoAccount.List;
|
7
7
|
onMenu: (key: string) => void;
|
8
|
+
disabledDel?: boolean;
|
8
9
|
onListData: (list: VideoPublishVideoAccount.List[]) => void;
|
9
10
|
onCurrent: (detail: VideoPublishVideoAccount.List) => void;
|
10
11
|
}
|
@@ -35,6 +35,7 @@ var HomePageAccountList = function HomePageAccountList(_ref) {
|
|
35
35
|
_ref$onListData = _ref.onListData,
|
36
36
|
onListData = _ref$onListData === void 0 ? function () {} : _ref$onListData,
|
37
37
|
currentAccountDetail = _ref.currentAccountDetail,
|
38
|
+
disabledDel = _ref.disabledDel,
|
38
39
|
_ref$onCurrent = _ref.onCurrent,
|
39
40
|
onCurrent = _ref$onCurrent === void 0 ? function () {} : _ref$onCurrent;
|
40
41
|
var _useState = useState(getLocalUserInfo()),
|
@@ -450,6 +451,7 @@ var HomePageAccountList = function HomePageAccountList(_ref) {
|
|
450
451
|
className: currentId == item.id ? "active" : '',
|
451
452
|
index: index,
|
452
453
|
accountInfo: _objectSpread({}, item),
|
454
|
+
disabledDel: disabledDel,
|
453
455
|
onDel: function onDel(id) {
|
454
456
|
return _onDel(id);
|
455
457
|
},
|
@@ -46,6 +46,8 @@ var VideoPublishTaskPlanList = function VideoPublishTaskPlanList(_ref) {
|
|
46
46
|
pagination = _useState4[0],
|
47
47
|
setPagination = _useState4[1];
|
48
48
|
var _useState5 = useState({
|
49
|
+
isBan: '',
|
50
|
+
status: '',
|
49
51
|
startTime: startTime,
|
50
52
|
// Date.now(),
|
51
53
|
endTime: endTime //Date.now(),
|
@@ -29,10 +29,11 @@ var VideoPublishTaskPlanOperate = function VideoPublishTaskPlanOperate(_ref) {
|
|
29
29
|
newFilePath = videoPathInfo.slice(0, -1).join('/') + "/".concat(newName);
|
30
30
|
return _context2.abrupt("return", new Promise( /*#__PURE__*/function () {
|
31
31
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(resolve, reject) {
|
32
|
+
var _window$getBridge;
|
32
33
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
33
34
|
while (1) switch (_context.prev = _context.next) {
|
34
35
|
case 0:
|
35
|
-
window.getBridge().fs.rename(videoPath, newFilePath, function (err) {
|
36
|
+
(_window$getBridge = window.getBridge()) === null || _window$getBridge === void 0 || _window$getBridge.fs.rename(videoPath, newFilePath, function (err) {
|
36
37
|
if (err) {
|
37
38
|
console.log('video Rename err:', err);
|
38
39
|
reject(err);
|
@@ -1,8 +1,10 @@
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
3
3
|
import React, { useState } from 'react';
|
4
|
-
import { Button, Form, Input, Space } from "antd";
|
4
|
+
import { Button, Form, Input, Select, Space, Tag } from "antd";
|
5
5
|
import "./query.less";
|
6
|
+
import { UnorderedListOutlined } from "@ant-design/icons";
|
7
|
+
import VideoPublishTaskPlanStatus, { VideoPublishTaskPlanStatusList } from "./status";
|
6
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
7
9
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
8
10
|
var VideoPublishTaskPlanListQuery = function VideoPublishTaskPlanListQuery(_ref) {
|
@@ -27,7 +29,45 @@ var VideoPublishTaskPlanListQuery = function VideoPublishTaskPlanListQuery(_ref)
|
|
27
29
|
initialValues: _objectSpread({}, query),
|
28
30
|
onFinish: onFinish,
|
29
31
|
children: /*#__PURE__*/_jsxs(Space, {
|
32
|
+
wrap: true,
|
30
33
|
children: [/*#__PURE__*/_jsx(Form.Item, {
|
34
|
+
name: "isBan",
|
35
|
+
className: "isBan",
|
36
|
+
children: /*#__PURE__*/_jsxs(Select, {
|
37
|
+
children: [/*#__PURE__*/_jsxs(Select, {
|
38
|
+
value: "",
|
39
|
+
children: [/*#__PURE__*/_jsx(UnorderedListOutlined, {}), " \u5C01\u7981\u72B6\u6001"]
|
40
|
+
}), /*#__PURE__*/_jsx(Select, {
|
41
|
+
value: "0",
|
42
|
+
children: /*#__PURE__*/_jsx(Tag, {
|
43
|
+
color: "green",
|
44
|
+
children: "\u6B63\u5E38"
|
45
|
+
})
|
46
|
+
}), /*#__PURE__*/_jsx(Select, {
|
47
|
+
value: "1",
|
48
|
+
children: /*#__PURE__*/_jsx(Tag, {
|
49
|
+
color: "red",
|
50
|
+
children: "\u88AB\u7981"
|
51
|
+
})
|
52
|
+
})]
|
53
|
+
})
|
54
|
+
}), /*#__PURE__*/_jsx(Form.Item, {
|
55
|
+
name: "status",
|
56
|
+
className: "status",
|
57
|
+
children: /*#__PURE__*/_jsxs(Select, {
|
58
|
+
children: [/*#__PURE__*/_jsxs(Select.Option, {
|
59
|
+
value: "",
|
60
|
+
children: [/*#__PURE__*/_jsx(UnorderedListOutlined, {}), " \u6240\u6709\u53D1\u5E03\u72B6\u6001"]
|
61
|
+
}), VideoPublishTaskPlanStatusList.map(function (items) {
|
62
|
+
return /*#__PURE__*/_jsx(Select.Option, {
|
63
|
+
value: items.status,
|
64
|
+
children: /*#__PURE__*/_jsx(VideoPublishTaskPlanStatus, {
|
65
|
+
status: items.status
|
66
|
+
})
|
67
|
+
}, items.status);
|
68
|
+
})]
|
69
|
+
})
|
70
|
+
}), /*#__PURE__*/_jsx(Form.Item, {
|
31
71
|
name: "keyword",
|
32
72
|
children: /*#__PURE__*/_jsx(Input
|
33
73
|
// value={ query.keyword }
|
@@ -3,6 +3,7 @@ import "./base-info.less";
|
|
3
3
|
import { Avatar, Popconfirm, Tooltip } from "antd";
|
4
4
|
import VideoPlatformLogo from "../../component/video-platform/logo";
|
5
5
|
import { CloseOutlined } from "@ant-design/icons";
|
6
|
+
import AccountBan from "../../component/AccountBan";
|
6
7
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
7
8
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
8
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
@@ -12,6 +13,7 @@ var VideoPublishVideoAccountBaseInfo = function VideoPublishVideoAccountBaseInfo
|
|
12
13
|
className = _ref$className === void 0 ? '' : _ref$className,
|
13
14
|
index = _ref.index,
|
14
15
|
accountInfo = _ref.accountInfo,
|
16
|
+
disabledDel = _ref.disabledDel,
|
15
17
|
_ref$onClick = _ref.onClick,
|
16
18
|
_onClick = _ref$onClick === void 0 ? function () {} : _ref$onClick,
|
17
19
|
_ref$onDel = _ref.onDel,
|
@@ -30,7 +32,7 @@ var VideoPublishVideoAccountBaseInfo = function VideoPublishVideoAccountBaseInfo
|
|
30
32
|
children: [typeof index === 'number' && /*#__PURE__*/_jsx("i", {
|
31
33
|
className: "index",
|
32
34
|
children: index + 1
|
33
|
-
}), typeof id === 'number' && /*#__PURE__*/_jsx(Popconfirm, {
|
35
|
+
}), typeof id === 'number' && !disabledDel && /*#__PURE__*/_jsx(Popconfirm, {
|
34
36
|
title: "\u5220\u9664\u8D26\u6237",
|
35
37
|
description: "\u786E\u5B9A\u5220\u9664\u8D26\u6237\uFF1F\u5220\u9664\u4E4B\u540E\u4E0D\u80FD\u53D1\u5E03\u89C6\u9891\u4E86",
|
36
38
|
onConfirm: function onConfirm() {
|
@@ -54,7 +56,9 @@ var VideoPublishVideoAccountBaseInfo = function VideoPublishVideoAccountBaseInfo
|
|
54
56
|
})]
|
55
57
|
}), /*#__PURE__*/_jsxs("div", {
|
56
58
|
className: "shopName",
|
57
|
-
children: [/*#__PURE__*/_jsx(
|
59
|
+
children: [(accountInfo === null || accountInfo === void 0 ? void 0 : accountInfo.isBan) && /*#__PURE__*/_jsx(AccountBan, {
|
60
|
+
isBan: accountInfo.isBan
|
61
|
+
}), /*#__PURE__*/_jsx(VideoPlatformLogo, {
|
58
62
|
platform: (accountInfo === null || accountInfo === void 0 ? void 0 : accountInfo.platform) || '',
|
59
63
|
size: 12
|
60
64
|
}), accountInfo === null || accountInfo === void 0 ? void 0 : accountInfo.nickname, /*#__PURE__*/_jsx("div", {
|
@@ -146,8 +146,8 @@ var VideoAccountCreate = function VideoAccountCreate(_ref) {
|
|
146
146
|
name: "nicknameRemark",
|
147
147
|
label: "\u8D26\u53F7\u5907\u6CE8",
|
148
148
|
rules: [{
|
149
|
-
max:
|
150
|
-
message: '最多
|
149
|
+
max: 20,
|
150
|
+
message: '最多20个字符'
|
151
151
|
}],
|
152
152
|
children: /*#__PURE__*/_jsx(Input, {
|
153
153
|
placeholder: "\u8F93\u5165\u8D26\u53F7\u5907\u6CE8"
|
@@ -7,7 +7,7 @@ import PageContentWarp from "../../UI/PageContentWarp";
|
|
7
7
|
import { useRequest } from "@umijs/hooks";
|
8
8
|
import * as VideoPublishController from "../../service/api/VideoPublishController";
|
9
9
|
import * as VideoPublishVideoAccountController from "../../service/api/VideoPublishVideoAccountController";
|
10
|
-
import { Avatar, Button, Divider, Space, Table, Tag } from "antd";
|
10
|
+
import { Avatar, Button, Divider, Space, Table, Tag, Tooltip } from "antd";
|
11
11
|
import VideoPublishVideoAccountListQuery from "./query";
|
12
12
|
import VideoPlatform from "../../component/video-platform/logo";
|
13
13
|
import Money from "../../UI/Money";
|
@@ -20,8 +20,8 @@ import SavePath from "../../lib/save-path";
|
|
20
20
|
import dayjs from "dayjs";
|
21
21
|
import VideoAccountBan from "./ban";
|
22
22
|
import { jsx as _jsx } from "react/jsx-runtime";
|
23
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
24
23
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
24
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
25
25
|
var VideoPublishVideoAccount = function VideoPublishVideoAccount(_ref) {
|
26
26
|
var disabled = _ref.disabled,
|
27
27
|
env = _ref.env;
|
@@ -42,7 +42,8 @@ var VideoPublishVideoAccount = function VideoPublishVideoAccount(_ref) {
|
|
42
42
|
var _useState5 = useState({
|
43
43
|
isLoginValid: '',
|
44
44
|
keyword: '',
|
45
|
-
platform: ''
|
45
|
+
platform: '',
|
46
|
+
isBan: ''
|
46
47
|
}),
|
47
48
|
_useState6 = _slicedToArray(_useState5, 2),
|
48
49
|
query = _useState6[0],
|
@@ -99,12 +100,14 @@ var VideoPublishVideoAccount = function VideoPublishVideoAccount(_ref) {
|
|
99
100
|
children: [/*#__PURE__*/_jsx("strong", {
|
100
101
|
className: "nickname",
|
101
102
|
children: (record === null || record === void 0 ? void 0 : record.nickname) || '-'
|
102
|
-
}), (record === null || record === void 0 ? void 0 : record.nicknameRemark) && /*#__PURE__*/
|
103
|
-
children:
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
103
|
+
}), (record === null || record === void 0 ? void 0 : record.nicknameRemark) && /*#__PURE__*/_jsx("div", {
|
104
|
+
children: /*#__PURE__*/_jsx(Tooltip, {
|
105
|
+
title: "\u5907\u6CE8\uFF1A".concat(record === null || record === void 0 ? void 0 : record.nicknameRemark),
|
106
|
+
children: /*#__PURE__*/_jsx("div", {
|
107
|
+
className: "nicknameRemark",
|
108
|
+
children: record === null || record === void 0 ? void 0 : record.nicknameRemark
|
109
|
+
})
|
110
|
+
})
|
108
111
|
}), /*#__PURE__*/_jsx("div", {
|
109
112
|
className: "userId",
|
110
113
|
children: record === null || record === void 0 ? void 0 : record.accountId
|
@@ -183,6 +186,7 @@ var VideoPublishVideoAccount = function VideoPublishVideoAccount(_ref) {
|
|
183
186
|
return /*#__PURE__*/_jsx("div", {
|
184
187
|
className: "videoFromFolder",
|
185
188
|
children: /*#__PURE__*/_jsx(SavePath, {
|
189
|
+
size: "small",
|
186
190
|
path: videoFromFolder,
|
187
191
|
placeholder: "\u8BF7\u9009\u62E9\u672C\u5730\u89C6\u9891\u6587\u4EF6\u5939",
|
188
192
|
hiddenOpenDir: false
|
@@ -13,6 +13,16 @@
|
|
13
13
|
box-shadow: 0 0 3px #AAA;
|
14
14
|
}
|
15
15
|
}
|
16
|
+
.nicknameRemark{
|
17
|
+
max-width: 110px;
|
18
|
+
overflow: hidden;
|
19
|
+
text-overflow: ellipsis;
|
20
|
+
white-space: nowrap;
|
21
|
+
word-break: keep-all;
|
22
|
+
//line-height: 1em;
|
23
|
+
vertical-align: middle;
|
24
|
+
font-size: 12px;
|
25
|
+
}
|
16
26
|
.info{
|
17
27
|
margin: 0 0 0 10px;
|
18
28
|
.nickname{
|
@@ -50,6 +50,27 @@ var VideoPublishVideoAccountListQuery = function VideoPublishVideoAccountListQue
|
|
50
50
|
}, item.platform);
|
51
51
|
})]
|
52
52
|
})
|
53
|
+
}), /*#__PURE__*/_jsx(Form.Item, {
|
54
|
+
name: "isBan",
|
55
|
+
className: "isBan",
|
56
|
+
children: /*#__PURE__*/_jsxs(Select, {
|
57
|
+
children: [/*#__PURE__*/_jsxs(Select, {
|
58
|
+
value: "",
|
59
|
+
children: [/*#__PURE__*/_jsx(UnorderedListOutlined, {}), " \u5C01\u7981\u72B6\u6001"]
|
60
|
+
}), /*#__PURE__*/_jsx(Select, {
|
61
|
+
value: "0",
|
62
|
+
children: /*#__PURE__*/_jsx(Tag, {
|
63
|
+
color: "green",
|
64
|
+
children: "\u6B63\u5E38"
|
65
|
+
})
|
66
|
+
}), /*#__PURE__*/_jsx(Select, {
|
67
|
+
value: "1",
|
68
|
+
children: /*#__PURE__*/_jsx(Tag, {
|
69
|
+
color: "red",
|
70
|
+
children: "\u88AB\u7981"
|
71
|
+
})
|
72
|
+
})]
|
73
|
+
})
|
53
74
|
}), /*#__PURE__*/_jsx(Form.Item, {
|
54
75
|
name: "isLoginValid",
|
55
76
|
className: "isLoginValid",
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import "./index.less";
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
3
|
+
var AccountBan = function AccountBan(_ref) {
|
4
|
+
var isBan = _ref.isBan;
|
5
|
+
return isBan ? /*#__PURE__*/_jsx("span", {
|
6
|
+
className: "account-ban",
|
7
|
+
children: "\u88AB\u7981"
|
8
|
+
}) : null;
|
9
|
+
};
|
10
|
+
export default AccountBan;
|
package/dist/lib/Tool.d.ts
CHANGED
@@ -162,7 +162,7 @@ declare const Tool: {
|
|
162
162
|
getTitleByPath(path: string): string;
|
163
163
|
getDirByPath(path: string): string;
|
164
164
|
h5Pay(query: Pay.H5PayQuery): void;
|
165
|
-
notification(type: "
|
165
|
+
notification(type: "success" | "error" | "warning" | "info", message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
|
166
166
|
notificationSuccess(message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
|
167
167
|
notificationError(message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
|
168
168
|
notificationWarning(message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
|
@@ -2,12 +2,12 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
2
|
import store from "./store";
|
3
3
|
var AccountManageSettingConfigKey = 'account-manage-setting';
|
4
4
|
var AccountManageSettingConfig = function AccountManageSettingConfig(data) {
|
5
|
-
var _window$getBridge, _window, _window$getBridge$
|
5
|
+
var _window$getBridge, _window, _window$getBridge$get;
|
6
6
|
if (data) {
|
7
7
|
store.set(AccountManageSettingConfigKey, _objectSpread({}, data));
|
8
8
|
return data;
|
9
9
|
}
|
10
|
-
var chromePath = ((_window$getBridge = (_window = window).getBridge) === null || _window$getBridge === void 0 || (_window$getBridge
|
10
|
+
var chromePath = ((_window$getBridge = (_window = window).getBridge) === null || _window$getBridge === void 0 || (_window$getBridge = _window$getBridge.call(_window)) === null || _window$getBridge === void 0 || (_window$getBridge$get = _window$getBridge.getChromiumPath) === null || _window$getBridge$get === void 0 ? void 0 : _window$getBridge$get.call(_window$getBridge)) || '';
|
11
11
|
|
12
12
|
// console.log('AccountManageSettingConfig get:', chromePath );
|
13
13
|
|
package/dist/lib/fs.js
CHANGED
@@ -4,7 +4,8 @@ import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
4
4
|
import { VideoMineType } from "./allow-mine-type";
|
5
5
|
import getFileExt from "./getFileExt";
|
6
6
|
export var fs = function fs() {
|
7
|
-
|
7
|
+
var _window$getBridge;
|
8
|
+
return (_window$getBridge = window.getBridge()) === null || _window$getBridge === void 0 ? void 0 : _window$getBridge.fs;
|
8
9
|
};
|
9
10
|
var path = function path() {
|
10
11
|
return window.getBridge().path;
|
package/dist/lib/save-path.js
CHANGED
@@ -2,7 +2,7 @@ import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
|
|
2
2
|
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
3
3
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
4
4
|
import React, { useEffect, useRef, useState } from 'react';
|
5
|
-
import { Input, Button, Space } from 'antd';
|
5
|
+
import { Input, Button, Space, Tooltip } from 'antd';
|
6
6
|
import "./save-path.less";
|
7
7
|
import { FolderOpenOutlined, FolderOutlined } from '@ant-design/icons';
|
8
8
|
import Tool from "./Tool";
|
@@ -149,20 +149,24 @@ var SavePath = function SavePath(_ref) {
|
|
149
149
|
}), /*#__PURE__*/_jsx("div", {
|
150
150
|
className: "option",
|
151
151
|
children: /*#__PURE__*/_jsxs(Space, {
|
152
|
-
children: [/*#__PURE__*/_jsx(
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
152
|
+
children: [/*#__PURE__*/_jsx(Tooltip, {
|
153
|
+
title: path ? '更改' : '选择',
|
154
|
+
children: /*#__PURE__*/_jsx(Button, {
|
155
|
+
size: size,
|
156
|
+
onClick: onSelectDir,
|
157
|
+
loading: loadingSelectDir,
|
158
|
+
disabled: disabled,
|
159
|
+
children: /*#__PURE__*/_jsx(FolderOutlined, {})
|
160
|
+
})
|
161
|
+
}), !hiddenOpenDir && /*#__PURE__*/_jsx(Tooltip, {
|
162
|
+
title: "\u6253\u5F00",
|
163
|
+
children: /*#__PURE__*/_jsx(Button, {
|
164
|
+
size: size,
|
165
|
+
onClick: onOpenDir,
|
166
|
+
loading: loadingOpenDir,
|
167
|
+
disabled: !path || disabled,
|
168
|
+
children: /*#__PURE__*/_jsx(FolderOpenOutlined, {})
|
169
|
+
})
|
166
170
|
})]
|
167
171
|
})
|
168
172
|
})]
|