component-shipinlv 1.0.12 → 1.0.13
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
|
};
|
@@ -77,13 +77,26 @@ var VideoPublishCreateTask = function VideoPublishCreateTask(_ref) {
|
|
77
77
|
children: []
|
78
78
|
};
|
79
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;
|
80
85
|
dict[items.groupId].children.push({
|
81
86
|
title: /*#__PURE__*/_jsxs(_Fragment, {
|
82
87
|
children: [/*#__PURE__*/_jsx(VideoPlatformLogo, {
|
83
88
|
platform: items.platform,
|
84
89
|
size: 14
|
85
|
-
}), " ", 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
|
+
})]
|
86
98
|
}),
|
99
|
+
disabled: !items.isLoginValid,
|
87
100
|
value: "account-".concat(items.id),
|
88
101
|
key: "account-".concat(items.id)
|
89
102
|
});
|
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;
|