Skip to content
Open
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 package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"private": "true",
"name":"root",
"name": "root",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"changeset:init": "npx changeset init",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/components/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default class TinyPlayEvents {
const type = this.type(name)
if (type && typeof callback !== 'function') return console.error(`${name} 事件的回调函数必须是一个函数`)
if (!this.events[name]) this.events[name] = []
this.events[name].push(callback)
// this.events[name].push(callback)
// video 事件,直接绑定到 video 元素上
if (type === 'video') {
this.player.video.addEventListener(name, callback)
Expand Down
2 changes: 1 addition & 1 deletion packages/core/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"baseUrl": "./", // 解析非相对模块名的基准目录
"paths": {
"@/*": ["src/*"], // 路径映射
"tslib" : ["node_modules/tslib/tslib.d.ts"]
"tslib": ["node_modules/tslib/tslib.d.ts"]
}
// "allowImportingTsExtensions": true // 允许从没有指定扩展名的非JavaScript文件导入时,该文件将被当成TypeScript文件处理
// "noEmit": true, // 不生成输出文件
Expand Down
Loading