diff --git a/packages/gallery/src/interface/sectionView.js b/packages/gallery/src/interface/sectionView.js index e08a987..958eafe 100644 --- a/packages/gallery/src/interface/sectionView.js +++ b/packages/gallery/src/interface/sectionView.js @@ -92,7 +92,7 @@ export function SectionView(vm, params, key) { onmouseenter: [patchRefStyle, sectionSelectButtonRef, 'opacity: 0.7;'], onmouseleave: [patchRefStyle, sectionSelectButtonRef, 'opacity: 0;'], _data: { - type: 'section', + $$type: 'section', sectionImageIds: photos.map(extractID) } }, diff --git a/packages/gallery/src/utils/domvm.js b/packages/gallery/src/utils/domvm.js index 66ec376..1a23864 100644 --- a/packages/gallery/src/utils/domvm.js +++ b/packages/gallery/src/utils/domvm.js @@ -54,7 +54,7 @@ export function changeElementStateMap(refStateMap, evt, node, vm) { export function nodeParentWithType(node, type) { let parentNode = node; - while (parentNode && (!parentNode.data || parentNode.data.type !== type)) { + while (parentNode && (!parentNode.data || parentNode.data.$$type !== type)) { parentNode = parentNode.parent; } if (!parentNode) {