-
-
Notifications
You must be signed in to change notification settings - Fork 225
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #544 from edison-hm/feat-bscroll-stop
feat: stop wheel scroll when click onOk
- Loading branch information
Showing
14 changed files
with
178 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
import BaseWheelProps from '../wheel/PropsType'; | ||
|
||
export type DataSource = Array<{ [key: string]: any; children?: DataSource }>; | ||
|
||
export default interface BasePickerViewProps { | ||
export default interface BasePickerViewProps extends Pick<BaseWheelProps, 'valueMember' | 'itemRender' | 'disabled' | 'stopScroll'>{ | ||
value?: string | string[] | number[]; | ||
defaultValue?: string | string[] | number[] | object; | ||
valueMember?: string; | ||
dataSource: DataSource; | ||
onChange?: (value?: object[], i?: number) => void; | ||
itemRender?: (item?: object) => string; | ||
cols?: number; | ||
disabled?: boolean; | ||
onTransition?: (value: boolean) => void; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
export interface BaseWheelProps { | ||
export default interface BaseWheelProps { | ||
value?: string | number; | ||
defaultValue?: string | number; | ||
valueMember?: string; | ||
dataSource: Array<{ [key: string]: any }>; | ||
onChange?: (value?: string | number) => void; | ||
itemRender?: (item?: { [key: string]: any }) => string; | ||
disabled?: boolean; | ||
onTransition?: (value: boolean) => void; | ||
stopScroll: boolean; | ||
} |
Oops, something went wrong.