【发布时间】:2018-12-28 11:55:52
【问题描述】:
我已经使用 vue js 制作了一个表单向导,并且在第五步中,但我想选择下拉菜单到 middl 步骤,如第三步和第四步使用索引隐藏和显示。
看到这个插件:https://cristijora.github.io/vue-form-wizard/#/?id=methods
当你选择显示时:
Wizard.vue
<template>
<div>
<div class="dropdown">
<select name="" id="">
<option value="hide">hide</option>
<option value="show">show</option>
</select>
</div>
<form-wizard @on-complete="onComplete">
<tab-content title="first"
icon="ti-user">
first
</tab-content>
<tab-content title="second" icon="ti-settings">
second
</tab-content>
<tab-content title="four" icon="ti-settings">
four
</tab-content>
<tab-content title="five"
icon="ti-settings">
five
</tab-content>
<tab-content title="Last step"
icon="ti-check">
Yuhuuu! This seems pretty damn simple
</tab-content>
</form-wizard>
</div>
</template>
【问题讨论】:
-
在选择下拉菜单中选择隐藏时是否要隐藏每个选项卡内容?
-
只有第二个和四个
使用索引隐藏显示,因为它刚刚使用数组显示我添加静态 -
查看更新我的问题
-
我该如何解决这种情况?
标签: javascript laravel vue.js