@doubao-dev/template 0.4.0-rc.1 → 0.4.0-rc.5
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/README.md
CHANGED
|
@@ -296,7 +296,7 @@ import { MapCard } from '@doubao-dev/template';
|
|
|
296
296
|
|
|
297
297
|
## ContentCard
|
|
298
298
|
|
|
299
|
-
<img src="https://unpkg.com/@doubao-dev/template@0.4.0-rc.
|
|
299
|
+
<img src="https://unpkg.com/@doubao-dev/template@0.4.0-rc.5/assets/content-card.png" alt="ContentCard 示例" width="400" />
|
|
300
300
|
|
|
301
301
|
通用列表卡,由标题栏、列表内容和底部操作区组成,适合商品、服务、内容入口等可重复条目。
|
|
302
302
|
|
|
@@ -338,7 +338,7 @@ import { ContentCard } from '@doubao-dev/template';
|
|
|
338
338
|
|
|
339
339
|
## PriceActionCard
|
|
340
340
|
|
|
341
|
-
<img src="https://unpkg.com/@doubao-dev/template@0.4.0-rc.
|
|
341
|
+
<img src="https://unpkg.com/@doubao-dev/template@0.4.0-rc.5/assets/price-action-card.png" alt="PriceActionCard 示例" width="400" />
|
|
342
342
|
|
|
343
343
|
价格操作卡,由多条"价格 + 信息 + 右侧按钮"组成,适合报价、权益、服务方案等结果列表。
|
|
344
344
|
|
|
@@ -371,7 +371,7 @@ import { PriceActionCard } from '@doubao-dev/template';
|
|
|
371
371
|
|
|
372
372
|
## CheckoutCard
|
|
373
373
|
|
|
374
|
-
<img src="https://unpkg.com/@doubao-dev/template@0.4.0-rc.
|
|
374
|
+
<img src="https://unpkg.com/@doubao-dev/template@0.4.0-rc.5/assets/checkout-card.png" alt="CheckoutCard 示例" width="400" />
|
|
375
375
|
|
|
376
376
|
通用提单卡,由商品摘要、提单信息、费用汇总和底部操作区组成,适合下单确认、支付确认等场景。
|
|
377
377
|
|
|
@@ -422,7 +422,7 @@ import { CheckoutCard } from '@doubao-dev/template';
|
|
|
422
422
|
|
|
423
423
|
## TicketOrderCard
|
|
424
424
|
|
|
425
|
-
<img src="https://unpkg.com/@doubao-dev/template@0.4.0-rc.
|
|
425
|
+
<img src="https://unpkg.com/@doubao-dev/template@0.4.0-rc.5/assets/ticket-checkout-card.png" alt="TicketOrderCard 示例" width="400" />
|
|
426
426
|
|
|
427
427
|
> **已废弃:** 请使用 `CheckoutCard`。`TicketOrderCard` 仅为兼容现有代码保留。
|
|
428
428
|
|
|
@@ -469,7 +469,7 @@ import { TicketOrderCard } from '@doubao-dev/template';
|
|
|
469
469
|
|
|
470
470
|
## TransitCard
|
|
471
471
|
|
|
472
|
-
<img src="https://unpkg.com/@doubao-dev/template@0.4.0-rc.
|
|
472
|
+
<img src="https://unpkg.com/@doubao-dev/template@0.4.0-rc.5/assets/transit-card.png" alt="TransitCard 示例" width="400" />
|
|
473
473
|
|
|
474
474
|
交通票务列表卡,由多条出发、中转、到达和价格信息组成,适合展示机票、火车票、大巴等推荐列表。
|
|
475
475
|
|
|
@@ -518,7 +518,7 @@ import { TransitCard } from '@doubao-dev/template';
|
|
|
518
518
|
|
|
519
519
|
## AskHumanCard
|
|
520
520
|
|
|
521
|
-
<img src="https://unpkg.com/@doubao-dev/template@0.4.0-rc.
|
|
521
|
+
<img src="https://unpkg.com/@doubao-dev/template@0.4.0-rc.5/assets/ask-human-card.png" alt="AskHumanCard 示例" width="400" />
|
|
522
522
|
|
|
523
523
|
人工确认选项卡,由一组选项组成,适合让用户在多个候选项中确认选择。
|
|
524
524
|
|
|
@@ -108,11 +108,9 @@ function TemplateTransportSummary(props) {
|
|
|
108
108
|
return <view className={clsx('doubao-template-transport-summary', className)}>
|
|
109
109
|
{titleNode}
|
|
110
110
|
{hasRouteRow && <view className="doubao-template-transport-summary__route-row">
|
|
111
|
-
{
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
{arrivalNode}
|
|
115
|
-
</view>}
|
|
111
|
+
{departureNode}
|
|
112
|
+
{transferNode}
|
|
113
|
+
{arrivalNode}
|
|
116
114
|
{priceNode}
|
|
117
115
|
</view>}
|
|
118
116
|
</view>;
|
|
@@ -42,7 +42,6 @@
|
|
|
42
42
|
flex-flow: wrap;
|
|
43
43
|
place-content: flex-start space-between;
|
|
44
44
|
align-items: center;
|
|
45
|
-
gap: 10px;
|
|
46
45
|
width: 100%;
|
|
47
46
|
min-width: 0;
|
|
48
47
|
height: 46px;
|
|
@@ -52,16 +51,6 @@
|
|
|
52
51
|
overflow: hidden;
|
|
53
52
|
}
|
|
54
53
|
|
|
55
|
-
.doubao-template-transport-summary__route {
|
|
56
|
-
flex-direction: row;
|
|
57
|
-
flex: 1 0 188px;
|
|
58
|
-
justify-content: space-between;
|
|
59
|
-
align-items: center;
|
|
60
|
-
max-width: 200px;
|
|
61
|
-
height: 46px;
|
|
62
|
-
display: flex;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
54
|
.doubao-template-transport-summary__route-point {
|
|
66
55
|
flex-direction: column;
|
|
67
56
|
flex-shrink: 0;
|
|
@@ -128,7 +117,7 @@
|
|
|
128
117
|
display: flex;
|
|
129
118
|
position: absolute;
|
|
130
119
|
top: 2px;
|
|
131
|
-
left:
|
|
120
|
+
left: 100%;
|
|
132
121
|
}
|
|
133
122
|
|
|
134
123
|
.doubao-template-transport-summary__arrival-day-offset-text {
|
|
@@ -204,6 +193,29 @@
|
|
|
204
193
|
height: 42px;
|
|
205
194
|
}
|
|
206
195
|
|
|
196
|
+
.doubao-template-transport-summary__price > .doubao-price {
|
|
197
|
+
justify-content: flex-end;
|
|
198
|
+
width: 100%;
|
|
199
|
+
min-width: 0;
|
|
200
|
+
overflow: hidden;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.doubao-template-transport-summary__price .doubao-price__amount, .doubao-template-transport-summary__price .doubao-price__main, .doubao-template-transport-summary__price .doubao-price__integer-group {
|
|
204
|
+
min-width: 0;
|
|
205
|
+
max-width: 100%;
|
|
206
|
+
overflow: hidden;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.doubao-template-transport-summary__price .doubao-price__main, .doubao-template-transport-summary__price .doubao-price__integer-group, .doubao-template-transport-summary__price .doubao-price__integer {
|
|
210
|
+
flex-shrink: 1;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.doubao-template-transport-summary__price .doubao-price__integer {
|
|
214
|
+
text-overflow: ellipsis;
|
|
215
|
+
min-width: 0;
|
|
216
|
+
overflow: hidden;
|
|
217
|
+
}
|
|
218
|
+
|
|
207
219
|
.doubao-template-transport-summary__price--with-tag {
|
|
208
220
|
gap: 4px;
|
|
209
221
|
height: 46px;
|