286 lines
12 KiB
PHP
286 lines
12 KiB
PHP
|
<?php
|
|||
|
// +----------------------------------------------------------------------
|
|||
|
// | Niucloud-admin 企业快速开发的多应用管理平台
|
|||
|
// +----------------------------------------------------------------------
|
|||
|
// | 官方网址:https://www.niucloud.com
|
|||
|
// +----------------------------------------------------------------------
|
|||
|
// | niucloud团队 版权所有 开源版本可自由商用
|
|||
|
// +----------------------------------------------------------------------
|
|||
|
// | Author: Niucloud Team
|
|||
|
// +----------------------------------------------------------------------
|
|||
|
|
|||
|
namespace app\dict\diy;
|
|||
|
|
|||
|
use core\dict\DictLoader;
|
|||
|
|
|||
|
/**
|
|||
|
* 基础组件
|
|||
|
* Class ComponentDict
|
|||
|
* @package app\dict\diy
|
|||
|
*/
|
|||
|
class ComponentDict
|
|||
|
{
|
|||
|
|
|||
|
public static function getComponent()
|
|||
|
{
|
|||
|
$system_components = [
|
|||
|
'BASIC' => [
|
|||
|
'title' => get_lang('dict_diy.component_type_basic'),
|
|||
|
'list' => [
|
|||
|
'Text' => [
|
|||
|
'title' => '标题',
|
|||
|
'icon' => 'iconfont-iconbiaoti',
|
|||
|
'path' => 'edit-text', // 编辑组件属性名称
|
|||
|
'support_page' => [], // 支持页面
|
|||
|
'uses' => 0, // 最大添加数量
|
|||
|
'sort' => 10001,
|
|||
|
'value' => [
|
|||
|
"style" => "style-1",
|
|||
|
"styleName" => "风格1",
|
|||
|
"text" => "标题栏",
|
|||
|
"link" => [
|
|||
|
"name" => ""
|
|||
|
],
|
|||
|
"textColor" => "#303133",
|
|||
|
"fontSize" => 16,
|
|||
|
"fontWeight" => "normal",
|
|||
|
"textAlign" => "center",
|
|||
|
"subTitle" => [
|
|||
|
"text" => "副标题",
|
|||
|
"color" => "#999999",
|
|||
|
"fontSize" => 14,
|
|||
|
"control" => false,
|
|||
|
"fontWeight" => "normal"
|
|||
|
],
|
|||
|
"more" => [
|
|||
|
"text" => "查看更多",
|
|||
|
"control" => false,
|
|||
|
"isShow" => true,
|
|||
|
"link" => [
|
|||
|
"name" => ""
|
|||
|
],
|
|||
|
"color" => "#999999"
|
|||
|
]
|
|||
|
]
|
|||
|
],
|
|||
|
'ImageAds' => [
|
|||
|
'title' => '图片广告',
|
|||
|
'icon' => 'iconfont-icontupianguanggao1',
|
|||
|
'path' => 'edit-image-ads', // 编辑组件属性
|
|||
|
'support_page' => [], // 支持页面
|
|||
|
'uses' => 0, // 最大添加数量
|
|||
|
'sort' => 10002,
|
|||
|
'value' => [
|
|||
|
"imageHeight" => 180,
|
|||
|
"list" => [
|
|||
|
[
|
|||
|
"link" => [
|
|||
|
"name" => ""
|
|||
|
],
|
|||
|
"imageUrl" => "",
|
|||
|
"imgWidth" => 0,
|
|||
|
"imgHeight" => 0
|
|||
|
]
|
|||
|
]
|
|||
|
]
|
|||
|
],
|
|||
|
'GraphicNav' => [
|
|||
|
'title' => '图文导航',
|
|||
|
'icon' => 'iconfont-icontuwendaohang2',
|
|||
|
'path' => 'edit-graphic-nav',
|
|||
|
'support_page' => [],
|
|||
|
'uses' => 0,
|
|||
|
'sort' => 10003,
|
|||
|
'value' => [
|
|||
|
"layout" => "horizontal",
|
|||
|
"navTitle" => "",
|
|||
|
"subNavTitle" => "",
|
|||
|
"subNavTitleLink" => [
|
|||
|
"name" => ""
|
|||
|
],
|
|||
|
"subNavColor" => "#999999",
|
|||
|
"mode" => "graphic",
|
|||
|
"type" => "img",
|
|||
|
"showStyle" => "fixed",
|
|||
|
"rowCount" => 4,
|
|||
|
"pageCount" => 2,
|
|||
|
"carousel" => [
|
|||
|
"type" => "circle",
|
|||
|
"color" => "#FFFFFF"
|
|||
|
],
|
|||
|
"imageSize" => 40,
|
|||
|
"aroundRadius" => 25,
|
|||
|
"font" => [
|
|||
|
"size" => 14,
|
|||
|
"weight" => "normal",
|
|||
|
"color" => "#303133"
|
|||
|
],
|
|||
|
"list" => [
|
|||
|
[
|
|||
|
"title" => "",
|
|||
|
"link" => [
|
|||
|
"name" => ""
|
|||
|
],
|
|||
|
"imageUrl" => "",
|
|||
|
"label" => [
|
|||
|
"control" => false,
|
|||
|
"text" => "热门",
|
|||
|
"textColor" => "#FFFFFF",
|
|||
|
"bgColorStart" => "#F83287",
|
|||
|
"bgColorEnd" => "#FE3423"
|
|||
|
]
|
|||
|
],
|
|||
|
[
|
|||
|
"title" => "",
|
|||
|
"link" => [
|
|||
|
"name" => ""
|
|||
|
],
|
|||
|
"imageUrl" => "",
|
|||
|
"label" => [
|
|||
|
"control" => false,
|
|||
|
"text" => "热门",
|
|||
|
"textColor" => "#FFFFFF",
|
|||
|
"bgColorStart" => "#F83287",
|
|||
|
"bgColorEnd" => "#FE3423"
|
|||
|
]
|
|||
|
],
|
|||
|
[
|
|||
|
"title" => "",
|
|||
|
"link" => [
|
|||
|
"name" => ""
|
|||
|
],
|
|||
|
"imageUrl" => "",
|
|||
|
"label" => [
|
|||
|
"control" => false,
|
|||
|
"text" => "热门",
|
|||
|
"textColor" => "#FFFFFF",
|
|||
|
"bgColorStart" => "#F83287",
|
|||
|
"bgColorEnd" => "#FE3423"
|
|||
|
]
|
|||
|
],
|
|||
|
[
|
|||
|
"title" => "",
|
|||
|
"link" => [
|
|||
|
"name" => ""
|
|||
|
],
|
|||
|
"imageUrl" => "",
|
|||
|
"label" => [
|
|||
|
"control" => false,
|
|||
|
"text" => "热门",
|
|||
|
"textColor" => "#FFFFFF",
|
|||
|
"bgColorStart" => "#F83287",
|
|||
|
"bgColorEnd" => "#FE3423"
|
|||
|
]
|
|||
|
]
|
|||
|
],
|
|||
|
]
|
|||
|
],
|
|||
|
'RubikCube' => [
|
|||
|
'title' => '魔方',
|
|||
|
'icon' => 'iconfont-iconmofang1',
|
|||
|
'path' => 'edit-rubik-cube',
|
|||
|
'support_page' => [],
|
|||
|
'uses' => 0,
|
|||
|
'sort' => 10004,
|
|||
|
'value' => [
|
|||
|
"mode" => "row1-of2",
|
|||
|
"imageGap" => 0,
|
|||
|
"list" => [
|
|||
|
[
|
|||
|
"imageUrl" => "",
|
|||
|
"imgWidth" => 0,
|
|||
|
"imgHeight" => 0,
|
|||
|
"link" => [
|
|||
|
"name" => ""
|
|||
|
]
|
|||
|
],
|
|||
|
[
|
|||
|
"imageUrl" => "",
|
|||
|
"imgWidth" => 0,
|
|||
|
"imgHeight" => 0,
|
|||
|
"link" => [
|
|||
|
"name" => ""
|
|||
|
]
|
|||
|
]
|
|||
|
]
|
|||
|
],
|
|||
|
],
|
|||
|
'HorzBlank' => [
|
|||
|
'title' => '辅助空白',
|
|||
|
'icon' => 'iconfont-iconfuzhukongbai1',
|
|||
|
'path' => 'edit-horz-blank',
|
|||
|
'support_page' => [],
|
|||
|
'uses' => 0,
|
|||
|
'sort' => 10005,
|
|||
|
'value' => [
|
|||
|
'height' => 20
|
|||
|
],
|
|||
|
],
|
|||
|
'HotArea' => [
|
|||
|
'title' => '热区',
|
|||
|
'icon' => 'iconfont-iconrequ',
|
|||
|
'path' => 'edit-hot-area',
|
|||
|
'support_page' => [],
|
|||
|
'uses' => 0,
|
|||
|
'sort' => 10006,
|
|||
|
'value' => [
|
|||
|
"imageUrl" => "",
|
|||
|
"imgWidth" => 0,
|
|||
|
"imgHeight" => 0,
|
|||
|
"heatMapData" => []
|
|||
|
],
|
|||
|
],
|
|||
|
'MemberInfo' => [
|
|||
|
'title' => '会员信息',
|
|||
|
'icon' => 'iconfont-iconhuiyuanzhongxin',
|
|||
|
'path' => 'edit-member-info',
|
|||
|
'support_page' => [ 'DIY_MEMBER_INDEX' ],
|
|||
|
'uses' => 1,
|
|||
|
'sort' => 10008,
|
|||
|
'value' => [
|
|||
|
"style" => "style-1",
|
|||
|
"styleName" => "风格1",
|
|||
|
'bgUrl' => '',
|
|||
|
'bgColorStart' => '',
|
|||
|
'bgColorEnd' => ''
|
|||
|
],
|
|||
|
],
|
|||
|
'AddonList' => [
|
|||
|
'title' => '应用',
|
|||
|
'icon' => 'iconfont-iconyingyong1',
|
|||
|
'path' => 'edit-addon-list',
|
|||
|
'support_page' => [],
|
|||
|
'uses' => 0,
|
|||
|
'sort' => 10009,
|
|||
|
'value' => [
|
|||
|
'list' => []
|
|||
|
],
|
|||
|
],
|
|||
|
'Notice' => [
|
|||
|
'title' => '公告',
|
|||
|
'icon' => 'iconfont-icongonggao',
|
|||
|
'path' => 'edit-notice',
|
|||
|
'support_page' => [],
|
|||
|
'uses' => 0,
|
|||
|
'sort' => 10010,
|
|||
|
'value' => [
|
|||
|
"list" => [
|
|||
|
"link" => [
|
|||
|
"name" => ""
|
|||
|
],
|
|||
|
"text" => ""
|
|||
|
],
|
|||
|
"iconType" => "system",
|
|||
|
"systemIcon" => "style_01",
|
|||
|
"showType" => "popup",
|
|||
|
"imageUrl" => ""
|
|||
|
],
|
|||
|
]
|
|||
|
],
|
|||
|
],
|
|||
|
];
|
|||
|
return ( new DictLoader("UniappComponent") )->load($system_components);
|
|||
|
}
|
|||
|
|
|||
|
}
|