Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DatePicker 支持自定义标签 #1367

Closed
tucke opened this issue Apr 24, 2018 · 3 comments
Closed

DatePicker 支持自定义标签 #1367

tucke opened this issue Apr 24, 2018 · 3 comments
Assignees

Comments

@tucke
Copy link

tucke commented Apr 24, 2018

What problem does this feature solve?

例如,我们有时候在选择日期时,希望 DatePicker 能给予一些友好的提示,如根据业务我们可以事先在 DatePicker 某一些日期上做特殊标记(例如:节假日、有业务数据),这样用户在选择时,可以很好的规避一些节假日,或根本没有业务数据的日期

What does the proposed API look like?

import { Component } from '@angular/core';

@Component({
  selector: 'nz-demo-datepicker-basic',
  template: `
    <nz-datepicker [(ngModel)]="_date" [nzPlaceHolder]="'Select date'"  [nzMarker]="[20180202,20180303,20180404]"></nz-datepicker>
  `,
  styles  : []
})
export class NzDemoDatePickerBasicComponent {
  _date = null;
  _dateRange = [null, null];

  constructor() {
  }

}
@vthinkxie
Copy link
Member

@wilsoncook 看下是不是可以直接提供calendar的渲染在datepicker上

@wilsoncook
Copy link
Member

Will support customized render against to antd

@lock
Copy link

lock bot commented May 15, 2019

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked as resolved and limited conversation to collaborators May 15, 2019
hsuanxyz pushed a commit to hsuanxyz/ng-zorro-antd that referenced this issue Aug 5, 2020
…ker against to ant-design (NG-ZORRO#1254)

close NG-ZORRO#1367 close NG-ZORRO#1267 close NG-ZORRO#1107 close NG-ZORRO#1097 close NG-ZORRO#1094 close NG-ZORRO#1079 close NG-ZORRO#1063 close NG-ZORRO#1060 close NG-ZORRO#1060 close NG-ZORRO#1046 close NG-ZORRO#1034 close NG-ZORRO#955 close NG-ZORRO#906 close NG-ZORRO#761 close NG-ZORRO#707 close NG-ZORRO#741 close NG-ZORRO#646 
* refactor(module:date-picker): TODO: complete all

complete more

complete date wrapper, need more flexiable with APIs of value select and change

complete parts of footer

the datepicker almost complete

commit to avoid side-effects with experiments

import the legacy timepicker, date-picker almost done

complete the common apis for datepicker

support all API for date-picker (which related to timepicker needs tebe complete)

split the date picker into more flexable components, pending for next range-picker

combine range-popup into date-popup, need self-testing

plug out the common abstract picker for both single/range picker

the range picker is almost done, but lots of work need todo still

soft remove legacy time-picker

compat with the latest time-picker

re-render the content of picker when open

add month-picker, need tobe done

done with month-picker & ready to develop week-picker

add support of week-picker

support ngModel for all pickers

complete parts of demos

support timePickerDisabled && timePickerDisabled (need testing)

support time-picker for date/range picker and more options like disabledDate/disabledTime

complete all demo and the chinese doc

add some testings for date-picker component

add more testing for date-picker component

fix problems of overlay's origin and backdrop with open

add testing for date-picker with ngModel

done testings for date-picker, start to add testings for range-picker

add testings for range picker

increase coverage of testings for date picker module

add testings for month-picker

increase more testing coverage

complete more testings for date picker module

* trimming relates for build packaging

* complete the zh/en documents

* support animations when hide/show

* fix(module:date-picker): change default to ngModel

* fix(module:date-picker): change default to ngModel

* fix the range's wrong default value setting

* make CandyDate changes into range picker testing

* aim to trigger ci

test(module:date-picker): fix month-picker test
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants