@doubao-dev/template 0.4.0-rc.1 → 0.4.0
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 +7 -7
- package/dist/ask-human-card/styles.css +1 -66
- package/dist/checkout-card/styles.css +1 -34
- package/dist/components/extra-action/styles.css +1 -10
- package/dist/components/footer/styles.css +1 -27
- package/dist/components/header/styles.css +1 -62
- package/dist/components/info-section/styles.css +1 -161
- package/dist/components/product-summary/styles.css +1 -130
- package/dist/components/route-section/styles.css +1 -78
- package/dist/components/transport-summary/index.js +3 -5
- package/dist/components/transport-summary/styles.css +1 -211
- package/dist/composite-card/styles.css +1 -36
- package/dist/content-card/styles.css +1 -166
- package/dist/map-card/styles.css +1 -110
- package/dist/price-action-card/styles.css +1 -149
- package/dist/primitives/icon/index.js +2 -4
- package/dist/primitives/icon/styles.css +1 -7
- package/dist/primitives/option-group/index.js +14 -22
- package/dist/primitives/option-group/styles.css +1 -98
- package/dist/primitives/price/styles.css +1 -142
- package/dist/primitives/tag/styles.css +1 -70
- package/dist/primitives/title/styles.css +1 -63
- package/dist/ticket-order-card/styles.css +1 -18
- package/dist/transit-card/styles.css +1 -53
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -154,7 +154,7 @@ const [passengerValues, setPassengerValues] = useState<Array<string | number>>([
|
|
|
154
154
|
|
|
155
155
|
- `items` 是唯一的选项内容入口,不支持 `children`;每项使用唯一的 `value` 标识,并可配置 `title`、`disabled` 和独立 `onClick`。
|
|
156
156
|
- `size` 支持 `md | lg`,默认是 `md`;`md` 高 44px、由内容撑开并自动换行,支持 `icon`;`lg` 高 62px、按栏等分并自动换行,支持 `subtitle`。
|
|
157
|
-
- `columns` 仅用于 `lg`,默认每行 3 栏,选项间距固定为 8px
|
|
157
|
+
- `columns` 仅用于 `lg`,默认每行 3 栏,选项间距固定为 8px;单行选项会平均填满可用宽度,发生换行后各行保持相同栏宽和列位置。
|
|
158
158
|
- `selectionMode` 默认是 `single`,此时 `value` 和 `onChange` 使用单个值;传 `multiple` 时使用值数组,并可通过 `maxSelected={2}` 限制为双选;达到上限后点击未选项不会触发 `onChange`,但仍会触发该 item 的 `onClick`,已选项仍可取消。
|
|
159
159
|
- 用户点击选项时,组件先计算新选择并触发 `onChange`,再触发该 item 的 `onClick`;禁用项不触发事件。
|
|
160
160
|
- `className` 和 `style` 只作用于集合根节点,单项样式由模板统一管理。
|
|
@@ -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
|
|
299
|
+
<img src="https://unpkg.com/@doubao-dev/template@0.4.0/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
|
|
341
|
+
<img src="https://unpkg.com/@doubao-dev/template@0.4.0/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
|
|
374
|
+
<img src="https://unpkg.com/@doubao-dev/template@0.4.0/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
|
|
425
|
+
<img src="https://unpkg.com/@doubao-dev/template@0.4.0/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
|
|
472
|
+
<img src="https://unpkg.com/@doubao-dev/template@0.4.0/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
|
|
521
|
+
<img src="https://unpkg.com/@doubao-dev/template@0.4.0/assets/ask-human-card.png" alt="AskHumanCard 示例" width="400" />
|
|
522
522
|
|
|
523
523
|
人工确认选项卡,由一组选项组成,适合让用户在多个候选项中确认选择。
|
|
524
524
|
|
|
@@ -1,66 +1 @@
|
|
|
1
|
-
.doubao-ask-human-card {
|
|
2
|
-
--doubao-ask-human-card-gap: 8px;
|
|
3
|
-
--doubao-ask-human-card-option-height: 44px;
|
|
4
|
-
--doubao-ask-human-card-option-radius: 8px;
|
|
5
|
-
align-items: flex-start;
|
|
6
|
-
gap: var(--doubao-ask-human-card-gap);
|
|
7
|
-
box-sizing: border-box;
|
|
8
|
-
background-color: var(--bg-base-2-overlay);
|
|
9
|
-
flex-direction: column;
|
|
10
|
-
width: 100%;
|
|
11
|
-
display: flex;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.doubao-ask-human-card__options {
|
|
15
|
-
align-items: flex-start;
|
|
16
|
-
gap: var(--doubao-ask-human-card-gap);
|
|
17
|
-
flex-direction: column;
|
|
18
|
-
width: 100%;
|
|
19
|
-
display: flex;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.doubao-ask-human-card__options--row {
|
|
23
|
-
flex-direction: row;
|
|
24
|
-
align-items: stretch;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.doubao-ask-human-card__options--row > .doubao-button {
|
|
28
|
-
flex: 1 1 0;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.doubao-ask-human-card .doubao-button {
|
|
32
|
-
min-width: 0;
|
|
33
|
-
max-width: 100%;
|
|
34
|
-
height: var(--doubao-ask-human-card-option-height);
|
|
35
|
-
--doubao-button-default-height: var(--doubao-ask-human-card-option-height);
|
|
36
|
-
--doubao-button-border-radius: var(--doubao-ask-human-card-option-radius);
|
|
37
|
-
--doubao-button-default-border-radius: var(--doubao-ask-human-card-option-radius);
|
|
38
|
-
--doubao-button-default-padding-x: 12px;
|
|
39
|
-
--doubao-button-default-padding-y: 11px;
|
|
40
|
-
--doubao-button-default-bg: var(--bg-base-1);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.doubao-ask-human-card__option--with-arrow {
|
|
44
|
-
gap: 4px;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.doubao-ask-human-card__option-text {
|
|
48
|
-
min-width: 0;
|
|
49
|
-
color: var(--neutral-100);
|
|
50
|
-
text-align: center;
|
|
51
|
-
text-overflow: ellipsis;
|
|
52
|
-
white-space: nowrap;
|
|
53
|
-
font-family: PingFang SC, sans-serif;
|
|
54
|
-
font-size: 16px;
|
|
55
|
-
font-style: normal;
|
|
56
|
-
font-weight: 500;
|
|
57
|
-
line-height: 22px;
|
|
58
|
-
overflow: hidden;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.doubao-ask-human-card__option-icon {
|
|
62
|
-
flex-shrink: 0;
|
|
63
|
-
width: 18px;
|
|
64
|
-
height: 18px;
|
|
65
|
-
}
|
|
66
|
-
|
|
1
|
+
.doubao-ask-human-card{--doubao-ask-human-card-gap: 8px;--doubao-ask-human-card-option-height: 44px;--doubao-ask-human-card-option-radius: 8px;display:flex;flex-direction:column;align-items:flex-start;gap:var(--doubao-ask-human-card-gap);width:100%;box-sizing:border-box;background-color:var(--bg-base-2-overlay)}.doubao-ask-human-card__options{display:flex;flex-direction:column;align-items:flex-start;gap:var(--doubao-ask-human-card-gap);width:100%}.doubao-ask-human-card__options--row{flex-direction:row;align-items:stretch}.doubao-ask-human-card__options--row>.doubao-button{flex:1 1 0}.doubao-ask-human-card .doubao-button{max-width:100%;min-width:0;height:var(--doubao-ask-human-card-option-height);--doubao-button-default-height: var(--doubao-ask-human-card-option-height);--doubao-button-border-radius: var(--doubao-ask-human-card-option-radius);--doubao-button-default-border-radius: var(--doubao-ask-human-card-option-radius);--doubao-button-default-padding-x: 12px;--doubao-button-default-padding-y: 11px;--doubao-button-default-bg: var(--bg-base-1)}.doubao-ask-human-card__option--with-arrow{gap:4px}.doubao-ask-human-card__option-text{min-width:0;overflow:hidden;color:var(--neutral-100);font-family:"PingFang SC",sans-serif;font-size:16px;font-style:normal;font-weight:500;line-height:22px;text-align:center;text-overflow:ellipsis;white-space:nowrap}.doubao-ask-human-card__option-icon{width:18px;height:18px;flex-shrink:0}
|
|
@@ -1,34 +1 @@
|
|
|
1
|
-
.doubao-checkout-card {
|
|
2
|
-
box-sizing: border-box;
|
|
3
|
-
background-color: var(--bg-base-1);
|
|
4
|
-
border: 1px solid var(--bg-base-2-overlay);
|
|
5
|
-
border-radius: 8px;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: stretch;
|
|
8
|
-
width: 100%;
|
|
9
|
-
display: flex;
|
|
10
|
-
overflow: hidden;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.doubao-checkout-card__products {
|
|
14
|
-
background-color: var(--bg-base-1);
|
|
15
|
-
flex-direction: column;
|
|
16
|
-
align-items: stretch;
|
|
17
|
-
width: 100%;
|
|
18
|
-
display: flex;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.doubao-checkout-card__product {
|
|
22
|
-
position: relative;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.doubao-checkout-card__product + .doubao-checkout-card__product:before {
|
|
26
|
-
background-color: var(--neutral-transparent-1);
|
|
27
|
-
content: "";
|
|
28
|
-
height: 1px;
|
|
29
|
-
position: absolute;
|
|
30
|
-
top: 0;
|
|
31
|
-
left: 16px;
|
|
32
|
-
right: 16px;
|
|
33
|
-
}
|
|
34
|
-
|
|
1
|
+
.doubao-checkout-card{display:flex;flex-direction:column;align-items:stretch;width:100%;box-sizing:border-box;overflow:hidden;background-color:var(--bg-base-1);border:1px solid var(--bg-base-2-overlay);border-radius:8px}.doubao-checkout-card__products{display:flex;flex-direction:column;align-items:stretch;width:100%;background-color:var(--bg-base-1)}.doubao-checkout-card__product{position:relative}.doubao-checkout-card__product+.doubao-checkout-card__product::before{position:absolute;top:0;right:16px;left:16px;height:1px;background-color:var(--neutral-transparent-1);content:""}
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
.doubao-template-extra-action-button
|
|
2
|
-
--doubao-button-border-radius: 8px;
|
|
3
|
-
--doubao-button-default-border-radius: 8px;
|
|
4
|
-
--doubao-button-default-height: 36px;
|
|
5
|
-
--doubao-button-default-padding-x: 12px;
|
|
6
|
-
--doubao-button-default-padding-y: 8px;
|
|
7
|
-
--doubao-button-default-font-size: 14px;
|
|
8
|
-
--doubao-button-default-line-height: 20px;
|
|
9
|
-
}
|
|
10
|
-
|
|
1
|
+
.doubao-template-extra-action-button{--doubao-button-border-radius: 8px;--doubao-button-default-border-radius: 8px;--doubao-button-default-height: 36px;--doubao-button-default-padding-x: 12px;--doubao-button-default-padding-y: 8px;--doubao-button-default-font-size: 14px;--doubao-button-default-line-height: 20px}
|
|
@@ -1,27 +1 @@
|
|
|
1
|
-
.doubao-template-action-bar {
|
|
2
|
-
box-sizing: border-box;
|
|
3
|
-
flex-direction: row;
|
|
4
|
-
width: 100%;
|
|
5
|
-
padding: 8px 12px 12px;
|
|
6
|
-
display: flex;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.doubao-template-action-bar__action {
|
|
10
|
-
--doubao-button-border-radius: 8px;
|
|
11
|
-
--doubao-button-default-border-radius: 8px;
|
|
12
|
-
--doubao-button-default-height: 44px;
|
|
13
|
-
--doubao-button-default-padding-x: 16px;
|
|
14
|
-
--doubao-button-default-padding-y: 11px;
|
|
15
|
-
--doubao-button-default-font-size: 16px;
|
|
16
|
-
--doubao-button-default-line-height: 22px;
|
|
17
|
-
border-radius: 8px;
|
|
18
|
-
flex: 1 1 0;
|
|
19
|
-
width: auto;
|
|
20
|
-
min-width: 0;
|
|
21
|
-
height: 44px;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.doubao-template-action-bar__action + .doubao-template-action-bar__action {
|
|
25
|
-
margin-left: 10px;
|
|
26
|
-
}
|
|
27
|
-
|
|
1
|
+
.doubao-template-action-bar{display:flex;flex-direction:row;width:100%;padding:8px 12px 12px;box-sizing:border-box}.doubao-template-action-bar__action{flex:1 1 0;width:auto;height:44px;min-width:0;border-radius:8px;--doubao-button-border-radius: 8px;--doubao-button-default-border-radius: 8px;--doubao-button-default-height: 44px;--doubao-button-default-padding-x: 16px;--doubao-button-default-padding-y: 11px;--doubao-button-default-font-size: 16px;--doubao-button-default-line-height: 22px}.doubao-template-action-bar__action+.doubao-template-action-bar__action{margin-left:10px}
|
|
@@ -1,62 +1 @@
|
|
|
1
|
-
.doubao-template-title-bar {
|
|
2
|
-
box-sizing: border-box;
|
|
3
|
-
border-bottom: .5px solid var(--neutral-transparent-1);
|
|
4
|
-
flex-direction: row;
|
|
5
|
-
justify-content: space-between;
|
|
6
|
-
align-items: center;
|
|
7
|
-
width: 100%;
|
|
8
|
-
height: 40px;
|
|
9
|
-
padding: 12px;
|
|
10
|
-
display: flex;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.doubao-template-title-bar__app {
|
|
14
|
-
flex-direction: row;
|
|
15
|
-
align-items: center;
|
|
16
|
-
display: flex;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.doubao-template-title-bar__app-icon {
|
|
20
|
-
border-radius: 4px;
|
|
21
|
-
flex-shrink: 0;
|
|
22
|
-
width: 16px;
|
|
23
|
-
height: 16px;
|
|
24
|
-
overflow: hidden;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.doubao-template-title-bar__app-name, .doubao-template-title-bar__more-text {
|
|
28
|
-
color: var(--neutral-50);
|
|
29
|
-
text-overflow: ellipsis;
|
|
30
|
-
white-space: nowrap;
|
|
31
|
-
font-family: PingFang SC, sans-serif;
|
|
32
|
-
font-size: 12px;
|
|
33
|
-
font-style: normal;
|
|
34
|
-
line-height: 18px;
|
|
35
|
-
overflow: hidden;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.doubao-template-title-bar__app-name {
|
|
39
|
-
margin-left: 6px;
|
|
40
|
-
font-weight: 500;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.doubao-template-title-bar__more {
|
|
44
|
-
flex-direction: row;
|
|
45
|
-
flex-shrink: 0;
|
|
46
|
-
justify-content: flex-end;
|
|
47
|
-
align-items: center;
|
|
48
|
-
min-width: 62.5px;
|
|
49
|
-
display: flex;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.doubao-template-title-bar__more-text {
|
|
53
|
-
font-weight: 400;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.doubao-template-title-bar__more-chevron {
|
|
57
|
-
flex-shrink: 0;
|
|
58
|
-
width: 12px;
|
|
59
|
-
height: 12px;
|
|
60
|
-
margin-left: 2px;
|
|
61
|
-
}
|
|
62
|
-
|
|
1
|
+
.doubao-template-title-bar{display:flex;flex-direction:row;align-items:center;justify-content:space-between;width:100%;height:40px;padding:12px;box-sizing:border-box;border-bottom:.5px solid var(--neutral-transparent-1)}.doubao-template-title-bar__app{display:flex;flex-direction:row;align-items:center}.doubao-template-title-bar__app-icon{width:16px;height:16px;flex-shrink:0;overflow:hidden;border-radius:4px}.doubao-template-title-bar__app-name,.doubao-template-title-bar__more-text{overflow:hidden;color:var(--neutral-50);font-family:"PingFang SC",sans-serif;font-size:12px;font-style:normal;line-height:18px;text-overflow:ellipsis;white-space:nowrap}.doubao-template-title-bar__app-name{margin-left:6px;font-weight:500}.doubao-template-title-bar__more{display:flex;flex-direction:row;align-items:center;justify-content:flex-end;flex-shrink:0;min-width:62.5px}.doubao-template-title-bar__more-text{font-weight:400}.doubao-template-title-bar__more-chevron{width:12px;height:12px;flex-shrink:0;margin-left:2px}
|
|
@@ -1,161 +1 @@
|
|
|
1
|
-
.doubao-template-info-section {
|
|
2
|
-
box-sizing: border-box;
|
|
3
|
-
border-top: .5px solid var(--neutral-transparent-1);
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
width: 100%;
|
|
6
|
-
padding: 12px;
|
|
7
|
-
display: flex;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.doubao-template-info-section__info {
|
|
11
|
-
flex-direction: column;
|
|
12
|
-
width: 100%;
|
|
13
|
-
display: flex;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.doubao-template-info-section__info-row {
|
|
17
|
-
flex-direction: row;
|
|
18
|
-
align-items: flex-start;
|
|
19
|
-
width: 100%;
|
|
20
|
-
display: flex;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.doubao-template-info-section__info-row + .doubao-template-info-section__info-row {
|
|
24
|
-
margin-top: 8px;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.doubao-template-info-section__info-label-wrap {
|
|
28
|
-
flex-direction: row;
|
|
29
|
-
flex: 0 0 66px;
|
|
30
|
-
align-items: center;
|
|
31
|
-
width: 66px;
|
|
32
|
-
display: flex;
|
|
33
|
-
overflow: hidden;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.doubao-template-info-section__info-label, .doubao-template-info-section__info-value, .doubao-template-info-section__fee, .doubao-template-info-section__total-label, .doubao-template-info-section__total-price {
|
|
37
|
-
text-overflow: ellipsis;
|
|
38
|
-
white-space: nowrap;
|
|
39
|
-
font-family: PingFang SC, sans-serif;
|
|
40
|
-
font-style: normal;
|
|
41
|
-
overflow: hidden;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.doubao-template-info-section__info-label {
|
|
45
|
-
width: 100%;
|
|
46
|
-
min-width: 0;
|
|
47
|
-
max-width: 100%;
|
|
48
|
-
color: var(--neutral-100);
|
|
49
|
-
font-size: 13px;
|
|
50
|
-
font-weight: 400;
|
|
51
|
-
line-height: 20px;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.doubao-template-info-section__info-value-wrap {
|
|
55
|
-
flex-direction: row;
|
|
56
|
-
flex: 1 1 0;
|
|
57
|
-
justify-content: flex-end;
|
|
58
|
-
align-items: center;
|
|
59
|
-
min-width: 0;
|
|
60
|
-
display: flex;
|
|
61
|
-
overflow: hidden;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.doubao-template-info-section__info-value {
|
|
65
|
-
min-width: 0;
|
|
66
|
-
color: var(--neutral-70);
|
|
67
|
-
text-align: right;
|
|
68
|
-
margin-left: 6px;
|
|
69
|
-
font-size: 13px;
|
|
70
|
-
font-weight: 400;
|
|
71
|
-
line-height: 20px;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.doubao-template-info-section__info-value:first-child {
|
|
75
|
-
margin-left: 0;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.doubao-template-info-section--value-column .doubao-template-info-section__info-value-wrap {
|
|
79
|
-
flex-direction: column;
|
|
80
|
-
align-items: flex-end;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.doubao-template-info-section--value-column .doubao-template-info-section__info-value {
|
|
84
|
-
max-width: 100%;
|
|
85
|
-
margin-left: 0;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.doubao-template-info-section__summary {
|
|
89
|
-
flex-direction: row;
|
|
90
|
-
justify-content: flex-end;
|
|
91
|
-
width: 100%;
|
|
92
|
-
margin-top: 8px;
|
|
93
|
-
display: flex;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.doubao-template-info-section__summary-content {
|
|
97
|
-
flex-flow: wrap;
|
|
98
|
-
flex: 1 1 0;
|
|
99
|
-
justify-content: flex-end;
|
|
100
|
-
align-items: center;
|
|
101
|
-
gap: 0 6px;
|
|
102
|
-
min-width: 0;
|
|
103
|
-
max-width: 100%;
|
|
104
|
-
max-height: 42px;
|
|
105
|
-
display: flex;
|
|
106
|
-
overflow: hidden;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.doubao-template-info-section__fees {
|
|
110
|
-
flex-direction: row;
|
|
111
|
-
flex: 0 auto;
|
|
112
|
-
align-items: center;
|
|
113
|
-
gap: 0 6px;
|
|
114
|
-
min-width: 0;
|
|
115
|
-
max-width: 100%;
|
|
116
|
-
display: flex;
|
|
117
|
-
overflow: hidden;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
.doubao-template-info-section__fee {
|
|
121
|
-
min-width: 0;
|
|
122
|
-
max-width: 100%;
|
|
123
|
-
color: var(--neutral-70);
|
|
124
|
-
flex: 0 auto;
|
|
125
|
-
font-size: 13px;
|
|
126
|
-
font-weight: 400;
|
|
127
|
-
line-height: 20px;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
.doubao-template-info-section__total {
|
|
131
|
-
flex-direction: row;
|
|
132
|
-
flex: 0 auto;
|
|
133
|
-
justify-content: flex-end;
|
|
134
|
-
align-items: center;
|
|
135
|
-
min-width: 0;
|
|
136
|
-
max-width: 100%;
|
|
137
|
-
display: flex;
|
|
138
|
-
overflow: hidden;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
.doubao-template-info-section__total-label {
|
|
142
|
-
min-width: 0;
|
|
143
|
-
max-width: 100%;
|
|
144
|
-
color: var(--neutral-100);
|
|
145
|
-
flex: 0 auto;
|
|
146
|
-
font-size: 13px;
|
|
147
|
-
font-weight: 500;
|
|
148
|
-
line-height: 20px;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
.doubao-template-info-section__total-price {
|
|
152
|
-
min-width: 0;
|
|
153
|
-
max-width: 100%;
|
|
154
|
-
color: var(--neutral-100);
|
|
155
|
-
flex: 0 auto;
|
|
156
|
-
margin-left: 2px;
|
|
157
|
-
font-size: 15px;
|
|
158
|
-
font-weight: 500;
|
|
159
|
-
line-height: 22px;
|
|
160
|
-
}
|
|
161
|
-
|
|
1
|
+
.doubao-template-info-section{display:flex;flex-direction:column;width:100%;padding:12px;box-sizing:border-box;border-top:.5px solid var(--neutral-transparent-1)}.doubao-template-info-section__info{display:flex;flex-direction:column;width:100%}.doubao-template-info-section__info-row{display:flex;flex-direction:row;align-items:flex-start;width:100%}.doubao-template-info-section__info-row+.doubao-template-info-section__info-row{margin-top:8px}.doubao-template-info-section__info-label-wrap{display:flex;flex:0 0 66px;flex-direction:row;align-items:center;width:66px;overflow:hidden}.doubao-template-info-section__info-label,.doubao-template-info-section__info-value,.doubao-template-info-section__fee,.doubao-template-info-section__total-label,.doubao-template-info-section__total-price{overflow:hidden;font-family:"PingFang SC",sans-serif;font-style:normal;text-overflow:ellipsis;white-space:nowrap}.doubao-template-info-section__info-label{width:100%;max-width:100%;min-width:0;color:var(--neutral-100);font-size:13px;font-weight:400;line-height:20px}.doubao-template-info-section__info-value-wrap{display:flex;flex:1 1 0;flex-direction:row;align-items:center;justify-content:flex-end;min-width:0;overflow:hidden}.doubao-template-info-section__info-value{min-width:0;margin-left:6px;color:var(--neutral-70);font-size:13px;font-weight:400;line-height:20px;text-align:right}.doubao-template-info-section__info-value:first-child{margin-left:0}.doubao-template-info-section--value-column .doubao-template-info-section__info-value-wrap{flex-direction:column;align-items:flex-end}.doubao-template-info-section--value-column .doubao-template-info-section__info-value{max-width:100%;margin-left:0}.doubao-template-info-section__summary{display:flex;flex-direction:row;justify-content:flex-end;width:100%;margin-top:8px}.doubao-template-info-section__summary-content{display:flex;flex:1 1 0;flex-wrap:wrap;flex-direction:row;align-items:center;justify-content:flex-end;gap:0 6px;max-width:100%;max-height:42px;min-width:0;overflow:hidden}.doubao-template-info-section__fees{display:flex;flex:0 1 auto;flex-direction:row;align-items:center;gap:0 6px;max-width:100%;min-width:0;overflow:hidden}.doubao-template-info-section__fee{flex:0 1 auto;max-width:100%;min-width:0;color:var(--neutral-70);font-size:13px;font-weight:400;line-height:20px}.doubao-template-info-section__total{display:flex;flex:0 1 auto;flex-direction:row;align-items:center;justify-content:flex-end;max-width:100%;min-width:0;overflow:hidden}.doubao-template-info-section__total-label{flex:0 1 auto;max-width:100%;min-width:0;color:var(--neutral-100);font-size:13px;font-weight:500;line-height:20px}.doubao-template-info-section__total-price{flex:0 1 auto;max-width:100%;min-width:0;margin-left:2px;color:var(--neutral-100);font-size:15px;font-weight:500;line-height:22px}
|
|
@@ -1,130 +1 @@
|
|
|
1
|
-
.doubao-template-product-summary {
|
|
2
|
-
box-sizing: border-box;
|
|
3
|
-
background-color: var(--bg-base-1);
|
|
4
|
-
flex-direction: row;
|
|
5
|
-
align-items: center;
|
|
6
|
-
width: 100%;
|
|
7
|
-
padding: 12px;
|
|
8
|
-
display: flex;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.doubao-template-product-summary__image {
|
|
12
|
-
background-color: var(--bg-base-1-overlay);
|
|
13
|
-
border-radius: 5px;
|
|
14
|
-
flex-shrink: 0;
|
|
15
|
-
width: 80px;
|
|
16
|
-
height: 80px;
|
|
17
|
-
overflow: hidden;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.doubao-template-product-summary__content {
|
|
21
|
-
flex-direction: column;
|
|
22
|
-
flex: 1 1 0;
|
|
23
|
-
min-width: 0;
|
|
24
|
-
display: flex;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.doubao-template-product-summary__content--with-image {
|
|
28
|
-
margin-left: 12px;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.doubao-template-product-summary__line-main, .doubao-template-product-summary__line-secondary {
|
|
32
|
-
flex-direction: row;
|
|
33
|
-
align-items: center;
|
|
34
|
-
width: 100%;
|
|
35
|
-
min-width: 0;
|
|
36
|
-
display: flex;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.doubao-template-product-summary__line-main {
|
|
40
|
-
height: 24px;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.doubao-template-product-summary__line-secondary {
|
|
44
|
-
height: 20px;
|
|
45
|
-
margin-top: 2px;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.doubao-template-product-summary__title-wrap {
|
|
49
|
-
flex-direction: row;
|
|
50
|
-
flex: 1 1 0;
|
|
51
|
-
align-items: center;
|
|
52
|
-
gap: 4px;
|
|
53
|
-
min-width: 0;
|
|
54
|
-
margin-right: 8px;
|
|
55
|
-
display: flex;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.doubao-template-product-summary__tag {
|
|
59
|
-
box-sizing: border-box;
|
|
60
|
-
height: 18px;
|
|
61
|
-
color: var(--neutral-70);
|
|
62
|
-
text-overflow: ellipsis;
|
|
63
|
-
white-space: nowrap;
|
|
64
|
-
background-color: var(--bg-base-2-overlay);
|
|
65
|
-
border-radius: 4px;
|
|
66
|
-
flex-shrink: 0;
|
|
67
|
-
padding: 2px 4px;
|
|
68
|
-
font-family: PingFang SC, sans-serif;
|
|
69
|
-
font-size: 12px;
|
|
70
|
-
font-style: normal;
|
|
71
|
-
font-weight: 400;
|
|
72
|
-
line-height: 14px;
|
|
73
|
-
overflow: hidden;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.doubao-template-product-summary__tag--highlight {
|
|
77
|
-
color: var(--primary-60);
|
|
78
|
-
background-color: var(--primary-transparent-1);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.doubao-template-product-summary__price-prefix, .doubao-template-product-summary__price-value, .doubao-template-product-summary__spec, .doubao-template-product-summary__quantity {
|
|
82
|
-
text-overflow: ellipsis;
|
|
83
|
-
white-space: nowrap;
|
|
84
|
-
font-family: PingFang SC, sans-serif;
|
|
85
|
-
font-style: normal;
|
|
86
|
-
overflow: hidden;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
.doubao-template-product-summary__price {
|
|
90
|
-
color: var(--neutral-100);
|
|
91
|
-
white-space: nowrap;
|
|
92
|
-
flex-direction: row;
|
|
93
|
-
flex-shrink: 0;
|
|
94
|
-
align-items: flex-end;
|
|
95
|
-
font-family: PingFang SC, sans-serif;
|
|
96
|
-
font-style: normal;
|
|
97
|
-
font-weight: 500;
|
|
98
|
-
display: flex;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.doubao-template-product-summary__price-prefix {
|
|
102
|
-
width: 22px;
|
|
103
|
-
font-size: 11px;
|
|
104
|
-
line-height: 17px;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
.doubao-template-product-summary__price-value {
|
|
108
|
-
margin-left: 2px;
|
|
109
|
-
font-size: 13px;
|
|
110
|
-
line-height: 19px;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.doubao-template-product-summary__spec {
|
|
114
|
-
min-width: 0;
|
|
115
|
-
color: var(--neutral-70);
|
|
116
|
-
flex: 1 1 0;
|
|
117
|
-
font-size: 13px;
|
|
118
|
-
font-weight: 400;
|
|
119
|
-
line-height: 20px;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
.doubao-template-product-summary__quantity {
|
|
123
|
-
color: var(--neutral-70);
|
|
124
|
-
flex-shrink: 0;
|
|
125
|
-
margin-left: 8px;
|
|
126
|
-
font-size: 13px;
|
|
127
|
-
font-weight: 400;
|
|
128
|
-
line-height: 20px;
|
|
129
|
-
}
|
|
130
|
-
|
|
1
|
+
.doubao-template-product-summary{display:flex;flex-direction:row;align-items:center;width:100%;padding:12px;box-sizing:border-box;background-color:var(--bg-base-1)}.doubao-template-product-summary__image{width:80px;height:80px;flex-shrink:0;overflow:hidden;background-color:var(--bg-base-1-overlay);border-radius:5px}.doubao-template-product-summary__content{display:flex;flex:1 1 0;flex-direction:column;min-width:0}.doubao-template-product-summary__content--with-image{margin-left:12px}.doubao-template-product-summary__line-main,.doubao-template-product-summary__line-secondary{display:flex;flex-direction:row;align-items:center;width:100%;min-width:0}.doubao-template-product-summary__line-main{height:24px}.doubao-template-product-summary__line-secondary{height:20px;margin-top:2px}.doubao-template-product-summary__title-wrap{display:flex;flex:1 1 0;flex-direction:row;align-items:center;gap:4px;min-width:0;margin-right:8px}.doubao-template-product-summary__tag{height:18px;padding:2px 4px;box-sizing:border-box;flex-shrink:0;overflow:hidden;color:var(--neutral-70);font-family:"PingFang SC",sans-serif;font-size:12px;font-style:normal;font-weight:400;line-height:14px;text-overflow:ellipsis;white-space:nowrap;background-color:var(--bg-base-2-overlay);border-radius:4px}.doubao-template-product-summary__tag--highlight{color:var(--primary-60);background-color:var(--primary-transparent-1)}.doubao-template-product-summary__price-prefix,.doubao-template-product-summary__price-value,.doubao-template-product-summary__spec,.doubao-template-product-summary__quantity{overflow:hidden;font-family:"PingFang SC",sans-serif;font-style:normal;text-overflow:ellipsis;white-space:nowrap}.doubao-template-product-summary__price{display:flex;flex-direction:row;align-items:flex-end;flex-shrink:0;color:var(--neutral-100);font-family:"PingFang SC",sans-serif;font-style:normal;font-weight:500;white-space:nowrap}.doubao-template-product-summary__price-prefix{width:22px;font-size:11px;line-height:17px}.doubao-template-product-summary__price-value{margin-left:2px;font-size:13px;line-height:19px}.doubao-template-product-summary__spec{flex:1 1 0;min-width:0;color:var(--neutral-70);font-size:13px;font-weight:400;line-height:20px}.doubao-template-product-summary__quantity{flex-shrink:0;margin-left:8px;color:var(--neutral-70);font-size:13px;font-weight:400;line-height:20px}
|
|
@@ -1,78 +1 @@
|
|
|
1
|
-
.doubao-template-route-section {
|
|
2
|
-
flex-direction: column;
|
|
3
|
-
width: 100%;
|
|
4
|
-
display: flex;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.doubao-template-route-section__item {
|
|
8
|
-
width: 100%;
|
|
9
|
-
padding: 12px;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.doubao-template-route-section__title {
|
|
13
|
-
flex-direction: row;
|
|
14
|
-
align-items: center;
|
|
15
|
-
width: 100%;
|
|
16
|
-
min-width: 0;
|
|
17
|
-
height: 24px;
|
|
18
|
-
display: flex;
|
|
19
|
-
overflow: hidden;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.doubao-template-route-section__title-text, .doubao-template-route-section__description {
|
|
23
|
-
text-overflow: ellipsis;
|
|
24
|
-
white-space: nowrap;
|
|
25
|
-
font-family: PingFang SC, sans-serif;
|
|
26
|
-
font-style: normal;
|
|
27
|
-
overflow: hidden;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.doubao-template-route-section__title-text {
|
|
31
|
-
min-width: 0;
|
|
32
|
-
color: var(--neutral-100);
|
|
33
|
-
font-size: 16px;
|
|
34
|
-
font-weight: 500;
|
|
35
|
-
line-height: 24px;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.doubao-template-route-section__chevron {
|
|
39
|
-
flex-shrink: 0;
|
|
40
|
-
width: 12px;
|
|
41
|
-
height: 12px;
|
|
42
|
-
margin-left: 5px;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.doubao-template-route-section__tag {
|
|
46
|
-
box-sizing: border-box;
|
|
47
|
-
height: 18px;
|
|
48
|
-
color: var(--neutral-70);
|
|
49
|
-
text-overflow: ellipsis;
|
|
50
|
-
white-space: nowrap;
|
|
51
|
-
background-color: var(--bg-base-2-overlay);
|
|
52
|
-
border-radius: 4px;
|
|
53
|
-
flex-shrink: 0;
|
|
54
|
-
margin-right: 4px;
|
|
55
|
-
padding: 2px 4px;
|
|
56
|
-
font-family: PingFang SC, sans-serif;
|
|
57
|
-
font-size: 12px;
|
|
58
|
-
font-style: normal;
|
|
59
|
-
font-weight: 400;
|
|
60
|
-
line-height: 14px;
|
|
61
|
-
overflow: hidden;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.doubao-template-route-section__tag--highlight {
|
|
65
|
-
color: var(--primary-60);
|
|
66
|
-
background-color: var(--primary-transparent-1);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.doubao-template-route-section__description {
|
|
70
|
-
width: 100%;
|
|
71
|
-
height: 20px;
|
|
72
|
-
color: var(--neutral-50);
|
|
73
|
-
margin-top: 2px;
|
|
74
|
-
font-size: 13px;
|
|
75
|
-
font-weight: 400;
|
|
76
|
-
line-height: 20px;
|
|
77
|
-
}
|
|
78
|
-
|
|
1
|
+
.doubao-template-route-section{display:flex;flex-direction:column;width:100%}.doubao-template-route-section__item{padding:12px;width:100%}.doubao-template-route-section__title{display:flex;flex-direction:row;align-items:center;width:100%;min-width:0;height:24px;overflow:hidden}.doubao-template-route-section__title-text,.doubao-template-route-section__description{overflow:hidden;font-family:"PingFang SC",sans-serif;font-style:normal;text-overflow:ellipsis;white-space:nowrap}.doubao-template-route-section__title-text{min-width:0;color:var(--neutral-100);font-size:16px;font-weight:500;line-height:24px}.doubao-template-route-section__chevron{width:12px;height:12px;flex-shrink:0;margin-left:5px}.doubao-template-route-section__tag{height:18px;padding:2px 4px;margin-right:4px;box-sizing:border-box;flex-shrink:0;overflow:hidden;color:var(--neutral-70);font-family:"PingFang SC",sans-serif;font-size:12px;font-style:normal;font-weight:400;line-height:14px;text-overflow:ellipsis;white-space:nowrap;background-color:var(--bg-base-2-overlay);border-radius:4px}.doubao-template-route-section__tag--highlight{color:var(--primary-60);background-color:var(--primary-transparent-1)}.doubao-template-route-section__description{width:100%;height:20px;margin-top:2px;color:var(--neutral-50);font-size:13px;font-weight:400;line-height:20px}
|
|
@@ -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>;
|