hookehuyr

fix(BrandModelPicker): 为输入框添加cursorSpacing属性避免键盘遮挡

...@@ -89,6 +89,7 @@ ...@@ -89,6 +89,7 @@
89 v-model="customBrand" 89 v-model="customBrand"
90 placeholder="请输入品牌名称" 90 placeholder="请输入品牌名称"
91 class="custom-input" 91 class="custom-input"
92 + :cursorSpacing="50"
92 /> 93 />
93 </view> 94 </view>
94 <view class="input-group"> 95 <view class="input-group">
...@@ -97,6 +98,7 @@ ...@@ -97,6 +98,7 @@
97 v-model="customModel" 98 v-model="customModel"
98 placeholder="请输入型号名称" 99 placeholder="请输入型号名称"
99 class="custom-input" 100 class="custom-input"
101 + :cursorSpacing="50"
100 /> 102 />
101 </view> 103 </view>
102 <view class="button-group"> 104 <view class="button-group">
...@@ -130,6 +132,7 @@ ...@@ -130,6 +132,7 @@
130 v-model="customModelOnly" 132 v-model="customModelOnly"
131 placeholder="请输入型号名称" 133 placeholder="请输入型号名称"
132 class="custom-input" 134 class="custom-input"
135 + :cursorSpacing="50"
133 /> 136 />
134 </view> 137 </view>
135 <view class="button-group"> 138 <view class="button-group">
...@@ -274,7 +277,7 @@ const selectBrand = (brand) => { ...@@ -274,7 +277,7 @@ const selectBrand = (brand) => {
274 const selectModel = (model) => { 277 const selectModel = (model) => {
275 // 找到对应的品牌ID 278 // 找到对应的品牌ID
276 const selectedBrand = props.brandOptions.find(brand => brand.text === selectedBrandName.value) 279 const selectedBrand = props.brandOptions.find(brand => brand.text === selectedBrandName.value)
277 - 280 +
278 const result = { 281 const result = {
279 brand: selectedBrandName.value, 282 brand: selectedBrandName.value,
280 model: model.text, 283 model: model.text,
...@@ -330,7 +333,7 @@ const confirmCustomModelInput = () => { ...@@ -330,7 +333,7 @@ const confirmCustomModelInput = () => {
330 333
331 // 找到对应的品牌ID 334 // 找到对应的品牌ID
332 const selectedBrand = props.brandOptions.find(brand => brand.text === selectedBrandName.value) 335 const selectedBrand = props.brandOptions.find(brand => brand.text === selectedBrandName.value)
333 - 336 +
334 const result = { 337 const result = {
335 brand: selectedBrandName.value, 338 brand: selectedBrandName.value,
336 model: customModelOnly.value.trim(), 339 model: customModelOnly.value.trim(),
......