1
0
mirror of https://shylinux.com/x/volcanos synced 2025-04-25 08:48:06 +08:00
This commit is contained in:
IT 老营长 @云轩领航-创始人 2024-03-10 19:48:53 +08:00
parent b8ad3a3719
commit f33fa5b9fe

View File

@ -73,7 +73,8 @@ Volcanos("user", {
can.Conf(["trans", key]) || can.Conf(["feature._trans", key]) ||
can.core.Value(can.user._trans, key) || text
}, _trans: {"_week_header": ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]},
time: function(can, time, fmt) { var now = can.base.Date(time), list = can.user._trans["_week_header"]
time: function(can, time, fmt) {
var now = can.base.Date(time), list = can.user._trans["_week_header"]
return fmt == "%W"? list: can.base.Time(time, (fmt||"%y-%m-%d %H:%M:%S").replace("%w", list[now.getDay()]))
},
toastConfirm: function(can, content, title, action) {