Browse Source

Merge branch 'develop'

liuxiaona 2 years ago
parent
commit
0137a8a2c0
1 changed files with 32 additions and 2 deletions
  1. 32 2
      project/src/components/assembly/screen/channel.vue

+ 32 - 2
project/src/components/assembly/screen/channel.vue

@@ -2,7 +2,7 @@
2 2
   <div class="common-screen-item">
3 3
     <label class="common-screen-label" v-if="title && title != ''"
4 4
       :style="labelWidth ? 'width:auto;padding-left:30px' : ''">{{ title }}</label>
5
-    <div :style="width ? 'width:' + width : ''"
5
+    <!-- <div :style="width ? 'width:' + width : ''"
6 6
       :class="['common-screen-self-box', 'common-input-select', (valueCon && valueCon.val) && clearable ? 'common-input-select-hover' : '']">
7 7
       <div :class="['common-screen-self-con', (!valueCon || !valueCon.val) ? 'common-screen-self-placeholder' : '']">
8 8
         <div class="common-screen-self-con-div">
@@ -17,7 +17,20 @@
17 17
         <el-option v-for="item in options" :key="item.key" :label="item.val" :value="item.key">
18 18
         </el-option>
19 19
       </el-select>
20
-    </div>
20
+    </div> -->
21
+
22
+    <el-select
23
+      class="select-cls"
24
+      v-model="value"
25
+      :style="{width: width || '210px'}"
26
+      size="small"
27
+      :placeholder="placeholderVal || '请选择'"
28
+      :clearable="clearable"
29
+      filterable
30
+      @change="change"
31
+    >
32
+      <el-option v-for="item in options" :key="item.key" :label="item.val" :value="item.key" />
33
+    </el-select>
21 34
   </div>
22 35
 </template>
23 36
 <script>
@@ -296,4 +309,21 @@ export default {
296 309
   padding: 0 !important;
297 310
   text-align: center;
298 311
 }
312
+.select-cls {
313
+  /deep/ &.el-select .el-input.is-focus .el-input__inner,
314
+  /deep/ &.el-select .el-input__inner:focus {
315
+    border-color: #DCDFE6;
316
+  }
317
+  /deep/ .el-input__suffix {
318
+    border-top-right-radius: 4px;
319
+    border-bottom-right-radius: 4px;
320
+    border: 1px solid #DCDFE6;
321
+    right: 0;
322
+    width: 30px;
323
+    background-color: #F1F1F1;
324
+    .el-input__icon {
325
+      color: #909399;
326
+    }
327
+  }
328
+}
299 329
 </style>