Skip to content

Commit

Permalink
feat: 删除tabbar从组件库暴露给用户
Browse files Browse the repository at this point in the history
  • Loading branch information
ZEJIA-LIU committed Aug 12, 2024
1 parent d8160b1 commit 85a6852
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 8 deletions.
8 changes: 8 additions & 0 deletions packages/taro-components-react/types/global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,11 @@ declare namespace JSX {
[elemName: string]: any;
}
}

declare module '@tarojs/components/lib/solid' {
export * from '@tarojs/components'
}

declare module '@tarojs/components/lib/react' {
export * from '@tarojs/components'
}
7 changes: 0 additions & 7 deletions packages/taro-components-react/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,6 @@ declare module '@tarojs/components-react' {
export * from '@tarojs/components'
}

declare module '@tarojs/components/lib/solid' {
export * from '@tarojs/components'
}

declare module '@tarojs/components/lib/react' {
export * from '@tarojs/components'
}
declare module '*/hooks' {
import * as React from 'react'
export const useState: typeof React.useState
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export { Slider } from '@tarojs/components/lib/vue3'
export { NativeSlot, Slot } from '@tarojs/components/lib/vue3'
export { Swiper, SwiperItem } from '@tarojs/components/lib/vue3'
export { Switch } from '@tarojs/components/lib/vue3'
export { Tabbar, TabItem } from '@tarojs/components/lib/vue3'
// export { Tabbar, TabItem } from '@tarojs/components/lib/vue3'
export { Tabs } from '@tarojs/components/lib/vue3'
export { Text } from '@tarojs/components/lib/vue3'
export { Textarea } from '@tarojs/components/lib/vue3'
Expand Down
8 changes: 8 additions & 0 deletions packages/taro-platform-harmony-hybrid/types/component.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,11 @@ declare module '@tarojs/components/dist/components' {

export * from '@tarojs/components/dist/components'
}

declare module '@tarojs/components/lib/vue3' {
export * from '@tarojs/components'
}

declare module '@tarojs/components/lib/react' {
export * from '@tarojs/components'
}

0 comments on commit 85a6852

Please sign in to comment.