x-star-design 0.0.57 → 0.0.59

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.
@@ -103,10 +103,11 @@ var CodeDetailModal = function CodeDetailModal(_ref) {
103
103
  title: t('Submission_Time'),
104
104
  dataIndex: 'submissionTime',
105
105
  render: function render(v) {
106
- return v ? /*#__PURE__*/React.createElement("span", null, formatDate(v * 1000, {
106
+ return v ? formatDate(v * 1000, {
107
107
  lang: lang,
108
- separator: '-'
109
- })) : '-';
108
+ separator: '-',
109
+ showSecond: true
110
+ }) : '-';
110
111
  }
111
112
  }];
112
113
  return /*#__PURE__*/React.createElement(ConfigProviderWrapper, null, /*#__PURE__*/React.createElement(Modal, _extends({
@@ -21,6 +21,10 @@ interface FeedbackProps {
21
21
  * @description 选中的颜色
22
22
  */
23
23
  activeColor: string;
24
+ /**
25
+ * @description icon的类名
26
+ */
27
+ iconClassName?: string;
24
28
  /**
25
29
  * @description 提交的回调
26
30
  */
@@ -14,6 +14,7 @@ var Feedback = function Feedback(_ref) {
14
14
  feedbackListGood = _ref.feedbackListGood,
15
15
  feedbackListBad = _ref.feedbackListBad,
16
16
  activeColor = _ref.activeColor,
17
+ iconClassName = _ref.iconClassName,
17
18
  onSubmit = _ref.onSubmit,
18
19
  feedbackKey = _ref.feedbackKey,
19
20
  feedbackTypeKey = _ref.feedbackTypeKey,
@@ -225,10 +226,13 @@ var Feedback = function Feedback(_ref) {
225
226
  className: "".concat(prefix, "-outsideFeedbackButton"),
226
227
  "data-testid": "feedback-button-like",
227
228
  icon: choiceType === 2 ? /*#__PURE__*/React.createElement(LikeFilled, {
229
+ className: iconClassName,
228
230
  style: {
229
231
  color: activeColor
230
232
  }
231
- }) : /*#__PURE__*/React.createElement(LikeOutlined, null),
233
+ }) : /*#__PURE__*/React.createElement(LikeOutlined, {
234
+ className: iconClassName
235
+ }),
232
236
  onClick: function onClick(e) {
233
237
  setChoiceType(2);
234
238
  form.setFieldsValue(_defineProperty({}, "".concat(feedbackKey), 2));
@@ -241,10 +245,13 @@ var Feedback = function Feedback(_ref) {
241
245
  "data-testid": "feedback-button-dislike",
242
246
  className: "".concat(prefix, "-outsideFeedbackButton"),
243
247
  icon: choiceType === 1 ? /*#__PURE__*/React.createElement(DislikeFilled, {
248
+ className: iconClassName,
244
249
  style: {
245
250
  color: activeColor
246
251
  }
247
- }) : /*#__PURE__*/React.createElement(DislikeOutlined, null),
252
+ }) : /*#__PURE__*/React.createElement(DislikeOutlined, {
253
+ className: iconClassName
254
+ }),
248
255
  onClick: function onClick(e) {
249
256
  setChoiceType(1);
250
257
  form.setFieldsValue(_defineProperty({}, "".concat(feedbackKey), 1));
@@ -400,20 +400,16 @@
400
400
  }
401
401
  @keyframes dot {
402
402
  /* 动态改变显示宽度,但始终让总占据空间不变,避免抖动 */
403
- 0% {
404
- width: 0;
405
- margin-right: 1.5em;
406
- }
407
403
  33% {
408
- width: 0.5em;
409
- margin-right: 1em;
404
+ width: 0.6em;
405
+ margin-right: 1.2em;
410
406
  }
411
407
  66% {
412
- width: 1em;
413
- margin-right: 0.5em;
408
+ width: 1.2em;
409
+ margin-right: 0.6em;
414
410
  }
415
411
  100% {
416
- width: 1.5em;
412
+ width: 1.8em;
417
413
  margin-right: 0;
418
414
  }
419
415
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "x-star-design",
3
- "version": "0.0.57",
3
+ "version": "0.0.59",
4
4
  "description": "A react component library developed by turingstar",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.js",
@@ -63,7 +63,7 @@
63
63
  "react-error-boundary": "^4.0.13",
64
64
  "react-sortable-hoc": "^2.0.0",
65
65
  "react-window": "^1.8.9",
66
- "x-star-utils": "^0.0.12"
66
+ "x-star-utils": "^0.0.13"
67
67
  },
68
68
  "devDependencies": {
69
69
  "@ant-design/icons": "^5.3.6",
@@ -83,9 +83,9 @@
83
83
  "@types/react-dom": "^18.0.0",
84
84
  "@types/react-window": "^1.8.5",
85
85
  "@umijs/lint": "^4.0.0",
86
- "antd": "^5.16.4",
86
+ "antd": "^5.16.5",
87
87
  "babel-plugin-inline-import-data-uri": "^1.0.1",
88
- "dayjs": "^1.11.10",
88
+ "dayjs": "^1.11.11",
89
89
  "dumi": "^2.2.0",
90
90
  "eslint": "^8.23.0",
91
91
  "father": "^4.1.0",