feat(recipe edit): 修改删除菜谱按钮位置
修改删除菜谱按钮位置 Signed-off-by: Ching <loooching@gmail.com>
This commit is contained in:
parent
aa2f401636
commit
306e54bcd5
@ -54,7 +54,16 @@
|
|||||||
<el-input type="textarea" v-model="form.note"></el-input>
|
<el-input type="textarea" v-model="form.note"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-col :span="12" v-if="recipe_id">
|
<el-col :span="8" v-if="recipe_id">
|
||||||
|
<el-button
|
||||||
|
type="danger"
|
||||||
|
plain
|
||||||
|
class="summit-recipe"
|
||||||
|
@click="onSubmitDelete(recipe_id)"
|
||||||
|
>删除</el-button
|
||||||
|
>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="16" v-if="recipe_id">
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
plain
|
plain
|
||||||
@ -72,15 +81,6 @@
|
|||||||
>提交</el-button
|
>提交</el-button
|
||||||
>
|
>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12" v-if="recipe_id">
|
|
||||||
<el-button
|
|
||||||
type="danger"
|
|
||||||
plain
|
|
||||||
class="summit-recipe"
|
|
||||||
@click="onSubmitDelete(recipe_id)"
|
|
||||||
>删除</el-button
|
|
||||||
>
|
|
||||||
</el-col>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|||||||
@ -44,7 +44,20 @@
|
|||||||
</van-cell-group>
|
</van-cell-group>
|
||||||
<div class="recipe-create">
|
<div class="recipe-create">
|
||||||
<van-row gutter="20">
|
<van-row gutter="20">
|
||||||
<van-col span="12" v-if="recipe_id">
|
<van-col span="8" v-if="recipe_id">
|
||||||
|
<van-button
|
||||||
|
class="submit-button"
|
||||||
|
round
|
||||||
|
type="danger"
|
||||||
|
plain
|
||||||
|
hairline
|
||||||
|
:disabled="disable_submit"
|
||||||
|
@click="onSubmitDelete(recipe_id)"
|
||||||
|
:loading="loading"
|
||||||
|
>删除</van-button
|
||||||
|
>
|
||||||
|
</van-col>
|
||||||
|
<van-col span="16" v-if="recipe_id">
|
||||||
<van-button
|
<van-button
|
||||||
class="submit-button"
|
class="submit-button"
|
||||||
round
|
round
|
||||||
@ -70,19 +83,6 @@
|
|||||||
>提交</van-button
|
>提交</van-button
|
||||||
>
|
>
|
||||||
</van-col>
|
</van-col>
|
||||||
<van-col span="12" v-if="recipe_id">
|
|
||||||
<van-button
|
|
||||||
class="submit-button"
|
|
||||||
round
|
|
||||||
type="danger"
|
|
||||||
plain
|
|
||||||
hairline
|
|
||||||
:disabled="disable_submit"
|
|
||||||
@click="onSubmitDelete(recipe_id)"
|
|
||||||
:loading="loading"
|
|
||||||
>删除</van-button
|
|
||||||
>
|
|
||||||
</van-col>
|
|
||||||
</van-row>
|
</van-row>
|
||||||
</div>
|
</div>
|
||||||
</van-form>
|
</van-form>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user