diff --git a/packages/taro-components/package.json b/packages/taro-components/package.json index 550c41eb912e..65a8d5cf0c59 100644 --- a/packages/taro-components/package.json +++ b/packages/taro-components/package.json @@ -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", diff --git a/packages/taro-components/types/Canvas.d.ts b/packages/taro-components/types/Canvas.d.ts index 6cf02d4c016b..4a2f8c5071f9 100644 --- a/packages/taro-components/types/Canvas.d.ts +++ b/packages/taro-components/types/Canvas.d.ts @@ -7,7 +7,7 @@ import { } from './common' interface CanvasProps extends StandardProps { /** 指定 canvas 类型,支持 2d 和 webgl - * @supported weapp, alipay, tt, jd + * @supported weapp, alipay, tt */ type?: string diff --git a/packages/taro-components/types/Input.d.ts b/packages/taro-components/types/Input.d.ts index 241507a13ad6..0968891ac866 100644 --- a/packages/taro-components/types/Input.d.ts +++ b/packages/taro-components/types/Input.d.ts @@ -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 @@ -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 @@ -104,7 +104,7 @@ interface InputProps extends StandardProps, FormItemProps { /** focus 时,点击页面的时候不收起键盘 * @default false - * @supported weapp + * @supported weapp, tt */ holdKeyboard?: boolean diff --git a/packages/taro-components/types/Progress.d.ts b/packages/taro-components/types/Progress.d.ts index 1987d4d391d1..21bb44e70b0e 100644 --- a/packages/taro-components/types/Progress.d.ts +++ b/packages/taro-components/types/Progress.d.ts @@ -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 */ diff --git a/packages/taro-components/types/Video.d.ts b/packages/taro-components/types/Video.d.ts index 0ef2db053125..961e59c86d47 100644 --- a/packages/taro-components/types/Video.d.ts +++ b/packages/taro-components/types/Video.d.ts @@ -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 的合法值 */ diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c1c0ffa3913d..ba85c5cc1e0b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -567,7 +567,7 @@ importers: 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 resolve-pathname: ^3.0.0 @@ -596,7 +596,7 @@ importers: jquery: registry.npmjs.org/jquery/3.6.0 karmatic: registry.npmjs.org/karmatic/2.1.0_webpack@4.46.0 lodash: registry.npmjs.org/lodash/4.17.21 - miniapp-types: registry.npmjs.org/miniapp-types/1.1.6 + miniapp-types: registry.npmjs.org/miniapp-types/1.1.8 react: registry.npmjs.org/react/17.0.2 react-dom: registry.npmjs.org/react-dom/17.0.2_react@17.0.2 simulant: registry.npmjs.org/simulant/0.2.2 @@ -26246,10 +26246,10 @@ packages: webpack: registry.npmjs.org/webpack/5.69.0_esbuild@0.14.47 dev: false - registry.npmjs.org/miniapp-types/1.1.6: - resolution: {integrity: sha512-H2Z2DfHT07X8cG9DBfvbRpExMinme8dCDGouDBsnmIH7jtarBQ6iF4O/AOXfpuncGIWPu1BkG1EYf/Gq8coMOw==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/miniapp-types/-/miniapp-types-1.1.6.tgz} + registry.npmjs.org/miniapp-types/1.1.8: + resolution: {integrity: sha512-4KcK4h8ascnnB4pocp1AlEK6nqeX9TzRoPL81s37p6J3LYUZedDGYFwAmSjVDD6/1qTNV7Nf4lFlrqsnmGWJNA==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/miniapp-types/-/miniapp-types-1.1.8.tgz} name: miniapp-types - version: 1.1.6 + version: 1.1.8 dev: true registry.npmjs.org/minimalistic-assert/1.0.1: