@chlp-tech/rpa-ui 0.0.11-beta.5 → 0.0.11-beta.6
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.
|
@@ -17,8 +17,10 @@ interface Props {
|
|
|
17
17
|
createTime: string;
|
|
18
18
|
isNew?: boolean;
|
|
19
19
|
isAd?: boolean;
|
|
20
|
+
isPaused?: boolean;
|
|
20
21
|
id: string | number;
|
|
21
22
|
onDelete?: (id: string | number) => void;
|
|
23
|
+
onPauseOrStart?: (id: string | number) => void;
|
|
22
24
|
mediaInfo: {
|
|
23
25
|
url: string[];
|
|
24
26
|
type: string;
|
|
@@ -198,6 +198,13 @@ var ReleaseVideoCard = function ReleaseVideoCard(props) {
|
|
|
198
198
|
trigger: ['click'],
|
|
199
199
|
menu: {
|
|
200
200
|
items: [{
|
|
201
|
+
label: /*#__PURE__*/React.createElement("div", null, props.isPaused ? '启用' : '暂停'),
|
|
202
|
+
key: 'pause',
|
|
203
|
+
onClick: function onClick() {
|
|
204
|
+
var _props$onPauseOrStart;
|
|
205
|
+
return props === null || props === void 0 || (_props$onPauseOrStart = props.onPauseOrStart) === null || _props$onPauseOrStart === void 0 ? void 0 : _props$onPauseOrStart.call(props, props.id);
|
|
206
|
+
}
|
|
207
|
+
}, {
|
|
201
208
|
label: '删除',
|
|
202
209
|
key: 'delete',
|
|
203
210
|
onClick: function onClick() {
|