@@ -10,7 +10,7 @@
<div class="content">
<step1 v-if="currentTab === 0" ref="data001" @nextStep="nextStep" />
<step2 v-if="currentTab === 1" @prevStep="prevStep" @nextStep="nextStep" />
- <step3 v-if="currentTab === 2" @submitForm="submitForm" @prevStep="prevStep" />
+ <step3 v-if="currentTab === 2" @submitForm="submitForm" @prevStep="prevStep" :disabled="disabled" />
</div>
</a-card>
@@ -82,7 +82,7 @@
<a-form-item :wrapperCol="{span: 19, offset: 5}">
<a-button style="margin-left: 8px" @click="prevStep">上一步</a-button>
- <a-button style="margin-left: 8px" @click="submitForm">提交</a-button>
+ <a-button v-if="!disabled" style="margin-left: 8px" @click="submitForm">提交</a-button>
</a-form-item>
@@ -97,7 +97,14 @@
export default {
name: 'step3',
- props: {},
+ props: {
+ //表单禁用
+ disabled: {
+ type: Boolean,
+ default: false,
+ required: false
+ }
+ },
data() {
return {
yangpins: {},