初始化
缺陷:主题配色需要优化整体的同风格
This commit is contained in:
24
app/Models/business/WxTemplateModel.php
Normal file
24
app/Models/business/WxTemplateModel.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\business;
|
||||
|
||||
use App\BaseApp\BaseBusinessModel;
|
||||
|
||||
/**
|
||||
* 小程序装修模板(cc_wx_template)
|
||||
*
|
||||
* tokens 存设计令牌(配色/字号/圆角/阴影/间距/动效曲线与时长),
|
||||
* layout 存页面骨架(每个页面用哪种排布)。小程序不支持动态 <style>,
|
||||
* 所以令牌最终是注入到根节点的 CSS 变量,不能塞任意 CSS 文本进来。
|
||||
*/
|
||||
class WxTemplateModel extends BaseBusinessModel
|
||||
{
|
||||
protected $table = 'wx_template';
|
||||
|
||||
protected $guarded = [];
|
||||
|
||||
protected $casts = [
|
||||
'tokens' => 'array',
|
||||
'layout' => 'array',
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user