Code Monkey home page Code Monkey logo

dcat-iframe-tab's Issues

iframe 页面刷新

iframe 页面刷新后,会直接回到iframe列表页,而不是详情页,请问怎么解决?
image
image
image
image

覆盖`admin`命名空间下的视图失效

用的2.*版本的Dcat和laravel8,
在使用iframe-tab扩展后 bootstrap文件中的这段代码失效
// 覆盖admin命名空间下的视图 app('view')->prependNamespace('admin', resource_path('views/admin'));

安装不了,2.019

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

希望添加独立域名配置

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();
就能实现二级页面刷新。但发现必须先在页签上右击后才能作用,请问怎么解决?

IE浏览器有兼容问题

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 就是默认的首页
安装之后 首页就默认成了 第一个菜单栏 而且 第一个如果是二级菜单的话还好 如果是一级菜单的话 页面就换乱
帮忙看下呢

env('START_IFRAME_TAB', false), # 底部设置 'footer_setting' => [ 'copyright' => env('APP_NAME', ''), 'app_version' => env('APP_VERSION', ''), # 是否将底部置于菜单下 'use_menu' => false ], # 是否开启标签页缓存 'cache' => env('IFRAME_TAB_CACHE', false), # 更改dialog表单默认宽高 'dialog_area_width' => env('IFRAME_TAB_DIALOG_AREA_WIDTH', '50%'), 'dialog_area_height' => env('IFRAME_TAB_DIALOG_AREA_HEIGHT', '90vh'), # iframe-tab占用的路由 默认 '/' 'router' => '/', # iframe-tab域名(一般用于多应用后台) 'domain' => null, # 是否开启懒加载模式 'lazy_load' => true ];

使用扩展后出错

$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标签的监听事件

底部版权疑问

扩展默认发布配置 是 iframe_tab.php 文件
而 vertical.blade.php 文件中
引用的配置是 admin.iframe_tab.*

是有意为之 还是 写错了?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.