@mybricks/to-code-taro 1.1.6 → 1.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/generate/utils/appConfig.js +1 -2
- package/dist/cjs/handleSlot.js +1 -1
- package/dist/cjs/taro-template.json +1061 -1057
- package/dist/cjs/utils/logic/handleProcess.js +5 -1
- package/dist/cjs/utils/templates/index.js +1 -1
- package/dist/cjs/utils/templates/renderManager.js +0 -4
- package/dist/cjs/utils/templates/scene.js +4 -4
- package/dist/esm/generate/utils/appConfig.js +1 -2
- package/dist/esm/handleSlot.js +1 -1
- package/dist/esm/taro-template.json +1061 -1057
- package/dist/esm/utils/logic/handleProcess.js +7 -0
- package/dist/esm/utils/templates/index.js +1 -1
- package/dist/esm/utils/templates/renderManager.js +0 -2
- package/dist/esm/utils/templates/scene.js +2 -2
- package/package.json +1 -1
|
@@ -44,11 +44,10 @@ function updateAppConfig(appConfigFile, normalItems, items) {
|
|
|
44
44
|
if (entryPagePath) {
|
|
45
45
|
content.entryPagePath = entryPagePath;
|
|
46
46
|
}
|
|
47
|
-
content.window = content.window || {};
|
|
48
47
|
const tabBarConfigItem = items.find((item) => item.type === "tabBarConfig");
|
|
49
48
|
if (tabBarConfigItem == null ? void 0 : tabBarConfigItem.content) {
|
|
50
49
|
const tabBar = (0, import_fileNode.parseLooseObject)(`{${tabBarConfigItem.content}}`);
|
|
51
|
-
Object.assign(content
|
|
50
|
+
Object.assign(content, tabBar);
|
|
52
51
|
}
|
|
53
52
|
appConfigFile.content = `export default defineAppConfig(${JSON.stringify(content, null, 2)})`;
|
|
54
53
|
}
|
package/dist/cjs/handleSlot.js
CHANGED
|
@@ -114,7 +114,7 @@ var generateSlotUi = (ui, props, childrenUi, childrenResults, config) => {
|
|
|
114
114
|
const styleCode = JSON.stringify((0, import_utils.convertRootStyle)({ ...mergedStyle, layout, ...layoutAdjustment }));
|
|
115
115
|
const rootClassName = (0, import_utils.getRootComponentClassName)(config.getCurrentScene(), config.checkIsRoot());
|
|
116
116
|
const parentComId = config == null ? void 0 : config.parentComId;
|
|
117
|
-
const slotMarkClass = parentComId ? `slot-${parentComId}` : "";
|
|
117
|
+
const slotMarkClass = parentComId ? `mybricks_slot slot-${parentComId}` : "";
|
|
118
118
|
const classNameStr = [rootClassName, slotMarkClass].filter(Boolean).join(" ");
|
|
119
119
|
const classNameAttr = classNameStr ? ` className='${classNameStr}'` : "";
|
|
120
120
|
const styleAttr = slotMarkClass ? `style={{...params.style || {}, ...${styleCode}}}` : `style={${styleCode}}`;
|