File tree 4 files changed +10
-10
lines changed
input/__tests__/__snapshots__
4 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ const { QuarterPicker } = DatePicker;
6
6
jest . mock ( '../../_util/Portal' ) ;
7
7
describe ( 'QuarterPicker' , ( ) => {
8
8
focusTest ( QuarterPicker ) ;
9
- fit ( 'reset select item when popup close' , async ( ) => {
9
+ it ( 'reset select item when popup close' , async ( ) => {
10
10
const wrapper = mount ( DatePicker , {
11
11
props : { style : { width : '400px' } , picker : 'quarter' } ,
12
12
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`] = `
13
13
<div class = " ant-picker-quarter-panel" >
14
14
<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 >
15
15
<!---->
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 >
17
17
<!----><button type = " button" tabindex = " -1" class = " ant-picker-header-super-next-btn" ><span class = " ant-picker-super-next-icon" ></span ></button >
18
18
</div >
19
19
<div class = " ant-picker-body" >
20
20
<table class = " ant-picker-content" >
21
21
<!---->
22
22
<tbody >
23
23
<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" >
25
25
<div class = " ant-picker-cell-inner" >Q1</div >
26
26
</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" >
28
28
<div class = " ant-picker-cell-inner" >Q2</div >
29
29
</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" >
31
31
<div class = " ant-picker-cell-inner" >Q3</div >
32
32
</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" >
34
34
<div class = " ant-picker-cell-inner" >Q4</div >
35
35
</td >
36
36
</tr >
Original file line number Diff line number Diff line change 1
1
import type { InjectionKey , ComputedRef } from 'vue' ;
2
2
import { inject , provide , computed } from 'vue' ;
3
3
import type { ColProps } from '../grid' ;
4
- import type { RequiredMark , ValidationRule } from './Form' ;
4
+ import type { RequiredMark } from './Form' ;
5
5
import type { ValidateStatus , FieldExpose } from './FormItem' ;
6
- import type { FormLabelAlign , ValidateMessages } from './interface' ;
6
+ import type { FormLabelAlign , Rule , ValidateMessages } from './interface' ;
7
7
import { defaultValidateMessages } from './utils/messages' ;
8
8
9
9
export interface FormContextProps {
@@ -20,7 +20,7 @@ export interface FormContextProps {
20
20
addField : ( eventKey : string , field : FieldExpose ) => void ;
21
21
removeField : ( eventKey : string ) => void ;
22
22
validateTrigger ?: ComputedRef < string | string [ ] > ;
23
- rules ?: ComputedRef < { [ k : string ] : ValidationRule [ ] | ValidationRule } > ;
23
+ rules ?: ComputedRef < { [ k : string ] : Rule [ ] | Rule } > ;
24
24
onValidate : (
25
25
name : string | number | Array < string | number > ,
26
26
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`] = `
126
126
<textarea placeholder = " Basic usage" rows = " 4" class = " ant-input" ></textarea >
127
127
<br >
128
128
<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 >
130
130
`;
131
131
132
132
exports[`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