This commit is contained in:
2026-05-04 22:24:34 +08:00
parent c5f00a04c7
commit 1a56b292a1
19 changed files with 22 additions and 21 deletions

View File

@@ -900,9 +900,9 @@ const In = (t, e, i, r) => ae.redirect(i, e, r), Mn = (t, e = {}, i, r = {}) =>
return `${a}/${u}`;
}, `/api/${i}`);
return I.del(n, e.param).msg();
}, Ni = (t, e, i, { status: { loading: r, disabled: n }, setStatus: o }) => {
const a = { loading: (s) => s === void 0 ? r : o((l) => ({ ...l, loading: s })), disabled: (s) => s === void 0 ? n : o((l) => ({ ...l, disabled: s })) };
return f.isFunction(i) ? i.call(null, { ...e, ...a }) : f.isString(i) && i ? Me.exec(i, e, a) : null;
}, Ni = (t, e, i, { status: { loading: r, disabled: n }, setStatus: o, listFn: a }) => {
const s = { loading: (l) => l === void 0 ? r : o((d) => ({ ...d, loading: l })), disabled: (l) => l === void 0 ? n : o((d) => ({ ...d, disabled: l })), list: a };
return f.isFunction(i) ? i.call(null, e, s) : f.isString(i) && i ? Me.exec(i, e, s) : null;
}, vi = (t, e, i, r, n) => f.isString(i) && i ? pe.getWidgetComponent(i).then(({ default: o }) => re.modal(o, { ...e, $setting: r }, n != null && n.title ? { ...n, title: f.template(n.title)(t) } : n)).catch((o) => {
re.error(i, { content: o.toString() });
}) : re.modal(i, { ...e, $setting: r }, n != null && n.title ? { ...n, title: f.template(n.title)(t) } : n), Vn = (t, e, i, r, n) => re.modal(rr, { ...e, $setting: r, code: i }, n != null && n.title ? { ...n, title: f.template(n.title)(t) } : n), Dn = (t, e, i, r, n) => re.modal(ti, { base62params: e, $setting: r, listCode: i }, n != null && n.title ? { ...n, title: f.template(n.title)(t) } : n), zn = ({ widget: t, widgetType: e, widgetData: i, widgetProps: r, widgetSetting: n, widgetContainerProps: o }, { onAfterClick: a, onBeforeClick: s } = {}) => {