-
Notifications
You must be signed in to change notification settings - Fork 272
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: radio adaptation * feat: update the usage of the 'color' property in the Icon component
- Loading branch information
1 parent
5efd427
commit 1222cb6
Showing
10 changed files
with
46 additions
and
32 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,16 @@ | ||
import { Radio } from './radio.taro' | ||
import React from 'react' | ||
import { Radio, RadioProps } from './radio.taro' | ||
import { RadioGroup } from '../radiogroup/radiogroup.taro' | ||
|
||
export type { RadioProps } from './radio.taro' | ||
export type { RadioShape, RadioPosition } from './types' | ||
|
||
export default Radio | ||
type CompoundedComponent = React.FC< | ||
Partial<RadioProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> | ||
> & { | ||
Group: typeof RadioGroup | ||
} | ||
const InnerRadio = Radio as CompoundedComponent | ||
InnerRadio.Group = RadioGroup | ||
|
||
export default InnerRadio |
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,5 +1,15 @@ | ||
import { Radio } from './radio' | ||
import React from 'react' | ||
import { Radio, RadioProps } from './radio' | ||
import { RadioGroup } from '../radiogroup/radiogroup' | ||
|
||
export type { RadioProps } from './radio' | ||
export type { RadioShape, RadioPosition } from './types' | ||
export default Radio | ||
type CompoundedComponent = React.FC< | ||
Partial<RadioProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> | ||
> & { | ||
Group: typeof RadioGroup | ||
} | ||
const InnerRadio = Radio as CompoundedComponent | ||
InnerRadio.Group = RadioGroup | ||
|
||
export default InnerRadio |
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