Files
vexplor/frontend/lib/registry/components/v2-process-work-standard/ProcessWorkStandardRenderer.tsx
kjs 429f1ba6ee feat: add item list mode configuration and screen code handling
- Introduced `itemListMode` to the process work standard configuration, allowing users to select between displaying all items or only registered items.
- Added `screenCode` to automatically set the screen ID when in registered mode.
- Updated the `ProcessWorkStandardComponent` to handle the new configuration and adjust item fetching logic accordingly.
- Enhanced the `ProcessWorkStandardConfigPanel` to include a select input for item list mode, improving user experience and configurability.

These changes aim to enhance the flexibility and usability of the process work standard component.

Made-with: Cursor
2026-03-13 14:01:09 +09:00

34 lines
1016 B
TypeScript

"use client";
import React from "react";
import { AutoRegisteringComponentRenderer } from "../../AutoRegisteringComponentRenderer";
import { V2ProcessWorkStandardDefinition } from "./index";
import { ProcessWorkStandardComponent } from "./ProcessWorkStandardComponent";
export class ProcessWorkStandardRenderer extends AutoRegisteringComponentRenderer {
static componentDefinition = V2ProcessWorkStandardDefinition;
render(): React.ReactElement {
const { formData, isPreview, config, tableName, screenId } = this.props as Record<
string,
unknown
>;
return (
<ProcessWorkStandardComponent
config={(config as object) || {}}
formData={formData as Record<string, unknown>}
tableName={tableName as string}
isPreview={isPreview as boolean}
screenId={screenId as number | string}
/>
);
}
}
ProcessWorkStandardRenderer.registerSelf();
if (process.env.NODE_ENV === "development") {
ProcessWorkStandardRenderer.enableHotReload();
}