Notebook
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

40 lines
764 B

<?php
use Plugins\Notebook\Model\Notebook;
use Sc\Util\HtmlStructure\Html\Html;
/**
* @var Notebook $notebook
*/
Html::create($notebook?->title ?: '不存在的页面');
if (!$notebook) {
Html::loadThemeResource('ElementUI');
}
Html::css()->addCss(<<<CSS
#app {
width: 1100px;
margin: auto;
border-left: 1px #ddd solid;
border-right: 1px #ddd solid;
padding: 0 20px;
box-sizing: border-box;
background-color: white;
overflow: auto;
min-height: 100vh;
}
body{
background-color: #F2F3F5;
margin: 0 !important;
}
table,table tr th, table tr td {
border:1px solid #ddd;
}
table {
border-collapse: collapse;
padding:2px;
}
CSS);
return $notebook?->content ?: ' <el-empty description="Not Found" />';