@@ -72,7 +72,8 @@ export type CountryData = {
7272} ;
7373export type CountryOption = SelectOption < CountryData > ;
7474export type CountryConfig = {
75- value : string | CountryOption | undefined ,
75+ value ?: string | CountryOption | undefined ,
76+ defaultValue ?: string | CountryOption | undefined ,
7677 map : ( country : CountryData ) => CountryOption
7778} ;
7879export type CountryProps = ExtendsType < SelectProps , {
@@ -85,7 +86,8 @@ export type CurrencyOption = SelectOption<CountryData>;
8586export type CurrencyConfig = CountryConfig ;
8687export type CurrencyProps = ExtendsType < SelectProps , {
8788 options ?: undefined ,
88- value ?: CurrencyOption | string
89+ value ?: CurrencyOption | string ,
90+ defaultValue ?: CurrencyOption | string
8991} > ;
9092
9193// date component
@@ -240,6 +242,7 @@ export type SelectOption<T = any> = {
240242} ;
241243export type SelectConfig = {
242244 value ?: SelectOption ,
245+ defaultValue ?: SelectOption ,
243246 onDropdown ?: ( show : boolean ) => void ,
244247 onSelected ?: ( value : SelectOption ) => void ,
245248 onUpdate ?: ( value : string | number ) => void
@@ -257,6 +260,7 @@ export type SelectDropdownProps = {
257260} ;
258261export type SelectProps = {
259262 value ?: SelectOption ,
263+ defaultValue ?: SelectOption ,
260264 options : SelectOption [ ] | Record < string , string > ,
261265 searchable ?: boolean ,
262266 placeholder ?: string ,
0 commit comments