设置离子段模式后,在离子实验室中渲染后,它们看起来仍然不同。
我试过将离子段和离子工具栏的模式设置为"md“,但它们看起来仍然不同。
https://ibb.co/HV75Ly2这里是它们在设置模式后的图像。
<ion-toolbar mode="md">
<ion-segment scrollable mode="md">
<ion-segment-button value="top" checked>
TOP
</ion-segment-button>
<ion-segment-button value="nfl">
NFL
</ion-segment-button>
<ion-segment-button value="nba">
NBA
</ion-segment-button>
<ion-segment-button value="mlb">
MLB
</ion-segment-button>
<ion-segment-button value="nhl">
NHL
</ion-segment-button>
<ion-segment-button value="ncaaf">
NCAAF
</ion-segment-button>
<ion-segment-button value="ncaab">
NCAAB
</ion-segment-button>
</ion-segment>
</ion-toolbar>我希望ion-segment在两个平台上看起来都像android版本,但目前它们看起来仍然不同。
发布于 2019-08-05 15:07:43
由于离子4测试版之一,您还必须设置每个组件的mode。
这也意味着ion-segment-button组件,如:
<ion-toolbar mode="md">
<ion-segment scrollable mode="md">
<ion-segment-button mode="md" value="top" checked>
TOP
</ion-segment-button>
<ion-segment-button mode="md" value="nfl">
NFL
</ion-segment-button>
<ion-segment-button mode="md" value="nba">
NBA
</ion-segment-button>
<ion-segment-button mode="md" value="mlb">
MLB
</ion-segment-button>
<ion-segment-button mode="md" value="nhl">
NHL
</ion-segment-button>
<ion-segment-button mode="md" value="ncaaf">
NCAAF
</ion-segment-button>
<ion-segment-button mode="md" value="ncaab">
NCAAB
</ion-segment-button>
</ion-segment>
</ion-toolbar>https://stackoverflow.com/questions/57335004
复制相似问题