帖子
帖子
用户
博客
课程
123
返回列表 发新帖
28
帖子
0
勋章
228
Y币
我头部不见了。
<template name='chat-box'>
    <view class="page">  
        <a-header :left-icon="true" right-icon="../../image/ellipsis.png" onClickRight="onClickRight()">lengtoo</a-header>
    </view>
</template>

<script>
    import AHeader from "../../components/a-header.stml";

    export default {
        name: 'chat-box',

        apiready() {
            api.openFrame({
                name: 'chat-content',
                url: './chat-content.stml',
                rect: {
                    x: 0,
                    y: 0,
                    w: 'auto',
                    h: 'auto'
                },
                pageParam: {
                    name: 'test'
                }
            });
        },

        data() {
            return {};
        },

        methods: {

        }
    }
</script>

<style scoped>
    .page {
        height: 100%;
        background-color: rgba(244, 244, 244, 1);
    }
</style>
是不是 rect 要把头部高度去掉?可是我不知道怎么知道头部高度。
川哥哥 · 2022-5-20 08:28是的,你试试键盘弹起应该没有挤压的问题
42
帖子
1
勋章
1万+
Y币
你这个y这个参数不能为0  要填写header的高度  不然header会被frame挡住
rjblwhp · 2022-5-20 09:19我头部不见了。

      
28
帖子
0
勋章
228
Y币
我主要是不知道这个头部的高度。
川哥哥 · 2022-5-20 11:25你这个y这个参数不能为0  要填写header的高度  不然header会被frame挡住
28
帖子
0
勋章
228
Y币
y 我填了200,头部还是会顶上去。
川哥哥 · 2022-5-20 11:25你这个y这个参数不能为0  要填写header的高度  不然header会被frame挡住
42
帖子
1
勋章
1万+
Y币
chat-content.stml   最外层必须是scroll-view
rjblwhp · 2022-5-20 11:48y 我填了200,头部还是会顶上去。
28
帖子
0
勋章
228
Y币
    <scroll-view class="main" scroll-y>
        <textarea  class="box" />
    </scroll-view>

只要我把输入框放最底下,就会弹起来。
川哥哥 · 2022-5-20 14:14chat-content.stml   最外层必须是scroll-view
20
帖子
1
勋章
7575
Y币
config中配置 resize 模式。
123
您需要登录后才可以回帖 登录

本版积分规则