diff --git a/mobile/mini/CHANGELOG.md b/mobile/mini/CHANGELOG.md index 5aee1f5..c04cc8d 100644 --- a/mobile/mini/CHANGELOG.md +++ b/mobile/mini/CHANGELOG.md @@ -1,5 +1,11 @@ # @fe-free/mini +## 1.4.4 + +### Patch Changes + +- fix: mini + ## 1.4.3 ### Patch Changes diff --git a/mobile/mini/package.json b/mobile/mini/package.json index e6f29f8..f7911a6 100644 --- a/mobile/mini/package.json +++ b/mobile/mini/package.json @@ -1,6 +1,6 @@ { "name": "@fe-free/mini", - "version": "1.4.3", + "version": "1.4.4", "description": "", "main": "./src/index.ts", "scripts": { diff --git a/mobile/mini/src/list/index.scss b/mobile/mini/src/list/index.scss index 6b92d6d..b3bc479 100644 --- a/mobile/mini/src/list/index.scss +++ b/mobile/mini/src/list/index.scss @@ -5,15 +5,15 @@ } } - &.mini-list-extra-text-default-color { - .item-extra__info { - color: inherit; - } - } - &.mini-list-size-small { .at-list__item { padding: 0.3rem 0.6rem; } } } + +.mini-list-item-extra-text-default-color { + .item-extra__info { + color: inherit; + } +} diff --git a/mobile/mini/src/list/index.tsx b/mobile/mini/src/list/index.tsx index 2af9f2a..5da3822 100644 --- a/mobile/mini/src/list/index.tsx +++ b/mobile/mini/src/list/index.tsx @@ -23,7 +23,6 @@ interface ListProps extends AtListProps { title?: string; size?: 'small'; responseWidth?: boolean; - extraTextDefaultColor?: boolean; } const List = (props: ListProps) => { return ( @@ -32,7 +31,6 @@ const List = (props: ListProps) => { @@ -45,12 +43,16 @@ const List = (props: ListProps) => { interface ListItemProps extends Omit { title?: string | ReactNode; required?: boolean; + extraTextDefaultColor?: boolean; } -const ListItem = ({ required, title, ...rest }: ListItemProps) => { +const ListItem = ({ required, title, extraTextDefaultColor, ...rest }: ListItemProps) => { return ( {title} : (title as any)} /> ); @@ -73,7 +75,7 @@ interface ListDescriptionProps extends Pick { const ListDescription = (props: ListDescriptionProps) => { return ( - + {props.items.map((item, index) => { let extraText = item.value; @@ -107,6 +109,7 @@ const ListDescription = (props: ListDescriptionProps) => { note={item.desc} onClick={handleClick} arrow={item.access ? 'right' : undefined} + extraTextDefaultColor /> ); })} diff --git a/mobile/mini/src/select/select.tsx b/mobile/mini/src/select/select.tsx index f46c18d..df3d628 100644 --- a/mobile/mini/src/select/select.tsx +++ b/mobile/mini/src/select/select.tsx @@ -15,7 +15,12 @@ function Select(props: SelectProps) { return ( - + ); }