Skip to content

Commit

Permalink
docs: 调整注释
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengyanan18 committed Jan 14, 2025
1 parent fdcb4d0 commit ca46c74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/taro-react/src/props.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ function setEvent (dom: TaroElement, name: string, value: unknown, oldValue?: un
dom.addEventListener(eventName, value, process.env.TARO_PLATFORM !== PLATFORM_TYPE.HARMONY ? { isCapture, sideEffect: false } : undefined)
} else {
dom.addEventListener(eventName, value, process.env.TARO_PLATFORM !== PLATFORM_TYPE.HARMONY ? isCapture : undefined)
// 京东小程序transform模式: 把事件绑定写到data里
if (process.env.JD_RENDER_TYPE === 'transform') {
// 京东小程序transform模式: 把事件绑定写到data里
dom.setAttribute(`bind${eventName}`, 'eh')
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/taro-runtime/src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ declare let jd: any
export function getComponentsAlias () {
if (!componentsAlias) {
componentsAlias = _getComponentsAlias(internalComponents)
// 京东小程序transform模式, 把mapping传入基础库
if (process.env.JD_RENDER_TYPE === 'transform') {
// 京东小程序transform模式, 把mapping传入基础库
jd && jd.setMapping && jd.setMapping(componentsAlias)
}
}
Expand Down

0 comments on commit ca46c74

Please sign in to comment.