项目集菜单 programMenu
用法
用于禅道项目集菜单的渲染。
php
$program6 = new stdClass();
$program6->id = '6';
$program6->parent = '0';
$program6->name = '企业管理';
$program7 = new stdClass();
$program7->id = '7';
$program7->parent = '6';
$program7->name = '企业系统管理';
$program8 = new stdClass();
$program8->id = '8';
$program8->parent = '6';
$program8->name = '测试项目';
$programs = [$program6, $program7, $program8];
programMenu
(
set
(
[
'title' => '所有项目集',
'programs' => $programs,
'activeKey' => '7',
'activeClass' => 'active',
'closeLink' => '/index.php?m=program&f=browse'
]
)
);
html
<div class="program-menu" data-zin-id="zin12">
<menu class="menu dropdown-menu menu-nested has-nested-items menu-popup" activeicon="check" zinid="zin12"
title="所有项目集" closelink="/index.php?m=program&f=browse"
style="width: max-content; position: fixed; top: 283px; left: 941.5px;">
<li class="action-menu-item menu-heading">
<div class="">筛选项目集</div>
</li>
<li class="action-menu-item menu-item has-nested-menu show">
<a class="not-hide-menu" type="item">
<span class="text">企业管理</span>
<span class="menu-toggle-icon caret-down"></span>
</a>
<menu class="menu menu-nested" activeicon="check">
<li class="action-menu-item menu-item active">
<a class="not-hide-menu" type="item">
<span class="text">企业系统管理</span>
</a>
<i class="checked icon icon-check"></i>
</li>
<li class="action-menu-item menu-item"><a class="not-hide-menu" type="item"><span class="text">测试项目</span></a></li>
</menu>
</li>
</menu>
<header data-toggle="dropdown" class="">
<div class="title-container">
<div class="icon-container down"><i class="gg-chevron-down"></i></div>
<div class="icon-container up"><i class="gg-chevron-up"></i></div>
<span>企业系统管理</span>
</div>
<a href="/index.php?m=program&f=browse"><i class="icon icon-close" style="color: #313C52;"></i></a>
</header>
</div>
属性
属性名 | 类型 | 默认值 | 说明 |
---|---|---|---|
title | string | - | 菜单标题 |
prpgrams | array | - | 菜单项目集数据 |
activeClass | string | - | 菜单激活项类名 |
activeIcon | string | - | 菜单激活项图标 |
activeKey | string | - | 菜单激活项 key |
closeLink | string | - | 点击关闭按钮时跳转的链接 |