Skip to content

Commit

Permalink
fix(mp): typo
Browse files Browse the repository at this point in the history
  • Loading branch information
zhetengbiji committed Mar 2, 2023
1 parent 850f42d commit a7e986d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/uni-template-compiler/lib/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ module.exports = {
ATTR_DATA_EVENT_PARAMS: 'data-event-params',
ATTR_DATA_EVENT_LIST: 'data-event-list',
ATTR_SLOT_ORIGIN: 'slot-origin',
ATTE_DATA_CUSTOM_HIDDEN: 'data-custom-hidden',
ATTR_DATA_CUSTOM_HIDDEN: 'data-custom-hidden',
VIRTUAL_HOST_STYLE: 'virtualHostStyle',
VIRTUAL_HOST_CLASS: 'virtualHostClass',
INTERNAL_GET_ORIG,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const {
ATTR_DATA_COM_TYPE,
ATTR_DATA_EVENT_LIST,
ATTR_DATA_EVENT_PARAMS,
ATTE_DATA_CUSTOM_HIDDEN,
ATTR_DATA_CUSTOM_HIDDEN,
INTERNAL_EVENT_WRAP
} = require('../../../constants')

Expand Down Expand Up @@ -98,7 +98,7 @@ module.exports = function traverseData (path, state, tagName) {
ATTR_DATA_COM_TYPE,
ATTR_DATA_EVENT_PARAMS,
ATTR_DATA_EVENT_LIST,
ATTE_DATA_CUSTOM_HIDDEN,
ATTR_DATA_CUSTOM_HIDDEN,
'vue-id'
]
for (let a = orgOptionsProps.length - 1; a >= 0; a--) {
Expand Down
4 changes: 2 additions & 2 deletions packages/uni-template-compiler/lib/template/traverse.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const {
} = require('../util')

const {
ATTE_DATA_CUSTOM_HIDDEN,
ATTR_DATA_CUSTOM_HIDDEN,
ATTR_SLOT_ORIGIN
} = require('../constants')

Expand Down Expand Up @@ -235,7 +235,7 @@ function traverseDataNode (dataNode, state, node) {
const platforms = ['mp-weixin', 'mp-qq', 'mp-jd', 'mp-xhs', 'mp-toutiao', 'mp-lark']
if (isComponent(node.type) && platforms.includes(platform)) {
// 字节跳动|飞书小程序自定义属性不会反应在DOM上,只能使用事件格式
key = `${platform === 'mp-toutiao' || platform === 'mp-lark' ? 'bind:-' : ''}${ATTE_DATA_CUSTOM_HIDDEN}`
key = `${platform === 'mp-toutiao' || platform === 'mp-lark' ? 'bind:-' : ''}${ATTR_DATA_CUSTOM_HIDDEN}`
} else {
key = 'hidden'
}
Expand Down

0 comments on commit a7e986d

Please sign in to comment.