@chlp-tech/rpa-ui 0.0.6 → 0.0.8

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.
@@ -5,6 +5,7 @@ interface DrawerTaskProps {
5
5
  title: string;
6
6
  open?: boolean;
7
7
  defaultTab?: string;
8
+ hideDefaultOpen?: boolean;
8
9
  back?: boolean | React.ReactNode;
9
10
  classNames?: DrawerClassNames;
10
11
  rootClassNames?: string;
@@ -42,6 +42,7 @@ var DrawerTask = /*#__PURE__*/forwardRef(function (props, ref) {
42
42
  }
43
43
  }, [props.open]);
44
44
  useEffect(function () {
45
+ console.log('----------', props.defaultTab);
45
46
  if (props.defaultTab) {
46
47
  setActiveItem(props.defaultTab);
47
48
  }
@@ -88,7 +89,7 @@ var DrawerTask = /*#__PURE__*/forwardRef(function (props, ref) {
88
89
  preview: false
89
90
  }));
90
91
  };
91
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
92
+ return /*#__PURE__*/React.createElement(React.Fragment, null, props.children && /*#__PURE__*/React.createElement("div", {
92
93
  onClick: handleOpen
93
94
  }, props.children), /*#__PURE__*/React.createElement(Drawer, {
94
95
  open: internalOpen,
@@ -103,7 +103,7 @@ var MediaCardList = function MediaCardList(props) {
103
103
  src: mediaIcon[item.media],
104
104
  preview: false,
105
105
  width: 24
106
- }), /*#__PURE__*/React.createElement("div", {
106
+ }), item.count && /*#__PURE__*/React.createElement("div", {
107
107
  className: styles["media-round"]
108
108
  }, item.count)));
109
109
  }));
@@ -149,6 +149,7 @@ var ReleaseVideoCard = function ReleaseVideoCard(props) {
149
149
  }, /*#__PURE__*/React.createElement(TextEllipsis, {
150
150
  lines: 1
151
151
  }, "\u6807\u9898\uFF1A", props.title || '- -')), /*#__PURE__*/React.createElement("div", {
152
+ className: styles['card_content'],
152
153
  style: {
153
154
  height: 55
154
155
  }
@@ -190,7 +191,7 @@ var ReleaseVideoCard = function ReleaseVideoCard(props) {
190
191
  })), /*#__PURE__*/React.createElement("div", {
191
192
  className: styles['right-wrap']
192
193
  }, /*#__PURE__*/React.createElement(Space, {
193
- size: 8,
194
+ size: 16,
194
195
  style: {
195
196
  marginRight: 12,
196
197
  cursor: 'pointer'
@@ -39,7 +39,6 @@
39
39
  }
40
40
  &__block {
41
41
  display: flex;
42
- justify-content: space-between;
43
42
  align-items: center;
44
43
  font-weight: 400;
45
44
  font-size: 12px;
@@ -133,6 +132,7 @@
133
132
  .center {
134
133
  display: flex;
135
134
  align-items: center;
135
+ flex: 1;
136
136
  }
137
137
 
138
138
  .desc_wrap {
@@ -234,3 +234,9 @@
234
234
  text-align: center;
235
235
  color: #FFFFFF;
236
236
  }
237
+
238
+ .card_content {
239
+ font-size: 14px;
240
+ color: #142A51;
241
+ font-weight: 400;
242
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chlp-tech/rpa-ui",
3
- "version": "0.0.6",
3
+ "version": "0.0.8",
4
4
  "description": "rpa-ui",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",