openatc-components 0.4.8 → 0.4.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -24,19 +24,20 @@
|
|
|
24
24
|
<!-- <patternwalksvg :showWalk="item.peddirection" :Width="'32'" :Height="'34'"></patternwalksvg> -->
|
|
25
25
|
<xdrdirselector Width="60px" Height="60px" Widths="50px" Heights="50px" :showlist="item.direction"></xdrdirselector>
|
|
26
26
|
</div>
|
|
27
|
-
<div v-if="isShowTip" class="box" style="position: absolute; left:40px; width:40px; top: -1px;">
|
|
28
|
-
<div class="ring-nums">{{$t('openatccomponents.phase.phase')}}{{item.id}}</div>
|
|
27
|
+
<div v-if="isShowTip" class="box" style="position: absolute; left:40px; width:40px; top: -1px;z-index:9999">
|
|
28
|
+
<div @click="focusInput(item.id)" class="ring-nums">{{$t('openatccomponents.phase.phase')}}{{item.id}}</div>
|
|
29
29
|
<div v-if="isMove" class="ring-nums">{{item.split}}</div>
|
|
30
30
|
<el-input-number
|
|
31
31
|
v-if="!isMove"
|
|
32
32
|
class="ring-nums"
|
|
33
|
+
:ref="'inputNumbers' + item.id"
|
|
33
34
|
size="small"
|
|
34
35
|
:controls="false"
|
|
35
36
|
:min="0"
|
|
36
37
|
:step="1"
|
|
37
38
|
v-model.number="item.split"
|
|
38
39
|
@change="handleEdit(item)"
|
|
39
|
-
style="width:
|
|
40
|
+
style="width: 42px"
|
|
40
41
|
></el-input-number>
|
|
41
42
|
</div>
|
|
42
43
|
</div>
|
|
@@ -424,6 +425,11 @@ export default {
|
|
|
424
425
|
}
|
|
425
426
|
})
|
|
426
427
|
},
|
|
428
|
+
focusInput (id) {
|
|
429
|
+
if (!this.isMove) {
|
|
430
|
+
this.$refs['inputNumbers' + id][0].focus()
|
|
431
|
+
}
|
|
432
|
+
},
|
|
427
433
|
handleEdit (val) {
|
|
428
434
|
this.patternStatusList.map(d => {
|
|
429
435
|
d.map(r => {
|