feat(stage,runtime): 去掉runtime getSnapElements 定义

This commit is contained in:
roymondchen 2022-08-03 14:59:30 +08:00 committed by jia000
parent f18e7b275d
commit e5f0506a00
3 changed files with 0 additions and 9 deletions

View File

@ -112,7 +112,6 @@ export interface RemoveData {
export interface Runtime {
getApp?: () => Core;
beforeSelect?: (el: HTMLElement) => Promise<boolean> | boolean;
getSnapElements?: (el?: HTMLElement) => HTMLElement[];
updateRootConfig?: (config: MApp) => void;
updatePageId?: (id: Id) => void;
select?: (id: Id) => Promise<HTMLElement> | HTMLElement;

View File

@ -56,10 +56,6 @@ export default defineComponent({
app?.setPage(id);
},
getSnapElements() {
return Array.from(document.querySelectorAll<HTMLElement>('[class*=magic-ui][id]'));
},
select(id: Id) {
console.log('select config', id);
selectedId.value = id;

View File

@ -56,10 +56,6 @@ export default defineComponent({
app?.setPage(id);
},
getSnapElements() {
return Array.from(document.querySelectorAll<HTMLElement>('[class*=magic-ui][id]'));
},
select(id: Id) {
console.log('select config', id);
selectedId.value = id;