- Full-Stack Vue.js 2 and Laravel 5
- Anthony Gore
- 33字
- 2021-07-02 19:57:22
Hiding the More button
Once theAboutsection has been expanded, we want to hide theMorebutton as it's no longer needed. We can use thev-ifdirective to achieve this in conjunction with thecontractedproperty.
index.html:
<button v-if="contracted" class="more" v-on:click="contracted = false">
+ More
</button>
推薦閱讀
- 深入理解Android(卷I)
- Learning ASP.NET Core 2.0
- 數(shù)據(jù)結(jié)構(gòu)習題精解(C語言實現(xiàn)+微課視頻)
- C語言程序設(shè)計
- Python 3網(wǎng)絡(luò)爬蟲實戰(zhàn)
- C++程序設(shè)計基礎(chǔ)教程
- Python面向?qū)ο缶幊蹋簶?gòu)建游戲和GUI
- C語言程序設(shè)計同步訓練與上機指導(第三版)
- Mastering React
- 深度學習程序設(shè)計實戰(zhàn)
- Java高級程序設(shè)計
- 量子計算機編程:從入門到實踐
- Getting Started with hapi.js
- Java程序設(shè)計及應用開發(fā)
- Practical Responsive Typography