chenlong 2 years ago
parent
commit
46932afd96
  1. 12
      View/Admin/Notebook/share.sc.php

12
View/Admin/Notebook/share.sc.php

@ -1,6 +1,7 @@
<?php
use Plugins\Notebook\Model\Notebook;
use Sc\Util\HtmlElement\El;
use Sc\Util\HtmlStructure\Html\Html;
/**
@ -10,6 +11,8 @@ use Sc\Util\HtmlStructure\Html\Html;
Html::create($notebook?->title ?: '不存在的页面');
if (!$notebook) {
Html::loadThemeResource('ElementUI');
}else{
Html::css()->load('/froala/froala_editor.pkgd.min.css');
}
Html::css()->addCss(<<<CSS
@ -18,15 +21,16 @@ Html::css()->addCss(<<<CSS
margin: auto;
border-left: 1px #ddd solid;
border-right: 1px #ddd solid;
padding: 0 20px;
padding: 20px;
box-sizing: border-box;
background-color: white;
overflow: auto;
min-height: 100vh;
height: 100vh;
}
body{
background-color: #F2F3F5;
margin: 0 !important;
font-size: 14px;
}
table,table tr th, table tr td {
border:1px solid #ddd;
@ -37,4 +41,6 @@ table {
}
CSS);
return $notebook?->content ?: ' <el-empty description="Not Found" />';
return $notebook?->content
? El::double('div')->addClass('fr-element fr-view')->append($notebook->content)
: ' <el-empty description="Not Found" />';

Loading…
Cancel
Save