@sparqjs/schema-vue 0.3.7 → 0.3.8

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/dist/index.js CHANGED
@@ -4166,7 +4166,7 @@ function Ns(e, t, n, r = {}) {
4166
4166
  if (!i) return G(e, t, n);
4167
4167
  let a = Wi(t, r.embeddedInPage === !0), o = Gi(t, r.embeddedInPage === !0);
4168
4168
  if (!o) return;
4169
- let s = a === "dialog" || a === "drawer", c = s;
4169
+ let s = a === "dialog" || a === "drawer", c = s && i.raw.title !== !1 ? i.title ?? e.viewModel?.schema.title ?? e.viewModel?.resource?.title ?? "表单" : void 0, l = s;
4170
4170
  s && e.viewModel && (i = Qe(i.raw, e.viewModel.fieldsByName, e.viewModel.schema.actions, `schema.views.forms.${e.viewName}`, {
4171
4171
  defaultWrapper: i.wrapper,
4172
4172
  footerVariant: "overlay",
@@ -4178,7 +4178,7 @@ function Ns(e, t, n, r = {}) {
4178
4178
  view: i
4179
4179
  }
4180
4180
  }), Vs(i.actions, t);
4181
- let l = Zc(i.children, t, n), u = r.hideFooter === !0 ? void 0 : Hs(i.footer, t, n), d = W({
4181
+ let u = Zc(i.children, t, n), d = r.hideFooter === !0 ? void 0 : Hs(i.footer, t, n), f = W({
4182
4182
  ...t,
4183
4183
  kind: "form",
4184
4184
  title: s ? void 0 : i.title,
@@ -4189,18 +4189,18 @@ function Ns(e, t, n, r = {}) {
4189
4189
  span: i.span,
4190
4190
  gap: i.gap
4191
4191
  },
4192
- items: l,
4193
- children: Bs(l),
4194
- footer: c ? void 0 : u
4192
+ items: u,
4193
+ children: Bs(u),
4194
+ footer: l ? void 0 : d
4195
4195
  }, n);
4196
4196
  return Hi({
4197
4197
  ...t,
4198
4198
  formView: i,
4199
- title: s ? i.title : void 0,
4199
+ title: c,
4200
4200
  help: s ? i.help : void 0,
4201
4201
  helpNode: s ? Q(i.help, "form-shell", t) : void 0,
4202
- children: d,
4203
- footer: c ? u : void 0,
4202
+ children: f,
4203
+ footer: l ? d : void 0,
4204
4204
  presentation: a,
4205
4205
  open: o,
4206
4206
  close: t.controller?.closeForm