修复datetimerange组件自定义配置覆盖的问题

pull/462/MERGE
Karson 2024-03-14 20:11:31 +08:00
parent 131ef803d1
commit bac6606786
1 changed files with 1 additions and 1 deletions

View File

@ -226,7 +226,7 @@ define(['jquery', 'bootstrap', 'upload', 'validator', 'validator-lang'], functio
$(this).on('cancel.daterangepicker', function (ev, picker) {
$(this).val('').trigger('blur');
});
$(this).daterangepicker($.extend(true, options, $(this).data() || {}, $(this).data("daterangepicker-options") || {}));
$(this).daterangepicker($.extend(true, {}, options, $(this).data() || {}, $(this).data("daterangepicker-options") || {}));
});
});
}