This commit is contained in:
2025-11-22 13:01:18 +08:00
parent 404b661532
commit 6ecb37d798
19 changed files with 19 additions and 19 deletions

View File

@@ -357,7 +357,7 @@ const ee = S.createContext({ listCode: "", classNames: {}, getBase62params: (e,
}, ba = ({ listCode: e, className: t, layouts: n = {}, dataSource: a, isPaginate: r, isItemOperations: i, isBatchOperations: o, batchOperations: s, itemOperations: l, itemOperationsAccess: d, resource: c, primaryKey: g, title: h, itemGridLayout: p, $setting: f, tabs: w, isConditionFormLayout: C, isTreeSider: k, treeSiderConfig: x }) => {
const { classNames: v, onClickCallback: T } = ie(ee), R = m.pick(f, ["column", "colWidth", "beforeRender", "afterRender", "style"]), E = un(l, d, g, c), M = G((z, L, B) => u(Ca, { className: F("ff-data-list-framework-item", v.item), operations: i ? E(L) : [], data: c ? { [c]: L } : L, children: z, onClickCallback: T }), [c, g, i, T, l, d]);
return O("div", { className: F("ff-data-list-framework", t), children: [u(n.sider, { isTreeSider: k, ...x }), O("div", { className: F("ff-data-list-container", v == null ? void 0 : v.container), children: [u(n.filter, { isConditionFormLayout: C }), u(n.toolbar, { title: h, tabs: w }), u(ja, { ...R, ...p, primaryKey: g, itemRender: M, dataSource: a }), u(n.footer, { isPaginate: r, isOperations: o, operations: s })] })] });
}, Ca = ({ className: e, operations: t, children: n, data: a, onClickCallback: r }) => O("div", { className: F("data-list-grid-layout-item-container", e), children: [n, !!(t != null && t.length) && u("div", { className: "data-list-grid-layout-item-actions", children: t.map((i) => u("span", { className: "data-list-grid-layout-item-action", children: u($.Link, { uuid: i.uuid, type: i.type, name: i.name, widget: i.widget, widgetType: i.widgetType, widgetProps: i.widgetProps, widgetSetting: i.widgetSetting, widgetContainerProps: i.widgetContainerSetting, data: a, confirm: i.confirm, onAfterClick: (o) => o !== !1 && (r == null ? void 0 : r(i.isRefresh, a)) }, i.uuid || yt()) }, (i == null ? void 0 : i.uuid) || yt())) })] }), ka = ({ listCode: e, className: t, layouts: n = {}, dataSource: a, columns: r, isItemOperations: i, isBatchOperations: o, batchOperations: s, itemOperations: l, itemOperationsAccess: d, resource: c, primaryKey: g, title: h, tabs: p, isPaginate: f, isTreeSider: w, treeSiderConfig: C, isConditionFormLayout: k, ...x }) => {
}, Ca = ({ className: e, operations: t, children: n, data: a, onClickCallback: r }) => O("div", { className: F("data-list-grid-layout-item", e), children: [u("div", { className: "data-list-grid-layout-item-container", children: n }), !!(t != null && t.length) && u("div", { className: "data-list-grid-layout-item-actions", children: t.map((i) => u("span", { className: "data-list-grid-layout-item-action", children: u($.Link, { uuid: i.uuid, type: i.type, name: i.name, widget: i.widget, widgetType: i.widgetType, widgetProps: i.widgetProps, widgetSetting: i.widgetSetting, widgetContainerProps: i.widgetContainerSetting, data: a, confirm: i.confirm, onAfterClick: (o) => o !== !1 && (r == null ? void 0 : r(i.isRefresh, a)) }, i.uuid || yt()) }, (i == null ? void 0 : i.uuid) || yt())) })] }), ka = ({ listCode: e, className: t, layouts: n = {}, dataSource: a, columns: r, isItemOperations: i, isBatchOperations: o, batchOperations: s, itemOperations: l, itemOperationsAccess: d, resource: c, primaryKey: g, title: h, tabs: p, isPaginate: f, isTreeSider: w, treeSiderConfig: C, isConditionFormLayout: k, ...x }) => {
const { classNames: v, onClickCallback: T } = ie(ee), R = un(l, d, g, c), E = St(l, d, a, g, c);
return O("div", { className: F("ff-data-table-framework", t), children: [u(n.sider, { isTreeSider: w, ...C }), O("div", { className: F("ff-data-table-container", v == null ? void 0 : v.container), children: [u(n.filter, { isConditionFormLayout: k }), u(n.toolbar, { title: h, tabs: p }), u(Na, { ...x, primaryKey: g, className: "ff-data-table-content", columns: r, dataSource: a, operationRender: E ? (M) => {
var z;