起步软件技术论坛
搜索
 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1641|回复: 1

[处理中3] 时间组件的绑定问题

[复制链接]

17

主题

38

帖子

73

积分

初级会员

Rank: 2

积分
73
QQ
发表于 2018-1-12 15:45:20 | 显示全部楼层 |阅读模式
我通过查询的方法,能够查询到maintainitem25的日期,把他放到data2中绑定
                                data2.newData({
                                        index : 0,
                                        defaultValues : [{
                                                "maintainitem25" : data.maintainitem25
                                                }]
                                        });
.w文件中,
<input component="$UI/system/components/justep/input/input" class="form-control x-edit" xid="input9" dataType="DateTime" bind-ref="data2.ref('maintainitem25')"></input>
能把时间显示出来,但是问题来了,我要进行修改的话,但是时间那个控件不见了,求告知怎么处理
发表于 2018-1-16 15:56:52 | 显示全部楼层
参考案例
/UI2/system/components/justep/input/demo/input.w

只要input 绑定 日期类型的字段,就自然可以显示为日期组件了!
qq:1912779713
WeX5教程--WeX5下载
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|X3技术论坛|Justep Inc.    

GMT+8, 2024-6-1 20:27 , Processed in 0.058392 second(s), 24 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表