[レスポンス運賃]タブドロップダウンメニュー
7005 ワード
インプリメンテーションコード
shippingButtonClick = event => {
const { buttonValue } = this.state;
this.setState({
buttonValue: buttonValue === true ? false : true,
});
};
.
.
.
.
<div className="shippingFeeBox">
<div className="shippingFee">배송비</div>
<div className="shippingListsBox">
<ul className="shippingFeeLists">
개당 {productInfo.shippingFee}원
</ul>
<li
className={
buttonValue === true ? 'shippingFeeNone' : 'shippingLists'
}
>
<div className="typeBox">
<p className="shippingType">배송 타입</p>
<p className="shippingTypeValue">
{productInfo.shippingTypeValue}
</p>
</div>
<div className="typeBox">
<p className="payType">결제 방식</p>
<p className="payTypeValue">{productInfo.payTypeValue}</p>
</div>
</li>
</div>
<bitton
className="shippingFeeButton"
onClick={this.shippingButtonClick}
>
∨
</bitton>
コード運動原理
結果
Reference
この問題について([レスポンス運賃]タブドロップダウンメニュー), 我々は、より多くの情報をここで見つけました https://velog.io/@yshh0514/React-배송비-탭-열고-닫기テキストは自由に共有またはコピーできます。ただし、このドキュメントのURLは参考URLとして残しておいてください。
Collection and Share based on the CC Protocol