|
@@ -1,98 +1,132 @@
|
|
|
<?php
|
|
|
-# 自定义页面,还缺搜索、分页、按钮等,这里也支持定义'diy' => 'manage/test.diy',参考view
|
|
|
+# 自定义页面,还缺分页、按钮等,这里也支持定义'diy' => 'manage/test.diy',参考view
|
|
|
|
|
|
-# type:table、chart、stat、trend、data、desc、info、timeline、progress、image、link、tag、text、button
|
|
|
$config['layout'] = [
|
|
|
[
|
|
|
- 'data1' => 6,
|
|
|
+ 'search' => 24,
|
|
|
+ ],
|
|
|
+ [
|
|
|
+ 'data1' => 6,//这里也支持不同屏幕的,用数组[xs,sm,md,lg,xl]
|
|
|
'data2' => 6,
|
|
|
'data3' => 6,
|
|
|
'data4' => 6,
|
|
|
],
|
|
|
[
|
|
|
- 'name' => 12,//这里也支持不同屏幕的,用数组[xs,sm,md,lg,xl]
|
|
|
- 'test' => 12,
|
|
|
+ 'data5' => 6,
|
|
|
+ 'data6' => 6,
|
|
|
+ 'data7' => 6,
|
|
|
+ 'data8' => 6,
|
|
|
+ ],
|
|
|
+ [
|
|
|
+ 'data9' => 24,
|
|
|
],
|
|
|
[
|
|
|
- 'chart' => 8,
|
|
|
- 'stat' => 8,
|
|
|
- 'timeline' => 8,
|
|
|
+ 'data10' => 4,
|
|
|
+ 'data11' => 4,
|
|
|
+ 'data12' => 4,
|
|
|
+ 'data13' => 4,
|
|
|
+ 'data14' => 4,
|
|
|
+ 'data15' => 4,
|
|
|
],
|
|
|
];
|
|
|
|
|
|
-$config['name'] = [
|
|
|
+# 搜索比较特殊,需要定义source,会自动生成搜索项
|
|
|
+$config['source'] = 'manage/admin';
|
|
|
+$config['search'] = [
|
|
|
+ 'cdate',
|
|
|
+];
|
|
|
+# 数据来源
|
|
|
+$config['data'] = 'manage/test.getDiy';
|
|
|
|
|
|
- # 类型
|
|
|
- 'type' => 'table',
|
|
|
|
|
|
- # 比view页面多出了header和footer
|
|
|
- # 头部信息
|
|
|
- 'header' => [
|
|
|
- 'left' => '左侧标题',
|
|
|
- 'left_icon' => 'alert-line',
|
|
|
- 'left_tips' => '提示',
|
|
|
- 'right' => '右侧标题',
|
|
|
- # 右侧样式
|
|
|
- 'right_type' => 'success',
|
|
|
+$config['data1'] = [
|
|
|
+
|
|
|
+ # 趋势
|
|
|
+ 'type' => 'trend',
|
|
|
+ 'name' => '趋势数据',
|
|
|
+ 'icon' => 'album-line',
|
|
|
+ 'number' => [
|
|
|
+ # 展示的值
|
|
|
+ 'value' => 1000,
|
|
|
+ # 从零开始
|
|
|
+ 'start' => 0,
|
|
|
+ # 前缀
|
|
|
+ 'prefix' => '¥',
|
|
|
+ # 后缀
|
|
|
+ 'suffix' => '',
|
|
|
+ # 间隔符
|
|
|
+ 'separator' => '',
|
|
|
+ # 时间间隔
|
|
|
+ 'duration' => 8000,
|
|
|
],
|
|
|
-
|
|
|
- # 尾部信息,同头部信息
|
|
|
- 'footer' => [
|
|
|
- 'left' => '左侧',
|
|
|
- 'right' => '右侧',
|
|
|
- # 右侧样式
|
|
|
+ 'bottom' => [
|
|
|
+ 'left' => '自上周以来',
|
|
|
+ 'right' => '10%',
|
|
|
+ 'right_icon' => 'arrow-up-line',
|
|
|
'right_type' => 'success',
|
|
|
],
|
|
|
+];
|
|
|
|
|
|
- # 中间内容设置 这里和manage/test.view一致
|
|
|
- 'name' => '',
|
|
|
- 'border' => false,
|
|
|
- 'height' => 'auto',
|
|
|
+$config['data2'] = [
|
|
|
|
|
|
- 'head' => array
|
|
|
- (
|
|
|
- [
|
|
|
- 'key' => 'name',
|
|
|
- 'name' => '姓名',
|
|
|
- 'fixed' => 'fixed',
|
|
|
- ],
|
|
|
- [
|
|
|
- 'key' => 'desc',
|
|
|
- 'name' => '描述',
|
|
|
- 'fixed' => 'fixed',
|
|
|
- ],
|
|
|
- ),
|
|
|
- 'button' => array
|
|
|
- (
|
|
|
- array
|
|
|
- (
|
|
|
- 'name' => '编辑',
|
|
|
- 'type' => 'fastedit',
|
|
|
- 'load' => 'platform/role',
|
|
|
- ),
|
|
|
- ),
|
|
|
- 'body' => array
|
|
|
- (
|
|
|
- [
|
|
|
- 'id' => 1,
|
|
|
- 'name' => 'test',
|
|
|
- 'desc' => 'dfdf',
|
|
|
- ],
|
|
|
- ),
|
|
|
+ # 数据
|
|
|
+ 'type' => 'data',
|
|
|
+ 'name' => '普通数据',
|
|
|
+ 'icon' => 'album-line',
|
|
|
+ 'number' => [
|
|
|
+ # 展示的值
|
|
|
+ 'value' => 1000,
|
|
|
+ # 从零开始
|
|
|
+ 'start' => 0,
|
|
|
+ # 前缀
|
|
|
+ 'prefix' => '¥',
|
|
|
+ # 后缀
|
|
|
+ 'suffix' => '',
|
|
|
+ # 间隔符
|
|
|
+ 'separator' => '',
|
|
|
+ # 时间间隔
|
|
|
+ 'duration' => 8000,
|
|
|
+ ],
|
|
|
+ # 渐变背景颜色 浅色
|
|
|
+ 'bg1' => '#e4ecff',
|
|
|
+ # 渐变背景颜色 深色
|
|
|
+ 'bg2' => '#4d7cfe',
|
|
|
];
|
|
|
|
|
|
-$config['test'] = [
|
|
|
+$config['data3'] = [
|
|
|
|
|
|
- # 类型
|
|
|
- 'type' => 'table',
|
|
|
+ 'type' => 'list',
|
|
|
+ 'name' => '列表',
|
|
|
+ 'content' => [
|
|
|
+ ['name'=>'标题', 'content'=>'内容'],
|
|
|
+ ['name'=>'标题', 'content'=>'内容'],
|
|
|
+ ['name'=>'标题', 'content'=>'内容'],
|
|
|
+ ],
|
|
|
+];
|
|
|
|
|
|
+$config['data4'] = [
|
|
|
+
|
|
|
+ 'type' => 'info',
|
|
|
+ 'name' => '信息',
|
|
|
+ 'info' => '描述',
|
|
|
+ 'content' => [
|
|
|
+ ['name'=>'标题', 'content'=>'内容'],
|
|
|
+ ['name'=>'标题', 'content'=>'内容'],
|
|
|
+ ['name'=>'标题', 'content'=>'内容'],
|
|
|
+ ],
|
|
|
+];
|
|
|
+
|
|
|
+$config['data5'] = [
|
|
|
+
|
|
|
+ 'type' => 'table',
|
|
|
+ 'name' => '表格',
|
|
|
# 比view页面多出了header和footer
|
|
|
# 头部信息
|
|
|
'header' => [
|
|
|
'left' => '左侧标题',
|
|
|
'left_icon' => 'alert-line',
|
|
|
'left_tips' => '提示',
|
|
|
- 'right' => '当前版本:V16.6.0 部署时间:2025-06-13 17:34:17',
|
|
|
+ 'right' => '右侧标题',
|
|
|
# 右侧样式
|
|
|
'right_type' => 'success',
|
|
|
],
|
|
@@ -105,8 +139,7 @@ $config['test'] = [
|
|
|
'right_type' => 'success',
|
|
|
],
|
|
|
|
|
|
- # 中间内容设置 这里和manage/test.view一致
|
|
|
- 'name' => '',
|
|
|
+ # 中间内容设置
|
|
|
'border' => false,
|
|
|
'height' => 'auto',
|
|
|
|
|
@@ -128,32 +161,22 @@ $config['test'] = [
|
|
|
array
|
|
|
(
|
|
|
'name' => '编辑',
|
|
|
- 'type' => 'fastedit',
|
|
|
- 'load' => 'platform/role',
|
|
|
+ 'type' => 'fastadd',
|
|
|
+ 'path' => 'source_manage/help',
|
|
|
),
|
|
|
),
|
|
|
- 'body' => array
|
|
|
- (
|
|
|
- [
|
|
|
- 'id' => 1,
|
|
|
- 'name' => 'test',
|
|
|
- 'desc' => 'dfdf',
|
|
|
- ],
|
|
|
- ),
|
|
|
];
|
|
|
|
|
|
-$config['stat'] = [
|
|
|
+$config['data6'] = [
|
|
|
|
|
|
# 类型
|
|
|
'type' => 'stat',
|
|
|
-
|
|
|
+ 'name' => '数据展示',
|
|
|
# 比view页面多出了header和footer
|
|
|
# 头部信息
|
|
|
'header' => [
|
|
|
'left' => '趋势',
|
|
|
],
|
|
|
-
|
|
|
- 'name' => '统计',
|
|
|
'content' => array
|
|
|
(
|
|
|
[
|
|
@@ -180,18 +203,14 @@ $config['stat'] = [
|
|
|
),
|
|
|
];
|
|
|
|
|
|
-$config['timeline'] = [
|
|
|
-
|
|
|
- # 类型
|
|
|
- 'type' => 'stat',
|
|
|
-
|
|
|
+$config['data7'] = [
|
|
|
# 比view页面多出了header和footer
|
|
|
# 头部信息
|
|
|
'header' => [
|
|
|
- 'left' => '趋势',
|
|
|
+ 'left' => '时间线',
|
|
|
],
|
|
|
|
|
|
- 'name' => '统计',
|
|
|
+ 'name' => '时间线',
|
|
|
'type' => 'timeline',
|
|
|
'content' => array
|
|
|
(
|
|
@@ -217,15 +236,16 @@ $config['timeline'] = [
|
|
|
],
|
|
|
),
|
|
|
];
|
|
|
-$config['chart'] = [
|
|
|
+$config['data8'] = [
|
|
|
|
|
|
# 类型
|
|
|
'type' => 'chart',
|
|
|
+ 'name' => '图表',
|
|
|
|
|
|
# 比view页面多出了header和footer
|
|
|
# 头部信息
|
|
|
'header' => [
|
|
|
- 'left' => '趋势',
|
|
|
+ 'left' => '趋势2',
|
|
|
],
|
|
|
|
|
|
# 中间内容设置 这里和manage/test.view一致
|
|
@@ -266,57 +286,61 @@ $config['chart'] = [
|
|
|
]
|
|
|
];
|
|
|
|
|
|
-$config['data1'] = [
|
|
|
+$config['data9'] = [
|
|
|
+ 'type' => 'tip',
|
|
|
+ 'name' => '提示',
|
|
|
+ 'content' => '以下为显示内容',
|
|
|
+];
|
|
|
|
|
|
- # 趋势
|
|
|
- 'type' => 'trend',
|
|
|
- 'name' => '总销量',
|
|
|
- 'icon' => 'album-line',
|
|
|
- 'number' => [
|
|
|
- # 展示的值
|
|
|
- 'value' => 1000,
|
|
|
- # 从零开始
|
|
|
- 'start' => 0,
|
|
|
- # 前缀
|
|
|
- 'prefix' => '¥',
|
|
|
- # 后缀
|
|
|
- 'suffix' => '',
|
|
|
- # 间隔符
|
|
|
- 'separator' => '',
|
|
|
- # 时间间隔
|
|
|
- 'duration' => 8000,
|
|
|
- ],
|
|
|
- 'bottom' => [
|
|
|
- 'left' => '自上周以来',
|
|
|
- 'right' => '10%',
|
|
|
- 'right_icon' => 'arrow-up-line',
|
|
|
- 'right_type' => 'success',
|
|
|
- ],
|
|
|
+$config['data10'] = [
|
|
|
+ 'type' => 'text',
|
|
|
+ 'name' => '文本',
|
|
|
+ 'content' => '文本内容',
|
|
|
+ # 样式primary success warning danger info exception
|
|
|
+ 'style' => 'primary',
|
|
|
];
|
|
|
|
|
|
-$config['data2'] = [
|
|
|
+$config['data11'] = [
|
|
|
+ 'type' => 'tag',
|
|
|
+ 'name' => '标签',
|
|
|
+ 'content' => '标签内容',
|
|
|
+ 'style' => 'warning',
|
|
|
+];
|
|
|
|
|
|
- # 数据
|
|
|
- 'type' => 'data',
|
|
|
- 'name' => '订单销售额',
|
|
|
- 'icon' => 'album-line',
|
|
|
- 'number' => [
|
|
|
- # 展示的值
|
|
|
- 'value' => 1000,
|
|
|
- # 从零开始
|
|
|
- 'start' => 0,
|
|
|
- # 前缀
|
|
|
- 'prefix' => '¥',
|
|
|
- # 后缀
|
|
|
- 'suffix' => '',
|
|
|
- # 间隔符
|
|
|
- 'separator' => '',
|
|
|
- # 时间间隔
|
|
|
- 'duration' => 8000,
|
|
|
- ],
|
|
|
- # 渐变背景颜色 浅色
|
|
|
- 'bg1' => '#e4ecff',
|
|
|
- # 渐变背景颜色 深色
|
|
|
- 'bg2' => '#4d7cfe',
|
|
|
+$config['data12'] = [
|
|
|
+ 'type' => 'link',
|
|
|
+ 'name' => '链接',
|
|
|
+ 'content' => '链接内容',
|
|
|
+ 'link' => '',
|
|
|
+];
|
|
|
+
|
|
|
+$config['data13'] = [
|
|
|
+ 'type' => 'button',
|
|
|
+ 'name' => '按钮',
|
|
|
+ 'icon' => '',
|
|
|
];
|
|
|
+
|
|
|
+$config['data14'] = [
|
|
|
+ 'type' => 'image',
|
|
|
+ 'name' => '图片',
|
|
|
+ 'content' => 'https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg',
|
|
|
+ # 'fill', 'contain', 'cover', 'none', 'scale-down'
|
|
|
+ 'fit' => 'fill',
|
|
|
+];
|
|
|
+
|
|
|
+$config['data15'] = [
|
|
|
+ 'name' => '进度条',
|
|
|
+ 'type' => 'progress',
|
|
|
+ 'content' => 50,
|
|
|
+ 'style' => 'exception',
|
|
|
+ 'width' => 20,
|
|
|
+ 'inside' => true,
|
|
|
+ # line dashboard 仪表盘 circle 圆形
|
|
|
+ 'show' => 'line',
|
|
|
+ # 开启条纹
|
|
|
+ 'striped' => true,
|
|
|
+ # 开启动画
|
|
|
+ 'indeterminate' => true,
|
|
|
+];
|
|
|
+
|
|
|
return $config;
|