test: update snap

pull/6379/head
tangjinzhou 2023-03-23 14:11:40 +08:00
parent 5fd866b136
commit 9802fb3ea1
4 changed files with 10 additions and 10 deletions

View File

@ -6,7 +6,7 @@ const { QuarterPicker } = DatePicker;
jest.mock('../../_util/Portal');
describe('QuarterPicker', () => {
focusTest(QuarterPicker);
fit('reset select item when popup close', async () => {
it('reset select item when popup close', async () => {
const wrapper = mount(DatePicker, {
props: { style: { width: '400px' }, picker: 'quarter' },
sync: false,

View File

@ -13,7 +13,7 @@ exports[`QuarterPicker reset select item when popup close 1`] = `
<div class="ant-picker-quarter-panel">
<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>
<!---->
<div class="ant-picker-header-view"><button type="button" class="ant-picker-year-btn">2022</button></div>
<div class="ant-picker-header-view"><button type="button" class="ant-picker-year-btn">2023</button></div>
<!----><button type="button" tabindex="-1" class="ant-picker-header-super-next-btn"><span class="ant-picker-super-next-icon"></span></button>
</div>
<div class="ant-picker-body">
@ -21,16 +21,16 @@ exports[`QuarterPicker reset select item when popup close 1`] = `
<!---->
<tbody>
<tr>
<td title="2022-Q1" class="ant-picker-cell ant-picker-cell-in-view">
<td title="2023-Q1" class="ant-picker-cell ant-picker-cell-in-view">
<div class="ant-picker-cell-inner">Q1</div>
</td>
<td title="2022-Q2" class="ant-picker-cell ant-picker-cell-in-view">
<td title="2023-Q2" class="ant-picker-cell ant-picker-cell-in-view">
<div class="ant-picker-cell-inner">Q2</div>
</td>
<td title="2022-Q3" class="ant-picker-cell ant-picker-cell-in-view">
<td title="2023-Q3" class="ant-picker-cell ant-picker-cell-in-view">
<div class="ant-picker-cell-inner">Q3</div>
</td>
<td title="2022-Q4" class="ant-picker-cell ant-picker-cell-in-view">
<td title="2023-Q4" class="ant-picker-cell ant-picker-cell-in-view">
<div class="ant-picker-cell-inner">Q4</div>
</td>
</tr>

View File

@ -1,9 +1,9 @@
import type { InjectionKey, ComputedRef } from 'vue';
import { inject, provide, computed } from 'vue';
import type { ColProps } from '../grid';
import type { RequiredMark, ValidationRule } from './Form';
import type { RequiredMark } from './Form';
import type { ValidateStatus, FieldExpose } from './FormItem';
import type { FormLabelAlign, ValidateMessages } from './interface';
import type { FormLabelAlign, Rule, ValidateMessages } from './interface';
import { defaultValidateMessages } from './utils/messages';
export interface FormContextProps {
@ -20,7 +20,7 @@ export interface FormContextProps {
addField: (eventKey: string, field: FieldExpose) => void;
removeField: (eventKey: string) => void;
validateTrigger?: ComputedRef<string | string[]>;
rules?: ComputedRef<{ [k: string]: ValidationRule[] | ValidationRule }>;
rules?: ComputedRef<{ [k: string]: Rule[] | Rule }>;
onValidate: (
name: string | number | Array<string | number>,
status: boolean,

View File

@ -126,7 +126,7 @@ exports[`renders ./components/input/demo/textarea.vue correctly 1`] = `
<textarea placeholder="Basic usage" rows="4" class="ant-input"></textarea>
<br>
<br>
<textarea rows="4" placeholder="maxLength is 6" class="ant-input"></textarea>
<textarea rows="4" placeholder="maxlength is 6" class="ant-input"></textarea>
`;
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">`;