Commit e9c2dd1d authored by liujiangnan's avatar liujiangnan

feat: 锁定页面

parent 0d5b7a31
...@@ -272,7 +272,8 @@ ...@@ -272,7 +272,8 @@
:current-page.sync="currentPageIndex" :current-page.sync="currentPageIndex"
:page-size="1" :page-size="1"
layout="prev, pager, next" layout="prev, pager, next"
:total="pages.length"> :total="pages.length"
:disabled="isPageLocked">
</el-pagination> </el-pagination>
</div> </div>
...@@ -298,6 +299,14 @@ ...@@ -298,6 +299,14 @@
:disabled="audioLoading" :disabled="audioLoading"
style="width: 200px; margin-left: 20px;"> style="width: 200px; margin-left: 20px;">
</el-slider> </el-slider>
<el-button
size="small"
:type="isPageLocked ? 'danger' : 'primary'"
@click="togglePageLock"
style="margin-left: 20px;">
<i :class="isPageLocked ? 'el-icon-lock' : 'el-icon-unlock'"></i>
{{ isPageLocked ? '解锁页面' : '锁定页面' }}
</el-button>
</div> </div>
</div> </div>
</el-card> </el-card>
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment