mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-08 01:53:34 +08:00
merge feature into master-to-merge-feature
This commit is contained in:
commit
46a8cf7dc7
@ -27,6 +27,7 @@ Array [
|
|||||||
"Drawer",
|
"Drawer",
|
||||||
"Empty",
|
"Empty",
|
||||||
"Form",
|
"Form",
|
||||||
|
"Grid",
|
||||||
"Input",
|
"Input",
|
||||||
"InputNumber",
|
"InputNumber",
|
||||||
"Layout",
|
"Layout",
|
||||||
|
18
components/_util/getRenderPropValue.ts
Normal file
18
components/_util/getRenderPropValue.ts
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
import React from 'react';
|
||||||
|
|
||||||
|
export type RenderFunction = () => React.ReactNode;
|
||||||
|
|
||||||
|
export const getRenderPropValue = (
|
||||||
|
propValue?: React.ReactNode | RenderFunction,
|
||||||
|
): React.ReactNode => {
|
||||||
|
if (!propValue) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
const isRenderFunction = typeof propValue === 'function';
|
||||||
|
if (isRenderFunction) {
|
||||||
|
return (propValue as RenderFunction)();
|
||||||
|
}
|
||||||
|
|
||||||
|
return propValue;
|
||||||
|
};
|
@ -10,6 +10,7 @@ export interface BreadcrumbItemProps {
|
|||||||
separator?: React.ReactNode;
|
separator?: React.ReactNode;
|
||||||
href?: string;
|
href?: string;
|
||||||
overlay?: DropDownProps['overlay'];
|
overlay?: DropDownProps['overlay'];
|
||||||
|
dropdownProps?: DropDownProps;
|
||||||
onClick?: React.MouseEventHandler<HTMLAnchorElement | HTMLSpanElement>;
|
onClick?: React.MouseEventHandler<HTMLAnchorElement | HTMLSpanElement>;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -58,10 +59,10 @@ export default class BreadcrumbItem extends React.Component<BreadcrumbItemProps,
|
|||||||
* Wrap a DropDown
|
* Wrap a DropDown
|
||||||
*/
|
*/
|
||||||
renderBreadcrumbNode = (breadcrumbItem: React.ReactNode, prefixCls: string) => {
|
renderBreadcrumbNode = (breadcrumbItem: React.ReactNode, prefixCls: string) => {
|
||||||
const { overlay } = this.props;
|
const { overlay, dropdownProps } = this.props;
|
||||||
if (overlay) {
|
if (overlay) {
|
||||||
return (
|
return (
|
||||||
<DropDown overlay={overlay} placement="bottomCenter">
|
<DropDown overlay={overlay} placement="bottomCenter" {...dropdownProps}>
|
||||||
<span className={`${prefixCls}-overlay-link`}>
|
<span className={`${prefixCls}-overlay-link`}>
|
||||||
{breadcrumbItem}
|
{breadcrumbItem}
|
||||||
<DownOutlined />
|
<DownOutlined />
|
||||||
|
@ -30,6 +30,7 @@ A breadcrumb displays the current location within a hierarchy. It allows going b
|
|||||||
| href | Target of hyperlink | string | - | |
|
| href | Target of hyperlink | string | - | |
|
||||||
| overlay | The dropdown menu | [Menu](/components/menu) \| () => Menu | - | |
|
| overlay | The dropdown menu | [Menu](/components/menu) \| () => Menu | - | |
|
||||||
| onClick | Set the handler to handle `click` event | (e:MouseEvent)=>void | - | |
|
| onClick | Set the handler to handle `click` event | (e:MouseEvent)=>void | - | |
|
||||||
|
| dropdownProps | The dropdown props | [Dropdown](/components/dropdown) | - | |
|
||||||
|
|
||||||
### Breadcrumb.Separator
|
### Breadcrumb.Separator
|
||||||
|
|
||||||
|
@ -26,11 +26,12 @@ title: Breadcrumb
|
|||||||
|
|
||||||
### Breadcrumb.Item
|
### Breadcrumb.Item
|
||||||
|
|
||||||
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
||||||
| ------- | -------------- | -------------------------------------- | ------ | ---- |
|
| --- | --- | --- | --- | --- |
|
||||||
| href | 链接的目的地 | string | - | |
|
| href | 链接的目的地 | string | - | |
|
||||||
| overlay | 下拉菜单的内容 | [Menu](/components/menu) \| () => Menu | - | |
|
| overlay | 下拉菜单的内容 | [Menu](/components/menu) \| () => Menu | - | |
|
||||||
| onClick | 单击事件 | (e:MouseEvent)=>void | - | |
|
| onClick | 单击事件 | (e:MouseEvent)=>void | - | |
|
||||||
|
| dropdownProps | 弹出下拉菜单的自定义配置 | [Dropdown](/components/dropdown) | - | |
|
||||||
|
|
||||||
### Breadcrumb.Separator
|
### Breadcrumb.Separator
|
||||||
|
|
||||||
|
@ -204,9 +204,7 @@ exports[`renders ./components/calendar/demo/basic.md correctly 1`] = `
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr
|
<tr>
|
||||||
class=""
|
|
||||||
>
|
|
||||||
<td
|
<td
|
||||||
class="ant-picker-cell"
|
class="ant-picker-cell"
|
||||||
title="2016-10-30"
|
title="2016-10-30"
|
||||||
@ -327,9 +325,7 @@ exports[`renders ./components/calendar/demo/basic.md correctly 1`] = `
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr
|
<tr>
|
||||||
class=""
|
|
||||||
>
|
|
||||||
<td
|
<td
|
||||||
class="ant-picker-cell ant-picker-cell-in-view"
|
class="ant-picker-cell ant-picker-cell-in-view"
|
||||||
title="2016-11-06"
|
title="2016-11-06"
|
||||||
@ -450,9 +446,7 @@ exports[`renders ./components/calendar/demo/basic.md correctly 1`] = `
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr
|
<tr>
|
||||||
class=""
|
|
||||||
>
|
|
||||||
<td
|
<td
|
||||||
class="ant-picker-cell ant-picker-cell-in-view"
|
class="ant-picker-cell ant-picker-cell-in-view"
|
||||||
title="2016-11-13"
|
title="2016-11-13"
|
||||||
@ -573,9 +567,7 @@ exports[`renders ./components/calendar/demo/basic.md correctly 1`] = `
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr
|
<tr>
|
||||||
class=""
|
|
||||||
>
|
|
||||||
<td
|
<td
|
||||||
class="ant-picker-cell ant-picker-cell-in-view"
|
class="ant-picker-cell ant-picker-cell-in-view"
|
||||||
title="2016-11-20"
|
title="2016-11-20"
|
||||||
@ -696,9 +688,7 @@ exports[`renders ./components/calendar/demo/basic.md correctly 1`] = `
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr
|
<tr>
|
||||||
class=""
|
|
||||||
>
|
|
||||||
<td
|
<td
|
||||||
class="ant-picker-cell ant-picker-cell-in-view"
|
class="ant-picker-cell ant-picker-cell-in-view"
|
||||||
title="2016-11-27"
|
title="2016-11-27"
|
||||||
@ -819,9 +809,7 @@ exports[`renders ./components/calendar/demo/basic.md correctly 1`] = `
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr
|
<tr>
|
||||||
class=""
|
|
||||||
>
|
|
||||||
<td
|
<td
|
||||||
class="ant-picker-cell"
|
class="ant-picker-cell"
|
||||||
title="2016-12-04"
|
title="2016-12-04"
|
||||||
@ -1157,9 +1145,7 @@ exports[`renders ./components/calendar/demo/card.md correctly 1`] = `
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr
|
<tr>
|
||||||
class=""
|
|
||||||
>
|
|
||||||
<td
|
<td
|
||||||
class="ant-picker-cell"
|
class="ant-picker-cell"
|
||||||
title="2016-10-30"
|
title="2016-10-30"
|
||||||
@ -1280,9 +1266,7 @@ exports[`renders ./components/calendar/demo/card.md correctly 1`] = `
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr
|
<tr>
|
||||||
class=""
|
|
||||||
>
|
|
||||||
<td
|
<td
|
||||||
class="ant-picker-cell ant-picker-cell-in-view"
|
class="ant-picker-cell ant-picker-cell-in-view"
|
||||||
title="2016-11-06"
|
title="2016-11-06"
|
||||||
@ -1403,9 +1387,7 @@ exports[`renders ./components/calendar/demo/card.md correctly 1`] = `
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr
|
<tr>
|
||||||
class=""
|
|
||||||
>
|
|
||||||
<td
|
<td
|
||||||
class="ant-picker-cell ant-picker-cell-in-view"
|
class="ant-picker-cell ant-picker-cell-in-view"
|
||||||
title="2016-11-13"
|
title="2016-11-13"
|
||||||
@ -1526,9 +1508,7 @@ exports[`renders ./components/calendar/demo/card.md correctly 1`] = `
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr
|
<tr>
|
||||||
class=""
|
|
||||||
>
|
|
||||||
<td
|
<td
|
||||||
class="ant-picker-cell ant-picker-cell-in-view"
|
class="ant-picker-cell ant-picker-cell-in-view"
|
||||||
title="2016-11-20"
|
title="2016-11-20"
|
||||||
@ -1649,9 +1629,7 @@ exports[`renders ./components/calendar/demo/card.md correctly 1`] = `
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr
|
<tr>
|
||||||
class=""
|
|
||||||
>
|
|
||||||
<td
|
<td
|
||||||
class="ant-picker-cell ant-picker-cell-in-view"
|
class="ant-picker-cell ant-picker-cell-in-view"
|
||||||
title="2016-11-27"
|
title="2016-11-27"
|
||||||
@ -1772,9 +1750,7 @@ exports[`renders ./components/calendar/demo/card.md correctly 1`] = `
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr
|
<tr>
|
||||||
class=""
|
|
||||||
>
|
|
||||||
<td
|
<td
|
||||||
class="ant-picker-cell"
|
class="ant-picker-cell"
|
||||||
title="2016-12-04"
|
title="2016-12-04"
|
||||||
@ -2136,9 +2112,7 @@ exports[`renders ./components/calendar/demo/customize-header.md correctly 1`] =
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr
|
<tr>
|
||||||
class=""
|
|
||||||
>
|
|
||||||
<td
|
<td
|
||||||
class="ant-picker-cell"
|
class="ant-picker-cell"
|
||||||
title="2016-10-30"
|
title="2016-10-30"
|
||||||
@ -2259,9 +2233,7 @@ exports[`renders ./components/calendar/demo/customize-header.md correctly 1`] =
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr
|
<tr>
|
||||||
class=""
|
|
||||||
>
|
|
||||||
<td
|
<td
|
||||||
class="ant-picker-cell ant-picker-cell-in-view"
|
class="ant-picker-cell ant-picker-cell-in-view"
|
||||||
title="2016-11-06"
|
title="2016-11-06"
|
||||||
@ -2382,9 +2354,7 @@ exports[`renders ./components/calendar/demo/customize-header.md correctly 1`] =
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr
|
<tr>
|
||||||
class=""
|
|
||||||
>
|
|
||||||
<td
|
<td
|
||||||
class="ant-picker-cell ant-picker-cell-in-view"
|
class="ant-picker-cell ant-picker-cell-in-view"
|
||||||
title="2016-11-13"
|
title="2016-11-13"
|
||||||
@ -2505,9 +2475,7 @@ exports[`renders ./components/calendar/demo/customize-header.md correctly 1`] =
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr
|
<tr>
|
||||||
class=""
|
|
||||||
>
|
|
||||||
<td
|
<td
|
||||||
class="ant-picker-cell ant-picker-cell-in-view"
|
class="ant-picker-cell ant-picker-cell-in-view"
|
||||||
title="2016-11-20"
|
title="2016-11-20"
|
||||||
@ -2628,9 +2596,7 @@ exports[`renders ./components/calendar/demo/customize-header.md correctly 1`] =
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr
|
<tr>
|
||||||
class=""
|
|
||||||
>
|
|
||||||
<td
|
<td
|
||||||
class="ant-picker-cell ant-picker-cell-in-view"
|
class="ant-picker-cell ant-picker-cell-in-view"
|
||||||
title="2016-11-27"
|
title="2016-11-27"
|
||||||
@ -2751,9 +2717,7 @@ exports[`renders ./components/calendar/demo/customize-header.md correctly 1`] =
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr
|
<tr>
|
||||||
class=""
|
|
||||||
>
|
|
||||||
<td
|
<td
|
||||||
class="ant-picker-cell"
|
class="ant-picker-cell"
|
||||||
title="2016-12-04"
|
title="2016-12-04"
|
||||||
@ -3087,9 +3051,7 @@ exports[`renders ./components/calendar/demo/notice-calendar.md correctly 1`] = `
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr
|
<tr>
|
||||||
class=""
|
|
||||||
>
|
|
||||||
<td
|
<td
|
||||||
class="ant-picker-cell"
|
class="ant-picker-cell"
|
||||||
title="2016-10-30"
|
title="2016-10-30"
|
||||||
@ -3238,9 +3200,7 @@ exports[`renders ./components/calendar/demo/notice-calendar.md correctly 1`] = `
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr
|
<tr>
|
||||||
class=""
|
|
||||||
>
|
|
||||||
<td
|
<td
|
||||||
class="ant-picker-cell ant-picker-cell-in-view"
|
class="ant-picker-cell ant-picker-cell-in-view"
|
||||||
title="2016-11-06"
|
title="2016-11-06"
|
||||||
@ -3461,9 +3421,7 @@ exports[`renders ./components/calendar/demo/notice-calendar.md correctly 1`] = `
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr
|
<tr>
|
||||||
class=""
|
|
||||||
>
|
|
||||||
<td
|
<td
|
||||||
class="ant-picker-cell ant-picker-cell-in-view"
|
class="ant-picker-cell ant-picker-cell-in-view"
|
||||||
title="2016-11-13"
|
title="2016-11-13"
|
||||||
@ -3697,9 +3655,7 @@ exports[`renders ./components/calendar/demo/notice-calendar.md correctly 1`] = `
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr
|
<tr>
|
||||||
class=""
|
|
||||||
>
|
|
||||||
<td
|
<td
|
||||||
class="ant-picker-cell ant-picker-cell-in-view"
|
class="ant-picker-cell ant-picker-cell-in-view"
|
||||||
title="2016-11-20"
|
title="2016-11-20"
|
||||||
@ -3848,9 +3804,7 @@ exports[`renders ./components/calendar/demo/notice-calendar.md correctly 1`] = `
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr
|
<tr>
|
||||||
class=""
|
|
||||||
>
|
|
||||||
<td
|
<td
|
||||||
class="ant-picker-cell ant-picker-cell-in-view"
|
class="ant-picker-cell ant-picker-cell-in-view"
|
||||||
title="2016-11-27"
|
title="2016-11-27"
|
||||||
@ -3999,9 +3953,7 @@ exports[`renders ./components/calendar/demo/notice-calendar.md correctly 1`] = `
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr
|
<tr>
|
||||||
class=""
|
|
||||||
>
|
|
||||||
<td
|
<td
|
||||||
class="ant-picker-cell"
|
class="ant-picker-cell"
|
||||||
title="2016-12-04"
|
title="2016-12-04"
|
||||||
@ -4448,9 +4400,7 @@ exports[`renders ./components/calendar/demo/select.md correctly 1`] = `
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr
|
<tr>
|
||||||
class=""
|
|
||||||
>
|
|
||||||
<td
|
<td
|
||||||
class="ant-picker-cell ant-picker-cell-in-view"
|
class="ant-picker-cell ant-picker-cell-in-view"
|
||||||
title="2017-01-01"
|
title="2017-01-01"
|
||||||
@ -4571,9 +4521,7 @@ exports[`renders ./components/calendar/demo/select.md correctly 1`] = `
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr
|
<tr>
|
||||||
class=""
|
|
||||||
>
|
|
||||||
<td
|
<td
|
||||||
class="ant-picker-cell ant-picker-cell-in-view"
|
class="ant-picker-cell ant-picker-cell-in-view"
|
||||||
title="2017-01-08"
|
title="2017-01-08"
|
||||||
@ -4694,9 +4642,7 @@ exports[`renders ./components/calendar/demo/select.md correctly 1`] = `
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr
|
<tr>
|
||||||
class=""
|
|
||||||
>
|
|
||||||
<td
|
<td
|
||||||
class="ant-picker-cell ant-picker-cell-in-view"
|
class="ant-picker-cell ant-picker-cell-in-view"
|
||||||
title="2017-01-15"
|
title="2017-01-15"
|
||||||
@ -4817,9 +4763,7 @@ exports[`renders ./components/calendar/demo/select.md correctly 1`] = `
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr
|
<tr>
|
||||||
class=""
|
|
||||||
>
|
|
||||||
<td
|
<td
|
||||||
class="ant-picker-cell ant-picker-cell-in-view"
|
class="ant-picker-cell ant-picker-cell-in-view"
|
||||||
title="2017-01-22"
|
title="2017-01-22"
|
||||||
@ -4940,9 +4884,7 @@ exports[`renders ./components/calendar/demo/select.md correctly 1`] = `
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr
|
<tr>
|
||||||
class=""
|
|
||||||
>
|
|
||||||
<td
|
<td
|
||||||
class="ant-picker-cell ant-picker-cell-in-view"
|
class="ant-picker-cell ant-picker-cell-in-view"
|
||||||
title="2017-01-29"
|
title="2017-01-29"
|
||||||
@ -5063,9 +5005,7 @@ exports[`renders ./components/calendar/demo/select.md correctly 1`] = `
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr
|
<tr>
|
||||||
class=""
|
|
||||||
>
|
|
||||||
<td
|
<td
|
||||||
class="ant-picker-cell"
|
class="ant-picker-cell"
|
||||||
title="2017-02-05"
|
title="2017-02-05"
|
||||||
|
@ -206,9 +206,7 @@ exports[`Calendar Calendar should support locale 1`] = `
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr
|
<tr>
|
||||||
class=""
|
|
||||||
>
|
|
||||||
<td
|
<td
|
||||||
class="ant-picker-cell ant-picker-cell-in-view"
|
class="ant-picker-cell ant-picker-cell-in-view"
|
||||||
title="2018-10-01"
|
title="2018-10-01"
|
||||||
@ -329,9 +327,7 @@ exports[`Calendar Calendar should support locale 1`] = `
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr
|
<tr>
|
||||||
class=""
|
|
||||||
>
|
|
||||||
<td
|
<td
|
||||||
class="ant-picker-cell ant-picker-cell-in-view"
|
class="ant-picker-cell ant-picker-cell-in-view"
|
||||||
title="2018-10-08"
|
title="2018-10-08"
|
||||||
@ -452,9 +448,7 @@ exports[`Calendar Calendar should support locale 1`] = `
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr
|
<tr>
|
||||||
class=""
|
|
||||||
>
|
|
||||||
<td
|
<td
|
||||||
class="ant-picker-cell ant-picker-cell-in-view"
|
class="ant-picker-cell ant-picker-cell-in-view"
|
||||||
title="2018-10-15"
|
title="2018-10-15"
|
||||||
@ -575,9 +569,7 @@ exports[`Calendar Calendar should support locale 1`] = `
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr
|
<tr>
|
||||||
class=""
|
|
||||||
>
|
|
||||||
<td
|
<td
|
||||||
class="ant-picker-cell ant-picker-cell-in-view"
|
class="ant-picker-cell ant-picker-cell-in-view"
|
||||||
title="2018-10-22"
|
title="2018-10-22"
|
||||||
@ -698,9 +690,7 @@ exports[`Calendar Calendar should support locale 1`] = `
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr
|
<tr>
|
||||||
class=""
|
|
||||||
>
|
|
||||||
<td
|
<td
|
||||||
class="ant-picker-cell ant-picker-cell-in-view"
|
class="ant-picker-cell ant-picker-cell-in-view"
|
||||||
title="2018-10-29"
|
title="2018-10-29"
|
||||||
@ -821,9 +811,7 @@ exports[`Calendar Calendar should support locale 1`] = `
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr
|
<tr>
|
||||||
class=""
|
|
||||||
>
|
|
||||||
<td
|
<td
|
||||||
class="ant-picker-cell"
|
class="ant-picker-cell"
|
||||||
title="2018-11-05"
|
title="2018-11-05"
|
||||||
@ -1156,9 +1144,7 @@ exports[`Calendar rtl render component should be rendered correctly in RTL direc
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr
|
<tr>
|
||||||
class=""
|
|
||||||
>
|
|
||||||
<td
|
<td
|
||||||
class="ant-picker-cell"
|
class="ant-picker-cell"
|
||||||
title="2000-08-27"
|
title="2000-08-27"
|
||||||
@ -1279,9 +1265,7 @@ exports[`Calendar rtl render component should be rendered correctly in RTL direc
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr
|
<tr>
|
||||||
class=""
|
|
||||||
>
|
|
||||||
<td
|
<td
|
||||||
class="ant-picker-cell ant-picker-cell-in-view"
|
class="ant-picker-cell ant-picker-cell-in-view"
|
||||||
title="2000-09-03"
|
title="2000-09-03"
|
||||||
@ -1402,9 +1386,7 @@ exports[`Calendar rtl render component should be rendered correctly in RTL direc
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr
|
<tr>
|
||||||
class=""
|
|
||||||
>
|
|
||||||
<td
|
<td
|
||||||
class="ant-picker-cell ant-picker-cell-in-view"
|
class="ant-picker-cell ant-picker-cell-in-view"
|
||||||
title="2000-09-10"
|
title="2000-09-10"
|
||||||
@ -1525,9 +1507,7 @@ exports[`Calendar rtl render component should be rendered correctly in RTL direc
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr
|
<tr>
|
||||||
class=""
|
|
||||||
>
|
|
||||||
<td
|
<td
|
||||||
class="ant-picker-cell ant-picker-cell-in-view"
|
class="ant-picker-cell ant-picker-cell-in-view"
|
||||||
title="2000-09-17"
|
title="2000-09-17"
|
||||||
@ -1648,9 +1628,7 @@ exports[`Calendar rtl render component should be rendered correctly in RTL direc
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr
|
<tr>
|
||||||
class=""
|
|
||||||
>
|
|
||||||
<td
|
<td
|
||||||
class="ant-picker-cell ant-picker-cell-in-view"
|
class="ant-picker-cell ant-picker-cell-in-view"
|
||||||
title="2000-09-24"
|
title="2000-09-24"
|
||||||
@ -1771,9 +1749,7 @@ exports[`Calendar rtl render component should be rendered correctly in RTL direc
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr
|
<tr>
|
||||||
class=""
|
|
||||||
>
|
|
||||||
<td
|
<td
|
||||||
class="ant-picker-cell"
|
class="ant-picker-cell"
|
||||||
title="2000-10-01"
|
title="2000-10-01"
|
||||||
|
@ -67,4 +67,22 @@ describe('Card', () => {
|
|||||||
);
|
);
|
||||||
expect(wrapper.find('.ant-card-actions').length).toBe(0);
|
expect(wrapper.find('.ant-card-actions').length).toBe(0);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('with tab props', () => {
|
||||||
|
const wrapper = mount(
|
||||||
|
<Card
|
||||||
|
title="Card title"
|
||||||
|
tabList={[
|
||||||
|
{
|
||||||
|
key: 'key',
|
||||||
|
tab: 'tab',
|
||||||
|
},
|
||||||
|
]}
|
||||||
|
tabProps={{ size: 'small' }}
|
||||||
|
>
|
||||||
|
<p>Card content</p>
|
||||||
|
</Card>,
|
||||||
|
);
|
||||||
|
expect(wrapper.find('Tabs').get(0).props.size).toBe('small');
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
@ -37,6 +37,7 @@ A card can be used to display content related to a single subject. The content c
|
|||||||
| title | Card title | string\|ReactNode | - | |
|
| title | Card title | string\|ReactNode | - | |
|
||||||
| type | Card style type, can be set to `inner` or not set | string | - | |
|
| type | Card style type, can be set to `inner` or not set | string | - | |
|
||||||
| onTabChange | Callback when tab is switched | (key) => void | - | |
|
| onTabChange | Callback when tab is switched | (key) => void | - | |
|
||||||
|
| tabProps | [Tabs](https://ant.design/components/tabs/#Tabs) | - | - | |
|
||||||
|
|
||||||
### Card.Grid
|
### Card.Grid
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@ import classNames from 'classnames';
|
|||||||
import omit from 'omit.js';
|
import omit from 'omit.js';
|
||||||
import Grid from './Grid';
|
import Grid from './Grid';
|
||||||
import Meta from './Meta';
|
import Meta from './Meta';
|
||||||
import Tabs from '../tabs';
|
import Tabs, { TabsProps } from '../tabs';
|
||||||
import Row from '../row';
|
import Row from '../row';
|
||||||
import Col from '../col';
|
import Col from '../col';
|
||||||
import { ConfigConsumer, ConfigConsumerProps } from '../config-provider';
|
import { ConfigConsumer, ConfigConsumerProps } from '../config-provider';
|
||||||
@ -54,6 +54,7 @@ export interface CardProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 't
|
|||||||
onTabChange?: (key: string) => void;
|
onTabChange?: (key: string) => void;
|
||||||
activeTabKey?: string;
|
activeTabKey?: string;
|
||||||
defaultActiveTabKey?: string;
|
defaultActiveTabKey?: string;
|
||||||
|
tabProps?: TabsProps;
|
||||||
}
|
}
|
||||||
|
|
||||||
export default class Card extends React.Component<CardProps, {}> {
|
export default class Card extends React.Component<CardProps, {}> {
|
||||||
@ -97,6 +98,7 @@ export default class Card extends React.Component<CardProps, {}> {
|
|||||||
defaultActiveTabKey,
|
defaultActiveTabKey,
|
||||||
tabBarExtraContent,
|
tabBarExtraContent,
|
||||||
hoverable,
|
hoverable,
|
||||||
|
tabProps = {},
|
||||||
...others
|
...others
|
||||||
} = this.props;
|
} = this.props;
|
||||||
|
|
||||||
@ -152,6 +154,7 @@ export default class Card extends React.Component<CardProps, {}> {
|
|||||||
|
|
||||||
const hasActiveTabKey = activeTabKey !== undefined;
|
const hasActiveTabKey = activeTabKey !== undefined;
|
||||||
const extraProps = {
|
const extraProps = {
|
||||||
|
...tabProps,
|
||||||
[hasActiveTabKey ? 'activeKey' : 'defaultActiveKey']: hasActiveTabKey
|
[hasActiveTabKey ? 'activeKey' : 'defaultActiveKey']: hasActiveTabKey
|
||||||
? activeTabKey
|
? activeTabKey
|
||||||
: defaultActiveTabKey,
|
: defaultActiveTabKey,
|
||||||
@ -162,9 +165,9 @@ export default class Card extends React.Component<CardProps, {}> {
|
|||||||
const tabs =
|
const tabs =
|
||||||
tabList && tabList.length ? (
|
tabList && tabList.length ? (
|
||||||
<Tabs
|
<Tabs
|
||||||
|
size="large"
|
||||||
{...extraProps}
|
{...extraProps}
|
||||||
className={`${prefixCls}-head-tabs`}
|
className={`${prefixCls}-head-tabs`}
|
||||||
size="large"
|
|
||||||
onChange={this.onTabChange}
|
onChange={this.onTabChange}
|
||||||
>
|
>
|
||||||
{tabList.map(item => (
|
{tabList.map(item => (
|
||||||
|
@ -38,6 +38,7 @@ cols: 1
|
|||||||
| title | 卡片标题 | string\|ReactNode | - | |
|
| title | 卡片标题 | string\|ReactNode | - | |
|
||||||
| type | 卡片类型,可设置为 `inner` 或 不设置 | string | - | |
|
| type | 卡片类型,可设置为 `inner` 或 不设置 | string | - | |
|
||||||
| onTabChange | 页签切换的回调 | (key) => void | - | |
|
| onTabChange | 页签切换的回调 | (key) => void | - | |
|
||||||
|
| tabProps | [Tabs](https://ant.design/components/tabs-cn/#Tabs) | - | - | |
|
||||||
|
|
||||||
### Card.Grid
|
### Card.Grid
|
||||||
|
|
||||||
|
@ -126,4 +126,18 @@ describe('Carousel', () => {
|
|||||||
).toBeTruthy();
|
).toBeTruthy();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
describe('dots precise control by plain object', () => {
|
||||||
|
it('use dots to provide dotsClasse', () => {
|
||||||
|
const wrapper = mount(
|
||||||
|
<Carousel dots={{ className: 'customDots' }}>
|
||||||
|
<div>1</div>
|
||||||
|
<div>2</div>
|
||||||
|
<div>3</div>
|
||||||
|
</Carousel>,
|
||||||
|
);
|
||||||
|
wrapper.update();
|
||||||
|
expect(wrapper.find('.slick-dots').hasClass('customDots')).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
@ -20,7 +20,7 @@ A carousel component. Scales with its container.
|
|||||||
| autoplay | Whether to scroll automatically | boolean | `false` | |
|
| autoplay | Whether to scroll automatically | boolean | `false` | |
|
||||||
| beforeChange | Callback function called before the current index changes | function(from, to) | - | |
|
| beforeChange | Callback function called before the current index changes | function(from, to) | - | |
|
||||||
| dotPosition | The position of the dots, which can be one of `top` `bottom` `left` `right` | string | bottom | |
|
| dotPosition | The position of the dots, which can be one of `top` `bottom` `left` `right` | string | bottom | |
|
||||||
| dots | Whether to show the dots at the bottom of the gallery | boolean | `true` | |
|
| dots | Whether to show the dots at the bottom of the gallery, `object` for `dotsClass` and any others | boolean \| { className?:string } | `true` | |
|
||||||
| easing | Transition interpolation function name | string | `linear` | |
|
| easing | Transition interpolation function name | string | `linear` | |
|
||||||
| effect | Transition effect | `scrollx` \| `fade` | `scrollx` | |
|
| effect | Transition effect | `scrollx` \| `fade` | `scrollx` | |
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
|
import isPlainObject from 'lodash/isPlainObject';
|
||||||
import debounce from 'lodash/debounce';
|
import debounce from 'lodash/debounce';
|
||||||
import { Settings } from '@ant-design/react-slick';
|
import { Settings } from '@ant-design/react-slick';
|
||||||
import classNames from 'classnames';
|
import classNames from 'classnames';
|
||||||
@ -14,13 +15,18 @@ export type CarouselEffect = 'scrollx' | 'fade';
|
|||||||
export type DotPosition = 'top' | 'bottom' | 'left' | 'right';
|
export type DotPosition = 'top' | 'bottom' | 'left' | 'right';
|
||||||
|
|
||||||
// Carousel
|
// Carousel
|
||||||
export interface CarouselProps extends Settings {
|
export interface CarouselProps extends Omit<Settings, 'dots' | 'dotsClass'> {
|
||||||
effect?: CarouselEffect;
|
effect?: CarouselEffect;
|
||||||
style?: React.CSSProperties;
|
style?: React.CSSProperties;
|
||||||
prefixCls?: string;
|
prefixCls?: string;
|
||||||
slickGoTo?: number;
|
slickGoTo?: number;
|
||||||
dotPosition?: DotPosition;
|
dotPosition?: DotPosition;
|
||||||
children?: React.ReactNode;
|
children?: React.ReactNode;
|
||||||
|
dots?:
|
||||||
|
| boolean
|
||||||
|
| {
|
||||||
|
className?: string;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export default class Carousel extends React.Component<CarouselProps, {}> {
|
export default class Carousel extends React.Component<CarouselProps, {}> {
|
||||||
@ -106,7 +112,13 @@ export default class Carousel extends React.Component<CarouselProps, {}> {
|
|||||||
const dotsClass = 'slick-dots';
|
const dotsClass = 'slick-dots';
|
||||||
const dotPosition = this.getDotPosition();
|
const dotPosition = this.getDotPosition();
|
||||||
props.vertical = dotPosition === 'left' || dotPosition === 'right';
|
props.vertical = dotPosition === 'left' || dotPosition === 'right';
|
||||||
props.dotsClass = `${dotsClass} ${dotsClass}-${dotPosition || 'bottom'}`;
|
|
||||||
|
const enableDots = props.dots === true || isPlainObject(props.dots);
|
||||||
|
const dsClass = classNames(
|
||||||
|
dotsClass,
|
||||||
|
`${dotsClass}-${dotPosition || 'bottom'}`,
|
||||||
|
typeof props.dots === 'boolean' ? false : props.dots?.className,
|
||||||
|
);
|
||||||
|
|
||||||
const className = classNames(prefixCls, {
|
const className = classNames(prefixCls, {
|
||||||
[`${prefixCls}-rtl`]: direction === 'rtl',
|
[`${prefixCls}-rtl`]: direction === 'rtl',
|
||||||
@ -115,7 +127,7 @@ export default class Carousel extends React.Component<CarouselProps, {}> {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={className}>
|
<div className={className}>
|
||||||
<SlickCarousel ref={this.saveSlick} {...props} />
|
<SlickCarousel ref={this.saveSlick} {...props} dots={enableDots} dotsClass={dsClass} />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
@ -21,7 +21,7 @@ subtitle: 走马灯
|
|||||||
| autoplay | 是否自动切换 | boolean | false | | |
|
| autoplay | 是否自动切换 | boolean | false | | |
|
||||||
| beforeChange | 切换面板的回调 | function(from, to) | 无 | | |
|
| beforeChange | 切换面板的回调 | function(from, to) | 无 | | |
|
||||||
| dotPosition | 面板指示点位置,可选 `top` `bottom` `left` `right` | string | bottom | |
|
| dotPosition | 面板指示点位置,可选 `top` `bottom` `left` `right` | string | bottom | |
|
||||||
| dots | 是否显示面板指示点 | boolean | true | | |
|
| dots | 是否显示面板指示点,如果为 `object` 则同时可以指定 `dotsClass` 或者 | boolean \| { className?:string } | true | | |
|
||||||
| easing | 动画效果 | string | linear | | |
|
| easing | 动画效果 | string | linear | | |
|
||||||
| effect | 动画效果函数,可取 scrollx, fade | string | scrollx | | |
|
| effect | 动画效果函数,可取 scrollx, fade | string | scrollx | | |
|
||||||
|
|
||||||
|
@ -1255,9 +1255,7 @@ exports[`ConfigProvider components Calendar configProvider 1`] = `
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr
|
<tr>
|
||||||
class=""
|
|
||||||
>
|
|
||||||
<td
|
<td
|
||||||
class="config-picker-cell"
|
class="config-picker-cell"
|
||||||
title="2000-08-27"
|
title="2000-08-27"
|
||||||
@ -1378,9 +1376,7 @@ exports[`ConfigProvider components Calendar configProvider 1`] = `
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr
|
<tr>
|
||||||
class=""
|
|
||||||
>
|
|
||||||
<td
|
<td
|
||||||
class="config-picker-cell config-picker-cell-in-view config-picker-cell-selected"
|
class="config-picker-cell config-picker-cell-in-view config-picker-cell-selected"
|
||||||
title="2000-09-03"
|
title="2000-09-03"
|
||||||
@ -1501,9 +1497,7 @@ exports[`ConfigProvider components Calendar configProvider 1`] = `
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr
|
<tr>
|
||||||
class=""
|
|
||||||
>
|
|
||||||
<td
|
<td
|
||||||
class="config-picker-cell config-picker-cell-in-view"
|
class="config-picker-cell config-picker-cell-in-view"
|
||||||
title="2000-09-10"
|
title="2000-09-10"
|
||||||
@ -1624,9 +1618,7 @@ exports[`ConfigProvider components Calendar configProvider 1`] = `
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr
|
<tr>
|
||||||
class=""
|
|
||||||
>
|
|
||||||
<td
|
<td
|
||||||
class="config-picker-cell config-picker-cell-in-view"
|
class="config-picker-cell config-picker-cell-in-view"
|
||||||
title="2000-09-17"
|
title="2000-09-17"
|
||||||
@ -1747,9 +1739,7 @@ exports[`ConfigProvider components Calendar configProvider 1`] = `
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr
|
<tr>
|
||||||
class=""
|
|
||||||
>
|
|
||||||
<td
|
<td
|
||||||
class="config-picker-cell config-picker-cell-in-view"
|
class="config-picker-cell config-picker-cell-in-view"
|
||||||
title="2000-09-24"
|
title="2000-09-24"
|
||||||
@ -1870,9 +1860,7 @@ exports[`ConfigProvider components Calendar configProvider 1`] = `
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr
|
<tr>
|
||||||
class=""
|
|
||||||
>
|
|
||||||
<td
|
<td
|
||||||
class="config-picker-cell"
|
class="config-picker-cell"
|
||||||
title="2000-10-01"
|
title="2000-10-01"
|
||||||
@ -2262,7 +2250,7 @@ exports[`ConfigProvider components Calendar configProvider 1`] = `
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td
|
<td
|
||||||
class="config-picker-cell config-picker-cell-selected config-picker-cell-in-view"
|
class="config-picker-cell config-picker-cell-in-view config-picker-cell-selected"
|
||||||
title="2000-09"
|
title="2000-09"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
@ -2546,9 +2534,7 @@ exports[`ConfigProvider components Calendar normal 1`] = `
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr
|
<tr>
|
||||||
class=""
|
|
||||||
>
|
|
||||||
<td
|
<td
|
||||||
class="ant-picker-cell"
|
class="ant-picker-cell"
|
||||||
title="2000-08-27"
|
title="2000-08-27"
|
||||||
@ -2669,9 +2655,7 @@ exports[`ConfigProvider components Calendar normal 1`] = `
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr
|
<tr>
|
||||||
class=""
|
|
||||||
>
|
|
||||||
<td
|
<td
|
||||||
class="ant-picker-cell ant-picker-cell-in-view ant-picker-cell-selected"
|
class="ant-picker-cell ant-picker-cell-in-view ant-picker-cell-selected"
|
||||||
title="2000-09-03"
|
title="2000-09-03"
|
||||||
@ -2792,9 +2776,7 @@ exports[`ConfigProvider components Calendar normal 1`] = `
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr
|
<tr>
|
||||||
class=""
|
|
||||||
>
|
|
||||||
<td
|
<td
|
||||||
class="ant-picker-cell ant-picker-cell-in-view"
|
class="ant-picker-cell ant-picker-cell-in-view"
|
||||||
title="2000-09-10"
|
title="2000-09-10"
|
||||||
@ -2915,9 +2897,7 @@ exports[`ConfigProvider components Calendar normal 1`] = `
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr
|
<tr>
|
||||||
class=""
|
|
||||||
>
|
|
||||||
<td
|
<td
|
||||||
class="ant-picker-cell ant-picker-cell-in-view"
|
class="ant-picker-cell ant-picker-cell-in-view"
|
||||||
title="2000-09-17"
|
title="2000-09-17"
|
||||||
@ -3038,9 +3018,7 @@ exports[`ConfigProvider components Calendar normal 1`] = `
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr
|
<tr>
|
||||||
class=""
|
|
||||||
>
|
|
||||||
<td
|
<td
|
||||||
class="ant-picker-cell ant-picker-cell-in-view"
|
class="ant-picker-cell ant-picker-cell-in-view"
|
||||||
title="2000-09-24"
|
title="2000-09-24"
|
||||||
@ -3161,9 +3139,7 @@ exports[`ConfigProvider components Calendar normal 1`] = `
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr
|
<tr>
|
||||||
class=""
|
|
||||||
>
|
|
||||||
<td
|
<td
|
||||||
class="ant-picker-cell"
|
class="ant-picker-cell"
|
||||||
title="2000-10-01"
|
title="2000-10-01"
|
||||||
@ -3553,7 +3529,7 @@ exports[`ConfigProvider components Calendar normal 1`] = `
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td
|
<td
|
||||||
class="ant-picker-cell ant-picker-cell-selected ant-picker-cell-in-view"
|
class="ant-picker-cell ant-picker-cell-in-view ant-picker-cell-selected"
|
||||||
title="2000-09"
|
title="2000-09"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
@ -3837,9 +3813,7 @@ exports[`ConfigProvider components Calendar prefixCls 1`] = `
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr
|
<tr>
|
||||||
class=""
|
|
||||||
>
|
|
||||||
<td
|
<td
|
||||||
class="prefix-Calendar-cell"
|
class="prefix-Calendar-cell"
|
||||||
title="2000-08-27"
|
title="2000-08-27"
|
||||||
@ -3960,9 +3934,7 @@ exports[`ConfigProvider components Calendar prefixCls 1`] = `
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr
|
<tr>
|
||||||
class=""
|
|
||||||
>
|
|
||||||
<td
|
<td
|
||||||
class="prefix-Calendar-cell prefix-Calendar-cell-in-view prefix-Calendar-cell-selected"
|
class="prefix-Calendar-cell prefix-Calendar-cell-in-view prefix-Calendar-cell-selected"
|
||||||
title="2000-09-03"
|
title="2000-09-03"
|
||||||
@ -4083,9 +4055,7 @@ exports[`ConfigProvider components Calendar prefixCls 1`] = `
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr
|
<tr>
|
||||||
class=""
|
|
||||||
>
|
|
||||||
<td
|
<td
|
||||||
class="prefix-Calendar-cell prefix-Calendar-cell-in-view"
|
class="prefix-Calendar-cell prefix-Calendar-cell-in-view"
|
||||||
title="2000-09-10"
|
title="2000-09-10"
|
||||||
@ -4206,9 +4176,7 @@ exports[`ConfigProvider components Calendar prefixCls 1`] = `
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr
|
<tr>
|
||||||
class=""
|
|
||||||
>
|
|
||||||
<td
|
<td
|
||||||
class="prefix-Calendar-cell prefix-Calendar-cell-in-view"
|
class="prefix-Calendar-cell prefix-Calendar-cell-in-view"
|
||||||
title="2000-09-17"
|
title="2000-09-17"
|
||||||
@ -4329,9 +4297,7 @@ exports[`ConfigProvider components Calendar prefixCls 1`] = `
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr
|
<tr>
|
||||||
class=""
|
|
||||||
>
|
|
||||||
<td
|
<td
|
||||||
class="prefix-Calendar-cell prefix-Calendar-cell-in-view"
|
class="prefix-Calendar-cell prefix-Calendar-cell-in-view"
|
||||||
title="2000-09-24"
|
title="2000-09-24"
|
||||||
@ -4452,9 +4418,7 @@ exports[`ConfigProvider components Calendar prefixCls 1`] = `
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr
|
<tr>
|
||||||
class=""
|
|
||||||
>
|
|
||||||
<td
|
<td
|
||||||
class="prefix-Calendar-cell"
|
class="prefix-Calendar-cell"
|
||||||
title="2000-10-01"
|
title="2000-10-01"
|
||||||
@ -4844,7 +4808,7 @@ exports[`ConfigProvider components Calendar prefixCls 1`] = `
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td
|
<td
|
||||||
class="prefix-Calendar-cell prefix-Calendar-cell-selected prefix-Calendar-cell-in-view"
|
class="prefix-Calendar-cell prefix-Calendar-cell-in-view prefix-Calendar-cell-selected"
|
||||||
title="2000-09"
|
title="2000-09"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
@ -9271,57 +9235,55 @@ exports[`ConfigProvider components Popconfirm configProvider 1`] = `
|
|||||||
class="config-popover-inner"
|
class="config-popover-inner"
|
||||||
role="tooltip"
|
role="tooltip"
|
||||||
>
|
>
|
||||||
<div>
|
<div
|
||||||
|
class="config-popover-inner-content"
|
||||||
|
>
|
||||||
<div
|
<div
|
||||||
class="config-popover-inner-content"
|
class="config-popover-message"
|
||||||
>
|
>
|
||||||
<div
|
<span
|
||||||
class="config-popover-message"
|
aria-label="exclamation-circle"
|
||||||
|
class="anticon anticon-exclamation-circle"
|
||||||
|
role="img"
|
||||||
>
|
>
|
||||||
<span
|
<svg
|
||||||
aria-label="exclamation-circle"
|
aria-hidden="true"
|
||||||
class="anticon anticon-exclamation-circle"
|
class=""
|
||||||
role="img"
|
data-icon="exclamation-circle"
|
||||||
|
fill="currentColor"
|
||||||
|
focusable="false"
|
||||||
|
height="1em"
|
||||||
|
viewBox="64 64 896 896"
|
||||||
|
width="1em"
|
||||||
>
|
>
|
||||||
<svg
|
<path
|
||||||
aria-hidden="true"
|
d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"
|
||||||
class=""
|
/>
|
||||||
data-icon="exclamation-circle"
|
</svg>
|
||||||
fill="currentColor"
|
</span>
|
||||||
focusable="false"
|
<div
|
||||||
height="1em"
|
class="config-popover-message-title"
|
||||||
viewBox="64 64 896 896"
|
/>
|
||||||
width="1em"
|
</div>
|
||||||
>
|
<div
|
||||||
<path
|
class="config-popover-buttons"
|
||||||
d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"
|
>
|
||||||
/>
|
<button
|
||||||
</svg>
|
class="config-btn config-btn-sm"
|
||||||
|
type="button"
|
||||||
|
>
|
||||||
|
<span>
|
||||||
|
Cancel
|
||||||
</span>
|
</span>
|
||||||
<div
|
</button>
|
||||||
class="config-popover-message-title"
|
<button
|
||||||
/>
|
class="config-btn config-btn-primary config-btn-sm"
|
||||||
</div>
|
type="button"
|
||||||
<div
|
|
||||||
class="config-popover-buttons"
|
|
||||||
>
|
>
|
||||||
<button
|
<span>
|
||||||
class="config-btn config-btn-sm"
|
OK
|
||||||
type="button"
|
</span>
|
||||||
>
|
</button>
|
||||||
<span>
|
|
||||||
Cancel
|
|
||||||
</span>
|
|
||||||
</button>
|
|
||||||
<button
|
|
||||||
class="config-btn config-btn-primary config-btn-sm"
|
|
||||||
type="button"
|
|
||||||
>
|
|
||||||
<span>
|
|
||||||
OK
|
|
||||||
</span>
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -9353,57 +9315,55 @@ exports[`ConfigProvider components Popconfirm normal 1`] = `
|
|||||||
class="ant-popover-inner"
|
class="ant-popover-inner"
|
||||||
role="tooltip"
|
role="tooltip"
|
||||||
>
|
>
|
||||||
<div>
|
<div
|
||||||
|
class="ant-popover-inner-content"
|
||||||
|
>
|
||||||
<div
|
<div
|
||||||
class="ant-popover-inner-content"
|
class="ant-popover-message"
|
||||||
>
|
>
|
||||||
<div
|
<span
|
||||||
class="ant-popover-message"
|
aria-label="exclamation-circle"
|
||||||
|
class="anticon anticon-exclamation-circle"
|
||||||
|
role="img"
|
||||||
>
|
>
|
||||||
<span
|
<svg
|
||||||
aria-label="exclamation-circle"
|
aria-hidden="true"
|
||||||
class="anticon anticon-exclamation-circle"
|
class=""
|
||||||
role="img"
|
data-icon="exclamation-circle"
|
||||||
|
fill="currentColor"
|
||||||
|
focusable="false"
|
||||||
|
height="1em"
|
||||||
|
viewBox="64 64 896 896"
|
||||||
|
width="1em"
|
||||||
>
|
>
|
||||||
<svg
|
<path
|
||||||
aria-hidden="true"
|
d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"
|
||||||
class=""
|
/>
|
||||||
data-icon="exclamation-circle"
|
</svg>
|
||||||
fill="currentColor"
|
</span>
|
||||||
focusable="false"
|
<div
|
||||||
height="1em"
|
class="ant-popover-message-title"
|
||||||
viewBox="64 64 896 896"
|
/>
|
||||||
width="1em"
|
</div>
|
||||||
>
|
<div
|
||||||
<path
|
class="ant-popover-buttons"
|
||||||
d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"
|
>
|
||||||
/>
|
<button
|
||||||
</svg>
|
class="ant-btn ant-btn-sm"
|
||||||
|
type="button"
|
||||||
|
>
|
||||||
|
<span>
|
||||||
|
Cancel
|
||||||
</span>
|
</span>
|
||||||
<div
|
</button>
|
||||||
class="ant-popover-message-title"
|
<button
|
||||||
/>
|
class="ant-btn ant-btn-primary ant-btn-sm"
|
||||||
</div>
|
type="button"
|
||||||
<div
|
|
||||||
class="ant-popover-buttons"
|
|
||||||
>
|
>
|
||||||
<button
|
<span>
|
||||||
class="ant-btn ant-btn-sm"
|
OK
|
||||||
type="button"
|
</span>
|
||||||
>
|
</button>
|
||||||
<span>
|
|
||||||
Cancel
|
|
||||||
</span>
|
|
||||||
</button>
|
|
||||||
<button
|
|
||||||
class="ant-btn ant-btn-primary ant-btn-sm"
|
|
||||||
type="button"
|
|
||||||
>
|
|
||||||
<span>
|
|
||||||
OK
|
|
||||||
</span>
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -9435,57 +9395,55 @@ exports[`ConfigProvider components Popconfirm prefixCls 1`] = `
|
|||||||
class="prefix-Popconfirm-inner"
|
class="prefix-Popconfirm-inner"
|
||||||
role="tooltip"
|
role="tooltip"
|
||||||
>
|
>
|
||||||
<div>
|
<div
|
||||||
|
class="prefix-Popconfirm-inner-content"
|
||||||
|
>
|
||||||
<div
|
<div
|
||||||
class="prefix-Popconfirm-inner-content"
|
class="prefix-Popconfirm-message"
|
||||||
>
|
>
|
||||||
<div
|
<span
|
||||||
class="prefix-Popconfirm-message"
|
aria-label="exclamation-circle"
|
||||||
|
class="anticon anticon-exclamation-circle"
|
||||||
|
role="img"
|
||||||
>
|
>
|
||||||
<span
|
<svg
|
||||||
aria-label="exclamation-circle"
|
aria-hidden="true"
|
||||||
class="anticon anticon-exclamation-circle"
|
class=""
|
||||||
role="img"
|
data-icon="exclamation-circle"
|
||||||
|
fill="currentColor"
|
||||||
|
focusable="false"
|
||||||
|
height="1em"
|
||||||
|
viewBox="64 64 896 896"
|
||||||
|
width="1em"
|
||||||
>
|
>
|
||||||
<svg
|
<path
|
||||||
aria-hidden="true"
|
d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"
|
||||||
class=""
|
/>
|
||||||
data-icon="exclamation-circle"
|
</svg>
|
||||||
fill="currentColor"
|
</span>
|
||||||
focusable="false"
|
<div
|
||||||
height="1em"
|
class="prefix-Popconfirm-message-title"
|
||||||
viewBox="64 64 896 896"
|
/>
|
||||||
width="1em"
|
</div>
|
||||||
>
|
<div
|
||||||
<path
|
class="prefix-Popconfirm-buttons"
|
||||||
d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"
|
>
|
||||||
/>
|
<button
|
||||||
</svg>
|
class="ant-btn ant-btn-sm"
|
||||||
|
type="button"
|
||||||
|
>
|
||||||
|
<span>
|
||||||
|
Cancel
|
||||||
</span>
|
</span>
|
||||||
<div
|
</button>
|
||||||
class="prefix-Popconfirm-message-title"
|
<button
|
||||||
/>
|
class="ant-btn ant-btn-primary ant-btn-sm"
|
||||||
</div>
|
type="button"
|
||||||
<div
|
|
||||||
class="prefix-Popconfirm-buttons"
|
|
||||||
>
|
>
|
||||||
<button
|
<span>
|
||||||
class="ant-btn ant-btn-sm"
|
OK
|
||||||
type="button"
|
</span>
|
||||||
>
|
</button>
|
||||||
<span>
|
|
||||||
Cancel
|
|
||||||
</span>
|
|
||||||
</button>
|
|
||||||
<button
|
|
||||||
class="ant-btn ant-btn-primary ant-btn-sm"
|
|
||||||
type="button"
|
|
||||||
>
|
|
||||||
<span>
|
|
||||||
OK
|
|
||||||
</span>
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -9517,11 +9475,9 @@ exports[`ConfigProvider components Popover configProvider 1`] = `
|
|||||||
class="config-popover-inner"
|
class="config-popover-inner"
|
||||||
role="tooltip"
|
role="tooltip"
|
||||||
>
|
>
|
||||||
<div>
|
<div
|
||||||
<div
|
class="config-popover-inner-content"
|
||||||
class="config-popover-inner-content"
|
/>
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -9551,11 +9507,9 @@ exports[`ConfigProvider components Popover normal 1`] = `
|
|||||||
class="ant-popover-inner"
|
class="ant-popover-inner"
|
||||||
role="tooltip"
|
role="tooltip"
|
||||||
>
|
>
|
||||||
<div>
|
<div
|
||||||
<div
|
class="ant-popover-inner-content"
|
||||||
class="ant-popover-inner-content"
|
/>
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -9585,11 +9539,9 @@ exports[`ConfigProvider components Popover prefixCls 1`] = `
|
|||||||
class="prefix-Popover-inner"
|
class="prefix-Popover-inner"
|
||||||
role="tooltip"
|
role="tooltip"
|
||||||
>
|
>
|
||||||
<div>
|
<div
|
||||||
<div
|
class="prefix-Popover-inner-content"
|
||||||
class="prefix-Popover-inner-content"
|
/>
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -11811,16 +11763,23 @@ exports[`ConfigProvider components Table configProvider 1`] = `
|
|||||||
<div
|
<div
|
||||||
class="config-table-filter-dropdown-btns"
|
class="config-table-filter-dropdown-btns"
|
||||||
>
|
>
|
||||||
<a
|
<button
|
||||||
class="config-table-filter-dropdown-link confirm"
|
class="config-btn config-btn-link config-btn-sm"
|
||||||
|
disabled=""
|
||||||
|
type="button"
|
||||||
>
|
>
|
||||||
OK
|
<span>
|
||||||
</a>
|
Reset
|
||||||
<a
|
</span>
|
||||||
class="config-table-filter-dropdown-link clear"
|
</button>
|
||||||
|
<button
|
||||||
|
class="config-btn config-btn-primary config-btn-sm"
|
||||||
|
type="button"
|
||||||
>
|
>
|
||||||
Reset
|
<span>
|
||||||
</a>
|
OK
|
||||||
|
</span>
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -12150,16 +12109,23 @@ exports[`ConfigProvider components Table normal 1`] = `
|
|||||||
<div
|
<div
|
||||||
class="ant-table-filter-dropdown-btns"
|
class="ant-table-filter-dropdown-btns"
|
||||||
>
|
>
|
||||||
<a
|
<button
|
||||||
class="ant-table-filter-dropdown-link confirm"
|
class="ant-btn ant-btn-link ant-btn-sm"
|
||||||
|
disabled=""
|
||||||
|
type="button"
|
||||||
>
|
>
|
||||||
OK
|
<span>
|
||||||
</a>
|
Reset
|
||||||
<a
|
</span>
|
||||||
class="ant-table-filter-dropdown-link clear"
|
</button>
|
||||||
|
<button
|
||||||
|
class="ant-btn ant-btn-primary ant-btn-sm"
|
||||||
|
type="button"
|
||||||
>
|
>
|
||||||
Reset
|
<span>
|
||||||
</a>
|
OK
|
||||||
|
</span>
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -12489,16 +12455,23 @@ exports[`ConfigProvider components Table prefixCls 1`] = `
|
|||||||
<div
|
<div
|
||||||
class="prefix-Table-filter-dropdown-btns"
|
class="prefix-Table-filter-dropdown-btns"
|
||||||
>
|
>
|
||||||
<a
|
<button
|
||||||
class="prefix-Table-filter-dropdown-link confirm"
|
class="ant-btn ant-btn-link ant-btn-sm"
|
||||||
|
disabled=""
|
||||||
|
type="button"
|
||||||
>
|
>
|
||||||
OK
|
<span>
|
||||||
</a>
|
Reset
|
||||||
<a
|
</span>
|
||||||
class="prefix-Table-filter-dropdown-link clear"
|
</button>
|
||||||
|
<button
|
||||||
|
class="ant-btn ant-btn-primary ant-btn-sm"
|
||||||
|
type="button"
|
||||||
>
|
>
|
||||||
Reset
|
<span>
|
||||||
</a>
|
OK
|
||||||
|
</span>
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -146,9 +146,7 @@ Array [
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr
|
<tr>
|
||||||
class=""
|
|
||||||
>
|
|
||||||
<td
|
<td
|
||||||
class="ant-picker-cell ant-picker-cell-disabled"
|
class="ant-picker-cell ant-picker-cell-disabled"
|
||||||
title="2016-10-30"
|
title="2016-10-30"
|
||||||
@ -220,9 +218,7 @@ Array [
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr
|
<tr>
|
||||||
class=""
|
|
||||||
>
|
|
||||||
<td
|
<td
|
||||||
class="ant-picker-cell ant-picker-cell-disabled ant-picker-cell-in-view"
|
class="ant-picker-cell ant-picker-cell-disabled ant-picker-cell-in-view"
|
||||||
title="2016-11-06"
|
title="2016-11-06"
|
||||||
@ -294,9 +290,7 @@ Array [
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr
|
<tr>
|
||||||
class=""
|
|
||||||
>
|
|
||||||
<td
|
<td
|
||||||
class="ant-picker-cell ant-picker-cell-disabled ant-picker-cell-in-view"
|
class="ant-picker-cell ant-picker-cell-disabled ant-picker-cell-in-view"
|
||||||
title="2016-11-13"
|
title="2016-11-13"
|
||||||
@ -368,9 +362,7 @@ Array [
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr
|
<tr>
|
||||||
class=""
|
|
||||||
>
|
|
||||||
<td
|
<td
|
||||||
class="ant-picker-cell ant-picker-cell-disabled ant-picker-cell-in-view"
|
class="ant-picker-cell ant-picker-cell-disabled ant-picker-cell-in-view"
|
||||||
title="2016-11-20"
|
title="2016-11-20"
|
||||||
@ -442,9 +434,7 @@ Array [
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr
|
<tr>
|
||||||
class=""
|
|
||||||
>
|
|
||||||
<td
|
<td
|
||||||
class="ant-picker-cell ant-picker-cell-in-view"
|
class="ant-picker-cell ant-picker-cell-in-view"
|
||||||
title="2016-11-27"
|
title="2016-11-27"
|
||||||
@ -516,9 +506,7 @@ Array [
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr
|
<tr>
|
||||||
class=""
|
|
||||||
>
|
|
||||||
<td
|
<td
|
||||||
class="ant-picker-cell"
|
class="ant-picker-cell"
|
||||||
title="2016-12-04"
|
title="2016-12-04"
|
||||||
@ -780,9 +768,7 @@ Array [
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr
|
<tr>
|
||||||
class=""
|
|
||||||
>
|
|
||||||
<td
|
<td
|
||||||
class="ant-picker-cell"
|
class="ant-picker-cell"
|
||||||
title="1999-12-27"
|
title="1999-12-27"
|
||||||
@ -854,9 +840,7 @@ Array [
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr
|
<tr>
|
||||||
class=""
|
|
||||||
>
|
|
||||||
<td
|
<td
|
||||||
class="ant-picker-cell ant-picker-cell-in-view"
|
class="ant-picker-cell ant-picker-cell-in-view"
|
||||||
title="2000-01-03"
|
title="2000-01-03"
|
||||||
@ -928,9 +912,7 @@ Array [
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr
|
<tr>
|
||||||
class=""
|
|
||||||
>
|
|
||||||
<td
|
<td
|
||||||
class="ant-picker-cell ant-picker-cell-in-view"
|
class="ant-picker-cell ant-picker-cell-in-view"
|
||||||
title="2000-01-10"
|
title="2000-01-10"
|
||||||
@ -1002,9 +984,7 @@ Array [
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr
|
<tr>
|
||||||
class=""
|
|
||||||
>
|
|
||||||
<td
|
<td
|
||||||
class="ant-picker-cell ant-picker-cell-in-view"
|
class="ant-picker-cell ant-picker-cell-in-view"
|
||||||
title="2000-01-17"
|
title="2000-01-17"
|
||||||
@ -1076,9 +1056,7 @@ Array [
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr
|
<tr>
|
||||||
class=""
|
|
||||||
>
|
|
||||||
<td
|
<td
|
||||||
class="ant-picker-cell ant-picker-cell-in-view"
|
class="ant-picker-cell ant-picker-cell-in-view"
|
||||||
title="2000-01-24"
|
title="2000-01-24"
|
||||||
@ -1150,9 +1128,7 @@ Array [
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr
|
<tr>
|
||||||
class=""
|
|
||||||
>
|
|
||||||
<td
|
<td
|
||||||
class="ant-picker-cell ant-picker-cell-in-view"
|
class="ant-picker-cell ant-picker-cell-in-view"
|
||||||
title="2000-01-31"
|
title="2000-01-31"
|
||||||
|
@ -53,7 +53,7 @@ exports[`MonthPicker and WeekPicker render MonthPicker 1`] = `
|
|||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td
|
<td
|
||||||
class="ant-picker-cell ant-picker-cell-selected ant-picker-cell-in-view"
|
class="ant-picker-cell ant-picker-cell-in-view ant-picker-cell-selected"
|
||||||
title="2000-01"
|
title="2000-01"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
|
@ -13,7 +13,7 @@ import {
|
|||||||
RangePickerDateProps as RCRangePickerDateProps,
|
RangePickerDateProps as RCRangePickerDateProps,
|
||||||
RangePickerTimeProps as RCRangePickerTimeProps,
|
RangePickerTimeProps as RCRangePickerTimeProps,
|
||||||
} from 'rc-picker/lib/RangePicker';
|
} from 'rc-picker/lib/RangePicker';
|
||||||
import { PickerMode } from 'rc-picker/lib/interface';
|
import { PickerMode, Locale as RcPickerLocale } from 'rc-picker/lib/interface';
|
||||||
import CalendarOutlined from '@ant-design/icons/CalendarOutlined';
|
import CalendarOutlined from '@ant-design/icons/CalendarOutlined';
|
||||||
import ClockCircleOutlined from '@ant-design/icons/ClockCircleOutlined';
|
import ClockCircleOutlined from '@ant-design/icons/ClockCircleOutlined';
|
||||||
import CloseCircleFilled from '@ant-design/icons/CloseCircleFilled';
|
import CloseCircleFilled from '@ant-design/icons/CloseCircleFilled';
|
||||||
@ -24,6 +24,7 @@ import { getPlaceholder, getRangePlaceholder } from './util';
|
|||||||
import PickerButton from './PickerButton';
|
import PickerButton from './PickerButton';
|
||||||
import PickerTag from './PickerTag';
|
import PickerTag from './PickerTag';
|
||||||
import SizeContext, { SizeType } from '../config-provider/SizeContext';
|
import SizeContext, { SizeType } from '../config-provider/SizeContext';
|
||||||
|
import { TimePickerLocale } from '../time-picker';
|
||||||
|
|
||||||
const Components = { button: PickerButton, rangeItem: PickerTag };
|
const Components = { button: PickerButton, rangeItem: PickerTag };
|
||||||
|
|
||||||
@ -78,11 +79,34 @@ type InjectDefaultProps<Props> = Omit<
|
|||||||
| 'hideHeader'
|
| 'hideHeader'
|
||||||
| 'components'
|
| 'components'
|
||||||
> & {
|
> & {
|
||||||
locale?: typeof enUS;
|
locale?: PickerLocale;
|
||||||
size?: SizeType;
|
size?: SizeType;
|
||||||
bordered?: boolean;
|
bordered?: boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type PickerLocale = {
|
||||||
|
lang: RcPickerLocale & AdditionalPickerLocaleLangProps;
|
||||||
|
timePickerLocale: TimePickerLocale;
|
||||||
|
} & AdditionalPickerLocaleProps;
|
||||||
|
|
||||||
|
export type AdditionalPickerLocaleProps = {
|
||||||
|
dateFormat?: string;
|
||||||
|
dateTimeFormat?: string;
|
||||||
|
weekFormat?: string;
|
||||||
|
monthFormat?: string;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type AdditionalPickerLocaleLangProps = {
|
||||||
|
placeholder: string;
|
||||||
|
yearPlaceholder?: string;
|
||||||
|
monthPlaceholder?: string;
|
||||||
|
weekPlaceholder?: string;
|
||||||
|
rangeYearPlaceholder?: [string, string];
|
||||||
|
rangeMonthPlaceholder?: [string, string];
|
||||||
|
rangeWeekPlaceholder?: [string, string];
|
||||||
|
rangePlaceholder?: [string, string];
|
||||||
|
};
|
||||||
|
|
||||||
// Picker Props
|
// Picker Props
|
||||||
export type PickerBaseProps<DateType> = InjectDefaultProps<RCPickerBaseProps<DateType>>;
|
export type PickerBaseProps<DateType> = InjectDefaultProps<RCPickerBaseProps<DateType>>;
|
||||||
export type PickerDateProps<DateType> = InjectDefaultProps<RCPickerDateProps<DateType>>;
|
export type PickerDateProps<DateType> = InjectDefaultProps<RCPickerDateProps<DateType>>;
|
||||||
@ -140,12 +164,12 @@ function generatePicker<DateType>(generateConfig: GenerateConfig<DateType>) {
|
|||||||
};
|
};
|
||||||
result.lang = {
|
result.lang = {
|
||||||
...result.lang,
|
...result.lang,
|
||||||
...((locale || {}) as any).lang,
|
...((locale || {}) as PickerLocale).lang,
|
||||||
};
|
};
|
||||||
return result;
|
return result;
|
||||||
};
|
};
|
||||||
|
|
||||||
renderPicker = (locale: any) => {
|
renderPicker = (locale: PickerLocale) => {
|
||||||
const { getPrefixCls, direction } = this.context;
|
const { getPrefixCls, direction } = this.context;
|
||||||
const {
|
const {
|
||||||
prefixCls: customizePrefixCls,
|
prefixCls: customizePrefixCls,
|
||||||
@ -263,12 +287,12 @@ function generatePicker<DateType>(generateConfig: GenerateConfig<DateType>) {
|
|||||||
};
|
};
|
||||||
result.lang = {
|
result.lang = {
|
||||||
...result.lang,
|
...result.lang,
|
||||||
...((locale || {}) as any).lang,
|
...((locale || {}) as PickerLocale).lang,
|
||||||
};
|
};
|
||||||
return result;
|
return result;
|
||||||
};
|
};
|
||||||
|
|
||||||
renderPicker = (locale: any) => {
|
renderPicker = (locale: PickerLocale) => {
|
||||||
const { getPrefixCls, direction } = this.context;
|
const { getPrefixCls, direction } = this.context;
|
||||||
const {
|
const {
|
||||||
prefixCls: customizePrefixCls,
|
prefixCls: customizePrefixCls,
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
import CalendarLocale from 'rc-picker/lib/locale/ar_EG';
|
import CalendarLocale from 'rc-picker/lib/locale/ar_EG';
|
||||||
import TimePickerLocale from '../../time-picker/locale/ar_EG';
|
import TimePickerLocale from '../../time-picker/locale/ar_EG';
|
||||||
|
import { PickerLocale } from '../generatePicker';
|
||||||
|
|
||||||
// Merge into a locale object
|
// Merge into a locale object
|
||||||
const locale = {
|
const locale: PickerLocale = {
|
||||||
lang: {
|
lang: {
|
||||||
placeholder: 'اختيار التاريخ',
|
placeholder: 'اختيار التاريخ',
|
||||||
rangePlaceholder: ['البداية', 'النهاية'],
|
rangePlaceholder: ['البداية', 'النهاية'],
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
import CalendarLocale from 'rc-picker/lib/locale/az_AZ';
|
import CalendarLocale from 'rc-picker/lib/locale/az_AZ';
|
||||||
import TimePickerLocale from '../../time-picker/locale/az_AZ';
|
import TimePickerLocale from '../../time-picker/locale/az_AZ';
|
||||||
|
import { PickerLocale } from '../generatePicker';
|
||||||
|
|
||||||
const locale = {
|
const locale: PickerLocale = {
|
||||||
lang: {
|
lang: {
|
||||||
placeholder: 'Tarix seçin',
|
placeholder: 'Tarix seçin',
|
||||||
rangePlaceholder: ['Başlama tarixi', 'Bitmə tarixi'],
|
rangePlaceholder: ['Başlama tarixi', 'Bitmə tarixi'],
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
import CalendarLocale from 'rc-picker/lib/locale/bg_BG';
|
import CalendarLocale from 'rc-picker/lib/locale/bg_BG';
|
||||||
import TimePickerLocale from '../../time-picker/locale/bg_BG';
|
import TimePickerLocale from '../../time-picker/locale/bg_BG';
|
||||||
|
import { PickerLocale } from '../generatePicker';
|
||||||
|
|
||||||
// Merge into a locale object
|
// Merge into a locale object
|
||||||
const locale = {
|
const locale: PickerLocale = {
|
||||||
lang: {
|
lang: {
|
||||||
placeholder: 'Избор на дата',
|
placeholder: 'Избор на дата',
|
||||||
rangePlaceholder: ['Начална', 'Крайна'],
|
rangePlaceholder: ['Начална', 'Крайна'],
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
import CalendarLocale from 'rc-picker/lib/locale/ca_ES';
|
import CalendarLocale from 'rc-picker/lib/locale/ca_ES';
|
||||||
import TimePickerLocale from '../../time-picker/locale/ca_ES';
|
import TimePickerLocale from '../../time-picker/locale/ca_ES';
|
||||||
|
import { PickerLocale } from '../generatePicker';
|
||||||
|
|
||||||
// Merge into a locale object
|
// Merge into a locale object
|
||||||
const locale = {
|
const locale: PickerLocale = {
|
||||||
lang: {
|
lang: {
|
||||||
placeholder: 'Seleccionar data',
|
placeholder: 'Seleccionar data',
|
||||||
rangePlaceholder: ['Data inicial', 'Data final'],
|
rangePlaceholder: ['Data inicial', 'Data final'],
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
import CalendarLocale from 'rc-picker/lib/locale/cs_CZ';
|
import CalendarLocale from 'rc-picker/lib/locale/cs_CZ';
|
||||||
import TimePickerLocale from '../../time-picker/locale/cs_CZ';
|
import TimePickerLocale from '../../time-picker/locale/cs_CZ';
|
||||||
|
import { PickerLocale } from '../generatePicker';
|
||||||
|
|
||||||
// Merge into a locale object
|
// Merge into a locale object
|
||||||
const locale = {
|
const locale: PickerLocale = {
|
||||||
lang: {
|
lang: {
|
||||||
placeholder: 'Vybrat datum',
|
placeholder: 'Vybrat datum',
|
||||||
rangePlaceholder: ['Od', 'Do'],
|
rangePlaceholder: ['Od', 'Do'],
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
import CalendarLocale from 'rc-picker/lib/locale/da_DK';
|
import CalendarLocale from 'rc-picker/lib/locale/da_DK';
|
||||||
import TimePickerLocale from '../../time-picker/locale/da_DK';
|
import TimePickerLocale from '../../time-picker/locale/da_DK';
|
||||||
|
import { PickerLocale } from '../generatePicker';
|
||||||
|
|
||||||
// Merge into a locale object
|
// Merge into a locale object
|
||||||
const locale = {
|
const locale: PickerLocale = {
|
||||||
lang: {
|
lang: {
|
||||||
placeholder: 'Vælg dato',
|
placeholder: 'Vælg dato',
|
||||||
rangePlaceholder: ['Startdato', 'Slutdato'],
|
rangePlaceholder: ['Startdato', 'Slutdato'],
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
import CalendarLocale from 'rc-picker/lib/locale/de_DE';
|
import CalendarLocale from 'rc-picker/lib/locale/de_DE';
|
||||||
import TimePickerLocale from '../../time-picker/locale/de_DE';
|
import TimePickerLocale from '../../time-picker/locale/de_DE';
|
||||||
|
import { PickerLocale } from '../generatePicker';
|
||||||
|
|
||||||
// Merge into a locale object
|
// Merge into a locale object
|
||||||
const locale = {
|
const locale: PickerLocale = {
|
||||||
lang: {
|
lang: {
|
||||||
placeholder: 'Datum auswählen',
|
placeholder: 'Datum auswählen',
|
||||||
rangePlaceholder: ['Startdatum', 'Enddatum'],
|
rangePlaceholder: ['Startdatum', 'Enddatum'],
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
import CalendarLocale from 'rc-picker/lib/locale/el_GR';
|
import CalendarLocale from 'rc-picker/lib/locale/el_GR';
|
||||||
import TimePickerLocale from '../../time-picker/locale/el_GR';
|
import TimePickerLocale from '../../time-picker/locale/el_GR';
|
||||||
|
import { PickerLocale } from '../generatePicker';
|
||||||
|
|
||||||
// Merge into a locale object
|
// Merge into a locale object
|
||||||
const locale = {
|
const locale: PickerLocale = {
|
||||||
lang: {
|
lang: {
|
||||||
placeholder: 'Επιλέξτε ημερομηνία',
|
placeholder: 'Επιλέξτε ημερομηνία',
|
||||||
rangePlaceholder: ['Αρχική ημερομηνία', 'Τελική ημερομηνία'],
|
rangePlaceholder: ['Αρχική ημερομηνία', 'Τελική ημερομηνία'],
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
import CalendarLocale from 'rc-picker/lib/locale/en_GB';
|
import CalendarLocale from 'rc-picker/lib/locale/en_GB';
|
||||||
import TimePickerLocale from '../../time-picker/locale/en_GB';
|
import TimePickerLocale from '../../time-picker/locale/en_GB';
|
||||||
|
import { PickerLocale } from '../generatePicker';
|
||||||
|
|
||||||
// Merge into a locale object
|
// Merge into a locale object
|
||||||
const locale = {
|
const locale: PickerLocale = {
|
||||||
lang: {
|
lang: {
|
||||||
placeholder: 'Select date',
|
placeholder: 'Select date',
|
||||||
rangePlaceholder: ['Start date', 'End date'],
|
rangePlaceholder: ['Start date', 'End date'],
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
import CalendarLocale from 'rc-picker/lib/locale/en_US';
|
import CalendarLocale from 'rc-picker/lib/locale/en_US';
|
||||||
import TimePickerLocale from '../../time-picker/locale/en_US';
|
import TimePickerLocale from '../../time-picker/locale/en_US';
|
||||||
|
import { PickerLocale } from '../generatePicker';
|
||||||
|
|
||||||
// Merge into a locale object
|
// Merge into a locale object
|
||||||
const locale = {
|
const locale: PickerLocale = {
|
||||||
lang: {
|
lang: {
|
||||||
placeholder: 'Select date',
|
placeholder: 'Select date',
|
||||||
yearPlaceholder: 'Select year',
|
yearPlaceholder: 'Select year',
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
import CalendarLocale from 'rc-picker/lib/locale/es_ES';
|
import CalendarLocale from 'rc-picker/lib/locale/es_ES';
|
||||||
import TimePickerLocale from '../../time-picker/locale/es_ES';
|
import TimePickerLocale from '../../time-picker/locale/es_ES';
|
||||||
|
import { PickerLocale } from '../generatePicker';
|
||||||
|
|
||||||
// Merge into a locale object
|
// Merge into a locale object
|
||||||
const locale = {
|
const locale: PickerLocale = {
|
||||||
lang: {
|
lang: {
|
||||||
placeholder: 'Seleccionar fecha',
|
placeholder: 'Seleccionar fecha',
|
||||||
rangePlaceholder: ['Fecha inicial', 'Fecha final'],
|
rangePlaceholder: ['Fecha inicial', 'Fecha final'],
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
import CalendarLocale from 'rc-picker/lib/locale/et_EE';
|
import CalendarLocale from 'rc-picker/lib/locale/et_EE';
|
||||||
import TimePickerLocale from '../../time-picker/locale/et_EE';
|
import TimePickerLocale from '../../time-picker/locale/et_EE';
|
||||||
|
import { PickerLocale } from '../generatePicker';
|
||||||
|
|
||||||
// 统一合并为完整的 Locale
|
// 统一合并为完整的 Locale
|
||||||
const locale = {
|
const locale: PickerLocale = {
|
||||||
lang: {
|
lang: {
|
||||||
placeholder: 'Vali kuupäev',
|
placeholder: 'Vali kuupäev',
|
||||||
rangePlaceholder: ['Algus kuupäev', 'Lõpu kuupäev'],
|
rangePlaceholder: ['Algus kuupäev', 'Lõpu kuupäev'],
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
import CalendarLocale from 'rc-picker/lib/locale/fa_IR';
|
import CalendarLocale from 'rc-picker/lib/locale/fa_IR';
|
||||||
import TimePickerLocale from '../../time-picker/locale/fa_IR';
|
import TimePickerLocale from '../../time-picker/locale/fa_IR';
|
||||||
|
import { PickerLocale } from '../generatePicker';
|
||||||
|
|
||||||
// Merge into a locale object
|
// Merge into a locale object
|
||||||
const locale = {
|
const locale: PickerLocale = {
|
||||||
lang: {
|
lang: {
|
||||||
placeholder: 'انتخاب تاریخ',
|
placeholder: 'انتخاب تاریخ',
|
||||||
rangePlaceholder: ['تاریخ شروع', 'تاریخ پایان'],
|
rangePlaceholder: ['تاریخ شروع', 'تاریخ پایان'],
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
import CalendarLocale from 'rc-picker/lib/locale/fi_FI';
|
import CalendarLocale from 'rc-picker/lib/locale/fi_FI';
|
||||||
import TimePickerLocale from '../../time-picker/locale/fi_FI';
|
import TimePickerLocale from '../../time-picker/locale/fi_FI';
|
||||||
|
import { PickerLocale } from '../generatePicker';
|
||||||
|
|
||||||
// Merge into a locale object
|
// Merge into a locale object
|
||||||
const locale = {
|
const locale: PickerLocale = {
|
||||||
lang: {
|
lang: {
|
||||||
placeholder: 'Valitse päivä',
|
placeholder: 'Valitse päivä',
|
||||||
rangePlaceholder: ['Alku päivä', 'Loppu päivä'],
|
rangePlaceholder: ['Alku päivä', 'Loppu päivä'],
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
import CalendarLocale from 'rc-picker/lib/locale/fr_BE';
|
import CalendarLocale from 'rc-picker/lib/locale/fr_BE';
|
||||||
import TimePickerLocale from '../../time-picker/locale/fr_BE';
|
import TimePickerLocale from '../../time-picker/locale/fr_BE';
|
||||||
|
import { PickerLocale } from '../generatePicker';
|
||||||
|
|
||||||
// Merge into a locale object
|
// Merge into a locale object
|
||||||
const locale = {
|
const locale: PickerLocale = {
|
||||||
lang: {
|
lang: {
|
||||||
placeholder: 'Sélectionner une date',
|
placeholder: 'Sélectionner une date',
|
||||||
rangePlaceholder: ['Date de début', 'Date de fin'],
|
rangePlaceholder: ['Date de début', 'Date de fin'],
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
import CalendarLocale from 'rc-picker/lib/locale/fr_FR';
|
import CalendarLocale from 'rc-picker/lib/locale/fr_FR';
|
||||||
import TimePickerLocale from '../../time-picker/locale/fr_FR';
|
import TimePickerLocale from '../../time-picker/locale/fr_FR';
|
||||||
|
import { PickerLocale } from '../generatePicker';
|
||||||
|
|
||||||
// Merge into a locale object
|
// Merge into a locale object
|
||||||
const locale = {
|
const locale: PickerLocale = {
|
||||||
lang: {
|
lang: {
|
||||||
placeholder: 'Sélectionner une date',
|
placeholder: 'Sélectionner une date',
|
||||||
yearPlaceholder: 'Sélectionner une année',
|
yearPlaceholder: 'Sélectionner une année',
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
import CalendarLocale from 'rc-picker/lib/locale/he_IL';
|
import CalendarLocale from 'rc-picker/lib/locale/he_IL';
|
||||||
import TimePickerLocale from '../../time-picker/locale/he_IL';
|
import TimePickerLocale from '../../time-picker/locale/he_IL';
|
||||||
|
import { PickerLocale } from '../generatePicker';
|
||||||
|
|
||||||
// Merge into a locale object
|
// Merge into a locale object
|
||||||
const locale = {
|
const locale: PickerLocale = {
|
||||||
lang: {
|
lang: {
|
||||||
placeholder: 'בחר תאריך',
|
placeholder: 'בחר תאריך',
|
||||||
rangePlaceholder: ['תאריך התחלה', 'תאריך סיום'],
|
rangePlaceholder: ['תאריך התחלה', 'תאריך סיום'],
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
import CalendarLocale from 'rc-picker/lib/locale/hi_IN';
|
import CalendarLocale from 'rc-picker/lib/locale/hi_IN';
|
||||||
import TimePickerLocale from '../../time-picker/locale/hi_IN';
|
import TimePickerLocale from '../../time-picker/locale/hi_IN';
|
||||||
|
import { PickerLocale } from '../generatePicker';
|
||||||
|
|
||||||
// Merge into a locale object
|
// Merge into a locale object
|
||||||
const locale = {
|
const locale: PickerLocale = {
|
||||||
lang: {
|
lang: {
|
||||||
placeholder: 'तारीख़ चुनें',
|
placeholder: 'तारीख़ चुनें',
|
||||||
rangePlaceholder: ['प्रारंभ तिथि', 'समाप्ति तिथि'],
|
rangePlaceholder: ['प्रारंभ तिथि', 'समाप्ति तिथि'],
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
import CalendarLocale from 'rc-picker/lib/locale/hr_HR';
|
import CalendarLocale from 'rc-picker/lib/locale/hr_HR';
|
||||||
import TimePickerLocale from '../../time-picker/locale/hr_HR';
|
import TimePickerLocale from '../../time-picker/locale/hr_HR';
|
||||||
|
import { PickerLocale } from '../generatePicker';
|
||||||
|
|
||||||
// Merge into a locale object
|
// Merge into a locale object
|
||||||
const locale = {
|
const locale: PickerLocale = {
|
||||||
lang: {
|
lang: {
|
||||||
placeholder: 'Odaberite datum',
|
placeholder: 'Odaberite datum',
|
||||||
rangePlaceholder: ['Početni datum', 'Završni datum'],
|
rangePlaceholder: ['Početni datum', 'Završni datum'],
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
import CalendarLocale from 'rc-picker/lib/locale/hu_HU';
|
import CalendarLocale from 'rc-picker/lib/locale/hu_HU';
|
||||||
import TimePickerLocale from '../../time-picker/locale/hu_HU';
|
import TimePickerLocale from '../../time-picker/locale/hu_HU';
|
||||||
|
import { PickerLocale } from '../generatePicker';
|
||||||
|
|
||||||
// Merge into a locale object
|
// Merge into a locale object
|
||||||
const locale = {
|
const locale: PickerLocale = {
|
||||||
lang: {
|
lang: {
|
||||||
placeholder: 'Válasszon dátumot',
|
placeholder: 'Válasszon dátumot',
|
||||||
rangePlaceholder: ['Kezdő dátum', 'Befejezés dátuma'],
|
rangePlaceholder: ['Kezdő dátum', 'Befejezés dátuma'],
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
import CalendarLocale from 'rc-picker/lib/locale/id_ID';
|
import CalendarLocale from 'rc-picker/lib/locale/id_ID';
|
||||||
import TimePickerLocale from '../../time-picker/locale/id_ID';
|
import TimePickerLocale from '../../time-picker/locale/id_ID';
|
||||||
|
import { PickerLocale } from '../generatePicker';
|
||||||
|
|
||||||
// Merge into a locale object
|
// Merge into a locale object
|
||||||
const locale = {
|
const locale: PickerLocale = {
|
||||||
lang: {
|
lang: {
|
||||||
placeholder: 'Pilih tanggal',
|
placeholder: 'Pilih tanggal',
|
||||||
rangePlaceholder: ['Mulai tanggal', 'Tanggal akhir'],
|
rangePlaceholder: ['Mulai tanggal', 'Tanggal akhir'],
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
import CalendarLocale from 'rc-picker/lib/locale/is_IS';
|
import CalendarLocale from 'rc-picker/lib/locale/is_IS';
|
||||||
import TimePickerLocale from '../../time-picker/locale/is_IS';
|
import TimePickerLocale from '../../time-picker/locale/is_IS';
|
||||||
|
import { PickerLocale } from '../generatePicker';
|
||||||
|
|
||||||
// Merge into a locale object
|
// Merge into a locale object
|
||||||
const locale = {
|
const locale: PickerLocale = {
|
||||||
lang: {
|
lang: {
|
||||||
placeholder: 'Veldu dag',
|
placeholder: 'Veldu dag',
|
||||||
rangePlaceholder: ['Upphafsdagur', 'Lokadagur'],
|
rangePlaceholder: ['Upphafsdagur', 'Lokadagur'],
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
import CalendarLocale from 'rc-picker/lib/locale/it_IT';
|
import CalendarLocale from 'rc-picker/lib/locale/it_IT';
|
||||||
import TimePickerLocale from '../../time-picker/locale/it_IT';
|
import TimePickerLocale from '../../time-picker/locale/it_IT';
|
||||||
|
import { PickerLocale } from '../generatePicker';
|
||||||
|
|
||||||
// Merge into a locale object
|
// Merge into a locale object
|
||||||
const locale = {
|
const locale: PickerLocale = {
|
||||||
lang: {
|
lang: {
|
||||||
placeholder: 'Selezionare la data',
|
placeholder: 'Selezionare la data',
|
||||||
rangePlaceholder: ["Data d'inizio", 'Data di fine'],
|
rangePlaceholder: ["Data d'inizio", 'Data di fine'],
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
import CalendarLocale from 'rc-picker/lib/locale/ja_JP';
|
import CalendarLocale from 'rc-picker/lib/locale/ja_JP';
|
||||||
import TimePickerLocale from '../../time-picker/locale/ja_JP';
|
import TimePickerLocale from '../../time-picker/locale/ja_JP';
|
||||||
|
import { PickerLocale } from '../generatePicker';
|
||||||
|
|
||||||
const locale = {
|
// Merge into a locale object
|
||||||
|
const locale: PickerLocale = {
|
||||||
lang: {
|
lang: {
|
||||||
placeholder: '日付を選択',
|
placeholder: '日付を選択',
|
||||||
rangePlaceholder: ['開始日付', '終了日付'],
|
rangePlaceholder: ['開始日付', '終了日付'],
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
import CalendarLocale from 'rc-picker/lib/locale/kn_IN';
|
import CalendarLocale from 'rc-picker/lib/locale/kn_IN';
|
||||||
import TimePickerLocale from '../../time-picker/locale/kn_IN';
|
import TimePickerLocale from '../../time-picker/locale/kn_IN';
|
||||||
|
import { PickerLocale } from '../generatePicker';
|
||||||
|
|
||||||
// Merge into a locale object
|
// Merge into a locale object
|
||||||
const locale = {
|
const locale: PickerLocale = {
|
||||||
lang: {
|
lang: {
|
||||||
placeholder: 'ದಿನಾಂಕ ಆಯ್ಕೆಮಾಡಿ',
|
placeholder: 'ದಿನಾಂಕ ಆಯ್ಕೆಮಾಡಿ',
|
||||||
rangePlaceholder: ['ಪ್ರಾರಂಭ ದಿನಾಂಕ', 'ಅಂತಿಮ ದಿನಾಂಕ'],
|
rangePlaceholder: ['ಪ್ರಾರಂಭ ದಿನಾಂಕ', 'ಅಂತಿಮ ದಿನಾಂಕ'],
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
import CalendarLocale from 'rc-picker/lib/locale/ko_KR';
|
import CalendarLocale from 'rc-picker/lib/locale/ko_KR';
|
||||||
import TimePickerLocale from '../../time-picker/locale/ko_KR';
|
import TimePickerLocale from '../../time-picker/locale/ko_KR';
|
||||||
|
import { PickerLocale } from '../generatePicker';
|
||||||
|
|
||||||
// Merge into a locale object
|
// Merge into a locale object
|
||||||
const locale = {
|
const locale: PickerLocale = {
|
||||||
lang: {
|
lang: {
|
||||||
placeholder: '날짜 선택',
|
placeholder: '날짜 선택',
|
||||||
rangePlaceholder: ['시작일', '종료일'],
|
rangePlaceholder: ['시작일', '종료일'],
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
import CalendarLocale from 'rc-picker/lib/locale/ku_IQ';
|
import CalendarLocale from 'rc-picker/lib/locale/ku_IQ';
|
||||||
import TimePickerLocale from '../../time-picker/locale/ku_IQ';
|
import TimePickerLocale from '../../time-picker/locale/ku_IQ';
|
||||||
|
import { PickerLocale } from '../generatePicker';
|
||||||
|
|
||||||
// Merge into a locale object
|
// Merge into a locale object
|
||||||
const locale = {
|
const locale: PickerLocale = {
|
||||||
lang: {
|
lang: {
|
||||||
placeholder: 'Dîrok hilbijêre',
|
placeholder: 'Dîrok hilbijêre',
|
||||||
rangePlaceholder: ['Dîroka destpêkê', 'Dîroka dawîn'],
|
rangePlaceholder: ['Dîroka destpêkê', 'Dîroka dawîn'],
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
import CalendarLocale from 'rc-picker/lib/locale/lv_LV';
|
import CalendarLocale from 'rc-picker/lib/locale/lv_LV';
|
||||||
import TimePickerLocale from '../../time-picker/locale/lv_LV';
|
import TimePickerLocale from '../../time-picker/locale/lv_LV';
|
||||||
|
import { PickerLocale } from '../generatePicker';
|
||||||
|
|
||||||
// Merge into a locale object
|
// Merge into a locale object
|
||||||
const locale = {
|
const locale: PickerLocale = {
|
||||||
lang: {
|
lang: {
|
||||||
placeholder: 'Izvēlieties datumu',
|
placeholder: 'Izvēlieties datumu',
|
||||||
rangePlaceholder: ['Sākuma datums', 'Beigu datums'],
|
rangePlaceholder: ['Sākuma datums', 'Beigu datums'],
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
import CalendarLocale from 'rc-picker/lib/locale/mk_MK';
|
import CalendarLocale from 'rc-picker/lib/locale/mk_MK';
|
||||||
import TimePickerLocale from '../../time-picker/locale/mk_MK';
|
import TimePickerLocale from '../../time-picker/locale/mk_MK';
|
||||||
|
import { PickerLocale } from '../generatePicker';
|
||||||
|
|
||||||
// Merge into a locale object
|
// Merge into a locale object
|
||||||
const locale = {
|
const locale: PickerLocale = {
|
||||||
lang: {
|
lang: {
|
||||||
placeholder: 'Избери датум',
|
placeholder: 'Избери датум',
|
||||||
rangePlaceholder: ['Од датум', 'До датум'],
|
rangePlaceholder: ['Од датум', 'До датум'],
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
import CalendarLocale from 'rc-picker/lib/locale/mn_MN';
|
import CalendarLocale from 'rc-picker/lib/locale/mn_MN';
|
||||||
import TimePickerLocale from '../../time-picker/locale/mn_MN';
|
import TimePickerLocale from '../../time-picker/locale/mn_MN';
|
||||||
|
import { PickerLocale } from '../generatePicker';
|
||||||
|
|
||||||
// Merge into a locale object
|
// Merge into a locale object
|
||||||
const locale = {
|
const locale: PickerLocale = {
|
||||||
lang: {
|
lang: {
|
||||||
placeholder: 'Огноо сонгох',
|
placeholder: 'Огноо сонгох',
|
||||||
rangePlaceholder: ['Эхлэх огноо', 'Дуусах огноо'],
|
rangePlaceholder: ['Эхлэх огноо', 'Дуусах огноо'],
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
import CalendarLocale from 'rc-picker/lib/locale/ms_MY';
|
import CalendarLocale from 'rc-picker/lib/locale/ms_MY';
|
||||||
import TimePickerLocale from '../../time-picker/locale/ms_MY';
|
import TimePickerLocale from '../../time-picker/locale/ms_MY';
|
||||||
|
import { PickerLocale } from '../generatePicker';
|
||||||
|
|
||||||
// Merge into a locale object
|
// Merge into a locale object
|
||||||
const locale = {
|
const locale: PickerLocale = {
|
||||||
lang: {
|
lang: {
|
||||||
placeholder: 'Pilih tarikh',
|
placeholder: 'Pilih tarikh',
|
||||||
rangePlaceholder: ['Tarikh mula', 'Tarikh akhir'],
|
rangePlaceholder: ['Tarikh mula', 'Tarikh akhir'],
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
import CalendarLocale from 'rc-picker/lib/locale/nb_NO';
|
import CalendarLocale from 'rc-picker/lib/locale/nb_NO';
|
||||||
import TimePickerLocale from '../../time-picker/locale/nb_NO';
|
import TimePickerLocale from '../../time-picker/locale/nb_NO';
|
||||||
|
import { PickerLocale } from '../generatePicker';
|
||||||
|
|
||||||
// Merge into a locale object
|
// Merge into a locale object
|
||||||
const locale = {
|
const locale: PickerLocale = {
|
||||||
lang: {
|
lang: {
|
||||||
placeholder: 'Velg dato',
|
placeholder: 'Velg dato',
|
||||||
rangePlaceholder: ['Startdato', 'Sluttdato'],
|
rangePlaceholder: ['Startdato', 'Sluttdato'],
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
import CalendarLocale from 'rc-picker/lib/locale/nl_BE';
|
import CalendarLocale from 'rc-picker/lib/locale/nl_BE';
|
||||||
import TimePickerLocale from '../../time-picker/locale/nl_BE';
|
import TimePickerLocale from '../../time-picker/locale/nl_BE';
|
||||||
|
import { PickerLocale } from '../generatePicker';
|
||||||
|
|
||||||
// Merge into a locale object
|
// Merge into a locale object
|
||||||
const locale = {
|
const locale: PickerLocale = {
|
||||||
lang: {
|
lang: {
|
||||||
placeholder: 'Selecteer datum',
|
placeholder: 'Selecteer datum',
|
||||||
rangePlaceholder: ['Begin datum', 'Eind datum'],
|
rangePlaceholder: ['Begin datum', 'Eind datum'],
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
import CalendarLocale from 'rc-picker/lib/locale/nl_NL';
|
import CalendarLocale from 'rc-picker/lib/locale/nl_NL';
|
||||||
import TimePickerLocale from '../../time-picker/locale/nl_NL';
|
import TimePickerLocale from '../../time-picker/locale/nl_NL';
|
||||||
|
import { PickerLocale } from '../generatePicker';
|
||||||
|
|
||||||
// Merge into a locale object
|
// Merge into a locale object
|
||||||
const locale = {
|
const locale: PickerLocale = {
|
||||||
lang: {
|
lang: {
|
||||||
placeholder: 'Selecteer datum',
|
placeholder: 'Selecteer datum',
|
||||||
rangePlaceholder: ['Begin datum', 'Eind datum'],
|
rangePlaceholder: ['Begin datum', 'Eind datum'],
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
import CalendarLocale from 'rc-picker/lib/locale/pl_PL';
|
import CalendarLocale from 'rc-picker/lib/locale/pl_PL';
|
||||||
import TimePickerLocale from '../../time-picker/locale/pl_PL';
|
import TimePickerLocale from '../../time-picker/locale/pl_PL';
|
||||||
|
import { PickerLocale } from '../generatePicker';
|
||||||
|
|
||||||
// Merge into a locale object
|
// Merge into a locale object
|
||||||
const locale = {
|
const locale: PickerLocale = {
|
||||||
lang: {
|
lang: {
|
||||||
placeholder: 'Wybierz datę',
|
placeholder: 'Wybierz datę',
|
||||||
rangePlaceholder: ['Data początkowa', 'Data końcowa'],
|
rangePlaceholder: ['Data początkowa', 'Data końcowa'],
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
import CalendarLocale from 'rc-picker/lib/locale/pt_BR';
|
import CalendarLocale from 'rc-picker/lib/locale/pt_BR';
|
||||||
import TimePickerLocale from '../../time-picker/locale/pt_BR';
|
import TimePickerLocale from '../../time-picker/locale/pt_BR';
|
||||||
|
import { PickerLocale } from '../generatePicker';
|
||||||
|
|
||||||
// Merge into a locale object
|
// Merge into a locale object
|
||||||
const locale = {
|
const locale: PickerLocale = {
|
||||||
lang: {
|
lang: {
|
||||||
placeholder: 'Selecionar data',
|
placeholder: 'Selecionar data',
|
||||||
rangePlaceholder: ['Data inicial', 'Data final'],
|
rangePlaceholder: ['Data inicial', 'Data final'],
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
import CalendarLocale from 'rc-picker/lib/locale/pt_PT';
|
import CalendarLocale from 'rc-picker/lib/locale/pt_PT';
|
||||||
import TimePickerLocale from '../../time-picker/locale/pt_PT';
|
import TimePickerLocale from '../../time-picker/locale/pt_PT';
|
||||||
|
import { PickerLocale } from '../generatePicker';
|
||||||
|
|
||||||
// Merge into a locale object
|
// Merge into a locale object
|
||||||
const locale = {
|
const locale: PickerLocale = {
|
||||||
lang: {
|
lang: {
|
||||||
...CalendarLocale,
|
...CalendarLocale,
|
||||||
placeholder: 'Data',
|
placeholder: 'Data',
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
import CalendarLocale from 'rc-picker/lib/locale/ro_RO';
|
import CalendarLocale from 'rc-picker/lib/locale/ro_RO';
|
||||||
import TimePickerLocale from '../../time-picker/locale/ro_RO';
|
import TimePickerLocale from '../../time-picker/locale/ro_RO';
|
||||||
|
import { PickerLocale } from '../generatePicker';
|
||||||
|
|
||||||
// Merge into a locale object
|
// Merge into a locale object
|
||||||
const locale = {
|
const locale: PickerLocale = {
|
||||||
lang: {
|
lang: {
|
||||||
placeholder: 'Selectează data',
|
placeholder: 'Selectează data',
|
||||||
rangePlaceholder: ['Data start', 'Data sfârșit'],
|
rangePlaceholder: ['Data start', 'Data sfârșit'],
|
||||||
|
@ -4,8 +4,10 @@
|
|||||||
|
|
||||||
import CalendarLocale from 'rc-picker/lib/locale/ru_RU';
|
import CalendarLocale from 'rc-picker/lib/locale/ru_RU';
|
||||||
import TimePickerLocale from '../../time-picker/locale/ru_RU';
|
import TimePickerLocale from '../../time-picker/locale/ru_RU';
|
||||||
|
import { PickerLocale } from '../generatePicker';
|
||||||
|
|
||||||
const locale = {
|
// Merge into a locale object
|
||||||
|
const locale: PickerLocale = {
|
||||||
lang: {
|
lang: {
|
||||||
placeholder: 'Выберите дату',
|
placeholder: 'Выберите дату',
|
||||||
rangePlaceholder: ['Начальная дата', 'Конечная дата'],
|
rangePlaceholder: ['Начальная дата', 'Конечная дата'],
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
import CalendarLocale from 'rc-picker/lib/locale/sk_SK';
|
import CalendarLocale from 'rc-picker/lib/locale/sk_SK';
|
||||||
import TimePickerLocale from '../../time-picker/locale/sk_SK';
|
import TimePickerLocale from '../../time-picker/locale/sk_SK';
|
||||||
|
import { PickerLocale } from '../generatePicker';
|
||||||
|
|
||||||
// 统一合并为完整的 Locale
|
// 统一合并为完整的 Locale
|
||||||
const locale = {
|
const locale: PickerLocale = {
|
||||||
lang: {
|
lang: {
|
||||||
placeholder: 'Vybrať dátum',
|
placeholder: 'Vybrať dátum',
|
||||||
rangePlaceholder: ['Od', 'Do'],
|
rangePlaceholder: ['Od', 'Do'],
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
import TimePickerLocale from '../../time-picker/locale/sl_SI';
|
import TimePickerLocale from '../../time-picker/locale/sl_SI';
|
||||||
|
import { PickerLocale } from '../generatePicker';
|
||||||
|
|
||||||
// Merge into a locale object
|
// Merge into a locale object
|
||||||
const locale = {
|
const locale: PickerLocale = {
|
||||||
lang: {
|
lang: {
|
||||||
locale: 'sl',
|
locale: 'sl',
|
||||||
placeholder: 'Izberite datum',
|
placeholder: 'Izberite datum',
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
import CalendarLocale from 'rc-picker/lib/locale/sr_RS';
|
import CalendarLocale from 'rc-picker/lib/locale/sr_RS';
|
||||||
import TimePickerLocale from '../../time-picker/locale/sr_RS';
|
import TimePickerLocale from '../../time-picker/locale/sr_RS';
|
||||||
|
import { PickerLocale } from '../generatePicker';
|
||||||
|
|
||||||
// Merge into a locale object
|
// Merge into a locale object
|
||||||
const locale = {
|
const locale: PickerLocale = {
|
||||||
lang: {
|
lang: {
|
||||||
placeholder: 'Izaberite datum',
|
placeholder: 'Izaberite datum',
|
||||||
rangePlaceholder: ['Početni datum', 'Krajnji datum'],
|
rangePlaceholder: ['Početni datum', 'Krajnji datum'],
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
import CalendarLocale from 'rc-picker/lib/locale/sv_SE';
|
import CalendarLocale from 'rc-picker/lib/locale/sv_SE';
|
||||||
import TimePickerLocale from '../../time-picker/locale/sv_SE';
|
import TimePickerLocale from '../../time-picker/locale/sv_SE';
|
||||||
|
import { PickerLocale } from '../generatePicker';
|
||||||
|
|
||||||
const locale = {
|
// Merge into a locale object
|
||||||
|
const locale: PickerLocale = {
|
||||||
lang: {
|
lang: {
|
||||||
placeholder: 'Välj datum',
|
placeholder: 'Välj datum',
|
||||||
rangePlaceholder: ['Startdatum', 'Slutdatum'],
|
rangePlaceholder: ['Startdatum', 'Slutdatum'],
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
// Tamil Locale added to rc-calendar
|
// Tamil Locale added to rc-calendar
|
||||||
import CalendarLocale from 'rc-picker/lib/locale/ta_IN';
|
import CalendarLocale from 'rc-picker/lib/locale/ta_IN';
|
||||||
import TimePickerLocale from '../../time-picker/locale/ta_IN';
|
import TimePickerLocale from '../../time-picker/locale/ta_IN';
|
||||||
|
import { PickerLocale } from '../generatePicker';
|
||||||
|
|
||||||
// Merge into a locale object
|
// Merge into a locale object
|
||||||
const locale = {
|
const locale: PickerLocale = {
|
||||||
lang: {
|
lang: {
|
||||||
placeholder: 'தேதியைத் தேர்ந்தெடுக்கவும்',
|
placeholder: 'தேதியைத் தேர்ந்தெடுக்கவும்',
|
||||||
rangePlaceholder: ['தொடக்க தேதி', 'கடைசி தேதி'],
|
rangePlaceholder: ['தொடக்க தேதி', 'கடைசி தேதி'],
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
import CalendarLocale from 'rc-picker/lib/locale/th_TH';
|
import CalendarLocale from 'rc-picker/lib/locale/th_TH';
|
||||||
import TimePickerLocale from '../../time-picker/locale/th_TH';
|
import TimePickerLocale from '../../time-picker/locale/th_TH';
|
||||||
|
import { PickerLocale } from '../generatePicker';
|
||||||
|
|
||||||
// Merge into a locale object
|
// Merge into a locale object
|
||||||
const locale = {
|
const locale: PickerLocale = {
|
||||||
lang: {
|
lang: {
|
||||||
placeholder: 'เลือกวันที่',
|
placeholder: 'เลือกวันที่',
|
||||||
rangePlaceholder: ['วันเริ่มต้น', 'วันสิ้นสุด'],
|
rangePlaceholder: ['วันเริ่มต้น', 'วันสิ้นสุด'],
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
import CalendarLocale from 'rc-picker/lib/locale/tr_TR';
|
import CalendarLocale from 'rc-picker/lib/locale/tr_TR';
|
||||||
import TimePickerLocale from '../../time-picker/locale/tr_TR';
|
import TimePickerLocale from '../../time-picker/locale/tr_TR';
|
||||||
|
import { PickerLocale } from '../generatePicker';
|
||||||
|
|
||||||
// Merge into a locale object
|
// Merge into a locale object
|
||||||
const locale = {
|
const locale: PickerLocale = {
|
||||||
lang: {
|
lang: {
|
||||||
placeholder: 'Tarih Seç',
|
placeholder: 'Tarih Seç',
|
||||||
rangePlaceholder: ['Başlangıç Tarihi', 'Bitiş Tarihi'],
|
rangePlaceholder: ['Başlangıç Tarihi', 'Bitiş Tarihi'],
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
import CalendarLocale from 'rc-picker/lib/locale/uk_UA';
|
import CalendarLocale from 'rc-picker/lib/locale/uk_UA';
|
||||||
import TimePickerLocale from '../../time-picker/locale/uk_UA';
|
import TimePickerLocale from '../../time-picker/locale/uk_UA';
|
||||||
|
import { PickerLocale } from '../generatePicker';
|
||||||
|
|
||||||
const locale = {
|
// Merge into a locale object
|
||||||
|
const locale: PickerLocale = {
|
||||||
lang: {
|
lang: {
|
||||||
placeholder: 'Оберіть дату',
|
placeholder: 'Оберіть дату',
|
||||||
rangePlaceholder: ['Початкова дата', 'Кінцева дата'],
|
rangePlaceholder: ['Початкова дата', 'Кінцева дата'],
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
import CalendarLocale from 'rc-picker/lib/locale/vi_VN';
|
import CalendarLocale from 'rc-picker/lib/locale/vi_VN';
|
||||||
import TimePickerLocale from '../../time-picker/locale/vi_VN';
|
import TimePickerLocale from '../../time-picker/locale/vi_VN';
|
||||||
|
import { PickerLocale } from '../generatePicker';
|
||||||
|
|
||||||
// Merge into a locale object
|
// Merge into a locale object
|
||||||
const locale = {
|
const locale: PickerLocale = {
|
||||||
lang: {
|
lang: {
|
||||||
placeholder: 'Chọn thời điểm',
|
placeholder: 'Chọn thời điểm',
|
||||||
rangePlaceholder: ['Ngày bắt đầu', 'Ngày kết thúc'],
|
rangePlaceholder: ['Ngày bắt đầu', 'Ngày kết thúc'],
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
import CalendarLocale from 'rc-picker/lib/locale/zh_CN';
|
import CalendarLocale from 'rc-picker/lib/locale/zh_CN';
|
||||||
import TimePickerLocale from '../../time-picker/locale/zh_CN';
|
import TimePickerLocale from '../../time-picker/locale/zh_CN';
|
||||||
|
import { PickerLocale } from '../generatePicker';
|
||||||
|
|
||||||
const locale = {
|
// 统一合并为完整的 Locale
|
||||||
|
const locale: PickerLocale = {
|
||||||
lang: {
|
lang: {
|
||||||
placeholder: '请选择日期',
|
placeholder: '请选择日期',
|
||||||
yearPlaceholder: '请选择年份',
|
yearPlaceholder: '请选择年份',
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
import CalendarLocale from 'rc-picker/lib/locale/zh_TW';
|
import CalendarLocale from 'rc-picker/lib/locale/zh_TW';
|
||||||
import TimePickerLocale from '../../time-picker/locale/zh_TW';
|
import TimePickerLocale from '../../time-picker/locale/zh_TW';
|
||||||
|
import { PickerLocale } from '../generatePicker';
|
||||||
|
|
||||||
const locale = {
|
// 统一合并为完整的 Locale
|
||||||
|
const locale: PickerLocale = {
|
||||||
lang: {
|
lang: {
|
||||||
placeholder: '請選擇日期',
|
placeholder: '請選擇日期',
|
||||||
rangePlaceholder: ['開始日期', '結束日期'],
|
rangePlaceholder: ['開始日期', '結束日期'],
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
import { PickerMode } from 'rc-picker/lib/interface';
|
import { PickerMode } from 'rc-picker/lib/interface';
|
||||||
|
import { PickerLocale } from './generatePicker';
|
||||||
|
|
||||||
export function getPlaceholder(picker: PickerMode | undefined, locale: any): string {
|
export function getPlaceholder(picker: PickerMode | undefined, locale: PickerLocale): string {
|
||||||
if (picker === 'year' && locale.lang.yearPlaceholder) {
|
if (picker === 'year' && locale.lang.yearPlaceholder) {
|
||||||
return locale.lang.yearPlaceholder;
|
return locale.lang.yearPlaceholder;
|
||||||
}
|
}
|
||||||
@ -16,7 +17,7 @@ export function getPlaceholder(picker: PickerMode | undefined, locale: any): str
|
|||||||
return locale.lang.placeholder;
|
return locale.lang.placeholder;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getRangePlaceholder(picker: PickerMode | undefined, locale: any): [string, string] {
|
export function getRangePlaceholder(picker: PickerMode | undefined, locale: PickerLocale) {
|
||||||
if (picker === 'year' && locale.lang.yearPlaceholder) {
|
if (picker === 'year' && locale.lang.yearPlaceholder) {
|
||||||
return locale.lang.rangeYearPlaceholder;
|
return locale.lang.rangeYearPlaceholder;
|
||||||
}
|
}
|
||||||
|
@ -77,6 +77,7 @@ function FormItem(props: FormItemProps): React.ReactElement {
|
|||||||
validateStatus,
|
validateStatus,
|
||||||
children,
|
children,
|
||||||
required,
|
required,
|
||||||
|
label,
|
||||||
trigger = 'onChange',
|
trigger = 'onChange',
|
||||||
validateTrigger = 'onChange',
|
validateTrigger = 'onChange',
|
||||||
...restProps
|
...restProps
|
||||||
@ -235,9 +236,15 @@ function FormItem(props: FormItemProps): React.ReactElement {
|
|||||||
return renderLayout(children);
|
return renderLayout(children);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const variables: Record<string, string> = {};
|
||||||
|
if (typeof label === 'string') {
|
||||||
|
variables.label = label;
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Field
|
<Field
|
||||||
{...props}
|
{...props}
|
||||||
|
messageVariables={variables}
|
||||||
trigger={trigger}
|
trigger={trigger}
|
||||||
validateTrigger={validateTrigger}
|
validateTrigger={validateTrigger}
|
||||||
onReset={() => {
|
onReset={() => {
|
||||||
|
@ -596,6 +596,28 @@ describe('Form', () => {
|
|||||||
expect(errorSpy).not.toHaveBeenCalled();
|
expect(errorSpy).not.toHaveBeenCalled();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('`label` support template', async () => {
|
||||||
|
const wrapper = mount(
|
||||||
|
// eslint-disable-next-line no-template-curly-in-string
|
||||||
|
<Form validateMessages={{ required: '${label} is good!' }}>
|
||||||
|
<Form.Item name="test" label="Bamboo" rules={[{ required: true }]}>
|
||||||
|
<input />
|
||||||
|
</Form.Item>
|
||||||
|
</Form>,
|
||||||
|
);
|
||||||
|
|
||||||
|
wrapper.find('form').simulate('submit');
|
||||||
|
await delay(50);
|
||||||
|
wrapper.update();
|
||||||
|
|
||||||
|
expect(
|
||||||
|
wrapper
|
||||||
|
.find('.ant-form-item-explain')
|
||||||
|
.first()
|
||||||
|
.text(),
|
||||||
|
).toEqual('Bamboo is good!');
|
||||||
|
});
|
||||||
|
|
||||||
it('return same form instance', () => {
|
it('return same form instance', () => {
|
||||||
const instances = new Set();
|
const instances = new Set();
|
||||||
|
|
||||||
|
@ -22,13 +22,13 @@ const layout = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const validateMessages = {
|
const validateMessages = {
|
||||||
required: 'This field is required!',
|
required: '${label} is required!',
|
||||||
types: {
|
types: {
|
||||||
email: 'Not a validate email!',
|
email: '${label} is not validate email!',
|
||||||
number: 'Not a validate number!',
|
number: '${label} is not a validate number!',
|
||||||
},
|
},
|
||||||
number: {
|
number: {
|
||||||
range: 'Must be between ${min} and ${max}',
|
range: '${label} must be between ${min} and ${max}',
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1226,3 +1226,15 @@ exports[`renders ./components/grid/demo/sort.md correctly 1`] = `
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
exports[`renders ./components/grid/demo/useBreakpoint.md correctly 1`] = `
|
||||||
|
<div
|
||||||
|
class="ant-row"
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
class="ant-col"
|
||||||
|
>
|
||||||
|
Current break point:
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
`;
|
||||||
|
@ -3,6 +3,7 @@ import { render, mount } from 'enzyme';
|
|||||||
import { Col, Row } from '..';
|
import { Col, Row } from '..';
|
||||||
import mountTest from '../../../tests/shared/mountTest';
|
import mountTest from '../../../tests/shared/mountTest';
|
||||||
import rtlTest from '../../../tests/shared/rtlTest';
|
import rtlTest from '../../../tests/shared/rtlTest';
|
||||||
|
import useBreakpoint from '../hooks/useBreakpoint';
|
||||||
|
|
||||||
describe('Grid', () => {
|
describe('Grid', () => {
|
||||||
mountTest(Row);
|
mountTest(Row);
|
||||||
@ -90,4 +91,26 @@ describe('Grid', () => {
|
|||||||
marginBottom: 10,
|
marginBottom: 10,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// By jsdom mock, actual jsdom not implemented matchMedia
|
||||||
|
// https://jestjs.io/docs/en/manual-mocks#mocking-methods-which-are-not-implemented-in-jsdom
|
||||||
|
it('should work with useBreakpoint', () => {
|
||||||
|
function Demo() {
|
||||||
|
const screens = useBreakpoint();
|
||||||
|
|
||||||
|
return JSON.stringify(screens);
|
||||||
|
}
|
||||||
|
const wrapper = mount(<Demo />);
|
||||||
|
|
||||||
|
expect(wrapper.text()).toEqual(
|
||||||
|
JSON.stringify({
|
||||||
|
xs: true,
|
||||||
|
sm: false,
|
||||||
|
md: false,
|
||||||
|
lg: false,
|
||||||
|
xl: false,
|
||||||
|
xxl: false,
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
36
components/grid/demo/useBreakpoint.md
Normal file
36
components/grid/demo/useBreakpoint.md
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
---
|
||||||
|
order: 10
|
||||||
|
title: useBreakpoint Hook
|
||||||
|
---
|
||||||
|
|
||||||
|
## zh-CN
|
||||||
|
|
||||||
|
使用 `useBreakpoint` Hook 个性化布局。
|
||||||
|
|
||||||
|
## en-US
|
||||||
|
|
||||||
|
Use `useBreakpoint` Hook povide personalized layout.
|
||||||
|
|
||||||
|
```jsx
|
||||||
|
import { Row, Col, Grid } from 'antd';
|
||||||
|
|
||||||
|
const { useBreakpoint } = Grid;
|
||||||
|
|
||||||
|
function UseBreakpointDemo() {
|
||||||
|
const screens = useBreakpoint();
|
||||||
|
|
||||||
|
return (
|
||||||
|
<Row>
|
||||||
|
<Col>
|
||||||
|
Current break point:
|
||||||
|
{Object.entries(screens)
|
||||||
|
.filter(screen => !!screen[1])
|
||||||
|
.map(screen => screen[0])
|
||||||
|
.join(' ')}
|
||||||
|
</Col>
|
||||||
|
</Row>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
ReactDOM.render(<UseBreakpointDemo />, mountNode);
|
||||||
|
```
|
18
components/grid/hooks/useBreakpoint.tsx
Normal file
18
components/grid/hooks/useBreakpoint.tsx
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
import { useEffect, useState } from 'react';
|
||||||
|
import ResponsiveObserve, { ScreenMap } from '../../_util/responsiveObserve';
|
||||||
|
|
||||||
|
function useBreakpoint(): ScreenMap {
|
||||||
|
const [screens, setScreens] = useState<ScreenMap>({});
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
const token = ResponsiveObserve.subscribe(supportScreens => {
|
||||||
|
setScreens(supportScreens);
|
||||||
|
});
|
||||||
|
|
||||||
|
return () => ResponsiveObserve.unsubscribe(token);
|
||||||
|
}, []);
|
||||||
|
|
||||||
|
return screens;
|
||||||
|
}
|
||||||
|
|
||||||
|
export default useBreakpoint;
|
@ -1,7 +1,10 @@
|
|||||||
import Row from './row';
|
import Row from './row';
|
||||||
import Col from './col';
|
import Col from './col';
|
||||||
|
import useBreakpoint from './hooks/useBreakpoint';
|
||||||
|
|
||||||
export { RowProps } from './row';
|
export { RowProps } from './row';
|
||||||
export { ColProps, ColSize } from './col';
|
export { ColProps, ColSize } from './col';
|
||||||
|
|
||||||
export { Row, Col };
|
export { Row, Col };
|
||||||
|
|
||||||
|
export default { useBreakpoint };
|
||||||
|
@ -66,6 +66,8 @@ export { default as Empty } from './empty';
|
|||||||
|
|
||||||
export { default as Form } from './form';
|
export { default as Form } from './form';
|
||||||
|
|
||||||
|
export { default as Grid } from './grid';
|
||||||
|
|
||||||
export { default as Input } from './input';
|
export { default as Input } from './input';
|
||||||
|
|
||||||
export { default as InputNumber } from './input-number';
|
export { default as InputNumber } from './input-number';
|
||||||
|
@ -372,7 +372,7 @@ exports[`List.pagination should change page size work 2`] = `
|
|||||||
<div>
|
<div>
|
||||||
<div
|
<div
|
||||||
class="ant-select-dropdown"
|
class="ant-select-dropdown"
|
||||||
style="width: 0px; opacity: 0;"
|
style="min-width: 0; opacity: 0;"
|
||||||
>
|
>
|
||||||
<div>
|
<div>
|
||||||
<div
|
<div
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -1,22 +1,35 @@
|
|||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import * as PropTypes from 'prop-types';
|
import * as PropTypes from 'prop-types';
|
||||||
import { ModalLocale, changeConfirmLocale } from '../modal/locale';
|
|
||||||
import warning from '../_util/warning';
|
import warning from '../_util/warning';
|
||||||
|
|
||||||
|
import { ModalLocale, changeConfirmLocale } from '../modal/locale';
|
||||||
|
import { TransferLocale as TransferLocaleForEmpty } from '../empty';
|
||||||
|
import { PaginationLocale } from '../pagination/Pagination';
|
||||||
|
import { TableLocale } from '../table/interface';
|
||||||
|
import { PopconfirmLocale } from '../popconfirm';
|
||||||
|
import { UploadLocale } from '../upload/interface';
|
||||||
|
import { TransferLocale } from '../transfer';
|
||||||
|
import { PickerLocale as DatePickerLocale } from '../date-picker/generatePicker';
|
||||||
|
|
||||||
export const ANT_MARK = 'internalMark';
|
export const ANT_MARK = 'internalMark';
|
||||||
|
|
||||||
export interface Locale {
|
export interface Locale {
|
||||||
locale: string;
|
locale: string;
|
||||||
Pagination?: Object;
|
Pagination?: PaginationLocale;
|
||||||
DatePicker?: Object;
|
DatePicker?: DatePickerLocale;
|
||||||
TimePicker?: Object;
|
TimePicker?: Object;
|
||||||
Calendar?: Object;
|
Calendar?: Object;
|
||||||
Table?: Object;
|
Table?: TableLocale;
|
||||||
Modal?: ModalLocale;
|
Modal?: ModalLocale;
|
||||||
Popconfirm?: Object;
|
Popconfirm?: PopconfirmLocale;
|
||||||
Transfer?: Object;
|
Transfer?: Partial<TransferLocale>;
|
||||||
Select?: Object;
|
Select?: Object;
|
||||||
Upload?: Object;
|
Upload?: UploadLocale;
|
||||||
|
Empty?: TransferLocaleForEmpty;
|
||||||
|
global?: Object;
|
||||||
|
PageHeader?: Object;
|
||||||
|
Icon?: Object;
|
||||||
|
Text?: Object;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface LocaleProviderProps {
|
export interface LocaleProviderProps {
|
||||||
|
@ -2,8 +2,9 @@ import Pagination from 'rc-pagination/lib/locale/ar_EG';
|
|||||||
import DatePicker from '../date-picker/locale/ar_EG';
|
import DatePicker from '../date-picker/locale/ar_EG';
|
||||||
import TimePicker from '../time-picker/locale/ar_EG';
|
import TimePicker from '../time-picker/locale/ar_EG';
|
||||||
import Calendar from '../calendar/locale/ar_EG';
|
import Calendar from '../calendar/locale/ar_EG';
|
||||||
|
import { Locale } from '../locale-provider';
|
||||||
|
|
||||||
export default {
|
const localeValues: Locale = {
|
||||||
locale: 'ar',
|
locale: 'ar',
|
||||||
Pagination,
|
Pagination,
|
||||||
DatePicker,
|
DatePicker,
|
||||||
@ -41,3 +42,5 @@ export default {
|
|||||||
description: 'لا توجد بيانات',
|
description: 'لا توجد بيانات',
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default localeValues;
|
||||||
|
@ -2,8 +2,9 @@ import Pagination from 'rc-pagination/lib/locale/az_AZ';
|
|||||||
import DatePicker from '../date-picker/locale/az_AZ';
|
import DatePicker from '../date-picker/locale/az_AZ';
|
||||||
import TimePicker from '../time-picker/locale/az_AZ';
|
import TimePicker from '../time-picker/locale/az_AZ';
|
||||||
import Calendar from '../calendar/locale/az_AZ';
|
import Calendar from '../calendar/locale/az_AZ';
|
||||||
|
import { Locale } from '../locale-provider';
|
||||||
|
|
||||||
export default {
|
const localeValues: Locale = {
|
||||||
locale: 'az',
|
locale: 'az',
|
||||||
Pagination,
|
Pagination,
|
||||||
DatePicker,
|
DatePicker,
|
||||||
@ -43,3 +44,5 @@ export default {
|
|||||||
previewFile: 'Fayla önbaxış',
|
previewFile: 'Fayla önbaxış',
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default localeValues;
|
||||||
|
@ -2,8 +2,9 @@ import Pagination from 'rc-pagination/lib/locale/bg_BG';
|
|||||||
import DatePicker from '../date-picker/locale/bg_BG';
|
import DatePicker from '../date-picker/locale/bg_BG';
|
||||||
import TimePicker from '../time-picker/locale/bg_BG';
|
import TimePicker from '../time-picker/locale/bg_BG';
|
||||||
import Calendar from '../calendar/locale/bg_BG';
|
import Calendar from '../calendar/locale/bg_BG';
|
||||||
|
import { Locale } from '../locale-provider';
|
||||||
|
|
||||||
export default {
|
const localeValues: Locale = {
|
||||||
locale: 'bg',
|
locale: 'bg',
|
||||||
Pagination,
|
Pagination,
|
||||||
DatePicker,
|
DatePicker,
|
||||||
@ -41,3 +42,5 @@ export default {
|
|||||||
description: 'Няма данни',
|
description: 'Няма данни',
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default localeValues;
|
||||||
|
@ -2,8 +2,9 @@ import Pagination from 'rc-pagination/lib/locale/ca_ES';
|
|||||||
import DatePicker from '../date-picker/locale/ca_ES';
|
import DatePicker from '../date-picker/locale/ca_ES';
|
||||||
import TimePicker from '../time-picker/locale/ca_ES';
|
import TimePicker from '../time-picker/locale/ca_ES';
|
||||||
import Calendar from '../calendar/locale/ca_ES';
|
import Calendar from '../calendar/locale/ca_ES';
|
||||||
|
import { Locale } from '../locale-provider';
|
||||||
|
|
||||||
export default {
|
const localeValues: Locale = {
|
||||||
locale: 'ca',
|
locale: 'ca',
|
||||||
Pagination,
|
Pagination,
|
||||||
DatePicker,
|
DatePicker,
|
||||||
@ -39,3 +40,5 @@ export default {
|
|||||||
description: 'Sense dades',
|
description: 'Sense dades',
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default localeValues;
|
||||||
|
@ -2,8 +2,9 @@ import Pagination from 'rc-pagination/lib/locale/cs_CZ';
|
|||||||
import DatePicker from '../date-picker/locale/cs_CZ';
|
import DatePicker from '../date-picker/locale/cs_CZ';
|
||||||
import TimePicker from '../time-picker/locale/cs_CZ';
|
import TimePicker from '../time-picker/locale/cs_CZ';
|
||||||
import Calendar from '../calendar/locale/cs_CZ';
|
import Calendar from '../calendar/locale/cs_CZ';
|
||||||
|
import { Locale } from '../locale-provider';
|
||||||
|
|
||||||
export default {
|
const localeValues: Locale = {
|
||||||
locale: 'cs',
|
locale: 'cs',
|
||||||
Pagination,
|
Pagination,
|
||||||
DatePicker,
|
DatePicker,
|
||||||
@ -39,3 +40,5 @@ export default {
|
|||||||
description: 'Žádná data',
|
description: 'Žádná data',
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default localeValues;
|
||||||
|
@ -2,8 +2,9 @@ import Pagination from 'rc-pagination/lib/locale/da_DK';
|
|||||||
import DatePicker from '../date-picker/locale/da_DK';
|
import DatePicker from '../date-picker/locale/da_DK';
|
||||||
import TimePicker from '../time-picker/locale/da_DK';
|
import TimePicker from '../time-picker/locale/da_DK';
|
||||||
import Calendar from '../calendar/locale/da_DK';
|
import Calendar from '../calendar/locale/da_DK';
|
||||||
|
import { Locale } from '../locale-provider';
|
||||||
|
|
||||||
export default {
|
const localeValues: Locale = {
|
||||||
locale: 'da',
|
locale: 'da',
|
||||||
DatePicker,
|
DatePicker,
|
||||||
TimePicker,
|
TimePicker,
|
||||||
@ -41,3 +42,5 @@ export default {
|
|||||||
description: 'Ingen data',
|
description: 'Ingen data',
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default localeValues;
|
||||||
|
@ -2,8 +2,9 @@ import Pagination from 'rc-pagination/lib/locale/de_DE';
|
|||||||
import DatePicker from '../date-picker/locale/de_DE';
|
import DatePicker from '../date-picker/locale/de_DE';
|
||||||
import TimePicker from '../time-picker/locale/de_DE';
|
import TimePicker from '../time-picker/locale/de_DE';
|
||||||
import Calendar from '../calendar/locale/de_DE';
|
import Calendar from '../calendar/locale/de_DE';
|
||||||
|
import { Locale } from '../locale-provider';
|
||||||
|
|
||||||
export default {
|
const localeValues: Locale = {
|
||||||
locale: 'de',
|
locale: 'de',
|
||||||
Pagination,
|
Pagination,
|
||||||
DatePicker,
|
DatePicker,
|
||||||
@ -41,3 +42,5 @@ export default {
|
|||||||
description: 'Keine Daten',
|
description: 'Keine Daten',
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default localeValues;
|
||||||
|
@ -2,8 +2,9 @@ import Pagination from 'rc-pagination/lib/locale/en_US';
|
|||||||
import DatePicker from '../date-picker/locale/en_US';
|
import DatePicker from '../date-picker/locale/en_US';
|
||||||
import TimePicker from '../time-picker/locale/en_US';
|
import TimePicker from '../time-picker/locale/en_US';
|
||||||
import Calendar from '../calendar/locale/en_US';
|
import Calendar from '../calendar/locale/en_US';
|
||||||
|
import { Locale } from '../locale-provider';
|
||||||
|
|
||||||
export default {
|
const localeValues: Locale = {
|
||||||
locale: 'en',
|
locale: 'en',
|
||||||
Pagination,
|
Pagination,
|
||||||
DatePicker,
|
DatePicker,
|
||||||
@ -22,6 +23,9 @@ export default {
|
|||||||
sortTitle: 'Sort',
|
sortTitle: 'Sort',
|
||||||
expand: 'Expand row',
|
expand: 'Expand row',
|
||||||
collapse: 'Collapse row',
|
collapse: 'Collapse row',
|
||||||
|
triggerDesc: 'Click sort by descend',
|
||||||
|
triggerAsc: 'Click sort by ascend',
|
||||||
|
cancelSort: 'Click to cancel sort',
|
||||||
},
|
},
|
||||||
Modal: {
|
Modal: {
|
||||||
okText: 'OK',
|
okText: 'OK',
|
||||||
@ -61,3 +65,5 @@ export default {
|
|||||||
back: 'Back',
|
back: 'Back',
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default localeValues;
|
||||||
|
@ -2,8 +2,9 @@ import Pagination from 'rc-pagination/lib/locale/el_GR';
|
|||||||
import DatePicker from '../date-picker/locale/el_GR';
|
import DatePicker from '../date-picker/locale/el_GR';
|
||||||
import TimePicker from '../time-picker/locale/el_GR';
|
import TimePicker from '../time-picker/locale/el_GR';
|
||||||
import Calendar from '../calendar/locale/el_GR';
|
import Calendar from '../calendar/locale/el_GR';
|
||||||
|
import { Locale } from '../locale-provider';
|
||||||
|
|
||||||
export default {
|
const localeValues: Locale = {
|
||||||
locale: 'el',
|
locale: 'el',
|
||||||
Pagination,
|
Pagination,
|
||||||
DatePicker,
|
DatePicker,
|
||||||
@ -41,3 +42,5 @@ export default {
|
|||||||
description: 'Δεν υπάρχουν δεδομένα',
|
description: 'Δεν υπάρχουν δεδομένα',
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default localeValues;
|
||||||
|
@ -2,8 +2,9 @@ import Pagination from 'rc-pagination/lib/locale/en_GB';
|
|||||||
import DatePicker from '../date-picker/locale/en_GB';
|
import DatePicker from '../date-picker/locale/en_GB';
|
||||||
import TimePicker from '../time-picker/locale/en_GB';
|
import TimePicker from '../time-picker/locale/en_GB';
|
||||||
import Calendar from '../calendar/locale/en_GB';
|
import Calendar from '../calendar/locale/en_GB';
|
||||||
|
import { Locale } from '../locale-provider';
|
||||||
|
|
||||||
export default {
|
const localeValues: Locale = {
|
||||||
locale: 'en-gb',
|
locale: 'en-gb',
|
||||||
Pagination,
|
Pagination,
|
||||||
DatePicker,
|
DatePicker,
|
||||||
@ -41,3 +42,5 @@ export default {
|
|||||||
description: 'No data',
|
description: 'No data',
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default localeValues;
|
||||||
|
@ -2,8 +2,9 @@ import Pagination from 'rc-pagination/lib/locale/es_ES';
|
|||||||
import DatePicker from '../date-picker/locale/es_ES';
|
import DatePicker from '../date-picker/locale/es_ES';
|
||||||
import TimePicker from '../time-picker/locale/es_ES';
|
import TimePicker from '../time-picker/locale/es_ES';
|
||||||
import Calendar from '../calendar/locale/es_ES';
|
import Calendar from '../calendar/locale/es_ES';
|
||||||
|
import { Locale } from '../locale-provider';
|
||||||
|
|
||||||
export default {
|
const localeValues: Locale = {
|
||||||
locale: 'es',
|
locale: 'es',
|
||||||
Pagination,
|
Pagination,
|
||||||
DatePicker,
|
DatePicker,
|
||||||
@ -57,3 +58,5 @@ export default {
|
|||||||
back: 'volver',
|
back: 'volver',
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default localeValues;
|
||||||
|
@ -2,8 +2,9 @@ import Pagination from 'rc-pagination/lib/locale/et_EE';
|
|||||||
import DatePicker from '../date-picker/locale/et_EE';
|
import DatePicker from '../date-picker/locale/et_EE';
|
||||||
import TimePicker from '../time-picker/locale/et_EE';
|
import TimePicker from '../time-picker/locale/et_EE';
|
||||||
import Calendar from '../calendar/locale/et_EE';
|
import Calendar from '../calendar/locale/et_EE';
|
||||||
|
import { Locale } from '../locale-provider';
|
||||||
|
|
||||||
export default {
|
const localeValues: Locale = {
|
||||||
locale: 'et',
|
locale: 'et',
|
||||||
Pagination,
|
Pagination,
|
||||||
DatePicker,
|
DatePicker,
|
||||||
@ -41,3 +42,5 @@ export default {
|
|||||||
description: 'Andmed puuduvad',
|
description: 'Andmed puuduvad',
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default localeValues;
|
||||||
|
@ -2,8 +2,9 @@ import Pagination from 'rc-pagination/lib/locale/fa_IR';
|
|||||||
import DatePicker from '../date-picker/locale/fa_IR';
|
import DatePicker from '../date-picker/locale/fa_IR';
|
||||||
import TimePicker from '../time-picker/locale/fa_IR';
|
import TimePicker from '../time-picker/locale/fa_IR';
|
||||||
import Calendar from '../calendar/locale/fa_IR';
|
import Calendar from '../calendar/locale/fa_IR';
|
||||||
|
import { Locale } from '../locale-provider';
|
||||||
|
|
||||||
export default {
|
const localeValues: Locale = {
|
||||||
locale: 'fa',
|
locale: 'fa',
|
||||||
Pagination,
|
Pagination,
|
||||||
DatePicker,
|
DatePicker,
|
||||||
@ -41,3 +42,5 @@ export default {
|
|||||||
description: 'دادهای موجود نیست',
|
description: 'دادهای موجود نیست',
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default localeValues;
|
||||||
|
@ -2,8 +2,9 @@ import Pagination from 'rc-pagination/lib/locale/fi_FI';
|
|||||||
import DatePicker from '../date-picker/locale/fi_FI';
|
import DatePicker from '../date-picker/locale/fi_FI';
|
||||||
import TimePicker from '../time-picker/locale/fi_FI';
|
import TimePicker from '../time-picker/locale/fi_FI';
|
||||||
import Calendar from '../calendar/locale/fi_FI';
|
import Calendar from '../calendar/locale/fi_FI';
|
||||||
|
import { Locale } from '../locale-provider';
|
||||||
|
|
||||||
export default {
|
const localeValues: Locale = {
|
||||||
locale: 'fi',
|
locale: 'fi',
|
||||||
Pagination,
|
Pagination,
|
||||||
DatePicker,
|
DatePicker,
|
||||||
@ -42,3 +43,5 @@ export default {
|
|||||||
description: 'Ei kohteita',
|
description: 'Ei kohteita',
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default localeValues;
|
||||||
|
@ -2,8 +2,9 @@ import Pagination from 'rc-pagination/lib/locale/fr_BE';
|
|||||||
import DatePicker from '../date-picker/locale/fr_BE';
|
import DatePicker from '../date-picker/locale/fr_BE';
|
||||||
import TimePicker from '../time-picker/locale/fr_BE';
|
import TimePicker from '../time-picker/locale/fr_BE';
|
||||||
import Calendar from '../calendar/locale/fr_BE';
|
import Calendar from '../calendar/locale/fr_BE';
|
||||||
|
import { Locale } from '../locale-provider';
|
||||||
|
|
||||||
export default {
|
const localeValues: Locale = {
|
||||||
locale: 'fr',
|
locale: 'fr',
|
||||||
Pagination,
|
Pagination,
|
||||||
DatePicker,
|
DatePicker,
|
||||||
@ -45,3 +46,5 @@ export default {
|
|||||||
expand: 'développer',
|
expand: 'développer',
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default localeValues;
|
||||||
|
@ -2,8 +2,9 @@ import Pagination from 'rc-pagination/lib/locale/fr_FR';
|
|||||||
import DatePicker from '../date-picker/locale/fr_FR';
|
import DatePicker from '../date-picker/locale/fr_FR';
|
||||||
import TimePicker from '../time-picker/locale/fr_FR';
|
import TimePicker from '../time-picker/locale/fr_FR';
|
||||||
import Calendar from '../calendar/locale/fr_FR';
|
import Calendar from '../calendar/locale/fr_FR';
|
||||||
|
import { Locale } from '../locale-provider';
|
||||||
|
|
||||||
export default {
|
const localeValues: Locale = {
|
||||||
locale: 'fr',
|
locale: 'fr',
|
||||||
Pagination,
|
Pagination,
|
||||||
DatePicker,
|
DatePicker,
|
||||||
@ -45,3 +46,5 @@ export default {
|
|||||||
expand: 'développer',
|
expand: 'développer',
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default localeValues;
|
||||||
|
@ -2,8 +2,9 @@ import Pagination from 'rc-pagination/lib/locale/he_IL';
|
|||||||
import DatePicker from '../date-picker/locale/he_IL';
|
import DatePicker from '../date-picker/locale/he_IL';
|
||||||
import TimePicker from '../time-picker/locale/he_IL';
|
import TimePicker from '../time-picker/locale/he_IL';
|
||||||
import Calendar from '../calendar/locale/he_IL';
|
import Calendar from '../calendar/locale/he_IL';
|
||||||
|
import { Locale } from '../locale-provider';
|
||||||
|
|
||||||
export default {
|
const localeValues: Locale = {
|
||||||
locale: 'he',
|
locale: 'he',
|
||||||
Pagination,
|
Pagination,
|
||||||
DatePicker,
|
DatePicker,
|
||||||
@ -41,3 +42,5 @@ export default {
|
|||||||
description: 'אין מידע',
|
description: 'אין מידע',
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default localeValues;
|
||||||
|
@ -2,8 +2,9 @@ import Pagination from 'rc-pagination/lib/locale/hi_IN';
|
|||||||
import DatePicker from '../date-picker/locale/hi_IN';
|
import DatePicker from '../date-picker/locale/hi_IN';
|
||||||
import TimePicker from '../time-picker/locale/hi_IN';
|
import TimePicker from '../time-picker/locale/hi_IN';
|
||||||
import Calendar from '../calendar/locale/hi_IN';
|
import Calendar from '../calendar/locale/hi_IN';
|
||||||
|
import { Locale } from '../locale-provider';
|
||||||
|
|
||||||
export default {
|
const localeValues: Locale = {
|
||||||
locale: 'hi',
|
locale: 'hi',
|
||||||
Pagination,
|
Pagination,
|
||||||
DatePicker,
|
DatePicker,
|
||||||
@ -49,3 +50,5 @@ export default {
|
|||||||
downloadFile: 'फ़ाइल डाउनलोड करें',
|
downloadFile: 'फ़ाइल डाउनलोड करें',
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default localeValues;
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user