File tree Expand file tree Collapse file tree 4 files changed +10
-10
lines changed
input/__tests__/__snapshots__ Expand file tree Collapse file tree 4 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ const { QuarterPicker } = DatePicker;
66jest . mock ( '../../_util/Portal' ) ;
77describe ( 'QuarterPicker' , ( ) => {
88 focusTest ( QuarterPicker ) ;
9- fit ( 'reset select item when popup close' , async ( ) => {
9+ it ( 'reset select item when popup close' , async ( ) => {
1010 const wrapper = mount ( DatePicker , {
1111 props : { style : { width : '400px' } , picker : 'quarter' } ,
1212 sync : false ,
Original file line number Diff line number Diff line change @@ -13,24 +13,24 @@ exports[`QuarterPicker reset select item when popup close 1`] = `
1313 <div class = " ant-picker-quarter-panel" >
1414 <div class = " ant-picker-header" ><button type = " button" tabindex = " -1" class = " ant-picker-header-super-prev-btn" ><span class = " ant-picker-super-prev-icon" ></span ></button >
1515 <!---->
16- <div class = " ant-picker-header-view" ><button type = " button" class = " ant-picker-year-btn" >2022 </button ></div >
16+ <div class = " ant-picker-header-view" ><button type = " button" class = " ant-picker-year-btn" >2023 </button ></div >
1717 <!----><button type = " button" tabindex = " -1" class = " ant-picker-header-super-next-btn" ><span class = " ant-picker-super-next-icon" ></span ></button >
1818 </div >
1919 <div class = " ant-picker-body" >
2020 <table class = " ant-picker-content" >
2121 <!---->
2222 <tbody >
2323 <tr >
24- <td title = " 2022 -Q1" class = " ant-picker-cell ant-picker-cell-in-view" >
24+ <td title = " 2023 -Q1" class = " ant-picker-cell ant-picker-cell-in-view" >
2525 <div class = " ant-picker-cell-inner" >Q1</div >
2626 </td >
27- <td title = " 2022 -Q2" class = " ant-picker-cell ant-picker-cell-in-view" >
27+ <td title = " 2023 -Q2" class = " ant-picker-cell ant-picker-cell-in-view" >
2828 <div class = " ant-picker-cell-inner" >Q2</div >
2929 </td >
30- <td title = " 2022 -Q3" class = " ant-picker-cell ant-picker-cell-in-view" >
30+ <td title = " 2023 -Q3" class = " ant-picker-cell ant-picker-cell-in-view" >
3131 <div class = " ant-picker-cell-inner" >Q3</div >
3232 </td >
33- <td title = " 2022 -Q4" class = " ant-picker-cell ant-picker-cell-in-view" >
33+ <td title = " 2023 -Q4" class = " ant-picker-cell ant-picker-cell-in-view" >
3434 <div class = " ant-picker-cell-inner" >Q4</div >
3535 </td >
3636 </tr >
Original file line number Diff line number Diff line change 11import type { InjectionKey , ComputedRef } from 'vue' ;
22import { inject , provide , computed } from 'vue' ;
33import type { ColProps } from '../grid' ;
4- import type { RequiredMark , ValidationRule } from './Form' ;
4+ import type { RequiredMark } from './Form' ;
55import type { ValidateStatus , FieldExpose } from './FormItem' ;
6- import type { FormLabelAlign , ValidateMessages } from './interface' ;
6+ import type { FormLabelAlign , Rule , ValidateMessages } from './interface' ;
77import { defaultValidateMessages } from './utils/messages' ;
88
99export interface FormContextProps {
@@ -20,7 +20,7 @@ export interface FormContextProps {
2020 addField : ( eventKey : string , field : FieldExpose ) => void ;
2121 removeField : ( eventKey : string ) => void ;
2222 validateTrigger ?: ComputedRef < string | string [ ] > ;
23- rules ?: ComputedRef < { [ k : string ] : ValidationRule [ ] | ValidationRule } > ;
23+ rules ?: ComputedRef < { [ k : string ] : Rule [ ] | Rule } > ;
2424 onValidate : (
2525 name : string | number | Array < string | number > ,
2626 status : boolean ,
Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ exports[`renders ./components/input/demo/textarea.vue correctly 1`] = `
126126<textarea placeholder = " Basic usage" rows = " 4" class = " ant-input" ></textarea >
127127<br >
128128<br >
129- <textarea rows = " 4" placeholder = " maxLength is 6" class = " ant-input" ></textarea >
129+ <textarea rows = " 4" placeholder = " maxlength is 6" class = " ant-input" ></textarea >
130130`;
131131
132132exports[`renders ./components/input/demo/tooltip.vue correctly 1`] = `<input placeholder = " Input a number" type = " text" max-length = " 25" style = " width: 120px;" class = " ant-input" >`;
You can’t perform that action at this time.
0 commit comments