refactor(web): 合并 crud 组件共同参数
This commit is contained in:
@@ -1,3 +1,13 @@
|
||||
function crudCommonOptions() {
|
||||
return {
|
||||
affixHeader: false,
|
||||
stopAutoRefreshWhenModalIsOpen: true,
|
||||
resizable: false,
|
||||
syncLocation: false,
|
||||
silentPolling: true,
|
||||
}
|
||||
}
|
||||
|
||||
function timeAndFrom(field, fromNow, emptyText = '未停止', showSource = true) {
|
||||
let tpl = "${IF(" + field + " === 0, '(" + emptyText + ")', CONCATENATE('<span class=\"font-bold\">'," + fromNow + ",'</span>'))}"
|
||||
if (showSource) {
|
||||
|
||||
Reference in New Issue
Block a user