Skip to content

Commit 393c432

Browse files
cjzkagol
authored andcommitted
fix(search): eslint 错误,props.size 与 SIZE_CLASS 增加 md 类型。
1 parent b077b52 commit 393c432

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/devui-vue/devui/search/src/composables/use-search-class.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { computed, ComputedRef } from 'vue';
55
import { SearchProps } from '../search-types';
66
const SIZE_CLASS = {
77
lg: 'lg',
8+
md: 'md',
89
sm: 'sm',
910
} as const;
1011
const ICON_POSITION = {

packages/devui-vue/devui/search/src/search-types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { PropType, ExtractPropTypes, Ref, ComputedRef } from 'vue';
22

3-
export type Size = 'lg' | 'sm';
3+
export type Size = 'lg' | 'md' | 'sm';
44
export type IconPosition = 'right' | 'left';
55

66
export const searchProps = {

0 commit comments

Comments
 (0)