mooho-base-admin-plus 2.7.6 → 2.7.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/history.md CHANGED
@@ -139,3 +139,4 @@ mooho-base-admin-plus@2.7.3 - 修复公式最后一位为)时的bug
139
139
  mooho-base-admin-plus@2.7.4 - 修复全选的bug
140
140
  mooho-base-admin-plus@2.7.5 - 将List组件改为后端分页
141
141
  mooho-base-admin-plus@2.7.6 - 修复审批后没有刷新的bug
142
+ mooho-base-admin-plus@2.7.7 - 增加自定义显示格式
@@ -16660,7 +16660,7 @@ const initRouter = (r, a) => {
16660
16660
  }), router.afterEach((o) => {
16661
16661
  Setting.showProgressBar && ViewUIPlus.LoadingBar.finish(), setting.layout.tabs && store.dispatch("admin/page/open", o), window.document.title = window.$app.$t(o.meta.title) + " - " + Setting.info.title, window.scrollTo(0, 0);
16662
16662
  });
16663
- }, router$1 = router, mixinPage = {
16663
+ }, router$1 = router, showFormat = {}, mixinPage = {
16664
16664
  data() {
16665
16665
  return {
16666
16666
  grid4: {
@@ -16725,6 +16725,7 @@ const initRouter = (r, a) => {
16725
16725
  ...mapState("admin/user", ["info"]),
16726
16726
  ...mapState("admin/cache", ["userNames", "enums", "dicts", "caches"]),
16727
16727
  ...mapState("admin/menu", ["userPermissions"]),
16728
+ ...mapState("admin/displayFormat", ["defaultFormat"]),
16728
16729
  rootPath() {
16729
16730
  return "admin".trim() ? "/admin/static/" : "/static/";
16730
16731
  },
@@ -16822,6 +16823,11 @@ const initRouter = (r, a) => {
16822
16823
  let d = this.parseData(r, o);
16823
16824
  if (d == null)
16824
16825
  return null;
16826
+ if (showFormat.customFormat) {
16827
+ let f = showFormat.customFormat(r, a);
16828
+ if (f != null)
16829
+ return f;
16830
+ }
16825
16831
  if (s === "DateTime")
16826
16832
  return (l || "").trim() ? format$4(new Date(d), l) : format$4(new Date(d), "yyyy-MM-dd");
16827
16833
  if (s === "Integer")
@@ -89973,6 +89979,7 @@ export {
89973
89979
  service as request,
89974
89980
  router$1 as router,
89975
89981
  Setting as setting,
89982
+ showFormat,
89976
89983
  store,
89977
89984
  taskApi,
89978
89985
  util$2 as util