Skip to content

Commit

Permalink
feat(module: date-picker-view): feat indicatorStyle (#104)
Browse files Browse the repository at this point in the history
* feat(module: date-picker-view): feat indicatorStyle

* docs(module:date-picker-view): delete zh-CN in en-US
  • Loading branch information
Guoyuanqiang authored and fisherspy committed Nov 14, 2018
1 parent 90866df commit e97acbd
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div *ngFor="let item of dataWithStr; let i = index" class="am-picker-col">
<div class="am-picker-col-indicator " style="top: 102px;"></div>
<div class="am-picker-col-indicator " style="top: 102px;" [ngStyle]="indicatorStyle"></div>
<div id={{i}} class="am-picker-col-mask" style="background-size: 100% 102px;"></div>
<div class="am-picker-col-content">
<div id={{i}} *ngFor="let val of item; let i = index" class="am-picker-col-item">{{val.label?val.label:val}}</div>
Expand Down
2 changes: 2 additions & 0 deletions components/date-picker-view/date-picker-view.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ export class DatePickerViewComponent extends DatePickerComponent implements OnIn
@Input()
disabled: boolean = false;
@Input()
indicatorStyle: object = {};
@Input()
get locale() {
return this.options.locale;
}
Expand Down
3 changes: 2 additions & 1 deletion components/date-picker-view/doc/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Properties | Descrition | Type | Default
| minDate | minimum date | Date | 2000-1-1 |
| maxDate | maximum date | Date | 2030-1-1 |
| locale | international, can override the configuration of the global `[LocaleProvider](https://ng.mobile.ant.design/components/locale-provider/en)` | Object: {DatePickerLocale: {year, month, day, hour, minute, am?, pm?}, okText, dismissText} | - |
| disabled | 是否不可用 | Boolean | false |
| disabled | disabled | Boolean | false |
| onChange | change handler | (date: Object): void | - |
| onValueChange | fire when picker col change | (vals: any, index: number) => void | - |
| indicatorStyle | style of indicator | Object | - |
1 change: 1 addition & 0 deletions components/date-picker-view/doc/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ DatePickerView 的功能类似于 DatePicker ,但它是直接渲染在区域
| disabled | 是否不可用 | Boolean | false |
| onChange | 时间发生变化的回调函数 | (date: Object): void | - |
| onValueChange | 每列 picker 改变时的回调 | (vals: any, index: number) => void | - |
| indicatorStyle | style of indicator | Object | - |

0 comments on commit e97acbd

Please sign in to comment.