🚚 rename data-sandbox-configuration to data-sandbox-cfg (#2382)
This commit is contained in:
parent
3bebb7ecc6
commit
bd617f70ac
|
|
@ -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>`,
|
||||
);
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -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>`;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user