mosiboom / dcat-iframe-tab Goto Github PK
View Code? Open in Web Editor NEW在dcat-admin中使用iframe作为页面架构并发布标签页使页面切换无需刷新
License: MIT License
在dcat-admin中使用iframe作为页面架构并发布标签页使页面切换无需刷新
License: MIT License
比较常用水平菜单
用的2.*版本的Dcat和laravel8,
在使用iframe-tab扩展后 bootstrap文件中的这段代码失效
// 覆盖
admin命名空间下的视图 app('view')->prependNamespace('admin', resource_path('views/admin'));
独立域名安装后有问题
比如后台的首页访问链接为:https://cms.learnku.fit
安装后如下图所示:
配置没有改动,只是执行了安装命令
Fatal error: Uncaught Error: Call to undefined method Dcat\Admin\Admin::extend() in C:\Users\ycym\flyskyedu\vendor\changzhong\extension-iframe-tabs\src\bootstrap.php:4
$grid->column('uid')->display(function () {
$url = "/admin/user?id=" . $this->uid;
return "{$this->uid}";
});
点击跳转的时候 这个页面和用户页面会变成一样
iframe 加载能支持加载动画吗
use Mosiboom\DcatIframeTab\Controllers\IframeController;
if (config('iframe_tab.enable')) {
$attributes = [
'prefix' => config('admin.route.prefix'),
'middleware' => config('admin.route.middleware'),
];
app('router')->group($attributes, function ($router) {
$controller = IframeController::class;
$router->get('/', $controller . '@Index');
});
}
希望添加独立域名配置:
'domain' => config('admin.route.domain', null),
在二级页面中 call
window.parent.$(".menu-item.tab-refresh").click();
就能实现二级页面刷新。但发现必须先在页签上右击后才能作用,请问怎么解决?
SCRIPT1003: 缺少 ':'
/定义模板/
const iframeTabTemplate = {
tabItem(html, id, use_close = true) {
/标签栏/
let close_html = ''
let first_tag = 'data-first=1'
if (use_close) {
close_html = ''
first_tag = 'data-first=0'
}
return <li class="nav-item swiper-slide" role="presentation"> <a ${first_tag} class="nav-link active" id="iframe-home-${id}" data-toggle="pill" href="#iframe-${id}" role="tab" aria-controls="iframe-${id}" aria-selected="true"> ${html} ${close_html} </a> </li>
},
如题
地址 /admin
就是没安装之前的话 或跳转到默认的首页/admin 就是默认的首页
安装之后 首页就默认成了 第一个菜单栏 而且 第一个如果是二级菜单的话还好 如果是一级菜单的话 页面就换乱
帮忙看下呢
默认admin, '/', 登录地址http://localhost/admin,进去之后可以
新加的一个应用,xxx, '/', 登录地址 http://localhost/xxx,进去之后不显示菜单
这个插件是不是对低版本的dcatadmin不能使用??
在表格中表格宽度太长,小屏幕也无法左右滑动,看不全表格,请问这个有没有办法解决?
$grid->column('bmmx', "报名明细")->display(function () {
return "<a iframe-extends=true iframe-tab=true href='".admin_url("enroll-record?user_id=".$this->id)."'>报名明细</a>";
});
点击后当前页面会变成了目标页面的内容
调试后发现,dcatadmin的后台js会优先执行a标签的监听事件
面包屑中点击主页显示空白页,路由为/admin,怎么去掉这个面包屑或者让他正确跳转
扩展默认发布配置 是 iframe_tab.php 文件
而 vertical.blade.php 文件中
引用的配置是 admin.iframe_tab.*
是有意为之 还是 写错了?
找不到你这样的库
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.