Skip to content

Commit dde7719

Browse files
committed
chore: update type
1 parent 5cc10c6 commit dde7719

File tree

16 files changed

+21
-26
lines changed

16 files changed

+21
-26
lines changed

components/avatar/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { App } from 'vue';
1+
import { App, Plugin } from 'vue';
22
import Avatar from './Avatar';
33
import Group from './Group';
44

components/input-number/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const inputNumberProps = {
1515
value: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
1616
step: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).def(1),
1717
defaultValue: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
18-
tabindex: PropTypes.number,
18+
tabindex: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
1919
disabled: PropTypes.looseBool,
2020
size: PropTypes.oneOf(tuple('large', 'small', 'default')),
2121
formatter: PropTypes.func,

components/menu/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import MenuItem, { MenuItemProps } from './src/MenuItem';
33
import SubMenu, { SubMenuProps } from './src/SubMenu';
44
import ItemGroup, { MenuItemGroupProps } from './src/ItemGroup';
55
import Divider from './src/Divider';
6-
import { App } from 'vue';
6+
import { App, Plugin } from 'vue';
77
/* istanbul ignore next */
88
Menu.install = function(app: App) {
99
app.component(Menu.name, Menu);

components/rate/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const rateProps = {
2222
disabled: PropTypes.looseBool,
2323
character: PropTypes.any,
2424
autofocus: PropTypes.looseBool,
25-
tabindex: PropTypes.number,
25+
tabindex: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
2626
direction: PropTypes.string,
2727
};
2828

components/skeleton/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { App } from 'vue';
1+
import { App, Plugin } from 'vue';
22
import Skeleton from './Skeleton';
33
import SkeletonButton from './Button';
44
import SkeletonInput from './Input';

components/vc-align/hooks/useBuffer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ComputedRef } from '@vue/reactivity';
1+
import { ComputedRef } from 'vue';
22

33
export default (callback: () => boolean, buffer: ComputedRef<number>) => {
44
let called = false;

components/vc-select/Selector/Input.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ interface InputProps {
2323
accessibilityIndex: number;
2424
value: string;
2525
open: boolean;
26-
tabindex: number;
26+
tabindex: number | string;
2727
/** Pass accessibility props to input */
2828
attrs: object;
2929
inputRef: RefObject;
@@ -172,7 +172,7 @@ Input.props = {
172172
accessibilityIndex: PropTypes.number,
173173
value: PropTypes.string,
174174
open: PropTypes.looseBool,
175-
tabindex: PropTypes.number,
175+
tabindex: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
176176
/** Pass accessibility props to input */
177177
attrs: PropTypes.object,
178178
onKeydown: PropTypes.func,

components/vc-select/Selector/MultipleSelector.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const props = {
5252
autofocus: PropTypes.looseBool,
5353
autocomplete: PropTypes.string,
5454
accessibilityIndex: PropTypes.number,
55-
tabindex: PropTypes.number,
55+
tabindex: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
5656

5757
removeIcon: PropTypes.VNodeChild,
5858
choiceTransitionName: PropTypes.string,

components/vc-select/Selector/SingleSelector.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const props = {
2424
autofocus: PropTypes.looseBool,
2525
autocomplete: PropTypes.string,
2626
accessibilityIndex: PropTypes.number,
27-
tabindex: PropTypes.number,
27+
tabindex: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
2828
activeValue: PropTypes.string,
2929
backfill: PropTypes.looseBool,
3030
onInputChange: PropTypes.func,

components/vc-select/Selector/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export interface InnerSelectorProps {
3333
searchValue: string;
3434
accessibilityIndex: number;
3535
open: boolean;
36-
tabindex?: number;
36+
tabindex?: number | string;
3737
onInputKeyDown: EventHandlerNonNull;
3838
onInputMouseDown: EventHandlerNonNull;
3939
onInputChange: EventHandlerNonNull;
@@ -57,7 +57,7 @@ export interface SelectorProps {
5757

5858
autofocus?: boolean;
5959
accessibilityIndex: number;
60-
tabindex?: number;
60+
tabindex?: number | string;
6161
disabled?: boolean;
6262
placeholder?: VNodeChild;
6363
removeIcon?: RenderNode;
@@ -265,7 +265,7 @@ Selector.props = {
265265

266266
autofocus: PropTypes.looseBool,
267267
accessibilityIndex: PropTypes.number,
268-
tabindex: PropTypes.number,
268+
tabindex: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
269269
disabled: PropTypes.looseBool,
270270
placeholder: PropTypes.any,
271271
removeIcon: PropTypes.any,

0 commit comments

Comments
 (0)