http://www.xueh188.top/index.php/archives/16/

https://forum.fastadmin.net/thread/189
这是由于你只部署了HTML代码,但是未添加datetimepicker的事件,所以不生效,你需要在JS中的index方法中添加如下代码:

review:function(){
    //绑定select元素事件
    require(['bootstrap-datetimepicker'], function () {
        var options = {
            format: 'YYYY-MM-DD HH:mm:ss',
            icons: {
                time: 'fa fa-clock-o',
                date: 'fa fa-calendar',
                up: 'fa fa-chevron-up',
                down: 'fa fa-chevron-down',
                previous: 'fa fa-chevron-left',
                next: 'fa fa-chevron-right',
                today: 'fa fa-history',
                clear: 'fa fa-trash',
                close: 'fa fa-remove'
            },
            showTodayButton: true,
            showClose: true
        };
        $('.datetimepicker').parent().css('position', 'relative');
        $('.datetimepicker').datetimepicker(options);
    });
},

的确有这问题,不过不是datetimepicker造成的,而是nice-validator造成的,因为加载在顶部加载了form模块,而form模块依赖了nice-validator模块。你可以尝试给你的input添加一个data-rule="required"属性试试

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值