@chlp-tech/rpa-ui 0.0.2 → 0.0.4

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.
@@ -18,6 +18,7 @@ interface DrawerTaskProps {
18
18
  icon2?: React.ReactNode;
19
19
  }[];
20
20
  };
21
+ hideLeftTab?: boolean;
21
22
  width?: number;
22
23
  onClose?: () => void;
23
24
  onOpen?: () => void;
@@ -103,7 +103,7 @@ var DrawerTask = /*#__PURE__*/forwardRef(function (props, ref) {
103
103
  className: styles["drawer_wrap"]
104
104
  }, /*#__PURE__*/React.createElement("div", {
105
105
  className: styles["drawer_wrap__left"]
106
- }, props.back && renderBack(), (_props$menu4 = props.menu) === null || _props$menu4 === void 0 || (_props$menu4 = _props$menu4.items) === null || _props$menu4 === void 0 ? void 0 : _props$menu4.map(function (item) {
106
+ }, props.back && renderBack(), !props.hideLeftTab && ((_props$menu4 = props.menu) === null || _props$menu4 === void 0 || (_props$menu4 = _props$menu4.items) === null || _props$menu4 === void 0 ? void 0 : _props$menu4.map(function (item) {
107
107
  return /*#__PURE__*/React.createElement(ActivateTab, {
108
108
  key: item.key,
109
109
  id: item.key,
@@ -115,7 +115,7 @@ var DrawerTask = /*#__PURE__*/forwardRef(function (props, ref) {
115
115
  return setActiveItem(key);
116
116
  }
117
117
  });
118
- })), /*#__PURE__*/React.createElement("div", {
118
+ }))), /*#__PURE__*/React.createElement("div", {
119
119
  className: styles["drawer_wrap__right"]
120
120
  }, /*#__PURE__*/React.createElement("div", {
121
121
  className: styles["drawer_wrap__right__title"]
@@ -9,6 +9,8 @@
9
9
  }
10
10
 
11
11
  &__right {
12
+ display: flex;
13
+ flex-direction: column;
12
14
  flex: 1;
13
15
  min-width: 0;
14
16
  transition: width 0.3s ease-in-out;
@@ -28,6 +30,9 @@
28
30
  }
29
31
 
30
32
  &__body {
33
+ flex: 1;
34
+ min-height: 0;
35
+ overflow: auto;
31
36
  padding: 24px;
32
37
  transition: padding 0.3s ease-in-out;
33
38
  }
@@ -16,6 +16,7 @@ interface Props {
16
16
  };
17
17
  createTime: string;
18
18
  isNew?: boolean;
19
+ isAd?: boolean;
19
20
  id: string | number;
20
21
  onDelete?: (id: string | number) => void;
21
22
  mediaInfo: {
@@ -172,7 +172,9 @@ var ReleaseVideoCard = function ReleaseVideoCard(props) {
172
172
  className: styles['card__header__status']
173
173
  }, /*#__PURE__*/React.createElement("div", {
174
174
  className: styles['card__header__status__flex']
175
- }, /*#__PURE__*/React.createElement(StatusTag, {
175
+ }, props.isAd && /*#__PURE__*/React.createElement("div", {
176
+ className: styles.tagAd
177
+ }, "\u5E7F\u544A"), /*#__PURE__*/React.createElement(StatusTag, {
176
178
  status: props.status
177
179
  }), /*#__PURE__*/React.createElement("div", {
178
180
  className: styles['card__header__status__desc']
@@ -214,6 +214,18 @@
214
214
  }
215
215
  }
216
216
 
217
+ .tagAd {
218
+ background: #FBDEC1;
219
+ border-radius: 4px;
220
+ font-size: 14px;
221
+ color: #8B3D15;
222
+ padding: 2px 8px;
223
+ display: flex;
224
+ flex-direction: row;
225
+ align-items: center;
226
+ justify-content: center;
227
+ }
228
+
217
229
  .circle_block {
218
230
  padding: 2px 8px;
219
231
  background: rgba(0,0,0,0.5);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chlp-tech/rpa-ui",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "description": "rpa-ui",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",