mirror of
https://gitee.com/ulthon/ulthon_information.git
synced 2026-07-08 00:52:47 +08:00
feat(output_view): 导出页面重构 - 长图卡片化展示、缩略图增大、预览优化、纯图片页原图保存
- output_view.html: 长图改为固定高度卡片(70px),Blob URL查看,缩略图minmax(280px,1fr), 竖图预览优先填充视口高度,下载功能完整保留 - phone-image.js: renderPureImageToCanvas()使用naturalWidth/naturalHeight保持原图分辨率, 新增长图生成和保存功能 - Post.php: 新增outputView()方法提供导出页面渲染数据 - PhoneImage.php: 图片数据改为DB存储,新增saveLongImage()方法 - phone_image.html: 添加导出页面入口按钮 - 新增数据库迁移: post_output_file表添加image_data字段
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
use think\migration\Migrator;
|
||||
use think\migration\db\Column;
|
||||
|
||||
class AddImageDataToPostOutputFile extends Migrator
|
||||
{
|
||||
public function change()
|
||||
{
|
||||
$table = $this->table('post_output_file');
|
||||
$table->addColumn(Column::make('image_data', 'text', ['limit' => \Phinx\Db\Adapter\MysqlAdapter::TEXT_LONG])->setComment('base64图片数据')->setNull(true));
|
||||
$table->update();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user