From 10ecfd0b60442d209d1ab4b749580ffb638d1992 Mon Sep 17 00:00:00 2001 From: lixuliang <lixuliang_hd@126.com> Date: 星期三, 08 五月 2024 14:44:04 +0800 Subject: [PATCH] 数字人更新 --- src/components/menu/bottom-menu.vue | 47 +++++++++++++++++++++++++++++++---------------- 1 files changed, 31 insertions(+), 16 deletions(-) diff --git a/src/components/menu/bottom-menu.vue b/src/components/menu/bottom-menu.vue index f86c871..ce52abf 100644 --- a/src/components/menu/bottom-menu.vue +++ b/src/components/menu/bottom-menu.vue @@ -141,13 +141,23 @@ </el-form-item> </el-form> </div> - <div class="textAreaBox" v-if="isShowTextArea"> - <el-input - v-model="input" - placeholder="璇疯緭鍏ュ唴瀹�" - clearable - @keyup.enter.native="sendCommand($event)" - ></el-input> + <!-- 鏁扮粍浜烘枃瀛楄緭鍏ュ脊妗� --> + <div class="SZRtextAreaBox" v-if="isShowTextArea"> + <el-row :gutter="10"> + <el-col :span="19"> + <el-input + v-model="input" + placeholder="璇疯緭鍏ュ唴瀹�" + clearable + @keyup.enter.native="sendCommand($event)" + ></el-input> + </el-col> + <el-col :span="4"> + <el-button type="primary" @click="sendCommand('click')" + >鎼滅储</el-button + > + </el-col> + </el-row> </div> </div> </template> @@ -165,22 +175,24 @@ display: flex; justify-content: space-between; } -.textAreaBox { +.SZRtextAreaBox { background: rgba(5, 39, 126, 0.7); padding: 10px; - /* width: 375px; */ + width: 375px; position: absolute; + /* display: flex; */ + /* justify-content: space-around; */ bottom: 165px; color: #fff; left: 50%; transform: translateX(-50%); z-index: 99999; } -.textAreaBox .el-form-item { +.SZRtextAreaBox .el-form-item { margin: 0; } -.textAreaBox .el-input { - width: 300px; +.SZRtextAreaBox .el-input { + /* width: 300px; */ } .specialTool .bottomwrapper:nth-of-type(3) { /* background: red; */ @@ -527,10 +539,13 @@ } }, sendCommand(event) { - mapMsg.testMsg(event.target.value); - - // 闃绘榛樿琛屼负锛堝鏋滈渶瑕佺殑璇濓級 - event.preventDefault(); + // if (event == "click") { + mapMsg.testMsg(this.input); + // } else { + // // 闃绘榛樿琛屼负锛堝鏋滈渶瑕佺殑璇濓級 + // mapMsg.testMsg(this.input); + // event.preventDefault(); + // } }, handleCommand(command) { switch (command) { -- Gitblit v1.9.3