quanwei
18 hours ago c441dea81bd86bdfb12dff35821fed51f4cc91c2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<template>
  <!--
        作者:YJ
    -->
    <div>
        <div class="common-form">
            <span>{{ curItem.name }}</span>
        </div>
        <el-form size="small" :model="curItem" label-width="100px">
            <!-- 显示数量 -->
            <el-form-item label="显示数量:">
                <el-input type="number" style="width: auto;" v-model="curItem.params.auto.showNum"
                          class="w-auto"></el-input>
            </el-form-item>
 
            <!--标题图片-->
            <el-form-item label="标题图片:">
              <div class="diy-hdzq-icon">
                <img v-img-url="curItem.style.image" alt="" @click="$parent.onEditorSelectImage(curItem.style, 'image')">
              </div>
              <div>建议尺寸750×40</div>
            </el-form-item>
            <!--文字颜色-->
            <el-form-item label="列表文字颜色:">
              <div class="d-s-c">
                <el-color-picker v-model="curItem.style.textColor"></el-color-picker>
                <el-button type="button" style="margin-left: 10px;" @click.stop="$parent.onEditorResetColor(curItem.style, 'textColor', '#000000')">重置</el-button>
              </div>
            </el-form-item>
            <!--列表背景图-->
            <el-form-item label="列表背景图:">
              <div class="diy-hdzq-icon">
                <img v-img-url="curItem.style.background" alt="" @click="$parent.onEditorSelectImage(curItem.style, 'background')">
              </div>
              <div>建议宽度750,高度根据显示数量自定义</div>
            </el-form-item>
        </el-form>
    </div>
</template>
 
<script>
    export default {
        data() {
            return {
 
            };
        },
        props: ['curItem', 'selectedIndex', 'opts'],
        created() {
 
        },
        methods: {
 
        }
    };
</script>
 
<style>
  .diy-hdzq-icon, .diy-hdzq-icon img{ width: auto; height: 50px;}
</style>