Improve canvas layers, heading removal and component previews in 1.5.3
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
<?php
|
||||
|
||||
use App\Content\BlockTemplates;
|
||||
use App\Content\View;
|
||||
|
||||
$e = View::escape(...);
|
||||
?>
|
||||
<details class="studio-layers" id="blocks" open>
|
||||
<summary>页面图层</summary>
|
||||
<?php foreach (['target', 'up', 'down', 'delete', 'code', 'settings'] as $icon): ?>
|
||||
<?php foreach (['target', 'up', 'down', 'copy', 'delete', 'anchor', 'code', 'settings'] as $icon): ?>
|
||||
<template data-layer-icon="<?= $icon ?>"><?= View::fragment('studio-icon', compact('icon')) ?></template>
|
||||
<?php endforeach ?>
|
||||
<p class="field-note" data-layers-empty<?= $page['sections'] ? ' hidden' : '' ?>>添加组件后,可展开标签,拖拽或用箭头调整顺序。</p>
|
||||
@@ -16,7 +17,7 @@ $e = View::escape(...);
|
||||
<li>
|
||||
<div>
|
||||
<div class="studio-component-label">
|
||||
<code title="<?= $e($item['title']) ?>"><?= $fixedSlot ? '<div>' : '<section>' ?></code>
|
||||
<span title="<?= $e($item['title']) ?>"><?= $e(BlockTemplates::sectionType($item, json_decode($item['presentation'] ?? '{}', true, flags: JSON_THROW_ON_ERROR))) ?></span>
|
||||
<?php if (!empty($item['feed'])): ?><span class="studio-dynamic-badge">动态</span><?php endif ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user