ZBLOG

// 显示步骤条模态框 showSteps() { console.log(this.formState); // 注意:此处应该是一个闭合的引号,而非反引号 this.changeModal = true; // 设置模态框显示状态为true // 发起HTTP请求获取数据 this.$httpacm .post(`/gw/api/acm-service/aomUse/aomExamLogQuery`, { docExamSeg: thi...

要让步骤条的前面显示对号,可以使用slot插槽来自定义每个步骤的图标。修改代码如下:

<a-steps direction="vertical" :current="currentNum.length - 1" class="steps-style">
    <a-step v-for="current in currentNum" :key="current.id">
        <template slot="title">
            <div class="desc-info">
                <div style="margin-left: 10px">{{ current.operateNode }}</div>
            </div>
        </template>
        <template slot="description">
            <div class="desc-info" style="margin-top: 15px">
                <div>{{ formatDateTime(current.examDt) }}</div>
                <div v-if="current.operateType === '拒绝'" style="color:#d53d2a">拒绝</div>
                <div v-else style="color: #2eabff">{{ current.operateType }}</div>
            </div>
        </template>
        <!-- 在这里添加自定义的图标 -->
        <template slot-scope="{ icon }">
            <span v-if="icon === 'wait'">&#10003;</span> <!-- 对号图标 -->
        </template>
    </a-step>
</a-steps>

在模板中,我们为每个步骤添加了一个自定义的图标插槽,通过判断当前步骤的状态来显示不同的图标。在上述代码中,我们使用了 “✓” 实体编码来表示对号图标。

注意:这只是一个简单的示例,实际应用中你可能需要根据具体的步骤状态来显示不同的图标或样式。


内容由零声教学AI助手提供,问题来源于学员提问

本站部分文章来源于网络,版权归原作者所有,如有侵权请联系站长删除。
转载请注明出处:https://golang.0voice.com/?id=13603

分享:
扫描分享到社交APP
上一篇
下一篇
发表列表
游客 游客
此处应有掌声~
评论列表

还没有评论,快来说点什么吧~

联系我们

在线咨询: 点击这里给我发消息

微信号:3007537140

上班时间: 10:30-22:30

关注我们
x

注册

已经有帐号?