🎉 Welcome to my GitHub profile!
I'm zhongshaofa - a PHP developer, and Open source contributor.
后台admin前端模板,基于 layui 编写的最简洁、易用的后台框架模板。只需提供一个接口就直接初始化整个框架,无需复杂操作。
Home Page: http://layuimini.99php.cn
License: MIT License
表格页面 添加一些 修改, 跟 新增的 窗口呗
menuChildOpen这个参数设置了没用,下面源码中根本没用到
/**
* 单模块
* @param menuList 菜单数据
* @param menuChildOpen 是否默认展开
*/
renderSingleModule: function (menuList, menuChildOpen) {
menuList = menuList || [];
var leftMenuHtml = '',
childOpenClass = '',
leftMenuCheckDefault = 'layui-this';
var me = this ;
if (menuChildOpen) childOpenClass = ' layui-nav-itemed';
leftMenuHtml = this.renderLeftMenu(menuList) ;
$('.layui-layout-body').addClass('layuimini-single-module'); //单模块标识
$('.layuimini-header-menu').remove();
$('.layuimini-menu-left').html(leftMenuHtml);
element.init();
}
layuimini可以免费用于生产环境?
如题,想添加底部信息,应该如何操作?
点击展开将左侧菜单缩小之后,右侧的表格组件的大小区域不能立即向右移动,即没有触发resize事件
切换iframe后,再切回本页面默认回到页面顶部,能不能实现切回本页面后保持之前的页面位置?
我要反馈一个小问题哈
iframe版 - v2 主界面
左侧菜单,有本站页面url,有外站url
右上角刷新按钮 对本站页面url有效 对外站url无效
我觉得既然右上角是刷新按钮,就要重新载入iframe页面,不然刷新的意义就没了。
可以定义大图 和 小图
档点击按钮,导航收缩后,logo 展示 小图。
强烈建议把关闭tab页的按钮,改成右键。直接右键关闭其他,关闭所有,关闭当前。
发现所有的layui框架的表单验证都和官方一致。非常不友好!
比如,手机非必填,但是格式填错了,必须提交的时候才能检测出来,如果这样的有几个,比如邮箱。那会非常的不友好,提交一次才能检测出来,而且是一个个检测。
没有失去焦点验证,是否有优化计划?
根据提示,设置iframe窗口动画为false,无法达到预定效果
1.frame窗口动画 pageAnim: false 不起作用,我试了多个浏览器 chrome ,火狐,360浏览器,都是不起作用
2.窗口动画 时间太长,用户体验不好,感觉是系加载统太慢
This is a great project. I have some suggestions about the three-level address of the layarea. I have probably looked at the data structure of the address. It is not easy to maintain this kind of data in the later stage. Generally, the data needs to interact with the database, otherwise it becomes a decoration
很棒的项目,关于layarea地址的三级有点建议,我大概看了下地址的数据结构,这种后期不大好维护,这些数据一般要和数据库有交互,不然成摆设了
能不能去掉后缀名.html 让URL 显得清爽一些!
table.on('tool(currentTableFilter)', function (obj) {
var data = obj.data;
如题,请问默认不把data传到edit页面吗?怎么在edit页拿到data数据?
想到了这个解决办法,请问原始有简便的方法没?
// 对所选编辑行数据编码
var data = escape(JSON.stringify(obj.data));
if (obj.event === 'edit') {
var index = layer.open({
title: '编辑用户',
type: 2,
content: './table/user-edit.html?'+data,
// 编辑页解码,得到原始对象
console.log(JSON.parse(unescape(location.search).replace('?','')))
实际场景中,经常复制code值,code 64位比较长,还有链接,不能双击快捷选中,只能选择复制,不太方便,可以提供一个选项,某一列可以复制。鼠标放在当前列的cell时,就弹出一个复制小菜单,鼠标点击以后,复制到剪贴板,鼠标移走,菜单消失。
layui-body 高度异常
iframe 页面内可以上下滑动
http://layuimini.99php.cn/onepage/v2/index.html#/page/a../../../../../onepage/v2/images/logo.png
如果后面的图片是用户恶意上传的html
即使后缀是图片格式 依然可以触发xss吧
请问大神,如何才能让layuimini支持国际化
我这边图标选择改成了font-awesome5.14.0的版本,原来的选择不太适用,我已经把代码改好了,怎么提交给您呢?
其中一个TAB页面是表单,我希望提交后将这个表单的所有字段值传到新的TAB,请问如何实现传值?
谢谢
v1版本的表格在点击搜索后,点击添加用户失效,v2可以成功
如果有的话 如何使用
layuimini 可以把JS中用到的中文 提取出来变量 支持国际化文件吗。。。 不然前台国际化太麻烦了
菜单栏可以添加一个菜单搜索功能吗= = 菜单太多了的话 不好找
当项目部署到tomcat中无法保存及时刷新页面
内容区多层滚动条
/**
todo 修复低版本IOS不能滑动问题, 但还是有问题, 低版本IOS部分情况下子页面无法自适应
*/
.layuimini-tab .layui-tab-content .layui-tab-item{
-webkit-overflow-scrolling: touch;
overflow: scroll; /导致内容区出现多层滚动条,改为hidden可以了/
width:100%;
height:100%;
}
不知和 "todo 修复低版本IOS不能滑动问题, 但还是有问题, 低版本IOS部分情况下子页面无法自适应" 这个bug有什么冲突没有
你好,layuimini很好用很漂亮
目前遇到的问题:
单页面版本中在提交了表单后,ajax的success回调中加了layer.msg怎么跳到新的页面?
当前写法:
$.ajax({
...
success:function(data){
layer.msg(data.msg,1000,function(){
window.location.href = 'page/user-list.html';
})
}
})
只有地址栏的地址变了,但页面没有跳转?
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.