component-shipinlv 1.0.9 → 1.0.11
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/AuthClient/qr/index.css.js +1 -1
- package/dist/UI/DialogDrawerFooter.css.js +1 -1
- package/dist/UI/FileSize.css.d.ts +5 -0
- package/dist/UI/FileSize.css.js +6 -0
- package/dist/UI/FileSize.d.ts +10 -0
- package/dist/UI/FileSize.js +63 -0
- package/dist/UI/LoadError.css.js +1 -1
- package/dist/UI/Time.d.ts +8 -0
- package/dist/UI/Time.js +19 -0
- package/dist/UI/duration.css.d.ts +5 -0
- package/dist/UI/duration.css.js +6 -0
- package/dist/UI/duration.d.ts +6 -0
- package/dist/UI/duration.js +49 -0
- package/dist/UI/text-input.d.ts +13 -0
- package/dist/UI/text-input.js +108 -0
- package/dist/UI/text-input.less +19 -0
- package/dist/VideoPublish/creat-task/index.css.d.ts +5 -0
- package/dist/VideoPublish/creat-task/index.css.js +6 -0
- package/dist/VideoPublish/creat-task/index.d.ts +8 -0
- package/dist/VideoPublish/creat-task/index.js +454 -0
- package/dist/VideoPublish/creat-task/select-list.css.d.ts +5 -0
- package/dist/VideoPublish/creat-task/select-list.css.js +6 -0
- package/dist/VideoPublish/creat-task/select-list.d.ts +8 -0
- package/dist/VideoPublish/creat-task/select-list.js +258 -0
- package/dist/VideoPublish/creat-task/task-list.css.d.ts +5 -0
- package/dist/VideoPublish/creat-task/task-list.css.js +6 -0
- package/dist/VideoPublish/creat-task/task-list.d.ts +9 -0
- package/dist/VideoPublish/creat-task/task-list.js +300 -0
- package/dist/VideoPublish/index.css.d.ts +5 -0
- package/dist/VideoPublish/index.css.js +6 -0
- package/dist/VideoPublish/index.d.ts +9 -0
- package/dist/VideoPublish/index.js +106 -0
- package/dist/VideoPublish/index.less +38 -0
- package/dist/VideoPublish/task-list/index.d.ts +7 -0
- package/dist/VideoPublish/task-list/index.js +120 -0
- package/dist/VideoPublish/task-list/index.less +5 -0
- package/dist/VideoPublish/video-account/index.d.ts +7 -0
- package/dist/VideoPublish/video-account/index.js +109 -0
- package/dist/VideoPublish/video-account/index.less +5 -0
- package/dist/asset/image/platform/bilibili.png +0 -0
- package/dist/asset/image/platform/douyin.png +0 -0
- package/dist/asset/image/platform/douyu.png +0 -0
- package/dist/asset/image/platform/huya.png +0 -0
- package/dist/asset/image/platform/kuaishou.png +0 -0
- package/dist/asset/image/platform/youtube.png +0 -0
- package/dist/component/media-kind.d.ts +10 -0
- package/dist/component/media-kind.js +24 -0
- package/dist/component/media-show.d.ts +13 -0
- package/dist/component/media-show.js +84 -0
- package/dist/component/media-show.less +53 -0
- package/dist/component/video-platform/logo.d.ts +22 -0
- package/dist/component/video-platform/logo.js +72 -0
- package/dist/component/video-platform/logo.less +42 -0
- package/dist/component/videoKindTag/index.d.ts +13 -0
- package/dist/component/videoKindTag/index.js +44 -0
- package/dist/global.less +4 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +5 -0
- package/dist/join-client/index.css.js +1 -1
- package/dist/lib/Tool.d.ts +4 -1
- package/dist/lib/Tool.js +39 -0
- package/dist/lib/component/getImageUrl.d.ts +2 -0
- package/dist/lib/component/getImageUrl.js +8 -0
- package/dist/lib/component/getSoundUrl.d.ts +2 -0
- package/dist/lib/component/getSoundUrl.js +9 -0
- package/dist/lib/component/getVideoUrl.d.ts +2 -0
- package/dist/lib/component/getVideoUrl.js +9 -0
- package/dist/lib/isInClient.js +2 -1
- package/dist/lib/request.js +1 -1
- package/dist/lib/updateUserInfo.js +1 -0
- package/dist/renewal-vip/index.js +2 -1
- package/dist/service/api/VideoPublishController.d.ts +11 -0
- package/dist/service/api/VideoPublishController.js +85 -0
- package/dist/service/api/VideoPublishTaskController.d.ts +8 -0
- package/dist/service/api/VideoPublishTaskController.js +29 -0
- package/dist/types/VideoPublish.d.ts +112 -0
- package/dist/types/VideoPublish.js +0 -0
- package/dist/typings.d.ts +3 -0
- package/package.json +1 -1
@@ -2,7 +2,7 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLit
|
|
2
2
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
3
3
|
import styled from 'styled-components';
|
4
4
|
export default {
|
5
|
-
AuthQrLogin: styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n
|
5
|
+
AuthQrLogin: styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .ant-tabs-tab-btn{\n .anticon{\n margin-right: 6px;\n }\n }\n .weQrUrl{\n position: absolute;\n left: 50%;\n transform: translateX(-50%);\n }\n .qr{\n position: relative;\n display: block;\n margin: 12px auto 0;\n width: 230px;\n height: 230px;\n background-repeat: no-repeat;\n background-size: cover;\n background-position: center;\n &.qrAlipay{\n border: 3px solid #1677ff;\n }\n .reTry{\n position: absolute;\n z-index: 100;\n left: 0;\n top: 0;\n width: 100%;\n font-size: 80px;\n background-color: rgba( 255, 255, 255, 0.95 );\n text-align: center;\n line-height: 210px;\n height: 100%;\n a{\n display: block;\n }\n }\n }\n .alt{\n padding: 10px 0 0;\n color: #999;\n text-align: center;\n }\n .altWeb{\n padding: 16px 0 0;\n max-width: 300px;\n margin: 0 auto;\n .titles{\n text-align: center;\n font-weight: bold;\n }\n ul{\n margin: 0 10px;\n }\n\n }\n .percent{\n width: 100%;\n position: absolute;\n overflow: hidden;\n left: 0;\n bottom: 0;\n .warp{\n height: 4px;\n background-color: #1677ff;\n transition: all 1.6s ease-in-out;\n -webkit-transition: all 1.6s ease-in-out;\n }\n }\n "]))),
|
6
6
|
LoginForm: styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n margin: 0 auto;\n padding: 0 0 5px 0 ;\n background-color: rgba(255, 255, 255, 0.75 );\n border-radius: 6px;\n "]))),
|
7
7
|
WebTitle: styled.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n font-weight: normal;\n font-size: 22px;\n text-align: center;\n padding: 0;\n margin: 6px 0 0 0;\n line-height: 1em;\n span{\n display: inline-block;\n padding-left: 5px;\n font-weight: lighter;\n font-size: 16px;\n }\n "]))),
|
8
8
|
WeQrUrlBox: styled.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n min-height: 240px !important;\n "])))
|
@@ -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
|
-
DialogDrawerFooter: styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .warp{\n position: absolute;\n left: 0;\n bottom: 0;\n z-index: 20;\n width: 100%;\n height: 56px;\n background-color: #FFF;\n line-height: 56px;\n text-align: right;\n }\n .warpChildren{\n padding: 0 20px 0 0;\n }\n .pos{\n height: 56px;\n }\n "])))
|
5
|
+
DialogDrawerFooter: styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .warp{\n position: absolute;\n left: 0;\n bottom: 0;\n z-index: 20;\n width: 100%;\n height: 56px;\n background-color: #FFF;\n line-height: 56px;\n text-align: right;\n }\n .warpChildren{\n padding: 0 20px 0 0;\n box-shadow: 0 0 3px #CCC;\n }\n .pos{\n height: 56px;\n }\n "])))
|
6
6
|
};
|
@@ -0,0 +1,5 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
declare const _default: {
|
3
|
+
fileSize: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, 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
|
+
fileSize: styled.span(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .file-size-unit{\n padding-left: 3px;\n }\n .gb{\n font-size: small;\n color: red;\n }\n .mb{\n font-size: small;\n color: blue;\n }\n .kb{\n font-size: small;\n color: green;\n }\n .b{\n font-size: small;\n color: #999;\n }\n "])))
|
6
|
+
};
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
interface Props {
|
3
|
+
fileSize?: number;
|
4
|
+
precision?: number;
|
5
|
+
pre?: React.ReactNode;
|
6
|
+
className?: string;
|
7
|
+
}
|
8
|
+
export declare const FileSizeFormat: (fileSize: number, precision: number) => import("react/jsx-runtime").JSX.Element;
|
9
|
+
declare const FileSize: React.FC<Props>;
|
10
|
+
export default FileSize;
|
@@ -0,0 +1,63 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { Tooltip } from "antd";
|
3
|
+
import styles from "./FileSize.css";
|
4
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
5
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
6
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
7
|
+
export var FileSizeFormat = function FileSizeFormat(fileSize, precision) {
|
8
|
+
fileSize = fileSize || 0;
|
9
|
+
var data = /*#__PURE__*/_jsx(_Fragment, {});
|
10
|
+
if (fileSize >= 1024 * 1024 * 1024) {
|
11
|
+
data = /*#__PURE__*/_jsxs(_Fragment, {
|
12
|
+
children: [getValue(fileSize / (1024 * 1024 * 1024), 'G', precision), /*#__PURE__*/_jsx("span", {
|
13
|
+
className: "gb file-size-unit",
|
14
|
+
children: "GB"
|
15
|
+
})]
|
16
|
+
});
|
17
|
+
} else if (fileSize >= 1024 * 1024) {
|
18
|
+
data = /*#__PURE__*/_jsxs(_Fragment, {
|
19
|
+
children: [getValue(fileSize / (1024 * 1024), "M", precision), /*#__PURE__*/_jsx("span", {
|
20
|
+
className: "mb file-size-unit",
|
21
|
+
children: "MB"
|
22
|
+
})]
|
23
|
+
});
|
24
|
+
} else if (fileSize >= 1024) {
|
25
|
+
data = /*#__PURE__*/_jsxs(_Fragment, {
|
26
|
+
children: [getValue(fileSize / 1024, 'K', precision), /*#__PURE__*/_jsx("span", {
|
27
|
+
className: "kb file-size-unit",
|
28
|
+
children: "KB"
|
29
|
+
})]
|
30
|
+
});
|
31
|
+
} else {
|
32
|
+
data = /*#__PURE__*/_jsxs(_Fragment, {
|
33
|
+
children: [fileSize, " ", /*#__PURE__*/_jsx("span", {
|
34
|
+
className: "b",
|
35
|
+
children: "B"
|
36
|
+
})]
|
37
|
+
});
|
38
|
+
}
|
39
|
+
return data;
|
40
|
+
};
|
41
|
+
var getValue = function getValue() {
|
42
|
+
var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
|
43
|
+
var level = arguments.length > 1 ? arguments[1] : undefined;
|
44
|
+
var precision = arguments.length > 2 ? arguments[2] : undefined;
|
45
|
+
return parseFloat(value.toFixed(precision));
|
46
|
+
};
|
47
|
+
var FileSize = function FileSize(_ref) {
|
48
|
+
var _ref$fileSize = _ref.fileSize,
|
49
|
+
fileSize = _ref$fileSize === void 0 ? 0 : _ref$fileSize,
|
50
|
+
_ref$precision = _ref.precision,
|
51
|
+
precision = _ref$precision === void 0 ? 2 : _ref$precision,
|
52
|
+
_ref$pre = _ref.pre,
|
53
|
+
pre = _ref$pre === void 0 ? '' : _ref$pre,
|
54
|
+
_ref$className = _ref.className,
|
55
|
+
className = _ref$className === void 0 ? '' : _ref$className;
|
56
|
+
return /*#__PURE__*/_jsx(Tooltip, {
|
57
|
+
title: fileSize,
|
58
|
+
children: /*#__PURE__*/_jsxs(styles.fileSize, {
|
59
|
+
children: [pre, FileSizeFormat(fileSize, precision)]
|
60
|
+
})
|
61
|
+
});
|
62
|
+
};
|
63
|
+
export default FileSize;
|
package/dist/UI/LoadError.css.js
CHANGED
@@ -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
|
-
LoadError: styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n
|
5
|
+
LoadError: styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .ant-result {\n padding: 20px 2px;\n }\n .ant-result-image {\n width: 200px;\n height: 260px;\n svg {\n transform: scale(0.8);\n transform-origin: 0 50%;\n }\n }\n .ant-result-title {\n color: #666;\n font-weight: 400;\n font-size: 18px;\n }\n "])))
|
6
6
|
};
|
package/dist/UI/Time.js
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import Tool from "../lib/Tool";
|
3
|
+
import { Tooltip } from 'antd';
|
4
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
5
|
+
var Time = function Time(_ref) {
|
6
|
+
var _ref$time = _ref.time,
|
7
|
+
time = _ref$time === void 0 ? '' : _ref$time,
|
8
|
+
_ref$serverTime = _ref.serverTime,
|
9
|
+
serverTime = _ref$serverTime === void 0 ? Date.now() : _ref$serverTime,
|
10
|
+
_ref$titlePre = _ref.titlePre,
|
11
|
+
titlePre = _ref$titlePre === void 0 ? '' : _ref$titlePre;
|
12
|
+
return /*#__PURE__*/_jsx(Tooltip, {
|
13
|
+
title: "".concat(titlePre).concat(Tool.formatTime(time, 'YYYY-MM-DD HH:mm')),
|
14
|
+
children: /*#__PURE__*/_jsx("span", {
|
15
|
+
children: Tool.getFriendlyTime(time, serverTime)
|
16
|
+
})
|
17
|
+
});
|
18
|
+
};
|
19
|
+
export default Time;
|
@@ -0,0 +1,5 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
declare const _default: {
|
3
|
+
duration: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, 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
|
+
duration: styled.span(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .duration-0-0-0{\n color: #AAA;\n }\n .duration-0-0{\n .hour{\n color: #AAA;\n }\n .minute{\n color: #AAA;\n }\n }\n\n .duration-0{\n .hour{\n color: #AAA;\n }\n }\n "])))
|
6
|
+
};
|
@@ -0,0 +1,49 @@
|
|
1
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
2
|
+
import styles from "./duration.css";
|
3
|
+
import React, { useEffect, useState } from "react";
|
4
|
+
import Tool from "../lib/Tool";
|
5
|
+
import { Tooltip } from "antd";
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
7
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
8
|
+
var Duration = function Duration(_ref) {
|
9
|
+
var _ref$duration = _ref.duration,
|
10
|
+
duration = _ref$duration === void 0 ? 0 : _ref$duration;
|
11
|
+
var _useState = useState(''),
|
12
|
+
_useState2 = _slicedToArray(_useState, 2),
|
13
|
+
durationShow = _useState2[0],
|
14
|
+
setDurationShow = _useState2[1];
|
15
|
+
useEffect(function () {
|
16
|
+
var show = '';
|
17
|
+
if (duration <= 0) {
|
18
|
+
show = /*#__PURE__*/_jsx("span", {
|
19
|
+
className: "duration-0-0-0",
|
20
|
+
children: "00:00:00"
|
21
|
+
});
|
22
|
+
} else {
|
23
|
+
var hour = Math.floor(duration / 3600);
|
24
|
+
var minute = Math.floor((duration - 3600 * hour) / 60);
|
25
|
+
var second = Math.floor(duration - 3600 * hour - minute * 60);
|
26
|
+
var hourShow = Tool.string.addPre('0', "".concat(hour), 2);
|
27
|
+
var minuteShow = Tool.string.addPre('0', "".concat(minute), 2);
|
28
|
+
var secondShow = Tool.string.addPre('0', "".concat(second), 2);
|
29
|
+
show = /*#__PURE__*/_jsx(Tooltip, {
|
30
|
+
title: "".concat(hour > 0 ? hour + '小时' : '').concat(minute > 0 ? minute + '分钟' : '').concat(second > 0 ? second + '秒' : ''),
|
31
|
+
children: /*#__PURE__*/_jsxs("span", {
|
32
|
+
className: "".concat("duration-".concat(hour), " ", "duration-".concat(hour, "-").concat(minute)),
|
33
|
+
children: [/*#__PURE__*/_jsxs("span", {
|
34
|
+
className: "hour",
|
35
|
+
children: [hourShow, ":"]
|
36
|
+
}), /*#__PURE__*/_jsxs("span", {
|
37
|
+
className: "minute",
|
38
|
+
children: [minuteShow, ":"]
|
39
|
+
}), secondShow]
|
40
|
+
})
|
41
|
+
});
|
42
|
+
}
|
43
|
+
setDurationShow(show);
|
44
|
+
}, [duration]);
|
45
|
+
return /*#__PURE__*/_jsx(styles.duration, {
|
46
|
+
children: durationShow
|
47
|
+
});
|
48
|
+
};
|
49
|
+
export default Duration;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import './text-input.less';
|
3
|
+
interface Props {
|
4
|
+
disabled?: boolean;
|
5
|
+
type?: 'text' | 'textarea';
|
6
|
+
className?: string;
|
7
|
+
label: React.ReactNode;
|
8
|
+
value: string;
|
9
|
+
maxLength?: number;
|
10
|
+
onFinish: (text: string) => void;
|
11
|
+
}
|
12
|
+
declare const TextInput: React.FC<Props>;
|
13
|
+
export default TextInput;
|
@@ -0,0 +1,108 @@
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
2
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
3
|
+
import React, { useEffect, useState } from 'react';
|
4
|
+
import { Button, Input, Space } from 'antd';
|
5
|
+
import { EditOutlined, CheckOutlined } from '@ant-design/icons';
|
6
|
+
import "./text-input.less";
|
7
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
8
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
9
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
10
|
+
var TextInput = function TextInput(_ref) {
|
11
|
+
var _ref$type = _ref.type,
|
12
|
+
type = _ref$type === void 0 ? 'text' : _ref$type,
|
13
|
+
disabled = _ref.disabled,
|
14
|
+
className = _ref.className,
|
15
|
+
_ref$label = _ref.label,
|
16
|
+
label = _ref$label === void 0 ? '' : _ref$label,
|
17
|
+
_ref$value = _ref.value,
|
18
|
+
value = _ref$value === void 0 ? '' : _ref$value,
|
19
|
+
_ref$maxLength = _ref.maxLength,
|
20
|
+
maxLength = _ref$maxLength === void 0 ? 1000 : _ref$maxLength,
|
21
|
+
_ref$onFinish = _ref.onFinish,
|
22
|
+
onFinish = _ref$onFinish === void 0 ? function () {} : _ref$onFinish;
|
23
|
+
var _useState = useState(false),
|
24
|
+
_useState2 = _slicedToArray(_useState, 2),
|
25
|
+
isEdit = _useState2[0],
|
26
|
+
setIsEdit = _useState2[1];
|
27
|
+
var _useState3 = useState(value),
|
28
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
29
|
+
inputText = _useState4[0],
|
30
|
+
setInputText = _useState4[1];
|
31
|
+
var onEdit = function onEdit(isEdit) {
|
32
|
+
if (disabled) {
|
33
|
+
return;
|
34
|
+
}
|
35
|
+
setIsEdit(isEdit);
|
36
|
+
};
|
37
|
+
var onInput = function onInput(value) {
|
38
|
+
setInputText(value);
|
39
|
+
};
|
40
|
+
var onPost = function onPost() {
|
41
|
+
onEdit(false);
|
42
|
+
if (inputText != value) {
|
43
|
+
onFinish(inputText);
|
44
|
+
}
|
45
|
+
};
|
46
|
+
var textAreaProp = {
|
47
|
+
addonAfter: /*#__PURE__*/_jsx("a", {
|
48
|
+
onClick: onPost,
|
49
|
+
children: /*#__PURE__*/_jsx(CheckOutlined, {})
|
50
|
+
})
|
51
|
+
};
|
52
|
+
useEffect(function () {
|
53
|
+
setInputText(value);
|
54
|
+
}, [value]);
|
55
|
+
return /*#__PURE__*/_jsx(_Fragment, {
|
56
|
+
children: isEdit ? /*#__PURE__*/_jsx("div", {
|
57
|
+
className: className,
|
58
|
+
children: type === 'textarea' ? /*#__PURE__*/_jsxs(Space.Compact, {
|
59
|
+
children: [/*#__PURE__*/_jsx(Input.TextArea, _objectSpread(_objectSpread({
|
60
|
+
className: "input",
|
61
|
+
disabled: disabled,
|
62
|
+
maxLength: maxLength,
|
63
|
+
defaultValue: inputText,
|
64
|
+
onChange: function onChange(e) {
|
65
|
+
return onInput(e.target.value);
|
66
|
+
}
|
67
|
+
}, textAreaProp), {}, {
|
68
|
+
autoFocus: true
|
69
|
+
})), /*#__PURE__*/_jsx(Button, {
|
70
|
+
size: "small",
|
71
|
+
children: /*#__PURE__*/_jsx("a", {
|
72
|
+
onClick: onPost,
|
73
|
+
children: /*#__PURE__*/_jsx(CheckOutlined, {})
|
74
|
+
})
|
75
|
+
})]
|
76
|
+
}) : /*#__PURE__*/_jsx(Input, {
|
77
|
+
onPressEnter: function onPressEnter(e) {
|
78
|
+
onPost();
|
79
|
+
},
|
80
|
+
className: "input",
|
81
|
+
disabled: disabled,
|
82
|
+
maxLength: maxLength,
|
83
|
+
value: inputText,
|
84
|
+
onChange: function onChange(e) {
|
85
|
+
return onInput(e.target.value);
|
86
|
+
},
|
87
|
+
addonAfter: /*#__PURE__*/_jsx("a", {
|
88
|
+
onClick: onPost,
|
89
|
+
children: /*#__PURE__*/_jsx(CheckOutlined, {})
|
90
|
+
}),
|
91
|
+
autoFocus: true
|
92
|
+
})
|
93
|
+
}) : /*#__PURE__*/_jsxs("div", {
|
94
|
+
className: "".concat(className, " showBox ").concat(disabled ? 'disabled' : ''),
|
95
|
+
children: [/*#__PURE__*/_jsx("label", {
|
96
|
+
className: "content",
|
97
|
+
children: label
|
98
|
+
}), !disabled && /*#__PURE__*/_jsx("a", {
|
99
|
+
className: "editIcon ".concat(label ? '' : "labelEmpty", " edit-icon"),
|
100
|
+
onClick: function onClick() {
|
101
|
+
return onEdit(true);
|
102
|
+
},
|
103
|
+
children: /*#__PURE__*/_jsx(EditOutlined, {})
|
104
|
+
})]
|
105
|
+
})
|
106
|
+
});
|
107
|
+
};
|
108
|
+
export default TextInput;
|
@@ -0,0 +1,19 @@
|
|
1
|
+
.showBox{
|
2
|
+
display: flex;
|
3
|
+
flex-direction: row;
|
4
|
+
}
|
5
|
+
|
6
|
+
.editIcon{
|
7
|
+
display: inline-block;
|
8
|
+
padding: 0 0 0 5px;
|
9
|
+
}
|
10
|
+
|
11
|
+
.labelEmpty{
|
12
|
+
opacity: 0.6;
|
13
|
+
-webkit-filter: grayscale(100%);
|
14
|
+
filter: grayscale(100%);
|
15
|
+
}
|
16
|
+
|
17
|
+
.input{
|
18
|
+
width: 96%;
|
19
|
+
}
|
@@ -0,0 +1,5 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
declare const _default: {
|
3
|
+
videoPublishCreateTask: 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
|
+
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 "])))
|
6
|
+
};
|