Explore Enterprise Education Gitee Premium Gitee AI AI teammates
Fetch the repository succeeded.
Create your Gitee Account
Explore and code with more than 14 million developers,Free private repositories !:)
Sign up
Already have an account? Sign in
文件
main
Branches (1)
main
main
Branches (1)
main
Clone or Download
Clone/Download
Prompt
To download the code, please copy the following command and execute it in the terminal
To ensure that your submitted code identity is correctly recognized by Gitee, please execute the following command.
When using the SSH protocol for the first time to clone or push code, follow the prompts below to complete the SSH configuration.
1 Generate RSA keys.
2 Obtain the content of the RSA public key and configure it in SSH Public Keys
To use SVN on Gitee, please visit the usage guide
When using the HTTPS protocol, the command line will prompt for account and password verification as follows. For security reasons, Gitee recommends configure and use personal access tokens instead of login passwords for cloning, pushing, and other operations.
Username for 'https://gitee.com': userName
Password for 'https://userName@gitee.com': # Private Token
main
Branches (1)
main
Nav.php 2.76 KB
Copy Edit Raw Blame History
<?php
/**
* 积木云渲染器
*
* @package XbCode
* @author 楚羽幽 <958416459@qq.com>
* @license Apache License 2.0
* @link http://www.xbcode.net
* @document http://doc.xbcode.net
*/
namespace plugin\xbCode\builder\Components;
/**
* 导航组件
* @copyright 贵州积木云网络科技有限公司
* @author 楚羽幽 958416459@qq.com
* @link https://aisuda.bce.baidu.com/amis/zh-CN/components/nav
* @method $this name(string $value) 组件名称
* @method $this mode(string $value) 设置导航模式,悬浮或者内联,默认内联模式
* @method $this collapsed(bool $value) 控制导航是否缩起
* @method $this indentSize(int $value) 层级缩进值,仅内联模式下生效
* @method $this level(int $value) 控制导航最大展示层级数
* @method $this defaultOpenLevel(int $value) 控制导航最大默认展开层级
* @method $this className(string $value) 外层 Dom 的类名
* @method $this popupClassName(string $value) 当为悬浮模式时,可自定义悬浮层样式
* @method $this expandIcon(string $value) 自定义展开按钮
* @method $this expandPosition(string $value) 展开按钮位置,"before"或者"after",不设置默认在前面
* @method $this stacked(bool $value) 设置成 false 可以以 tabs 的形式展示
* @method $this accordion(bool $value) 是否开启手风琴模式
* @method $this source(string $value) 可以通过变量或 API 接口动态创建导航
* @method $this deferApi(string $value) 用来延时加载选项详情的接口,可以不配置,不配置公用 source 接口
* @method $this itemActions(string $value) 更多操作相关配置
* @method $this draggable(bool $value) 是否支持拖拽排序
* @method $this dragOnSameLevel(bool $value) 仅允许同层级内拖拽
* @method $this saveOrderApi(string $value) 保存排序的 api
* @method $this itemBadge(string $value) 角标
* @method $this links(array $value) 链接集合
* @method $this overflow(array $value) 响应式收纳配置
* @method $this searchable(bool $value) 是否开启搜索
* @method $this searchConfig(array $value) 搜索配置
*/
class Nav extends BaseSchema
{
public string $type = 'nav';
/**
* 设置导航更多操作按钮
* @param array $actions 行为按钮
* @param array $option 额外配置
* @return static
* @copyright 贵州积木云网络科技有限公司
* @author 楚羽幽 958416459@qq.com
*/
public function addNavButtons(array $actions, array $option = [])
{
$component = new DropdownButton;
$component->level('link')->icon('fa fa-ellipsis-h')->buttons($actions);
if($option) {
$component->setVariables($option);
}
$this->setVariable('itemActions', $component);
return $this;
}
}
Loading...
Report
Report success
We will send you the feedback within 2 working days through the letter!
Please fill in the reason for the report carefully. Provide as detailed a description as possible.
Please select a report type
Cancel
Send
误判申诉

此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。

如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。

取消
提交

About

基于渐进式动态页面构建渲染框架,支持在线安装插件、卸载的集成化插件框架,提供丰富的扩展功能。为开发者赋能
Cancel

Releases

No release

Contributors

All

Activities

can not load any more
Edit
About
Homepage
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/xbcode-plugin/xbCode.git
git@gitee.com:xbcode-plugin/xbCode.git
xbcode-plugin
xbCode
积木云核心
main
Going to Help Center

Search

Comment
Repository Report
Back to the top
Login prompt
This operation requires login to the code cloud account. Please log in before operating.
Go to login
No account. Register

AltStyle によって変換されたページ (->オリジナル) /