mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2026-07-11 18:11:07 +08:00
Compare commits
3 Commits
6e879f5b1c
...
38bb4e4021
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
38bb4e4021 | ||
|
|
cd8bc71e39 | ||
|
|
3f66b9062b |
@ -572,7 +572,7 @@ $(function () {
|
||||
if (elem.dataset.inited) return false; else elem.dataset.inited = 'true';
|
||||
elem.dataset.multiple = '|one|btn|'.indexOf(elem.dataset.file || 'one') > -1 ? '0' : '1';
|
||||
require(['upload'], function (apply) {
|
||||
apply(elem, callable), setTimeout(function () {
|
||||
apply(elem, callable) && setTimeout(function () {
|
||||
typeof initialize === 'function' && initialize.call(elem, elem);
|
||||
}, 100);
|
||||
});
|
||||
@ -890,12 +890,17 @@ $(function () {
|
||||
this.id = this.dataset.id = this.id || (function (date) {
|
||||
return (date + Math.random()).replace('0.', '');
|
||||
})(layui.util.toDateString(Date.now(), 'yyyyMMddHHmmss-'));
|
||||
// 上传图片,支持单图或多图选择,分别是 image|images
|
||||
/*! 查找表单元素, 如果没有找到将不会自动写值 */
|
||||
if (!(this.$elem = $(this)).data('input') && this.$elem.data('field')) {
|
||||
var $input = $('input[name="' + this.$elem.data('field') + '"]:not([type=file])');
|
||||
this.$elem.data('input', $input.size() > 0 ? $input.get(0) : null);
|
||||
}
|
||||
// 单图或多图选择器 ( image|images )
|
||||
if (typeof this.dataset.file === 'string' && /^images?$/.test(this.dataset.file)) {
|
||||
return $.form.modal(tapiRoot + '/api.upload/image', this.dataset, '图片选择器')
|
||||
}
|
||||
// 其他文件上传
|
||||
if (!this.dataset.inited) $(this).uploadFile(undefined, function () {
|
||||
// 其他文件上传处理
|
||||
this.dataset.inited || $(this).uploadFile(undefined, function () {
|
||||
$(this).trigger('upload.start');
|
||||
});
|
||||
});
|
||||
|
||||
@ -362,10 +362,6 @@ table[data-line] + div tbody {
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
.layui-badge-middle {
|
||||
line-height: 17px;
|
||||
}
|
||||
|
||||
&.laytable-cell-checkbox {
|
||||
line-height: 44px;
|
||||
}
|
||||
@ -379,6 +375,10 @@ table[data-line] + div tbody {
|
||||
table[data-line='2'] + div tbody .layui-table-cell {
|
||||
height: 60px;
|
||||
|
||||
.layui-badge-middle {
|
||||
line-height: 16px;
|
||||
}
|
||||
|
||||
&.laytable-cell-checkbox {
|
||||
line-height: 40px;
|
||||
}
|
||||
@ -387,6 +387,10 @@ table[data-line='2'] + div tbody .layui-table-cell {
|
||||
table[data-line='3'] + div tbody .layui-table-cell {
|
||||
height: 80px;
|
||||
|
||||
.layui-badge-middle {
|
||||
line-height: 17px;
|
||||
}
|
||||
|
||||
&.laytable-cell-checkbox {
|
||||
line-height: 60px;
|
||||
}
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,10 +1,6 @@
|
||||
大道至简 · 原生框架
|
||||
---
|
||||
> 近期 Github 网络访问不稳定,项目主库已迁移到 Gitee 仓库
|
||||
>
|
||||
> 注意:Github 仓库不会经常更新,获取最新源码请访问 Gitee 仓库
|
||||
>
|
||||
> Gitee 仓库地址:https://gitee.com/zoujingli/ThinkAdmin
|
||||
> 主仓库地址:https://gitee.com/zoujingli/ThinkAdmin
|
||||
|
||||
非常感谢大家一直以来对`ThinkAdmin`的支持,`ThinkAdmin`从`v1`到`v6`经历了几次大的调整,但总体都是基于`ThinkPHP`最新版本为核心在开发,以微信领域及最简后台为目标而设计。
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user