计划组件允许您定义产品需要什么类型的计划。有两种使用方式:在产品的主概览页面中,或者在您需要讨论具有附加要求的特定功能的页面中。
在概览页面中,使用 <Plan type="<PLAN_TYPE>" />
要指定特殊功能,请使用 <Plan id="<FIRST_PRODUCT>.<SECOND-PRODUCT>.properties.availability.summary" />。该组件从 src/content/plans/ 中的 index.json 文件拉取信息。
请参阅下面的示例以获取更多信息。
import { Plan } from "~/components"
<Plan type="all" />
<Plan type="paid" />
<Plan type="pro" />
<Plan type="business" />
<Plan type="add-on" />
<Plan type="ent-add-on" />
<Plan type="workers-all" />
<Plan type="workers-paid" />
<Plan id="web3.ethereum.properties.availability.summary" />