mirror of
http://112.124.100.131/ebiz-ai/ebiz-base-ai.git
synced 2025-12-06 09:26:48 +08:00
feat(comparison): 添加开始比对按钮的禁用逻辑
- 在按钮上添加 :disabled 属性,当 comparisonMap 长度小于等于 1 时禁用按钮 - 优化了按钮的可操作性,防止用户在没有足够比较项时开始比对
This commit is contained in:
@@ -37,7 +37,14 @@
|
|||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
<div class="button-group">
|
<div class="button-group">
|
||||||
<van-button size="large" class="fs14 fw600" style="color: #fff; background: #2e5ca9" @click="showComparison = true">开始比对</van-button>
|
<van-button
|
||||||
|
size="large"
|
||||||
|
class="fs14 fw600"
|
||||||
|
style="color: #fff; background: #2e5ca9"
|
||||||
|
@click="showComparison = true"
|
||||||
|
:disabled="comparisonMap.length <= 1"
|
||||||
|
>开始比对</van-button
|
||||||
|
>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user