/**
 * 该模块是符合移动端日历组件的选择<br>:
 *  <strong>
 *          页面需要导入的文件
 *          <ul>
 *              <li>cmp-dateCalender.js</li>
 *              <li>cmp-picker.js</li>
 *              <li>cmp-dtPicker.js</li>
 *              <li>cmp-dateCalender.css</li>
 *              <li>cmp-picker.css</li>
 *          </ul>
 *      </strong>
 * @module DateCalender
 * @subtitle 日历
 */


/**
 *
 * @namespace cmp
 * @method DateCalender
 * @constructor
 * @param {String} container 存放日历组件的容器对应的id或者class
 * @param {Object} options 配置参数
 *      @param {Number} [options.y] 设置年
 *      @param {Number} [options.m] 设置月
 *      @param {Number} [options.d] 设置日
 *      @param {String} [options.type] 插件类型,有week,mouth
 *      @param {Array} [options.orderD] 哪些天被预定
 *      @param {Number} [options.beginYear] 开始年
 *      @param {Number} [options.endYear] 结束年
 *      @param {Function} [options.callback] 选中的日期的回调
 *      @param {Boolean} [options.uichangeToCallback] 设置是否只要ui改变就进行回调,默认是true
 * @example
 * ```
 * 文件导入路径:
 * M3App端
 * <link rel="stylesheet" href="http://cmp/v/css/cmp.css"></link>
 * <link rel="stylesheet" href="http://cmp/v/css/cmp-picker.css"></link>
 *  <link rel="stylesheet" href="http://cmp/v/css/cmp-dateCalender.css"></link>
 *  <script  src="http://cmp/v1.0.0/js/cordova/__CMPSHELL_PLATFORM__/cordova.js"></script>
 *  <script  src="http://cmp/v1.0.0/js/cordova/cordova-plugins.js"></script>
 *  <script  src="http://cmp/v/js/cmp.js"></script>
 *  <script  src="http://cmp/v/js/cmp-picker.js"></script>
 *  <script  src="http://cmp/v/js/cmp-dtPicker.js"></script>
 *  <script  src="http://cmp/v/js/cmp-dateCalender.js"></script>
 *  ===========================================================================================
 *  微协同端:
 *  <link rel="stylesheet" href="/seeyon/m3/cmp/css/cmp.css"></link>
 * <link rel="stylesheet" href="/seeyon/m3/cmp/css/cmp-picker.css"></link>
 *  <link rel="stylesheet" href="/seeyon/m3/cmp/css/cmp-dateCalender.css"></link>
 *  <script  src="/seeyon/m3/cmp/js/cmp.js"></script>
 *  <script  src="/seeyon/m3/cmp/js/cmp-picker.js"></script>
 *  <script  src="/seeyon/m3/cmp/js/cmp-dtPicker.js"></script>
 *  <script  src="/seeyon/m3/cmp/js/cmp-dateCalender.js"></script>
 *  =========================================================================================
 *  调用组件
 * <script>
 *    var date = cmp.DateCalender("#test",{
 *        y:2011,
 *        m:5,
 *        d:23,
 *        type:mouth,
 *        orderD:["2016-12-22","2016-12-26"],
 *        beginYear:2007,
 *        endYear:2017,
 *        uichangeToCallback:true,
 *        callback:function(date){
 *             //do something with date
 *        }
 *    });
 * </script>
 * ```
 * @cutline [DEMO地址](/seeyon/cmp2.0/demo/demo/pagings/ui/cmp-dateCalende.html)
 * @return 返回DateCalender对象,提供refresh,setOrderD方法,用于重置配置参数如:<br>
 *     date.refresh({
 *		        //y:2011,  //设置年
 *				//m:1,  //设置月
 *				//d:1, //设置日
 *				//type:"mouth",
 *				//orderD:["2016-12-09","2016-12-13"],  //哪些天被预定
 *				//beginYear:2005, //开始年
 *				//endYear:2017, //结束年
 *			})
 *		date.setOrderD(["2017-02-27","2017-03-13"]);	//重置预定的日期
 */






    
Top