Skip to content

Commit

Permalink
Merge pull request #482 from guodongAndroid/master
Browse files Browse the repository at this point in the history
fix: 修改和增加 ts 定义文件
  • Loading branch information
ijry authored Aug 19, 2024
2 parents 71c4b47 + 3cc5bbe commit b3ee18a
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/uni_modules/uview-plus/types/comps.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,15 @@ declare module '@vue/runtime-core' {
// 其他组件
['up-parse']: typeof import('./comps/parse')['Parse']
['up-code-input']: typeof import('./comps/codeInput')['CodeInput']
['up-load-more']: typeof import('./comps/loadMore')['LoadMore']
['up-loadmore']: typeof import('./comps/loadMore')['LoadMore']
['up-read-more']: typeof import('./comps/readMore')['ReadMore']
['up-gap']: typeof import('./comps/gap')['Gap']
['up-avatar']: typeof import('./comps/avatar')['Avatar']
['up-avatar-group']: typeof import('./comps/avatarGroup')['AvatarGroup']
['up-link']: typeof import('./comps/link')['Link']
['up-transition']: typeof import('./comps/transition')['Transition']
['up-status-bar']: typeof import('./comps/statusBar')['StatusBar']
['up-safe-bottom']: typeof import('./comps/safeBottom')['SafeBottom']
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/uni_modules/uview-plus/types/comps/button.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ declare interface ButtonProps {
* 按钮的大小
* @default "normal"
*/
size?: 'normal' | 'large' | 'mini'
size?: 'normal' | 'large' | 'small' | 'mini'
/**
* 按钮外观形状
* @default "square"
Expand Down
16 changes: 16 additions & 0 deletions src/uni_modules/uview-plus/types/comps/safeBottom.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { AllowedComponentProps, VNodeProps } from './_common'

declare interface SafeBottomProps {
/**
* 定义需要用到的外部样式
*/
customStyle?: unknown
}

declare interface _SafeBottom {
new (): {
$props: AllowedComponentProps & VNodeProps & SafeBottomProps
}
}

export declare const SafeBottom: _SafeBottom
22 changes: 22 additions & 0 deletions src/uni_modules/uview-plus/types/comps/statusBar.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { AllowedComponentProps, VNodeProps } from './_common'

declare interface StatusBarProps {

/**
* 背景色
*/
bgColor?: string

/**
* 定义需要用到的外部样式
*/
customStyle?: unknown
}

declare interface _StatusBar {
new (): {
$props: AllowedComponentProps & VNodeProps & StatusBarProps
}
}

export declare const StatusBar: _StatusBar

0 comments on commit b3ee18a

Please sign in to comment.