Skip to content

Commit

Permalink
fix: 修复一些bug
Browse files Browse the repository at this point in the history
  • Loading branch information
三少 committed Sep 18, 2021
1 parent 2b4d207 commit beb9949
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 28 deletions.
1 change: 0 additions & 1 deletion packages/vantui/src/components/checkbox/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ export default function Index(
renderIcon
) : (
<VanIcon
info={null}
name="success"
size="0.8em"
className={
Expand Down
2 changes: 1 addition & 1 deletion packages/vantui/src/components/collapse-item/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export default function Index(
<Slot name="icon"></Slot>
</Block>
}
renderRighticon={
renderRightIcon={
<Block>
<Slot name="right-icon"></Slot>
</Block>
Expand Down
16 changes: 5 additions & 11 deletions packages/vantui/src/components/notice-bar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ export default function Index(props: NoticeBarProps) {
backgroundColor,
background,
wrapable,
renderLefticon,
renderRighticon,
renderLeftIcon,
renderRightIcon,
onClick,
onClose,
style,
Expand Down Expand Up @@ -152,13 +152,12 @@ export default function Index(props: NoticeBarProps) {
>
{leftIcon ? (
<VanIcon
info={null}
size={16}
name={leftIcon}
className="van-notice-bar__left-icon"
></VanIcon>
) : (
renderLefticon
renderLeftIcon
)}
<View className="van-notice-bar__wrap">
<View
Expand All @@ -174,21 +173,16 @@ export default function Index(props: NoticeBarProps) {
</View>
{mode === 'closeable' ? (
<VanIcon
info={null}
className="van-notice-bar__right-icon"
name="cross"
onClick={onClickIcon}
/>
) : mode === 'link' ? (
<Navigator url={url} openType={openType}>
<VanIcon
info={null}
className="van-notice-bar__right-icon"
name="arrow"
/>
<VanIcon className="van-notice-bar__right-icon" name="arrow" />
</Navigator>
) : (
renderRighticon
renderRightIcon
)}
</View>
)
Expand Down
1 change: 0 additions & 1 deletion packages/vantui/src/components/radio/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ export default function Index(
customStyle={computed.iconCustomStyle({
iconSize,
})}
info={null}
></VanIcon>
)}
</View>
Expand Down
4 changes: 0 additions & 4 deletions packages/vantui/src/components/uploader/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,6 @@ export default function Index(props: UploaderProps) {
onClick={onPreviewFile}
>
<VanIcon
info={null}
name="description"
className="van-uploader__file-icon"
></VanIcon>
Expand All @@ -244,7 +243,6 @@ export default function Index(props: UploaderProps) {
<View className="van-uploader__mask">
{item.status === 'failed' ? (
<VanIcon
info={null}
name="close"
className="van-uploader__mask-icon"
></VanIcon>
Expand All @@ -265,7 +263,6 @@ export default function Index(props: UploaderProps) {
onClick={deleteItem}
>
<VanIcon
info={null}
name="cross"
className="van-uploader__preview-delete-icon"
></VanIcon>
Expand Down Expand Up @@ -295,7 +292,6 @@ export default function Index(props: UploaderProps) {
onClick={startUpload}
>
<VanIcon
info={null}
name={uploadIcon}
className="van-uploader__upload-icon"
></VanIcon>
Expand Down
1 change: 0 additions & 1 deletion packages/vantui/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,3 @@ export { default as Stepper } from './components/stepper'
export { default as Steps } from './components/steps'
export { default as Tabbar } from './components/tabbar'
export { default as TabbarItem } from './components/tabbar-item'
export { default as Field } from './components/field'
1 change: 0 additions & 1 deletion packages/vantui/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,3 @@ export { Stepper } from './stepper.d'
export { Steps } from './steps.d'
export { Tabbar } from './tabbar.d'
export { TabbarItem } from './tabbar-item.d'
export { Field } from './field.d'
4 changes: 2 additions & 2 deletions packages/vantui/types/notice-bar.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ export interface NoticeBarProps extends StandardProps {
background?: string
wrapable?: boolean
children?: ReactNode
renderLefticon?: () => any
renderRighticon?: () => any
renderLeftIcon?: () => any
renderRightIcon?: () => any
onClick?: () => any
onClose?: (data: any) => any
}
Expand Down
7 changes: 1 addition & 6 deletions packages/vantui/types/search.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
import { ComponentClass, ReactNode } from 'react'
import {
StandardProps,
ITouchEvent,
CommonEventFunction,
} from '@tarojs/components'
import { TextareaProps } from '@tarojs/components/types/Textarea'
import { StandardProps, ITouchEvent } from '@tarojs/components'

export interface SearchProps extends StandardProps {
value?: string | number
Expand Down

0 comments on commit beb9949

Please sign in to comment.