import { Component, OnInit, OnDestroy } from '@angular/core'; @Component({ selector: 'cm-datepicker-doc-11', templateUrl: './datePicker-doc-11.component.html', styleUrls: ['./datePicker-doc-11.component.css'] }) export class DatePickerDoc11Component implements OnInit, OnDestroy { _dateRange:any[] = [null, null]; _cmShortcutDate:object = { data: [ { value: 0, name: '今天' }, { value: 1, name: '昨天' }, { value: 7, name: '近7天' }, { value: 30, name: '近30天' } ], type:'dropdown' } ; _cmShortcutDate2:object = { data: [ { value: 0, name: '今天' }, { value: 1, name: '昨天' }, { value: 4, name: '近4天' }, { value: 30, name: '近30天' } ], type:'inline' } ; _cmFormate:string = "YYYY-MM-DD"; _cmFormate1:string = "YYYY/MM/DD"; _cmShowTime:boolean = true; constructor() { } ngOnInit(){ } ngOnDestroy(){ } }