@doubao-apps/template 0.0.35-rc.0 → 0.0.35

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.
@@ -9,7 +9,7 @@ function isTicketOrderTextEmpty(content) {
9
9
  return null == content || '' === content;
10
10
  }
11
11
  function TicketOrderCard(props) {
12
- const { moreText, showMore = true, routeItems = [], infoItems = [], feeItems = [], totalLabel, totalPrice, totalContent, primaryActionText, secondaryActionText, className, style, onClick, onMoreClick, onPrimaryActionClick, onSecondaryActionClick } = props;
12
+ const { moreText, showMore = true, routeItems = [], infoItems = [], feeItems = [], totalLabel, totalPrice, totalContent, primaryActionText, primaryActionButtonProps, secondaryActionText, secondaryActionButtonProps, className, style, onClick, onMoreClick, onPrimaryActionClick, onSecondaryActionClick } = props;
13
13
  const hasRouteItems = hasTemplateRouteSectionItems(routeItems);
14
14
  const hasInfoSection = infoItems.length > 0 || feeItems.length > 0 || void 0 !== totalContent || !isTicketOrderTextEmpty(totalLabel) || !isTicketOrderTextEmpty(totalPrice);
15
15
  const hasDefaultBody = hasRouteItems || hasInfoSection;
@@ -21,7 +21,7 @@ function TicketOrderCard(props) {
21
21
  {hasInfoSection ? <TemplateInfoSection infoItems={infoItems} feeItems={feeItems} totalLabel={totalLabel} totalPrice={totalPrice} totalContent={totalContent}/> : null}
22
22
  </view> : null}
23
23
 
24
- <TemplateActionBar secondaryActionText={secondaryActionText} primaryActionText={primaryActionText} onSecondaryActionClick={onSecondaryActionClick} onPrimaryActionClick={onPrimaryActionClick}/>
24
+ <TemplateActionBar secondaryActionText={secondaryActionText} secondaryActionButtonProps={secondaryActionButtonProps} primaryActionText={primaryActionText} primaryActionButtonProps={primaryActionButtonProps} onSecondaryActionClick={onSecondaryActionClick} onPrimaryActionClick={onPrimaryActionClick}/>
25
25
  </view>;
26
26
  }
27
27
  export { TicketOrderCard };
@@ -5,14 +5,14 @@
5
5
  --doubao-transport-list-card-main-text: var(--neutral-100);
6
6
  --doubao-transport-list-card-secondary-text: var(--neutral-50);
7
7
  --doubao-transport-list-card-placeholder-bg: var(--bg-base-1-overlay);
8
- --doubao-btn-border-radius: var(--doubao-transport-list-card-view-more-radius, 8px);
9
- --doubao-btn-default-height: var(--doubao-transport-list-card-view-more-height, 44px);
8
+ --doubao-btn-border-radius: 8px;
9
+ --doubao-btn-default-height: 44px;
10
10
  --doubao-btn-default-padding-x: 12px;
11
11
  --doubao-btn-default-padding-y: 0;
12
- --doubao-btn-default-font-size: var(--doubao-transport-list-card-view-more-font-size, 16px);
13
- --doubao-btn-default-line-height: var(--doubao-transport-list-card-view-more-line-height, 22px);
14
- --doubao-btn-default-bg: var(--doubao-transport-list-card-view-more-bg, var(--bg-base-2-overlay));
15
- --doubao-btn-default-text: var(--doubao-transport-list-card-view-more-text, var(--neutral-100));
12
+ --doubao-btn-default-font-size: 16px;
13
+ --doubao-btn-default-line-height: 22px;
14
+ --doubao-btn-default-bg: var(--bg-base-2-overlay);
15
+ --doubao-btn-default-text: var(--neutral-100);
16
16
  box-sizing: border-box;
17
17
  background-color: var(--doubao-transport-list-card-bg);
18
18
  border: 1px solid var(--doubao-transport-list-card-border);