x-star-design 0.0.80 → 0.0.81

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.
@@ -0,0 +1,24 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="12px" height="12px" viewBox="0 0 12 12" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>close</title>
4
+ <g id="融合题页面" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
5
+ <g id="融合题-页面布局-方案一" transform="translate(-186.000000, -772.000000)" fill="#808080" fill-rule="nonzero"> <!-- 修改这里的颜色 -->
6
+ <g id="左侧" transform="translate(50.000000, 88.000000)">
7
+ <g id="图例" transform="translate(0.000000, 522.000000)">
8
+ <g id="状态区分" transform="translate(24.000000, 128.000000)">
9
+ <g transform="translate(10.000000, 30.000000)" id="客观题备份">
10
+ <g transform="translate(84.000000, 0.000000)">
11
+ <g id="1备份-11" transform="translate(14.000000, 0.000000)">
12
+ <g id="close" transform="translate(4.000000, 4.000000)">
13
+ <rect id="矩形" opacity="0" x="0" y="0" width="12" height="12"></rect>
14
+ <path d="M6.60703125,6 L9.68320312,2.33320313 C9.73476562,2.27226563 9.69140625,2.1796875 9.61171875,2.1796875 L8.6765625,2.1796875 C8.62148437,2.1796875 8.56875,2.20429688 8.53242187,2.24648438 L5.9953125,5.27109375 L3.45820312,2.24648437 C3.42304687,2.20429687 3.3703125,2.1796875 3.3140625,2.1796875 L2.37890625,2.1796875 C2.29921875,2.1796875 2.25585938,2.27226563 2.30742187,2.33320312 L5.38359375,6 L2.30742187,9.66679687 C2.25585938,9.72773438 2.29921875,9.8203125 2.37890625,9.8203125 L3.3140625,9.8203125 C3.36914062,9.8203125 3.421875,9.79570312 3.45820312,9.75351562 L5.9953125,6.72890625 L8.53242187,9.75351562 C8.56757812,9.79570312 8.6203125,9.8203125 8.6765625,9.8203125 L9.61171875,9.8203125 C9.69140625,9.8203125 9.73476562,9.72773438 9.68320312,9.66679687 L6.60703125,6 Z" id="路径"></path>
15
+ </g>
16
+ </g>
17
+ </g>
18
+ </g>
19
+ </g>
20
+ </g>
21
+ </g>
22
+ </g>
23
+ </g>
24
+ </svg>
@@ -9,6 +9,7 @@ import correctSVG from "../assets/status-tag/correct.svg";
9
9
  import diamondSVG from "../assets/status-tag/diamond.svg";
10
10
  import filledSVG from "../assets/status-tag/filled.svg";
11
11
  import halfCorrectSVG from "../assets/status-tag/half-correct.svg";
12
+ import wrongOptionalSVG from "../assets/status-tag/wrong-optional.svg";
12
13
  import wrongSVG from "../assets/status-tag/wrong.svg";
13
14
  import { prefix } from "../utils/global";
14
15
  var StatusTag = function StatusTag(_ref) {
@@ -60,11 +61,12 @@ var StatusTag = function StatusTag(_ref) {
60
61
  alt: ""
61
62
  })
62
63
  }], ['wrong', {
63
- color: '#FF4D4F',
64
- borderColor: '#FFCCC7',
65
- backgroundColor: '#FFF2F0',
64
+ color: required ? '#FF4D4F' : '#808080',
65
+ //如果是选做题错误的时候显示灰色
66
+ borderColor: required ? '#FFCCC7' : '',
67
+ backgroundColor: required ? '#FFF2F0' : '',
66
68
  icon: /*#__PURE__*/React.createElement("img", {
67
- src: wrongSVG,
69
+ src: required ? wrongSVG : wrongOptionalSVG,
68
70
  alt: ""
69
71
  })
70
72
  }], ['pending', {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "x-star-design",
3
- "version": "0.0.80",
3
+ "version": "0.0.81",
4
4
  "description": "A react component library developed by turingstar",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.js",