@kengic/uni 0.6.3-beta.17 → 0.6.3-beta.18
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.
|
@@ -8,9 +8,10 @@
|
|
|
8
8
|
v-model="devcodInputValue"
|
|
9
9
|
:focus="isFocusMap.devcodInputValue"
|
|
10
10
|
:placeholder="currentDevcodDsc"
|
|
11
|
-
placeholder-style="
|
|
11
|
+
:placeholder-style="devcodPlaceholderStyle"
|
|
12
12
|
trim
|
|
13
|
-
@blur="
|
|
13
|
+
@blur="onDevcodInputValueBlur"
|
|
14
|
+
@focus="onDevcodInputValueFocus"
|
|
14
15
|
@confirm="findDevmstByInputValue"
|
|
15
16
|
/>
|
|
16
17
|
<UniDataSelect :localdata="stationDatas" v-model="currentDevcod" :clear="true" />
|
|
@@ -55,6 +56,11 @@
|
|
|
55
56
|
*/
|
|
56
57
|
const devcodInputValue = ref('');
|
|
57
58
|
|
|
59
|
+
/**
|
|
60
|
+
* 工作站的输入框的占位符字符的样式.
|
|
61
|
+
*/
|
|
62
|
+
const devcodPlaceholderStyle = ref('color: #3ee');
|
|
63
|
+
|
|
58
64
|
/**
|
|
59
65
|
* 工作站下拉列表.
|
|
60
66
|
*/
|
|
@@ -122,6 +128,15 @@
|
|
|
122
128
|
nextTick().then(() => (isFocusMap.value[key] = true));
|
|
123
129
|
}
|
|
124
130
|
|
|
131
|
+
function onDevcodInputValueBlur() {
|
|
132
|
+
devcodPlaceholderStyle.value = 'color: #333';
|
|
133
|
+
findDevmstByInputValue();
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
function onDevcodInputValueFocus() {
|
|
137
|
+
devcodPlaceholderStyle.value = 'color: transparent';
|
|
138
|
+
}
|
|
139
|
+
|
|
125
140
|
/**
|
|
126
141
|
* 根据输入的值(作为工作站编号), 查找工作站.
|
|
127
142
|
*/
|
|
@@ -249,7 +264,7 @@
|
|
|
249
264
|
position: relative;
|
|
250
265
|
}
|
|
251
266
|
|
|
252
|
-
:deep(.uni-popup-dialog) .uni-dialog-content > .row > .value.devcod
|
|
267
|
+
:deep(.uni-popup-dialog) .uni-dialog-content > .row > .value.devcod > .uni-easyinput {
|
|
253
268
|
color: rgb(51, 51, 51);
|
|
254
269
|
position: absolute;
|
|
255
270
|
left: 0;
|
|
@@ -258,7 +273,7 @@
|
|
|
258
273
|
width: calc(100% - 26px);
|
|
259
274
|
}
|
|
260
275
|
|
|
261
|
-
:deep(.uni-popup-dialog) .uni-dialog-content > .row > .value.devcod
|
|
276
|
+
:deep(.uni-popup-dialog) .uni-dialog-content > .row > .value.devcod > .uni-easyinput > .uni-easyinput__content {
|
|
262
277
|
border-radius: 3px 0 0 3px;
|
|
263
278
|
}
|
|
264
279
|
</style>
|