Commit 674c9338 authored by zhengke's avatar zhengke

1

parent a466d932
<style>
.multilineText_Input {
width: 500px;
height: 120px;
border: 1px solid #DCDFE6;
border-radius: 4px;
margin-left:20px;
background: #fff;
font-size:25px;
color:#c0c4d6;
line-height: 60px;
padding-left:20px;
}
.diy-multiple>div{
padding: 24px;
font-size: 28px;
}
</style>
<template>
<div :class="{'active':searchData.isCked}">
<div class="diy-component-options" v-if="searchData.isCked">
<el-button type="primary" icon="el-icon-delete" style="left: -25px; top: 0px;" @click="delPlugin()"></el-button>
<el-button type="primary" icon="el-icon-document-copy" style="left: -25px; top: 30px;"></el-button>
<el-button type="primary" icon="el-icon-arrow-up" v-if="index>0" @click="resetSord(0)"
style="right: -25px; top: 0;"></el-button>
<el-button type="primary" icon="el-icon-arrow-down" v-if="index!=dataLeng-1" @click="resetSord(1)"
style="right: -25px; top: 30px;"></el-button>
</div>
<div class="diy-component-preview">
<div class="diy-multiple">
<div style="display:flex;align-items:center;">
<div style="color:red;" v-show="searchData.CompData.IsRequire">*</div>
<div>{{searchData.CompData.Name}}</div>
<div class="multilineText_Input">
<span v-if="searchData.CompData.WordsLength>0">最多输入{{searchData.CompData.WordsLength}}个字</span>
</div>
</div>
</div>
</div>
<div class="diy-component-edit" v-if="searchData.isCked">
<el-form label-width="100px">
<el-form-item label="名称">
<el-input v-model="searchData.CompData.Name" size="small"></el-input>
</el-form-item>
<el-form-item label="字数">
<el-input type="text" v-model="searchData.CompData.WordsLength" @keyup.native="checkInteger(searchData.CompData,'WordsLength')" size="small"></el-input>
</el-form-item>
<el-form-item label="是否必填">
<el-switch v-model="searchData.CompData.IsRequire">
</el-switch>
</el-form-item>
</el-form>
</div>
</div>
</template>
<script>
export default {
props: ["searchData", "index", "dataLeng"],
data() {
return {
};
},
created() {},
methods: {
//向父组件传值 并调用排序
resetSord(IsUp) {
this.$emit('getSord', this.index, IsUp);
},
//点击触发父组件删除
delPlugin() {
this.$emit('comDelPlugin', this.index);
}
},
mounted() {}
};
</script>
......@@ -317,6 +317,9 @@
<div v-for="(item,index) in addMsg.FormData" :key="index" @click="getItem(item)">
<singletextbox v-if="item.CompKey=='SingleLineText'" :searchData="item" @getSord="getSord"
@comDelPlugin="comDelPlugin" :index="index" :dataLeng="addMsg.FormData.length"></singletextbox>
<multilinetext v-if="item.CompKey=='MultiLineText'" :searchData="item" @getSord="getSord" @comDelPlugin="comDelPlugin"
:index="index" :dataLeng="addMsg.FormData.length"></multilinetext>
</div>
</div>
</div>
......
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