Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(types): 修复类型及属性名错误的问题 #12498

Merged
merged 3 commits into from
Sep 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/taro-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"jquery": "^3.4.1",
"karmatic": "^2.1.0",
"lodash": "^4.17.21",
"miniapp-types": "1.1.6",
"miniapp-types": "1.1.8",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"simulant": "^0.2.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/taro-components/types/Canvas.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
} from './common'
interface CanvasProps extends StandardProps<any, CanvasTouchEvent> {
/** 指定 canvas 类型,支持 2d 和 webgl
* @supported weapp, alipay, tt, jd
* @supported weapp, alipay, tt
*/
type?: string

Expand Down
6 changes: 3 additions & 3 deletions packages/taro-components/types/Input.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ interface InputProps extends StandardProps, FormItemProps {

/** 指定 placeholder 的样式类
* @default "input-placeholder"
* @supported weapp, alipay, swan, qq, jd
* @supported weapp, alipay, swan, tt, qq, jd
*/
placeholderClass?: string

Expand Down Expand Up @@ -75,7 +75,7 @@ interface InputProps extends StandardProps, FormItemProps {

/** 点击键盘右下角按钮时是否保持键盘不收起
* @default false
* @supported weapp, alipay, swan, qq, jd
* @supported weapp, alipay, swan, tt, qq, jd
*/
confirmHold?: boolean

Expand Down Expand Up @@ -104,7 +104,7 @@ interface InputProps extends StandardProps, FormItemProps {

/** focus 时,点击页面的时候不收起键盘
* @default false
* @supported weapp
* @supported weapp, tt
*/
holdKeyboard?: boolean

Expand Down
7 changes: 1 addition & 6 deletions packages/taro-components/types/Progress.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,10 @@ interface ProgressProps extends StandardProps {
duration?: number

/** 动画完成事件
* @supported h5
* @supported weapp, qq, jd, h5
*/
onActiveEnd?: CommonEventFunction

/** 动画完成事件
* @supported weapp, qq, jd
*/
onActivEend?: CommonEventFunction

/** 无障碍访问,(属性)元素的额外描述
* @supported qq
*/
Expand Down
18 changes: 14 additions & 4 deletions packages/taro-components/types/Video.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -509,22 +509,32 @@ interface VideoProps extends StandardProps {
/** 否
* @supported jd
*/
onLoadedData?: string
onLoadedData?: CommonEventFunction

/** 否
* @supported jd
*/
onLoadStart?: string
onLoadStart?: CommonEventFunction

/** 否
* @supported jd
*/
onSeeked?: string
onSeeked?: CommonEventFunction

/** 否
* @supported jd
*/
onSeeking?: string
onSeeking?: CommonEventFunction

/** 指定码率上界,单位为比特每秒
* @supported weapp
*/
preferredPeakBitRate?: number

/** 贴片广告加载成功时触发,event.detail = { adType: 'preRollAd' | 'postRollAd' }
* @supported tt
*/
onAdLoad?: CommonEventFunction
}
declare namespace VideoProps {
/** direction 的合法值 */
Expand Down
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.