diff --git a/components/calendar/__tests__/__snapshots__/index.test.js.snap b/components/calendar/__tests__/__snapshots__/index.test.js.snap index ac151af122..558f7a317d 100644 --- a/components/calendar/__tests__/__snapshots__/index.test.js.snap +++ b/components/calendar/__tests__/__snapshots__/index.test.js.snap @@ -1043,6 +1043,2048 @@ exports[`Calendar Calendar should support locale 1`] = ` `; exports[`Calendar switch should work correctly without prop mode 1`] = ` + + + +
+
+ +
+ + } + combobox={false} + defaultActiveFirstOption={true} + defaultOpen={false} + dropdownMatchSelectWidth={false} + dropdownMenuStyle={Object {}} + dropdownRender={[Function]} + dropdownStyle={Object {}} + getPopupContainer={[Function]} + inputIcon={ + + } + labelInValue={false} + menuItemSelectedIcon={ + + } + multiple={false} + notFoundContent={ + + [Function] + + } + onBlur={[Function]} + onChange={[Function]} + onDeselect={[Function]} + onFocus={[Function]} + onInputKeyDown={[Function]} + onSearch={[Function]} + onSelect={[Function]} + optionFilterProp="value" + optionLabelProp="children" + placeholder="" + prefixCls="ant-select" + removeIcon={ + + } + showAction={ + Array [ + "click", + ] + } + showSearch={false} + tabIndex={0} + tags={false} + tokenSeparators={Array []} + transitionName="slide-up" + value="1990" + > + + } + multiple={false} + onDropdownVisibleChange={[Function]} + onMenuDeselect={[Function]} + onMenuSelect={[Function]} + onPopupFocus={[Function]} + options={Array []} + prefixCls="ant-select" + showAction={ + Array [ + "click", + ] + } + showSearch={false} + transitionName="slide-up" + value={ + Array [ + "1990", + ] + } + visible={false} + > + + } + mouseEnterDelay={0} + mouseLeaveDelay={0.1} + multiple={false} + onDropdownVisibleChange={[Function]} + onMenuDeselect={[Function]} + onMenuSelect={[Function]} + onPopupAlign={[Function]} + onPopupVisibleChange={[Function]} + options={Array []} + popup={ + + } + menuItems={Array []} + multiple={false} + onMenuDeselect={[Function]} + onMenuSelect={[Function]} + onPopupFocus={[Function]} + prefixCls="ant-select-dropdown" + value={ + Array [ + "1990", + ] + } + visible={false} + /> + } + popupAlign={Object {}} + popupClassName="ant-select-dropdown--single" + popupPlacement="bottomLeft" + popupStyle={Object {}} + popupTransitionName="slide-up" + popupVisible={false} + prefixCls="ant-select-dropdown" + showAction={ + Array [ + "click", + ] + } + showSearch={false} + transitionName="slide-up" + value={ + Array [ + "1990", + ] + } + visible={false} + > +
+
+
+
+ 1990 +
+
+ + + + + + + + + + + +
+
+
+
+ + + + + } + combobox={false} + defaultActiveFirstOption={true} + defaultOpen={false} + dropdownMatchSelectWidth={false} + dropdownMenuStyle={Object {}} + dropdownRender={[Function]} + dropdownStyle={Object {}} + getPopupContainer={[Function]} + inputIcon={ + + } + labelInValue={false} + menuItemSelectedIcon={ + + } + multiple={false} + notFoundContent={ + + [Function] + + } + onBlur={[Function]} + onChange={[Function]} + onDeselect={[Function]} + onFocus={[Function]} + onInputKeyDown={[Function]} + onSearch={[Function]} + onSelect={[Function]} + optionFilterProp="value" + optionLabelProp="children" + placeholder="" + prefixCls="ant-select" + removeIcon={ + + } + showAction={ + Array [ + "click", + ] + } + showSearch={false} + tabIndex={0} + tags={false} + tokenSeparators={Array []} + transitionName="slide-up" + value="8" + > + + } + multiple={false} + onDropdownVisibleChange={[Function]} + onMenuDeselect={[Function]} + onMenuSelect={[Function]} + onPopupFocus={[Function]} + options={Array []} + prefixCls="ant-select" + showAction={ + Array [ + "click", + ] + } + showSearch={false} + transitionName="slide-up" + value={ + Array [ + "8", + ] + } + visible={false} + > + + } + mouseEnterDelay={0} + mouseLeaveDelay={0.1} + multiple={false} + onDropdownVisibleChange={[Function]} + onMenuDeselect={[Function]} + onMenuSelect={[Function]} + onPopupAlign={[Function]} + onPopupVisibleChange={[Function]} + options={Array []} + popup={ + + } + menuItems={Array []} + multiple={false} + onMenuDeselect={[Function]} + onMenuSelect={[Function]} + onPopupFocus={[Function]} + prefixCls="ant-select-dropdown" + value={ + Array [ + "8", + ] + } + visible={false} + /> + } + popupAlign={Object {}} + popupClassName="ant-select-dropdown--single" + popupPlacement="bottomLeft" + popupStyle={Object {}} + popupTransitionName="slide-up" + popupVisible={false} + prefixCls="ant-select-dropdown" + showAction={ + Array [ + "click", + ] + } + showSearch={false} + transitionName="slide-up" + value={ + Array [ + "8", + ] + } + visible={false} + > +
+
+
+
+ Sep +
+
+ + + + + + + + + + + +
+
+
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + +
+
+
+
+
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + Su + + + + Mo + + + + Tu + + + + We + + + + Th + + + + Fr + + + + Sa + +
+
+
+ 26 +
+
+
+
+
+
+ 27 +
+
+
+
+
+
+ 28 +
+
+
+
+
+
+ 29 +
+
+
+
+
+
+ 30 +
+
+
+
+
+
+ 31 +
+
+
+
+
+
+ 01 +
+
+
+
+
+
+ 02 +
+
+
+
+
+
+ 03 +
+
+
+
+
+
+ 04 +
+
+
+
+
+
+ 05 +
+
+
+
+
+
+ 06 +
+
+
+
+
+
+ 07 +
+
+
+
+
+
+ 08 +
+
+
+
+
+
+ 09 +
+
+
+
+
+
+ 10 +
+
+
+
+
+
+ 11 +
+
+
+
+
+
+ 12 +
+
+
+
+
+
+ 13 +
+
+
+
+
+
+ 14 +
+
+
+
+
+
+ 15 +
+
+
+
+
+
+ 16 +
+
+
+
+
+
+ 17 +
+
+
+
+
+
+ 18 +
+
+
+
+
+
+ 19 +
+
+
+
+
+
+ 20 +
+
+
+
+
+
+ 21 +
+
+
+
+
+
+ 22 +
+
+
+
+
+
+ 23 +
+
+
+
+
+
+ 24 +
+
+
+
+
+
+ 25 +
+
+
+
+
+
+ 26 +
+
+
+
+
+
+ 27 +
+
+
+
+
+
+ 28 +
+
+
+
+
+
+ 29 +
+
+
+
+
+
+ 30 +
+
+
+
+
+
+ 01 +
+
+
+
+
+
+ 02 +
+
+
+
+
+
+ 03 +
+
+
+
+
+
+ 04 +
+
+
+
+
+
+ 05 +
+
+
+
+
+
+ 06 +
+
+
+
+
+
+
+
+
+
+
+
+`; + +exports[`Calendar switch should work correctly without prop mode 2`] = ` { const onPanelChange = jest.fn(); const date = new Moment('1990-09-03'); const wrapper = mount(); + expect(wrapper).toMatchSnapshot(); expect(wrapper.state().mode).toBe('month'); wrapper .find('.ant-radio-button-input')