🚚 rename data-sandbox-configuration to data-sandbox-cfg (#2382)

This commit is contained in:
Kuitos 2023-01-31 15:14:26 +08:00 committed by GitHub
parent 3bebb7ecc6
commit bd617f70ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -32,7 +32,7 @@ it('should wrap string with div', () => {
expect(ret).toBe(
// eslint-disable-next-line max-len
`<div id="__qiankun_microapp_wrapper_for_react_16__" data-name="react16" data-version="${version}" data-sandbox-configuration="{\"speedy\":true}"><qiankun-head></qiankun-head>${tpl}</div>`,
`<div id="__qiankun_microapp_wrapper_for_react_16__" data-name="react16" data-version="${version}" data-sandbox-cfg={\"speedy\":true}><qiankun-head></qiankun-head>${tpl}</div>`,
);
});

View File

@ -146,9 +146,9 @@ export function getDefaultTplWrapper(name: string, sandboxOpts: FrameworkConfigu
return `<div id="${getWrapperId(
name,
)}" data-name="${name}" data-version="${version}" data-sandbox-configuration="${JSON.stringify(
)}" data-name="${name}" data-version="${version}" data-sandbox-cfg=${JSON.stringify(
sandboxOpts,
)}">${tplWithSimulatedHead}</div>`;
)}>${tplWithSimulatedHead}</div>`;
};
}