diff --git a/@types/checkbox.d.ts b/@types/checkbox.d.ts index b451da91d..c44b00dfb 100644 --- a/@types/checkbox.d.ts +++ b/@types/checkbox.d.ts @@ -14,7 +14,7 @@ export interface AtCheckboxProps { selectedList: Array - onChange?: (selectedList: Array) => void + onChange: (selectedList: Array) => void } declare const AtCheckbox: ComponentClass> diff --git a/@types/input-number.d.ts b/@types/input-number.d.ts index 23043cd02..f57a9f1b7 100644 --- a/@types/input-number.d.ts +++ b/@types/input-number.d.ts @@ -19,7 +19,7 @@ export interface AtInputNumberProps extends AtComponent{ disabled?: boolean - onChange?: (value: number) => void + onChange: (value: number) => void } declare const AtInputNumber: ComponentClass diff --git a/@types/input.d.ts b/@types/input.d.ts index 16e156ee0..abd4f6ab8 100644 --- a/@types/input.d.ts +++ b/@types/input.d.ts @@ -55,7 +55,7 @@ export interface AtInputProps extends AtComponent{ onFocus?: InputFunction - onChange?: InputFunction + onChange: InputFunction onConfirm?: InputFunction diff --git a/@types/radio.d.ts b/@types/radio.d.ts index dcc921cd0..ea3767279 100644 --- a/@types/radio.d.ts +++ b/@types/radio.d.ts @@ -13,11 +13,11 @@ export interface Option { export interface AtRadioProps { style?: string - value?: T + value: T options: Array> - onClick?: (vaule: T, event: BaseEvent) => void + onClick: (vaule: T, event: BaseEvent) => void } declare const AtRadio: ComponentClass> diff --git a/@types/search-bar.d.ts b/@types/search-bar.d.ts index 10824f54b..77b7a1604 100644 --- a/@types/search-bar.d.ts +++ b/@types/search-bar.d.ts @@ -20,7 +20,7 @@ export interface AtSearchBarProps extends AtComponent { actionName?: string - onChange?: (value: string, event: BaseEvent) => void + onChange: (value: string, event: BaseEvent) => void onFocus?: BaseEventFunction diff --git a/@types/segmented-control.d.ts b/@types/segmented-control.d.ts index c3f271460..188ae8718 100644 --- a/@types/segmented-control.d.ts +++ b/@types/segmented-control.d.ts @@ -6,7 +6,7 @@ import AtComponent from './base' export interface AtSegmentedControlProps extends AtComponent{ style?: string - current?: number + current: number color?: string @@ -18,7 +18,7 @@ export interface AtSegmentedControlProps extends AtComponent{ values: string[] - onClick?: (index: number, BaseEvent) => void + onClick: (index: number, BaseEvent) => void } declare const AtSegmentedControl: ComponentClass diff --git a/@types/tab-bar.d.ts b/@types/tab-bar.d.ts index 41701d150..c9a38edc2 100644 --- a/@types/tab-bar.d.ts +++ b/@types/tab-bar.d.ts @@ -20,7 +20,7 @@ export interface AtTabBarProps extends AtComponent{ backgroundColor?: string - current?: number + current: number iconSize?: number @@ -32,7 +32,7 @@ export interface AtTabBarProps extends AtComponent{ tabList: TabItem[] - onClick?: (index: number, event: BaseEvent) => void + onClick: (index: number, event: BaseEvent) => void } declare const AtTabBar: ComponentClass diff --git a/@types/tabs-pane.d.ts b/@types/tabs-pane.d.ts index 9ff043ea3..cf9db4f26 100644 --- a/@types/tabs-pane.d.ts +++ b/@types/tabs-pane.d.ts @@ -6,9 +6,9 @@ import AtComponent from './base' export interface AtTabsPaneProps extends AtComponent{ tabDirection?: 'horizontal' | 'vertical' - current?: number + current: number - index?: number + index: number } declare const AtTabsPane: ComponentClass diff --git a/@types/tabs.d.ts b/@types/tabs.d.ts index 23987c466..cbda1709b 100644 --- a/@types/tabs.d.ts +++ b/@types/tabs.d.ts @@ -8,7 +8,7 @@ export interface AtTabsProps extends AtComponent{ height?: string - current?: number + current: number scroll?: boolean @@ -18,7 +18,7 @@ export interface AtTabsProps extends AtComponent{ tabList: Array<{ title: string }> - onClick?: (index: number, event: BaseEvent) => void + onClick: (index: number, event: BaseEvent) => void } declare const AtTabs: ComponentClass