26375
This commit is contained in:
@@ -44,7 +44,7 @@
|
|||||||
v-model="form.voteItems"
|
v-model="form.voteItems"
|
||||||
:animation="340"
|
:animation="340"
|
||||||
group="select">
|
group="select">
|
||||||
<el-form-item style="width: 100%" label-width="80px" :label="'选项' + (index + 1)" v-for="(item, index) in form.voteItems" :key="'选项' + (index + 1)">
|
<el-form-item class="move-item" style="width: 100%" label-width="80px" :label="'选项' + (index + 1)" v-for="(item, index) in form.voteItems" :key="'选项' + (index + 1)">
|
||||||
<div class="form-flex">
|
<div class="form-flex">
|
||||||
<el-input show-word-limit style="width:400px" v-model="item.content" :maxlength="200" size="small" placeholder="请输入选项"></el-input>
|
<el-input show-word-limit style="width:400px" v-model="item.content" :maxlength="200" size="small" placeholder="请输入选项"></el-input>
|
||||||
<el-button type="danger" size="small" @click="removeVote(index)">删除</el-button>
|
<el-button type="danger" size="small" @click="removeVote(index)">删除</el-button>
|
||||||
@@ -226,6 +226,11 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
.move-item {
|
||||||
|
::v-deep .el-form-item__label {
|
||||||
|
cursor: move;
|
||||||
|
}
|
||||||
|
}
|
||||||
.vite-form__item {
|
.vite-form__item {
|
||||||
.form-flex {
|
.form-flex {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
Reference in New Issue
Block a user