mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-09-25 09:49:57 +08:00
fix(form): dialog,drawer disable时确认按钮置灰
This commit is contained in:
parent
90205f5395
commit
ded82aae41
@ -46,7 +46,7 @@
|
|||||||
<TMagicButton v-if="hasStep && stepCount > stepActive" type="info" size="small" @click="nextStep"
|
<TMagicButton v-if="hasStep && stepCount > stepActive" type="info" size="small" @click="nextStep"
|
||||||
>下一步</TMagicButton
|
>下一步</TMagicButton
|
||||||
>
|
>
|
||||||
<TMagicButton v-else type="primary" size="small" :loading="saveFetch" @click="save">{{
|
<TMagicButton v-else type="primary" size="small" :disabled="disabled" :loading="saveFetch" @click="save">{{
|
||||||
confirmText
|
confirmText
|
||||||
}}</TMagicButton>
|
}}</TMagicButton>
|
||||||
</slot>
|
</slot>
|
||||||
|
@ -36,7 +36,9 @@
|
|||||||
<TMagicCol :span="12">
|
<TMagicCol :span="12">
|
||||||
<slot name="footer">
|
<slot name="footer">
|
||||||
<TMagicButton @click="hide">关闭</TMagicButton>
|
<TMagicButton @click="hide">关闭</TMagicButton>
|
||||||
<TMagicButton type="primary" @click="submitHandler" :loading="saveFetch">{{ confirmText }}</TMagicButton>
|
<TMagicButton type="primary" :disabled="disabled" :loading="saveFetch" @click="submitHandler">{{
|
||||||
|
confirmText
|
||||||
|
}}</TMagicButton>
|
||||||
</slot>
|
</slot>
|
||||||
</TMagicCol>
|
</TMagicCol>
|
||||||
</TMagicRow>
|
</TMagicRow>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user