Merge pull request #15338 from zy410419243/calendar

fix: Calendar select can't switch
This commit is contained in:
偏右 2019-03-12 23:07:25 +08:00 committed by GitHub
commit 3ad1eea59c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 135 additions and 131 deletions

View File

@ -144,14 +144,14 @@ export default class Header extends React.Component<HeaderProps, any> {
const prefixCls = getPrefixCls('fullcalendar', customizePrefixCls);
const yearSelect = this.getYearSelectElement(prefixCls, value.year());
const monthSelect =
type === 'date'
type === 'month'
? this.getMonthSelectElement(prefixCls, value.month(), this.getMonthsLocale(value))
: null;
const size = (fullscreen ? 'default' : 'small') as any;
const typeSwitch = (
<Group onChange={this.onTypeChange} value={type} size={size}>
<Button value="date">{locale.month}</Button>
<Button value="month">{locale.year}</Button>
<Button value="month">{locale.month}</Button>
<Button value="year">{locale.year}</Button>
</Group>
);

View File

@ -120,7 +120,7 @@ exports[`renders ./components/calendar/demo/basic.md correctly 1`] = `
checked=""
class="ant-radio-button-input"
type="radio"
value="date"
value="month"
/>
<span
class="ant-radio-button-inner"
@ -139,7 +139,7 @@ exports[`renders ./components/calendar/demo/basic.md correctly 1`] = `
<input
class="ant-radio-button-input"
type="radio"
value="month"
value="year"
/>
<span
class="ant-radio-button-inner"
@ -1165,7 +1165,7 @@ exports[`renders ./components/calendar/demo/card.md correctly 1`] = `
checked=""
class="ant-radio-button-input"
type="radio"
value="date"
value="month"
/>
<span
class="ant-radio-button-inner"
@ -1184,7 +1184,7 @@ exports[`renders ./components/calendar/demo/card.md correctly 1`] = `
<input
class="ant-radio-button-input"
type="radio"
value="month"
value="year"
/>
<span
class="ant-radio-button-inner"
@ -2208,7 +2208,7 @@ exports[`renders ./components/calendar/demo/notice-calendar.md correctly 1`] = `
checked=""
class="ant-radio-button-input"
type="radio"
value="date"
value="month"
/>
<span
class="ant-radio-button-inner"
@ -2227,7 +2227,7 @@ exports[`renders ./components/calendar/demo/notice-calendar.md correctly 1`] = `
<input
class="ant-radio-button-input"
type="radio"
value="month"
value="year"
/>
<span
class="ant-radio-button-inner"
@ -3661,7 +3661,7 @@ exports[`renders ./components/calendar/demo/select.md correctly 1`] = `
checked=""
class="ant-radio-button-input"
type="radio"
value="date"
value="month"
/>
<span
class="ant-radio-button-inner"
@ -3680,7 +3680,7 @@ exports[`renders ./components/calendar/demo/select.md correctly 1`] = `
<input
class="ant-radio-button-input"
type="radio"
value="month"
value="year"
/>
<span
class="ant-radio-button-inner"

View File

@ -120,7 +120,7 @@ exports[`Calendar Calendar should support locale 1`] = `
checked=""
class="ant-radio-button-input"
type="radio"
value="date"
value="month"
/>
<span
class="ant-radio-button-inner"
@ -139,7 +139,7 @@ exports[`Calendar Calendar should support locale 1`] = `
<input
class="ant-radio-button-input"
type="radio"
value="month"
value="year"
/>
<span
class="ant-radio-button-inner"

View File

@ -161,4 +161,18 @@ describe('Calendar', () => {
expect(onPanelChange).toBeCalled();
expect(onPanelChange.mock.calls[0][0].month()).toEqual(date.month() - 1);
});
it('switch should work correctly without prop mode', async () => {
const onPanelChange = jest.fn();
const date = new Moment(new Date(Date.UTC(2017, 7, 9, 8)));
const wrapper = mount(<Calendar onPanelChange={onPanelChange} value={date} />);
expect(wrapper.state().mode).toBe('month');
expect(wrapper.find('.ant-fullcalendar-table').length).toBe(1);
expect(wrapper.find('.ant-fullcalendar-month-panel-table').length).toBe(0);
wrapper.find('.ant-radio-button-input[value="year"]').simulate('change');
expect(wrapper.find('.ant-fullcalendar-table').length).toBe(0);
expect(wrapper.find('.ant-fullcalendar-month-panel-table').length).toBe(1);
expect(onPanelChange).toBeCalled();
expect(onPanelChange.mock.calls[0][1]).toEqual('year');
});
});

View File

@ -53,7 +53,6 @@ class Calendar extends React.Component<CalendarProps, CalendarState> {
static defaultProps = {
locale: {},
fullscreen: true,
mode: 'month' as CalendarMode,
onSelect: noop,
onPanelChange: noop,
onChange: noop,
@ -100,7 +99,7 @@ class Calendar extends React.Component<CalendarProps, CalendarState> {
}
this.state = {
value,
mode: props.mode,
mode: props.mode || 'month',
};
}
@ -145,20 +144,13 @@ class Calendar extends React.Component<CalendarProps, CalendarState> {
}
};
setType = (type: string) => {
const mode = type === 'date' ? 'month' : 'year';
if (this.state.mode !== mode) {
this.setState({ mode });
this.onPanelChange(this.state.value, mode);
}
};
onHeaderValueChange = (value: moment.Moment) => {
this.setValue(value, 'changePanel');
};
onHeaderTypeChange = (type: string) => {
this.setType(type);
onHeaderTypeChange = (mode: CalendarMode) => {
this.setState({ mode });
this.onPanelChange(this.state.value, mode);
};
onPanelChange(value: moment.Moment, mode: CalendarMode | undefined) {
@ -216,8 +208,6 @@ class Calendar extends React.Component<CalendarProps, CalendarState> {
dateFullCellRender,
monthFullCellRender,
} = props;
const type = mode === 'year' ? 'month' : 'date';
const monthCellRender = monthFullCellRender || this.monthCellRender;
const dateCellRender = dateFullCellRender || this.dateCellRender;
@ -246,7 +236,7 @@ class Calendar extends React.Component<CalendarProps, CalendarState> {
<div className={cls} style={style}>
<Header
fullscreen={fullscreen}
type={type}
type={mode}
value={value}
locale={locale.lang}
prefixCls={prefixCls}
@ -259,7 +249,7 @@ class Calendar extends React.Component<CalendarProps, CalendarState> {
disabledDate={disabledDate}
Select={noop}
locale={locale.lang}
type={type}
type={mode === 'year' ? 'month' : 'date'}
prefixCls={prefixCls}
showHeader={false}
value={value}

View File

@ -1276,7 +1276,7 @@ exports[`ConfigProvider components Calendar configProvider 1`] = `
checked=""
class="config-radio-button-input"
type="radio"
value="date"
value="month"
/>
<span
class="config-radio-button-inner"
@ -1295,7 +1295,7 @@ exports[`ConfigProvider components Calendar configProvider 1`] = `
<input
class="config-radio-button-input"
type="radio"
value="month"
value="year"
/>
<span
class="config-radio-button-inner"
@ -2264,7 +2264,7 @@ exports[`ConfigProvider components Calendar configProvider 1`] = `
<input
class="config-radio-button-input"
type="radio"
value="date"
value="month"
/>
<span
class="config-radio-button-inner"
@ -2284,7 +2284,7 @@ exports[`ConfigProvider components Calendar configProvider 1`] = `
checked=""
class="config-radio-button-input"
type="radio"
value="month"
value="year"
/>
<span
class="config-radio-button-inner"
@ -2672,7 +2672,7 @@ exports[`ConfigProvider components Calendar normal 1`] = `
checked=""
class="ant-radio-button-input"
type="radio"
value="date"
value="month"
/>
<span
class="ant-radio-button-inner"
@ -2691,7 +2691,7 @@ exports[`ConfigProvider components Calendar normal 1`] = `
<input
class="ant-radio-button-input"
type="radio"
value="month"
value="year"
/>
<span
class="ant-radio-button-inner"
@ -3660,7 +3660,7 @@ exports[`ConfigProvider components Calendar normal 1`] = `
<input
class="ant-radio-button-input"
type="radio"
value="date"
value="month"
/>
<span
class="ant-radio-button-inner"
@ -3680,7 +3680,7 @@ exports[`ConfigProvider components Calendar normal 1`] = `
checked=""
class="ant-radio-button-input"
type="radio"
value="month"
value="year"
/>
<span
class="ant-radio-button-inner"
@ -4068,7 +4068,7 @@ exports[`ConfigProvider components Calendar prefixCls 1`] = `
checked=""
class="ant-radio-button-input"
type="radio"
value="date"
value="month"
/>
<span
class="ant-radio-button-inner"
@ -4087,7 +4087,7 @@ exports[`ConfigProvider components Calendar prefixCls 1`] = `
<input
class="ant-radio-button-input"
type="radio"
value="month"
value="year"
/>
<span
class="ant-radio-button-inner"
@ -5056,7 +5056,7 @@ exports[`ConfigProvider components Calendar prefixCls 1`] = `
<input
class="ant-radio-button-input"
type="radio"
value="date"
value="month"
/>
<span
class="ant-radio-button-inner"
@ -5076,7 +5076,7 @@ exports[`ConfigProvider components Calendar prefixCls 1`] = `
checked=""
class="ant-radio-button-input"
type="radio"
value="month"
value="year"
/>
<span
class="ant-radio-button-inner"

View File

@ -800,7 +800,7 @@ exports[`renders ./components/locale-provider/demo/all.md correctly 1`] = `
checked=""
class="ant-radio-button-input"
type="radio"
value="date"
value="month"
/>
<span
class="ant-radio-button-inner"
@ -819,7 +819,7 @@ exports[`renders ./components/locale-provider/demo/all.md correctly 1`] = `
<input
class="ant-radio-button-input"
type="radio"
value="month"
value="year"
/>
<span
class="ant-radio-button-inner"

View File

@ -6438,7 +6438,7 @@ exports[`Locale Provider should display the text as ar 1`] = `
checked=""
class="ant-radio-button-input"
type="radio"
value="date"
value="month"
/>
<span
class="ant-radio-button-inner"
@ -6457,7 +6457,7 @@ exports[`Locale Provider should display the text as ar 1`] = `
<input
class="ant-radio-button-input"
type="radio"
value="month"
value="year"
/>
<span
class="ant-radio-button-inner"
@ -11505,7 +11505,7 @@ exports[`Locale Provider should display the text as bg 1`] = `
checked=""
class="ant-radio-button-input"
type="radio"
value="date"
value="month"
/>
<span
class="ant-radio-button-inner"
@ -11524,7 +11524,7 @@ exports[`Locale Provider should display the text as bg 1`] = `
<input
class="ant-radio-button-input"
type="radio"
value="month"
value="year"
/>
<span
class="ant-radio-button-inner"
@ -16572,7 +16572,7 @@ exports[`Locale Provider should display the text as ca 1`] = `
checked=""
class="ant-radio-button-input"
type="radio"
value="date"
value="month"
/>
<span
class="ant-radio-button-inner"
@ -16591,7 +16591,7 @@ exports[`Locale Provider should display the text as ca 1`] = `
<input
class="ant-radio-button-input"
type="radio"
value="month"
value="year"
/>
<span
class="ant-radio-button-inner"
@ -21639,7 +21639,7 @@ exports[`Locale Provider should display the text as cs 1`] = `
checked=""
class="ant-radio-button-input"
type="radio"
value="date"
value="month"
/>
<span
class="ant-radio-button-inner"
@ -21658,7 +21658,7 @@ exports[`Locale Provider should display the text as cs 1`] = `
<input
class="ant-radio-button-input"
type="radio"
value="month"
value="year"
/>
<span
class="ant-radio-button-inner"
@ -26706,7 +26706,7 @@ exports[`Locale Provider should display the text as da 1`] = `
checked=""
class="ant-radio-button-input"
type="radio"
value="date"
value="month"
/>
<span
class="ant-radio-button-inner"
@ -26725,7 +26725,7 @@ exports[`Locale Provider should display the text as da 1`] = `
<input
class="ant-radio-button-input"
type="radio"
value="month"
value="year"
/>
<span
class="ant-radio-button-inner"
@ -31773,7 +31773,7 @@ exports[`Locale Provider should display the text as de 1`] = `
checked=""
class="ant-radio-button-input"
type="radio"
value="date"
value="month"
/>
<span
class="ant-radio-button-inner"
@ -31792,7 +31792,7 @@ exports[`Locale Provider should display the text as de 1`] = `
<input
class="ant-radio-button-input"
type="radio"
value="month"
value="year"
/>
<span
class="ant-radio-button-inner"
@ -36840,7 +36840,7 @@ exports[`Locale Provider should display the text as el 1`] = `
checked=""
class="ant-radio-button-input"
type="radio"
value="date"
value="month"
/>
<span
class="ant-radio-button-inner"
@ -36859,7 +36859,7 @@ exports[`Locale Provider should display the text as el 1`] = `
<input
class="ant-radio-button-input"
type="radio"
value="month"
value="year"
/>
<span
class="ant-radio-button-inner"
@ -41907,7 +41907,7 @@ exports[`Locale Provider should display the text as en 1`] = `
checked=""
class="ant-radio-button-input"
type="radio"
value="date"
value="month"
/>
<span
class="ant-radio-button-inner"
@ -41926,7 +41926,7 @@ exports[`Locale Provider should display the text as en 1`] = `
<input
class="ant-radio-button-input"
type="radio"
value="month"
value="year"
/>
<span
class="ant-radio-button-inner"
@ -46974,7 +46974,7 @@ exports[`Locale Provider should display the text as en-gb 1`] = `
checked=""
class="ant-radio-button-input"
type="radio"
value="date"
value="month"
/>
<span
class="ant-radio-button-inner"
@ -46993,7 +46993,7 @@ exports[`Locale Provider should display the text as en-gb 1`] = `
<input
class="ant-radio-button-input"
type="radio"
value="month"
value="year"
/>
<span
class="ant-radio-button-inner"
@ -52041,7 +52041,7 @@ exports[`Locale Provider should display the text as es 1`] = `
checked=""
class="ant-radio-button-input"
type="radio"
value="date"
value="month"
/>
<span
class="ant-radio-button-inner"
@ -52060,7 +52060,7 @@ exports[`Locale Provider should display the text as es 1`] = `
<input
class="ant-radio-button-input"
type="radio"
value="month"
value="year"
/>
<span
class="ant-radio-button-inner"
@ -57108,7 +57108,7 @@ exports[`Locale Provider should display the text as et 1`] = `
checked=""
class="ant-radio-button-input"
type="radio"
value="date"
value="month"
/>
<span
class="ant-radio-button-inner"
@ -57127,7 +57127,7 @@ exports[`Locale Provider should display the text as et 1`] = `
<input
class="ant-radio-button-input"
type="radio"
value="month"
value="year"
/>
<span
class="ant-radio-button-inner"
@ -62175,7 +62175,7 @@ exports[`Locale Provider should display the text as fa 1`] = `
checked=""
class="ant-radio-button-input"
type="radio"
value="date"
value="month"
/>
<span
class="ant-radio-button-inner"
@ -62194,7 +62194,7 @@ exports[`Locale Provider should display the text as fa 1`] = `
<input
class="ant-radio-button-input"
type="radio"
value="month"
value="year"
/>
<span
class="ant-radio-button-inner"
@ -67242,7 +67242,7 @@ exports[`Locale Provider should display the text as fi 1`] = `
checked=""
class="ant-radio-button-input"
type="radio"
value="date"
value="month"
/>
<span
class="ant-radio-button-inner"
@ -67261,7 +67261,7 @@ exports[`Locale Provider should display the text as fi 1`] = `
<input
class="ant-radio-button-input"
type="radio"
value="month"
value="year"
/>
<span
class="ant-radio-button-inner"
@ -72309,7 +72309,7 @@ exports[`Locale Provider should display the text as fr 1`] = `
checked=""
class="ant-radio-button-input"
type="radio"
value="date"
value="month"
/>
<span
class="ant-radio-button-inner"
@ -72328,7 +72328,7 @@ exports[`Locale Provider should display the text as fr 1`] = `
<input
class="ant-radio-button-input"
type="radio"
value="month"
value="year"
/>
<span
class="ant-radio-button-inner"
@ -77376,7 +77376,7 @@ exports[`Locale Provider should display the text as fr 2`] = `
checked=""
class="ant-radio-button-input"
type="radio"
value="date"
value="month"
/>
<span
class="ant-radio-button-inner"
@ -77395,7 +77395,7 @@ exports[`Locale Provider should display the text as fr 2`] = `
<input
class="ant-radio-button-input"
type="radio"
value="month"
value="year"
/>
<span
class="ant-radio-button-inner"
@ -82443,7 +82443,7 @@ exports[`Locale Provider should display the text as he 1`] = `
checked=""
class="ant-radio-button-input"
type="radio"
value="date"
value="month"
/>
<span
class="ant-radio-button-inner"
@ -82462,7 +82462,7 @@ exports[`Locale Provider should display the text as he 1`] = `
<input
class="ant-radio-button-input"
type="radio"
value="month"
value="year"
/>
<span
class="ant-radio-button-inner"
@ -87510,7 +87510,7 @@ exports[`Locale Provider should display the text as hi 1`] = `
checked=""
class="ant-radio-button-input"
type="radio"
value="date"
value="month"
/>
<span
class="ant-radio-button-inner"
@ -87529,7 +87529,7 @@ exports[`Locale Provider should display the text as hi 1`] = `
<input
class="ant-radio-button-input"
type="radio"
value="month"
value="year"
/>
<span
class="ant-radio-button-inner"
@ -92577,7 +92577,7 @@ exports[`Locale Provider should display the text as hu 1`] = `
checked=""
class="ant-radio-button-input"
type="radio"
value="date"
value="month"
/>
<span
class="ant-radio-button-inner"
@ -92596,7 +92596,7 @@ exports[`Locale Provider should display the text as hu 1`] = `
<input
class="ant-radio-button-input"
type="radio"
value="month"
value="year"
/>
<span
class="ant-radio-button-inner"
@ -97644,7 +97644,7 @@ exports[`Locale Provider should display the text as id 1`] = `
checked=""
class="ant-radio-button-input"
type="radio"
value="date"
value="month"
/>
<span
class="ant-radio-button-inner"
@ -97663,7 +97663,7 @@ exports[`Locale Provider should display the text as id 1`] = `
<input
class="ant-radio-button-input"
type="radio"
value="month"
value="year"
/>
<span
class="ant-radio-button-inner"
@ -102711,7 +102711,7 @@ exports[`Locale Provider should display the text as is 1`] = `
checked=""
class="ant-radio-button-input"
type="radio"
value="date"
value="month"
/>
<span
class="ant-radio-button-inner"
@ -102730,7 +102730,7 @@ exports[`Locale Provider should display the text as is 1`] = `
<input
class="ant-radio-button-input"
type="radio"
value="month"
value="year"
/>
<span
class="ant-radio-button-inner"
@ -107778,7 +107778,7 @@ exports[`Locale Provider should display the text as it 1`] = `
checked=""
class="ant-radio-button-input"
type="radio"
value="date"
value="month"
/>
<span
class="ant-radio-button-inner"
@ -107797,7 +107797,7 @@ exports[`Locale Provider should display the text as it 1`] = `
<input
class="ant-radio-button-input"
type="radio"
value="month"
value="year"
/>
<span
class="ant-radio-button-inner"
@ -112845,7 +112845,7 @@ exports[`Locale Provider should display the text as ja 1`] = `
checked=""
class="ant-radio-button-input"
type="radio"
value="date"
value="month"
/>
<span
class="ant-radio-button-inner"
@ -112864,7 +112864,7 @@ exports[`Locale Provider should display the text as ja 1`] = `
<input
class="ant-radio-button-input"
type="radio"
value="month"
value="year"
/>
<span
class="ant-radio-button-inner"
@ -117912,7 +117912,7 @@ exports[`Locale Provider should display the text as kn 1`] = `
checked=""
class="ant-radio-button-input"
type="radio"
value="date"
value="month"
/>
<span
class="ant-radio-button-inner"
@ -117931,7 +117931,7 @@ exports[`Locale Provider should display the text as kn 1`] = `
<input
class="ant-radio-button-input"
type="radio"
value="month"
value="year"
/>
<span
class="ant-radio-button-inner"
@ -122979,7 +122979,7 @@ exports[`Locale Provider should display the text as ko 1`] = `
checked=""
class="ant-radio-button-input"
type="radio"
value="date"
value="month"
/>
<span
class="ant-radio-button-inner"
@ -122998,7 +122998,7 @@ exports[`Locale Provider should display the text as ko 1`] = `
<input
class="ant-radio-button-input"
type="radio"
value="month"
value="year"
/>
<span
class="ant-radio-button-inner"
@ -128046,7 +128046,7 @@ exports[`Locale Provider should display the text as ku-iq 1`] = `
checked=""
class="ant-radio-button-input"
type="radio"
value="date"
value="month"
/>
<span
class="ant-radio-button-inner"
@ -128065,7 +128065,7 @@ exports[`Locale Provider should display the text as ku-iq 1`] = `
<input
class="ant-radio-button-input"
type="radio"
value="month"
value="year"
/>
<span
class="ant-radio-button-inner"
@ -133113,7 +133113,7 @@ exports[`Locale Provider should display the text as mn-mn 1`] = `
checked=""
class="ant-radio-button-input"
type="radio"
value="date"
value="month"
/>
<span
class="ant-radio-button-inner"
@ -133132,7 +133132,7 @@ exports[`Locale Provider should display the text as mn-mn 1`] = `
<input
class="ant-radio-button-input"
type="radio"
value="month"
value="year"
/>
<span
class="ant-radio-button-inner"
@ -138180,7 +138180,7 @@ exports[`Locale Provider should display the text as nb 1`] = `
checked=""
class="ant-radio-button-input"
type="radio"
value="date"
value="month"
/>
<span
class="ant-radio-button-inner"
@ -138199,7 +138199,7 @@ exports[`Locale Provider should display the text as nb 1`] = `
<input
class="ant-radio-button-input"
type="radio"
value="month"
value="year"
/>
<span
class="ant-radio-button-inner"
@ -143247,7 +143247,7 @@ exports[`Locale Provider should display the text as ne-np 1`] = `
checked=""
class="ant-radio-button-input"
type="radio"
value="date"
value="month"
/>
<span
class="ant-radio-button-inner"
@ -143266,7 +143266,7 @@ exports[`Locale Provider should display the text as ne-np 1`] = `
<input
class="ant-radio-button-input"
type="radio"
value="month"
value="year"
/>
<span
class="ant-radio-button-inner"
@ -148314,7 +148314,7 @@ exports[`Locale Provider should display the text as nl 1`] = `
checked=""
class="ant-radio-button-input"
type="radio"
value="date"
value="month"
/>
<span
class="ant-radio-button-inner"
@ -148333,7 +148333,7 @@ exports[`Locale Provider should display the text as nl 1`] = `
<input
class="ant-radio-button-input"
type="radio"
value="month"
value="year"
/>
<span
class="ant-radio-button-inner"
@ -153381,7 +153381,7 @@ exports[`Locale Provider should display the text as nl-be 1`] = `
checked=""
class="ant-radio-button-input"
type="radio"
value="date"
value="month"
/>
<span
class="ant-radio-button-inner"
@ -153400,7 +153400,7 @@ exports[`Locale Provider should display the text as nl-be 1`] = `
<input
class="ant-radio-button-input"
type="radio"
value="month"
value="year"
/>
<span
class="ant-radio-button-inner"
@ -158448,7 +158448,7 @@ exports[`Locale Provider should display the text as pl 1`] = `
checked=""
class="ant-radio-button-input"
type="radio"
value="date"
value="month"
/>
<span
class="ant-radio-button-inner"
@ -158467,7 +158467,7 @@ exports[`Locale Provider should display the text as pl 1`] = `
<input
class="ant-radio-button-input"
type="radio"
value="month"
value="year"
/>
<span
class="ant-radio-button-inner"
@ -163515,7 +163515,7 @@ exports[`Locale Provider should display the text as pt 1`] = `
checked=""
class="ant-radio-button-input"
type="radio"
value="date"
value="month"
/>
<span
class="ant-radio-button-inner"
@ -163534,7 +163534,7 @@ exports[`Locale Provider should display the text as pt 1`] = `
<input
class="ant-radio-button-input"
type="radio"
value="month"
value="year"
/>
<span
class="ant-radio-button-inner"
@ -168582,7 +168582,7 @@ exports[`Locale Provider should display the text as pt-br 1`] = `
checked=""
class="ant-radio-button-input"
type="radio"
value="date"
value="month"
/>
<span
class="ant-radio-button-inner"
@ -168601,7 +168601,7 @@ exports[`Locale Provider should display the text as pt-br 1`] = `
<input
class="ant-radio-button-input"
type="radio"
value="month"
value="year"
/>
<span
class="ant-radio-button-inner"
@ -173649,7 +173649,7 @@ exports[`Locale Provider should display the text as ru 1`] = `
checked=""
class="ant-radio-button-input"
type="radio"
value="date"
value="month"
/>
<span
class="ant-radio-button-inner"
@ -173668,7 +173668,7 @@ exports[`Locale Provider should display the text as ru 1`] = `
<input
class="ant-radio-button-input"
type="radio"
value="month"
value="year"
/>
<span
class="ant-radio-button-inner"
@ -178716,7 +178716,7 @@ exports[`Locale Provider should display the text as sk 1`] = `
checked=""
class="ant-radio-button-input"
type="radio"
value="date"
value="month"
/>
<span
class="ant-radio-button-inner"
@ -178735,7 +178735,7 @@ exports[`Locale Provider should display the text as sk 1`] = `
<input
class="ant-radio-button-input"
type="radio"
value="month"
value="year"
/>
<span
class="ant-radio-button-inner"
@ -183783,7 +183783,7 @@ exports[`Locale Provider should display the text as sl 1`] = `
checked=""
class="ant-radio-button-input"
type="radio"
value="date"
value="month"
/>
<span
class="ant-radio-button-inner"
@ -183802,7 +183802,7 @@ exports[`Locale Provider should display the text as sl 1`] = `
<input
class="ant-radio-button-input"
type="radio"
value="month"
value="year"
/>
<span
class="ant-radio-button-inner"
@ -188850,7 +188850,7 @@ exports[`Locale Provider should display the text as sr 1`] = `
checked=""
class="ant-radio-button-input"
type="radio"
value="date"
value="month"
/>
<span
class="ant-radio-button-inner"
@ -188869,7 +188869,7 @@ exports[`Locale Provider should display the text as sr 1`] = `
<input
class="ant-radio-button-input"
type="radio"
value="month"
value="year"
/>
<span
class="ant-radio-button-inner"
@ -193917,7 +193917,7 @@ exports[`Locale Provider should display the text as sv 1`] = `
checked=""
class="ant-radio-button-input"
type="radio"
value="date"
value="month"
/>
<span
class="ant-radio-button-inner"
@ -193936,7 +193936,7 @@ exports[`Locale Provider should display the text as sv 1`] = `
<input
class="ant-radio-button-input"
type="radio"
value="month"
value="year"
/>
<span
class="ant-radio-button-inner"
@ -198984,7 +198984,7 @@ exports[`Locale Provider should display the text as th 1`] = `
checked=""
class="ant-radio-button-input"
type="radio"
value="date"
value="month"
/>
<span
class="ant-radio-button-inner"
@ -199003,7 +199003,7 @@ exports[`Locale Provider should display the text as th 1`] = `
<input
class="ant-radio-button-input"
type="radio"
value="month"
value="year"
/>
<span
class="ant-radio-button-inner"
@ -204051,7 +204051,7 @@ exports[`Locale Provider should display the text as tr 1`] = `
checked=""
class="ant-radio-button-input"
type="radio"
value="date"
value="month"
/>
<span
class="ant-radio-button-inner"
@ -204070,7 +204070,7 @@ exports[`Locale Provider should display the text as tr 1`] = `
<input
class="ant-radio-button-input"
type="radio"
value="month"
value="year"
/>
<span
class="ant-radio-button-inner"
@ -209118,7 +209118,7 @@ exports[`Locale Provider should display the text as uk 1`] = `
checked=""
class="ant-radio-button-input"
type="radio"
value="date"
value="month"
/>
<span
class="ant-radio-button-inner"
@ -209137,7 +209137,7 @@ exports[`Locale Provider should display the text as uk 1`] = `
<input
class="ant-radio-button-input"
type="radio"
value="month"
value="year"
/>
<span
class="ant-radio-button-inner"
@ -214185,7 +214185,7 @@ exports[`Locale Provider should display the text as vi 1`] = `
checked=""
class="ant-radio-button-input"
type="radio"
value="date"
value="month"
/>
<span
class="ant-radio-button-inner"
@ -214204,7 +214204,7 @@ exports[`Locale Provider should display the text as vi 1`] = `
<input
class="ant-radio-button-input"
type="radio"
value="month"
value="year"
/>
<span
class="ant-radio-button-inner"
@ -219252,7 +219252,7 @@ exports[`Locale Provider should display the text as zh-cn 1`] = `
checked=""
class="ant-radio-button-input"
type="radio"
value="date"
value="month"
/>
<span
class="ant-radio-button-inner"
@ -219271,7 +219271,7 @@ exports[`Locale Provider should display the text as zh-cn 1`] = `
<input
class="ant-radio-button-input"
type="radio"
value="month"
value="year"
/>
<span
class="ant-radio-button-inner"
@ -224319,7 +224319,7 @@ exports[`Locale Provider should display the text as zh-tw 1`] = `
checked=""
class="ant-radio-button-input"
type="radio"
value="date"
value="month"
/>
<span
class="ant-radio-button-inner"
@ -224338,7 +224338,7 @@ exports[`Locale Provider should display the text as zh-tw 1`] = `
<input
class="ant-radio-button-input"
type="radio"
value="month"
value="year"
/>
<span
class="ant-radio-button-inner"