cinqcinqdev-seo 1.0.13 → 1.0.14
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/module.json
CHANGED
|
@@ -43,7 +43,7 @@ const resolveSection = (type) => {
|
|
|
43
43
|
<div v-if="selectedId === index" class="absolute top-0 left-0 bg-blue-500 text-white text-[10px] px-2 py-1 z-20 font-bold uppercase">
|
|
44
44
|
{{ block.type }}
|
|
45
45
|
</div>
|
|
46
|
-
<component :is="resolveSection(block.type)" v-bind="block.props" />
|
|
46
|
+
<component :is="resolveSection(block.type)" v-bind="block.props" data-section-root />
|
|
47
47
|
</div>
|
|
48
48
|
</template>
|
|
49
49
|
|
|
@@ -1264,6 +1264,7 @@ const _buildStyleCss = (s, id) => {
|
|
|
1264
1264
|
if (s.buttonBg) btn.push(`background-color:${s.buttonBg} !important`);
|
|
1265
1265
|
if (s.buttonColor) btn.push(`color:${s.buttonColor} !important`);
|
|
1266
1266
|
if (btn.length) parts.push(`${btnSel}{${btn.join(";")}}`);
|
|
1267
|
+
const srSel = `${id} [data-section-root]`;
|
|
1267
1268
|
const bl = [];
|
|
1268
1269
|
if (s.backgroundColor) bl.push(`background-color:${s.backgroundColor} !important`);
|
|
1269
1270
|
if (s.gradientFrom || s.gradientTo) {
|
|
@@ -1285,7 +1286,7 @@ const _buildStyleCss = (s, id) => {
|
|
|
1285
1286
|
if (s.borderColor) bl.push(`border-color:${s.borderColor}`);
|
|
1286
1287
|
if (s.borderStyle && s.borderStyle !== "none") bl.push(`border-style:${s.borderStyle}`);
|
|
1287
1288
|
if (s.borderRadius) bl.push(`border-radius:${s.borderRadius}px`);
|
|
1288
|
-
if (bl.length) parts.push(`${
|
|
1289
|
+
if (bl.length) parts.push(`${srSel}{${bl.join(";")}}`);
|
|
1289
1290
|
return parts.join("");
|
|
1290
1291
|
};
|
|
1291
1292
|
export const computeBlockCss = (props, blockId) => {
|