Skip to content

Commit beb93e8

Browse files
committed
feat: 修复输入框的问题
1 parent 0e642e5 commit beb93e8

File tree

2 files changed

+8
-30
lines changed

2 files changed

+8
-30
lines changed

apps/miniprogram-agent-ui/miniprogram/components/agent-ui/index.wxml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -112,19 +112,9 @@
112112
<chatFile enableDel="{{true}}" wx:for="{{sendFileList}}" wx:key="tempId" fileData="{{item}}" bind:removeChild="handleRemoveChild" bind:changeChild="handleChangeChild"></chatFile>
113113
</view>
114114
<view class="foot_function">
115-
<!-- <scroll-view class="img-box" scroll-x="true" wx:if="{{!!imageList.length}}">
116-
<block wx:for="{{imageList}}" wx:key="tempFilePath">
117-
<view class="img-preview">
118-
<image src="{{item.tempFilePath}}" alt="" model='aspectFill' class="img-preview-image" />
119-
<view class="img-preview-loading" wx:if="{{!!!item.base64Url}}"></view>
120-
<image src="./imgs/close.svg" mode="aspectFill" class="img-preview-close" bind:tap="deleteImg" data-index="{{index}}" />
121-
</view>
122-
</block>
123-
</scroll-view> -->
124-
125115
<view class="input_box">
126116
<view class="input_inner_box">
127-
<textarea class="input" value="{{inputValue}}" maxlength="1024" bindfocus="bindInputFocus" bindinput="bindKeyInput" placeholder="说点什么吧" bindconfirm="handleSendMessage" confirm-type="send" adjust-position cursor-spacing="40" auto-height="{{true}}" show-confirm-bar="{{false}}" bindlinechange="handleLineChange"/>
117+
<textarea class="input" value="{{inputValue}}" maxlength="1024" bindfocus="bindInputFocus" bindinput="bindKeyInput" placeholder="说点什么吧" bindconfirm="handleSendMessage" confirm-type="send" adjust-position cursor-spacing="40" auto-height="{{true}}" show-confirm-bar="{{false}}" bindlinechange="handleLineChange" />
128118
</view>
129119
<view class="right_btns">
130120
<!-- 加号 -->

apps/miniprogram-agent-ui/miniprogram/components/agent-ui/index.wxss

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -269,35 +269,23 @@
269269
.input_inner_box {
270270
width: 100%;
271271
min-height: 50px;
272-
background-color: #fff;
273-
padding: 12px 12px;
274-
color: black;
272+
/* background-color: black; */
273+
/* background-color: #fff; */
274+
display: flex;
275+
align-items: center;
275276
border: #f3f3f3 solid 1px;
276-
box-sizing: border-box;
277277
border-radius: 16px;
278278
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
279+
box-sizing: border-box;
279280
}
280281

281282
.input {
283+
padding: 8px;
284+
color: black;
282285
width: 100%;
283286
flex: 1;
284-
/* height: 40px; */
285287
max-height: 160px;
286-
/* overflow-y: hidden; */
287-
/* background-color: #fff;
288-
padding: 6px 12px;
289-
color: black;
290-
border: #f3f3f3 solid 1px;
291-
border-radius: 16px;
292-
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2); */
293-
/* line-height: 22px; */
294288
font-size: 16px;
295-
/* display: flex;
296-
align-items: center; */
297-
height: 20px;
298-
/* padding-top: 10px; */
299-
/* display: flex; */
300-
/* align-items: center; */
301289
}
302290

303291
.right_btns {

0 commit comments

Comments
 (0)