Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
ModStart
ModStartCMS
提交
7f8616d3
ModStartCMS
项目概览
ModStart
/
ModStartCMS
通知
2
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
ModStartCMS
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
7f8616d3
编写于
1月 20, 2022
作者:
ModStart
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
develop
上级
1ef89a20
变更
17
展开全部
隐藏空白更改
内联
并排
Showing
17 changed file
with
67 addition
and
31 deletion
+67
-31
module/Cms/Docs/release/2.3.0.md
module/Cms/Docs/release/2.3.0.md
+2
-0
module/Cms/config.json
module/Cms/config.json
+1
-1
module/ModuleStore/Asset/entry/moduleStore.js
module/ModuleStore/Asset/entry/moduleStore.js
+1
-1
module/ModuleStore/Docs/release/1.5.0.md
module/ModuleStore/Docs/release/1.5.0.md
+5
-0
module/ModuleStore/resources/asset/src/pages/ModuleStore.vue
module/ModuleStore/resources/asset/src/pages/ModuleStore.vue
+20
-0
module/Nav/Docs/release/1.2.0.md
module/Nav/Docs/release/1.2.0.md
+3
-1
module/Nav/config.json
module/Nav/config.json
+1
-1
public/asset/common/base.js
public/asset/common/base.js
+1
-1
public/asset/layui/lay/ext/mstable.js
public/asset/layui/lay/ext/mstable.js
+1
-1
public/vendor/ModuleDeveloper/entry/moduleDeveloper.js
public/vendor/ModuleDeveloper/entry/moduleDeveloper.js
+1
-1
public/vendor/ModuleStore/entry/moduleStore.js
public/vendor/ModuleStore/entry/moduleStore.js
+1
-1
vendor/modstart/modstart/asset/common/base.js
vendor/modstart/modstart/asset/common/base.js
+1
-1
vendor/modstart/modstart/asset/layui/lay/ext/mstable.js
vendor/modstart/modstart/asset/layui/lay/ext/mstable.js
+1
-1
vendor/modstart/modstart/resources/asset/src/layui/lay/ext/mstable.js
...art/modstart/resources/asset/src/layui/lay/ext/mstable.js
+23
-18
vendor/modstart/modstart/resources/asset/src/lib/form.js
vendor/modstart/modstart/resources/asset/src/lib/form.js
+3
-1
vendor/modstart/modstart/src/Module/ModuleManager.php
vendor/modstart/modstart/src/Module/ModuleManager.php
+1
-1
vendor/modstart/modstart/views/core/grid/index.blade.php
vendor/modstart/modstart/views/core/grid/index.blade.php
+1
-1
未找到文件。
module/Cms/Docs/release/2.3.0.md
浏览文件 @
7f8616d3
栏目内容详情访问权限控制
---
-
新增:栏目内容详情访问权限控制
-
新增:栏目内容详情访问权限控制
module/Cms/config.json
浏览文件 @
7f8616d3
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
"Member"
,
"Member"
,
"Banner:>=1.1.0"
"Banner:>=1.1.0"
],
],
"version"
:
"2.
2
.0"
,
"version"
:
"2.
3
.0"
,
"modstartVersion"
:
">=2.4.0"
,
"modstartVersion"
:
">=2.4.0"
,
"author"
:
"ModStart"
,
"author"
:
"ModStart"
,
"description"
:
"提供通用的动态模型内容管理系统"
,
"description"
:
"提供通用的动态模型内容管理系统"
,
...
...
module/ModuleStore/Asset/entry/moduleStore.js
浏览文件 @
7f8616d3
此差异已折叠。
点击以展开。
module/ModuleStore/Docs/release/1.5.0.md
0 → 100644
浏览文件 @
7f8616d3
-
新增:本地模块筛选Tab,只显示本地模块
-
新增:可升级模块筛选,显示系统可升级的模块
module/ModuleStore/resources/asset/src/pages/ModuleStore.vue
浏览文件 @
7f8616d3
...
@@ -35,6 +35,17 @@
...
@@ -35,6 +35,17 @@
<i
class=
"iconfont icon-close"
></i>
已禁用
<i
class=
"iconfont icon-close"
></i>
已禁用
</span>
</span>
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
name=
"local"
>
<span
slot=
"label"
>
<i
class=
"iconfont icon-pc"
></i>
本地模块
<i
class=
"iconfont icon-warning"
data-tip-popover=
"本地存在且模块市场不存在的模块"
></i>
</span>
</el-tab-pane>
<el-tab-pane
name=
"upgradeable"
>
<span
slot=
"label"
>
<i
class=
"iconfont icon-direction-up"
></i>
可升级
</span>
</el-tab-pane>
</el-tabs>
</el-tabs>
<div
class=
"ub-padding"
>
<div
class=
"ub-padding"
>
<div
class=
"tw-float-right"
>
<div
class=
"tw-float-right"
>
...
@@ -455,6 +466,14 @@ export default {
...
@@ -455,6 +466,14 @@ export default {
case
'
disabled
'
:
case
'
disabled
'
:
if
(
!
module
.
_isInstalled
||
module
.
_isEnabled
)
return
false
if
(
!
module
.
_isInstalled
||
module
.
_isEnabled
)
return
false
break
;
break
;
case
'
local
'
:
if
(
!
module
.
_isLocal
)
return
false
break
case
'
upgradeable
'
:
if
(
!
(
module
.
_isInstalled
&&
!
module
.
_isLocal
&&
module
.
latestVersion
!==
module
.
_localVersion
)
){
return
false
}
break
}
}
if
(
this
.
search
.
isRecommend
)
{
if
(
this
.
search
.
isRecommend
)
{
if
(
!
module
.
isRecommend
)
{
if
(
!
module
.
isRecommend
)
{
...
@@ -491,6 +510,7 @@ export default {
...
@@ -491,6 +510,7 @@ export default {
}
}
return
true
return
true
})
})
console
.
log
(
'
xxx
'
,
results
,
this
.
modules
)
return
results
return
results
}
}
},
},
...
...
module/Nav/Docs/release/1.2.0.md
浏览文件 @
7f8616d3
二级导航、批量删除、导航位置Tab切换
---
-
新增:二级导航功能
-
新增:二级导航功能
(需要调用方支持)
-
新增:批量删除功能
-
新增:批量删除功能
-
新增:导航位置Tab切换
-
新增:导航位置Tab切换
\ No newline at end of file
module/Nav/config.json
浏览文件 @
7f8616d3
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
],
],
"modstartVersion"
:
">=2.5.1"
,
"modstartVersion"
:
">=2.5.1"
,
"title"
:
"通用导航配置"
,
"title"
:
"通用导航配置"
,
"version"
:
"1.
1
.0"
,
"version"
:
"1.
2
.0"
,
"author"
:
"官方"
,
"author"
:
"官方"
,
"description"
:
"提供多位置的导航配置工具"
,
"description"
:
"提供多位置的导航配置工具"
,
"config"
:
{
"config"
:
{
...
...
public/asset/common/base.js
浏览文件 @
7f8616d3
此差异已折叠。
点击以展开。
public/asset/layui/lay/ext/mstable.js
浏览文件 @
7f8616d3
layui
.
define
([],
function
(
t
){
var
o
=
layui
.
$
,
i
=
{},
u
=
o
(
"
body
"
);
t
(
"
mstable
"
,{
render
:
function
(
t
){
i
[
t
.
id
]
=
t
;
var
e
=
this
;
layui
.
each
(
i
,
function
(){
!
function
(
d
,
l
){
var
t
=
o
(
l
.
elem
),
e
=
t
.
next
().
children
(
"
.layui-table-box
"
).
children
(
"
.layui-table-header
"
).
children
(
"
table
"
).
children
(
"
thead
"
).
children
(
"
tr
"
).
children
(
"
th
"
),
i
=
t
.
next
().
children
(
"
.layui-table-box
"
).
children
(
"
.layui-table-fixed
"
).
children
(
"
.layui-table-header
"
).
children
(
"
table
"
).
children
(
"
thead
"
).
children
(
"
tr
"
).
children
(
"
th
"
),
r
=
t
.
next
().
children
(
"
.layui-table-box
"
).
children
(
"
.layui-table-body
"
).
children
(
"
table
"
).
children
(
"
tbody
"
).
children
(
"
tr
"
),
c
=
t
.
next
().
children
(
"
.layui-table-total
"
).
find
(
"
tr
"
);
String
.
prototype
.
width
=
function
(
t
){
var
e
=
t
||
u
.
css
(
"
font
"
),
t
=
o
(
"
<div>
"
+
this
+
"
</div>
"
).
css
({
position
:
"
absolute
"
,
float
:
"
left
"
,
"
white-space
"
:
"
nowrap
"
,
visibility
:
"
hidden
"
,
font
:
e
}).
appendTo
(
u
),
e
=
t
.
width
();
return
t
.
remove
(),
e
},
e
.
add
(
i
).
on
(
"
dblclick
"
,
function
(
t
){
var
e
=
o
(
this
),
i
=
t
.
clientX
-
e
.
offset
().
left
,
t
=
e
.
attr
(
"
data-key
"
).
split
(
"
-
"
),
t
=
l
.
cols
[
t
[
1
]][
t
[
2
]];
s
(
0
,
e
,
0
<
e
.
parents
(
"
.layui-table-fixed-r
"
).
length
?
i
<=
10
:
e
.
width
()
-
i
<=
10
,
t
),
h
(
l
,
e
,
0
<
e
.
parents
(
"
.layui-table-fixed-r
"
).
length
?
i
<=
10
:
e
.
width
()
-
i
<=
10
,
t
)});
var
a
=
0
,
n
=
0
;
e
.
add
(
i
).
each
(
function
(
t
,
e
){
var
i
=
o
(
this
).
attr
(
"
data-key
"
).
split
(
"
-
"
),
i
=
l
.
cols
[
i
[
1
]][
i
[
2
]];
!
0
===
i
.
withAuto
&&
(
s
(
0
,
o
(
this
),
!
0
,
i
),
"
widthAutoSize
"
in
i
&&
"
widthAutoOld
"
in
i
&&
(
a
+=
i
.
widthAutoOld
,
a
-=
i
.
widthAutoSize
,
n
++
))}),
0
<
a
&&
0
<
n
&&
e
.
add
(
i
).
each
(
function
(
t
,
e
){
var
i
=
o
(
this
).
attr
(
"
data-key
"
).
split
(
"
-
"
),
i
=
l
.
cols
[
i
[
1
]][
i
[
2
]];
!
0
===
i
.
withAuto
&&
(
i
.
width
=
i
.
widthAutoSize
+
a
/
n
)});
function
h
(
t
,
e
,
i
,
l
){
var
a
=
e
.
data
(
"
key
"
),
n
=
a
.
split
(
"
-
"
);
3
===
n
.
length
&&
(
n
[
1
],
n
[
2
]);
1
<
e
.
attr
(
"
colspan
"
)
||
e
.
data
(
"
unresize
"
)
||
i
&&
d
.
getCssRule
(
t
,
a
,
function
(
t
){
t
.
style
.
width
=
l
.
width
+
"
px
"
})}
function
s
(
t
,
e
,
i
,
l
){
var
a
,
n
,
d
=
e
.
data
(
"
key
"
),
h
=
d
.
split
(
"
-
"
);
3
===
h
.
length
&&
(
h
[
1
],
h
[
2
]);
1
<
e
.
attr
(
"
colspan
"
)
||
e
.
data
(
"
unresize
"
)
||
i
&&
(
l
.
widthAutoOld
=
e
.
width
(),
a
=
e
.
text
().
width
(
e
.
css
(
"
font
"
))
+
21
,
n
=
e
.
css
(
"
font
"
),
r
.
children
(
'
td[data-key="
'
+
d
+
'
"]
'
).
each
(
function
(
t
,
e
){
var
i
=
0
;
o
(
this
).
children
().
children
()
&&
0
<
o
(
this
).
children
().
children
().
length
?
i
+=
o
(
this
).
children
().
html
().
width
(
n
):
i
=
o
(
this
).
text
().
width
(
n
),
a
<
i
&&
(
a
=
i
)}),
0
<
c
.
length
&&
(
d
=
c
.
children
(
'
td[data-key="
'
+
d
+
'
"]
'
).
text
().
width
(
n
),
a
<
d
&&
(
a
=
d
)),
a
+=
32
,
a
=
Math
.
min
(
a
,
500
),
l
.
width
=
a
,
l
.
widthAutoSize
=
a
)}
e
.
add
(
i
).
each
(
function
(
t
,
e
){
var
i
=
o
(
this
).
attr
(
"
data-key
"
).
split
(
"
-
"
),
i
=
l
.
cols
[
i
[
1
]][
i
[
2
]];
!
0
===
i
.
withAuto
&&
h
(
l
,
o
(
this
),
!
0
,
i
)})}(
e
,
this
)})},
getCssRule
:
function
(
t
,
i
,
l
){
t
=
t
.
elem
.
next
().
find
(
"
style
"
)[
0
],
t
=
t
.
sheet
||
t
.
styleSheet
||
{},
t
=
t
.
cssRules
||
t
.
rules
;
layui
.
each
(
t
,
function
(
t
,
e
){
if
(
e
.
selectorText
===
"
.laytable-cell-
"
+
i
)
return
l
(
e
),
!
0
})}})});
layui
.
define
([],
function
(
t
){
var
o
=
layui
.
$
,
i
=
{},
l
=
o
(
"
body
"
);
String
.
prototype
.
width
=
function
(
t
,
e
){
e
=
e
||!
1
;
var
i
=
t
||
l
.
css
(
"
font
"
),
t
=
o
(
"
<div></div>
"
);
e
?
t
.
text
(
this
):
t
.
html
(
this
),
t
.
css
({
position
:
"
absolute
"
,
float
:
"
left
"
,
"
white-space
"
:
"
nowrap
"
,
visibility
:
"
hidden
"
,
font
:
i
}).
appendTo
(
l
);
i
=
t
.
width
();
return
t
.
remove
(),
i
},
t
(
"
mstable
"
,{
render
:
function
(
t
){
i
[
t
.
id
]
=
t
;
var
e
=
this
;
layui
.
each
(
i
,
function
(){
!
function
(
d
,
l
){
var
t
=
o
(
l
.
elem
),
e
=
t
.
next
().
children
(
"
.layui-table-box
"
).
children
(
"
.layui-table-header
"
).
children
(
"
table
"
).
children
(
"
thead
"
).
children
(
"
tr
"
).
children
(
"
th
"
),
i
=
t
.
next
().
children
(
"
.layui-table-box
"
).
children
(
"
.layui-table-fixed
"
).
children
(
"
.layui-table-header
"
).
children
(
"
table
"
).
children
(
"
thead
"
).
children
(
"
tr
"
).
children
(
"
th
"
),
r
=
t
.
next
().
children
(
"
.layui-table-box
"
).
children
(
"
.layui-table-body
"
).
children
(
"
table
"
).
children
(
"
tbody
"
).
children
(
"
tr
"
),
c
=
t
.
next
().
children
(
"
.layui-table-total
"
).
find
(
"
tr
"
);
e
.
add
(
i
).
on
(
"
dblclick
"
,
function
(
t
){
var
e
=
o
(
this
),
i
=
t
.
clientX
-
e
.
offset
().
left
,
t
=
e
.
attr
(
"
data-key
"
).
split
(
"
-
"
),
t
=
l
.
cols
[
t
[
1
]][
t
[
2
]];
s
(
0
,
e
,
0
<
e
.
parents
(
"
.layui-table-fixed-r
"
).
length
?
i
<=
10
:
e
.
width
()
-
i
<=
10
,
t
),
h
(
l
,
e
,
0
<
e
.
parents
(
"
.layui-table-fixed-r
"
).
length
?
i
<=
10
:
e
.
width
()
-
i
<=
10
,
t
)});
var
a
=
0
,
n
=
0
;
e
.
add
(
i
).
each
(
function
(
t
,
e
){
var
i
=
o
(
this
).
attr
(
"
data-key
"
).
split
(
"
-
"
),
i
=
l
.
cols
[
i
[
1
]][
i
[
2
]];
!
0
===
i
.
withAuto
&&
(
s
(
0
,
o
(
this
),
!
0
,
i
),
"
widthAutoSize
"
in
i
&&
"
widthAutoOld
"
in
i
&&
(
a
+=
i
.
widthAutoOld
,
a
-=
i
.
widthAutoSize
,
n
++
))}),
0
<
a
&&
0
<
n
&&
e
.
add
(
i
).
each
(
function
(
t
,
e
){
var
i
=
o
(
this
).
attr
(
"
data-key
"
).
split
(
"
-
"
),
i
=
l
.
cols
[
i
[
1
]][
i
[
2
]];
!
0
===
i
.
withAuto
&&
(
i
.
width
=
i
.
widthAutoSize
+
a
/
n
)});
function
h
(
t
,
e
,
i
,
l
){
var
a
=
e
.
data
(
"
key
"
),
n
=
a
.
split
(
"
-
"
);
3
===
n
.
length
&&
(
n
[
1
],
n
[
2
]);
1
<
e
.
attr
(
"
colspan
"
)
||
e
.
data
(
"
unresize
"
)
||
i
&&
d
.
getCssRule
(
t
,
a
,
function
(
t
){
t
.
style
.
width
=
l
.
width
+
"
px
"
})}
function
s
(
t
,
e
,
i
,
l
){
var
a
,
n
,
d
=
e
.
data
(
"
key
"
),
h
=
d
.
split
(
"
-
"
);
3
===
h
.
length
&&
(
h
[
1
],
h
[
2
]);
1
<
e
.
attr
(
"
colspan
"
)
||
e
.
data
(
"
unresize
"
)
||
i
&&
(
l
.
widthAutoOld
=
e
.
width
(),
a
=
e
.
text
().
width
(
e
.
css
(
"
font
"
))
+
21
,
n
=
e
.
css
(
"
font
"
),
r
.
children
(
'
td[data-key="
'
+
d
+
'
"]
'
).
each
(
function
(
t
,
e
){
var
i
=
0
;
o
(
this
).
children
().
children
()
&&
0
<
o
(
this
).
children
().
children
().
length
?
i
+=
o
(
this
).
children
().
html
().
width
(
n
):
i
=
o
(
this
).
text
().
width
(
n
,
!
0
),
a
<
i
&&
(
a
=
i
)}),
0
<
c
.
length
&&
(
d
=
c
.
children
(
'
td[data-key="
'
+
d
+
'
"]
'
).
text
().
width
(
n
),
a
<
d
&&
(
a
=
d
)),
a
+=
32
,
a
=
Math
.
min
(
a
,
500
),
l
.
width
=
a
,
l
.
widthAutoSize
=
a
)}
e
.
add
(
i
).
each
(
function
(
t
,
e
){
var
i
=
o
(
this
).
attr
(
"
data-key
"
).
split
(
"
-
"
),
i
=
l
.
cols
[
i
[
1
]][
i
[
2
]];
!
0
===
i
.
withAuto
&&
h
(
l
,
o
(
this
),
!
0
,
i
)})}(
e
,
this
)})},
getCssRule
:
function
(
t
,
i
,
l
){
t
=
t
.
elem
.
next
().
find
(
"
style
"
)[
0
],
t
=
t
.
sheet
||
t
.
styleSheet
||
{},
t
=
t
.
cssRules
||
t
.
rules
;
layui
.
each
(
t
,
function
(
t
,
e
){
if
(
e
.
selectorText
===
"
.laytable-cell-
"
+
i
)
return
l
(
e
),
!
0
})}})});
\ No newline at end of file
\ No newline at end of file
public/vendor/ModuleDeveloper/entry/moduleDeveloper.js
浏览文件 @
7f8616d3
此差异已折叠。
点击以展开。
public/vendor/ModuleStore/entry/moduleStore.js
浏览文件 @
7f8616d3
此差异已折叠。
点击以展开。
vendor/modstart/modstart/asset/common/base.js
浏览文件 @
7f8616d3
此差异已折叠。
点击以展开。
vendor/modstart/modstart/asset/layui/lay/ext/mstable.js
浏览文件 @
7f8616d3
layui
.
define
([],
function
(
t
){
var
o
=
layui
.
$
,
i
=
{},
u
=
o
(
"
body
"
);
t
(
"
mstable
"
,{
render
:
function
(
t
){
i
[
t
.
id
]
=
t
;
var
e
=
this
;
layui
.
each
(
i
,
function
(){
!
function
(
d
,
l
){
var
t
=
o
(
l
.
elem
),
e
=
t
.
next
().
children
(
"
.layui-table-box
"
).
children
(
"
.layui-table-header
"
).
children
(
"
table
"
).
children
(
"
thead
"
).
children
(
"
tr
"
).
children
(
"
th
"
),
i
=
t
.
next
().
children
(
"
.layui-table-box
"
).
children
(
"
.layui-table-fixed
"
).
children
(
"
.layui-table-header
"
).
children
(
"
table
"
).
children
(
"
thead
"
).
children
(
"
tr
"
).
children
(
"
th
"
),
r
=
t
.
next
().
children
(
"
.layui-table-box
"
).
children
(
"
.layui-table-body
"
).
children
(
"
table
"
).
children
(
"
tbody
"
).
children
(
"
tr
"
),
c
=
t
.
next
().
children
(
"
.layui-table-total
"
).
find
(
"
tr
"
);
String
.
prototype
.
width
=
function
(
t
){
var
e
=
t
||
u
.
css
(
"
font
"
),
t
=
o
(
"
<div>
"
+
this
+
"
</div>
"
).
css
({
position
:
"
absolute
"
,
float
:
"
left
"
,
"
white-space
"
:
"
nowrap
"
,
visibility
:
"
hidden
"
,
font
:
e
}).
appendTo
(
u
),
e
=
t
.
width
();
return
t
.
remove
(),
e
},
e
.
add
(
i
).
on
(
"
dblclick
"
,
function
(
t
){
var
e
=
o
(
this
),
i
=
t
.
clientX
-
e
.
offset
().
left
,
t
=
e
.
attr
(
"
data-key
"
).
split
(
"
-
"
),
t
=
l
.
cols
[
t
[
1
]][
t
[
2
]];
s
(
0
,
e
,
0
<
e
.
parents
(
"
.layui-table-fixed-r
"
).
length
?
i
<=
10
:
e
.
width
()
-
i
<=
10
,
t
),
h
(
l
,
e
,
0
<
e
.
parents
(
"
.layui-table-fixed-r
"
).
length
?
i
<=
10
:
e
.
width
()
-
i
<=
10
,
t
)});
var
a
=
0
,
n
=
0
;
e
.
add
(
i
).
each
(
function
(
t
,
e
){
var
i
=
o
(
this
).
attr
(
"
data-key
"
).
split
(
"
-
"
),
i
=
l
.
cols
[
i
[
1
]][
i
[
2
]];
!
0
===
i
.
withAuto
&&
(
s
(
0
,
o
(
this
),
!
0
,
i
),
"
widthAutoSize
"
in
i
&&
"
widthAutoOld
"
in
i
&&
(
a
+=
i
.
widthAutoOld
,
a
-=
i
.
widthAutoSize
,
n
++
))}),
0
<
a
&&
0
<
n
&&
e
.
add
(
i
).
each
(
function
(
t
,
e
){
var
i
=
o
(
this
).
attr
(
"
data-key
"
).
split
(
"
-
"
),
i
=
l
.
cols
[
i
[
1
]][
i
[
2
]];
!
0
===
i
.
withAuto
&&
(
i
.
width
=
i
.
widthAutoSize
+
a
/
n
)});
function
h
(
t
,
e
,
i
,
l
){
var
a
=
e
.
data
(
"
key
"
),
n
=
a
.
split
(
"
-
"
);
3
===
n
.
length
&&
(
n
[
1
],
n
[
2
]);
1
<
e
.
attr
(
"
colspan
"
)
||
e
.
data
(
"
unresize
"
)
||
i
&&
d
.
getCssRule
(
t
,
a
,
function
(
t
){
t
.
style
.
width
=
l
.
width
+
"
px
"
})}
function
s
(
t
,
e
,
i
,
l
){
var
a
,
n
,
d
=
e
.
data
(
"
key
"
),
h
=
d
.
split
(
"
-
"
);
3
===
h
.
length
&&
(
h
[
1
],
h
[
2
]);
1
<
e
.
attr
(
"
colspan
"
)
||
e
.
data
(
"
unresize
"
)
||
i
&&
(
l
.
widthAutoOld
=
e
.
width
(),
a
=
e
.
text
().
width
(
e
.
css
(
"
font
"
))
+
21
,
n
=
e
.
css
(
"
font
"
),
r
.
children
(
'
td[data-key="
'
+
d
+
'
"]
'
).
each
(
function
(
t
,
e
){
var
i
=
0
;
o
(
this
).
children
().
children
()
&&
0
<
o
(
this
).
children
().
children
().
length
?
i
+=
o
(
this
).
children
().
html
().
width
(
n
):
i
=
o
(
this
).
text
().
width
(
n
),
a
<
i
&&
(
a
=
i
)}),
0
<
c
.
length
&&
(
d
=
c
.
children
(
'
td[data-key="
'
+
d
+
'
"]
'
).
text
().
width
(
n
),
a
<
d
&&
(
a
=
d
)),
a
+=
32
,
a
=
Math
.
min
(
a
,
500
),
l
.
width
=
a
,
l
.
widthAutoSize
=
a
)}
e
.
add
(
i
).
each
(
function
(
t
,
e
){
var
i
=
o
(
this
).
attr
(
"
data-key
"
).
split
(
"
-
"
),
i
=
l
.
cols
[
i
[
1
]][
i
[
2
]];
!
0
===
i
.
withAuto
&&
h
(
l
,
o
(
this
),
!
0
,
i
)})}(
e
,
this
)})},
getCssRule
:
function
(
t
,
i
,
l
){
t
=
t
.
elem
.
next
().
find
(
"
style
"
)[
0
],
t
=
t
.
sheet
||
t
.
styleSheet
||
{},
t
=
t
.
cssRules
||
t
.
rules
;
layui
.
each
(
t
,
function
(
t
,
e
){
if
(
e
.
selectorText
===
"
.laytable-cell-
"
+
i
)
return
l
(
e
),
!
0
})}})});
layui
.
define
([],
function
(
t
){
var
o
=
layui
.
$
,
i
=
{},
l
=
o
(
"
body
"
);
String
.
prototype
.
width
=
function
(
t
,
e
){
e
=
e
||!
1
;
var
i
=
t
||
l
.
css
(
"
font
"
),
t
=
o
(
"
<div></div>
"
);
e
?
t
.
text
(
this
):
t
.
html
(
this
),
t
.
css
({
position
:
"
absolute
"
,
float
:
"
left
"
,
"
white-space
"
:
"
nowrap
"
,
visibility
:
"
hidden
"
,
font
:
i
}).
appendTo
(
l
);
i
=
t
.
width
();
return
t
.
remove
(),
i
},
t
(
"
mstable
"
,{
render
:
function
(
t
){
i
[
t
.
id
]
=
t
;
var
e
=
this
;
layui
.
each
(
i
,
function
(){
!
function
(
d
,
l
){
var
t
=
o
(
l
.
elem
),
e
=
t
.
next
().
children
(
"
.layui-table-box
"
).
children
(
"
.layui-table-header
"
).
children
(
"
table
"
).
children
(
"
thead
"
).
children
(
"
tr
"
).
children
(
"
th
"
),
i
=
t
.
next
().
children
(
"
.layui-table-box
"
).
children
(
"
.layui-table-fixed
"
).
children
(
"
.layui-table-header
"
).
children
(
"
table
"
).
children
(
"
thead
"
).
children
(
"
tr
"
).
children
(
"
th
"
),
r
=
t
.
next
().
children
(
"
.layui-table-box
"
).
children
(
"
.layui-table-body
"
).
children
(
"
table
"
).
children
(
"
tbody
"
).
children
(
"
tr
"
),
c
=
t
.
next
().
children
(
"
.layui-table-total
"
).
find
(
"
tr
"
);
e
.
add
(
i
).
on
(
"
dblclick
"
,
function
(
t
){
var
e
=
o
(
this
),
i
=
t
.
clientX
-
e
.
offset
().
left
,
t
=
e
.
attr
(
"
data-key
"
).
split
(
"
-
"
),
t
=
l
.
cols
[
t
[
1
]][
t
[
2
]];
s
(
0
,
e
,
0
<
e
.
parents
(
"
.layui-table-fixed-r
"
).
length
?
i
<=
10
:
e
.
width
()
-
i
<=
10
,
t
),
h
(
l
,
e
,
0
<
e
.
parents
(
"
.layui-table-fixed-r
"
).
length
?
i
<=
10
:
e
.
width
()
-
i
<=
10
,
t
)});
var
a
=
0
,
n
=
0
;
e
.
add
(
i
).
each
(
function
(
t
,
e
){
var
i
=
o
(
this
).
attr
(
"
data-key
"
).
split
(
"
-
"
),
i
=
l
.
cols
[
i
[
1
]][
i
[
2
]];
!
0
===
i
.
withAuto
&&
(
s
(
0
,
o
(
this
),
!
0
,
i
),
"
widthAutoSize
"
in
i
&&
"
widthAutoOld
"
in
i
&&
(
a
+=
i
.
widthAutoOld
,
a
-=
i
.
widthAutoSize
,
n
++
))}),
0
<
a
&&
0
<
n
&&
e
.
add
(
i
).
each
(
function
(
t
,
e
){
var
i
=
o
(
this
).
attr
(
"
data-key
"
).
split
(
"
-
"
),
i
=
l
.
cols
[
i
[
1
]][
i
[
2
]];
!
0
===
i
.
withAuto
&&
(
i
.
width
=
i
.
widthAutoSize
+
a
/
n
)});
function
h
(
t
,
e
,
i
,
l
){
var
a
=
e
.
data
(
"
key
"
),
n
=
a
.
split
(
"
-
"
);
3
===
n
.
length
&&
(
n
[
1
],
n
[
2
]);
1
<
e
.
attr
(
"
colspan
"
)
||
e
.
data
(
"
unresize
"
)
||
i
&&
d
.
getCssRule
(
t
,
a
,
function
(
t
){
t
.
style
.
width
=
l
.
width
+
"
px
"
})}
function
s
(
t
,
e
,
i
,
l
){
var
a
,
n
,
d
=
e
.
data
(
"
key
"
),
h
=
d
.
split
(
"
-
"
);
3
===
h
.
length
&&
(
h
[
1
],
h
[
2
]);
1
<
e
.
attr
(
"
colspan
"
)
||
e
.
data
(
"
unresize
"
)
||
i
&&
(
l
.
widthAutoOld
=
e
.
width
(),
a
=
e
.
text
().
width
(
e
.
css
(
"
font
"
))
+
21
,
n
=
e
.
css
(
"
font
"
),
r
.
children
(
'
td[data-key="
'
+
d
+
'
"]
'
).
each
(
function
(
t
,
e
){
var
i
=
0
;
o
(
this
).
children
().
children
()
&&
0
<
o
(
this
).
children
().
children
().
length
?
i
+=
o
(
this
).
children
().
html
().
width
(
n
):
i
=
o
(
this
).
text
().
width
(
n
,
!
0
),
a
<
i
&&
(
a
=
i
)}),
0
<
c
.
length
&&
(
d
=
c
.
children
(
'
td[data-key="
'
+
d
+
'
"]
'
).
text
().
width
(
n
),
a
<
d
&&
(
a
=
d
)),
a
+=
32
,
a
=
Math
.
min
(
a
,
500
),
l
.
width
=
a
,
l
.
widthAutoSize
=
a
)}
e
.
add
(
i
).
each
(
function
(
t
,
e
){
var
i
=
o
(
this
).
attr
(
"
data-key
"
).
split
(
"
-
"
),
i
=
l
.
cols
[
i
[
1
]][
i
[
2
]];
!
0
===
i
.
withAuto
&&
h
(
l
,
o
(
this
),
!
0
,
i
)})}(
e
,
this
)})},
getCssRule
:
function
(
t
,
i
,
l
){
t
=
t
.
elem
.
next
().
find
(
"
style
"
)[
0
],
t
=
t
.
sheet
||
t
.
styleSheet
||
{},
t
=
t
.
cssRules
||
t
.
rules
;
layui
.
each
(
t
,
function
(
t
,
e
){
if
(
e
.
selectorText
===
"
.laytable-cell-
"
+
i
)
return
l
(
e
),
!
0
})}})});
\ No newline at end of file
\ No newline at end of file
vendor/modstart/modstart/resources/asset/src/layui/lay/ext/mstable.js
浏览文件 @
7f8616d3
...
@@ -4,6 +4,28 @@ layui.define([], function (exports) {
...
@@ -4,6 +4,28 @@ layui.define([], function (exports) {
tables
=
{},
tables
=
{},
_BODY
=
$
(
'
body
'
);
_BODY
=
$
(
'
body
'
);
String
.
prototype
.
width
=
function
(
font
,
isText
)
{
var
html
=
this
;
isText
=
isText
||
false
var
f
=
font
||
_BODY
.
css
(
'
font
'
),
o
=
$
(
'
<div></div>
'
);
if
(
isText
)
{
o
.
text
(
html
)
}
else
{
o
.
html
(
html
)
}
o
.
css
({
'
position
'
:
'
absolute
'
,
'
float
'
:
'
left
'
,
'
white-space
'
:
'
nowrap
'
,
'
visibility
'
:
'
hidden
'
,
'
font
'
:
f
}).
appendTo
(
_BODY
);
var
w
=
o
.
width
();
o
.
remove
();
return
w
;
}
var
mod
=
{
var
mod
=
{
render
:
function
(
myTable
)
{
render
:
function
(
myTable
)
{
tables
[
myTable
.
id
]
=
myTable
tables
[
myTable
.
id
]
=
myTable
...
@@ -19,22 +41,6 @@ layui.define([], function (exports) {
...
@@ -19,22 +41,6 @@ layui.define([], function (exports) {
fixTh
=
$table
.
next
().
children
(
'
.layui-table-box
'
).
children
(
'
.layui-table-fixed
'
).
children
(
'
.layui-table-header
'
).
children
(
'
table
'
).
children
(
'
thead
'
).
children
(
'
tr
'
).
children
(
'
th
'
),
fixTh
=
$table
.
next
().
children
(
'
.layui-table-box
'
).
children
(
'
.layui-table-fixed
'
).
children
(
'
.layui-table-header
'
).
children
(
'
table
'
).
children
(
'
thead
'
).
children
(
'
tr
'
).
children
(
'
th
'
),
$tableBodytr
=
$table
.
next
().
children
(
'
.layui-table-box
'
).
children
(
'
.layui-table-body
'
).
children
(
'
table
'
).
children
(
'
tbody
'
).
children
(
'
tr
'
),
$tableBodytr
=
$table
.
next
().
children
(
'
.layui-table-box
'
).
children
(
'
.layui-table-body
'
).
children
(
'
table
'
).
children
(
'
tbody
'
).
children
(
'
tr
'
),
$totalTr
=
$table
.
next
().
children
(
'
.layui-table-total
'
).
find
(
'
tr
'
);
$totalTr
=
$table
.
next
().
children
(
'
.layui-table-total
'
).
find
(
'
tr
'
);
String
.
prototype
.
width
=
function
(
font
)
{
var
f
=
font
||
_BODY
.
css
(
'
font
'
),
o
=
$
(
'
<div>
'
+
this
+
'
</div>
'
)
.
css
({
'
position
'
:
'
absolute
'
,
'
float
'
:
'
left
'
,
'
white-space
'
:
'
nowrap
'
,
'
visibility
'
:
'
hidden
'
,
'
font
'
:
f
})
.
appendTo
(
_BODY
),
w
=
o
.
width
();
o
.
remove
();
return
w
;
}
th
.
add
(
fixTh
).
on
(
'
dblclick
'
,
function
(
e
)
{
th
.
add
(
fixTh
).
on
(
'
dblclick
'
,
function
(
e
)
{
var
othis
=
$
(
this
),
var
othis
=
$
(
this
),
pLeft
=
e
.
clientX
-
othis
.
offset
().
left
;
pLeft
=
e
.
clientX
-
othis
.
offset
().
left
;
...
@@ -89,7 +95,6 @@ layui.define([], function (exports) {
...
@@ -89,7 +95,6 @@ layui.define([], function (exports) {
}
}
}
}
function
computeColumnWidth
(
myTable
,
othis
,
isHandle
,
config
)
{
function
computeColumnWidth
(
myTable
,
othis
,
isHandle
,
config
)
{
var
key
=
othis
.
data
(
'
key
'
)
var
key
=
othis
.
data
(
'
key
'
)
,
keyArray
=
key
.
split
(
'
-
'
)
,
keyArray
=
key
.
split
(
'
-
'
)
...
@@ -105,7 +110,7 @@ layui.define([], function (exports) {
...
@@ -105,7 +110,7 @@ layui.define([], function (exports) {
if
(
$
(
this
).
children
().
children
()
&&
$
(
this
).
children
().
children
().
length
>
0
)
{
if
(
$
(
this
).
children
().
children
()
&&
$
(
this
).
children
().
children
().
length
>
0
)
{
curWidth
+=
$
(
this
).
children
().
html
().
width
(
font
)
curWidth
+=
$
(
this
).
children
().
html
().
width
(
font
)
}
else
{
}
else
{
curWidth
=
$
(
this
).
text
().
width
(
font
);
curWidth
=
$
(
this
).
text
().
width
(
font
,
true
);
}
}
if
(
maxWidth
<
curWidth
)
{
if
(
maxWidth
<
curWidth
)
{
maxWidth
=
curWidth
maxWidth
=
curWidth
...
...
vendor/modstart/modstart/resources/asset/src/lib/form.js
浏览文件 @
7f8616d3
...
@@ -243,7 +243,9 @@ var Form = {
...
@@ -243,7 +243,9 @@ var Form = {
if
(
Dialog
)
{
if
(
Dialog
)
{
var
msg
=
$
(
this
).
attr
(
'
data-form-loading
'
);
var
msg
=
$
(
this
).
attr
(
'
data-form-loading
'
);
Dialog
.
loadingOn
(
msg
);
if
(
$
(
this
).
is
(
'
[data-form-loading]
'
))
{
Dialog
.
loadingOn
(
msg
);
}
}
}
return
true
;
return
true
;
...
...
vendor/modstart/modstart/src/Module/ModuleManager.php
浏览文件 @
7f8616d3
...
@@ -238,7 +238,7 @@ class ModuleManager
...
@@ -238,7 +238,7 @@ class ModuleManager
if
(
!
$v
[
'isDir'
])
{
if
(
!
$v
[
'isDir'
])
{
continue
;
continue
;
}
}
if
(
starts_with
(
$v
[
'filename'
],
'_delete_.'
))
{
if
(
starts_with
(
$v
[
'filename'
],
'_delete_.'
)
||
starts_with
(
$v
[
'filename'
],
'_'
)
)
{
continue
;
continue
;
}
}
$modules
[
$v
[
'filename'
]]
=
[
$modules
[
$v
[
'filename'
]]
=
[
...
...
vendor/modstart/modstart/views/core/grid/index.blade.php
浏览文件 @
7f8616d3
...
@@ -100,7 +100,7 @@
...
@@ -100,7 +100,7 @@
return
items
;
return
items
;
};
};
layui
.
extend
({
layui
.
extend
({
mstable
:
window
.
__msCDN
+
'
asset/layui/lay/ext/mstable
'
mstable
:
window
.
__msCDN
+
'
asset/layui/lay/ext/mstable
.js?v20220119
'
});
});
layui
.
use
([
'
table
'
,
'
laypage
'
,
'
mstable
'
],
function
()
{
layui
.
use
([
'
table
'
,
'
laypage
'
,
'
mstable
'
],
function
()
{
var
table
=
layui
.
table
.
render
({
var
table
=
layui
.
table
.
render
({
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录