@kengic/uni 0.6.3-beta.17 → 0.6.3-beta.19

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="color: #333"
11
+ :placeholder-style="devcodPlaceholderStyle"
12
12
  trim
13
- @blur="findDevmstByInputValue"
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,23 @@
122
128
  nextTick().then(() => (isFocusMap.value[key] = true));
123
129
  }
124
130
 
131
+ /**
132
+ * 工作站的输入框失去焦点.
133
+ */
134
+ async function onDevcodInputValueBlur() {
135
+ devcodPlaceholderStyle.value = 'color: #333';
136
+
137
+ await nextTick();
138
+ await findDevmstByInputValue();
139
+ }
140
+
141
+ /**
142
+ * 工作站的输入框聚焦.
143
+ */
144
+ function onDevcodInputValueFocus() {
145
+ devcodPlaceholderStyle.value = 'color: #999';
146
+ }
147
+
125
148
  /**
126
149
  * 根据输入的值(作为工作站编号), 查找工作站.
127
150
  */
@@ -249,7 +272,7 @@
249
272
  position: relative;
250
273
  }
251
274
 
252
- :deep(.uni-popup-dialog) .uni-dialog-content > .row > .value.devcod :deep(.uni-easyinput) {
275
+ :deep(.uni-popup-dialog) .uni-dialog-content > .row > .value.devcod > .uni-easyinput {
253
276
  color: rgb(51, 51, 51);
254
277
  position: absolute;
255
278
  left: 0;
@@ -258,7 +281,7 @@
258
281
  width: calc(100% - 26px);
259
282
  }
260
283
 
261
- :deep(.uni-popup-dialog) .uni-dialog-content > .row > .value.devcod :deep(.uni-easyinput) > .uni-easyinput__content {
284
+ :deep(.uni-popup-dialog) .uni-dialog-content > .row > .value.devcod > .uni-easyinput > .uni-easyinput__content {
262
285
  border-radius: 3px 0 0 3px;
263
286
  }
264
287
  </style>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/uni",
3
- "version": "0.6.3-beta.17",
3
+ "version": "0.6.3-beta.19",
4
4
  "scripts": {
5
5
  "build": "npm run use-node && rimraf dist && vue-tsc && vite build",
6
6
  "------ -------------------------------------------": "",