@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() {
@@ -24,6 +24,7 @@
24
24
  text-align: left;
25
25
  font-style: normal;
26
26
  flex: 1;
27
+ min-width: 0;
27
28
  display: flex;
28
29
  flex-direction: column;
29
30
  justify-content: space-around;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chlp-tech/rpa-ui",
3
- "version": "0.0.11-beta.5",
3
+ "version": "0.0.11-beta.6",
4
4
  "description": "rpa-ui",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",