- {{ item.title }}
-
+ {{ item.title }}
+
{{ item.count }}票
{{ item.percent.toFixed(2) }}%
@@ -90,25 +90,26 @@ function getWidth(item: TpVoteData): string {
display: flex;
align-items: center;
justify-content: space-between;
-}
-.tp-vote-item-title :first-child {
- font-size: 16px;
- font-weight: bold;
-}
+ .title {
+ font-size: 16px;
+ font-weight: bold;
+ }
-.tp-vote-item-title :last-child {
- display: flex;
- flex-direction: column;
- gap: 5px;
-}
+ .val {
+ display: flex;
+ flex-direction: column;
+ gap: 5px;
+ white-space: nowrap;
-.tp-vote-item-title :last-child :first-child {
- font-size: 12px;
-}
+ :first-child {
+ font-size: 12px;
+ }
-.tp-vote-item-title :last-child :last-child {
- font-size: 10px;
+ :last-child {
+ font-size: 10px;
+ }
+ }
}
.tp-vote-progress {