mirror of
https://gitee.com/ulthon/ulthon_information.git
synced 2026-07-08 07:42:47 +08:00
feat(phone-image): add cover_text migration and rewrite CSS to xiaohongshu classic style
T1: Add cover_text text field to post table for phone image layout cover text T2: Rewrite phone-image-templates.css - remove tpl-magazine/tpl-mixed, merge tpl-minimal into base styles, add content-flow/break-inserter/page-break-marker/page-alignment-toggle styles
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
use think\migration\Migrator;
|
||||
use think\migration\db\Column;
|
||||
|
||||
class AddCoverTextToPost extends Migrator
|
||||
{
|
||||
public function change()
|
||||
{
|
||||
$table = $this->table('post');
|
||||
$table->addColumn(Column::make('cover_text', 'text')->setComment('封面文案,用于手机图片排版封面展示')->setNull(true))
|
||||
->update();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user