提交 f732c299 编写于 作者: DCloud_JSON's avatar DCloud_JSON

简单适配pc端

上级 dd36ebcc
......@@ -68,7 +68,7 @@
"uniStatistics" : {
"enable" : false
},
"vueVersion" : "3",
"vueVersion" : "2",
"h5" : {
"unipush" : {
"enable" : true
......
......@@ -32,9 +32,11 @@
<textarea v-model="content" class="textarea" :auto-height="true" :disabled="inputBoxDisabled"
:placeholder="placeholderText" :maxlength="-1" placeholder-class="input-placeholder"></textarea>
</view>
<view class="send-btn-box">
<button @click="beforeSendMsg" :disabled="inputBoxDisabled || !content" class="send">发送</button>
</view>
</view>
</view>
<label class="set-stream">
<text style="font-size: 12px;">流式响应:</text>
<switch style="transform: scale(0.7);" :checked="stream" @change="changeStream" />
......@@ -514,4 +516,25 @@
justify-content: center;
align-items: center;
}
/* #ifdef H5 */
@media screen and (min-width:600px){
.textarea-box{
flex:1
}
.trash,
.send-btn-box{
flex-shrink: 0;
width: 100px;
justify-content: center;
padding: 0;
margin: 0;
}
.trash{
width: 60px;
}
.textarea-box .textarea {
width: 100%;
}
}
/* #endif */
</style>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册