Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

你好,datepicker与XInput同时使用会导致placeholder和value值无法显示 #2475

Closed
wuzhoubo opened this issue Feb 6, 2018 · 1 comment

Comments

@wuzhoubo
Copy link

wuzhoubo commented Feb 6, 2018

当datepicker与XInput组件同时使用时,会导致placeholder和value都无法显示

<group title="填写预约信息" class="weui-cells_form">
        <x-input title="预约部门" class="weui-vcode" placeholder='填写预约办事的部门' label-width="5em">
        </x-input>
        <datetime
            v-model="value1"
            @on-change="change"
            title="预约日期"
            placeholder="请选择"
            @on-cancel="log('cancel')"
            @on-confirm="log('confirm')"
            @on-hide="log('hide', $event)"></datetime>
</group>

如图
image
据我观察是在XInput组件中,这里将font-size设置为了0导致此问题
image
image
解决办法在timepicker组件中添加这个样式就解决了
image
希望修复

@airyland
Copy link
Owner

weui-cells_form 类名不推荐使用,下个版本使用 slot=right-full-height 显示验证码。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants