Commit 74cfef99 authored by your yuchenglong's avatar your yuchenglong

update:步骤条样式修改

parent b990d822
...@@ -2,13 +2,13 @@ ...@@ -2,13 +2,13 @@
<div class="infoEditing"> <div class="infoEditing">
<el-form ref="infoEditForm" :model="infoEditForm" label-width="80px"> <el-form ref="infoEditForm" :model="infoEditForm" label-width="80px">
<el-form-item label="标题:"> <el-form-item label="标题:">
<el-input v-model="infoEditForm.title"></el-input> <el-input v-model="infoEditForm.title" maxlength="30"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="介绍:"> <el-form-item label="介绍:">
<el-input type="textarea" v-model="infoEditForm.desc"></el-input> <el-input type="textarea" v-model="infoEditForm.desc" maxlength="1000" rows="4"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="图片:"> <el-form-item label="图片:">
<el-upload action="#" list-type="picture-card" :auto-upload="false"> <el-upload action="#" :class="{hide:hideUpload}" list-type="picture-card" :auto-upload="false" limit="9">
<template #default> <template #default>
<i class="el-icon-plus"></i> <i class="el-icon-plus"></i>
</template> </template>
...@@ -17,27 +17,12 @@ ...@@ -17,27 +17,12 @@
<img <img
class="el-upload-list__item-thumbnail" class="el-upload-list__item-thumbnail"
:src="file.url" :src="file.url"
alt="" alt=""/>
/>
<span class="el-upload-list__item-actions"> <span class="el-upload-list__item-actions">
<span
class="el-upload-list__item-preview"
@click="handlePictureCardPreview(file)"
>
<i class="el-icon-zoom-in"></i>
</span>
<span <span
v-if="!disabled" v-if="!disabled"
class="el-upload-list__item-delete" class="el-upload-list__item-delete"
@click="handleDownload(file)" @click="handleRemove(file)">
>
<i class="el-icon-download"></i>
</span>
<span
v-if="!disabled"
class="el-upload-list__item-delete"
@click="handleRemove(file)"
>
<i class="el-icon-delete"></i> <i class="el-icon-delete"></i>
</span> </span>
</span> </span>
...@@ -63,19 +48,14 @@ export default { ...@@ -63,19 +48,14 @@ export default {
dialogImageUrl: "", dialogImageUrl: "",
dialogVisible: false, dialogVisible: false,
disabled: false, disabled: false,
hideUpload: false
}; };
}, },
methods: { methods: {
// 图片删除
handleRemove(file) { handleRemove(file) {
console.log(file); console.log(file);
}, }
handlePictureCardPreview(file) {
this.dialogImageUrl = file.url;
this.dialogVisible = true;
},
handleDownload(file) {
console.log(file);
},
}, },
}; };
</script> </script>
......
...@@ -17,22 +17,11 @@ ...@@ -17,22 +17,11 @@
<addProduc v-else-if="active === 2" /> <addProduc v-else-if="active === 2" />
<spellOrderSet v-else /> <spellOrderSet v-else />
</div> </div>
<div class="btn"> <div class="stepsBtn">
<el-button style="margin-top: 12px" @click="prev" v-show="active >= 2" <el-button @click="prev" v-show="active >= 2" style="margin-right: 20px">上一步</el-button>
>上一步</el-button <el-button @click="next" v-show="active < 3" style="margin-right: 20px">下一步</el-button>
> <el-button @click="cancel" v-show="active == 1">取消</el-button>
<el-button style="margin-top: 12px" v-show="active < 3" @click="next" <el-button @click="confirmRelease" v-show="active == 3" type="primary">确认发布</el-button>
>下一步</el-button
>
<el-button style="margin-top: 12px" v-show="active == 1" @click="cancel"
>取消</el-button
>
<el-button
style="margin-top: 12px"
v-show="active == 3"
@click="confirmRelease"
>确认发布</el-button
>
</div> </div>
</div> </div>
</template> </template>
...@@ -49,18 +38,18 @@ export default { ...@@ -49,18 +38,18 @@ export default {
}, },
data() { data() {
return { return {
active: 1, active: 1, // 步骤条状态
}; };
}, },
methods: { methods: {
// 上一步 // 上一步
prev() { prev() {
if (this.active-- <= 0) this.active = 0; this.active--;
}, },
// 下一步 // 下一步
next() { next() {
if (this.active++ > 2) this.active = 0; this.active++;
}, },
// 取消 // 取消
cancel() { cancel() {
...@@ -69,6 +58,7 @@ export default { ...@@ -69,6 +58,7 @@ export default {
// 确认发布 // 确认发布
confirmRelease() {}, confirmRelease() {},
}, },
created() {},
}; };
</script> </script>
...@@ -78,12 +68,14 @@ export default { ...@@ -78,12 +68,14 @@ export default {
box-sizing: border-box; box-sizing: border-box;
} }
.headTitle { .headTitle {
width: 75%;
font-size: 18px; font-size: 18px;
margin-bottom:30px; margin:0 auto 40px auto;
} }
.steps { .steps {
display: flex; display: flex;
justify-content: center; justify-content: center;
margin-bottom: 50px;
} }
.steps /deep/ .el-step__icon { .steps /deep/ .el-step__icon {
width: 50px; width: 50px;
...@@ -92,11 +84,12 @@ export default { ...@@ -92,11 +84,12 @@ export default {
.steps /deep/ .el-step.is-horizontal .el-step__line { .steps /deep/ .el-step.is-horizontal .el-step__line {
top: 25px; top: 25px;
} }
.content,.btn{ .content,.stepsBtn {
width: 64%; width: 64%;
margin: 20px auto; margin: 20px auto;
} }
.btn { .stepsBtn {
text-align: center; text-align: center;
margin-top: 50px;
} }
</style> </style>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment