Commit b89c9478 by xiawei

flex 兼容问题

parent 988ed8e8
<!--
* @Author: your name
* @Date: 2020-09-14 16:53:49
* @LastEditTime: 2020-10-15 09:42:52
* @LastEditTime: 2020-10-16 17:14:05
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: /consoles_program/Users/xiawei/gdy/web-live/components/modules-pc/chatBox/index.vue
-->
<template>
<div class="chat-box">
<div class="top-chat-list">
<div class="chat">
<div class="top-chat-box">
<top-chat-list></top-chat-list>
</div>
<div class="chat-list">
<chat-list></chat-list>
<div class="chat-box">
<div class="chat-box-list">
<chat-list></chat-list>
</div>
</div>
<div class="chat-send">
<send-box></send-box>
......@@ -46,19 +48,26 @@ export default {
</script>
<style lang="less" scoped>
.chat-box {
.chat {
position: relative;
display: flex;
flex-direction: column;
height: 100%;
.top-chat-list {
.top-chat-box {
flex: 0 0 auto;
}
.chat-list {
.chat-box {
position: relative;
flex: 1;
height: 100%;
height: 0;
width: 100%;
overflow-y: auto;
.chat-box-list {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
}
}
.chat-send {
flex: 0 0 auto;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment