@titaui/pc 1.12.7-beta.12 → 1.12.7-beta.13
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.
- package/lib/components/dialog-confirm/index.css +1 -0
- package/lib/components/dynamic/dynamic-item/components/summary-header/index.js +2 -2
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/index.js +2 -2
- package/lib/components/dynamic/dynamic-item/index.css +1 -0
- package/lib/components/rate/index.css +111 -0
- package/lib/components/rate/index.js +2 -0
- package/package.json +1 -1
|
@@ -268,9 +268,9 @@ var DynamicItemHeader = function DynamicItemHeader(_ref) {
|
|
|
268
268
|
return item.title === "心情";
|
|
269
269
|
}); // 暂时用title
|
|
270
270
|
|
|
271
|
-
if (mindData[0].content
|
|
271
|
+
if (typeof mindData[0].content === 'string') {
|
|
272
272
|
setMindImg(_constant2.Motion.filter(function (item) {
|
|
273
|
-
return item.id ===
|
|
273
|
+
return item.id === JSON.parse(mindData[0].content).SelectedValues[0];
|
|
274
274
|
})[0].img);
|
|
275
275
|
}
|
|
276
276
|
}, []);
|
|
@@ -168,9 +168,9 @@ var DynamicReply = function DynamicReply(_ref) {
|
|
|
168
168
|
return item.title === "下一步工作计划";
|
|
169
169
|
})[0].content);
|
|
170
170
|
|
|
171
|
-
if (mindData[0].content
|
|
171
|
+
if (typeof mindData[0].content === 'string') {
|
|
172
172
|
setMindImg(_constant.Motion.filter(function (item) {
|
|
173
|
-
return item.id ===
|
|
173
|
+
return item.id === JSON.parse(mindData[0].content).SelectedValues[0];
|
|
174
174
|
})[0].img);
|
|
175
175
|
}
|
|
176
176
|
}, []);
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
.rc-rate {
|
|
2
|
+
margin: 0;
|
|
3
|
+
padding: 0;
|
|
4
|
+
list-style: none;
|
|
5
|
+
font-size: 18px;
|
|
6
|
+
display: inline-block;
|
|
7
|
+
vertical-align: middle;
|
|
8
|
+
font-weight: normal;
|
|
9
|
+
font-style: normal;
|
|
10
|
+
outline: none;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.rc-rate-rtl {
|
|
14
|
+
direction: rtl;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.rc-rate-disabled .rc-rate-star {
|
|
18
|
+
cursor: default;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.rc-rate-disabled .rc-rate-star:before, .rc-rate-disabled .rc-rate-star-content:before {
|
|
22
|
+
cursor: default;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.rc-rate-disabled .rc-rate-star:hover {
|
|
26
|
+
transform: scale(1);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.rc-rate-star {
|
|
30
|
+
margin: 0;
|
|
31
|
+
padding: 0;
|
|
32
|
+
display: inline-block;
|
|
33
|
+
margin-right: 8px;
|
|
34
|
+
position: relative;
|
|
35
|
+
transition: all 0.3s;
|
|
36
|
+
color: #e9e9e9;
|
|
37
|
+
cursor: pointer;
|
|
38
|
+
line-height: 1.5;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.rc-rate-rtl .rc-rate-star {
|
|
42
|
+
margin-right: 0;
|
|
43
|
+
margin-left: 8px;
|
|
44
|
+
float: right;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.rc-rate-star-first, .rc-rate-star-second {
|
|
48
|
+
transition: all 0.3s;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.rc-rate-star-focused, .rc-rate-star:hover {
|
|
52
|
+
transform: scale(1.1);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.rc-rate-star-first {
|
|
56
|
+
position: absolute;
|
|
57
|
+
left: 0;
|
|
58
|
+
top: 0;
|
|
59
|
+
width: 50%;
|
|
60
|
+
height: 100%;
|
|
61
|
+
overflow: hidden;
|
|
62
|
+
opacity: 0;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.rc-rate-rtl .rc-rate-star-first {
|
|
66
|
+
right: 0;
|
|
67
|
+
left: auto;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.rc-rate-star-half .rc-rate-star-first,
|
|
71
|
+
.rc-rate-star-half .rc-rate-star-second {
|
|
72
|
+
opacity: 1;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.rc-rate-star-half .rc-rate-star-first,
|
|
76
|
+
.rc-rate-star-full .rc-rate-star-second {
|
|
77
|
+
color: #f5a623;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.rc-rate-star-half:hover .rc-rate-star-first,
|
|
81
|
+
.rc-rate-star-full:hover .rc-rate-star-second {
|
|
82
|
+
color: tint(#f5a623, 30%);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
@font-face {
|
|
86
|
+
font-family: 'anticon';
|
|
87
|
+
src: url("//at.alicdn.com/t/font_r5u29ls31bgldi.eot");
|
|
88
|
+
/* IE9*/
|
|
89
|
+
src: url("//at.alicdn.com/t/font_r5u29ls31bgldi.eot?#iefix") format("embedded-opentype"), url("//at.alicdn.com/t/font_r5u29ls31bgldi.woff") format("woff"), url("//at.alicdn.com/t/font_r5u29ls31bgldi.ttf") format("truetype"), url("//at.alicdn.com/t/font_r5u29ls31bgldi.svg#iconfont") format("svg");
|
|
90
|
+
/* iOS 4.1- */
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.anticon {
|
|
94
|
+
font-style: normal;
|
|
95
|
+
vertical-align: baseline;
|
|
96
|
+
text-align: center;
|
|
97
|
+
text-transform: none;
|
|
98
|
+
line-height: 1;
|
|
99
|
+
text-rendering: optimizeLegibility;
|
|
100
|
+
-webkit-font-smoothing: antialiased;
|
|
101
|
+
-moz-osx-font-smoothing: grayscale;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.anticon:before {
|
|
105
|
+
display: block;
|
|
106
|
+
font-family: 'anticon' !important;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.anticon-star:before {
|
|
110
|
+
content: '\e660';
|
|
111
|
+
}
|
|
@@ -9,6 +9,8 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
|
|
10
10
|
var _rcRate = _interopRequireDefault(require("rc-rate"));
|
|
11
11
|
|
|
12
|
+
require("./index.css");
|
|
13
|
+
|
|
12
14
|
var _excluded = ["character", "defaultValue", "count", "allowHalf", "onChange", "disabled"];
|
|
13
15
|
|
|
14
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|