{"at":"2026-11-23T02:23:13.443Z","dir":"sent","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","method":"server/discover","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/clientInfo":{"name":"didrun-lab","version":"0.1.0"},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T02:23:13.967Z","dir":"received","era":"server_discover","message":{"error":{"code":-32601,"message":"Method not found"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-23T02:23:14.068Z","dir":"sent","era":"initialize","message":{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{},"clientInfo":{"name":"didrun-lab","version":"0.1.0"},"protocolVersion":"2025-11-25"}}}
{"at":"2026-11-23T02:23:14.545Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"prompts":{"listChanged":true},"resources":{"listChanged":true},"tools":{"listChanged":true}},"instructions":"# es-plus MCP server\n\nThis server exposes the same tool implementations that ship with @es-plus/cli,\ngiving you typed, schema-validated CRUD code generation for all three Vue render\ntargets:\n\n  - **@es-plus/vue3** (Vue 3 + Element Plus) — default\n  - **@es-plus/vue2** (Vue 2 + Element UI)\n  - **@es-plus/adapter-antdv** (Vue 3 + Ant Design Vue)\n\n## Always pick the right target\n\nEvery code-generating tool (generate_scene / generate_composition / generate_crud /\ngenerate_crud_from_config / generate_form / generate_table /\ngenerate_dialog / generate_crud_schema /\nscaffold_page / get_component_api) accepts a `target: 'vue3' | 'vue2' | 'antdv'`\nparameter. **Detect the target FIRST**, then call the generator:\n\n1. Read the user's project `package.json` (use your file-read tool)\n2. Call `detect_project_target` with the JSON content\n3. Pass the returned `target` to every subsequent tool call\n\nIf you skip detection, you'll default to vue3 — which silently produces\n`<script setup>` / `v-model:*` / Element Plus imports that won't compile in\na Vue 2 project, or the wrong UI-library imports for an Ant Design Vue project.\n\nNote: `antdv` uses Vue 3 syntax (identical to vue3); only the UI-library\nsymbols differ — `message` / `Modal` / `Tag` from ant-design-vue, and\n`<a-tag :color>` instead of `<el-tag :type>`.\n\n## Tool selection — ONE front door, then fill the intent table\n\nDo NOT shop around the tool list. For almost every request, the entry point is\n**`generate_scene`**, and your only real decision is `scene` plus filling that\nscene's intent table — for a page, `scene: 'crud'` and which of **query / table /\nform / dialog** the request implies, and the fields in each. Routing after that\nis deterministic code, not your choice:\n\n  - any **table** present → composed and compiled through the single\n    golden-covered generator (one-shot compile guaranteed);\n  - **no table** (standalone form, a search filter, an add/edit dialog on its\n    own, form+dialog) → emitted as self-contained fragments.\n\nSo \"which tool / how many tools\" collapses to \"set the surfaces that match the\nrequest\". Table-only, query+table, table+add/edit, full CRUD, dialog-only — all\nare just different `surfaces` subsets of the SAME `{ scene: 'crud', intent }`\ncall. **`generate_crud` is the same route under a compatibility name** (identical\nbytes) — use it only if a host prompt already names it.\n\nUse a standalone tool ONLY for an explicit single-component ask, or to produce a\nfragment you'll drop next to native / third-party components:\n\n  - `generate_form`  — one `<es-form>` SFC (filter / settings / embedded form)\n  - `generate_table` — one `<es-table>` SFC (list that sits beside other UI)\n  - `generate_dialog`— one `useXxxDialog()` composable (reusable add/edit modal)\n\nWhen several of those pieces must live TOGETHER in one page (but the request is\nnot a CRUD page), use **`generate_composition`** — it wires row actions to\ndialogs, query/reset to the table, and dialog success to a table refresh.\n\nNever hand-assemble a CRUD page by calling several standalone tools — that\nre-introduces the orchestration mistakes the front door exists to prevent. Fill\n`surfaces` and let the routing compose them.\n\n(`generate_crud_from_config` remains available if you want to hand-author a full\ntyped `StructuredCrudConfig` directly — `generate_scene` (scene='crud') and\n`generate_crud` are thinner intent layers over the same deterministic\ngenerator. `generate_crud_schema` is a regex NL fallback for hosts that can't\nreason; it is NOT the production path.)\n\n## Mapping the surfaces (same reasoning as the config path)\n\n**YOU do the reasoning** — read the natural-language request and fill each\nsurface's fields by understanding intent. This is real semantic mapping, not\nkeyword matching.\n\nTwo passes, every time:\n\n1. **Read first**: `esplus://examples/surfaces` (few-shot NL→`generate_scene`\n   (scene='crud') surfaces across every subset — the front-door decision) and/or\n   `esplus://examples/nl-to-config` (few-shot NL→full config with reasoning),\n   plus `esplus://conventions` + `esplus://types` for the target.\n2. **Draft** the surfaces: map each requested field by MEANING, not keywords —\n   status/type/enum → Select (dataOptions, or apiParams for remote); date/time →\n   DatePicker/TimePicker; image/file → Upload; on/off → Switch; any numeric\n   value (amount / price / quantity / stock / count / money / integer) →\n   InputNumber. Membership is\n   implied by WHICH surface list a field appears in: a filter field goes in\n   `surfaces.query`, a visible column in `surfaces.table`, a mutable add/edit\n   field in `surfaces.form`. A field that appears in several surfaces is listed\n   in each — the generator reconciles duplicates deterministically (identity\n   first-wins, semantic from form, display from table). System columns: put in\n   `table` but not `form`; detail-only: put in `table`/`form` but not\n   `query`. (If you hand-author the full config instead, this is the\n   `inQuery`/`inTable`/`inForm` partition.)\n3. **Self-review** against the original request BEFORE calling:\n   - Did every field the user named make it in, with the right `formtype`?\n   - Is each field in the right surface list(s)? Did you set `surfaces.dialog`\n     for every add/edit/view the request implies? (A dialog entry is a canned\n     key `add`/`edit`/`view`, or a full object `{ key, title?, width?,\n     fullscreen?, formItems? }` when the request names a custom dialog id /\n     title / width or a per-dialog field list.)\n   - Are all requested actions present? Do Select/Cascader fields have options?\n   - Business logic the schema can't express (permission gates, conditional\n     display, computed values) → emit a typed extension point\n     (`permissionValue` / `formatter` / `render`). **Mark it, never drop it.**\n4. **Validate before generating** — call `validate_intent` with the same\n   `{ scene, intent }` (plus the spec text when you have it). It returns the\n   capability report and per-field issues (surface membership, duplicate props,\n   missing formtype, labels absent from the spec, system fields in a form).\n   Fix every error and re-run; it only judges and never generates. For a\n   multi-page spec, `coverage_report` classifies each page from the same ledger:\n   L1 direct emit / L2 direct emit + extension points / L3 host code.\n5. **Call** `generate_scene` (scene='crud') or its compatibility alias\n   `generate_crud`/`generate_crud_from_config`, then **read the\n   returned warnings** — each one flags a likely mapping mistake; fix and\n   regenerate.\n6. **Read the `preflight` section** at the end of the result. It lists the HOST\n   prerequisites (`app.use(ESPlus, { httpRequest, permission, t })`, the UI\n   library, and — for mode=sfc dialogs — the JSX plugin) with a copy-once entry\n   boilerplate. These do not break compilation; the matching capability silently\n   turns inert, and a missing `permission` fails OPEN. When the host already has\n   an entry, pass it to `doctor_page` and act on every `missing` line.\n\n## Resources\n\nSteering few-shots (target-independent — read before generating):\n\n  - `esplus://examples/surfaces` — NL → `generate_scene` (scene='crud') surfaces, every subset (the front-door decision)\n  - `esplus://examples/nl-to-config` — NL → full StructuredCrudConfig, with reasoning\n  - `esplus://capabilities` — scene capability ledger (`es-plus.capabilities@1`): accepted/required intent keys per scene, CRUD key dispositions per mode (downgrade + reason), target × key matrix. Read it before composing an intent to know which keys actually land in the artifact.\n\nThe remaining resource URIs use a target suffix:\n\n  - `esplus://conventions` (vue3 default) / `esplus://conventions/vue2` / `esplus://conventions/antdv`\n  - `esplus://examples` (vue3 default) / `esplus://examples/vue2` / `esplus://examples/antdv`\n  - `esplus://types` (vue3 default) / `esplus://types/vue2` / `esplus://types/antdv`\n  - `esplus://crud-page-schema` (vue3 default) / `esplus://crud-page-schema/vue2` / `esplus://crud-page-schema/antdv`\n\nFetch the vue2 / antdv variants when working in those codebases — the JSON\nconfig shapes are identical, but syntax examples (defineComponent + setup,\n.sync, element-ui imports for vue2; ant-design-vue imports for antdv) differ.\n\n## Schema is portable\n\nThe defining feature of es-plus is that `formItemList`, `columns`,\n`options`, and `CrudPageSchema` JSON are byte-identical across vue2, vue3,\nand antdv. Only the wrapper SFC syntax / UI-library symbols change. When\nrefining an existing schema across turns, you can keep the same JSON and just\nregenerate.\n","protocolVersion":"2025-11-25","serverInfo":{"name":"es-plus-mcp-server","version":"2.0.0"}}}}
{"at":"2026-11-23T02:23:14.545Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T02:23:14.545Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T02:23:14.580Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"description":"Detect which es-plus target (vue3 / vue2 / antdv) matches the user's project, given the project's package.json content. The MCP client (e.g. Claude Code) reads the file from the workspace and passes it here. Use this BEFORE calling generate_scene / generate_composition / generate_crud / generate_crud_from_config / generate_form / generate_table / generate_dialog (or the legacy generate_crud_schema) / get_component_api so you pick the right target instead of defaulting to vue3.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":{},"properties":{"packageJson":{"description":"Raw string content of the user project's package.json. Read it with your file-read tool (e.g. read_file) and pass the full JSON text here.","type":"string"}},"required":["packageJson"],"type":"object"},"name":"detect_project_target"},{"description":"FRONT DOOR — SCENE ROUTER: the scene-first way to generate es-plus code. Call with `scene` = what the user is building ('crud' page / standalone 'table' / standalone 'form' / 'dialog') and `intent` = that scene's intent table. For scene='crud' the intent is exactly the generate_crud argument object (name, apiUrl, surfaces — your one reasoning step is still filling `surfaces`); for the fragment scenes it is exactly the generate_table / generate_form / generate_dialog argument object. Routing and emission are deterministic, and the output is byte-identical to the corresponding legacy tool. When the client supports MCP structured output, the artifact envelope (`contract` / `files` / `config` / `warnings` / `fingerprint`) is also returned as `structuredContent`; the text content is unchanged. Use generate_composition when several of these pieces must live TOGETHER in one page; `generate_crud` remains available as the compatibility entry for a plain list/table page and produces the same bytes as scene='crud'.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":{},"properties":{"intent":{"additionalProperties":{},"description":"The scene's intent table. scene='crud': the page intent (name/apiUrl/surfaces/…). scene='table'|'form'|'dialog': that standalone artifact's intent (fields/…). Fill only the keys for the chosen scene; unknown keys are rejected with a did-you-mean.","propertyNames":{"type":"string"},"type":"object"},"scene":{"default":"crud","description":"Which artifact the user wants: 'crud' (a full page with a table — the composite case), 'table' (one standalone es-table), 'form' (one standalone es-form), 'dialog' (one reusable add/edit dialog). Pick by WHAT is being built, not by which tool name you remember.","enum":["crud","table","form","dialog"],"type":"string"}},"required":["intent"],"type":"object"},"name":"generate_scene","outputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":{},"properties":{"contract":{"description":"Envelope protocol version: es-plus.artifact@2 or es-plus.composition@3","type":"string"},"fingerprint":{"description":"Content fingerprint of the artifact / composition","type":"string"}},"required":["contract","fingerprint"],"type":"object"}},{"description":"PAGE COMPOSER — assemble several standalone fragments into ONE working page (Page.vue + one file per node). Give it 1+ nodes, each `{ id, role?, scene, intent }` where scene is 'table' / 'form' / 'dialog' (at most one form; tables and dialogs may repeat) and intent is exactly that scene's standalone intent object. The wiring is derived deterministically from the artifact runtime contract: a row button whose key equals a dialog node id opens that dialog (title from the dialog intent's defaultTitle); the query form reloads the default table from page 1; reset reloads it with cleared filters; submit becomes a page event 'save'; a successful dialog submit refreshes the default table. The form fragment only emits the events its `buttons` render — `buttons` defaults to 'none' (no buttons at all: query/submit/reset never fire), 'query' emits query+reset, 'submit' emits submit+reset. Composition does NOT rewrite a node's intent, so wires from a channel that form cannot emit are reported in `warnings` (they would never fire — e.g. page 'save' with no save button). The default table is the node with role 'master', else the only table; in a multi-table page with neither, data channels become page events instead of guessing (and the artifact/envelope warnings name the upgrade and both remedies: the page's per-node `<nodeCamel>Refresh`/`<nodeCamel>Reload` methods — node `order-list` exposes `orderListRefresh`/`orderListReload` — or declare role 'master'). Pass `wires` to declare master-detail style links yourself (e.g. master row-action key 'view' → detail table reload, where the row is passed as the model; use to.model to pass only chosen row fields); an explicit wire overrides the derived one for the same source. Wire targets must be callable by the generated page: table refresh/reload, form validate/resetFields, component-dialog open/close; `open` is only reachable from a row-action (it carries the row), and a row-action key must match a declared rowButtons key. `behavior: 'ui-only'` wires only the UI (row button → dialog open) and turns query/reset/success into page events so the host performs its own requests; the default `data-wiring` only derives table reload/refresh (no HTTP requests — use scene 'crud' on `generate_scene` for built-in add/edit/delete). Use this when the user wants these pieces TOGETHER in one page but the request is not a CRUD page (use `generate_scene` with scene='crud' for a CRUD page). The page exposes refresh/reload/open and emits row-action/save (+ query/reset/success when there is no default table or behavior is ui-only). When the client supports MCP structured output, the composition envelope (nodes/wires/faces/page/fingerprint) is also returned as `structuredContent`; the text content is unchanged.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":{},"properties":{"behavior":{"description":"Data-wiring mode (default 'data-wiring'). 'data-wiring' derives query/reset → default table reload and dialog onSuccess → default table refresh; it does NOT generate HTTP requests (fragment intents carry no apiUrl/actions) — use scene 'crud' for built-in add/edit/delete requests. 'ui-only' wires only the UI (row button → dialog open) and turns query/reset/success into page events so the host performs requests itself. Explicit wires apply in both modes.","enum":["data-wiring","ui-only"],"type":"string"},"name":{"description":"Display name for the composed page (summary only). The component name is always ComposedPage.","type":"string"},"nodes":{"description":"The page's nodes: at most one 'form'; 'table' and 'dialog' may repeat (master-detail, multi-dialog). A row button whose key equals a dialog node id opens that dialog.","items":{"additionalProperties":{},"properties":{"id":{"description":"Node id in kebab-case (e.g. 'users', 'query-form', 'edit'). It is the output file name (<id>.vue), the template ref source, and — for a dialog node — the row-button key that opens it ('edit' binds the 编辑 button).","type":"string"},"intent":{"additionalProperties":{},"description":"The node's intent table: exactly that scene's standalone intent object (scene='table'|'form'|'dialog' — the same vocabulary the scene router takes). For a dialog, `defaultTitle` is the title used by the composed page's open().","propertyNames":{"type":"string"},"type":"object"},"role":{"description":"Optional role label (kebab-case, unique per scene). `master` marks the table that form query/reset and dialog success default to in a multi-table page. Which row button loads a detail table is a product decision — express it in `wires`, not as a role.","type":"string"},"scene":{"description":"Which standalone fragment this node is. 'crud' is not composable (it is already a full page).","enum":["table","form","dialog"],"type":"string"}},"required":["id","scene","intent"],"type":"object"},"minItems":1,"type":"array"},"target":{"description":"Page target. Defaults to the first node's explicit target, then vue3. All nodes must share one target.","enum":["vue3","vue2","antdv"],"type":"string"},"wires":{"description":"Explicit wiring, validated against the same runtime contract as derived wiring. An explicit wire overrides the derived wire for the same source (node + channel + rowAction key). Row-action targets receive the clicked row by default (e.g. master row → detail table reload(row)); set `to.model` to pass only chosen fields (e.g. { departmentId: '$row.departmentId' }) instead of the whole row.","items":{"additionalProperties":{},"properties":{"from":{"additionalProperties":{},"properties":{"channel":{"description":"Source channel declared by ARTIFACT_RUNTIME: row-action / submit / query / reset / onSuccess.","type":"string"},"node":{"description":"Source node id.","type":"string"}},"required":["node","channel"],"type":"object"},"to":{"anyOf":[{"additionalProperties":{},"properties":{"channel":{"description":"Target channel the composed page can CALL (ARTIFACT_RUNTIME.invokable): table refresh/reload, form validate/resetFields, component-dialog open/close. `model` is data, not a method. A composable dialog (mode 'composable') has no template ref — only a row-action may open it. `open` requires a row, so it is only accepted from a row-action source.","type":"string"},"model":{"additionalProperties":{"type":"string"},"description":"Row → reload params mapping, only for a row-action source targeting `reload`. Values are single-level row fields written as '$row.<field>' (e.g. { departmentId: '$row.departmentId' } → reload({ departmentId: row.departmentId })). Omit to pass the whole row (reload(row)).","propertyNames":{"type":"string"},"type":"object"},"node":{"description":"Target node id.","type":"string"}},"required":["node","channel"],"type":"object"},{"additionalProperties":{},"properties":{"event":{"description":"Page event name to emit (becomes part of the page's emits face).","type":"string"},"page":{"const":"emit","type":"string"}},"required":["page","event"],"type":"object"}]},"when":{"additionalProperties":{},"description":"Required for row-action sources: the button key this wire applies to. It must match a rowButtons key declared in the source table's intent — an undeclared key would generate a branch that never fires.","properties":{"rowAction":{"type":"string"}},"required":["rowAction"],"type":"object"}},"required":["from","to"],"type":"object"},"type":"array"}},"required":["nodes"],"type":"object"},"name":"generate_composition","outputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":{},"properties":{"contract":{"description":"Envelope protocol version: es-plus.artifact@2 or es-plus.composition@3","type":"string"},"fingerprint":{"description":"Content fingerprint of the artifact / composition","type":"string"}},"required":["contract","fingerprint"],"type":"object"}},{"description":"COMPAT ENTRY (adapter) — same product as generate_scene with scene='crud' (byte-identical), kept for hosts that already call this name. Use it for ANY request that involves a list/table, CRUD, search + results, or multiple es-plus pieces working together. Your ONE job is to fill `surfaces`: set query/table/form field lists and the dialog list to match what the request implies (any subset is valid — table-only, query+table, table+add/edit, full CRUD, etc.). A `surfaces.dialog` entry is either a canned key ('add'/'edit'/'view') or a full object `{ key, title?, width?, fullscreen?, formItems? }` when the request names a custom dialog id/title/width or a per-dialog field list. Routing is then deterministic: table-bearing requests compile through the golden-covered single generator; no-table subsets emit self-contained fragments. Do NOT manually orchestrate generate_form/generate_table/generate_dialog for a composite page — fill surfaces here and let the routing compose them. When the user wants several standalone pieces assembled into one page (not a CRUD page), call generate_composition instead. Use the standalone tools only for an explicit single-component ask or to embed a fragment next to non-es-plus components. Optional config knobs — tableOptions / formLayout / operationColumn / tableBtns / toolbarBtns / expandConfig / treeConfig / mergeConfig — may be set alongside `surfaces`; each is forwarded verbatim into the composed config, so fill them only when the request names those specifics. A no-table request whose only surface is `dialog` emits one JSX composable PER dialog entry (named use<Key>Dialog): each entry's `formItems` overrides the shared form/query body, its `title` becomes open()'s default title, and its `width`/`fullscreen` are applied. Because the dialog body is a JSX render, that path needs a JSX plugin; if the host wants a self-contained dialog with NO JSX dependency, call generate_dialog with mode:'component' instead. When the client supports MCP structured output, the artifact envelope is also returned as `structuredContent`; the text content is unchanged.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":{},"definitions":{"__schema0":{"additionalProperties":{},"properties":{"children":{"items":{"$ref":"#/definitions/__schema0"},"type":"array"},"disabled":{"type":"boolean"},"label":{"type":"string"},"tagType":{"description":"Render this option as a tag in the TABLE cell, in this semantic colour. Ignored by the form controls.","enum":["primary","success","warning","danger","info"],"type":"string"},"value":{"type":["string","number","boolean"]}},"required":["label","value"],"type":"object"},"__schema1":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}]}},"properties":{"actions":{"description":"Explicit CRUD actions. If omitted, derived from surfaces.dialog / form presence.","items":{"enum":["add","edit","delete","view","export","import"],"type":"string"},"type":"array"},"apiUrl":{"description":"REST base URL for this resource, e.g. \"/api/users\"","minLength":1,"type":"string"},"expandConfig":{"additionalProperties":false,"description":"Declarative row-expand content ({ title?, fields: [{prop, label?, labelKey?}] }) — the table gets ONE row-expander showing a read-only field list. Distinct from tableOptions.expandConfig (vxe-only switch). Unknown keys are rejected.","properties":{"fields":{"description":"Read-only fields rendered inside the expanded row, one per line as `label: value`.","items":{"additionalProperties":false,"properties":{"label":{"description":"Label text for this field.","type":"string"},"labelKey":{"description":"i18n label key (used with a global t() function; takes precedence over `label`).","type":"string"},"prop":{"description":"Row field to display (value = `row[prop]`).","minLength":1,"type":"string"}},"required":["prop"],"type":"object"},"minItems":1,"type":"array"},"title":{"description":"Optional title shown at the top of the expanded row.","type":"string"}},"required":["fields"],"type":"object"},"formLayout":{"additionalProperties":false,"description":"Query form layout ({ labelWidth?, minFoldRows? }). Column count is PER FIELD via querySpan — formLayout has no span key; an unknown key is rejected.","properties":{"labelWidth":{"type":["string","number"]},"layout":{"additionalProperties":false,"description":"Group containers for the QUERY form (P1-3). Fields reference groups via their `group` key. Omit for a flat query grid.","properties":{"defaultLabel":{"description":"Title of the fallback bucket under `ungrouped:'default'` (built-in default: 其他 / Other).","type":"string"},"groups":{"description":"Declared groups in display order. Fields whose `group` is not listed are appended in first-appearance order; empty groups are dropped.","items":{"additionalProperties":false,"properties":{"description":{"description":"Step subtitle. Consumed by `type:'steps'` only; ignored by tabs/collapse.","type":"string"},"key":{"description":"Group key that fields reference via their `group` value.","minLength":1,"type":"string"},"label":{"description":"Group title shown in the container header (tab label / step title / panel header).","type":"string"},"labelKey":{"description":"i18n key for the group title (takes precedence over `label` when the host provides a global t()).","type":"string"}},"required":["key"],"type":"object"},"type":"array"},"type":{"description":"Container type: 'tabs' = tab panes, 'steps' = one group at a time with built-in prev/next, 'collapse' = panels (all expanded by default).","enum":["tabs","steps","collapse"],"type":"string"},"ungrouped":{"description":"'default' (or omitted) = fields without a `group` go into a trailing bucket titled `defaultLabel`; 'first' = merge them into the first group; 'hidden' = do not render them.","enum":["default","first","hidden"],"type":"string"}},"required":["type"],"type":"object"},"minFoldRows":{"description":"Query form collapses when rows exceed this number","maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"type":"object"},"i18n":{"default":false,"type":"boolean"},"mergeConfig":{"additionalProperties":false,"description":"Declarative row-merge ({ rowsBy: ['dept','team'] }) — merges those columns across consecutive rows with EQUAL values (the standard 'grouped rows' table). Cross-renderer (el-table / a-table / vxe). Unknown keys are rejected.","properties":{"rowsBy":{"description":"Column props to merge. Each is grouped by ADJACENT-EQUAL values: the first row of a run keeps the cell with rowspan = run length, the rest are merged away.","items":{"minLength":1,"type":"string"},"minItems":1,"type":"array"}},"required":["rowsBy"],"type":"object"},"mode":{"default":"schema","description":"Output mode for table-bearing results: 'schema' (schema.ts + wrapper SFC) or 'sfc' (single SFC)","enum":["schema","sfc"],"type":"string"},"name":{"description":"Page/component name in PascalCase, e.g. \"UserManage\"","minLength":1,"type":"string"},"operationColumn":{"anyOf":[{"const":false,"type":"boolean"},{"additionalProperties":false,"properties":{"btns":{"items":{"additionalProperties":false,"properties":{"confirm":{"type":["string","boolean"]},"dialogKey":{"type":"string"},"icon":{"type":"string"},"key":{"type":"string"},"name":{"minLength":1,"type":"string"},"permissionValue":{"type":"string"},"type":{"type":"string"}},"required":["name"],"type":"object"},"minItems":1,"type":"array"},"fixed":{"anyOf":[{"type":"boolean"},{"const":"left","type":"string"},{"const":"right","type":"string"}]},"label":{"type":"string"},"width":{"type":["number","string"]}},"required":["btns"],"type":"object"}],"description":"Operation column config (`false` hides it): { label?, width?, fixed?, btns: [{ name, key?, type?, icon?, dialogKey?, confirm?, permissionValue? }] }."},"pagination":{"properties":{"pageSize":{"default":10,"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"pageSizes":{"items":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"type":"array"}},"type":"object"},"permissions":{"additionalProperties":{"type":"string"},"description":"Permission codes keyed by action","propertyNames":{"type":"string"},"type":"object"},"rowkey":{"description":"Primary key for dialog PUT url / delete (default 'id')","type":"string"},"surfaces":{"additionalProperties":{},"description":"The intent table — set only the surfaces the request implies. Any subset is valid.","properties":{"dialog":{"description":"Which dialogs the request needs: a canned key (\"add\"/\"edit\"/\"view\") or a full object { key, title?, width?, fullscreen?, formItems? }.","items":{"anyOf":[{"enum":["add","edit","view"],"type":"string"},{"additionalProperties":{},"description":"A full-parameter dialog — use when the request needs a custom id/title/width or a per-dialog field list.","properties":{"formItems":{"description":"This dialog's own field list. When omitted: the `form` surface if present, else the `table` surface (table-bearing) or the `query` surface (no table).","items":{"additionalProperties":{},"properties":{"align":{"enum":["left","center","right"],"type":"string"},"apiParams":{"additionalProperties":{},"description":"Remote options source for Select/Cascader/TreeSelect — use instead of dataOptions when options come from an API.","properties":{"labelField":{"type":"string"},"method":{"enum":["GET","POST"],"type":"string"},"url":{"type":"string"},"valueField":{"type":"string"}},"required":["url"],"type":"object"},"attrs":{"additionalProperties":{},"description":"Extra component props, e.g. { type: 'textarea', maxlength: 200 }","propertyNames":{"type":"string"},"type":"object"},"autoFilters":{"description":"Derive `filters` from this field's `dataOptions` (explicit `filters` wins).","type":"boolean"},"children":{"description":"Nested-object FORM grouping (ONE level only): this field becomes a full-width section heading; its children render under it. Child `prop` is relative to this field (`city` → `address.city`) unless absolute. The container binds NO data (never a table column) — omit `formtype`; children cannot declare `children` (array sub-forms are OUT of the declarative contract — use `render` or host-owned UI).","items":{"additionalProperties":{},"properties":{"align":{"enum":["left","center","right"],"type":"string"},"apiParams":{"additionalProperties":{},"description":"Remote options source for Select/Cascader/TreeSelect — use instead of dataOptions when options come from an API.","properties":{"labelField":{"type":"string"},"method":{"enum":["GET","POST"],"type":"string"},"url":{"type":"string"},"valueField":{"type":"string"}},"required":["url"],"type":"object"},"attrs":{"additionalProperties":{},"description":"Extra component props, e.g. { type: 'textarea', maxlength: 200 }","propertyNames":{"type":"string"},"type":"object"},"autoFilters":{"description":"Derive `filters` from this field's `dataOptions` (explicit `filters` wins).","type":"boolean"},"dataOptions":{"description":"Static options for Select/Radio/Checkbox/Cascader/TreeSelect/Autocomplete. Use this for known fixed enums.","items":{"$ref":"#/definitions/__schema0"},"type":"array"},"ellipsis":{"type":"boolean"},"filterMode":{"description":"Filter match: 'equals' (default) or 'includes' (cell text contains).","enum":["equals","includes"],"type":"string"},"filterMultiple":{"description":"Multi-select filter (default true).","type":"boolean"},"filters":{"description":"Filter options (plain JSON, never a function). On a FIELD they project onto the derived column. Local filtering on the default/vxe engines only — vue3 engine:'virtual' has no filter UI.","items":{"additionalProperties":{},"properties":{"text":{"description":"Option text shown in the filter dropdown.","type":"string"},"value":{"description":"Row value matched by this option (loose primitive compare: 1 matches \"1\").","type":["string","number","boolean"]}},"required":["text","value"],"type":"object"},"type":"array"},"fixed":{"anyOf":[{"type":"boolean"},{"const":"left","type":"string"},{"const":"right","type":"string"}]},"formSpan":{"description":"Grid width of this field in the add/edit form (1-24; 2 columns = 12 each). Column count is set PER FIELD — `formLayout` has no span key.","maximum":24,"minimum":1,"type":"integer"},"formatter":{"description":"Extension point: JS arrow-function source for read-only cell formatting, e.g. \"(row) => row.amount.toFixed(2)\".","type":"string"},"formtype":{"description":"Pick by MEANING, not keywords: status/type/enum/gender → Select; date/time → DatePicker/TimePicker; image/avatar/attachment/file → Upload; long text/remark/description → Input (attrs.type:'textarea'); boolean on/off → Switch; single-choice small set → Radio; multi-choice → Checkbox; region/category tree → Cascader; department/org/permission tree with ANY level selectable → TreeSelect; type-to-filter over a known option set → Autocomplete; score → Rate; plain text → Input. OMIT only for a nested-object container (a field carrying `children`) — it renders no input.","enum":["Input","InputNumber","Select","DatePicker","TimePicker","Slider","ColorPicker","Transfer","Cascader","TreeSelect","Autocomplete","Radio","Checkbox","Switch","Rate","Upload","datePicker","timePicker"],"type":"string"},"group":{"description":"Form-group key for the FORM face. Fields sharing a key are rendered inside that group's container; declare the containers in `formLayout.layout` (query form) or `dialogs[k].formLayout.layout` (dialog form). Ignored by the table column. Omit to follow the layout's `ungrouped` strategy.","minLength":1,"type":"string"},"isHidden":{"anyOf":[{"additionalProperties":{},"properties":{"field":{"description":"Model field path to test, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"},"op":{"description":"Operator: eq/ne = equal/not-equal (default eq; number↔string tolerated, e.g. 1 matches '1'); in/nIn = in/not-in the given array; empty/notEmpty = ''/null/undefined/[]; truthy/falsy = JS truthiness. The field is hidden WHEN it holds.","enum":["eq","ne","in","nIn","empty","notEmpty","truthy","falsy"],"type":"string"},"value":{"description":"Right-hand side of the comparison. REQUIRED for eq/ne (scalar) and in/nIn (array). IGNORED by empty/notEmpty/truthy/falsy."}},"required":["field"],"type":"object"},{"anyOf":[{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}]},{"items":{"anyOf":[{"additionalProperties":{},"properties":{"field":{"description":"Model field path to test, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"},"op":{"description":"Operator: eq/ne = equal/not-equal (default eq; number↔string tolerated, e.g. 1 matches '1'); in/nIn = in/not-in the given array; empty/notEmpty = ''/null/undefined/[]; truthy/falsy = JS truthiness. The field is hidden WHEN it holds.","enum":["eq","ne","in","nIn","empty","notEmpty","truthy","falsy"],"type":"string"},"value":{"description":"Right-hand side of the comparison. REQUIRED for eq/ne (scalar) and in/nIn (array). IGNORED by empty/notEmpty/truthy/falsy."}},"required":["field"],"type":"object"},{"anyOf":[{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}]}]},"minItems":1,"type":"array"}],"description":"Hidden when the condition HOLDS — PLAIN JSON DATA, never a JS function string (functions cannot be inlined into a schema-mode pageSchema). `{ field: 'payType', op: 'eq', value: 'cash' }` = hidden while payType is cash; an ARRAY of conditions is AND. TWO forms, never mixed within one node: (1) legacy `{ field, op, value }` with op ∈ eq|ne|in|nIn|empty|notEmpty|truthy|falsy (default eq) — preferred for simple comparisons; (2) a JSONLogic-shaped expression when a plain condition can't express it (OR, ordering, nesting): `{ or: [ { '==': [{ var: 'status' }, 'pending'] }, { '>': [{ var: 'amount' }, 100] } ] }`; expression ops (closed set): var == != > >= < <= in nin empty notEmpty truthy falsy and or not if. A form-(2) op inside a form-(1) node is INVALID (runtime warns and treats the field as visible). Applies to the query/filter and add/edit dialog forms (its `inQuery`/`inForm` placement) — NOT to the table column (`inTable`). Evaluated live by the three renderers."},"label":{"description":"Human-readable column/form label, e.g. \"用户名\"","minLength":1,"type":"string"},"labelKey":{"description":"i18n key for this field's label (instead of `label`; derived as `field.<prop>` when omitted). Only takes effect once the HOST assembles the plugin with a `t` option (else falls back to `label`).","type":"string"},"minWidth":{"type":["number","string"]},"permissionValue":{"description":"Permission CODE gating this field (RBAC, checked by the host's global permission(code)) — NOT a data-driven condition: use `isHidden` for show/hide by another field's value, `reactions` for options/required/disabled linkage.","type":"string"},"prop":{"description":"Field key in the data model (camelCase), e.g. \"userName\"","minLength":1,"type":"string"},"querySpan":{"description":"Grid width of this field in the query form (1-24; 2 columns = 12 each). Column count is set PER FIELD — `formLayout` has no span key.","maximum":24,"minimum":1,"type":"integer"},"reactions":{"description":"Field-level linkage / computed rules (AI-07) — PLAIN JSON, never JS callbacks. Use when THIS field's options/required/disabled/value depend on ANOTHER field. Each rule `{ dependencies?, when?, fulfill }`: `dependencies` = model paths that re-trigger it (REQUIRED when `fulfill.value` is set); `when` gates the rule; `fulfill` supplies `dataOptions` (literal array), `required`/`disabled` (boolean expressions) and/or `value` (this field's new value, written back). `when`/`required`/`disabled`/`value` are JSONLogic EXPRESSION NODES only (e.g. `{ '==': [{ var: 'country' }, 'us'] }`) — never the `{ field, op, value }` legacy form, never a bare boolean. Example: `city` options follow `province` → one rule per province with `when: { '==': [{ var: 'province' }, 'zj'] }` and `fulfill.dataOptions: [{label:'杭州',value:'hz'}]`. Applies to the query/add/edit forms — NOT the table column. HARD RULE: branching on a dropdown LABEL ('跨境结算') requires that field's `dataOptions` and comparing the VALUE ('cross') — rows carry codes, not labels; `validate_config` warns (non-blocking).","items":{"additionalProperties":{},"properties":{"dependencies":{"description":"Model paths that trigger re-evaluation of this rule. REQUIRED when `fulfill.value` is present.","items":{"minLength":1,"type":"string"},"type":"array"},"fulfill":{"additionalProperties":{},"properties":{"dataOptions":{"description":"Literal option array for this field when the rule is active (NOT an expression — the DSL forbids object literals, so branch by declaring one rule per case with its own `when`).","items":{"$ref":"#/definitions/__schema0"},"type":"array"},"disabled":{"anyOf":[{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}],"description":"Expression node evaluating to a boolean: disable this field."},"required":{"anyOf":[{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}],"description":"Expression node evaluating to a boolean: make this field required."},"value":{"anyOf":[{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}],"description":"Expression node evaluating to this field's new value, written back to the model (requires a non-empty `dependencies`)."}},"type":"object"},"when":{"anyOf":[{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}],"description":"Optional gate: the rule applies only while it evaluates truthy. A JSONLogic EXPRESSION NODE (e.g. { \"==\": [{ var: \"country\" }, \"us\"] }) — never the { field, op, value } legacy form (that one belongs to isHidden), never a bare boolean. Plain JSON, never a JS function string."}},"required":["fulfill"],"type":"object"},"type":"array"},"render":{"description":"Extension point: a render-function source string for a custom TABLE CELL, e.g. \"(_, { row }) => h(ElTag, { type: row.status === 1 ? 'success' : 'danger' }, () => row.statusLabel)\" (wired to a scoped slot). A FORM-control render cannot be inlined (form items are serialized as JSON data), so it is preserved as a marked TODO(es-plus) marker in the SFC — NOT silently delivered; prefer the declarative rules/attrs/dataOptions/reactions for FORM behaviour.","type":"string"},"required":{"type":"boolean"},"rules":{"description":"Validation rules for this field. Use `pattern`/`min`/`max`/`type` for format constraints and `trigger` for when validation runs; `message` is REQUIRED. CONFIG-side (artifact: `formItemOptions.rules`). A rule carrying `type` is dispatched ONLY to that type validator (async-validator `getValidationMethod`) — a `pattern` on the SAME rule is silently ignored, so when the user states BOTH a regex and a type, emit them as TWO separate rules. For a plain text length cap (e.g. '最多 20 字') prefer `attrs.maxlength`; a `min`/`max` rule validates values with a message but does not block typing. Emit these rather than dropping a format/range requirement the user stated.","items":{"additionalProperties":{},"properties":{"max":{"description":"Maximum length for strings / maximum value for numbers.","type":"number"},"message":{"description":"Message shown when the rule fails — REQUIRED, write it in the user's language.","type":"string"},"min":{"description":"Minimum length for strings / minimum value for numbers.","type":"number"},"pattern":{"description":"RegExp SOURCE STRING the value must match (e.g. \"^1\\d{10}$\"), not a RegExp object.","type":"string"},"required":{"description":"Enforce a value with this rule (same effect as field-level `required`; prefer the field-level key for unconditional requirements).","type":"boolean"},"trigger":{"description":"'blur' validates when the field loses focus; 'change' validates while the value changes.","enum":["blur","change"],"type":"string"},"type":{"description":"Value type validated by this rule.","enum":["string","number","email","url","integer"],"type":"string"}},"required":["message"],"type":"object"},"type":"array"},"width":{"type":["number","string"]}},"required":["prop","label","formtype"],"type":"object"},"minItems":1,"type":"array"},"dataOptions":{"description":"Static options for Select/Radio/Checkbox/Cascader/TreeSelect/Autocomplete. Use this for known fixed enums.","items":{"$ref":"#/definitions/__schema0"},"type":"array"},"ellipsis":{"type":"boolean"},"filterMode":{"description":"Filter match: 'equals' (default) or 'includes' (cell text contains).","enum":["equals","includes"],"type":"string"},"filterMultiple":{"description":"Multi-select filter (default true).","type":"boolean"},"filters":{"description":"Filter options (plain JSON, never a function). On a FIELD they project onto the derived column. Local filtering on the default/vxe engines only — vue3 engine:'virtual' has no filter UI.","items":{"additionalProperties":{},"properties":{"text":{"description":"Option text shown in the filter dropdown.","type":"string"},"value":{"description":"Row value matched by this option (loose primitive compare: 1 matches \"1\").","type":["string","number","boolean"]}},"required":["text","value"],"type":"object"},"type":"array"},"fixed":{"anyOf":[{"type":"boolean"},{"const":"left","type":"string"},{"const":"right","type":"string"}]},"formSpan":{"description":"Grid width of this field in the add/edit form (1-24; 2 columns = 12 each). Column count is set PER FIELD — `formLayout` has no span key.","maximum":24,"minimum":1,"type":"integer"},"formatter":{"description":"Extension point: JS arrow-function source for read-only cell formatting, e.g. \"(row) => row.amount.toFixed(2)\".","type":"string"},"formtype":{"description":"Pick by MEANING, not keywords: status/type/enum/gender → Select; date/time → DatePicker/TimePicker; image/avatar/attachment/file → Upload; long text/remark/description → Input (attrs.type:'textarea'); boolean on/off → Switch; single-choice small set → Radio; multi-choice → Checkbox; region/category tree → Cascader; department/org/permission tree with ANY level selectable → TreeSelect; type-to-filter over a known option set → Autocomplete; score → Rate; plain text → Input. OMIT only for a nested-object container (a field carrying `children`) — it renders no input.","enum":["Input","InputNumber","Select","DatePicker","TimePicker","Slider","ColorPicker","Transfer","Cascader","TreeSelect","Autocomplete","Radio","Checkbox","Switch","Rate","Upload","datePicker","timePicker"],"type":"string"},"group":{"description":"Form-group key for the FORM face. Fields sharing a key are rendered inside that group's container; declare the containers in `formLayout.layout` (query form) or `dialogs[k].formLayout.layout` (dialog form). Ignored by the table column. Omit to follow the layout's `ungrouped` strategy.","minLength":1,"type":"string"},"isHidden":{"anyOf":[{"additionalProperties":{},"properties":{"field":{"description":"Model field path to test, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"},"op":{"description":"Operator: eq/ne = equal/not-equal (default eq; number↔string tolerated, e.g. 1 matches '1'); in/nIn = in/not-in the given array; empty/notEmpty = ''/null/undefined/[]; truthy/falsy = JS truthiness. The field is hidden WHEN it holds.","enum":["eq","ne","in","nIn","empty","notEmpty","truthy","falsy"],"type":"string"},"value":{"description":"Right-hand side of the comparison. REQUIRED for eq/ne (scalar) and in/nIn (array). IGNORED by empty/notEmpty/truthy/falsy."}},"required":["field"],"type":"object"},{"anyOf":[{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}]},{"items":{"anyOf":[{"additionalProperties":{},"properties":{"field":{"description":"Model field path to test, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"},"op":{"description":"Operator: eq/ne = equal/not-equal (default eq; number↔string tolerated, e.g. 1 matches '1'); in/nIn = in/not-in the given array; empty/notEmpty = ''/null/undefined/[]; truthy/falsy = JS truthiness. The field is hidden WHEN it holds.","enum":["eq","ne","in","nIn","empty","notEmpty","truthy","falsy"],"type":"string"},"value":{"description":"Right-hand side of the comparison. REQUIRED for eq/ne (scalar) and in/nIn (array). IGNORED by empty/notEmpty/truthy/falsy."}},"required":["field"],"type":"object"},{"anyOf":[{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}]}]},"minItems":1,"type":"array"}],"description":"Hidden when the condition HOLDS — PLAIN JSON DATA, never a JS function string (functions cannot be inlined into a schema-mode pageSchema). `{ field: 'payType', op: 'eq', value: 'cash' }` = hidden while payType is cash; an ARRAY of conditions is AND. TWO forms, never mixed within one node: (1) legacy `{ field, op, value }` with op ∈ eq|ne|in|nIn|empty|notEmpty|truthy|falsy (default eq) — preferred for simple comparisons; (2) a JSONLogic-shaped expression when a plain condition can't express it (OR, ordering, nesting): `{ or: [ { '==': [{ var: 'status' }, 'pending'] }, { '>': [{ var: 'amount' }, 100] } ] }`; expression ops (closed set): var == != > >= < <= in nin empty notEmpty truthy falsy and or not if. A form-(2) op inside a form-(1) node is INVALID (runtime warns and treats the field as visible). Applies to the query/filter and add/edit dialog forms (its `inQuery`/`inForm` placement) — NOT to the table column (`inTable`). Evaluated live by the three renderers."},"label":{"description":"Human-readable column/form label, e.g. \"用户名\"","minLength":1,"type":"string"},"labelKey":{"description":"i18n key for this field's label (instead of `label`; derived as `field.<prop>` when omitted). Only takes effect once the HOST assembles the plugin with a `t` option (else falls back to `label`).","type":"string"},"minWidth":{"type":["number","string"]},"permissionValue":{"description":"Permission CODE gating this field (RBAC, checked by the host's global permission(code)) — NOT a data-driven condition: use `isHidden` for show/hide by another field's value, `reactions` for options/required/disabled linkage.","type":"string"},"prop":{"description":"Field key in the data model (camelCase), e.g. \"userName\"","minLength":1,"type":"string"},"querySpan":{"description":"Grid width of this field in the query form (1-24; 2 columns = 12 each). Column count is set PER FIELD — `formLayout` has no span key.","maximum":24,"minimum":1,"type":"integer"},"reactions":{"description":"Field-level linkage / computed rules (AI-07) — PLAIN JSON, never JS callbacks. Use when THIS field's options/required/disabled/value depend on ANOTHER field. Each rule `{ dependencies?, when?, fulfill }`: `dependencies` = model paths that re-trigger it (REQUIRED when `fulfill.value` is set); `when` gates the rule; `fulfill` supplies `dataOptions` (literal array), `required`/`disabled` (boolean expressions) and/or `value` (this field's new value, written back). `when`/`required`/`disabled`/`value` are JSONLogic EXPRESSION NODES only (e.g. `{ '==': [{ var: 'country' }, 'us'] }`) — never the `{ field, op, value }` legacy form, never a bare boolean. Example: `city` options follow `province` → one rule per province with `when: { '==': [{ var: 'province' }, 'zj'] }` and `fulfill.dataOptions: [{label:'杭州',value:'hz'}]`. Applies to the query/add/edit forms — NOT the table column. HARD RULE: branching on a dropdown LABEL ('跨境结算') requires that field's `dataOptions` and comparing the VALUE ('cross') — rows carry codes, not labels; `validate_config` warns (non-blocking).","items":{"additionalProperties":{},"properties":{"dependencies":{"description":"Model paths that trigger re-evaluation of this rule. REQUIRED when `fulfill.value` is present.","items":{"minLength":1,"type":"string"},"type":"array"},"fulfill":{"additionalProperties":{},"properties":{"dataOptions":{"description":"Literal option array for this field when the rule is active (NOT an expression — the DSL forbids object literals, so branch by declaring one rule per case with its own `when`).","items":{"$ref":"#/definitions/__schema0"},"type":"array"},"disabled":{"anyOf":[{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}],"description":"Expression node evaluating to a boolean: disable this field."},"required":{"anyOf":[{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}],"description":"Expression node evaluating to a boolean: make this field required."},"value":{"anyOf":[{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}],"description":"Expression node evaluating to this field's new value, written back to the model (requires a non-empty `dependencies`)."}},"type":"object"},"when":{"anyOf":[{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}],"description":"Optional gate: the rule applies only while it evaluates truthy. A JSONLogic EXPRESSION NODE (e.g. { \"==\": [{ var: \"country\" }, \"us\"] }) — never the { field, op, value } legacy form (that one belongs to isHidden), never a bare boolean. Plain JSON, never a JS function string."}},"required":["fulfill"],"type":"object"},"type":"array"},"render":{"description":"Extension point: a render-function source string for a custom TABLE CELL, e.g. \"(_, { row }) => h(ElTag, { type: row.status === 1 ? 'success' : 'danger' }, () => row.statusLabel)\" (wired to a scoped slot). A FORM-control render cannot be inlined (form items are serialized as JSON data), so it is preserved as a marked TODO(es-plus) marker in the SFC — NOT silently delivered; prefer the declarative rules/attrs/dataOptions/reactions for FORM behaviour.","type":"string"},"required":{"type":"boolean"},"rules":{"description":"Validation rules for this field. Use `pattern`/`min`/`max`/`type` for format constraints and `trigger` for when validation runs; `message` is REQUIRED. CONFIG-side (artifact: `formItemOptions.rules`). A rule carrying `type` is dispatched ONLY to that type validator (async-validator `getValidationMethod`) — a `pattern` on the SAME rule is silently ignored, so when the user states BOTH a regex and a type, emit them as TWO separate rules. For a plain text length cap (e.g. '最多 20 字') prefer `attrs.maxlength`; a `min`/`max` rule validates values with a message but does not block typing. Emit these rather than dropping a format/range requirement the user stated.","items":{"additionalProperties":{},"properties":{"max":{"description":"Maximum length for strings / maximum value for numbers.","type":"number"},"message":{"description":"Message shown when the rule fails — REQUIRED, write it in the user's language.","type":"string"},"min":{"description":"Minimum length for strings / minimum value for numbers.","type":"number"},"pattern":{"description":"RegExp SOURCE STRING the value must match (e.g. \"^1\\d{10}$\"), not a RegExp object.","type":"string"},"required":{"description":"Enforce a value with this rule (same effect as field-level `required`; prefer the field-level key for unconditional requirements).","type":"boolean"},"trigger":{"description":"'blur' validates when the field loses focus; 'change' validates while the value changes.","enum":["blur","change"],"type":"string"},"type":{"description":"Value type validated by this rule.","enum":["string","number","email","url","integer"],"type":"string"}},"required":["message"],"type":"object"},"type":"array"},"width":{"type":["number","string"]}},"required":["prop","label","formtype"],"type":"object"},"type":"array"},"fullscreen":{"description":"Render the dialog fullscreen.","type":"boolean"},"key":{"description":"Dialog id (e.g. \"add\" / \"edit\" / \"view\" / your own, e.g. \"detail\").","minLength":1,"type":"string"},"title":{"description":"Dialog title (defaults to 新增/编辑/查看 for add/edit/view, else the key).","type":"string"},"width":{"description":"Dialog width.","type":["string","number"]}},"required":["key"],"type":"object"}]},"type":"array"},"form":{"description":"Add/edit form fields (the mutable subset)","items":{"additionalProperties":{},"properties":{"align":{"enum":["left","center","right"],"type":"string"},"apiParams":{"additionalProperties":{},"description":"Remote options source for Select/Cascader/TreeSelect — use instead of dataOptions when options come from an API.","properties":{"labelField":{"type":"string"},"method":{"enum":["GET","POST"],"type":"string"},"url":{"type":"string"},"valueField":{"type":"string"}},"required":["url"],"type":"object"},"attrs":{"additionalProperties":{},"description":"Extra component props, e.g. { type: 'textarea', maxlength: 200 }","propertyNames":{"type":"string"},"type":"object"},"autoFilters":{"description":"Derive `filters` from this field's `dataOptions` (explicit `filters` wins).","type":"boolean"},"children":{"description":"Nested-object FORM grouping (ONE level only): this field becomes a full-width section heading; its children render under it. Child `prop` is relative to this field (`city` → `address.city`) unless absolute. The container binds NO data (never a table column) — omit `formtype`; children cannot declare `children` (array sub-forms are OUT of the declarative contract — use `render` or host-owned UI).","items":{"additionalProperties":{},"properties":{"align":{"enum":["left","center","right"],"type":"string"},"apiParams":{"additionalProperties":{},"description":"Remote options source for Select/Cascader/TreeSelect — use instead of dataOptions when options come from an API.","properties":{"labelField":{"type":"string"},"method":{"enum":["GET","POST"],"type":"string"},"url":{"type":"string"},"valueField":{"type":"string"}},"required":["url"],"type":"object"},"attrs":{"additionalProperties":{},"description":"Extra component props, e.g. { type: 'textarea', maxlength: 200 }","propertyNames":{"type":"string"},"type":"object"},"autoFilters":{"description":"Derive `filters` from this field's `dataOptions` (explicit `filters` wins).","type":"boolean"},"dataOptions":{"description":"Static options for Select/Radio/Checkbox/Cascader/TreeSelect/Autocomplete. Use this for known fixed enums.","items":{"$ref":"#/definitions/__schema0"},"type":"array"},"ellipsis":{"type":"boolean"},"filterMode":{"description":"Filter match: 'equals' (default) or 'includes' (cell text contains).","enum":["equals","includes"],"type":"string"},"filterMultiple":{"description":"Multi-select filter (default true).","type":"boolean"},"filters":{"description":"Filter options (plain JSON, never a function). On a FIELD they project onto the derived column. Local filtering on the default/vxe engines only — vue3 engine:'virtual' has no filter UI.","items":{"additionalProperties":{},"properties":{"text":{"description":"Option text shown in the filter dropdown.","type":"string"},"value":{"description":"Row value matched by this option (loose primitive compare: 1 matches \"1\").","type":["string","number","boolean"]}},"required":["text","value"],"type":"object"},"type":"array"},"fixed":{"anyOf":[{"type":"boolean"},{"const":"left","type":"string"},{"const":"right","type":"string"}]},"formSpan":{"description":"Grid width of this field in the add/edit form (1-24; 2 columns = 12 each). Column count is set PER FIELD — `formLayout` has no span key.","maximum":24,"minimum":1,"type":"integer"},"formatter":{"description":"Extension point: JS arrow-function source for read-only cell formatting, e.g. \"(row) => row.amount.toFixed(2)\".","type":"string"},"formtype":{"description":"Pick by MEANING, not keywords: status/type/enum/gender → Select; date/time → DatePicker/TimePicker; image/avatar/attachment/file → Upload; long text/remark/description → Input (attrs.type:'textarea'); boolean on/off → Switch; single-choice small set → Radio; multi-choice → Checkbox; region/category tree → Cascader; department/org/permission tree with ANY level selectable → TreeSelect; type-to-filter over a known option set → Autocomplete; score → Rate; plain text → Input. OMIT only for a nested-object container (a field carrying `children`) — it renders no input.","enum":["Input","InputNumber","Select","DatePicker","TimePicker","Slider","ColorPicker","Transfer","Cascader","TreeSelect","Autocomplete","Radio","Checkbox","Switch","Rate","Upload","datePicker","timePicker"],"type":"string"},"group":{"description":"Form-group key for the FORM face. Fields sharing a key are rendered inside that group's container; declare the containers in `formLayout.layout` (query form) or `dialogs[k].formLayout.layout` (dialog form). Ignored by the table column. Omit to follow the layout's `ungrouped` strategy.","minLength":1,"type":"string"},"isHidden":{"anyOf":[{"additionalProperties":{},"properties":{"field":{"description":"Model field path to test, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"},"op":{"description":"Operator: eq/ne = equal/not-equal (default eq; number↔string tolerated, e.g. 1 matches '1'); in/nIn = in/not-in the given array; empty/notEmpty = ''/null/undefined/[]; truthy/falsy = JS truthiness. The field is hidden WHEN it holds.","enum":["eq","ne","in","nIn","empty","notEmpty","truthy","falsy"],"type":"string"},"value":{"description":"Right-hand side of the comparison. REQUIRED for eq/ne (scalar) and in/nIn (array). IGNORED by empty/notEmpty/truthy/falsy."}},"required":["field"],"type":"object"},{"anyOf":[{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}]},{"items":{"anyOf":[{"additionalProperties":{},"properties":{"field":{"description":"Model field path to test, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"},"op":{"description":"Operator: eq/ne = equal/not-equal (default eq; number↔string tolerated, e.g. 1 matches '1'); in/nIn = in/not-in the given array; empty/notEmpty = ''/null/undefined/[]; truthy/falsy = JS truthiness. The field is hidden WHEN it holds.","enum":["eq","ne","in","nIn","empty","notEmpty","truthy","falsy"],"type":"string"},"value":{"description":"Right-hand side of the comparison. REQUIRED for eq/ne (scalar) and in/nIn (array). IGNORED by empty/notEmpty/truthy/falsy."}},"required":["field"],"type":"object"},{"anyOf":[{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}]}]},"minItems":1,"type":"array"}],"description":"Hidden when the condition HOLDS — PLAIN JSON DATA, never a JS function string (functions cannot be inlined into a schema-mode pageSchema). `{ field: 'payType', op: 'eq', value: 'cash' }` = hidden while payType is cash; an ARRAY of conditions is AND. TWO forms, never mixed within one node: (1) legacy `{ field, op, value }` with op ∈ eq|ne|in|nIn|empty|notEmpty|truthy|falsy (default eq) — preferred for simple comparisons; (2) a JSONLogic-shaped expression when a plain condition can't express it (OR, ordering, nesting): `{ or: [ { '==': [{ var: 'status' }, 'pending'] }, { '>': [{ var: 'amount' }, 100] } ] }`; expression ops (closed set): var == != > >= < <= in nin empty notEmpty truthy falsy and or not if. A form-(2) op inside a form-(1) node is INVALID (runtime warns and treats the field as visible). Applies to the query/filter and add/edit dialog forms (its `inQuery`/`inForm` placement) — NOT to the table column (`inTable`). Evaluated live by the three renderers."},"label":{"description":"Human-readable column/form label, e.g. \"用户名\"","minLength":1,"type":"string"},"labelKey":{"description":"i18n key for this field's label (instead of `label`; derived as `field.<prop>` when omitted). Only takes effect once the HOST assembles the plugin with a `t` option (else falls back to `label`).","type":"string"},"minWidth":{"type":["number","string"]},"permissionValue":{"description":"Permission CODE gating this field (RBAC, checked by the host's global permission(code)) — NOT a data-driven condition: use `isHidden` for show/hide by another field's value, `reactions` for options/required/disabled linkage.","type":"string"},"prop":{"description":"Field key in the data model (camelCase), e.g. \"userName\"","minLength":1,"type":"string"},"querySpan":{"description":"Grid width of this field in the query form (1-24; 2 columns = 12 each). Column count is set PER FIELD — `formLayout` has no span key.","maximum":24,"minimum":1,"type":"integer"},"reactions":{"description":"Field-level linkage / computed rules (AI-07) — PLAIN JSON, never JS callbacks. Use when THIS field's options/required/disabled/value depend on ANOTHER field. Each rule `{ dependencies?, when?, fulfill }`: `dependencies` = model paths that re-trigger it (REQUIRED when `fulfill.value` is set); `when` gates the rule; `fulfill` supplies `dataOptions` (literal array), `required`/`disabled` (boolean expressions) and/or `value` (this field's new value, written back). `when`/`required`/`disabled`/`value` are JSONLogic EXPRESSION NODES only (e.g. `{ '==': [{ var: 'country' }, 'us'] }`) — never the `{ field, op, value }` legacy form, never a bare boolean. Example: `city` options follow `province` → one rule per province with `when: { '==': [{ var: 'province' }, 'zj'] }` and `fulfill.dataOptions: [{label:'杭州',value:'hz'}]`. Applies to the query/add/edit forms — NOT the table column. HARD RULE: branching on a dropdown LABEL ('跨境结算') requires that field's `dataOptions` and comparing the VALUE ('cross') — rows carry codes, not labels; `validate_config` warns (non-blocking).","items":{"additionalProperties":{},"properties":{"dependencies":{"description":"Model paths that trigger re-evaluation of this rule. REQUIRED when `fulfill.value` is present.","items":{"minLength":1,"type":"string"},"type":"array"},"fulfill":{"additionalProperties":{},"properties":{"dataOptions":{"description":"Literal option array for this field when the rule is active (NOT an expression — the DSL forbids object literals, so branch by declaring one rule per case with its own `when`).","items":{"$ref":"#/definitions/__schema0"},"type":"array"},"disabled":{"anyOf":[{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}],"description":"Expression node evaluating to a boolean: disable this field."},"required":{"anyOf":[{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}],"description":"Expression node evaluating to a boolean: make this field required."},"value":{"anyOf":[{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}],"description":"Expression node evaluating to this field's new value, written back to the model (requires a non-empty `dependencies`)."}},"type":"object"},"when":{"anyOf":[{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}],"description":"Optional gate: the rule applies only while it evaluates truthy. A JSONLogic EXPRESSION NODE (e.g. { \"==\": [{ var: \"country\" }, \"us\"] }) — never the { field, op, value } legacy form (that one belongs to isHidden), never a bare boolean. Plain JSON, never a JS function string."}},"required":["fulfill"],"type":"object"},"type":"array"},"render":{"description":"Extension point: a render-function source string for a custom TABLE CELL, e.g. \"(_, { row }) => h(ElTag, { type: row.status === 1 ? 'success' : 'danger' }, () => row.statusLabel)\" (wired to a scoped slot). A FORM-control render cannot be inlined (form items are serialized as JSON data), so it is preserved as a marked TODO(es-plus) marker in the SFC — NOT silently delivered; prefer the declarative rules/attrs/dataOptions/reactions for FORM behaviour.","type":"string"},"required":{"type":"boolean"},"rules":{"description":"Validation rules for this field. Use `pattern`/`min`/`max`/`type` for format constraints and `trigger` for when validation runs; `message` is REQUIRED. CONFIG-side (artifact: `formItemOptions.rules`). A rule carrying `type` is dispatched ONLY to that type validator (async-validator `getValidationMethod`) — a `pattern` on the SAME rule is silently ignored, so when the user states BOTH a regex and a type, emit them as TWO separate rules. For a plain text length cap (e.g. '最多 20 字') prefer `attrs.maxlength`; a `min`/`max` rule validates values with a message but does not block typing. Emit these rather than dropping a format/range requirement the user stated.","items":{"additionalProperties":{},"properties":{"max":{"description":"Maximum length for strings / maximum value for numbers.","type":"number"},"message":{"description":"Message shown when the rule fails — REQUIRED, write it in the user's language.","type":"string"},"min":{"description":"Minimum length for strings / minimum value for numbers.","type":"number"},"pattern":{"description":"RegExp SOURCE STRING the value must match (e.g. \"^1\\d{10}$\"), not a RegExp object.","type":"string"},"required":{"description":"Enforce a value with this rule (same effect as field-level `required`; prefer the field-level key for unconditional requirements).","type":"boolean"},"trigger":{"description":"'blur' validates when the field loses focus; 'change' validates while the value changes.","enum":["blur","change"],"type":"string"},"type":{"description":"Value type validated by this rule.","enum":["string","number","email","url","integer"],"type":"string"}},"required":["message"],"type":"object"},"type":"array"},"width":{"type":["number","string"]}},"required":["prop","label","formtype"],"type":"object"},"minItems":1,"type":"array"},"dataOptions":{"description":"Static options for Select/Radio/Checkbox/Cascader/TreeSelect/Autocomplete. Use this for known fixed enums.","items":{"$ref":"#/definitions/__schema0"},"type":"array"},"ellipsis":{"type":"boolean"},"filterMode":{"description":"Filter match: 'equals' (default) or 'includes' (cell text contains).","enum":["equals","includes"],"type":"string"},"filterMultiple":{"description":"Multi-select filter (default true).","type":"boolean"},"filters":{"description":"Filter options (plain JSON, never a function). On a FIELD they project onto the derived column. Local filtering on the default/vxe engines only — vue3 engine:'virtual' has no filter UI.","items":{"additionalProperties":{},"properties":{"text":{"description":"Option text shown in the filter dropdown.","type":"string"},"value":{"description":"Row value matched by this option (loose primitive compare: 1 matches \"1\").","type":["string","number","boolean"]}},"required":["text","value"],"type":"object"},"type":"array"},"fixed":{"anyOf":[{"type":"boolean"},{"const":"left","type":"string"},{"const":"right","type":"string"}]},"formSpan":{"description":"Grid width of this field in the add/edit form (1-24; 2 columns = 12 each). Column count is set PER FIELD — `formLayout` has no span key.","maximum":24,"minimum":1,"type":"integer"},"formatter":{"description":"Extension point: JS arrow-function source for read-only cell formatting, e.g. \"(row) => row.amount.toFixed(2)\".","type":"string"},"formtype":{"description":"Pick by MEANING, not keywords: status/type/enum/gender → Select; date/time → DatePicker/TimePicker; image/avatar/attachment/file → Upload; long text/remark/description → Input (attrs.type:'textarea'); boolean on/off → Switch; single-choice small set → Radio; multi-choice → Checkbox; region/category tree → Cascader; department/org/permission tree with ANY level selectable → TreeSelect; type-to-filter over a known option set → Autocomplete; score → Rate; plain text → Input. OMIT only for a nested-object container (a field carrying `children`) — it renders no input.","enum":["Input","InputNumber","Select","DatePicker","TimePicker","Slider","ColorPicker","Transfer","Cascader","TreeSelect","Autocomplete","Radio","Checkbox","Switch","Rate","Upload","datePicker","timePicker"],"type":"string"},"group":{"description":"Form-group key for the FORM face. Fields sharing a key are rendered inside that group's container; declare the containers in `formLayout.layout` (query form) or `dialogs[k].formLayout.layout` (dialog form). Ignored by the table column. Omit to follow the layout's `ungrouped` strategy.","minLength":1,"type":"string"},"isHidden":{"anyOf":[{"additionalProperties":{},"properties":{"field":{"description":"Model field path to test, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"},"op":{"description":"Operator: eq/ne = equal/not-equal (default eq; number↔string tolerated, e.g. 1 matches '1'); in/nIn = in/not-in the given array; empty/notEmpty = ''/null/undefined/[]; truthy/falsy = JS truthiness. The field is hidden WHEN it holds.","enum":["eq","ne","in","nIn","empty","notEmpty","truthy","falsy"],"type":"string"},"value":{"description":"Right-hand side of the comparison. REQUIRED for eq/ne (scalar) and in/nIn (array). IGNORED by empty/notEmpty/truthy/falsy."}},"required":["field"],"type":"object"},{"anyOf":[{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}]},{"items":{"anyOf":[{"additionalProperties":{},"properties":{"field":{"description":"Model field path to test, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"},"op":{"description":"Operator: eq/ne = equal/not-equal (default eq; number↔string tolerated, e.g. 1 matches '1'); in/nIn = in/not-in the given array; empty/notEmpty = ''/null/undefined/[]; truthy/falsy = JS truthiness. The field is hidden WHEN it holds.","enum":["eq","ne","in","nIn","empty","notEmpty","truthy","falsy"],"type":"string"},"value":{"description":"Right-hand side of the comparison. REQUIRED for eq/ne (scalar) and in/nIn (array). IGNORED by empty/notEmpty/truthy/falsy."}},"required":["field"],"type":"object"},{"anyOf":[{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}]}]},"minItems":1,"type":"array"}],"description":"Hidden when the condition HOLDS — PLAIN JSON DATA, never a JS function string (functions cannot be inlined into a schema-mode pageSchema). `{ field: 'payType', op: 'eq', value: 'cash' }` = hidden while payType is cash; an ARRAY of conditions is AND. TWO forms, never mixed within one node: (1) legacy `{ field, op, value }` with op ∈ eq|ne|in|nIn|empty|notEmpty|truthy|falsy (default eq) — preferred for simple comparisons; (2) a JSONLogic-shaped expression when a plain condition can't express it (OR, ordering, nesting): `{ or: [ { '==': [{ var: 'status' }, 'pending'] }, { '>': [{ var: 'amount' }, 100] } ] }`; expression ops (closed set): var == != > >= < <= in nin empty notEmpty truthy falsy and or not if. A form-(2) op inside a form-(1) node is INVALID (runtime warns and treats the field as visible). Applies to the query/filter and add/edit dialog forms (its `inQuery`/`inForm` placement) — NOT to the table column (`inTable`). Evaluated live by the three renderers."},"label":{"description":"Human-readable column/form label, e.g. \"用户名\"","minLength":1,"type":"string"},"labelKey":{"description":"i18n key for this field's label (instead of `label`; derived as `field.<prop>` when omitted). Only takes effect once the HOST assembles the plugin with a `t` option (else falls back to `label`).","type":"string"},"minWidth":{"type":["number","string"]},"permissionValue":{"description":"Permission CODE gating this field (RBAC, checked by the host's global permission(code)) — NOT a data-driven condition: use `isHidden` for show/hide by another field's value, `reactions` for options/required/disabled linkage.","type":"string"},"prop":{"description":"Field key in the data model (camelCase), e.g. \"userName\"","minLength":1,"type":"string"},"querySpan":{"description":"Grid width of this field in the query form (1-24; 2 columns = 12 each). Column count is set PER FIELD — `formLayout` has no span key.","maximum":24,"minimum":1,"type":"integer"},"reactions":{"description":"Field-level linkage / computed rules (AI-07) — PLAIN JSON, never JS callbacks. Use when THIS field's options/required/disabled/value depend on ANOTHER field. Each rule `{ dependencies?, when?, fulfill }`: `dependencies` = model paths that re-trigger it (REQUIRED when `fulfill.value` is set); `when` gates the rule; `fulfill` supplies `dataOptions` (literal array), `required`/`disabled` (boolean expressions) and/or `value` (this field's new value, written back). `when`/`required`/`disabled`/`value` are JSONLogic EXPRESSION NODES only (e.g. `{ '==': [{ var: 'country' }, 'us'] }`) — never the `{ field, op, value }` legacy form, never a bare boolean. Example: `city` options follow `province` → one rule per province with `when: { '==': [{ var: 'province' }, 'zj'] }` and `fulfill.dataOptions: [{label:'杭州',value:'hz'}]`. Applies to the query/add/edit forms — NOT the table column. HARD RULE: branching on a dropdown LABEL ('跨境结算') requires that field's `dataOptions` and comparing the VALUE ('cross') — rows carry codes, not labels; `validate_config` warns (non-blocking).","items":{"additionalProperties":{},"properties":{"dependencies":{"description":"Model paths that trigger re-evaluation of this rule. REQUIRED when `fulfill.value` is present.","items":{"minLength":1,"type":"string"},"type":"array"},"fulfill":{"additionalProperties":{},"properties":{"dataOptions":{"description":"Literal option array for this field when the rule is active (NOT an expression — the DSL forbids object literals, so branch by declaring one rule per case with its own `when`).","items":{"$ref":"#/definitions/__schema0"},"type":"array"},"disabled":{"anyOf":[{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}],"description":"Expression node evaluating to a boolean: disable this field."},"required":{"anyOf":[{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}],"description":"Expression node evaluating to a boolean: make this field required."},"value":{"anyOf":[{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}],"description":"Expression node evaluating to this field's new value, written back to the model (requires a non-empty `dependencies`)."}},"type":"object"},"when":{"anyOf":[{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}],"description":"Optional gate: the rule applies only while it evaluates truthy. A JSONLogic EXPRESSION NODE (e.g. { \"==\": [{ var: \"country\" }, \"us\"] }) — never the { field, op, value } legacy form (that one belongs to isHidden), never a bare boolean. Plain JSON, never a JS function string."}},"required":["fulfill"],"type":"object"},"type":"array"},"render":{"description":"Extension point: a render-function source string for a custom TABLE CELL, e.g. \"(_, { row }) => h(ElTag, { type: row.status === 1 ? 'success' : 'danger' }, () => row.statusLabel)\" (wired to a scoped slot). A FORM-control render cannot be inlined (form items are serialized as JSON data), so it is preserved as a marked TODO(es-plus) marker in the SFC — NOT silently delivered; prefer the declarative rules/attrs/dataOptions/reactions for FORM behaviour.","type":"string"},"required":{"type":"boolean"},"rules":{"description":"Validation rules for this field. Use `pattern`/`min`/`max`/`type` for format constraints and `trigger` for when validation runs; `message` is REQUIRED. CONFIG-side (artifact: `formItemOptions.rules`). A rule carrying `type` is dispatched ONLY to that type validator (async-validator `getValidationMethod`) — a `pattern` on the SAME rule is silently ignored, so when the user states BOTH a regex and a type, emit them as TWO separate rules. For a plain text length cap (e.g. '最多 20 字') prefer `attrs.maxlength`; a `min`/`max` rule validates values with a message but does not block typing. Emit these rather than dropping a format/range requirement the user stated.","items":{"additionalProperties":{},"properties":{"max":{"description":"Maximum length for strings / maximum value for numbers.","type":"number"},"message":{"description":"Message shown when the rule fails — REQUIRED, write it in the user's language.","type":"string"},"min":{"description":"Minimum length for strings / minimum value for numbers.","type":"number"},"pattern":{"description":"RegExp SOURCE STRING the value must match (e.g. \"^1\\d{10}$\"), not a RegExp object.","type":"string"},"required":{"description":"Enforce a value with this rule (same effect as field-level `required`; prefer the field-level key for unconditional requirements).","type":"boolean"},"trigger":{"description":"'blur' validates when the field loses focus; 'change' validates while the value changes.","enum":["blur","change"],"type":"string"},"type":{"description":"Value type validated by this rule.","enum":["string","number","email","url","integer"],"type":"string"}},"required":["message"],"type":"object"},"type":"array"},"width":{"type":["number","string"]}},"required":["prop","label","formtype"],"type":"object"},"type":"array"},"query":{"description":"Filter fields shown above the table","items":{"additionalProperties":{},"properties":{"align":{"enum":["left","center","right"],"type":"string"},"apiParams":{"additionalProperties":{},"description":"Remote options source for Select/Cascader/TreeSelect — use instead of dataOptions when options come from an API.","properties":{"labelField":{"type":"string"},"method":{"enum":["GET","POST"],"type":"string"},"url":{"type":"string"},"valueField":{"type":"string"}},"required":["url"],"type":"object"},"attrs":{"additionalProperties":{},"description":"Extra component props, e.g. { type: 'textarea', maxlength: 200 }","propertyNames":{"type":"string"},"type":"object"},"autoFilters":{"description":"Derive `filters` from this field's `dataOptions` (explicit `filters` wins).","type":"boolean"},"children":{"description":"Nested-object FORM grouping (ONE level only): this field becomes a full-width section heading; its children render under it. Child `prop` is relative to this field (`city` → `address.city`) unless absolute. The container binds NO data (never a table column) — omit `formtype`; children cannot declare `children` (array sub-forms are OUT of the declarative contract — use `render` or host-owned UI).","items":{"additionalProperties":{},"properties":{"align":{"enum":["left","center","right"],"type":"string"},"apiParams":{"additionalProperties":{},"description":"Remote options source for Select/Cascader/TreeSelect — use instead of dataOptions when options come from an API.","properties":{"labelField":{"type":"string"},"method":{"enum":["GET","POST"],"type":"string"},"url":{"type":"string"},"valueField":{"type":"string"}},"required":["url"],"type":"object"},"attrs":{"additionalProperties":{},"description":"Extra component props, e.g. { type: 'textarea', maxlength: 200 }","propertyNames":{"type":"string"},"type":"object"},"autoFilters":{"description":"Derive `filters` from this field's `dataOptions` (explicit `filters` wins).","type":"boolean"},"dataOptions":{"description":"Static options for Select/Radio/Checkbox/Cascader/TreeSelect/Autocomplete. Use this for known fixed enums.","items":{"$ref":"#/definitions/__schema0"},"type":"array"},"ellipsis":{"type":"boolean"},"filterMode":{"description":"Filter match: 'equals' (default) or 'includes' (cell text contains).","enum":["equals","includes"],"type":"string"},"filterMultiple":{"description":"Multi-select filter (default true).","type":"boolean"},"filters":{"description":"Filter options (plain JSON, never a function). On a FIELD they project onto the derived column. Local filtering on the default/vxe engines only — vue3 engine:'virtual' has no filter UI.","items":{"additionalProperties":{},"properties":{"text":{"description":"Option text shown in the filter dropdown.","type":"string"},"value":{"description":"Row value matched by this option (loose primitive compare: 1 matches \"1\").","type":["string","number","boolean"]}},"required":["text","value"],"type":"object"},"type":"array"},"fixed":{"anyOf":[{"type":"boolean"},{"const":"left","type":"string"},{"const":"right","type":"string"}]},"formSpan":{"description":"Grid width of this field in the add/edit form (1-24; 2 columns = 12 each). Column count is set PER FIELD — `formLayout` has no span key.","maximum":24,"minimum":1,"type":"integer"},"formatter":{"description":"Extension point: JS arrow-function source for read-only cell formatting, e.g. \"(row) => row.amount.toFixed(2)\".","type":"string"},"formtype":{"description":"Pick by MEANING, not keywords: status/type/enum/gender → Select; date/time → DatePicker/TimePicker; image/avatar/attachment/file → Upload; long text/remark/description → Input (attrs.type:'textarea'); boolean on/off → Switch; single-choice small set → Radio; multi-choice → Checkbox; region/category tree → Cascader; department/org/permission tree with ANY level selectable → TreeSelect; type-to-filter over a known option set → Autocomplete; score → Rate; plain text → Input. OMIT only for a nested-object container (a field carrying `children`) — it renders no input.","enum":["Input","InputNumber","Select","DatePicker","TimePicker","Slider","ColorPicker","Transfer","Cascader","TreeSelect","Autocomplete","Radio","Checkbox","Switch","Rate","Upload","datePicker","timePicker"],"type":"string"},"group":{"description":"Form-group key for the FORM face. Fields sharing a key are rendered inside that group's container; declare the containers in `formLayout.layout` (query form) or `dialogs[k].formLayout.layout` (dialog form). Ignored by the table column. Omit to follow the layout's `ungrouped` strategy.","minLength":1,"type":"string"},"isHidden":{"anyOf":[{"additionalProperties":{},"properties":{"field":{"description":"Model field path to test, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"},"op":{"description":"Operator: eq/ne = equal/not-equal (default eq; number↔string tolerated, e.g. 1 matches '1'); in/nIn = in/not-in the given array; empty/notEmpty = ''/null/undefined/[]; truthy/falsy = JS truthiness. The field is hidden WHEN it holds.","enum":["eq","ne","in","nIn","empty","notEmpty","truthy","falsy"],"type":"string"},"value":{"description":"Right-hand side of the comparison. REQUIRED for eq/ne (scalar) and in/nIn (array). IGNORED by empty/notEmpty/truthy/falsy."}},"required":["field"],"type":"object"},{"anyOf":[{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}]},{"items":{"anyOf":[{"additionalProperties":{},"properties":{"field":{"description":"Model field path to test, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"},"op":{"description":"Operator: eq/ne = equal/not-equal (default eq; number↔string tolerated, e.g. 1 matches '1'); in/nIn = in/not-in the given array; empty/notEmpty = ''/null/undefined/[]; truthy/falsy = JS truthiness. The field is hidden WHEN it holds.","enum":["eq","ne","in","nIn","empty","notEmpty","truthy","falsy"],"type":"string"},"value":{"description":"Right-hand side of the comparison. REQUIRED for eq/ne (scalar) and in/nIn (array). IGNORED by empty/notEmpty/truthy/falsy."}},"required":["field"],"type":"object"},{"anyOf":[{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}]}]},"minItems":1,"type":"array"}],"description":"Hidden when the condition HOLDS — PLAIN JSON DATA, never a JS function string (functions cannot be inlined into a schema-mode pageSchema). `{ field: 'payType', op: 'eq', value: 'cash' }` = hidden while payType is cash; an ARRAY of conditions is AND. TWO forms, never mixed within one node: (1) legacy `{ field, op, value }` with op ∈ eq|ne|in|nIn|empty|notEmpty|truthy|falsy (default eq) — preferred for simple comparisons; (2) a JSONLogic-shaped expression when a plain condition can't express it (OR, ordering, nesting): `{ or: [ { '==': [{ var: 'status' }, 'pending'] }, { '>': [{ var: 'amount' }, 100] } ] }`; expression ops (closed set): var == != > >= < <= in nin empty notEmpty truthy falsy and or not if. A form-(2) op inside a form-(1) node is INVALID (runtime warns and treats the field as visible). Applies to the query/filter and add/edit dialog forms (its `inQuery`/`inForm` placement) — NOT to the table column (`inTable`). Evaluated live by the three renderers."},"label":{"description":"Human-readable column/form label, e.g. \"用户名\"","minLength":1,"type":"string"},"labelKey":{"description":"i18n key for this field's label (instead of `label`; derived as `field.<prop>` when omitted). Only takes effect once the HOST assembles the plugin with a `t` option (else falls back to `label`).","type":"string"},"minWidth":{"type":["number","string"]},"permissionValue":{"description":"Permission CODE gating this field (RBAC, checked by the host's global permission(code)) — NOT a data-driven condition: use `isHidden` for show/hide by another field's value, `reactions` for options/required/disabled linkage.","type":"string"},"prop":{"description":"Field key in the data model (camelCase), e.g. \"userName\"","minLength":1,"type":"string"},"querySpan":{"description":"Grid width of this field in the query form (1-24; 2 columns = 12 each). Column count is set PER FIELD — `formLayout` has no span key.","maximum":24,"minimum":1,"type":"integer"},"reactions":{"description":"Field-level linkage / computed rules (AI-07) — PLAIN JSON, never JS callbacks. Use when THIS field's options/required/disabled/value depend on ANOTHER field. Each rule `{ dependencies?, when?, fulfill }`: `dependencies` = model paths that re-trigger it (REQUIRED when `fulfill.value` is set); `when` gates the rule; `fulfill` supplies `dataOptions` (literal array), `required`/`disabled` (boolean expressions) and/or `value` (this field's new value, written back). `when`/`required`/`disabled`/`value` are JSONLogic EXPRESSION NODES only (e.g. `{ '==': [{ var: 'country' }, 'us'] }`) — never the `{ field, op, value }` legacy form, never a bare boolean. Example: `city` options follow `province` → one rule per province with `when: { '==': [{ var: 'province' }, 'zj'] }` and `fulfill.dataOptions: [{label:'杭州',value:'hz'}]`. Applies to the query/add/edit forms — NOT the table column. HARD RULE: branching on a dropdown LABEL ('跨境结算') requires that field's `dataOptions` and comparing the VALUE ('cross') — rows carry codes, not labels; `validate_config` warns (non-blocking).","items":{"additionalProperties":{},"properties":{"dependencies":{"description":"Model paths that trigger re-evaluation of this rule. REQUIRED when `fulfill.value` is present.","items":{"minLength":1,"type":"string"},"type":"array"},"fulfill":{"additionalProperties":{},"properties":{"dataOptions":{"description":"Literal option array for this field when the rule is active (NOT an expression — the DSL forbids object literals, so branch by declaring one rule per case with its own `when`).","items":{"$ref":"#/definitions/__schema0"},"type":"array"},"disabled":{"anyOf":[{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}],"description":"Expression node evaluating to a boolean: disable this field."},"required":{"anyOf":[{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}],"description":"Expression node evaluating to a boolean: make this field required."},"value":{"anyOf":[{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}],"description":"Expression node evaluating to this field's new value, written back to the model (requires a non-empty `dependencies`)."}},"type":"object"},"when":{"anyOf":[{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}],"description":"Optional gate: the rule applies only while it evaluates truthy. A JSONLogic EXPRESSION NODE (e.g. { \"==\": [{ var: \"country\" }, \"us\"] }) — never the { field, op, value } legacy form (that one belongs to isHidden), never a bare boolean. Plain JSON, never a JS function string."}},"required":["fulfill"],"type":"object"},"type":"array"},"render":{"description":"Extension point: a render-function source string for a custom TABLE CELL, e.g. \"(_, { row }) => h(ElTag, { type: row.status === 1 ? 'success' : 'danger' }, () => row.statusLabel)\" (wired to a scoped slot). A FORM-control render cannot be inlined (form items are serialized as JSON data), so it is preserved as a marked TODO(es-plus) marker in the SFC — NOT silently delivered; prefer the declarative rules/attrs/dataOptions/reactions for FORM behaviour.","type":"string"},"required":{"type":"boolean"},"rules":{"description":"Validation rules for this field. Use `pattern`/`min`/`max`/`type` for format constraints and `trigger` for when validation runs; `message` is REQUIRED. CONFIG-side (artifact: `formItemOptions.rules`). A rule carrying `type` is dispatched ONLY to that type validator (async-validator `getValidationMethod`) — a `pattern` on the SAME rule is silently ignored, so when the user states BOTH a regex and a type, emit them as TWO separate rules. For a plain text length cap (e.g. '最多 20 字') prefer `attrs.maxlength`; a `min`/`max` rule validates values with a message but does not block typing. Emit these rather than dropping a format/range requirement the user stated.","items":{"additionalProperties":{},"properties":{"max":{"description":"Maximum length for strings / maximum value for numbers.","type":"number"},"message":{"description":"Message shown when the rule fails — REQUIRED, write it in the user's language.","type":"string"},"min":{"description":"Minimum length for strings / minimum value for numbers.","type":"number"},"pattern":{"description":"RegExp SOURCE STRING the value must match (e.g. \"^1\\d{10}$\"), not a RegExp object.","type":"string"},"required":{"description":"Enforce a value with this rule (same effect as field-level `required`; prefer the field-level key for unconditional requirements).","type":"boolean"},"trigger":{"description":"'blur' validates when the field loses focus; 'change' validates while the value changes.","enum":["blur","change"],"type":"string"},"type":{"description":"Value type validated by this rule.","enum":["string","number","email","url","integer"],"type":"string"}},"required":["message"],"type":"object"},"type":"array"},"width":{"type":["number","string"]}},"required":["prop","label","formtype"],"type":"object"},"minItems":1,"type":"array"},"dataOptions":{"description":"Static options for Select/Radio/Checkbox/Cascader/TreeSelect/Autocomplete. Use this for known fixed enums.","items":{"$ref":"#/definitions/__schema0"},"type":"array"},"ellipsis":{"type":"boolean"},"filterMode":{"description":"Filter match: 'equals' (default) or 'includes' (cell text contains).","enum":["equals","includes"],"type":"string"},"filterMultiple":{"description":"Multi-select filter (default true).","type":"boolean"},"filters":{"description":"Filter options (plain JSON, never a function). On a FIELD they project onto the derived column. Local filtering on the default/vxe engines only — vue3 engine:'virtual' has no filter UI.","items":{"additionalProperties":{},"properties":{"text":{"description":"Option text shown in the filter dropdown.","type":"string"},"value":{"description":"Row value matched by this option (loose primitive compare: 1 matches \"1\").","type":["string","number","boolean"]}},"required":["text","value"],"type":"object"},"type":"array"},"fixed":{"anyOf":[{"type":"boolean"},{"const":"left","type":"string"},{"const":"right","type":"string"}]},"formSpan":{"description":"Grid width of this field in the add/edit form (1-24; 2 columns = 12 each). Column count is set PER FIELD — `formLayout` has no span key.","maximum":24,"minimum":1,"type":"integer"},"formatter":{"description":"Extension point: JS arrow-function source for read-only cell formatting, e.g. \"(row) => row.amount.toFixed(2)\".","type":"string"},"formtype":{"description":"Pick by MEANING, not keywords: status/type/enum/gender → Select; date/time → DatePicker/TimePicker; image/avatar/attachment/file → Upload; long text/remark/description → Input (attrs.type:'textarea'); boolean on/off → Switch; single-choice small set → Radio; multi-choice → Checkbox; region/category tree → Cascader; department/org/permission tree with ANY level selectable → TreeSelect; type-to-filter over a known option set → Autocomplete; score → Rate; plain text → Input. OMIT only for a nested-object container (a field carrying `children`) — it renders no input.","enum":["Input","InputNumber","Select","DatePicker","TimePicker","Slider","ColorPicker","Transfer","Cascader","TreeSelect","Autocomplete","Radio","Checkbox","Switch","Rate","Upload","datePicker","timePicker"],"type":"string"},"group":{"description":"Form-group key for the FORM face. Fields sharing a key are rendered inside that group's container; declare the containers in `formLayout.layout` (query form) or `dialogs[k].formLayout.layout` (dialog form). Ignored by the table column. Omit to follow the layout's `ungrouped` strategy.","minLength":1,"type":"string"},"isHidden":{"anyOf":[{"additionalProperties":{},"properties":{"field":{"description":"Model field path to test, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"},"op":{"description":"Operator: eq/ne = equal/not-equal (default eq; number↔string tolerated, e.g. 1 matches '1'); in/nIn = in/not-in the given array; empty/notEmpty = ''/null/undefined/[]; truthy/falsy = JS truthiness. The field is hidden WHEN it holds.","enum":["eq","ne","in","nIn","empty","notEmpty","truthy","falsy"],"type":"string"},"value":{"description":"Right-hand side of the comparison. REQUIRED for eq/ne (scalar) and in/nIn (array). IGNORED by empty/notEmpty/truthy/falsy."}},"required":["field"],"type":"object"},{"anyOf":[{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}]},{"items":{"anyOf":[{"additionalProperties":{},"properties":{"field":{"description":"Model field path to test, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"},"op":{"description":"Operator: eq/ne = equal/not-equal (default eq; number↔string tolerated, e.g. 1 matches '1'); in/nIn = in/not-in the given array; empty/notEmpty = ''/null/undefined/[]; truthy/falsy = JS truthiness. The field is hidden WHEN it holds.","enum":["eq","ne","in","nIn","empty","notEmpty","truthy","falsy"],"type":"string"},"value":{"description":"Right-hand side of the comparison. REQUIRED for eq/ne (scalar) and in/nIn (array). IGNORED by empty/notEmpty/truthy/falsy."}},"required":["field"],"type":"object"},{"anyOf":[{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}]}]},"minItems":1,"type":"array"}],"description":"Hidden when the condition HOLDS — PLAIN JSON DATA, never a JS function string (functions cannot be inlined into a schema-mode pageSchema). `{ field: 'payType', op: 'eq', value: 'cash' }` = hidden while payType is cash; an ARRAY of conditions is AND. TWO forms, never mixed within one node: (1) legacy `{ field, op, value }` with op ∈ eq|ne|in|nIn|empty|notEmpty|truthy|falsy (default eq) — preferred for simple comparisons; (2) a JSONLogic-shaped expression when a plain condition can't express it (OR, ordering, nesting): `{ or: [ { '==': [{ var: 'status' }, 'pending'] }, { '>': [{ var: 'amount' }, 100] } ] }`; expression ops (closed set): var == != > >= < <= in nin empty notEmpty truthy falsy and or not if. A form-(2) op inside a form-(1) node is INVALID (runtime warns and treats the field as visible). Applies to the query/filter and add/edit dialog forms (its `inQuery`/`inForm` placement) — NOT to the table column (`inTable`). Evaluated live by the three renderers."},"label":{"description":"Human-readable column/form label, e.g. \"用户名\"","minLength":1,"type":"string"},"labelKey":{"description":"i18n key for this field's label (instead of `label`; derived as `field.<prop>` when omitted). Only takes effect once the HOST assembles the plugin with a `t` option (else falls back to `label`).","type":"string"},"minWidth":{"type":["number","string"]},"permissionValue":{"description":"Permission CODE gating this field (RBAC, checked by the host's global permission(code)) — NOT a data-driven condition: use `isHidden` for show/hide by another field's value, `reactions` for options/required/disabled linkage.","type":"string"},"prop":{"description":"Field key in the data model (camelCase), e.g. \"userName\"","minLength":1,"type":"string"},"querySpan":{"description":"Grid width of this field in the query form (1-24; 2 columns = 12 each). Column count is set PER FIELD — `formLayout` has no span key.","maximum":24,"minimum":1,"type":"integer"},"reactions":{"description":"Field-level linkage / computed rules (AI-07) — PLAIN JSON, never JS callbacks. Use when THIS field's options/required/disabled/value depend on ANOTHER field. Each rule `{ dependencies?, when?, fulfill }`: `dependencies` = model paths that re-trigger it (REQUIRED when `fulfill.value` is set); `when` gates the rule; `fulfill` supplies `dataOptions` (literal array), `required`/`disabled` (boolean expressions) and/or `value` (this field's new value, written back). `when`/`required`/`disabled`/`value` are JSONLogic EXPRESSION NODES only (e.g. `{ '==': [{ var: 'country' }, 'us'] }`) — never the `{ field, op, value }` legacy form, never a bare boolean. Example: `city` options follow `province` → one rule per province with `when: { '==': [{ var: 'province' }, 'zj'] }` and `fulfill.dataOptions: [{label:'杭州',value:'hz'}]`. Applies to the query/add/edit forms — NOT the table column. HARD RULE: branching on a dropdown LABEL ('跨境结算') requires that field's `dataOptions` and comparing the VALUE ('cross') — rows carry codes, not labels; `validate_config` warns (non-blocking).","items":{"additionalProperties":{},"properties":{"dependencies":{"description":"Model paths that trigger re-evaluation of this rule. REQUIRED when `fulfill.value` is present.","items":{"minLength":1,"type":"string"},"type":"array"},"fulfill":{"additionalProperties":{},"properties":{"dataOptions":{"description":"Literal option array for this field when the rule is active (NOT an expression — the DSL forbids object literals, so branch by declaring one rule per case with its own `when`).","items":{"$ref":"#/definitions/__schema0"},"type":"array"},"disabled":{"anyOf":[{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}],"description":"Expression node evaluating to a boolean: disable this field."},"required":{"anyOf":[{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}],"description":"Expression node evaluating to a boolean: make this field required."},"value":{"anyOf":[{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}],"description":"Expression node evaluating to this field's new value, written back to the model (requires a non-empty `dependencies`)."}},"type":"object"},"when":{"anyOf":[{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}],"description":"Optional gate: the rule applies only while it evaluates truthy. A JSONLogic EXPRESSION NODE (e.g. { \"==\": [{ var: \"country\" }, \"us\"] }) — never the { field, op, value } legacy form (that one belongs to isHidden), never a bare boolean. Plain JSON, never a JS function string."}},"required":["fulfill"],"type":"object"},"type":"array"},"render":{"description":"Extension point: a render-function source string for a custom TABLE CELL, e.g. \"(_, { row }) => h(ElTag, { type: row.status === 1 ? 'success' : 'danger' }, () => row.statusLabel)\" (wired to a scoped slot). A FORM-control render cannot be inlined (form items are serialized as JSON data), so it is preserved as a marked TODO(es-plus) marker in the SFC — NOT silently delivered; prefer the declarative rules/attrs/dataOptions/reactions for FORM behaviour.","type":"string"},"required":{"type":"boolean"},"rules":{"description":"Validation rules for this field. Use `pattern`/`min`/`max`/`type` for format constraints and `trigger` for when validation runs; `message` is REQUIRED. CONFIG-side (artifact: `formItemOptions.rules`). A rule carrying `type` is dispatched ONLY to that type validator (async-validator `getValidationMethod`) — a `pattern` on the SAME rule is silently ignored, so when the user states BOTH a regex and a type, emit them as TWO separate rules. For a plain text length cap (e.g. '最多 20 字') prefer `attrs.maxlength`; a `min`/`max` rule validates values with a message but does not block typing. Emit these rather than dropping a format/range requirement the user stated.","items":{"additionalProperties":{},"properties":{"max":{"description":"Maximum length for strings / maximum value for numbers.","type":"number"},"message":{"description":"Message shown when the rule fails — REQUIRED, write it in the user's language.","type":"string"},"min":{"description":"Minimum length for strings / minimum value for numbers.","type":"number"},"pattern":{"description":"RegExp SOURCE STRING the value must match (e.g. \"^1\\d{10}$\"), not a RegExp object.","type":"string"},"required":{"description":"Enforce a value with this rule (same effect as field-level `required`; prefer the field-level key for unconditional requirements).","type":"boolean"},"trigger":{"description":"'blur' validates when the field loses focus; 'change' validates while the value changes.","enum":["blur","change"],"type":"string"},"type":{"description":"Value type validated by this rule.","enum":["string","number","email","url","integer"],"type":"string"}},"required":["message"],"type":"object"},"type":"array"},"width":{"type":["number","string"]}},"required":["prop","label","formtype"],"type":"object"},"type":"array"},"table":{"description":"Visible table columns","items":{"additionalProperties":{},"properties":{"align":{"enum":["left","center","right"],"type":"string"},"apiParams":{"additionalProperties":{},"description":"Remote options source for Select/Cascader/TreeSelect — use instead of dataOptions when options come from an API.","properties":{"labelField":{"type":"string"},"method":{"enum":["GET","POST"],"type":"string"},"url":{"type":"string"},"valueField":{"type":"string"}},"required":["url"],"type":"object"},"attrs":{"additionalProperties":{},"description":"Extra component props, e.g. { type: 'textarea', maxlength: 200 }","propertyNames":{"type":"string"},"type":"object"},"autoFilters":{"description":"Derive `filters` from this field's `dataOptions` (explicit `filters` wins).","type":"boolean"},"children":{"description":"Nested-object FORM grouping (ONE level only): this field becomes a full-width section heading; its children render under it. Child `prop` is relative to this field (`city` → `address.city`) unless absolute. The container binds NO data (never a table column) — omit `formtype`; children cannot declare `children` (array sub-forms are OUT of the declarative contract — use `render` or host-owned UI).","items":{"additionalProperties":{},"properties":{"align":{"enum":["left","center","right"],"type":"string"},"apiParams":{"additionalProperties":{},"description":"Remote options source for Select/Cascader/TreeSelect — use instead of dataOptions when options come from an API.","properties":{"labelField":{"type":"string"},"method":{"enum":["GET","POST"],"type":"string"},"url":{"type":"string"},"valueField":{"type":"string"}},"required":["url"],"type":"object"},"attrs":{"additionalProperties":{},"description":"Extra component props, e.g. { type: 'textarea', maxlength: 200 }","propertyNames":{"type":"string"},"type":"object"},"autoFilters":{"description":"Derive `filters` from this field's `dataOptions` (explicit `filters` wins).","type":"boolean"},"dataOptions":{"description":"Static options for Select/Radio/Checkbox/Cascader/TreeSelect/Autocomplete. Use this for known fixed enums.","items":{"$ref":"#/definitions/__schema0"},"type":"array"},"ellipsis":{"type":"boolean"},"filterMode":{"description":"Filter match: 'equals' (default) or 'includes' (cell text contains).","enum":["equals","includes"],"type":"string"},"filterMultiple":{"description":"Multi-select filter (default true).","type":"boolean"},"filters":{"description":"Filter options (plain JSON, never a function). On a FIELD they project onto the derived column. Local filtering on the default/vxe engines only — vue3 engine:'virtual' has no filter UI.","items":{"additionalProperties":{},"properties":{"text":{"description":"Option text shown in the filter dropdown.","type":"string"},"value":{"description":"Row value matched by this option (loose primitive compare: 1 matches \"1\").","type":["string","number","boolean"]}},"required":["text","value"],"type":"object"},"type":"array"},"fixed":{"anyOf":[{"type":"boolean"},{"const":"left","type":"string"},{"const":"right","type":"string"}]},"formSpan":{"description":"Grid width of this field in the add/edit form (1-24; 2 columns = 12 each). Column count is set PER FIELD — `formLayout` has no span key.","maximum":24,"minimum":1,"type":"integer"},"formatter":{"description":"Extension point: JS arrow-function source for read-only cell formatting, e.g. \"(row) => row.amount.toFixed(2)\".","type":"string"},"formtype":{"description":"Pick by MEANING, not keywords: status/type/enum/gender → Select; date/time → DatePicker/TimePicker; image/avatar/attachment/file → Upload; long text/remark/description → Input (attrs.type:'textarea'); boolean on/off → Switch; single-choice small set → Radio; multi-choice → Checkbox; region/category tree → Cascader; department/org/permission tree with ANY level selectable → TreeSelect; type-to-filter over a known option set → Autocomplete; score → Rate; plain text → Input. OMIT only for a nested-object container (a field carrying `children`) — it renders no input.","enum":["Input","InputNumber","Select","DatePicker","TimePicker","Slider","ColorPicker","Transfer","Cascader","TreeSelect","Autocomplete","Radio","Checkbox","Switch","Rate","Upload","datePicker","timePicker"],"type":"string"},"group":{"description":"Form-group key for the FORM face. Fields sharing a key are rendered inside that group's container; declare the containers in `formLayout.layout` (query form) or `dialogs[k].formLayout.layout` (dialog form). Ignored by the table column. Omit to follow the layout's `ungrouped` strategy.","minLength":1,"type":"string"},"isHidden":{"anyOf":[{"additionalProperties":{},"properties":{"field":{"description":"Model field path to test, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"},"op":{"description":"Operator: eq/ne = equal/not-equal (default eq; number↔string tolerated, e.g. 1 matches '1'); in/nIn = in/not-in the given array; empty/notEmpty = ''/null/undefined/[]; truthy/falsy = JS truthiness. The field is hidden WHEN it holds.","enum":["eq","ne","in","nIn","empty","notEmpty","truthy","falsy"],"type":"string"},"value":{"description":"Right-hand side of the comparison. REQUIRED for eq/ne (scalar) and in/nIn (array). IGNORED by empty/notEmpty/truthy/falsy."}},"required":["field"],"type":"object"},{"anyOf":[{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}]},{"items":{"anyOf":[{"additionalProperties":{},"properties":{"field":{"description":"Model field path to test, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"},"op":{"description":"Operator: eq/ne = equal/not-equal (default eq; number↔string tolerated, e.g. 1 matches '1'); in/nIn = in/not-in the given array; empty/notEmpty = ''/null/undefined/[]; truthy/falsy = JS truthiness. The field is hidden WHEN it holds.","enum":["eq","ne","in","nIn","empty","notEmpty","truthy","falsy"],"type":"string"},"value":{"description":"Right-hand side of the comparison. REQUIRED for eq/ne (scalar) and in/nIn (array). IGNORED by empty/notEmpty/truthy/falsy."}},"required":["field"],"type":"object"},{"anyOf":[{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}]}]},"minItems":1,"type":"array"}],"description":"Hidden when the condition HOLDS — PLAIN JSON DATA, never a JS function string (functions cannot be inlined into a schema-mode pageSchema). `{ field: 'payType', op: 'eq', value: 'cash' }` = hidden while payType is cash; an ARRAY of conditions is AND. TWO forms, never mixed within one node: (1) legacy `{ field, op, value }` with op ∈ eq|ne|in|nIn|empty|notEmpty|truthy|falsy (default eq) — preferred for simple comparisons; (2) a JSONLogic-shaped expression when a plain condition can't express it (OR, ordering, nesting): `{ or: [ { '==': [{ var: 'status' }, 'pending'] }, { '>': [{ var: 'amount' }, 100] } ] }`; expression ops (closed set): var == != > >= < <= in nin empty notEmpty truthy falsy and or not if. A form-(2) op inside a form-(1) node is INVALID (runtime warns and treats the field as visible). Applies to the query/filter and add/edit dialog forms (its `inQuery`/`inForm` placement) — NOT to the table column (`inTable`). Evaluated live by the three renderers."},"label":{"description":"Human-readable column/form label, e.g. \"用户名\"","minLength":1,"type":"string"},"labelKey":{"description":"i18n key for this field's label (instead of `label`; derived as `field.<prop>` when omitted). Only takes effect once the HOST assembles the plugin with a `t` option (else falls back to `label`).","type":"string"},"minWidth":{"type":["number","string"]},"permissionValue":{"description":"Permission CODE gating this field (RBAC, checked by the host's global permission(code)) — NOT a data-driven condition: use `isHidden` for show/hide by another field's value, `reactions` for options/required/disabled linkage.","type":"string"},"prop":{"description":"Field key in the data model (camelCase), e.g. \"userName\"","minLength":1,"type":"string"},"querySpan":{"description":"Grid width of this field in the query form (1-24; 2 columns = 12 each). Column count is set PER FIELD — `formLayout` has no span key.","maximum":24,"minimum":1,"type":"integer"},"reactions":{"description":"Field-level linkage / computed rules (AI-07) — PLAIN JSON, never JS callbacks. Use when THIS field's options/required/disabled/value depend on ANOTHER field. Each rule `{ dependencies?, when?, fulfill }`: `dependencies` = model paths that re-trigger it (REQUIRED when `fulfill.value` is set); `when` gates the rule; `fulfill` supplies `dataOptions` (literal array), `required`/`disabled` (boolean expressions) and/or `value` (this field's new value, written back). `when`/`required`/`disabled`/`value` are JSONLogic EXPRESSION NODES only (e.g. `{ '==': [{ var: 'country' }, 'us'] }`) — never the `{ field, op, value }` legacy form, never a bare boolean. Example: `city` options follow `province` → one rule per province with `when: { '==': [{ var: 'province' }, 'zj'] }` and `fulfill.dataOptions: [{label:'杭州',value:'hz'}]`. Applies to the query/add/edit forms — NOT the table column. HARD RULE: branching on a dropdown LABEL ('跨境结算') requires that field's `dataOptions` and comparing the VALUE ('cross') — rows carry codes, not labels; `validate_config` warns (non-blocking).","items":{"additionalProperties":{},"properties":{"dependencies":{"description":"Model paths that trigger re-evaluation of this rule. REQUIRED when `fulfill.value` is present.","items":{"minLength":1,"type":"string"},"type":"array"},"fulfill":{"additionalProperties":{},"properties":{"dataOptions":{"description":"Literal option array for this field when the rule is active (NOT an expression — the DSL forbids object literals, so branch by declaring one rule per case with its own `when`).","items":{"$ref":"#/definitions/__schema0"},"type":"array"},"disabled":{"anyOf":[{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}],"description":"Expression node evaluating to a boolean: disable this field."},"required":{"anyOf":[{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}],"description":"Expression node evaluating to a boolean: make this field required."},"value":{"anyOf":[{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}],"description":"Expression node evaluating to this field's new value, written back to the model (requires a non-empty `dependencies`)."}},"type":"object"},"when":{"anyOf":[{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}],"description":"Optional gate: the rule applies only while it evaluates truthy. A JSONLogic EXPRESSION NODE (e.g. { \"==\": [{ var: \"country\" }, \"us\"] }) — never the { field, op, value } legacy form (that one belongs to isHidden), never a bare boolean. Plain JSON, never a JS function string."}},"required":["fulfill"],"type":"object"},"type":"array"},"render":{"description":"Extension point: a render-function source string for a custom TABLE CELL, e.g. \"(_, { row }) => h(ElTag, { type: row.status === 1 ? 'success' : 'danger' }, () => row.statusLabel)\" (wired to a scoped slot). A FORM-control render cannot be inlined (form items are serialized as JSON data), so it is preserved as a marked TODO(es-plus) marker in the SFC — NOT silently delivered; prefer the declarative rules/attrs/dataOptions/reactions for FORM behaviour.","type":"string"},"required":{"type":"boolean"},"rules":{"description":"Validation rules for this field. Use `pattern`/`min`/`max`/`type` for format constraints and `trigger` for when validation runs; `message` is REQUIRED. CONFIG-side (artifact: `formItemOptions.rules`). A rule carrying `type` is dispatched ONLY to that type validator (async-validator `getValidationMethod`) — a `pattern` on the SAME rule is silently ignored, so when the user states BOTH a regex and a type, emit them as TWO separate rules. For a plain text length cap (e.g. '最多 20 字') prefer `attrs.maxlength`; a `min`/`max` rule validates values with a message but does not block typing. Emit these rather than dropping a format/range requirement the user stated.","items":{"additionalProperties":{},"properties":{"max":{"description":"Maximum length for strings / maximum value for numbers.","type":"number"},"message":{"description":"Message shown when the rule fails — REQUIRED, write it in the user's language.","type":"string"},"min":{"description":"Minimum length for strings / minimum value for numbers.","type":"number"},"pattern":{"description":"RegExp SOURCE STRING the value must match (e.g. \"^1\\d{10}$\"), not a RegExp object.","type":"string"},"required":{"description":"Enforce a value with this rule (same effect as field-level `required`; prefer the field-level key for unconditional requirements).","type":"boolean"},"trigger":{"description":"'blur' validates when the field loses focus; 'change' validates while the value changes.","enum":["blur","change"],"type":"string"},"type":{"description":"Value type validated by this rule.","enum":["string","number","email","url","integer"],"type":"string"}},"required":["message"],"type":"object"},"type":"array"},"width":{"type":["number","string"]}},"required":["prop","label","formtype"],"type":"object"},"minItems":1,"type":"array"},"dataOptions":{"description":"Static options for Select/Radio/Checkbox/Cascader/TreeSelect/Autocomplete. Use this for known fixed enums.","items":{"$ref":"#/definitions/__schema0"},"type":"array"},"ellipsis":{"type":"boolean"},"filterMode":{"description":"Filter match: 'equals' (default) or 'includes' (cell text contains).","enum":["equals","includes"],"type":"string"},"filterMultiple":{"description":"Multi-select filter (default true).","type":"boolean"},"filters":{"description":"Filter options (plain JSON, never a function). On a FIELD they project onto the derived column. Local filtering on the default/vxe engines only — vue3 engine:'virtual' has no filter UI.","items":{"additionalProperties":{},"properties":{"text":{"description":"Option text shown in the filter dropdown.","type":"string"},"value":{"description":"Row value matched by this option (loose primitive compare: 1 matches \"1\").","type":["string","number","boolean"]}},"required":["text","value"],"type":"object"},"type":"array"},"fixed":{"anyOf":[{"type":"boolean"},{"const":"left","type":"string"},{"const":"right","type":"string"}]},"formSpan":{"description":"Grid width of this field in the add/edit form (1-24; 2 columns = 12 each). Column count is set PER FIELD — `formLayout` has no span key.","maximum":24,"minimum":1,"type":"integer"},"formatter":{"description":"Extension point: JS arrow-function source for read-only cell formatting, e.g. \"(row) => row.amount.toFixed(2)\".","type":"string"},"formtype":{"description":"Pick by MEANING, not keywords: status/type/enum/gender → Select; date/time → DatePicker/TimePicker; image/avatar/attachment/file → Upload; long text/remark/description → Input (attrs.type:'textarea'); boolean on/off → Switch; single-choice small set → Radio; multi-choice → Checkbox; region/category tree → Cascader; department/org/permission tree with ANY level selectable → TreeSelect; type-to-filter over a known option set → Autocomplete; score → Rate; plain text → Input. OMIT only for a nested-object container (a field carrying `children`) — it renders no input.","enum":["Input","InputNumber","Select","DatePicker","TimePicker","Slider","ColorPicker","Transfer","Cascader","TreeSelect","Autocomplete","Radio","Checkbox","Switch","Rate","Upload","datePicker","timePicker"],"type":"string"},"group":{"description":"Form-group key for the FORM face. Fields sharing a key are rendered inside that group's container; declare the containers in `formLayout.layout` (query form) or `dialogs[k].formLayout.layout` (dialog form). Ignored by the table column. Omit to follow the layout's `ungrouped` strategy.","minLength":1,"type":"string"},"isHidden":{"anyOf":[{"additionalProperties":{},"properties":{"field":{"description":"Model field path to test, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"},"op":{"description":"Operator: eq/ne = equal/not-equal (default eq; number↔string tolerated, e.g. 1 matches '1'); in/nIn = in/not-in the given array; empty/notEmpty = ''/null/undefined/[]; truthy/falsy = JS truthiness. The field is hidden WHEN it holds.","enum":["eq","ne","in","nIn","empty","notEmpty","truthy","falsy"],"type":"string"},"value":{"description":"Right-hand side of the comparison. REQUIRED for eq/ne (scalar) and in/nIn (array). IGNORED by empty/notEmpty/truthy/falsy."}},"required":["field"],"type":"object"},{"anyOf":[{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}]},{"items":{"anyOf":[{"additionalProperties":{},"properties":{"field":{"description":"Model field path to test, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"},"op":{"description":"Operator: eq/ne = equal/not-equal (default eq; number↔string tolerated, e.g. 1 matches '1'); in/nIn = in/not-in the given array; empty/notEmpty = ''/null/undefined/[]; truthy/falsy = JS truthiness. The field is hidden WHEN it holds.","enum":["eq","ne","in","nIn","empty","notEmpty","truthy","falsy"],"type":"string"},"value":{"description":"Right-hand side of the comparison. REQUIRED for eq/ne (scalar) and in/nIn (array). IGNORED by empty/notEmpty/truthy/falsy."}},"required":["field"],"type":"object"},{"anyOf":[{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}]}]},"minItems":1,"type":"array"}],"description":"Hidden when the condition HOLDS — PLAIN JSON DATA, never a JS function string (functions cannot be inlined into a schema-mode pageSchema). `{ field: 'payType', op: 'eq', value: 'cash' }` = hidden while payType is cash; an ARRAY of conditions is AND. TWO forms, never mixed within one node: (1) legacy `{ field, op, value }` with op ∈ eq|ne|in|nIn|empty|notEmpty|truthy|falsy (default eq) — preferred for simple comparisons; (2) a JSONLogic-shaped expression when a plain condition can't express it (OR, ordering, nesting): `{ or: [ { '==': [{ var: 'status' }, 'pending'] }, { '>': [{ var: 'amount' }, 100] } ] }`; expression ops (closed set): var == != > >= < <= in nin empty notEmpty truthy falsy and or not if. A form-(2) op inside a form-(1) node is INVALID (runtime warns and treats the field as visible). Applies to the query/filter and add/edit dialog forms (its `inQuery`/`inForm` placement) — NOT to the table column (`inTable`). Evaluated live by the three renderers."},"label":{"description":"Human-readable column/form label, e.g. \"用户名\"","minLength":1,"type":"string"},"labelKey":{"description":"i18n key for this field's label (instead of `label`; derived as `field.<prop>` when omitted). Only takes effect once the HOST assembles the plugin with a `t` option (else falls back to `label`).","type":"string"},"minWidth":{"type":["number","string"]},"permissionValue":{"description":"Permission CODE gating this field (RBAC, checked by the host's global permission(code)) — NOT a data-driven condition: use `isHidden` for show/hide by another field's value, `reactions` for options/required/disabled linkage.","type":"string"},"prop":{"description":"Field key in the data model (camelCase), e.g. \"userName\"","minLength":1,"type":"string"},"querySpan":{"description":"Grid width of this field in the query form (1-24; 2 columns = 12 each). Column count is set PER FIELD — `formLayout` has no span key.","maximum":24,"minimum":1,"type":"integer"},"reactions":{"description":"Field-level linkage / computed rules (AI-07) — PLAIN JSON, never JS callbacks. Use when THIS field's options/required/disabled/value depend on ANOTHER field. Each rule `{ dependencies?, when?, fulfill }`: `dependencies` = model paths that re-trigger it (REQUIRED when `fulfill.value` is set); `when` gates the rule; `fulfill` supplies `dataOptions` (literal array), `required`/`disabled` (boolean expressions) and/or `value` (this field's new value, written back). `when`/`required`/`disabled`/`value` are JSONLogic EXPRESSION NODES only (e.g. `{ '==': [{ var: 'country' }, 'us'] }`) — never the `{ field, op, value }` legacy form, never a bare boolean. Example: `city` options follow `province` → one rule per province with `when: { '==': [{ var: 'province' }, 'zj'] }` and `fulfill.dataOptions: [{label:'杭州',value:'hz'}]`. Applies to the query/add/edit forms — NOT the table column. HARD RULE: branching on a dropdown LABEL ('跨境结算') requires that field's `dataOptions` and comparing the VALUE ('cross') — rows carry codes, not labels; `validate_config` warns (non-blocking).","items":{"additionalProperties":{},"properties":{"dependencies":{"description":"Model paths that trigger re-evaluation of this rule. REQUIRED when `fulfill.value` is present.","items":{"minLength":1,"type":"string"},"type":"array"},"fulfill":{"additionalProperties":{},"properties":{"dataOptions":{"description":"Literal option array for this field when the rule is active (NOT an expression — the DSL forbids object literals, so branch by declaring one rule per case with its own `when`).","items":{"$ref":"#/definitions/__schema0"},"type":"array"},"disabled":{"anyOf":[{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}],"description":"Expression node evaluating to a boolean: disable this field."},"required":{"anyOf":[{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}],"description":"Expression node evaluating to a boolean: make this field required."},"value":{"anyOf":[{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}],"description":"Expression node evaluating to this field's new value, written back to the model (requires a non-empty `dependencies`)."}},"type":"object"},"when":{"anyOf":[{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}],"description":"Optional gate: the rule applies only while it evaluates truthy. A JSONLogic EXPRESSION NODE (e.g. { \"==\": [{ var: \"country\" }, \"us\"] }) — never the { field, op, value } legacy form (that one belongs to isHidden), never a bare boolean. Plain JSON, never a JS function string."}},"required":["fulfill"],"type":"object"},"type":"array"},"render":{"description":"Extension point: a render-function source string for a custom TABLE CELL, e.g. \"(_, { row }) => h(ElTag, { type: row.status === 1 ? 'success' : 'danger' }, () => row.statusLabel)\" (wired to a scoped slot). A FORM-control render cannot be inlined (form items are serialized as JSON data), so it is preserved as a marked TODO(es-plus) marker in the SFC — NOT silently delivered; prefer the declarative rules/attrs/dataOptions/reactions for FORM behaviour.","type":"string"},"required":{"type":"boolean"},"rules":{"description":"Validation rules for this field. Use `pattern`/`min`/`max`/`type` for format constraints and `trigger` for when validation runs; `message` is REQUIRED. CONFIG-side (artifact: `formItemOptions.rules`). A rule carrying `type` is dispatched ONLY to that type validator (async-validator `getValidationMethod`) — a `pattern` on the SAME rule is silently ignored, so when the user states BOTH a regex and a type, emit them as TWO separate rules. For a plain text length cap (e.g. '最多 20 字') prefer `attrs.maxlength`; a `min`/`max` rule validates values with a message but does not block typing. Emit these rather than dropping a format/range requirement the user stated.","items":{"additionalProperties":{},"properties":{"max":{"description":"Maximum length for strings / maximum value for numbers.","type":"number"},"message":{"description":"Message shown when the rule fails — REQUIRED, write it in the user's language.","type":"string"},"min":{"description":"Minimum length for strings / minimum value for numbers.","type":"number"},"pattern":{"description":"RegExp SOURCE STRING the value must match (e.g. \"^1\\d{10}$\"), not a RegExp object.","type":"string"},"required":{"description":"Enforce a value with this rule (same effect as field-level `required`; prefer the field-level key for unconditional requirements).","type":"boolean"},"trigger":{"description":"'blur' validates when the field loses focus; 'change' validates while the value changes.","enum":["blur","change"],"type":"string"},"type":{"description":"Value type validated by this rule.","enum":["string","number","email","url","integer"],"type":"string"}},"required":["message"],"type":"object"},"type":"array"},"width":{"type":["number","string"]}},"required":["prop","label","formtype"],"type":"object"},"type":"array"}},"type":"object"},"tableBtns":{"description":"Table toolbar buttons rendered above EsTable, e.g. [{ name: \"导出\", actionType: \"export\", position: \"left\" }]. Canonical keys are `name` + `actionType` + `position`; the legacy aliases `label`/`action` are accepted and normalized.","items":{"properties":{"action":{"description":"Alias of `actionType` (legacy example shape: label/action)","type":"string"},"actionType":{"type":"string"},"code":{"anyOf":[{"const":1,"type":"number"},{"const":2,"type":"number"}],"description":"1=left, 2=right (legacy alias of position; normalized automatically)"},"confirm":{"type":["string","boolean"]},"dialogKey":{"type":"string"},"icon":{"type":"string"},"key":{"type":"string"},"label":{"description":"Alias of `name` (legacy example shape: label/action)","type":"string"},"name":{"minLength":1,"type":"string"},"permissionValue":{"type":"string"},"position":{"description":"left | right (recommended positioning field)","enum":["left","right"],"type":"string"},"type":{"type":"string"}},"type":"object"},"type":"array"},"tableOptions":{"additionalProperties":false,"description":"Table options, forwarded verbatim into the composed config's `tableOptions` block (border/stripe/rowkey/heightType/tabHeight/height/multiSelect/emptyText/size/defaultSort/leftText/engine/virtual/editConfig/configTableOut/tableOptions.treeConfig/tableOptions.expandConfig/…). The full key set and per-key semantics are the same as `StructuredCrudConfig.tableOptions`; unknown keys are rejected.","properties":{"border":{"type":"boolean"},"cachePageSelection":{"description":"Persist the checkbox selection across page changes (needs a stable rowkey). Default true at runtime; set false to reset selection on page change.","type":"boolean"},"columnConfig":{"additionalProperties":{},"description":"vxe column config, e.g. { resizable: true, drag: true, showOverflow: 'tooltip' }. Advanced: only with engine:'vxe'.","propertyNames":{"type":"string"},"type":"object"},"configTableOut":{"additionalProperties":false,"description":"Map the LIST API response onto table semantics when the backend does not use the default flat shape. Default mapping is { total: \"records\", tableData: \"rows\", pageSize: \"pageSize\", current: \"pageNo\" }. Each value is the FLAT response key (no deep paths — the component only reads top-level keys). e.g. a backend returning { list: [...], count: N } → { tableData: \"list\", total: \"count\" }. Only the keys you set are remapped; omit a key to keep its default.","properties":{"current":{"type":"string"},"pageSize":{"type":"string"},"tableData":{"type":"string"},"total":{"type":"string"}},"type":"object"},"defaultSort":{"additionalProperties":false,"description":"Default sort applied on first render.","properties":{"order":{"enum":["ascending","descending"],"type":"string"},"prop":{"type":"string"}},"required":["prop","order"],"type":"object"},"editConfig":{"additionalProperties":false,"description":"Enable vxe inline editing (AI-09 子项④). vxe engine only — MUST be paired with tableOptions.engine:'vxe'. A cell is only editable when its column also declares `editRender`. An edit writes STRAIGHT into the row object of `:data-source` (the table holds the same row references, so the host also gets `update:dataSource`); `keepSource` is auto-enabled only to keep a snapshot for `revertData()`, it is NOT a private copy. To learn WHICH cell changed and what the previous value was, listen to the `cell-edit` event — `{ row, prop, value, oldValue }`, emitted on blur / row switch in cell mode (one per changed cell in row mode), never for an unchanged cell.","properties":{"autoClear":{"type":"boolean"},"enabled":{"type":"boolean"},"mode":{"description":"'cell' = single cell; 'row' = whole row.","enum":["cell","row"],"type":"string"},"showInsertStatus":{"type":"boolean"},"showStatus":{"type":"boolean"},"showUpdateStatus":{"type":"boolean"},"trigger":{"description":"How editing is entered (default 'click').","enum":["click","dblclick","manual"],"type":"string"}},"type":"object"},"emptyText":{"description":"Text shown when there are no rows (default '暂无数据').","type":"string"},"engine":{"description":"Table rendering engine, an alternative to `virtual: true`. 'default' = el-table / a-table / el-table. 'virtual' = vue3 el-table-v2 only; antdv and vue2 have no virtual engine and degrade to a plain table with a warning. 'vxe' = vxe-table, available on ALL THREE targets — vue3 and antdv through their own vxe adapters, and vue2 through @es-plus/vue2's vxe engine. Use 'vxe' for large data on antdv/vue2, where 'virtual' is not available.","enum":["default","virtual","vxe"],"type":"string"},"estimatedRowHeight":{"description":"Estimated row height for dynamic-height virtual scrolling (vue3 / el-table-v2 only)","type":"number"},"expandConfig":{"additionalProperties":false,"description":"vxe-only row-expand switch (paired with `expand: true` / an expand column). Distinct from the top-level `expandConfig` (declarative read-only field list honored by all three renderers).","properties":{"accordion":{"description":"Accordion mode: at most one row expanded at a time.","type":"boolean"},"expandAll":{"description":"Expand every row by default.","type":"boolean"},"lazy":{"description":"Lazy-load expand content (vxe only; the loader function itself is a Tier-3 extension point).","type":"boolean"}},"type":"object"},"exportConfig":{"anyOf":[{"type":"boolean"},{"additionalProperties":{},"propertyNames":{"type":"string"},"type":"object"}],"description":"vxe export config: `true` for defaults, or an object with filename / type ('xlsx'|'csv'|'html'|'xml'|'txt') / useStyle / isColgroup. Advanced: only with engine:'vxe'. Non-CSV formats need the vxe export plugin; the `download` callback is a function and is out of the JSON contract."},"footerData":{"description":"Static footer rows, a 2-D array ([row][column]). Advanced: only with engine:'vxe'. The function form `footerMethod` cannot travel in JSON — use `vxeConfig` at runtime.","items":{"items":{},"type":"array"},"type":"array"},"headerCellStyle":{"additionalProperties":{"type":"string"},"propertyNames":{"type":"string"},"type":"object"},"height":{"description":"Container height used ONLY when heightType is 'height' (ignored for 'auto' / 'maxHeight' — use tabHeight there). Takes precedence over nothing: an explicit tabHeight always wins.","type":["number","string"]},"heightType":{"description":"How the container height is applied: 'height' = fixed height (value from `height`, or `tabHeight` if set); 'maxHeight' = capped at `tabHeight` (a `height` value is IGNORED); 'auto' = no container height constraint. Default 'auto'.","enum":["height","auto","maxHeight"],"type":"string"},"highlightCurrentRow":{"type":"boolean"},"keepSource":{"description":"Keep a pre-edit snapshot of each row so revertData() / getUpdateRecords() / getInsertRecords() work. Auto-enabled when editConfig is set. Advanced: vxe inline editing only.","type":"boolean"},"keyboardConfig":{"additionalProperties":false,"description":"vxe keyboard navigation. Advanced: only consumed with engine:'vxe', typically together with editConfig.","properties":{"enterToTab":{"description":"Enter behaves like Tab.","type":"boolean"},"isArrow":{"description":"Arrow keys move the cell focus.","type":"boolean"},"isDel":{"description":"Delete / Backspace clears the cell.","type":"boolean"},"isEdit":{"description":"Any printable character enters edit mode.","type":"boolean"},"isEnter":{"description":"Enter confirms and moves down.","type":"boolean"},"isTab":{"description":"Tab moves to the next cell.","type":"boolean"}},"type":"object"},"leftText":{"description":"Text shown on the left side of the table toolbar.","type":"string"},"localPagination":{"description":"Paginate already-fetched data client-side instead of requesting each page from the API.","type":"boolean"},"mouseConfig":{"additionalProperties":false,"description":"vxe cell-selection mode (`{ selected: true }` enables click-to-select). Advanced: only with engine:'vxe'.","properties":{"selected":{"description":"Click a cell to highlight/select it (arrow keys then move it).","type":"boolean"}},"type":"object"},"multiSelect":{"type":"boolean"},"overscanCount":{"description":"Buffer rows outside the visible area (vue3 / el-table-v2 only; default 2)","maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"printConfig":{"anyOf":[{"type":"boolean"},{"additionalProperties":{},"propertyNames":{"type":"string"},"type":"object"}],"description":"vxe print config: `true` for defaults, or e.g. { columns: [{ field: 'name' }] }. Advanced: only with engine:'vxe'."},"refetchKeepPage":{"description":"Keep the current page when re-fetching (default false). Query/reset still return to page 1.","type":"boolean"},"rowClassName":{"description":"Custom row CSS class name","type":"string"},"rowHeight":{"description":"Row height in px for virtual mode (vue3 / el-table-v2 only; default 50)","type":"number"},"rowkey":{"type":"string"},"seqConfig":{"additionalProperties":false,"description":"vxe sequence-column config (needs `snIndex: true` or a type:'index' column). Only `startIndex` is JSON-safe — `seqMethod` is a function and stays in the runtime escape hatch. Advanced: only with engine:'vxe'.","properties":{"startIndex":{"description":"First serial number (default 1).","maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"type":"object"},"showFooter":{"description":"Show the vxe footer row. Advanced: only consumed with engine:'vxe'.","type":"boolean"},"showHeader":{"description":"Show the table header (default true). Set false to hide it.","type":"boolean"},"size":{"description":"Table density. Default 'small' at runtime; el-table and a-table both accept these.","enum":["large","default","small"],"type":"string"},"snIndex":{"description":"Render a leading row-index (serial number) column.","type":"boolean"},"sortParam":{"anyOf":[{"type":"boolean"},{"additionalProperties":false,"properties":{"field":{"type":"string"},"order":{"type":"string"}},"type":"object"}],"description":"Server-side sorting: when set, the table stops sorting the current page locally and every list request carries { sortField, sortOrder } (order = 'asc' | 'desc'); a header click refetches the SAME page. { field, order } renames the two request keys. Also seeds from defaultSort, so the first request is already sorted. Omit to keep client-side sorting of the current page."},"stripe":{"type":"boolean"},"tabHeight":{"description":"Table height consumed for EVERY heightType: under 'height' it overrides `height`; under 'maxHeight' it is the cap. number → px, string → raw CSS value (e.g. '60vh'). Prefer it over `height` whenever a concrete height is needed — it is the only height key that applies when heightType is 'maxHeight'.","type":["number","string"]},"toolbarConfig":{"anyOf":[{"type":"boolean"},{"additionalProperties":{},"propertyNames":{"type":"string"},"type":"object"}],"description":"vxe toolbar config (`true` for defaults, or { buttons: [...] } etc.). Advanced: only with engine:'vxe'."},"treeConfig":{"additionalProperties":false,"description":"vxe-only rich tree config (the SAME-NAME top-level `treeConfig` is the cross-renderer narrow subset; when both are set the generator merges them into tableOptions.treeConfig with the top-level key winning). Use `treeConfig.transform:true + rowField + parentField` to build a tree from FLAT rows; use the top-level `treeConfig` for nested `children` arrays on el-table / a-table.","properties":{"children":{"description":"@deprecated vxe v4 alias of childrenField; normalized at runtime.","type":"string"},"childrenField":{"description":"Child array field (default 'children').","type":"string"},"expandAll":{"description":"Start with every node expanded.","type":"boolean"},"lazy":{"description":"Lazy-load children (vxe only; the loader function itself is a Tier-3 extension point and cannot travel in JSON).","type":"boolean"},"mapChildren":{"description":"Field that caches original children in transform mode (default '_X_ROW_CHILD').","type":"string"},"parentField":{"description":"Parent id field for transform mode (default 'parentId').","type":"string"},"rowField":{"description":"Row id field for transform mode (default 'id').","type":"string"},"transform":{"description":"Build the tree client-side from FLAT rows (needs rowField + parentField). vxe only.","type":"boolean"}},"type":"object"},"validConfig":{"additionalProperties":false,"description":"vxe cell validation feedback (pair with `rules` on the column's editRender). Advanced: only with engine:'vxe'.","properties":{"autoPos":{"description":"Scroll the first invalid cell into view.","type":"boolean"},"message":{"description":"How validation feedback is shown (default 'default').","enum":["default","tooltip","modal","none"],"type":"string"},"msgMode":{"description":"Show one message or the full message list (default 'single').","enum":["single","full"],"type":"string"}},"type":"object"},"virtual":{"description":"Enable virtual scrolling for large datasets. vue3 renders the el-table-v2 engine. antdv and vue2 have NO virtual scrolling: a-table never implemented it and Element UI has no el-table-v2 — both targets warn and render a plain table. For large data on antdv/vue2 use `engine: 'vxe'` instead.","type":"boolean"}},"type":"object"},"target":{"default":"vue3","description":"Target renderer: vue3 (Element Plus), vue2 (Element UI), antdv (Ant Design Vue)","enum":["vue3","vue2","antdv"],"type":"string"},"toolbarBtns":{"description":"Buttons rendered in the QUERY-FORM button area, appended after 查询/重置. No left/right placement here — when the description names a side, use `tableBtns` instead. Unknown keys are rejected.","items":{"properties":{"actionType":{"type":"string"},"code":{"anyOf":[{"const":1,"type":"number"},{"const":2,"type":"number"}],"description":"1=left, 2=right (legacy alias of position; normalized automatically)"},"confirm":{"type":["string","boolean"]},"dialogKey":{"type":"string"},"direction":{"description":"Form-button direction (legacy form-side field; wins over 'position')","enum":["left","right"],"type":"string"},"icon":{"type":"string"},"key":{"type":"string"},"name":{"minLength":1,"type":"string"},"permissionValue":{"type":"string"},"position":{"description":"left | right (recommended positioning field; defaults to right)","enum":["left","right"],"type":"string"},"triggerEvent":{"type":"boolean"},"type":{"type":"string"}},"required":["name"],"type":"object"},"type":"array"},"treeConfig":{"additionalProperties":false,"description":"Declarative tree table ({ childrenField?, expandAll? }) — renders parent/child levels from each row's nested child array (row-key emitted automatically). Distinct from tableOptions.treeConfig (vxe-only). Unknown keys are rejected.","properties":{"childrenField":{"description":"Key name that holds a row's nested child nodes (default 'children'). Set only when the API nests children under a different key.","type":"string"},"expandAll":{"description":"Whether all nodes start expanded (default false).","type":"boolean"}},"type":"object"},"typescript":{"default":true,"type":"boolean"}},"required":["name","apiUrl","surfaces"],"type":"object"},"name":"generate_crud","outputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":{},"properties":{"contract":{"description":"Envelope protocol version: es-plus.artifact@2 or es-plus.composition@3","type":"string"},"fingerprint":{"description":"Content fingerprint of the artifact / composition","type":"string"}},"required":["contract","fingerprint"],"type":"object"}},{"description":"Generate a STANDALONE <es-form> component — a self-contained .vue SFC (own reactive model + formItemList) that drops next to native/third-party components with zero scope collision. Use this ONLY when the user explicitly wants a single form on its own (a search filter, a settings form, a form embedded in a custom layout). For a full CRUD page (query + table + add/edit/delete) use generate_scene (scene='crud') instead — do NOT hand-assemble a CRUD page from separate fragment tools. The field vocabulary is identical to that scene's intent table; map meaning → formtype the same way. Field-level `render` is NOT consumed by a fragment form (the item is emitted from `formtype`; the product warns and names the fields) — for a custom control, hand-write the item and omit formtype, or use the CRUD schema path. `formatter` is a table-cell extension point and has no meaning on a form item.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":{},"definitions":{"__schema0":{"additionalProperties":{},"properties":{"children":{"items":{"$ref":"#/definitions/__schema0"},"type":"array"},"disabled":{"type":"boolean"},"label":{"type":"string"},"tagType":{"description":"Render this option as a tag in the TABLE cell, in this semantic colour. Ignored by the form controls.","enum":["primary","success","warning","danger","info"],"type":"string"},"value":{"type":["string","number","boolean"]}},"required":["label","value"],"type":"object"},"__schema1":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}]}},"properties":{"buttons":{"default":"none","description":"Footer buttons: 'none' (hide button row), 'query' (查询+重置), 'submit' (保存+重置)","enum":["none","query","submit"],"type":"string"},"context":{"default":"form","description":"span sizing: 'query' = narrow filter fields (6/8), 'form' = full-width (24)","enum":["query","form"],"type":"string"},"fields":{"description":"Form fields — one per input the user described","items":{"additionalProperties":{},"properties":{"align":{"enum":["left","center","right"],"type":"string"},"apiParams":{"additionalProperties":{},"description":"Remote options source for Select/Cascader/TreeSelect — use instead of dataOptions when options come from an API.","properties":{"labelField":{"type":"string"},"method":{"enum":["GET","POST"],"type":"string"},"url":{"type":"string"},"valueField":{"type":"string"}},"required":["url"],"type":"object"},"attrs":{"additionalProperties":{},"description":"Extra component props, e.g. { type: 'textarea', maxlength: 200 }","propertyNames":{"type":"string"},"type":"object"},"autoFilters":{"description":"Derive `filters` from this field's `dataOptions` (explicit `filters` wins).","type":"boolean"},"children":{"description":"Nested-object FORM grouping (ONE level only): this field becomes a full-width section heading; its children render under it. Child `prop` is relative to this field (`city` → `address.city`) unless absolute. The container binds NO data (never a table column) — omit `formtype`; children cannot declare `children` (array sub-forms are OUT of the declarative contract — use `render` or host-owned UI).","items":{"additionalProperties":{},"properties":{"align":{"enum":["left","center","right"],"type":"string"},"apiParams":{"additionalProperties":{},"description":"Remote options source for Select/Cascader/TreeSelect — use instead of dataOptions when options come from an API.","properties":{"labelField":{"type":"string"},"method":{"enum":["GET","POST"],"type":"string"},"url":{"type":"string"},"valueField":{"type":"string"}},"required":["url"],"type":"object"},"attrs":{"additionalProperties":{},"description":"Extra component props, e.g. { type: 'textarea', maxlength: 200 }","propertyNames":{"type":"string"},"type":"object"},"autoFilters":{"description":"Derive `filters` from this field's `dataOptions` (explicit `filters` wins).","type":"boolean"},"dataOptions":{"description":"Static options for Select/Radio/Checkbox/Cascader/TreeSelect/Autocomplete. Use this for known fixed enums.","items":{"$ref":"#/definitions/__schema0"},"type":"array"},"ellipsis":{"type":"boolean"},"filterMode":{"description":"Filter match: 'equals' (default) or 'includes' (cell text contains).","enum":["equals","includes"],"type":"string"},"filterMultiple":{"description":"Multi-select filter (default true).","type":"boolean"},"filters":{"description":"Filter options (plain JSON, never a function). On a FIELD they project onto the derived column. Local filtering on the default/vxe engines only — vue3 engine:'virtual' has no filter UI.","items":{"additionalProperties":{},"properties":{"text":{"description":"Option text shown in the filter dropdown.","type":"string"},"value":{"description":"Row value matched by this option (loose primitive compare: 1 matches \"1\").","type":["string","number","boolean"]}},"required":["text","value"],"type":"object"},"type":"array"},"fixed":{"anyOf":[{"type":"boolean"},{"const":"left","type":"string"},{"const":"right","type":"string"}]},"formSpan":{"description":"Grid width of this field in the add/edit form (1-24; 2 columns = 12 each). Column count is set PER FIELD — `formLayout` has no span key.","maximum":24,"minimum":1,"type":"integer"},"formatter":{"description":"Extension point: JS arrow-function source for read-only cell formatting, e.g. \"(row) => row.amount.toFixed(2)\".","type":"string"},"formtype":{"description":"Pick by MEANING, not keywords: status/type/enum/gender → Select; date/time → DatePicker/TimePicker; image/avatar/attachment/file → Upload; long text/remark/description → Input (attrs.type:'textarea'); boolean on/off → Switch; single-choice small set → Radio; multi-choice → Checkbox; region/category tree → Cascader; department/org/permission tree with ANY level selectable → TreeSelect; type-to-filter over a known option set → Autocomplete; score → Rate; plain text → Input. OMIT only for a nested-object container (a field carrying `children`) — it renders no input.","enum":["Input","InputNumber","Select","DatePicker","TimePicker","Slider","ColorPicker","Transfer","Cascader","TreeSelect","Autocomplete","Radio","Checkbox","Switch","Rate","Upload","datePicker","timePicker"],"type":"string"},"group":{"description":"Form-group key for the FORM face. Fields sharing a key are rendered inside that group's container; declare the containers in `formLayout.layout` (query form) or `dialogs[k].formLayout.layout` (dialog form). Ignored by the table column. Omit to follow the layout's `ungrouped` strategy.","minLength":1,"type":"string"},"isHidden":{"anyOf":[{"additionalProperties":{},"properties":{"field":{"description":"Model field path to test, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"},"op":{"description":"Operator: eq/ne = equal/not-equal (default eq; number↔string tolerated, e.g. 1 matches '1'); in/nIn = in/not-in the given array; empty/notEmpty = ''/null/undefined/[]; truthy/falsy = JS truthiness. The field is hidden WHEN it holds.","enum":["eq","ne","in","nIn","empty","notEmpty","truthy","falsy"],"type":"string"},"value":{"description":"Right-hand side of the comparison. REQUIRED for eq/ne (scalar) and in/nIn (array). IGNORED by empty/notEmpty/truthy/falsy."}},"required":["field"],"type":"object"},{"anyOf":[{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}]},{"items":{"anyOf":[{"additionalProperties":{},"properties":{"field":{"description":"Model field path to test, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"},"op":{"description":"Operator: eq/ne = equal/not-equal (default eq; number↔string tolerated, e.g. 1 matches '1'); in/nIn = in/not-in the given array; empty/notEmpty = ''/null/undefined/[]; truthy/falsy = JS truthiness. The field is hidden WHEN it holds.","enum":["eq","ne","in","nIn","empty","notEmpty","truthy","falsy"],"type":"string"},"value":{"description":"Right-hand side of the comparison. REQUIRED for eq/ne (scalar) and in/nIn (array). IGNORED by empty/notEmpty/truthy/falsy."}},"required":["field"],"type":"object"},{"anyOf":[{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}]}]},"minItems":1,"type":"array"}],"description":"Hidden when the condition HOLDS — PLAIN JSON DATA, never a JS function string (functions cannot be inlined into a schema-mode pageSchema). `{ field: 'payType', op: 'eq', value: 'cash' }` = hidden while payType is cash; an ARRAY of conditions is AND. TWO forms, never mixed within one node: (1) legacy `{ field, op, value }` with op ∈ eq|ne|in|nIn|empty|notEmpty|truthy|falsy (default eq) — preferred for simple comparisons; (2) a JSONLogic-shaped expression when a plain condition can't express it (OR, ordering, nesting): `{ or: [ { '==': [{ var: 'status' }, 'pending'] }, { '>': [{ var: 'amount' }, 100] } ] }`; expression ops (closed set): var == != > >= < <= in nin empty notEmpty truthy falsy and or not if. A form-(2) op inside a form-(1) node is INVALID (runtime warns and treats the field as visible). Applies to the query/filter and add/edit dialog forms (its `inQuery`/`inForm` placement) — NOT to the table column (`inTable`). Evaluated live by the three renderers."},"label":{"description":"Human-readable column/form label, e.g. \"用户名\"","minLength":1,"type":"string"},"labelKey":{"description":"i18n key for this field's label (instead of `label`; derived as `field.<prop>` when omitted). Only takes effect once the HOST assembles the plugin with a `t` option (else falls back to `label`).","type":"string"},"minWidth":{"type":["number","string"]},"permissionValue":{"description":"Permission CODE gating this field (RBAC, checked by the host's global permission(code)) — NOT a data-driven condition: use `isHidden` for show/hide by another field's value, `reactions` for options/required/disabled linkage.","type":"string"},"prop":{"description":"Field key in the data model (camelCase), e.g. \"userName\"","minLength":1,"type":"string"},"querySpan":{"description":"Grid width of this field in the query form (1-24; 2 columns = 12 each). Column count is set PER FIELD — `formLayout` has no span key.","maximum":24,"minimum":1,"type":"integer"},"reactions":{"description":"Field-level linkage / computed rules (AI-07) — PLAIN JSON, never JS callbacks. Use when THIS field's options/required/disabled/value depend on ANOTHER field. Each rule `{ dependencies?, when?, fulfill }`: `dependencies` = model paths that re-trigger it (REQUIRED when `fulfill.value` is set); `when` gates the rule; `fulfill` supplies `dataOptions` (literal array), `required`/`disabled` (boolean expressions) and/or `value` (this field's new value, written back). `when`/`required`/`disabled`/`value` are JSONLogic EXPRESSION NODES only (e.g. `{ '==': [{ var: 'country' }, 'us'] }`) — never the `{ field, op, value }` legacy form, never a bare boolean. Example: `city` options follow `province` → one rule per province with `when: { '==': [{ var: 'province' }, 'zj'] }` and `fulfill.dataOptions: [{label:'杭州',value:'hz'}]`. Applies to the query/add/edit forms — NOT the table column. HARD RULE: branching on a dropdown LABEL ('跨境结算') requires that field's `dataOptions` and comparing the VALUE ('cross') — rows carry codes, not labels; `validate_config` warns (non-blocking).","items":{"additionalProperties":{},"properties":{"dependencies":{"description":"Model paths that trigger re-evaluation of this rule. REQUIRED when `fulfill.value` is present.","items":{"minLength":1,"type":"string"},"type":"array"},"fulfill":{"additionalProperties":{},"properties":{"dataOptions":{"description":"Literal option array for this field when the rule is active (NOT an expression — the DSL forbids object literals, so branch by declaring one rule per case with its own `when`).","items":{"$ref":"#/definitions/__schema0"},"type":"array"},"disabled":{"anyOf":[{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}],"description":"Expression node evaluating to a boolean: disable this field."},"required":{"anyOf":[{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}],"description":"Expression node evaluating to a boolean: make this field required."},"value":{"anyOf":[{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}],"description":"Expression node evaluating to this field's new value, written back to the model (requires a non-empty `dependencies`)."}},"type":"object"},"when":{"anyOf":[{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}],"description":"Optional gate: the rule applies only while it evaluates truthy. A JSONLogic EXPRESSION NODE (e.g. { \"==\": [{ var: \"country\" }, \"us\"] }) — never the { field, op, value } legacy form (that one belongs to isHidden), never a bare boolean. Plain JSON, never a JS function string."}},"required":["fulfill"],"type":"object"},"type":"array"},"render":{"description":"Extension point: a render-function source string for a custom TABLE CELL, e.g. \"(_, { row }) => h(ElTag, { type: row.status === 1 ? 'success' : 'danger' }, () => row.statusLabel)\" (wired to a scoped slot). A FORM-control render cannot be inlined (form items are serialized as JSON data), so it is preserved as a marked TODO(es-plus) marker in the SFC — NOT silently delivered; prefer the declarative rules/attrs/dataOptions/reactions for FORM behaviour.","type":"string"},"required":{"type":"boolean"},"rules":{"description":"Validation rules for this field. Use `pattern`/`min`/`max`/`type` for format constraints and `trigger` for when validation runs; `message` is REQUIRED. CONFIG-side (artifact: `formItemOptions.rules`). A rule carrying `type` is dispatched ONLY to that type validator (async-validator `getValidationMethod`) — a `pattern` on the SAME rule is silently ignored, so when the user states BOTH a regex and a type, emit them as TWO separate rules. For a plain text length cap (e.g. '最多 20 字') prefer `attrs.maxlength`; a `min`/`max` rule validates values with a message but does not block typing. Emit these rather than dropping a format/range requirement the user stated.","items":{"additionalProperties":{},"properties":{"max":{"description":"Maximum length for strings / maximum value for numbers.","type":"number"},"message":{"description":"Message shown when the rule fails — REQUIRED, write it in the user's language.","type":"string"},"min":{"description":"Minimum length for strings / minimum value for numbers.","type":"number"},"pattern":{"description":"RegExp SOURCE STRING the value must match (e.g. \"^1\\d{10}$\"), not a RegExp object.","type":"string"},"required":{"description":"Enforce a value with this rule (same effect as field-level `required`; prefer the field-level key for unconditional requirements).","type":"boolean"},"trigger":{"description":"'blur' validates when the field loses focus; 'change' validates while the value changes.","enum":["blur","change"],"type":"string"},"type":{"description":"Value type validated by this rule.","enum":["string","number","email","url","integer"],"type":"string"}},"required":["message"],"type":"object"},"type":"array"},"width":{"type":["number","string"]}},"required":["prop","label","formtype"],"type":"object"},"minItems":1,"type":"array"},"dataOptions":{"description":"Static options for Select/Radio/Checkbox/Cascader/TreeSelect/Autocomplete. Use this for known fixed enums.","items":{"$ref":"#/definitions/__schema0"},"type":"array"},"ellipsis":{"type":"boolean"},"filterMode":{"description":"Filter match: 'equals' (default) or 'includes' (cell text contains).","enum":["equals","includes"],"type":"string"},"filterMultiple":{"description":"Multi-select filter (default true).","type":"boolean"},"filters":{"description":"Filter options (plain JSON, never a function). On a FIELD they project onto the derived column. Local filtering on the default/vxe engines only — vue3 engine:'virtual' has no filter UI.","items":{"additionalProperties":{},"properties":{"text":{"description":"Option text shown in the filter dropdown.","type":"string"},"value":{"description":"Row value matched by this option (loose primitive compare: 1 matches \"1\").","type":["string","number","boolean"]}},"required":["text","value"],"type":"object"},"type":"array"},"fixed":{"anyOf":[{"type":"boolean"},{"const":"left","type":"string"},{"const":"right","type":"string"}]},"formSpan":{"description":"Grid width of this field in the add/edit form (1-24; 2 columns = 12 each). Column count is set PER FIELD — `formLayout` has no span key.","maximum":24,"minimum":1,"type":"integer"},"formatter":{"description":"Extension point: JS arrow-function source for read-only cell formatting, e.g. \"(row) => row.amount.toFixed(2)\".","type":"string"},"formtype":{"description":"Pick by MEANING, not keywords: status/type/enum/gender → Select; date/time → DatePicker/TimePicker; image/avatar/attachment/file → Upload; long text/remark/description → Input (attrs.type:'textarea'); boolean on/off → Switch; single-choice small set → Radio; multi-choice → Checkbox; region/category tree → Cascader; department/org/permission tree with ANY level selectable → TreeSelect; type-to-filter over a known option set → Autocomplete; score → Rate; plain text → Input. OMIT only for a nested-object container (a field carrying `children`) — it renders no input.","enum":["Input","InputNumber","Select","DatePicker","TimePicker","Slider","ColorPicker","Transfer","Cascader","TreeSelect","Autocomplete","Radio","Checkbox","Switch","Rate","Upload","datePicker","timePicker"],"type":"string"},"group":{"description":"Form-group key for the FORM face. Fields sharing a key are rendered inside that group's container; declare the containers in `formLayout.layout` (query form) or `dialogs[k].formLayout.layout` (dialog form). Ignored by the table column. Omit to follow the layout's `ungrouped` strategy.","minLength":1,"type":"string"},"isHidden":{"anyOf":[{"additionalProperties":{},"properties":{"field":{"description":"Model field path to test, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"},"op":{"description":"Operator: eq/ne = equal/not-equal (default eq; number↔string tolerated, e.g. 1 matches '1'); in/nIn = in/not-in the given array; empty/notEmpty = ''/null/undefined/[]; truthy/falsy = JS truthiness. The field is hidden WHEN it holds.","enum":["eq","ne","in","nIn","empty","notEmpty","truthy","falsy"],"type":"string"},"value":{"description":"Right-hand side of the comparison. REQUIRED for eq/ne (scalar) and in/nIn (array). IGNORED by empty/notEmpty/truthy/falsy."}},"required":["field"],"type":"object"},{"anyOf":[{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}]},{"items":{"anyOf":[{"additionalProperties":{},"properties":{"field":{"description":"Model field path to test, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"},"op":{"description":"Operator: eq/ne = equal/not-equal (default eq; number↔string tolerated, e.g. 1 matches '1'); in/nIn = in/not-in the given array; empty/notEmpty = ''/null/undefined/[]; truthy/falsy = JS truthiness. The field is hidden WHEN it holds.","enum":["eq","ne","in","nIn","empty","notEmpty","truthy","falsy"],"type":"string"},"value":{"description":"Right-hand side of the comparison. REQUIRED for eq/ne (scalar) and in/nIn (array). IGNORED by empty/notEmpty/truthy/falsy."}},"required":["field"],"type":"object"},{"anyOf":[{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}]}]},"minItems":1,"type":"array"}],"description":"Hidden when the condition HOLDS — PLAIN JSON DATA, never a JS function string (functions cannot be inlined into a schema-mode pageSchema). `{ field: 'payType', op: 'eq', value: 'cash' }` = hidden while payType is cash; an ARRAY of conditions is AND. TWO forms, never mixed within one node: (1) legacy `{ field, op, value }` with op ∈ eq|ne|in|nIn|empty|notEmpty|truthy|falsy (default eq) — preferred for simple comparisons; (2) a JSONLogic-shaped expression when a plain condition can't express it (OR, ordering, nesting): `{ or: [ { '==': [{ var: 'status' }, 'pending'] }, { '>': [{ var: 'amount' }, 100] } ] }`; expression ops (closed set): var == != > >= < <= in nin empty notEmpty truthy falsy and or not if. A form-(2) op inside a form-(1) node is INVALID (runtime warns and treats the field as visible). Applies to the query/filter and add/edit dialog forms (its `inQuery`/`inForm` placement) — NOT to the table column (`inTable`). Evaluated live by the three renderers."},"label":{"description":"Human-readable column/form label, e.g. \"用户名\"","minLength":1,"type":"string"},"labelKey":{"description":"i18n key for this field's label (instead of `label`; derived as `field.<prop>` when omitted). Only takes effect once the HOST assembles the plugin with a `t` option (else falls back to `label`).","type":"string"},"minWidth":{"type":["number","string"]},"permissionValue":{"description":"Permission CODE gating this field (RBAC, checked by the host's global permission(code)) — NOT a data-driven condition: use `isHidden` for show/hide by another field's value, `reactions` for options/required/disabled linkage.","type":"string"},"prop":{"description":"Field key in the data model (camelCase), e.g. \"userName\"","minLength":1,"type":"string"},"querySpan":{"description":"Grid width of this field in the query form (1-24; 2 columns = 12 each). Column count is set PER FIELD — `formLayout` has no span key.","maximum":24,"minimum":1,"type":"integer"},"reactions":{"description":"Field-level linkage / computed rules (AI-07) — PLAIN JSON, never JS callbacks. Use when THIS field's options/required/disabled/value depend on ANOTHER field. Each rule `{ dependencies?, when?, fulfill }`: `dependencies` = model paths that re-trigger it (REQUIRED when `fulfill.value` is set); `when` gates the rule; `fulfill` supplies `dataOptions` (literal array), `required`/`disabled` (boolean expressions) and/or `value` (this field's new value, written back). `when`/`required`/`disabled`/`value` are JSONLogic EXPRESSION NODES only (e.g. `{ '==': [{ var: 'country' }, 'us'] }`) — never the `{ field, op, value }` legacy form, never a bare boolean. Example: `city` options follow `province` → one rule per province with `when: { '==': [{ var: 'province' }, 'zj'] }` and `fulfill.dataOptions: [{label:'杭州',value:'hz'}]`. Applies to the query/add/edit forms — NOT the table column. HARD RULE: branching on a dropdown LABEL ('跨境结算') requires that field's `dataOptions` and comparing the VALUE ('cross') — rows carry codes, not labels; `validate_config` warns (non-blocking).","items":{"additionalProperties":{},"properties":{"dependencies":{"description":"Model paths that trigger re-evaluation of this rule. REQUIRED when `fulfill.value` is present.","items":{"minLength":1,"type":"string"},"type":"array"},"fulfill":{"additionalProperties":{},"properties":{"dataOptions":{"description":"Literal option array for this field when the rule is active (NOT an expression — the DSL forbids object literals, so branch by declaring one rule per case with its own `when`).","items":{"$ref":"#/definitions/__schema0"},"type":"array"},"disabled":{"anyOf":[{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}],"description":"Expression node evaluating to a boolean: disable this field."},"required":{"anyOf":[{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}],"description":"Expression node evaluating to a boolean: make this field required."},"value":{"anyOf":[{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}],"description":"Expression node evaluating to this field's new value, written back to the model (requires a non-empty `dependencies`)."}},"type":"object"},"when":{"anyOf":[{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}],"description":"Optional gate: the rule applies only while it evaluates truthy. A JSONLogic EXPRESSION NODE (e.g. { \"==\": [{ var: \"country\" }, \"us\"] }) — never the { field, op, value } legacy form (that one belongs to isHidden), never a bare boolean. Plain JSON, never a JS function string."}},"required":["fulfill"],"type":"object"},"type":"array"},"render":{"description":"Extension point: a render-function source string for a custom TABLE CELL, e.g. \"(_, { row }) => h(ElTag, { type: row.status === 1 ? 'success' : 'danger' }, () => row.statusLabel)\" (wired to a scoped slot). A FORM-control render cannot be inlined (form items are serialized as JSON data), so it is preserved as a marked TODO(es-plus) marker in the SFC — NOT silently delivered; prefer the declarative rules/attrs/dataOptions/reactions for FORM behaviour.","type":"string"},"required":{"type":"boolean"},"rules":{"description":"Validation rules for this field. Use `pattern`/`min`/`max`/`type` for format constraints and `trigger` for when validation runs; `message` is REQUIRED. CONFIG-side (artifact: `formItemOptions.rules`). A rule carrying `type` is dispatched ONLY to that type validator (async-validator `getValidationMethod`) — a `pattern` on the SAME rule is silently ignored, so when the user states BOTH a regex and a type, emit them as TWO separate rules. For a plain text length cap (e.g. '最多 20 字') prefer `attrs.maxlength`; a `min`/`max` rule validates values with a message but does not block typing. Emit these rather than dropping a format/range requirement the user stated.","items":{"additionalProperties":{},"properties":{"max":{"description":"Maximum length for strings / maximum value for numbers.","type":"number"},"message":{"description":"Message shown when the rule fails — REQUIRED, write it in the user's language.","type":"string"},"min":{"description":"Minimum length for strings / minimum value for numbers.","type":"number"},"pattern":{"description":"RegExp SOURCE STRING the value must match (e.g. \"^1\\d{10}$\"), not a RegExp object.","type":"string"},"required":{"description":"Enforce a value with this rule (same effect as field-level `required`; prefer the field-level key for unconditional requirements).","type":"boolean"},"trigger":{"description":"'blur' validates when the field loses focus; 'change' validates while the value changes.","enum":["blur","change"],"type":"string"},"type":{"description":"Value type validated by this rule.","enum":["string","number","email","url","integer"],"type":"string"}},"required":["message"],"type":"object"},"type":"array"},"width":{"type":["number","string"]}},"required":["prop","label","formtype"],"type":"object"},"minItems":1,"type":"array"},"formLayout":{"description":"Form layout — the SAME declarative shape as generate_crud's top-level formLayout: labelWidth (maps to es-form's formLayProps.labelWidth) and minFoldRows (collapse after N rows; requires a visible button area, so pair it with buttons:'query'/'submit').","properties":{"labelWidth":{"type":["string","number"]},"layout":{"description":"Group containers for the QUERY form (P1-3). Fields reference groups via their `group` key. Omit for a flat query grid.","properties":{"defaultLabel":{"description":"Title of the fallback bucket under `ungrouped:'default'` (built-in default: 其他 / Other).","type":"string"},"groups":{"description":"Declared groups in display order. Fields whose `group` is not listed are appended in first-appearance order; empty groups are dropped.","items":{"properties":{"description":{"description":"Step subtitle. Consumed by `type:'steps'` only; ignored by tabs/collapse.","type":"string"},"key":{"description":"Group key that fields reference via their `group` value.","minLength":1,"type":"string"},"label":{"description":"Group title shown in the container header (tab label / step title / panel header).","type":"string"},"labelKey":{"description":"i18n key for the group title (takes precedence over `label` when the host provides a global t()).","type":"string"}},"required":["key"],"type":"object"},"type":"array"},"type":{"description":"Container type: 'tabs' = tab panes, 'steps' = one group at a time with built-in prev/next, 'collapse' = panels (all expanded by default).","enum":["tabs","steps","collapse"],"type":"string"},"ungrouped":{"description":"'default' (or omitted) = fields without a `group` go into a trailing bucket titled `defaultLabel`; 'first' = merge them into the first group; 'hidden' = do not render them.","enum":["default","first","hidden"],"type":"string"}},"required":["type"],"type":"object"},"minFoldRows":{"description":"Query form collapses when rows exceed this number","maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"type":"object"},"i18n":{"default":false,"description":"Use labelKey for i18n","type":"boolean"},"target":{"default":"vue3","description":"Target renderer: vue3 (Element Plus), vue2 (Element UI), antdv (Ant Design Vue)","enum":["vue3","vue2","antdv"],"type":"string"},"typescript":{"default":true,"type":"boolean"}},"required":["fields"],"type":"object"},"name":"generate_form"},{"description":"Generate a STANDALONE <es-table> component — a self-contained .vue SFC (columns + options + data-source/pagination refs) that drops next to native/third-party components. Give apiUrl for auto-fetch via es-table's apiParams. Use this ONLY when the user explicitly wants a single table on its own. For a full CRUD page (query + table + add/edit/delete) use generate_scene (scene='crud') instead. Operation-column buttons emit a `row-action` event (`{ key, row }`) from an inlined clickEvent, so the fragment always compiles in isolation — this is not the CRUD page's `triggerEvent` (query/reset toolbar linking). This entry accepts the same table vocabulary as the CRUD front door: explicit `columns` (multi-level group headers / index-selection-expand columns), top-level `treeConfig` (cross-renderer nested tree), top-level `expandConfig` (declarative expanded content), `mergeConfig` (adjacent-row merge) and `rowkey` — all emitted with the same contract as the CRUD page. `tableOptions.treeConfig` / `tableOptions.expandConfig` remain the vxe-only rich variants. The only table-surface key NOT accepted here is `tableBtns` (toolbar buttons with code:1/2 positioning live in the CRUD page schema) — use generate_scene with scene='crud' for it.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":{},"definitions":{"__schema0":{"additionalProperties":{},"properties":{"children":{"items":{"$ref":"#/definitions/__schema0"},"type":"array"},"disabled":{"type":"boolean"},"label":{"type":"string"},"tagType":{"description":"Render this option as a tag in the TABLE cell, in this semantic colour. Ignored by the form controls.","enum":["primary","success","warning","danger","info"],"type":"string"},"value":{"type":["string","number","boolean"]}},"required":["label","value"],"type":"object"},"__schema1":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}]},"__schema2":{"additionalProperties":{},"properties":{"align":{"enum":["left","center","right"],"type":"string"},"autoFilters":{"description":"Derive `filters` from this column's `dataOptions` (P2-3). When true and `filters` is omitted, each `dataOptions` entry's label/value becomes a filter option ({text, value}). Explicit `filters` always wins; no-op when dataOptions is empty or the engine is vue3 virtual (no filter UI).","type":"boolean"},"btns":{"description":"In-cell action buttons (operation column)","items":{"additionalProperties":{},"propertyNames":{"type":"string"},"type":"object"},"type":"array"},"editRender":{"description":"Column-level inline editor (AI-09 子项④). vxe engine only — requires tableOptions.editConfig AND tableOptions.engine:'vxe'. Function-valued fields (events) and custom-registered renderers are out of scope (Tier-3).","properties":{"autofocus":{"type":["string","boolean"]},"defaultValue":{},"name":{"description":"Inline-edit renderer name, e.g. '$input' | '$select' | '$textarea' | '$date' (vxe engine only).","type":"string"},"options":{"description":"Option list for a '$select' editor (label/value pairs).","items":{"properties":{"label":{"type":"string"},"value":{"type":["string","number","boolean"]}},"required":["label","value"],"type":"object"},"type":"array"},"props":{"additionalProperties":{},"description":"Props forwarded to the editor component.","propertyNames":{"type":"string"},"type":"object"},"type":{"description":"'default' = enter edit on trigger; 'visible' = editor always shown.","enum":["default","visible"],"type":"string"}},"type":"object"},"ellipsis":{"type":"boolean"},"expandConfig":{"description":"Row-expand content declared ON the `type:'expand'` column (AI-09 子项②). Same shape/semantics as the top-level `expandConfig`; use it when the expander is not the leading column or when `columns` is the source of truth. If BOTH are set, the top-level one wins on the expand column. Distinct from `tableOptions.expandConfig` (the vxe `{accordion}` switch).","properties":{"fields":{"description":"Read-only fields rendered inside the expanded row, one per line as `label: value`.","items":{"properties":{"label":{"description":"Label text for this field.","type":"string"},"labelKey":{"description":"i18n label key (used with a global t() function; takes precedence over `label`).","type":"string"},"prop":{"description":"Row field to display (value = `row[prop]`).","minLength":1,"type":"string"}},"required":["prop"],"type":"object"},"minItems":1,"type":"array"},"title":{"description":"Optional title shown at the top of the expanded row.","type":"string"}},"required":["fields"],"type":"object"},"filterMode":{"description":"Local comparison for `filters` (default 'equals'): 'equals' = value equality (booleans/numbers compare loosely against strings), 'includes' = the cell text CONTAINS the selected option value (text search).","enum":["equals","includes"],"type":"string"},"filterMultiple":{"description":"Allow selecting several filter options at once (default true).","type":"boolean"},"filters":{"description":"Declarative column filter options (PLAIN JSON — never a JS function). Rendered by the default engines and engine:'vxe'; the virtual engine (vue3 engine:'virtual') has NO filter UI. Filtering is LOCAL (the wrapper filters rows in the browser), so do not combine it with server-side paging/proxy contracts for the same column.","items":{"properties":{"text":{"description":"Option text shown in the filter dropdown.","type":"string"},"value":{"description":"Row value matched by this option (loose primitive compare: 1 matches \"1\").","type":["string","number","boolean"]}},"required":["text","value"],"type":"object"},"type":"array"},"fixed":{"anyOf":[{"type":"boolean"},{"const":"left","type":"string"},{"const":"right","type":"string"}]},"groups":{"description":"Nested child columns for a GROUP HEADER (multi-level). Recursive. Cross-renderer safe up to 2 levels (antdv supports N; vue3/vue2 default tables flatten beyond 1).","items":{"$ref":"#/definitions/__schema2"},"type":"array"},"label":{"description":"Column header text. Omit for non-field columns.","type":"string"},"labelKey":{"description":"i18n key alternative to label (used when i18n is on)","type":"string"},"minWidth":{"type":["number","string"]},"permissionValue":{"description":"Permission code; the column is not rendered without it","type":"string"},"prop":{"description":"Data key for this column, e.g. \"userName\". Omit for non-field columns (type: index/selection/expand).","minLength":1,"type":"string"},"showOverflowTooltip":{"type":"boolean"},"sortable":{"type":"boolean"},"type":{"description":"Non-field column kind: 'index' = row number, 'selection' = checkbox column, 'expand' = row expander (needs an expandConfig/slot). Omit for a normal data column.","enum":["index","selection","expand"],"type":"string"},"width":{"type":["number","string"]}},"type":"object"}},"properties":{"apiUrl":{"description":"REST endpoint for the list. If set, the table auto-fetches via apiParams; if omitted, wire tableData manually.","type":"string"},"columns":{"description":"Explicit table columns — the SAME vocabulary as generate_crud's `columns` (override, not merge): multi-level group headers via `groups`, and non-field columns via `type` (index/selection/expand). When present it REPLACES the field-derived data columns (`fields` stays required and still documents the row shape). Contract keys are sanitized exactly like the CRUD page (unknown keys dropped, `x-*` kept).","items":{"$ref":"#/definitions/__schema2"},"type":"array"},"expandConfig":{"additionalProperties":false,"description":"Declarative row-expand content — the SAME shape as generate_crud's top-level `expandConfig` ({title?, fields[]}). Prepends one expand column showing a read-only field list; if `columns` already has a {type:'expand'} column, the content attaches to it. Distinct from the vxe-only `tableOptions.expandConfig`.","properties":{"fields":{"description":"Read-only fields rendered inside the expanded row, one per line as `label: value`.","items":{"additionalProperties":false,"properties":{"label":{"description":"Label text for this field.","type":"string"},"labelKey":{"description":"i18n label key (used with a global t() function; takes precedence over `label`).","type":"string"},"prop":{"description":"Row field to display (value = `row[prop]`).","minLength":1,"type":"string"}},"required":["prop"],"type":"object"},"minItems":1,"type":"array"},"title":{"description":"Optional title shown at the top of the expanded row.","type":"string"}},"required":["fields"],"type":"object"},"fields":{"description":"Table columns — one per column the user described","items":{"additionalProperties":{},"properties":{"align":{"enum":["left","center","right"],"type":"string"},"apiParams":{"additionalProperties":{},"description":"Remote options source for Select/Cascader/TreeSelect — use instead of dataOptions when options come from an API.","properties":{"labelField":{"type":"string"},"method":{"enum":["GET","POST"],"type":"string"},"url":{"type":"string"},"valueField":{"type":"string"}},"required":["url"],"type":"object"},"attrs":{"additionalProperties":{},"description":"Extra component props, e.g. { type: 'textarea', maxlength: 200 }","propertyNames":{"type":"string"},"type":"object"},"autoFilters":{"description":"Derive `filters` from this field's `dataOptions` (explicit `filters` wins).","type":"boolean"},"dataOptions":{"description":"Static options for Select/Radio/Checkbox/Cascader/TreeSelect/Autocomplete. Use this for known fixed enums.","items":{"$ref":"#/definitions/__schema0"},"type":"array"},"ellipsis":{"type":"boolean"},"filterMode":{"description":"Filter match: 'equals' (default) or 'includes' (cell text contains).","enum":["equals","includes"],"type":"string"},"filterMultiple":{"description":"Multi-select filter (default true).","type":"boolean"},"filters":{"description":"Filter options (plain JSON, never a function). On a FIELD they project onto the derived column. Local filtering on the default/vxe engines only — vue3 engine:'virtual' has no filter UI.","items":{"additionalProperties":{},"properties":{"text":{"description":"Option text shown in the filter dropdown.","type":"string"},"value":{"description":"Row value matched by this option (loose primitive compare: 1 matches \"1\").","type":["string","number","boolean"]}},"required":["text","value"],"type":"object"},"type":"array"},"fixed":{"anyOf":[{"type":"boolean"},{"const":"left","type":"string"},{"const":"right","type":"string"}]},"formSpan":{"description":"Grid width of this field in the add/edit form (1-24; 2 columns = 12 each). Column count is set PER FIELD — `formLayout` has no span key.","maximum":24,"minimum":1,"type":"integer"},"formatter":{"description":"Extension point: JS arrow-function source for read-only cell formatting, e.g. \"(row) => row.amount.toFixed(2)\".","type":"string"},"formtype":{"description":"Pick by MEANING, not keywords: status/type/enum/gender → Select; date/time → DatePicker/TimePicker; image/avatar/attachment/file → Upload; long text/remark/description → Input (attrs.type:'textarea'); boolean on/off → Switch; single-choice small set → Radio; multi-choice → Checkbox; region/category tree → Cascader; department/org/permission tree with ANY level selectable → TreeSelect; type-to-filter over a known option set → Autocomplete; score → Rate; plain text → Input. OMIT only for a nested-object container (a field carrying `children`) — it renders no input.","enum":["Input","InputNumber","Select","DatePicker","TimePicker","Slider","ColorPicker","Transfer","Cascader","TreeSelect","Autocomplete","Radio","Checkbox","Switch","Rate","Upload","datePicker","timePicker"],"type":"string"},"group":{"description":"Form-group key for the FORM face. Fields sharing a key are rendered inside that group's container; declare the containers in `formLayout.layout` (query form) or `dialogs[k].formLayout.layout` (dialog form). Ignored by the table column. Omit to follow the layout's `ungrouped` strategy.","minLength":1,"type":"string"},"isHidden":{"anyOf":[{"additionalProperties":{},"properties":{"field":{"description":"Model field path to test, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"},"op":{"description":"Operator: eq/ne = equal/not-equal (default eq; number↔string tolerated, e.g. 1 matches '1'); in/nIn = in/not-in the given array; empty/notEmpty = ''/null/undefined/[]; truthy/falsy = JS truthiness. The field is hidden WHEN it holds.","enum":["eq","ne","in","nIn","empty","notEmpty","truthy","falsy"],"type":"string"},"value":{"description":"Right-hand side of the comparison. REQUIRED for eq/ne (scalar) and in/nIn (array). IGNORED by empty/notEmpty/truthy/falsy."}},"required":["field"],"type":"object"},{"anyOf":[{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}]},{"items":{"anyOf":[{"additionalProperties":{},"properties":{"field":{"description":"Model field path to test, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"},"op":{"description":"Operator: eq/ne = equal/not-equal (default eq; number↔string tolerated, e.g. 1 matches '1'); in/nIn = in/not-in the given array; empty/notEmpty = ''/null/undefined/[]; truthy/falsy = JS truthiness. The field is hidden WHEN it holds.","enum":["eq","ne","in","nIn","empty","notEmpty","truthy","falsy"],"type":"string"},"value":{"description":"Right-hand side of the comparison. REQUIRED for eq/ne (scalar) and in/nIn (array). IGNORED by empty/notEmpty/truthy/falsy."}},"required":["field"],"type":"object"},{"anyOf":[{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}]}]},"minItems":1,"type":"array"}],"description":"Hidden when the condition HOLDS — PLAIN JSON DATA, never a JS function string (functions cannot be inlined into a schema-mode pageSchema). `{ field: 'payType', op: 'eq', value: 'cash' }` = hidden while payType is cash; an ARRAY of conditions is AND. TWO forms, never mixed within one node: (1) legacy `{ field, op, value }` with op ∈ eq|ne|in|nIn|empty|notEmpty|truthy|falsy (default eq) — preferred for simple comparisons; (2) a JSONLogic-shaped expression when a plain condition can't express it (OR, ordering, nesting): `{ or: [ { '==': [{ var: 'status' }, 'pending'] }, { '>': [{ var: 'amount' }, 100] } ] }`; expression ops (closed set): var == != > >= < <= in nin empty notEmpty truthy falsy and or not if. A form-(2) op inside a form-(1) node is INVALID (runtime warns and treats the field as visible). Applies to the query/filter and add/edit dialog forms (its `inQuery`/`inForm` placement) — NOT to the table column (`inTable`). Evaluated live by the three renderers."},"label":{"description":"Human-readable column/form label, e.g. \"用户名\"","minLength":1,"type":"string"},"labelKey":{"description":"i18n key for this field's label (instead of `label`; derived as `field.<prop>` when omitted). Only takes effect once the HOST assembles the plugin with a `t` option (else falls back to `label`).","type":"string"},"minWidth":{"type":["number","string"]},"permissionValue":{"description":"Permission CODE gating this field (RBAC, checked by the host's global permission(code)) — NOT a data-driven condition: use `isHidden` for show/hide by another field's value, `reactions` for options/required/disabled linkage.","type":"string"},"prop":{"description":"Field key in the data model (camelCase), e.g. \"userName\"","minLength":1,"type":"string"},"querySpan":{"description":"Grid width of this field in the query form (1-24; 2 columns = 12 each). Column count is set PER FIELD — `formLayout` has no span key.","maximum":24,"minimum":1,"type":"integer"},"reactions":{"description":"Field-level linkage / computed rules (AI-07) — PLAIN JSON, never JS callbacks. Use when THIS field's options/required/disabled/value depend on ANOTHER field. Each rule `{ dependencies?, when?, fulfill }`: `dependencies` = model paths that re-trigger it (REQUIRED when `fulfill.value` is set); `when` gates the rule; `fulfill` supplies `dataOptions` (literal array), `required`/`disabled` (boolean expressions) and/or `value` (this field's new value, written back). `when`/`required`/`disabled`/`value` are JSONLogic EXPRESSION NODES only (e.g. `{ '==': [{ var: 'country' }, 'us'] }`) — never the `{ field, op, value }` legacy form, never a bare boolean. Example: `city` options follow `province` → one rule per province with `when: { '==': [{ var: 'province' }, 'zj'] }` and `fulfill.dataOptions: [{label:'杭州',value:'hz'}]`. Applies to the query/add/edit forms — NOT the table column. HARD RULE: branching on a dropdown LABEL ('跨境结算') requires that field's `dataOptions` and comparing the VALUE ('cross') — rows carry codes, not labels; `validate_config` warns (non-blocking).","items":{"additionalProperties":{},"properties":{"dependencies":{"description":"Model paths that trigger re-evaluation of this rule. REQUIRED when `fulfill.value` is present.","items":{"minLength":1,"type":"string"},"type":"array"},"fulfill":{"additionalProperties":{},"properties":{"dataOptions":{"description":"Literal option array for this field when the rule is active (NOT an expression — the DSL forbids object literals, so branch by declaring one rule per case with its own `when`).","items":{"$ref":"#/definitions/__schema0"},"type":"array"},"disabled":{"anyOf":[{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}],"description":"Expression node evaluating to a boolean: disable this field."},"required":{"anyOf":[{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}],"description":"Expression node evaluating to a boolean: make this field required."},"value":{"anyOf":[{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}],"description":"Expression node evaluating to this field's new value, written back to the model (requires a non-empty `dependencies`)."}},"type":"object"},"when":{"anyOf":[{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}],"description":"Optional gate: the rule applies only while it evaluates truthy. A JSONLogic EXPRESSION NODE (e.g. { \"==\": [{ var: \"country\" }, \"us\"] }) — never the { field, op, value } legacy form (that one belongs to isHidden), never a bare boolean. Plain JSON, never a JS function string."}},"required":["fulfill"],"type":"object"},"type":"array"},"render":{"description":"Extension point: a render-function source string for a custom TABLE CELL, e.g. \"(_, { row }) => h(ElTag, { type: row.status === 1 ? 'success' : 'danger' }, () => row.statusLabel)\" (wired to a scoped slot). A FORM-control render cannot be inlined (form items are serialized as JSON data), so it is preserved as a marked TODO(es-plus) marker in the SFC — NOT silently delivered; prefer the declarative rules/attrs/dataOptions/reactions for FORM behaviour.","type":"string"},"required":{"type":"boolean"},"rules":{"description":"Validation rules for this field. Use `pattern`/`min`/`max`/`type` for format constraints and `trigger` for when validation runs; `message` is REQUIRED. CONFIG-side (artifact: `formItemOptions.rules`). A rule carrying `type` is dispatched ONLY to that type validator (async-validator `getValidationMethod`) — a `pattern` on the SAME rule is silently ignored, so when the user states BOTH a regex and a type, emit them as TWO separate rules. For a plain text length cap (e.g. '最多 20 字') prefer `attrs.maxlength`; a `min`/`max` rule validates values with a message but does not block typing. Emit these rather than dropping a format/range requirement the user stated.","items":{"additionalProperties":{},"properties":{"max":{"description":"Maximum length for strings / maximum value for numbers.","type":"number"},"message":{"description":"Message shown when the rule fails — REQUIRED, write it in the user's language.","type":"string"},"min":{"description":"Minimum length for strings / minimum value for numbers.","type":"number"},"pattern":{"description":"RegExp SOURCE STRING the value must match (e.g. \"^1\\d{10}$\"), not a RegExp object.","type":"string"},"required":{"description":"Enforce a value with this rule (same effect as field-level `required`; prefer the field-level key for unconditional requirements).","type":"boolean"},"trigger":{"description":"'blur' validates when the field loses focus; 'change' validates while the value changes.","enum":["blur","change"],"type":"string"},"type":{"description":"Value type validated by this rule.","enum":["string","number","email","url","integer"],"type":"string"}},"required":["message"],"type":"object"},"type":"array"},"width":{"type":["number","string"]}},"required":["prop","label"],"type":"object"},"minItems":1,"type":"array"},"i18n":{"default":false,"description":"Use labelKey for i18n","type":"boolean"},"mergeConfig":{"additionalProperties":false,"description":"Declarative row-merge ({rowsBy: ['dept','team']}) — the SAME cross-renderer narrow subset as generate_crud's top-level `mergeConfig`. Emitted as `options.mergeConfig`; el-table / a-table / vxe all honor it.","properties":{"rowsBy":{"description":"Column props to merge. Each is grouped by ADJACENT-EQUAL values: the first row of a run keeps the cell with rowspan = run length, the rest are merged away.","items":{"minLength":1,"type":"string"},"minItems":1,"type":"array"}},"required":["rowsBy"],"type":"object"},"pagination":{"description":"Pagination seed ({pageSize, pageSizes}); current/total are managed by the component.","properties":{"pageSize":{"description":"Rows per page on first render (default 10).","maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"pageSizes":{"description":"Selectable page-size options shown in the pager, e.g. [10, 20, 50].","items":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"type":"array"}},"type":"object"},"rowButtons":{"description":"Optional operation-column buttons. Each button emits a `row-action` event (`{ key, row }`) from an inlined clickEvent and the wrapper declares `emits: ['row-action']` — the host listens on the wrapper. This is NOT the CRUD page's `triggerEvent` (that only links query/reset toolbar buttons to table refresh).","items":{"additionalProperties":{},"properties":{"key":{"type":"string"},"name":{"minLength":1,"type":"string"},"type":{"type":"string"}},"required":["name"],"type":"object"},"type":"array"},"rowkey":{"description":"Primary key. Same as tableOptions.rowkey; when both are set this top-level key wins (with a warning).","type":"string"},"tableOptions":{"description":"Container options — the SAME declarative subset as generate_crud's tableOptions (core TableOptions minus function values): appearance (border/stripe/size/showHeader/emptyText/leftText), height (heightType/tabHeight/height), columns (multiSelect/snIndex), state (cachePageSelection), row (rowkey/rowClassName/defaultSort), request (refetchKeepPage/localPagination/configTableOut), engine (virtual/engine/rowHeight/estimatedRowHeight/overscanCount), tree (treeConfig — vxe rich tree), row expand (expandConfig — vxe switch), inline edit (editConfig — requires engine:'vxe').","properties":{"border":{"type":"boolean"},"cachePageSelection":{"description":"Persist the checkbox selection across page changes (needs a stable rowkey). Default true at runtime; set false to reset selection on page change.","type":"boolean"},"columnConfig":{"additionalProperties":{},"description":"vxe column config, e.g. { resizable: true, drag: true, showOverflow: 'tooltip' }. Advanced: only with engine:'vxe'.","propertyNames":{"type":"string"},"type":"object"},"configTableOut":{"description":"Map the LIST API response onto table semantics when the backend does not use the default flat shape. Default mapping is { total: \"records\", tableData: \"rows\", pageSize: \"pageSize\", current: \"pageNo\" }. Each value is the FLAT response key (no deep paths — the component only reads top-level keys). e.g. a backend returning { list: [...], count: N } → { tableData: \"list\", total: \"count\" }. Only the keys you set are remapped; omit a key to keep its default.","properties":{"current":{"type":"string"},"pageSize":{"type":"string"},"tableData":{"type":"string"},"total":{"type":"string"}},"type":"object"},"defaultSort":{"description":"Default sort applied on first render.","properties":{"order":{"enum":["ascending","descending"],"type":"string"},"prop":{"type":"string"}},"required":["prop","order"],"type":"object"},"editConfig":{"description":"Enable vxe inline editing (AI-09 子项④). vxe engine only — MUST be paired with tableOptions.engine:'vxe'. A cell is only editable when its column also declares `editRender`. An edit writes STRAIGHT into the row object of `:data-source` (the table holds the same row references, so the host also gets `update:dataSource`); `keepSource` is auto-enabled only to keep a snapshot for `revertData()`, it is NOT a private copy. To learn WHICH cell changed and what the previous value was, listen to the `cell-edit` event — `{ row, prop, value, oldValue }`, emitted on blur / row switch in cell mode (one per changed cell in row mode), never for an unchanged cell.","properties":{"autoClear":{"type":"boolean"},"enabled":{"type":"boolean"},"mode":{"description":"'cell' = single cell; 'row' = whole row.","enum":["cell","row"],"type":"string"},"showInsertStatus":{"type":"boolean"},"showStatus":{"type":"boolean"},"showUpdateStatus":{"type":"boolean"},"trigger":{"description":"How editing is entered (default 'click').","enum":["click","dblclick","manual"],"type":"string"}},"type":"object"},"emptyText":{"description":"Text shown when there are no rows (default '暂无数据').","type":"string"},"engine":{"description":"Table rendering engine, an alternative to `virtual: true`. 'default' = el-table / a-table / el-table. 'virtual' = vue3 el-table-v2 only; antdv and vue2 have no virtual engine and degrade to a plain table with a warning. 'vxe' = vxe-table, available on ALL THREE targets — vue3 and antdv through their own vxe adapters, and vue2 through @es-plus/vue2's vxe engine. Use 'vxe' for large data on antdv/vue2, where 'virtual' is not available.","enum":["default","virtual","vxe"],"type":"string"},"estimatedRowHeight":{"description":"Estimated row height for dynamic-height virtual scrolling (vue3 / el-table-v2 only)","type":"number"},"expandConfig":{"description":"vxe-only row-expand switch (paired with `expand: true` / an expand column). Distinct from the top-level `expandConfig` (declarative read-only field list honored by all three renderers).","properties":{"accordion":{"description":"Accordion mode: at most one row expanded at a time.","type":"boolean"},"expandAll":{"description":"Expand every row by default.","type":"boolean"},"lazy":{"description":"Lazy-load expand content (vxe only; the loader function itself is a Tier-3 extension point).","type":"boolean"}},"type":"object"},"exportConfig":{"anyOf":[{"type":"boolean"},{"additionalProperties":{},"propertyNames":{"type":"string"},"type":"object"}],"description":"vxe export config: `true` for defaults, or an object with filename / type ('xlsx'|'csv'|'html'|'xml'|'txt') / useStyle / isColgroup. Advanced: only with engine:'vxe'. Non-CSV formats need the vxe export plugin; the `download` callback is a function and is out of the JSON contract."},"footerData":{"description":"Static footer rows, a 2-D array ([row][column]). Advanced: only with engine:'vxe'. The function form `footerMethod` cannot travel in JSON — use `vxeConfig` at runtime.","items":{"items":{},"type":"array"},"type":"array"},"headerCellStyle":{"additionalProperties":{"type":"string"},"propertyNames":{"type":"string"},"type":"object"},"height":{"description":"Container height used ONLY when heightType is 'height' (ignored for 'auto' / 'maxHeight' — use tabHeight there). Takes precedence over nothing: an explicit tabHeight always wins.","type":["number","string"]},"heightType":{"description":"How the container height is applied: 'height' = fixed height (value from `height`, or `tabHeight` if set); 'maxHeight' = capped at `tabHeight` (a `height` value is IGNORED); 'auto' = no container height constraint. Default 'auto'.","enum":["height","auto","maxHeight"],"type":"string"},"highlightCurrentRow":{"type":"boolean"},"keepSource":{"description":"Keep a pre-edit snapshot of each row so revertData() / getUpdateRecords() / getInsertRecords() work. Auto-enabled when editConfig is set. Advanced: vxe inline editing only.","type":"boolean"},"keyboardConfig":{"description":"vxe keyboard navigation. Advanced: only consumed with engine:'vxe', typically together with editConfig.","properties":{"enterToTab":{"description":"Enter behaves like Tab.","type":"boolean"},"isArrow":{"description":"Arrow keys move the cell focus.","type":"boolean"},"isDel":{"description":"Delete / Backspace clears the cell.","type":"boolean"},"isEdit":{"description":"Any printable character enters edit mode.","type":"boolean"},"isEnter":{"description":"Enter confirms and moves down.","type":"boolean"},"isTab":{"description":"Tab moves to the next cell.","type":"boolean"}},"type":"object"},"leftText":{"description":"Text shown on the left side of the table toolbar.","type":"string"},"localPagination":{"description":"Paginate already-fetched data client-side instead of requesting each page from the API.","type":"boolean"},"mouseConfig":{"description":"vxe cell-selection mode (`{ selected: true }` enables click-to-select). Advanced: only with engine:'vxe'.","properties":{"selected":{"description":"Click a cell to highlight/select it (arrow keys then move it).","type":"boolean"}},"type":"object"},"multiSelect":{"type":"boolean"},"overscanCount":{"description":"Buffer rows outside the visible area (vue3 / el-table-v2 only; default 2)","maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"printConfig":{"anyOf":[{"type":"boolean"},{"additionalProperties":{},"propertyNames":{"type":"string"},"type":"object"}],"description":"vxe print config: `true` for defaults, or e.g. { columns: [{ field: 'name' }] }. Advanced: only with engine:'vxe'."},"refetchKeepPage":{"description":"Keep the current page when re-fetching (default false). Query/reset still return to page 1.","type":"boolean"},"rowClassName":{"description":"Custom row CSS class name","type":"string"},"rowHeight":{"description":"Row height in px for virtual mode (vue3 / el-table-v2 only; default 50)","type":"number"},"rowkey":{"type":"string"},"seqConfig":{"description":"vxe sequence-column config (needs `snIndex: true` or a type:'index' column). Only `startIndex` is JSON-safe — `seqMethod` is a function and stays in the runtime escape hatch. Advanced: only with engine:'vxe'.","properties":{"startIndex":{"description":"First serial number (default 1).","maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"type":"object"},"showFooter":{"description":"Show the vxe footer row. Advanced: only consumed with engine:'vxe'.","type":"boolean"},"showHeader":{"description":"Show the table header (default true). Set false to hide it.","type":"boolean"},"size":{"description":"Table density. Default 'small' at runtime; el-table and a-table both accept these.","enum":["large","default","small"],"type":"string"},"snIndex":{"description":"Render a leading row-index (serial number) column.","type":"boolean"},"sortParam":{"anyOf":[{"type":"boolean"},{"properties":{"field":{"type":"string"},"order":{"type":"string"}},"type":"object"}],"description":"Server-side sorting: when set, the table stops sorting the current page locally and every list request carries { sortField, sortOrder } (order = 'asc' | 'desc'); a header click refetches the SAME page. { field, order } renames the two request keys. Also seeds from defaultSort, so the first request is already sorted. Omit to keep client-side sorting of the current page."},"stripe":{"type":"boolean"},"tabHeight":{"description":"Table height consumed for EVERY heightType: under 'height' it overrides `height`; under 'maxHeight' it is the cap. number → px, string → raw CSS value (e.g. '60vh'). Prefer it over `height` whenever a concrete height is needed — it is the only height key that applies when heightType is 'maxHeight'.","type":["number","string"]},"toolbarConfig":{"anyOf":[{"type":"boolean"},{"additionalProperties":{},"propertyNames":{"type":"string"},"type":"object"}],"description":"vxe toolbar config (`true` for defaults, or { buttons: [...] } etc.). Advanced: only with engine:'vxe'."},"treeConfig":{"description":"vxe-only rich tree config (the SAME-NAME top-level `treeConfig` is the cross-renderer narrow subset; when both are set the generator merges them into tableOptions.treeConfig with the top-level key winning). Use `treeConfig.transform:true + rowField + parentField` to build a tree from FLAT rows; use the top-level `treeConfig` for nested `children` arrays on el-table / a-table.","properties":{"children":{"description":"@deprecated vxe v4 alias of childrenField; normalized at runtime.","type":"string"},"childrenField":{"description":"Child array field (default 'children').","type":"string"},"expandAll":{"description":"Start with every node expanded.","type":"boolean"},"lazy":{"description":"Lazy-load children (vxe only; the loader function itself is a Tier-3 extension point and cannot travel in JSON).","type":"boolean"},"mapChildren":{"description":"Field that caches original children in transform mode (default '_X_ROW_CHILD').","type":"string"},"parentField":{"description":"Parent id field for transform mode (default 'parentId').","type":"string"},"rowField":{"description":"Row id field for transform mode (default 'id').","type":"string"},"transform":{"description":"Build the tree client-side from FLAT rows (needs rowField + parentField). vxe only.","type":"boolean"}},"type":"object"},"validConfig":{"description":"vxe cell validation feedback (pair with `rules` on the column's editRender). Advanced: only with engine:'vxe'.","properties":{"autoPos":{"description":"Scroll the first invalid cell into view.","type":"boolean"},"message":{"description":"How validation feedback is shown (default 'default').","enum":["default","tooltip","modal","none"],"type":"string"},"msgMode":{"description":"Show one message or the full message list (default 'single').","enum":["single","full"],"type":"string"}},"type":"object"},"virtual":{"description":"Enable virtual scrolling for large datasets. vue3 renders the el-table-v2 engine. antdv and vue2 have NO virtual scrolling: a-table never implemented it and Element UI has no el-table-v2 — both targets warn and render a plain table. For large data on antdv/vue2 use `engine: 'vxe'` instead.","type":"boolean"}},"type":"object"},"target":{"default":"vue3","description":"Target renderer: vue3 (Element Plus), vue2 (Element UI), antdv (Ant Design Vue)","enum":["vue3","vue2","antdv"],"type":"string"},"treeConfig":{"additionalProperties":false,"description":"Declarative tree table — the SAME cross-renderer narrow subset as generate_crud's top-level `treeConfig` ({childrenField?, expandAll?}). Merged with tableOptions.treeConfig (this top-level key wins on conflicts). Distinct from the vxe-only `tableOptions.treeConfig`.","properties":{"childrenField":{"description":"Key name that holds a row's nested child nodes (default 'children'). Set only when the API nests children under a different key.","type":"string"},"expandAll":{"description":"Whether all nodes start expanded (default false).","type":"boolean"}},"type":"object"},"typescript":{"default":true,"type":"boolean"}},"required":["fields"],"type":"object"},"name":"generate_table"},{"description":"Generate a STANDALONE dialog with the integration contract open(title, row?, onSuccess?) — after a successful submit it calls onSuccess, where the host refreshes its OWN table (the same contract in both output shapes). mode='composable' (default) emits a reusable useXxxDialog() composable (a .tsx/.jsx module, dialog body is a JSX render — needs the JSX plugin). mode='component' emits a self-contained <es-dialog> SFC instead (no JSX plugin needed; the host must have registered es-plus globally). Use this ONLY when the user explicitly wants a reusable add/edit dialog on its own, or to pair with a separately-generated table / native component. For a full CRUD page use generate_scene (scene='crud') instead (its dialogs are declarative and need no JSX either).","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":{},"definitions":{"__schema0":{"additionalProperties":{},"properties":{"children":{"items":{"$ref":"#/definitions/__schema0"},"type":"array"},"disabled":{"type":"boolean"},"label":{"type":"string"},"tagType":{"description":"Render this option as a tag in the TABLE cell, in this semantic colour. Ignored by the form controls.","enum":["primary","success","warning","danger","info"],"type":"string"},"value":{"type":["string","number","boolean"]}},"required":["label","value"],"type":"object"},"__schema1":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}]}},"properties":{"apiUrl":{"description":"Submit endpoint. If set, the 确定 button POSTs (新增) / PUTs (otherwise); if omitted, it only validates and calls onSuccess(formData).","type":"string"},"composableName":{"description":"Exported composable name (default 'useFormDialog'). Ignored when mode='component' (the SFC is a default-exported component).","type":"string"},"defaultTitle":{"description":"Default title for open() when the caller passes none. open(title) still overrides it — the first argument remains the single source of truth. Emitted as the parameter default (`title = '新增'`).","minLength":1,"type":"string"},"fields":{"description":"Form fields shown inside the dialog","items":{"additionalProperties":{},"properties":{"align":{"enum":["left","center","right"],"type":"string"},"apiParams":{"additionalProperties":{},"description":"Remote options source for Select/Cascader/TreeSelect — use instead of dataOptions when options come from an API.","properties":{"labelField":{"type":"string"},"method":{"enum":["GET","POST"],"type":"string"},"url":{"type":"string"},"valueField":{"type":"string"}},"required":["url"],"type":"object"},"attrs":{"additionalProperties":{},"description":"Extra component props, e.g. { type: 'textarea', maxlength: 200 }","propertyNames":{"type":"string"},"type":"object"},"autoFilters":{"description":"Derive `filters` from this field's `dataOptions` (explicit `filters` wins).","type":"boolean"},"children":{"description":"Nested-object FORM grouping (ONE level only): this field becomes a full-width section heading; its children render under it. Child `prop` is relative to this field (`city` → `address.city`) unless absolute. The container binds NO data (never a table column) — omit `formtype`; children cannot declare `children` (array sub-forms are OUT of the declarative contract — use `render` or host-owned UI).","items":{"additionalProperties":{},"properties":{"align":{"enum":["left","center","right"],"type":"string"},"apiParams":{"additionalProperties":{},"description":"Remote options source for Select/Cascader/TreeSelect — use instead of dataOptions when options come from an API.","properties":{"labelField":{"type":"string"},"method":{"enum":["GET","POST"],"type":"string"},"url":{"type":"string"},"valueField":{"type":"string"}},"required":["url"],"type":"object"},"attrs":{"additionalProperties":{},"description":"Extra component props, e.g. { type: 'textarea', maxlength: 200 }","propertyNames":{"type":"string"},"type":"object"},"autoFilters":{"description":"Derive `filters` from this field's `dataOptions` (explicit `filters` wins).","type":"boolean"},"dataOptions":{"description":"Static options for Select/Radio/Checkbox/Cascader/TreeSelect/Autocomplete. Use this for known fixed enums.","items":{"$ref":"#/definitions/__schema0"},"type":"array"},"ellipsis":{"type":"boolean"},"filterMode":{"description":"Filter match: 'equals' (default) or 'includes' (cell text contains).","enum":["equals","includes"],"type":"string"},"filterMultiple":{"description":"Multi-select filter (default true).","type":"boolean"},"filters":{"description":"Filter options (plain JSON, never a function). On a FIELD they project onto the derived column. Local filtering on the default/vxe engines only — vue3 engine:'virtual' has no filter UI.","items":{"additionalProperties":{},"properties":{"text":{"description":"Option text shown in the filter dropdown.","type":"string"},"value":{"description":"Row value matched by this option (loose primitive compare: 1 matches \"1\").","type":["string","number","boolean"]}},"required":["text","value"],"type":"object"},"type":"array"},"fixed":{"anyOf":[{"type":"boolean"},{"const":"left","type":"string"},{"const":"right","type":"string"}]},"formSpan":{"description":"Grid width of this field in the add/edit form (1-24; 2 columns = 12 each). Column count is set PER FIELD — `formLayout` has no span key.","maximum":24,"minimum":1,"type":"integer"},"formatter":{"description":"Extension point: JS arrow-function source for read-only cell formatting, e.g. \"(row) => row.amount.toFixed(2)\".","type":"string"},"formtype":{"description":"Pick by MEANING, not keywords: status/type/enum/gender → Select; date/time → DatePicker/TimePicker; image/avatar/attachment/file → Upload; long text/remark/description → Input (attrs.type:'textarea'); boolean on/off → Switch; single-choice small set → Radio; multi-choice → Checkbox; region/category tree → Cascader; department/org/permission tree with ANY level selectable → TreeSelect; type-to-filter over a known option set → Autocomplete; score → Rate; plain text → Input. OMIT only for a nested-object container (a field carrying `children`) — it renders no input.","enum":["Input","InputNumber","Select","DatePicker","TimePicker","Slider","ColorPicker","Transfer","Cascader","TreeSelect","Autocomplete","Radio","Checkbox","Switch","Rate","Upload","datePicker","timePicker"],"type":"string"},"group":{"description":"Form-group key for the FORM face. Fields sharing a key are rendered inside that group's container; declare the containers in `formLayout.layout` (query form) or `dialogs[k].formLayout.layout` (dialog form). Ignored by the table column. Omit to follow the layout's `ungrouped` strategy.","minLength":1,"type":"string"},"isHidden":{"anyOf":[{"additionalProperties":{},"properties":{"field":{"description":"Model field path to test, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"},"op":{"description":"Operator: eq/ne = equal/not-equal (default eq; number↔string tolerated, e.g. 1 matches '1'); in/nIn = in/not-in the given array; empty/notEmpty = ''/null/undefined/[]; truthy/falsy = JS truthiness. The field is hidden WHEN it holds.","enum":["eq","ne","in","nIn","empty","notEmpty","truthy","falsy"],"type":"string"},"value":{"description":"Right-hand side of the comparison. REQUIRED for eq/ne (scalar) and in/nIn (array). IGNORED by empty/notEmpty/truthy/falsy."}},"required":["field"],"type":"object"},{"anyOf":[{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}]},{"items":{"anyOf":[{"additionalProperties":{},"properties":{"field":{"description":"Model field path to test, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"},"op":{"description":"Operator: eq/ne = equal/not-equal (default eq; number↔string tolerated, e.g. 1 matches '1'); in/nIn = in/not-in the given array; empty/notEmpty = ''/null/undefined/[]; truthy/falsy = JS truthiness. The field is hidden WHEN it holds.","enum":["eq","ne","in","nIn","empty","notEmpty","truthy","falsy"],"type":"string"},"value":{"description":"Right-hand side of the comparison. REQUIRED for eq/ne (scalar) and in/nIn (array). IGNORED by empty/notEmpty/truthy/falsy."}},"required":["field"],"type":"object"},{"anyOf":[{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}]}]},"minItems":1,"type":"array"}],"description":"Hidden when the condition HOLDS — PLAIN JSON DATA, never a JS function string (functions cannot be inlined into a schema-mode pageSchema). `{ field: 'payType', op: 'eq', value: 'cash' }` = hidden while payType is cash; an ARRAY of conditions is AND. TWO forms, never mixed within one node: (1) legacy `{ field, op, value }` with op ∈ eq|ne|in|nIn|empty|notEmpty|truthy|falsy (default eq) — preferred for simple comparisons; (2) a JSONLogic-shaped expression when a plain condition can't express it (OR, ordering, nesting): `{ or: [ { '==': [{ var: 'status' }, 'pending'] }, { '>': [{ var: 'amount' }, 100] } ] }`; expression ops (closed set): var == != > >= < <= in nin empty notEmpty truthy falsy and or not if. A form-(2) op inside a form-(1) node is INVALID (runtime warns and treats the field as visible). Applies to the query/filter and add/edit dialog forms (its `inQuery`/`inForm` placement) — NOT to the table column (`inTable`). Evaluated live by the three renderers."},"label":{"description":"Human-readable column/form label, e.g. \"用户名\"","minLength":1,"type":"string"},"labelKey":{"description":"i18n key for this field's label (instead of `label`; derived as `field.<prop>` when omitted). Only takes effect once the HOST assembles the plugin with a `t` option (else falls back to `label`).","type":"string"},"minWidth":{"type":["number","string"]},"permissionValue":{"description":"Permission CODE gating this field (RBAC, checked by the host's global permission(code)) — NOT a data-driven condition: use `isHidden` for show/hide by another field's value, `reactions` for options/required/disabled linkage.","type":"string"},"prop":{"description":"Field key in the data model (camelCase), e.g. \"userName\"","minLength":1,"type":"string"},"querySpan":{"description":"Grid width of this field in the query form (1-24; 2 columns = 12 each). Column count is set PER FIELD — `formLayout` has no span key.","maximum":24,"minimum":1,"type":"integer"},"reactions":{"description":"Field-level linkage / computed rules (AI-07) — PLAIN JSON, never JS callbacks. Use when THIS field's options/required/disabled/value depend on ANOTHER field. Each rule `{ dependencies?, when?, fulfill }`: `dependencies` = model paths that re-trigger it (REQUIRED when `fulfill.value` is set); `when` gates the rule; `fulfill` supplies `dataOptions` (literal array), `required`/`disabled` (boolean expressions) and/or `value` (this field's new value, written back). `when`/`required`/`disabled`/`value` are JSONLogic EXPRESSION NODES only (e.g. `{ '==': [{ var: 'country' }, 'us'] }`) — never the `{ field, op, value }` legacy form, never a bare boolean. Example: `city` options follow `province` → one rule per province with `when: { '==': [{ var: 'province' }, 'zj'] }` and `fulfill.dataOptions: [{label:'杭州',value:'hz'}]`. Applies to the query/add/edit forms — NOT the table column. HARD RULE: branching on a dropdown LABEL ('跨境结算') requires that field's `dataOptions` and comparing the VALUE ('cross') — rows carry codes, not labels; `validate_config` warns (non-blocking).","items":{"additionalProperties":{},"properties":{"dependencies":{"description":"Model paths that trigger re-evaluation of this rule. REQUIRED when `fulfill.value` is present.","items":{"minLength":1,"type":"string"},"type":"array"},"fulfill":{"additionalProperties":{},"properties":{"dataOptions":{"description":"Literal option array for this field when the rule is active (NOT an expression — the DSL forbids object literals, so branch by declaring one rule per case with its own `when`).","items":{"$ref":"#/definitions/__schema0"},"type":"array"},"disabled":{"anyOf":[{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}],"description":"Expression node evaluating to a boolean: disable this field."},"required":{"anyOf":[{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}],"description":"Expression node evaluating to a boolean: make this field required."},"value":{"anyOf":[{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}],"description":"Expression node evaluating to this field's new value, written back to the model (requires a non-empty `dependencies`)."}},"type":"object"},"when":{"anyOf":[{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}],"description":"Optional gate: the rule applies only while it evaluates truthy. A JSONLogic EXPRESSION NODE (e.g. { \"==\": [{ var: \"country\" }, \"us\"] }) — never the { field, op, value } legacy form (that one belongs to isHidden), never a bare boolean. Plain JSON, never a JS function string."}},"required":["fulfill"],"type":"object"},"type":"array"},"render":{"description":"Extension point: a render-function source string for a custom TABLE CELL, e.g. \"(_, { row }) => h(ElTag, { type: row.status === 1 ? 'success' : 'danger' }, () => row.statusLabel)\" (wired to a scoped slot). A FORM-control render cannot be inlined (form items are serialized as JSON data), so it is preserved as a marked TODO(es-plus) marker in the SFC — NOT silently delivered; prefer the declarative rules/attrs/dataOptions/reactions for FORM behaviour.","type":"string"},"required":{"type":"boolean"},"rules":{"description":"Validation rules for this field. Use `pattern`/`min`/`max`/`type` for format constraints and `trigger` for when validation runs; `message` is REQUIRED. CONFIG-side (artifact: `formItemOptions.rules`). A rule carrying `type` is dispatched ONLY to that type validator (async-validator `getValidationMethod`) — a `pattern` on the SAME rule is silently ignored, so when the user states BOTH a regex and a type, emit them as TWO separate rules. For a plain text length cap (e.g. '最多 20 字') prefer `attrs.maxlength`; a `min`/`max` rule validates values with a message but does not block typing. Emit these rather than dropping a format/range requirement the user stated.","items":{"additionalProperties":{},"properties":{"max":{"description":"Maximum length for strings / maximum value for numbers.","type":"number"},"message":{"description":"Message shown when the rule fails — REQUIRED, write it in the user's language.","type":"string"},"min":{"description":"Minimum length for strings / minimum value for numbers.","type":"number"},"pattern":{"description":"RegExp SOURCE STRING the value must match (e.g. \"^1\\d{10}$\"), not a RegExp object.","type":"string"},"required":{"description":"Enforce a value with this rule (same effect as field-level `required`; prefer the field-level key for unconditional requirements).","type":"boolean"},"trigger":{"description":"'blur' validates when the field loses focus; 'change' validates while the value changes.","enum":["blur","change"],"type":"string"},"type":{"description":"Value type validated by this rule.","enum":["string","number","email","url","integer"],"type":"string"}},"required":["message"],"type":"object"},"type":"array"},"width":{"type":["number","string"]}},"required":["prop","label","formtype"],"type":"object"},"minItems":1,"type":"array"},"dataOptions":{"description":"Static options for Select/Radio/Checkbox/Cascader/TreeSelect/Autocomplete. Use this for known fixed enums.","items":{"$ref":"#/definitions/__schema0"},"type":"array"},"ellipsis":{"type":"boolean"},"filterMode":{"description":"Filter match: 'equals' (default) or 'includes' (cell text contains).","enum":["equals","includes"],"type":"string"},"filterMultiple":{"description":"Multi-select filter (default true).","type":"boolean"},"filters":{"description":"Filter options (plain JSON, never a function). On a FIELD they project onto the derived column. Local filtering on the default/vxe engines only — vue3 engine:'virtual' has no filter UI.","items":{"additionalProperties":{},"properties":{"text":{"description":"Option text shown in the filter dropdown.","type":"string"},"value":{"description":"Row value matched by this option (loose primitive compare: 1 matches \"1\").","type":["string","number","boolean"]}},"required":["text","value"],"type":"object"},"type":"array"},"fixed":{"anyOf":[{"type":"boolean"},{"const":"left","type":"string"},{"const":"right","type":"string"}]},"formSpan":{"description":"Grid width of this field in the add/edit form (1-24; 2 columns = 12 each). Column count is set PER FIELD — `formLayout` has no span key.","maximum":24,"minimum":1,"type":"integer"},"formatter":{"description":"Extension point: JS arrow-function source for read-only cell formatting, e.g. \"(row) => row.amount.toFixed(2)\".","type":"string"},"formtype":{"description":"Pick by MEANING, not keywords: status/type/enum/gender → Select; date/time → DatePicker/TimePicker; image/avatar/attachment/file → Upload; long text/remark/description → Input (attrs.type:'textarea'); boolean on/off → Switch; single-choice small set → Radio; multi-choice → Checkbox; region/category tree → Cascader; department/org/permission tree with ANY level selectable → TreeSelect; type-to-filter over a known option set → Autocomplete; score → Rate; plain text → Input. OMIT only for a nested-object container (a field carrying `children`) — it renders no input.","enum":["Input","InputNumber","Select","DatePicker","TimePicker","Slider","ColorPicker","Transfer","Cascader","TreeSelect","Autocomplete","Radio","Checkbox","Switch","Rate","Upload","datePicker","timePicker"],"type":"string"},"group":{"description":"Form-group key for the FORM face. Fields sharing a key are rendered inside that group's container; declare the containers in `formLayout.layout` (query form) or `dialogs[k].formLayout.layout` (dialog form). Ignored by the table column. Omit to follow the layout's `ungrouped` strategy.","minLength":1,"type":"string"},"isHidden":{"anyOf":[{"additionalProperties":{},"properties":{"field":{"description":"Model field path to test, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"},"op":{"description":"Operator: eq/ne = equal/not-equal (default eq; number↔string tolerated, e.g. 1 matches '1'); in/nIn = in/not-in the given array; empty/notEmpty = ''/null/undefined/[]; truthy/falsy = JS truthiness. The field is hidden WHEN it holds.","enum":["eq","ne","in","nIn","empty","notEmpty","truthy","falsy"],"type":"string"},"value":{"description":"Right-hand side of the comparison. REQUIRED for eq/ne (scalar) and in/nIn (array). IGNORED by empty/notEmpty/truthy/falsy."}},"required":["field"],"type":"object"},{"anyOf":[{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}]},{"items":{"anyOf":[{"additionalProperties":{},"properties":{"field":{"description":"Model field path to test, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"},"op":{"description":"Operator: eq/ne = equal/not-equal (default eq; number↔string tolerated, e.g. 1 matches '1'); in/nIn = in/not-in the given array; empty/notEmpty = ''/null/undefined/[]; truthy/falsy = JS truthiness. The field is hidden WHEN it holds.","enum":["eq","ne","in","nIn","empty","notEmpty","truthy","falsy"],"type":"string"},"value":{"description":"Right-hand side of the comparison. REQUIRED for eq/ne (scalar) and in/nIn (array). IGNORED by empty/notEmpty/truthy/falsy."}},"required":["field"],"type":"object"},{"anyOf":[{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}]}]},"minItems":1,"type":"array"}],"description":"Hidden when the condition HOLDS — PLAIN JSON DATA, never a JS function string (functions cannot be inlined into a schema-mode pageSchema). `{ field: 'payType', op: 'eq', value: 'cash' }` = hidden while payType is cash; an ARRAY of conditions is AND. TWO forms, never mixed within one node: (1) legacy `{ field, op, value }` with op ∈ eq|ne|in|nIn|empty|notEmpty|truthy|falsy (default eq) — preferred for simple comparisons; (2) a JSONLogic-shaped expression when a plain condition can't express it (OR, ordering, nesting): `{ or: [ { '==': [{ var: 'status' }, 'pending'] }, { '>': [{ var: 'amount' }, 100] } ] }`; expression ops (closed set): var == != > >= < <= in nin empty notEmpty truthy falsy and or not if. A form-(2) op inside a form-(1) node is INVALID (runtime warns and treats the field as visible). Applies to the query/filter and add/edit dialog forms (its `inQuery`/`inForm` placement) — NOT to the table column (`inTable`). Evaluated live by the three renderers."},"label":{"description":"Human-readable column/form label, e.g. \"用户名\"","minLength":1,"type":"string"},"labelKey":{"description":"i18n key for this field's label (instead of `label`; derived as `field.<prop>` when omitted). Only takes effect once the HOST assembles the plugin with a `t` option (else falls back to `label`).","type":"string"},"minWidth":{"type":["number","string"]},"permissionValue":{"description":"Permission CODE gating this field (RBAC, checked by the host's global permission(code)) — NOT a data-driven condition: use `isHidden` for show/hide by another field's value, `reactions` for options/required/disabled linkage.","type":"string"},"prop":{"description":"Field key in the data model (camelCase), e.g. \"userName\"","minLength":1,"type":"string"},"querySpan":{"description":"Grid width of this field in the query form (1-24; 2 columns = 12 each). Column count is set PER FIELD — `formLayout` has no span key.","maximum":24,"minimum":1,"type":"integer"},"reactions":{"description":"Field-level linkage / computed rules (AI-07) — PLAIN JSON, never JS callbacks. Use when THIS field's options/required/disabled/value depend on ANOTHER field. Each rule `{ dependencies?, when?, fulfill }`: `dependencies` = model paths that re-trigger it (REQUIRED when `fulfill.value` is set); `when` gates the rule; `fulfill` supplies `dataOptions` (literal array), `required`/`disabled` (boolean expressions) and/or `value` (this field's new value, written back). `when`/`required`/`disabled`/`value` are JSONLogic EXPRESSION NODES only (e.g. `{ '==': [{ var: 'country' }, 'us'] }`) — never the `{ field, op, value }` legacy form, never a bare boolean. Example: `city` options follow `province` → one rule per province with `when: { '==': [{ var: 'province' }, 'zj'] }` and `fulfill.dataOptions: [{label:'杭州',value:'hz'}]`. Applies to the query/add/edit forms — NOT the table column. HARD RULE: branching on a dropdown LABEL ('跨境结算') requires that field's `dataOptions` and comparing the VALUE ('cross') — rows carry codes, not labels; `validate_config` warns (non-blocking).","items":{"additionalProperties":{},"properties":{"dependencies":{"description":"Model paths that trigger re-evaluation of this rule. REQUIRED when `fulfill.value` is present.","items":{"minLength":1,"type":"string"},"type":"array"},"fulfill":{"additionalProperties":{},"properties":{"dataOptions":{"description":"Literal option array for this field when the rule is active (NOT an expression — the DSL forbids object literals, so branch by declaring one rule per case with its own `when`).","items":{"$ref":"#/definitions/__schema0"},"type":"array"},"disabled":{"anyOf":[{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}],"description":"Expression node evaluating to a boolean: disable this field."},"required":{"anyOf":[{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}],"description":"Expression node evaluating to a boolean: make this field required."},"value":{"anyOf":[{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}],"description":"Expression node evaluating to this field's new value, written back to the model (requires a non-empty `dependencies`)."}},"type":"object"},"when":{"anyOf":[{"additionalProperties":{},"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}],"description":"Optional gate: the rule applies only while it evaluates truthy. A JSONLogic EXPRESSION NODE (e.g. { \"==\": [{ var: \"country\" }, \"us\"] }) — never the { field, op, value } legacy form (that one belongs to isHidden), never a bare boolean. Plain JSON, never a JS function string."}},"required":["fulfill"],"type":"object"},"type":"array"},"render":{"description":"Extension point: a render-function source string for a custom TABLE CELL, e.g. \"(_, { row }) => h(ElTag, { type: row.status === 1 ? 'success' : 'danger' }, () => row.statusLabel)\" (wired to a scoped slot). A FORM-control render cannot be inlined (form items are serialized as JSON data), so it is preserved as a marked TODO(es-plus) marker in the SFC — NOT silently delivered; prefer the declarative rules/attrs/dataOptions/reactions for FORM behaviour.","type":"string"},"required":{"type":"boolean"},"rules":{"description":"Validation rules for this field. Use `pattern`/`min`/`max`/`type` for format constraints and `trigger` for when validation runs; `message` is REQUIRED. CONFIG-side (artifact: `formItemOptions.rules`). A rule carrying `type` is dispatched ONLY to that type validator (async-validator `getValidationMethod`) — a `pattern` on the SAME rule is silently ignored, so when the user states BOTH a regex and a type, emit them as TWO separate rules. For a plain text length cap (e.g. '最多 20 字') prefer `attrs.maxlength`; a `min`/`max` rule validates values with a message but does not block typing. Emit these rather than dropping a format/range requirement the user stated.","items":{"additionalProperties":{},"properties":{"max":{"description":"Maximum length for strings / maximum value for numbers.","type":"number"},"message":{"description":"Message shown when the rule fails — REQUIRED, write it in the user's language.","type":"string"},"min":{"description":"Minimum length for strings / minimum value for numbers.","type":"number"},"pattern":{"description":"RegExp SOURCE STRING the value must match (e.g. \"^1\\d{10}$\"), not a RegExp object.","type":"string"},"required":{"description":"Enforce a value with this rule (same effect as field-level `required`; prefer the field-level key for unconditional requirements).","type":"boolean"},"trigger":{"description":"'blur' validates when the field loses focus; 'change' validates while the value changes.","enum":["blur","change"],"type":"string"},"type":{"description":"Value type validated by this rule.","enum":["string","number","email","url","integer"],"type":"string"}},"required":["message"],"type":"object"},"type":"array"},"width":{"type":["number","string"]}},"required":["prop","label","formtype"],"type":"object"},"minItems":1,"type":"array"},"i18n":{"default":false,"description":"Use labelKey for i18n","type":"boolean"},"mode":{"default":"composable","description":"Output shape. 'composable' (default) = a useXxxDialog().tsx/.jsx module whose dialog body is a JSX render — requires @vitejs/plugin-vue-jsx (vue3/antdv) or @vue/babel-preset-jsx (vue2). 'component' = a self-contained <es-dialog> SFC (template + script setup; vue2: defineComponent) with NO JSX dependency. Both expose the same integration contract: open(title, row?, onSuccess?).","enum":["composable","component"],"type":"string"},"options":{"additionalProperties":{},"description":"Declarative dialog base options (core DialogOptions subset). Omitted keys keep the defaults; `title` is NOT an option — it is open()'s first argument (for a fallback value use `defaultTitle`).","properties":{"appendTo":{"description":"CSS selector of the mount node for the dialog (e.g. 'body' or '#app-dialogs'). A DOM element cannot travel in JSON, so only the selector form is accepted — the runtime resolves it with querySelector and falls back to document.body.","type":"string"},"cacheKey":{"description":"Instance cache key: repeat calls with the same key reuse one dialog instance so its internal state survives close/reopen (recycled 10 minutes after close). Implemented identically by all three runtimes (vue3 / vue2 / ant-design-vue).","type":"string"},"closeOnClickModal":{"description":"Close when the mask is clicked; default true.","type":"boolean"},"closeOnPressEscape":{"description":"Close when Escape is pressed; default true.","type":"boolean"},"destroyOnClose":{"description":"Destroy the dialog content on close (resets internal state each open).","type":"boolean"},"fullscreen":{"description":"Open the dialog fullscreen.","type":"boolean"},"hiddenFullBtn":{"description":"Hide the built-in fullscreen toggle button.","type":"boolean"},"isDraggable":{"description":"Make the dialog draggable by its header.","type":"boolean"},"isHiddenFooter":{"description":"Hide the whole footer (overrides configBtn).","type":"boolean"},"maxHeight":{"description":"Max height of the dialog body (scrolls beyond it).","type":["string","number"]},"modal":{"description":"Render the mask/overlay; default true.","type":"boolean"},"showClose":{"description":"Show the built-in close (X) entry; default true. false hides the self-drawn X and the native one together (the dialog then only closes via footer buttons).","type":"boolean"},"width":{"type":["string","number"]}},"type":"object"},"rowkey":{"description":"Primary key used to build the PUT url `${apiUrl}/${formData[rowkey]}` (default 'id')","type":"string"},"target":{"default":"vue3","description":"Target renderer: vue3 (Element Plus), vue2 (Element UI), antdv (Ant Design Vue)","enum":["vue3","vue2","antdv"],"type":"string"},"typescript":{"default":true,"type":"boolean"}},"required":["fields"],"type":"object"},"name":"generate_dialog"},{"description":"LEGACY FALLBACK (deprecated): generate CrudPageSchema JSON + minimal wrapper SFC from a natural language description using a REGEX/keyword parser. For natural-language requests use generate_crud (the front-door tool); for a config you already hold use generate_crud_from_config (ADVANCED) — both compile through the same deterministic generator. Keep this only for a quick prototype or a no-LLM host. Produces <es-crud-page> schema output. Supports vue3 (default) / vue2 / antdv targets.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":{},"properties":{"description":{"description":"Natural language description of the CRUD page. Example: '用户管理，查询姓名、手机号、状态，表格显示姓名、手机号、邮箱、状态，支持新增编辑删除'","type":"string"},"target":{"default":"vue3","description":"Target framework: 'vue3' (default, @es-plus/vue3 + Element Plus), 'vue2' (@es-plus/vue2 + Element UI), or 'antdv' (@es-plus/adapter-antdv + Ant Design Vue). Schema JSON is target-agnostic; only wrapper SFC differs.","enum":["vue3","vue2","antdv"],"type":"string"}},"required":["description"],"type":"object"},"name":"generate_crud_schema"},{"description":"ADVANCED path — hand-authored StructuredCrudConfig (typed fields, not a JSON blob). For a natural-language request, use generate_scene (scene='crud', the front door) instead: it asks you for `surfaces` and routes deterministically, so you do not have to fill the whole config. Use this tool when you ALREADY hold a typed config (e.g. one you persist, diff, or edited via refine_config) or need direct access to config keys the front door does not expose. It runs the same deterministic generator and schema gate as the front door, and it REPAIRS before judging: key aliases, relocated/nested keys, null placeholders, 'false'-style string booleans and dialog shorthands (dialogs:[\"add\"]) are normalized first and each repair is reported as a warning (validate_config does NOT repair — it is the read-only diagnostic). You (the AI client) do the reasoning — read the natural-language request, then FILL these typed fields directly: name (PascalCase), apiUrl (real endpoint), fields[] (prop/label/formtype + inQuery/inTable/inForm), actions[]. The field descriptions tell you how to map meaning → formtype. For requirements the schema can't express, emit a marked extension point (formatter/render string) rather than dropping them. Supports target:'vue3'|'vue2'|'antdv' (default vue3). Read esplus://conventions, esplus://examples/nl-to-config and esplus://types first; after drafting, self-review against the original request before calling.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":{},"definitions":{"__schema0":{"properties":{"children":{"items":{"$ref":"#/definitions/__schema0"},"type":"array"},"disabled":{"type":"boolean"},"label":{"type":"string"},"tagType":{"description":"Render this option as a tag in the TABLE cell, in this semantic colour. Ignored by the form controls.","enum":["primary","success","warning","danger","info"],"type":"string"},"value":{"type":["string","number","boolean"]}},"required":["label","value"],"type":"object"},"__schema1":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},{"additionalProperties":false,"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}]},"__schema2":{"properties":{"align":{"enum":["left","center","right"],"type":"string"},"autoFilters":{"description":"Derive `filters` from this field's `dataOptions` (explicit `filters` wins).","type":"boolean"},"btns":{"description":"In-cell action buttons (operation column)","items":{"additionalProperties":{},"propertyNames":{"type":"string"},"type":"object"},"type":"array"},"dataOptions":{"description":"Declarative code→label mapping for the CELL (all three renderers, all engines; pure JSON — safe in schema mode). Unmatched values fall back to the raw value, null/empty to `emptyPlaceholder`. Explicit `render`/`scopedSlots`/`formatter` win. Derived columns get this automatically from `fields[].dataOptions`, so declare it on the COLUMN only when you want a display mapping that differs from (or is absent in) the field config, e.g. `{prop:\"status\", dataOptions:[{label:\"已完成\",value:2,tagType:\"success\"}]}`.","items":{"properties":{"label":{"description":"Cell text shown when this option matches.","type":"string"},"tagType":{"description":"Render the matched label as a tag in this semantic colour (ElTag / el-tag / a-tag; primary = default/blue). Omit for plain text.","enum":["primary","success","warning","danger","info"],"type":"string"},"value":{"description":"Stored row value this option matches (number/string compare loosely: 1 matches \"1\").","type":["string","number","boolean"]}},"required":["label","value"],"type":"object"},"type":"array"},"editRender":{"description":"Column-level inline editor (AI-09 子项④). vxe engine only — requires tableOptions.editConfig AND tableOptions.engine:'vxe'. Function-valued fields (events) and custom-registered renderers are out of scope (Tier-3).","properties":{"autofocus":{"type":["string","boolean"]},"defaultValue":{},"name":{"description":"Inline-edit renderer name, e.g. '$input' | '$select' | '$textarea' | '$date' (vxe engine only).","type":"string"},"options":{"description":"Option list for a '$select' editor (label/value pairs).","items":{"properties":{"label":{"type":"string"},"value":{"type":["string","number","boolean"]}},"required":["label","value"],"type":"object"},"type":"array"},"props":{"additionalProperties":{},"description":"Props forwarded to the editor. `$input` vocabulary: `type` = text|number|integer|float|date|week|month|year; `digits` = decimals (only the 'float' branch reads it); `min`/`max`; `placeholder`. '保留两位小数' ⟹ `{type:'float',digits:2}`; `precision` is NOT a prop and is inert; there is NO `required` validation (a hint can live in `placeholder`).","propertyNames":{"type":"string"},"type":"object"},"type":{"description":"'default' = enter edit on trigger; 'visible' = editor always shown.","enum":["default","visible"],"type":"string"}},"type":"object"},"ellipsis":{"type":"boolean"},"expandConfig":{"description":"Row-expand content declared ON the `type:'expand'` column (AI-09 子项②). Same shape/semantics as the top-level `expandConfig`; use it when the expander is not the leading column or when `columns` is the source of truth. If BOTH are set, the top-level one wins on the expand column. Distinct from `tableOptions.expandConfig` (the vxe `{accordion}` switch).","properties":{"fields":{"description":"Read-only fields rendered inside the expanded row, one per line as `label: value`.","items":{"properties":{"label":{"description":"Label text for this field.","type":"string"},"labelKey":{"description":"i18n label key (used with a global t() function; takes precedence over `label`).","type":"string"},"prop":{"description":"Row field to display (value = `row[prop]`).","minLength":1,"type":"string"}},"required":["prop"],"type":"object"},"minItems":1,"type":"array"},"title":{"description":"Optional title shown at the top of the expanded row.","type":"string"}},"required":["fields"],"type":"object"},"filterMode":{"description":"Filter match: 'equals' (default) or 'includes' (cell text contains).","enum":["equals","includes"],"type":"string"},"filterMultiple":{"description":"Multi-select filter (default true).","type":"boolean"},"filters":{"description":"Filter options (plain JSON, never a function). On a FIELD they project onto the derived column. Local filtering on the default/vxe engines only — vue3 engine:'virtual' has no filter UI.","items":{"properties":{"text":{"description":"Option text shown in the filter dropdown.","type":"string"},"value":{"description":"Row value matched by this option (loose primitive compare: 1 matches \"1\").","type":["string","number","boolean"]}},"required":["text","value"],"type":"object"},"type":"array"},"fixed":{"anyOf":[{"type":"boolean"},{"const":"left","type":"string"},{"const":"right","type":"string"}]},"groups":{"description":"Nested child columns for a GROUP HEADER (multi-level). Recursive. Cross-renderer safe up to 2 levels (antdv supports N; vue3/vue2 default tables flatten beyond 1).","items":{"$ref":"#/definitions/__schema2"},"type":"array"},"label":{"description":"Column header text. Omit for non-field columns.","type":"string"},"labelKey":{"description":"i18n key alternative to label (used when i18n is on)","type":"string"},"minWidth":{"type":["number","string"]},"permissionValue":{"description":"Permission code; the column is not rendered without it","type":"string"},"prop":{"description":"Data key for this column, e.g. \"userName\". Omit for non-field columns (type: index/selection/expand).","minLength":1,"type":"string"},"showOverflowTooltip":{"type":"boolean"},"sortable":{"type":"boolean"},"type":{"description":"Non-field column kind: 'index' = row number, 'selection' = checkbox column, 'expand' = row expander (needs a content slot / expandConfig). Omit for a normal data column.","enum":["index","selection","expand"],"type":"string"},"width":{"type":["number","string"]}},"type":"object"}},"properties":{"actions":{"description":"Enabled CRUD actions. `import` renders only a BUTTON that emits an import event — es-plus never parses files (encoding, size, backend validation are host concerns); wire your own upload handler.","items":{"enum":["add","edit","delete","view","export","import"],"type":"string"},"minItems":1,"type":"array"},"apiUrl":{"description":"API base URL, e.g. \"/api/users\"","minLength":1,"type":"string"},"columns":{"description":"Explicit table columns (escape hatch over the `fields`-derived columns). When present it REPLACES the derived data columns (override, not merge) — `fields` still drives the query/add/edit forms. Use it for multi-level group headers (`groups`), and non-field columns (`type`: index/selection/expand). The operation column is STILL appended from `actions`/`operationColumn` (set `operationColumn:false` to manage it yourself). Omit to keep the derived one-field-one-column behavior.","items":{"$ref":"#/definitions/__schema2"},"type":"array"},"dialogs":{"additionalProperties":{"properties":{"appendTo":{"description":"CSS selector of the mount node for the dialog (e.g. 'body' or '#app-dialogs'). A DOM element cannot travel in JSON, so only the selector form is accepted — the runtime resolves it with querySelector and falls back to document.body.","type":"string"},"cacheKey":{"description":"Instance cache key: repeat calls with the same key reuse one dialog instance so its internal state survives close/reopen (recycled 10 minutes after close). Implemented identically by all three runtimes (vue3 / vue2 / ant-design-vue).","type":"string"},"closeOnClickModal":{"description":"Close when the mask is clicked; default true.","type":"boolean"},"closeOnPressEscape":{"description":"Close when Escape is pressed; default true.","type":"boolean"},"configBtn":{"description":"Declarative footer buttons. When omitted a cancel+confirm pair is generated automatically by <es-crud-page>. 'confirm' / 'cancel' get their click handler attached by the runtime from `action`; 'custom' (or an omitted action) gets NO handler — in mode:'schema' the generated wrapper is template-only, so a custom button stays dead (use mode:'sfc' to wire it, or drop it).","items":{"properties":{"action":{"description":"Button behaviour. 'confirm' = validate the dialog form then run the dialog's submit path; 'cancel' = close and emit dialog-cancel; 'custom' (or omitted) = plain button whose click must be wired by the host wrapper.","enum":["confirm","cancel","custom"],"type":"string"},"name":{"description":"Button label text.","minLength":1,"type":"string"},"permissionValue":{"description":"Permission code; the button is filtered out unless the globally configured permission function grants it.","type":"string"},"type":{"description":"Button type, e.g. 'primary' | 'danger' | 'default'.","type":"string"}},"required":["name"],"type":"object"},"minItems":1,"type":"array"},"destroyOnClose":{"description":"Destroy the dialog content on close (resets internal state each open).","type":"boolean"},"formItems":{"items":{"properties":{"align":{"enum":["left","center","right"],"type":"string"},"apiParams":{"description":"Remote options source for Select/Cascader/TreeSelect — use instead of dataOptions when options come from an API.","properties":{"labelField":{"type":"string"},"method":{"enum":["GET","POST"],"type":"string"},"url":{"type":"string"},"valueField":{"type":"string"}},"required":["url"],"type":"object"},"attrs":{"additionalProperties":{},"description":"Extra component props, e.g. { type: 'textarea', maxlength: 200 }","propertyNames":{"type":"string"},"type":"object"},"autoFilters":{"description":"Derive `filters` from this field's `dataOptions` (explicit `filters` wins).","type":"boolean"},"children":{"description":"Nested-object FORM grouping (ONE level only): this field becomes a full-width section heading; its children render under it. Child `prop` is relative to this field (`city` → `address.city`) unless absolute. The container binds NO data (never a table column) — omit `formtype`; children cannot declare `children` (array sub-forms are OUT of the declarative contract — use `render` or host-owned UI).","items":{"properties":{"align":{"enum":["left","center","right"],"type":"string"},"apiParams":{"description":"Remote options source for Select/Cascader/TreeSelect — use instead of dataOptions when options come from an API.","properties":{"labelField":{"type":"string"},"method":{"enum":["GET","POST"],"type":"string"},"url":{"type":"string"},"valueField":{"type":"string"}},"required":["url"],"type":"object"},"attrs":{"additionalProperties":{},"description":"Extra component props, e.g. { type: 'textarea', maxlength: 200 }","propertyNames":{"type":"string"},"type":"object"},"autoFilters":{"description":"Derive `filters` from this field's `dataOptions` (explicit `filters` wins).","type":"boolean"},"dataOptions":{"description":"Static options for Select/Radio/Checkbox/Cascader/TreeSelect/Autocomplete. Use this for known fixed enums.","items":{"$ref":"#/definitions/__schema0"},"type":"array"},"ellipsis":{"type":"boolean"},"filterMode":{"description":"Filter match: 'equals' (default) or 'includes' (cell text contains).","enum":["equals","includes"],"type":"string"},"filterMultiple":{"description":"Multi-select filter (default true).","type":"boolean"},"filters":{"description":"Filter options (plain JSON, never a function). On a FIELD they project onto the derived column. Local filtering on the default/vxe engines only — vue3 engine:'virtual' has no filter UI.","items":{"properties":{"text":{"description":"Option text shown in the filter dropdown.","type":"string"},"value":{"description":"Row value matched by this option (loose primitive compare: 1 matches \"1\").","type":["string","number","boolean"]}},"required":["text","value"],"type":"object"},"type":"array"},"fixed":{"anyOf":[{"type":"boolean"},{"const":"left","type":"string"},{"const":"right","type":"string"}]},"formSpan":{"description":"Grid width of this field in the add/edit form (1-24; 2 columns = 12 each). Column count is set PER FIELD — `formLayout` has no span key.","maximum":24,"minimum":1,"type":"integer"},"formatter":{"description":"Extension point: JS arrow-function source for read-only cell formatting, e.g. \"(row) => row.amount.toFixed(2)\".","type":"string"},"formtype":{"default":"Input","description":"Pick by MEANING, not keywords: status/type/enum/gender → Select; date/time → DatePicker/TimePicker; image/avatar/attachment/file → Upload; long text/remark/description → Input (attrs.type:'textarea'); boolean on/off → Switch; single-choice small set → Radio; multi-choice → Checkbox; region/category tree → Cascader; department/org/permission tree with ANY level selectable → TreeSelect; type-to-filter over a known option set → Autocomplete; score → Rate; plain text → Input. OMIT only for a nested-object container (a field carrying `children`) — it renders no input.","enum":["Input","InputNumber","Select","DatePicker","TimePicker","Slider","ColorPicker","Transfer","Cascader","TreeSelect","Autocomplete","Radio","Checkbox","Switch","Rate","Upload","datePicker","timePicker"],"type":"string"},"group":{"description":"Form-group key for the FORM face. Fields sharing a key are rendered inside that group's container; declare the containers in `formLayout.layout` (query form) or `dialogs[k].formLayout.layout` (dialog form). Ignored by the table column. Omit to follow the layout's `ungrouped` strategy.","minLength":1,"type":"string"},"inForm":{"default":true,"description":"Show in the add/edit form","type":"boolean"},"inQuery":{"default":true,"description":"Show as a query/filter field above the table","type":"boolean"},"inTable":{"default":true,"description":"Show as a table column","type":"boolean"},"isHidden":{"anyOf":[{"properties":{"field":{"description":"Model field path to test, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"},"op":{"default":"eq","description":"Operator: eq/ne = equal/not-equal (default eq; number↔string tolerated, e.g. 1 matches '1'); in/nIn = in/not-in the given array; empty/notEmpty = ''/null/undefined/[]; truthy/falsy = JS truthiness. The field is hidden WHEN it holds.","enum":["eq","ne","in","nIn","empty","notEmpty","truthy","falsy"],"type":"string"},"value":{"description":"Right-hand side of the comparison. REQUIRED for eq/ne (scalar) and in/nIn (array). IGNORED by empty/notEmpty/truthy/falsy."}},"required":["field"],"type":"object"},{"anyOf":[{"additionalProperties":false,"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}]},{"items":{"anyOf":[{"properties":{"field":{"description":"Model field path to test, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"},"op":{"default":"eq","description":"Operator: eq/ne = equal/not-equal (default eq; number↔string tolerated, e.g. 1 matches '1'); in/nIn = in/not-in the given array; empty/notEmpty = ''/null/undefined/[]; truthy/falsy = JS truthiness. The field is hidden WHEN it holds.","enum":["eq","ne","in","nIn","empty","notEmpty","truthy","falsy"],"type":"string"},"value":{"description":"Right-hand side of the comparison. REQUIRED for eq/ne (scalar) and in/nIn (array). IGNORED by empty/notEmpty/truthy/falsy."}},"required":["field"],"type":"object"},{"anyOf":[{"additionalProperties":false,"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}]}]},"minItems":1,"type":"array"}],"description":"Hidden when the condition HOLDS — PLAIN JSON DATA, never a JS function string (functions cannot be inlined into a schema-mode pageSchema). `{ field: 'payType', op: 'eq', value: 'cash' }` = hidden while payType is cash; an ARRAY of conditions is AND. TWO forms, never mixed within one node: (1) legacy `{ field, op, value }` with op ∈ eq|ne|in|nIn|empty|notEmpty|truthy|falsy (default eq) — preferred for simple comparisons; (2) a JSONLogic-shaped expression when a plain condition can't express it (OR, ordering, nesting): `{ or: [ { '==': [{ var: 'status' }, 'pending'] }, { '>': [{ var: 'amount' }, 100] } ] }`; expression ops (closed set): var == != > >= < <= in nin empty notEmpty truthy falsy and or not if. A form-(2) op inside a form-(1) node is INVALID (runtime warns and treats the field as visible). Applies to the query/filter and add/edit dialog forms (its `inQuery`/`inForm` placement) — NOT to the table column (`inTable`). Evaluated live by the three renderers."},"label":{"description":"Human-readable column/form label, e.g. \"用户名\"","minLength":1,"type":"string"},"labelKey":{"description":"i18n key for this field's label (instead of `label`; derived as `field.<prop>` when omitted). Only takes effect once the HOST assembles the plugin with a `t` option (else falls back to `label`).","type":"string"},"minWidth":{"type":["number","string"]},"permissionValue":{"description":"Permission CODE gating this field (RBAC, checked by the host's global permission(code)) — NOT a data-driven condition: use `isHidden` for show/hide by another field's value, `reactions` for options/required/disabled linkage.","type":"string"},"prop":{"description":"Field key in the data model (camelCase), e.g. \"userName\"","minLength":1,"type":"string"},"querySpan":{"description":"Grid width of this field in the query form (1-24; 2 columns = 12 each). Column count is set PER FIELD — `formLayout` has no span key.","maximum":24,"minimum":1,"type":"integer"},"reactions":{"description":"Field-level linkage / computed rules (AI-07) — PLAIN JSON, never JS callbacks. Use when THIS field's options/required/disabled/value depend on ANOTHER field. Each rule `{ dependencies?, when?, fulfill }`: `dependencies` = model paths that re-trigger it (REQUIRED when `fulfill.value` is set); `when` gates the rule; `fulfill` supplies `dataOptions` (literal array), `required`/`disabled` (boolean expressions) and/or `value` (this field's new value, written back). `when`/`required`/`disabled`/`value` are JSONLogic EXPRESSION NODES only (e.g. `{ '==': [{ var: 'country' }, 'us'] }`) — never the `{ field, op, value }` legacy form, never a bare boolean. Example: `city` options follow `province` → one rule per province with `when: { '==': [{ var: 'province' }, 'zj'] }` and `fulfill.dataOptions: [{label:'杭州',value:'hz'}]`. Applies to the query/add/edit forms — NOT the table column. HARD RULE: branching on a dropdown LABEL ('跨境结算') requires that field's `dataOptions` and comparing the VALUE ('cross') — rows carry codes, not labels; `validate_config` warns (non-blocking).","items":{"properties":{"dependencies":{"description":"Model paths that trigger re-evaluation of this rule. REQUIRED when `fulfill.value` is present.","items":{"minLength":1,"type":"string"},"type":"array"},"fulfill":{"properties":{"dataOptions":{"description":"Literal option array for this field when the rule is active (NOT an expression — the DSL forbids object literals, so branch by declaring one rule per case with its own `when`).","items":{"$ref":"#/definitions/__schema0"},"type":"array"},"disabled":{"anyOf":[{"additionalProperties":false,"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}],"description":"Expression node evaluating to a boolean: disable this field."},"required":{"anyOf":[{"additionalProperties":false,"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}],"description":"Expression node evaluating to a boolean: make this field required."},"value":{"anyOf":[{"additionalProperties":false,"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}],"description":"Expression node evaluating to this field's new value, written back to the model (requires a non-empty `dependencies`)."}},"type":"object"},"when":{"anyOf":[{"additionalProperties":false,"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}],"description":"Optional gate: the rule applies only while it evaluates truthy. A JSONLogic EXPRESSION NODE (e.g. { \"==\": [{ var: \"country\" }, \"us\"] }) — never the { field, op, value } legacy form (that one belongs to isHidden), never a bare boolean. Plain JSON, never a JS function string."}},"required":["fulfill"],"type":"object"},"type":"array"},"render":{"description":"Extension point: a render-function source string for a custom TABLE CELL, e.g. \"(_, { row }) => h(ElTag, { type: row.status === 1 ? 'success' : 'danger' }, () => row.statusLabel)\" (wired to a scoped slot). A FORM-control render cannot be inlined (form items are serialized as JSON data), so it is preserved as a marked TODO(es-plus) marker in the SFC — NOT silently delivered; prefer the declarative rules/attrs/dataOptions/reactions for FORM behaviour.","type":"string"},"required":{"type":"boolean"},"rules":{"description":"Validation rules for this field. Use `pattern`/`min`/`max`/`type` for format constraints and `trigger` for when validation runs; `message` is REQUIRED. CONFIG-side (artifact: `formItemOptions.rules`). A rule carrying `type` is dispatched ONLY to that type validator (async-validator `getValidationMethod`) — a `pattern` on the SAME rule is silently ignored, so when the user states BOTH a regex and a type, emit them as TWO separate rules. For a plain text length cap (e.g. '最多 20 字') prefer `attrs.maxlength`; a `min`/`max` rule validates values with a message but does not block typing. Emit these rather than dropping a format/range requirement the user stated.","items":{"properties":{"max":{"description":"Maximum length for strings / maximum value for numbers.","type":"number"},"message":{"description":"Message shown when the rule fails — REQUIRED, write it in the user's language.","type":"string"},"min":{"description":"Minimum length for strings / minimum value for numbers.","type":"number"},"pattern":{"description":"RegExp SOURCE STRING the value must match (e.g. \"^1\\d{10}$\"), not a RegExp object.","type":"string"},"required":{"description":"Enforce a value with this rule (same effect as field-level `required`; prefer the field-level key for unconditional requirements).","type":"boolean"},"trigger":{"description":"'blur' validates when the field loses focus; 'change' validates while the value changes.","enum":["blur","change"],"type":"string"},"type":{"description":"Value type validated by this rule.","enum":["string","number","email","url","integer"],"type":"string"}},"required":["message"],"type":"object"},"type":"array"},"width":{"type":["number","string"]}},"required":["prop","label"],"type":"object"},"minItems":1,"type":"array"},"dataOptions":{"description":"Static options for Select/Radio/Checkbox/Cascader/TreeSelect/Autocomplete. Use this for known fixed enums.","items":{"$ref":"#/definitions/__schema0"},"type":"array"},"ellipsis":{"type":"boolean"},"filterMode":{"description":"Filter match: 'equals' (default) or 'includes' (cell text contains).","enum":["equals","includes"],"type":"string"},"filterMultiple":{"description":"Multi-select filter (default true).","type":"boolean"},"filters":{"description":"Filter options (plain JSON, never a function). On a FIELD they project onto the derived column. Local filtering on the default/vxe engines only — vue3 engine:'virtual' has no filter UI.","items":{"properties":{"text":{"description":"Option text shown in the filter dropdown.","type":"string"},"value":{"description":"Row value matched by this option (loose primitive compare: 1 matches \"1\").","type":["string","number","boolean"]}},"required":["text","value"],"type":"object"},"type":"array"},"fixed":{"anyOf":[{"type":"boolean"},{"const":"left","type":"string"},{"const":"right","type":"string"}]},"formSpan":{"description":"Grid width of this field in the add/edit form (1-24; 2 columns = 12 each). Column count is set PER FIELD — `formLayout` has no span key.","maximum":24,"minimum":1,"type":"integer"},"formatter":{"description":"Extension point: JS arrow-function source for read-only cell formatting, e.g. \"(row) => row.amount.toFixed(2)\".","type":"string"},"formtype":{"default":"Input","description":"Pick by MEANING, not keywords: status/type/enum/gender → Select; date/time → DatePicker/TimePicker; image/avatar/attachment/file → Upload; long text/remark/description → Input (attrs.type:'textarea'); boolean on/off → Switch; single-choice small set → Radio; multi-choice → Checkbox; region/category tree → Cascader; department/org/permission tree with ANY level selectable → TreeSelect; type-to-filter over a known option set → Autocomplete; score → Rate; plain text → Input. OMIT only for a nested-object container (a field carrying `children`) — it renders no input.","enum":["Input","InputNumber","Select","DatePicker","TimePicker","Slider","ColorPicker","Transfer","Cascader","TreeSelect","Autocomplete","Radio","Checkbox","Switch","Rate","Upload","datePicker","timePicker"],"type":"string"},"group":{"description":"Form-group key for the FORM face. Fields sharing a key are rendered inside that group's container; declare the containers in `formLayout.layout` (query form) or `dialogs[k].formLayout.layout` (dialog form). Ignored by the table column. Omit to follow the layout's `ungrouped` strategy.","minLength":1,"type":"string"},"inForm":{"default":true,"description":"Show in the add/edit form","type":"boolean"},"inQuery":{"default":true,"description":"Show as a query/filter field above the table","type":"boolean"},"inTable":{"default":true,"description":"Show as a table column","type":"boolean"},"isHidden":{"anyOf":[{"properties":{"field":{"description":"Model field path to test, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"},"op":{"default":"eq","description":"Operator: eq/ne = equal/not-equal (default eq; number↔string tolerated, e.g. 1 matches '1'); in/nIn = in/not-in the given array; empty/notEmpty = ''/null/undefined/[]; truthy/falsy = JS truthiness. The field is hidden WHEN it holds.","enum":["eq","ne","in","nIn","empty","notEmpty","truthy","falsy"],"type":"string"},"value":{"description":"Right-hand side of the comparison. REQUIRED for eq/ne (scalar) and in/nIn (array). IGNORED by empty/notEmpty/truthy/falsy."}},"required":["field"],"type":"object"},{"anyOf":[{"additionalProperties":false,"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}]},{"items":{"anyOf":[{"properties":{"field":{"description":"Model field path to test, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"},"op":{"default":"eq","description":"Operator: eq/ne = equal/not-equal (default eq; number↔string tolerated, e.g. 1 matches '1'); in/nIn = in/not-in the given array; empty/notEmpty = ''/null/undefined/[]; truthy/falsy = JS truthiness. The field is hidden WHEN it holds.","enum":["eq","ne","in","nIn","empty","notEmpty","truthy","falsy"],"type":"string"},"value":{"description":"Right-hand side of the comparison. REQUIRED for eq/ne (scalar) and in/nIn (array). IGNORED by empty/notEmpty/truthy/falsy."}},"required":["field"],"type":"object"},{"anyOf":[{"additionalProperties":false,"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}]}]},"minItems":1,"type":"array"}],"description":"Hidden when the condition HOLDS — PLAIN JSON DATA, never a JS function string (functions cannot be inlined into a schema-mode pageSchema). `{ field: 'payType', op: 'eq', value: 'cash' }` = hidden while payType is cash; an ARRAY of conditions is AND. TWO forms, never mixed within one node: (1) legacy `{ field, op, value }` with op ∈ eq|ne|in|nIn|empty|notEmpty|truthy|falsy (default eq) — preferred for simple comparisons; (2) a JSONLogic-shaped expression when a plain condition can't express it (OR, ordering, nesting): `{ or: [ { '==': [{ var: 'status' }, 'pending'] }, { '>': [{ var: 'amount' }, 100] } ] }`; expression ops (closed set): var == != > >= < <= in nin empty notEmpty truthy falsy and or not if. A form-(2) op inside a form-(1) node is INVALID (runtime warns and treats the field as visible). Applies to the query/filter and add/edit dialog forms (its `inQuery`/`inForm` placement) — NOT to the table column (`inTable`). Evaluated live by the three renderers."},"label":{"description":"Human-readable column/form label, e.g. \"用户名\"","minLength":1,"type":"string"},"labelKey":{"description":"i18n key for this field's label (instead of `label`; derived as `field.<prop>` when omitted). Only takes effect once the HOST assembles the plugin with a `t` option (else falls back to `label`).","type":"string"},"minWidth":{"type":["number","string"]},"permissionValue":{"description":"Permission CODE gating this field (RBAC, checked by the host's global permission(code)) — NOT a data-driven condition: use `isHidden` for show/hide by another field's value, `reactions` for options/required/disabled linkage.","type":"string"},"prop":{"description":"Field key in the data model (camelCase), e.g. \"userName\"","minLength":1,"type":"string"},"querySpan":{"description":"Grid width of this field in the query form (1-24; 2 columns = 12 each). Column count is set PER FIELD — `formLayout` has no span key.","maximum":24,"minimum":1,"type":"integer"},"reactions":{"description":"Field-level linkage / computed rules (AI-07) — PLAIN JSON, never JS callbacks. Use when THIS field's options/required/disabled/value depend on ANOTHER field. Each rule `{ dependencies?, when?, fulfill }`: `dependencies` = model paths that re-trigger it (REQUIRED when `fulfill.value` is set); `when` gates the rule; `fulfill` supplies `dataOptions` (literal array), `required`/`disabled` (boolean expressions) and/or `value` (this field's new value, written back). `when`/`required`/`disabled`/`value` are JSONLogic EXPRESSION NODES only (e.g. `{ '==': [{ var: 'country' }, 'us'] }`) — never the `{ field, op, value }` legacy form, never a bare boolean. Example: `city` options follow `province` → one rule per province with `when: { '==': [{ var: 'province' }, 'zj'] }` and `fulfill.dataOptions: [{label:'杭州',value:'hz'}]`. Applies to the query/add/edit forms — NOT the table column. HARD RULE: branching on a dropdown LABEL ('跨境结算') requires that field's `dataOptions` and comparing the VALUE ('cross') — rows carry codes, not labels; `validate_config` warns (non-blocking).","items":{"properties":{"dependencies":{"description":"Model paths that trigger re-evaluation of this rule. REQUIRED when `fulfill.value` is present.","items":{"minLength":1,"type":"string"},"type":"array"},"fulfill":{"properties":{"dataOptions":{"description":"Literal option array for this field when the rule is active (NOT an expression — the DSL forbids object literals, so branch by declaring one rule per case with its own `when`).","items":{"$ref":"#/definitions/__schema0"},"type":"array"},"disabled":{"anyOf":[{"additionalProperties":false,"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}],"description":"Expression node evaluating to a boolean: disable this field."},"required":{"anyOf":[{"additionalProperties":false,"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}],"description":"Expression node evaluating to a boolean: make this field required."},"value":{"anyOf":[{"additionalProperties":false,"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}],"description":"Expression node evaluating to this field's new value, written back to the model (requires a non-empty `dependencies`)."}},"type":"object"},"when":{"anyOf":[{"additionalProperties":false,"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}],"description":"Optional gate: the rule applies only while it evaluates truthy. A JSONLogic EXPRESSION NODE (e.g. { \"==\": [{ var: \"country\" }, \"us\"] }) — never the { field, op, value } legacy form (that one belongs to isHidden), never a bare boolean. Plain JSON, never a JS function string."}},"required":["fulfill"],"type":"object"},"type":"array"},"render":{"description":"Extension point: a render-function source string for a custom TABLE CELL, e.g. \"(_, { row }) => h(ElTag, { type: row.status === 1 ? 'success' : 'danger' }, () => row.statusLabel)\" (wired to a scoped slot). A FORM-control render cannot be inlined (form items are serialized as JSON data), so it is preserved as a marked TODO(es-plus) marker in the SFC — NOT silently delivered; prefer the declarative rules/attrs/dataOptions/reactions for FORM behaviour.","type":"string"},"required":{"type":"boolean"},"rules":{"description":"Validation rules for this field. Use `pattern`/`min`/`max`/`type` for format constraints and `trigger` for when validation runs; `message` is REQUIRED. CONFIG-side (artifact: `formItemOptions.rules`). A rule carrying `type` is dispatched ONLY to that type validator (async-validator `getValidationMethod`) — a `pattern` on the SAME rule is silently ignored, so when the user states BOTH a regex and a type, emit them as TWO separate rules. For a plain text length cap (e.g. '最多 20 字') prefer `attrs.maxlength`; a `min`/`max` rule validates values with a message but does not block typing. Emit these rather than dropping a format/range requirement the user stated.","items":{"properties":{"max":{"description":"Maximum length for strings / maximum value for numbers.","type":"number"},"message":{"description":"Message shown when the rule fails — REQUIRED, write it in the user's language.","type":"string"},"min":{"description":"Minimum length for strings / minimum value for numbers.","type":"number"},"pattern":{"description":"RegExp SOURCE STRING the value must match (e.g. \"^1\\d{10}$\"), not a RegExp object.","type":"string"},"required":{"description":"Enforce a value with this rule (same effect as field-level `required`; prefer the field-level key for unconditional requirements).","type":"boolean"},"trigger":{"description":"'blur' validates when the field loses focus; 'change' validates while the value changes.","enum":["blur","change"],"type":"string"},"type":{"description":"Value type validated by this rule.","enum":["string","number","email","url","integer"],"type":"string"}},"required":["message"],"type":"object"},"type":"array"},"width":{"type":["number","string"]}},"required":["prop","label"],"type":"object"},"type":"array"},"formLayout":{"properties":{"labelWidth":{"type":["string","number"]},"layout":{"description":"Group containers for this dialog's form (P1-3). Fields reference groups via their `group` key. Omit for a flat grid form.","properties":{"defaultLabel":{"description":"Title of the fallback bucket under `ungrouped:'default'` (built-in default: 其他 / Other).","type":"string"},"groups":{"description":"Declared groups in display order. Fields whose `group` is not listed are appended in first-appearance order; empty groups are dropped.","items":{"properties":{"description":{"description":"Step subtitle. Consumed by `type:'steps'` only; ignored by tabs/collapse.","type":"string"},"key":{"description":"Group key that fields reference via their `group` value.","minLength":1,"type":"string"},"label":{"description":"Group title shown in the container header (tab label / step title / panel header).","type":"string"},"labelKey":{"description":"i18n key for the group title (takes precedence over `label` when the host provides a global t()).","type":"string"}},"required":["key"],"type":"object"},"type":"array"},"type":{"description":"Container type: 'tabs' = tab panes, 'steps' = one group at a time with built-in prev/next, 'collapse' = panels (all expanded by default).","enum":["tabs","steps","collapse"],"type":"string"},"ungrouped":{"description":"'default' (or omitted) = fields without a `group` go into a trailing bucket titled `defaultLabel`; 'first' = merge them into the first group; 'hidden' = do not render them.","enum":["default","first","hidden"],"type":"string"}},"required":["type"],"type":"object"},"minFoldRows":{"description":"Form collapses when rows exceed this number","maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"type":"object"},"fullscreen":{"description":"Open the dialog fullscreen.","type":"boolean"},"hasCustomRender":{"description":"Declares that the dialog body is hand-implemented in the wrapper SFC (there is no JSON transport for a render function). Setting it relaxes the \"a mutating dialog needs formItems\" check and makes the generator emit a TODO(es-plus) marker; it is NOT forwarded to the dialog component.","type":"boolean"},"hiddenFullBtn":{"description":"Hide the built-in fullscreen toggle button.","type":"boolean"},"isDraggable":{"description":"Make the dialog draggable by its header.","type":"boolean"},"isHiddenFooter":{"description":"Hide the whole footer (overrides configBtn).","type":"boolean"},"maxHeight":{"description":"Max height of the dialog body (scrolls beyond it).","type":["string","number"]},"modal":{"description":"Render the mask/overlay; default true.","type":"boolean"},"showClose":{"description":"Show the built-in close (X) entry; default true. false hides the self-drawn X and the native one together (the dialog then only closes via footer buttons).","type":"boolean"},"title":{"type":"string"},"width":{"type":["string","number"]}},"type":"object"},"description":"Per-dialog configs keyed by dialog ID (add/edit/view/…). Declaring `dialogs` gives a dialog its own base keys (appearance/close behaviour, `configBtn`, `formItems`) and does NOT suppress button derivation — the toolbar and row-action buttons are still derived from `actions` unless `toolbarBtns`/`operationColumn` are declared explicitly (those two, never `dialogs`, hand the button surface over).","propertyNames":{"type":"string"},"type":"object"},"expandConfig":{"description":"Row-expand content (AI-09 子项②). When set, the table gets ONE row-expander whose expanded content is a read-only field list. If `columns` already declares a `{type:'expand'}` column it is used as-is (position preserved) and the content attaches to it; otherwise the generator prepends a leading expand column. Distinct from `tableOptions.expandConfig` (the vxe `{accordion}` switch).","properties":{"fields":{"description":"Read-only fields rendered inside the expanded row, one per line as `label: value`.","items":{"properties":{"label":{"description":"Label text for this field.","type":"string"},"labelKey":{"description":"i18n label key (used with a global t() function; takes precedence over `label`).","type":"string"},"prop":{"description":"Row field to display (value = `row[prop]`).","minLength":1,"type":"string"}},"required":["prop"],"type":"object"},"minItems":1,"type":"array"},"title":{"description":"Optional title shown at the top of the expanded row.","type":"string"}},"required":["fields"],"type":"object"},"fields":{"description":"Field definitions","items":{"properties":{"align":{"enum":["left","center","right"],"type":"string"},"apiParams":{"description":"Remote options source for Select/Cascader/TreeSelect — use instead of dataOptions when options come from an API.","properties":{"labelField":{"type":"string"},"method":{"enum":["GET","POST"],"type":"string"},"url":{"type":"string"},"valueField":{"type":"string"}},"required":["url"],"type":"object"},"attrs":{"additionalProperties":{},"description":"Extra component props, e.g. { type: 'textarea', maxlength: 200 }","propertyNames":{"type":"string"},"type":"object"},"autoFilters":{"description":"Derive `filters` from this field's `dataOptions` (explicit `filters` wins).","type":"boolean"},"children":{"description":"Nested-object FORM grouping (ONE level only): this field becomes a full-width section heading; its children render under it. Child `prop` is relative to this field (`city` → `address.city`) unless absolute. The container binds NO data (never a table column) — omit `formtype`; children cannot declare `children` (array sub-forms are OUT of the declarative contract — use `render` or host-owned UI).","items":{"properties":{"align":{"enum":["left","center","right"],"type":"string"},"apiParams":{"description":"Remote options source for Select/Cascader/TreeSelect — use instead of dataOptions when options come from an API.","properties":{"labelField":{"type":"string"},"method":{"enum":["GET","POST"],"type":"string"},"url":{"type":"string"},"valueField":{"type":"string"}},"required":["url"],"type":"object"},"attrs":{"additionalProperties":{},"description":"Extra component props, e.g. { type: 'textarea', maxlength: 200 }","propertyNames":{"type":"string"},"type":"object"},"autoFilters":{"description":"Derive `filters` from this field's `dataOptions` (explicit `filters` wins).","type":"boolean"},"dataOptions":{"description":"Static options for Select/Radio/Checkbox/Cascader/TreeSelect/Autocomplete. Use this for known fixed enums.","items":{"$ref":"#/definitions/__schema0"},"type":"array"},"ellipsis":{"type":"boolean"},"filterMode":{"description":"Filter match: 'equals' (default) or 'includes' (cell text contains).","enum":["equals","includes"],"type":"string"},"filterMultiple":{"description":"Multi-select filter (default true).","type":"boolean"},"filters":{"description":"Filter options (plain JSON, never a function). On a FIELD they project onto the derived column. Local filtering on the default/vxe engines only — vue3 engine:'virtual' has no filter UI.","items":{"properties":{"text":{"description":"Option text shown in the filter dropdown.","type":"string"},"value":{"description":"Row value matched by this option (loose primitive compare: 1 matches \"1\").","type":["string","number","boolean"]}},"required":["text","value"],"type":"object"},"type":"array"},"fixed":{"anyOf":[{"type":"boolean"},{"const":"left","type":"string"},{"const":"right","type":"string"}]},"formSpan":{"description":"Grid width of this field in the add/edit form (1-24; 2 columns = 12 each). Column count is set PER FIELD — `formLayout` has no span key.","maximum":24,"minimum":1,"type":"integer"},"formatter":{"description":"Extension point: JS arrow-function source for read-only cell formatting, e.g. \"(row) => row.amount.toFixed(2)\".","type":"string"},"formtype":{"default":"Input","description":"Pick by MEANING, not keywords: status/type/enum/gender → Select; date/time → DatePicker/TimePicker; image/avatar/attachment/file → Upload; long text/remark/description → Input (attrs.type:'textarea'); boolean on/off → Switch; single-choice small set → Radio; multi-choice → Checkbox; region/category tree → Cascader; department/org/permission tree with ANY level selectable → TreeSelect; type-to-filter over a known option set → Autocomplete; score → Rate; plain text → Input. OMIT only for a nested-object container (a field carrying `children`) — it renders no input.","enum":["Input","InputNumber","Select","DatePicker","TimePicker","Slider","ColorPicker","Transfer","Cascader","TreeSelect","Autocomplete","Radio","Checkbox","Switch","Rate","Upload","datePicker","timePicker"],"type":"string"},"group":{"description":"Form-group key for the FORM face. Fields sharing a key are rendered inside that group's container; declare the containers in `formLayout.layout` (query form) or `dialogs[k].formLayout.layout` (dialog form). Ignored by the table column. Omit to follow the layout's `ungrouped` strategy.","minLength":1,"type":"string"},"inForm":{"default":true,"description":"Show in the add/edit form","type":"boolean"},"inQuery":{"default":true,"description":"Show as a query/filter field above the table","type":"boolean"},"inTable":{"default":true,"description":"Show as a table column","type":"boolean"},"isHidden":{"anyOf":[{"properties":{"field":{"description":"Model field path to test, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"},"op":{"default":"eq","description":"Operator: eq/ne = equal/not-equal (default eq; number↔string tolerated, e.g. 1 matches '1'); in/nIn = in/not-in the given array; empty/notEmpty = ''/null/undefined/[]; truthy/falsy = JS truthiness. The field is hidden WHEN it holds.","enum":["eq","ne","in","nIn","empty","notEmpty","truthy","falsy"],"type":"string"},"value":{"description":"Right-hand side of the comparison. REQUIRED for eq/ne (scalar) and in/nIn (array). IGNORED by empty/notEmpty/truthy/falsy."}},"required":["field"],"type":"object"},{"anyOf":[{"additionalProperties":false,"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}]},{"items":{"anyOf":[{"properties":{"field":{"description":"Model field path to test, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"},"op":{"default":"eq","description":"Operator: eq/ne = equal/not-equal (default eq; number↔string tolerated, e.g. 1 matches '1'); in/nIn = in/not-in the given array; empty/notEmpty = ''/null/undefined/[]; truthy/falsy = JS truthiness. The field is hidden WHEN it holds.","enum":["eq","ne","in","nIn","empty","notEmpty","truthy","falsy"],"type":"string"},"value":{"description":"Right-hand side of the comparison. REQUIRED for eq/ne (scalar) and in/nIn (array). IGNORED by empty/notEmpty/truthy/falsy."}},"required":["field"],"type":"object"},{"anyOf":[{"additionalProperties":false,"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}]}]},"minItems":1,"type":"array"}],"description":"Hidden when the condition HOLDS — PLAIN JSON DATA, never a JS function string (functions cannot be inlined into a schema-mode pageSchema). `{ field: 'payType', op: 'eq', value: 'cash' }` = hidden while payType is cash; an ARRAY of conditions is AND. TWO forms, never mixed within one node: (1) legacy `{ field, op, value }` with op ∈ eq|ne|in|nIn|empty|notEmpty|truthy|falsy (default eq) — preferred for simple comparisons; (2) a JSONLogic-shaped expression when a plain condition can't express it (OR, ordering, nesting): `{ or: [ { '==': [{ var: 'status' }, 'pending'] }, { '>': [{ var: 'amount' }, 100] } ] }`; expression ops (closed set): var == != > >= < <= in nin empty notEmpty truthy falsy and or not if. A form-(2) op inside a form-(1) node is INVALID (runtime warns and treats the field as visible). Applies to the query/filter and add/edit dialog forms (its `inQuery`/`inForm` placement) — NOT to the table column (`inTable`). Evaluated live by the three renderers."},"label":{"description":"Human-readable column/form label, e.g. \"用户名\"","minLength":1,"type":"string"},"labelKey":{"description":"i18n key for this field's label (instead of `label`; derived as `field.<prop>` when omitted). Only takes effect once the HOST assembles the plugin with a `t` option (else falls back to `label`).","type":"string"},"minWidth":{"type":["number","string"]},"permissionValue":{"description":"Permission CODE gating this field (RBAC, checked by the host's global permission(code)) — NOT a data-driven condition: use `isHidden` for show/hide by another field's value, `reactions` for options/required/disabled linkage.","type":"string"},"prop":{"description":"Field key in the data model (camelCase), e.g. \"userName\"","minLength":1,"type":"string"},"querySpan":{"description":"Grid width of this field in the query form (1-24; 2 columns = 12 each). Column count is set PER FIELD — `formLayout` has no span key.","maximum":24,"minimum":1,"type":"integer"},"reactions":{"description":"Field-level linkage / computed rules (AI-07) — PLAIN JSON, never JS callbacks. Use when THIS field's options/required/disabled/value depend on ANOTHER field. Each rule `{ dependencies?, when?, fulfill }`: `dependencies` = model paths that re-trigger it (REQUIRED when `fulfill.value` is set); `when` gates the rule; `fulfill` supplies `dataOptions` (literal array), `required`/`disabled` (boolean expressions) and/or `value` (this field's new value, written back). `when`/`required`/`disabled`/`value` are JSONLogic EXPRESSION NODES only (e.g. `{ '==': [{ var: 'country' }, 'us'] }`) — never the `{ field, op, value }` legacy form, never a bare boolean. Example: `city` options follow `province` → one rule per province with `when: { '==': [{ var: 'province' }, 'zj'] }` and `fulfill.dataOptions: [{label:'杭州',value:'hz'}]`. Applies to the query/add/edit forms — NOT the table column. HARD RULE: branching on a dropdown LABEL ('跨境结算') requires that field's `dataOptions` and comparing the VALUE ('cross') — rows carry codes, not labels; `validate_config` warns (non-blocking).","items":{"properties":{"dependencies":{"description":"Model paths that trigger re-evaluation of this rule. REQUIRED when `fulfill.value` is present.","items":{"minLength":1,"type":"string"},"type":"array"},"fulfill":{"properties":{"dataOptions":{"description":"Literal option array for this field when the rule is active (NOT an expression — the DSL forbids object literals, so branch by declaring one rule per case with its own `when`).","items":{"$ref":"#/definitions/__schema0"},"type":"array"},"disabled":{"anyOf":[{"additionalProperties":false,"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}],"description":"Expression node evaluating to a boolean: disable this field."},"required":{"anyOf":[{"additionalProperties":false,"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}],"description":"Expression node evaluating to a boolean: make this field required."},"value":{"anyOf":[{"additionalProperties":false,"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}],"description":"Expression node evaluating to this field's new value, written back to the model (requires a non-empty `dependencies`)."}},"type":"object"},"when":{"anyOf":[{"additionalProperties":false,"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}],"description":"Optional gate: the rule applies only while it evaluates truthy. A JSONLogic EXPRESSION NODE (e.g. { \"==\": [{ var: \"country\" }, \"us\"] }) — never the { field, op, value } legacy form (that one belongs to isHidden), never a bare boolean. Plain JSON, never a JS function string."}},"required":["fulfill"],"type":"object"},"type":"array"},"render":{"description":"Extension point: a render-function source string for a custom TABLE CELL, e.g. \"(_, { row }) => h(ElTag, { type: row.status === 1 ? 'success' : 'danger' }, () => row.statusLabel)\" (wired to a scoped slot). A FORM-control render cannot be inlined (form items are serialized as JSON data), so it is preserved as a marked TODO(es-plus) marker in the SFC — NOT silently delivered; prefer the declarative rules/attrs/dataOptions/reactions for FORM behaviour.","type":"string"},"required":{"type":"boolean"},"rules":{"description":"Validation rules for this field. Use `pattern`/`min`/`max`/`type` for format constraints and `trigger` for when validation runs; `message` is REQUIRED. CONFIG-side (artifact: `formItemOptions.rules`). A rule carrying `type` is dispatched ONLY to that type validator (async-validator `getValidationMethod`) — a `pattern` on the SAME rule is silently ignored, so when the user states BOTH a regex and a type, emit them as TWO separate rules. For a plain text length cap (e.g. '最多 20 字') prefer `attrs.maxlength`; a `min`/`max` rule validates values with a message but does not block typing. Emit these rather than dropping a format/range requirement the user stated.","items":{"properties":{"max":{"description":"Maximum length for strings / maximum value for numbers.","type":"number"},"message":{"description":"Message shown when the rule fails — REQUIRED, write it in the user's language.","type":"string"},"min":{"description":"Minimum length for strings / minimum value for numbers.","type":"number"},"pattern":{"description":"RegExp SOURCE STRING the value must match (e.g. \"^1\\d{10}$\"), not a RegExp object.","type":"string"},"required":{"description":"Enforce a value with this rule (same effect as field-level `required`; prefer the field-level key for unconditional requirements).","type":"boolean"},"trigger":{"description":"'blur' validates when the field loses focus; 'change' validates while the value changes.","enum":["blur","change"],"type":"string"},"type":{"description":"Value type validated by this rule.","enum":["string","number","email","url","integer"],"type":"string"}},"required":["message"],"type":"object"},"type":"array"},"width":{"type":["number","string"]}},"required":["prop","label"],"type":"object"},"minItems":1,"type":"array"},"dataOptions":{"description":"Static options for Select/Radio/Checkbox/Cascader/TreeSelect/Autocomplete. Use this for known fixed enums.","items":{"$ref":"#/definitions/__schema0"},"type":"array"},"ellipsis":{"type":"boolean"},"filterMode":{"description":"Filter match: 'equals' (default) or 'includes' (cell text contains).","enum":["equals","includes"],"type":"string"},"filterMultiple":{"description":"Multi-select filter (default true).","type":"boolean"},"filters":{"description":"Filter options (plain JSON, never a function). On a FIELD they project onto the derived column. Local filtering on the default/vxe engines only — vue3 engine:'virtual' has no filter UI.","items":{"properties":{"text":{"description":"Option text shown in the filter dropdown.","type":"string"},"value":{"description":"Row value matched by this option (loose primitive compare: 1 matches \"1\").","type":["string","number","boolean"]}},"required":["text","value"],"type":"object"},"type":"array"},"fixed":{"anyOf":[{"type":"boolean"},{"const":"left","type":"string"},{"const":"right","type":"string"}]},"formSpan":{"description":"Grid width of this field in the add/edit form (1-24; 2 columns = 12 each). Column count is set PER FIELD — `formLayout` has no span key.","maximum":24,"minimum":1,"type":"integer"},"formatter":{"description":"Extension point: JS arrow-function source for read-only cell formatting, e.g. \"(row) => row.amount.toFixed(2)\".","type":"string"},"formtype":{"default":"Input","description":"Pick by MEANING, not keywords: status/type/enum/gender → Select; date/time → DatePicker/TimePicker; image/avatar/attachment/file → Upload; long text/remark/description → Input (attrs.type:'textarea'); boolean on/off → Switch; single-choice small set → Radio; multi-choice → Checkbox; region/category tree → Cascader; department/org/permission tree with ANY level selectable → TreeSelect; type-to-filter over a known option set → Autocomplete; score → Rate; plain text → Input. OMIT only for a nested-object container (a field carrying `children`) — it renders no input.","enum":["Input","InputNumber","Select","DatePicker","TimePicker","Slider","ColorPicker","Transfer","Cascader","TreeSelect","Autocomplete","Radio","Checkbox","Switch","Rate","Upload","datePicker","timePicker"],"type":"string"},"group":{"description":"Form-group key for the FORM face. Fields sharing a key are rendered inside that group's container; declare the containers in `formLayout.layout` (query form) or `dialogs[k].formLayout.layout` (dialog form). Ignored by the table column. Omit to follow the layout's `ungrouped` strategy.","minLength":1,"type":"string"},"inForm":{"default":true,"description":"Show in the add/edit form","type":"boolean"},"inQuery":{"default":true,"description":"Show as a query/filter field above the table","type":"boolean"},"inTable":{"default":true,"description":"Show as a table column","type":"boolean"},"isHidden":{"anyOf":[{"properties":{"field":{"description":"Model field path to test, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"},"op":{"default":"eq","description":"Operator: eq/ne = equal/not-equal (default eq; number↔string tolerated, e.g. 1 matches '1'); in/nIn = in/not-in the given array; empty/notEmpty = ''/null/undefined/[]; truthy/falsy = JS truthiness. The field is hidden WHEN it holds.","enum":["eq","ne","in","nIn","empty","notEmpty","truthy","falsy"],"type":"string"},"value":{"description":"Right-hand side of the comparison. REQUIRED for eq/ne (scalar) and in/nIn (array). IGNORED by empty/notEmpty/truthy/falsy."}},"required":["field"],"type":"object"},{"anyOf":[{"additionalProperties":false,"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}]},{"items":{"anyOf":[{"properties":{"field":{"description":"Model field path to test, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"},"op":{"default":"eq","description":"Operator: eq/ne = equal/not-equal (default eq; number↔string tolerated, e.g. 1 matches '1'); in/nIn = in/not-in the given array; empty/notEmpty = ''/null/undefined/[]; truthy/falsy = JS truthiness. The field is hidden WHEN it holds.","enum":["eq","ne","in","nIn","empty","notEmpty","truthy","falsy"],"type":"string"},"value":{"description":"Right-hand side of the comparison. REQUIRED for eq/ne (scalar) and in/nIn (array). IGNORED by empty/notEmpty/truthy/falsy."}},"required":["field"],"type":"object"},{"anyOf":[{"additionalProperties":false,"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}]}]},"minItems":1,"type":"array"}],"description":"Hidden when the condition HOLDS — PLAIN JSON DATA, never a JS function string (functions cannot be inlined into a schema-mode pageSchema). `{ field: 'payType', op: 'eq', value: 'cash' }` = hidden while payType is cash; an ARRAY of conditions is AND. TWO forms, never mixed within one node: (1) legacy `{ field, op, value }` with op ∈ eq|ne|in|nIn|empty|notEmpty|truthy|falsy (default eq) — preferred for simple comparisons; (2) a JSONLogic-shaped expression when a plain condition can't express it (OR, ordering, nesting): `{ or: [ { '==': [{ var: 'status' }, 'pending'] }, { '>': [{ var: 'amount' }, 100] } ] }`; expression ops (closed set): var == != > >= < <= in nin empty notEmpty truthy falsy and or not if. A form-(2) op inside a form-(1) node is INVALID (runtime warns and treats the field as visible). Applies to the query/filter and add/edit dialog forms (its `inQuery`/`inForm` placement) — NOT to the table column (`inTable`). Evaluated live by the three renderers."},"label":{"description":"Human-readable column/form label, e.g. \"用户名\"","minLength":1,"type":"string"},"labelKey":{"description":"i18n key for this field's label (instead of `label`; derived as `field.<prop>` when omitted). Only takes effect once the HOST assembles the plugin with a `t` option (else falls back to `label`).","type":"string"},"minWidth":{"type":["number","string"]},"permissionValue":{"description":"Permission CODE gating this field (RBAC, checked by the host's global permission(code)) — NOT a data-driven condition: use `isHidden` for show/hide by another field's value, `reactions` for options/required/disabled linkage.","type":"string"},"prop":{"description":"Field key in the data model (camelCase), e.g. \"userName\"","minLength":1,"type":"string"},"querySpan":{"description":"Grid width of this field in the query form (1-24; 2 columns = 12 each). Column count is set PER FIELD — `formLayout` has no span key.","maximum":24,"minimum":1,"type":"integer"},"reactions":{"description":"Field-level linkage / computed rules (AI-07) — PLAIN JSON, never JS callbacks. Use when THIS field's options/required/disabled/value depend on ANOTHER field. Each rule `{ dependencies?, when?, fulfill }`: `dependencies` = model paths that re-trigger it (REQUIRED when `fulfill.value` is set); `when` gates the rule; `fulfill` supplies `dataOptions` (literal array), `required`/`disabled` (boolean expressions) and/or `value` (this field's new value, written back). `when`/`required`/`disabled`/`value` are JSONLogic EXPRESSION NODES only (e.g. `{ '==': [{ var: 'country' }, 'us'] }`) — never the `{ field, op, value }` legacy form, never a bare boolean. Example: `city` options follow `province` → one rule per province with `when: { '==': [{ var: 'province' }, 'zj'] }` and `fulfill.dataOptions: [{label:'杭州',value:'hz'}]`. Applies to the query/add/edit forms — NOT the table column. HARD RULE: branching on a dropdown LABEL ('跨境结算') requires that field's `dataOptions` and comparing the VALUE ('cross') — rows carry codes, not labels; `validate_config` warns (non-blocking).","items":{"properties":{"dependencies":{"description":"Model paths that trigger re-evaluation of this rule. REQUIRED when `fulfill.value` is present.","items":{"minLength":1,"type":"string"},"type":"array"},"fulfill":{"properties":{"dataOptions":{"description":"Literal option array for this field when the rule is active (NOT an expression — the DSL forbids object literals, so branch by declaring one rule per case with its own `when`).","items":{"$ref":"#/definitions/__schema0"},"type":"array"},"disabled":{"anyOf":[{"additionalProperties":false,"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}],"description":"Expression node evaluating to a boolean: disable this field."},"required":{"anyOf":[{"additionalProperties":false,"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}],"description":"Expression node evaluating to a boolean: make this field required."},"value":{"anyOf":[{"additionalProperties":false,"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}],"description":"Expression node evaluating to this field's new value, written back to the model (requires a non-empty `dependencies`)."}},"type":"object"},"when":{"anyOf":[{"additionalProperties":false,"properties":{"var":{"description":"Model field path to read, e.g. \"status\" or \"user.type\"","minLength":1,"type":"string"}},"required":["var"],"type":"object"},{"additionalProperties":{"items":{"$ref":"#/definitions/__schema1"},"type":"array"},"propertyNames":{"type":"string"},"type":"object"}],"description":"Optional gate: the rule applies only while it evaluates truthy. A JSONLogic EXPRESSION NODE (e.g. { \"==\": [{ var: \"country\" }, \"us\"] }) — never the { field, op, value } legacy form (that one belongs to isHidden), never a bare boolean. Plain JSON, never a JS function string."}},"required":["fulfill"],"type":"object"},"type":"array"},"render":{"description":"Extension point: a render-function source string for a custom TABLE CELL, e.g. \"(_, { row }) => h(ElTag, { type: row.status === 1 ? 'success' : 'danger' }, () => row.statusLabel)\" (wired to a scoped slot). A FORM-control render cannot be inlined (form items are serialized as JSON data), so it is preserved as a marked TODO(es-plus) marker in the SFC — NOT silently delivered; prefer the declarative rules/attrs/dataOptions/reactions for FORM behaviour.","type":"string"},"required":{"type":"boolean"},"rules":{"description":"Validation rules for this field. Use `pattern`/`min`/`max`/`type` for format constraints and `trigger` for when validation runs; `message` is REQUIRED. CONFIG-side (artifact: `formItemOptions.rules`). A rule carrying `type` is dispatched ONLY to that type validator (async-validator `getValidationMethod`) — a `pattern` on the SAME rule is silently ignored, so when the user states BOTH a regex and a type, emit them as TWO separate rules. For a plain text length cap (e.g. '最多 20 字') prefer `attrs.maxlength`; a `min`/`max` rule validates values with a message but does not block typing. Emit these rather than dropping a format/range requirement the user stated.","items":{"properties":{"max":{"description":"Maximum length for strings / maximum value for numbers.","type":"number"},"message":{"description":"Message shown when the rule fails — REQUIRED, write it in the user's language.","type":"string"},"min":{"description":"Minimum length for strings / minimum value for numbers.","type":"number"},"pattern":{"description":"RegExp SOURCE STRING the value must match (e.g. \"^1\\d{10}$\"), not a RegExp object.","type":"string"},"required":{"description":"Enforce a value with this rule (same effect as field-level `required`; prefer the field-level key for unconditional requirements).","type":"boolean"},"trigger":{"description":"'blur' validates when the field loses focus; 'change' validates while the value changes.","enum":["blur","change"],"type":"string"},"type":{"description":"Value type validated by this rule.","enum":["string","number","email","url","integer"],"type":"string"}},"required":["message"],"type":"object"},"type":"array"},"width":{"type":["number","string"]}},"required":["prop","label"],"type":"object"},"minItems":1,"type":"array"},"formLayout":{"description":"Query form layout config","properties":{"labelWidth":{"type":["string","number"]},"layout":{"description":"Group containers for the QUERY form (P1-3). Fields reference groups via their `group` key. Omit for a flat query grid.","properties":{"defaultLabel":{"description":"Title of the fallback bucket under `ungrouped:'default'` (built-in default: 其他 / Other).","type":"string"},"groups":{"description":"Declared groups in display order. Fields whose `group` is not listed are appended in first-appearance order; empty groups are dropped.","items":{"properties":{"description":{"description":"Step subtitle. Consumed by `type:'steps'` only; ignored by tabs/collapse.","type":"string"},"key":{"description":"Group key that fields reference via their `group` value.","minLength":1,"type":"string"},"label":{"description":"Group title shown in the container header (tab label / step title / panel header).","type":"string"},"labelKey":{"description":"i18n key for the group title (takes precedence over `label` when the host provides a global t()).","type":"string"}},"required":["key"],"type":"object"},"type":"array"},"type":{"description":"Container type: 'tabs' = tab panes, 'steps' = one group at a time with built-in prev/next, 'collapse' = panels (all expanded by default).","enum":["tabs","steps","collapse"],"type":"string"},"ungrouped":{"description":"'default' (or omitted) = fields without a `group` go into a trailing bucket titled `defaultLabel`; 'first' = merge them into the first group; 'hidden' = do not render them.","enum":["default","first","hidden"],"type":"string"}},"required":["type"],"type":"object"},"minFoldRows":{"description":"Query form collapses when rows exceed this number","maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"type":"object"},"i18n":{"default":false,"description":"Use labelKey for i18n","type":"boolean"},"mergeConfig":{"description":"Declarative row-merge (AI-23). `rowsBy: ['dept','team']` merges those columns across consecutive rows with equal values (the standard 'grouped rows' table). Cross-renderer narrow subset: el-table (span-method), a-table (per-column customCell) and vxe (mergeMethod) all honor it. The FUNCTIONAL escape hatch `tableOptions.spanMethod` remains Tier-3 and is NOT cross-renderer (a-table has no span-method channel) — if both are set, the explicit `spanMethod` wins.","properties":{"rowsBy":{"description":"Column props to merge. Each is grouped by ADJACENT-EQUAL values: the first row of a run keeps the cell with rowspan = run length, the rest are merged away.","items":{"minLength":1,"type":"string"},"minItems":1,"type":"array"}},"required":["rowsBy"],"type":"object"},"mode":{"default":"schema","description":"Output mode","enum":["schema","sfc"],"type":"string"},"name":{"description":"Page/component name in PascalCase, e.g. \"UserManage\"","minLength":1,"type":"string"},"operationColumn":{"anyOf":[{"const":false,"type":"boolean"},{"properties":{"btns":{"items":{"properties":{"confirm":{"type":["string","boolean"]},"dialogKey":{"type":"string"},"icon":{"type":"string"},"key":{"type":"string"},"name":{"minLength":1,"type":"string"},"permissionValue":{"type":"string"},"type":{"type":"string"}},"required":["name"],"type":"object"},"minItems":1,"type":"array"},"fixed":{"anyOf":[{"type":"boolean"},{"const":"left","type":"string"},{"const":"right","type":"string"}]},"label":{"type":"string"},"width":{"type":["number","string"]}},"required":["btns"],"type":"object"}],"description":"Operation column config (false = hidden)"},"pagination":{"properties":{"pageSize":{"default":10,"description":"Rows per page on first render (default 10).","maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"pageSizes":{"description":"Selectable page-size options shown in the pager, e.g. [10, 20, 50].","items":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"type":"array"}},"type":"object"},"permissions":{"additionalProperties":{"type":"string"},"description":"Permission codes for action buttons","propertyNames":{"type":"string"},"type":"object"},"tableBtns":{"description":"Table toolbar buttons rendered ABOVE EsTable — the only button surface that honours `position: \"left\" | \"right\"` (legacy alias code:1=left/2=right, auto-normalized). Default to this one for toolbar buttons the NL positions.","items":{"properties":{"action":{"description":"Alias of `actionType` (legacy example shape: label/action)","type":"string"},"actionType":{"type":"string"},"code":{"anyOf":[{"const":1,"type":"number"},{"const":2,"type":"number"}],"description":"1=left, 2=right (legacy alias of position; normalized automatically)"},"confirm":{"type":["string","boolean"]},"dialogKey":{"type":"string"},"icon":{"type":"string"},"key":{"type":"string"},"label":{"description":"Alias of `name` (legacy example shape: label/action)","type":"string"},"name":{"minLength":1,"type":"string"},"permissionValue":{"type":"string"},"position":{"description":"left | right (recommended positioning field)","enum":["left","right"],"type":"string"},"type":{"type":"string"}},"type":"object"},"type":"array"},"tableOptions":{"properties":{"border":{"default":true,"type":"boolean"},"cachePageSelection":{"description":"Persist the checkbox selection across page changes (needs a stable rowkey). Default true at runtime; set false to reset selection on page change.","type":"boolean"},"columnConfig":{"additionalProperties":{},"description":"vxe column config, e.g. { resizable: true, drag: true, showOverflow: 'tooltip' }. Advanced: only with engine:'vxe'.","propertyNames":{"type":"string"},"type":"object"},"configTableOut":{"description":"Map the LIST API response onto table semantics when the backend does not use the default flat shape. Default mapping is { total: \"records\", tableData: \"rows\", pageSize: \"pageSize\", current: \"pageNo\" }. Each value is the FLAT response key (no deep paths — the component only reads top-level keys). e.g. a backend returning { list: [...], count: N } → { tableData: \"list\", total: \"count\" }. Only the keys you set are remapped; omit a key to keep its default.","properties":{"current":{"type":"string"},"pageSize":{"type":"string"},"tableData":{"type":"string"},"total":{"type":"string"}},"type":"object"},"defaultSort":{"description":"Default sort applied on first render.","properties":{"order":{"enum":["ascending","descending"],"type":"string"},"prop":{"type":"string"}},"required":["prop","order"],"type":"object"},"editConfig":{"description":"Enable vxe inline editing (AI-09 子项④). vxe engine only — MUST be paired with tableOptions.engine:'vxe'. A cell is only editable when its column also declares `editRender`. An edit writes STRAIGHT into the row object of `:data-source` (the table holds the same row references, so the host also gets `update:dataSource`); `keepSource` is auto-enabled only to keep a snapshot for `revertData()`, it is NOT a private copy. To learn WHICH cell changed and what the previous value was, listen to the `cell-edit` event — `{ row, prop, value, oldValue }`, emitted on blur / row switch in cell mode (one per changed cell in row mode), never for an unchanged cell.","properties":{"autoClear":{"type":"boolean"},"enabled":{"type":"boolean"},"mode":{"description":"'cell' = single cell; 'row' = whole row.","enum":["cell","row"],"type":"string"},"showInsertStatus":{"type":"boolean"},"showStatus":{"type":"boolean"},"showUpdateStatus":{"type":"boolean"},"trigger":{"description":"How editing is entered (default 'click').","enum":["click","dblclick","manual"],"type":"string"}},"type":"object"},"emptyText":{"description":"Text shown when there are no rows (default '暂无数据').","type":"string"},"engine":{"description":"Table rendering engine, an alternative to `virtual: true`. 'default' = el-table / a-table / el-table. 'virtual' = vue3 el-table-v2 only; antdv and vue2 have no virtual engine and degrade to a plain table with a warning. 'vxe' = vxe-table, available on ALL THREE targets — vue3 and antdv through their own vxe adapters, and vue2 through @es-plus/vue2's vxe engine. Use 'vxe' for large data on antdv/vue2, where 'virtual' is not available.","enum":["default","virtual","vxe"],"type":"string"},"estimatedRowHeight":{"description":"Estimated row height for dynamic-height virtual scrolling (vue3 / el-table-v2 only)","type":"number"},"expandConfig":{"description":"vxe-only row-expand switch (paired with `expand: true` / an expand column). Distinct from the top-level `expandConfig` (declarative read-only field list honored by all three renderers).","properties":{"accordion":{"description":"Accordion mode: at most one row expanded at a time.","type":"boolean"},"expandAll":{"description":"Expand every row by default.","type":"boolean"},"lazy":{"description":"Lazy-load expand content (vxe only; the loader function itself is a Tier-3 extension point).","type":"boolean"}},"type":"object"},"exportConfig":{"anyOf":[{"type":"boolean"},{"additionalProperties":{},"propertyNames":{"type":"string"},"type":"object"}],"description":"vxe export config: `true` for defaults, or an object with filename / type ('xlsx'|'csv'|'html'|'xml'|'txt') / useStyle / isColgroup. Advanced: only with engine:'vxe'. Non-CSV formats need the vxe export plugin; the `download` callback is a function and is out of the JSON contract."},"footerData":{"description":"Static footer rows, a 2-D array ([row][column]). Advanced: only with engine:'vxe'. The function form `footerMethod` cannot travel in JSON — use `vxeConfig` at runtime.","items":{"items":{},"type":"array"},"type":"array"},"headerCellStyle":{"additionalProperties":{"type":"string"},"propertyNames":{"type":"string"},"type":"object"},"height":{"description":"Container height used ONLY when heightType is 'height' (ignored for 'auto' / 'maxHeight' — use tabHeight there). Takes precedence over nothing: an explicit tabHeight always wins.","type":["number","string"]},"heightType":{"description":"How the container height is applied: 'height' = fixed height (value from `height`, or `tabHeight` if set); 'maxHeight' = capped at `tabHeight` (a `height` value is IGNORED); 'auto' = no container height constraint. Default 'auto'.","enum":["height","auto","maxHeight"],"type":"string"},"highlightCurrentRow":{"default":true,"type":"boolean"},"keepSource":{"description":"Keep a pre-edit snapshot of each row so revertData() / getUpdateRecords() / getInsertRecords() work. Auto-enabled when editConfig is set. Advanced: vxe inline editing only.","type":"boolean"},"keyboardConfig":{"description":"vxe keyboard navigation. Advanced: only consumed with engine:'vxe', typically together with editConfig.","properties":{"enterToTab":{"description":"Enter behaves like Tab.","type":"boolean"},"isArrow":{"description":"Arrow keys move the cell focus.","type":"boolean"},"isDel":{"description":"Delete / Backspace clears the cell.","type":"boolean"},"isEdit":{"description":"Any printable character enters edit mode.","type":"boolean"},"isEnter":{"description":"Enter confirms and moves down.","type":"boolean"},"isTab":{"description":"Tab moves to the next cell.","type":"boolean"}},"type":"object"},"leftText":{"description":"Text shown on the left side of the table toolbar.","type":"string"},"localPagination":{"description":"Paginate already-fetched data client-side instead of requesting each page from the API.","type":"boolean"},"mouseConfig":{"description":"vxe cell-selection mode (`{ selected: true }` enables click-to-select). Advanced: only with engine:'vxe'.","properties":{"selected":{"description":"Click a cell to highlight/select it (arrow keys then move it).","type":"boolean"}},"type":"object"},"multiSelect":{"type":"boolean"},"overscanCount":{"description":"Buffer rows outside the visible area (vue3 / el-table-v2 only; default 2)","maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"printConfig":{"anyOf":[{"type":"boolean"},{"additionalProperties":{},"propertyNames":{"type":"string"},"type":"object"}],"description":"vxe print config: `true` for defaults, or e.g. { columns: [{ field: 'name' }] }. Advanced: only with engine:'vxe'."},"refetchKeepPage":{"description":"Keep the current page when re-fetching (default false). Query/reset still return to page 1.","type":"boolean"},"rowClassName":{"description":"Custom row CSS class name","type":"string"},"rowHeight":{"description":"Row height in px for virtual mode (vue3 / el-table-v2 only; default 50)","type":"number"},"rowkey":{"default":"id","type":"string"},"seqConfig":{"description":"vxe sequence-column config (needs `snIndex: true` or a type:'index' column). Only `startIndex` is JSON-safe — `seqMethod` is a function and stays in the runtime escape hatch. Advanced: only with engine:'vxe'.","properties":{"startIndex":{"description":"First serial number (default 1).","maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"type":"object"},"showFooter":{"description":"Show the vxe footer row. Advanced: only consumed with engine:'vxe'.","type":"boolean"},"showHeader":{"description":"Show the table header (default true). Set false to hide it.","type":"boolean"},"size":{"description":"Table density. Default 'small' at runtime; el-table and a-table both accept these.","enum":["large","default","small"],"type":"string"},"snIndex":{"description":"Render a leading row-index (serial number) column.","type":"boolean"},"sortParam":{"anyOf":[{"type":"boolean"},{"properties":{"field":{"type":"string"},"order":{"type":"string"}},"type":"object"}],"description":"Server-side sorting: when set, the table stops sorting the current page locally and every list request carries { sortField, sortOrder } (order = 'asc' | 'desc'); a header click refetches the SAME page. { field, order } renames the two request keys. Also seeds from defaultSort, so the first request is already sorted. Omit to keep client-side sorting of the current page."},"stripe":{"default":true,"type":"boolean"},"tabHeight":{"description":"Table height consumed for EVERY heightType: under 'height' it overrides `height`; under 'maxHeight' it is the cap. number → px, string → raw CSS value (e.g. '60vh'). Prefer it over `height` whenever a concrete height is needed — it is the only height key that applies when heightType is 'maxHeight'.","type":["number","string"]},"toolbarConfig":{"anyOf":[{"type":"boolean"},{"additionalProperties":{},"propertyNames":{"type":"string"},"type":"object"}],"description":"vxe toolbar config (`true` for defaults, or { buttons: [...] } etc.). Advanced: only with engine:'vxe'."},"treeConfig":{"description":"vxe-only rich tree config (the SAME-NAME top-level `treeConfig` is the cross-renderer narrow subset; when both are set the generator merges them into tableOptions.treeConfig with the top-level key winning). Use `treeConfig.transform:true + rowField + parentField` to build a tree from FLAT rows; use the top-level `treeConfig` for nested `children` arrays on el-table / a-table.","properties":{"children":{"description":"@deprecated vxe v4 alias of childrenField; normalized at runtime.","type":"string"},"childrenField":{"description":"Child array field (default 'children').","type":"string"},"expandAll":{"description":"Start with every node expanded.","type":"boolean"},"lazy":{"description":"Lazy-load children (vxe only; the loader function itself is a Tier-3 extension point and cannot travel in JSON).","type":"boolean"},"mapChildren":{"description":"Field that caches original children in transform mode (default '_X_ROW_CHILD').","type":"string"},"parentField":{"description":"Parent id field for transform mode (default 'parentId').","type":"string"},"rowField":{"description":"Row id field for transform mode (default 'id').","type":"string"},"transform":{"description":"Build the tree client-side from FLAT rows (needs rowField + parentField). vxe only.","type":"boolean"}},"type":"object"},"validConfig":{"description":"vxe cell validation feedback (pair with `rules` on the column's editRender). Advanced: only with engine:'vxe'.","properties":{"autoPos":{"description":"Scroll the first invalid cell into view.","type":"boolean"},"message":{"description":"How validation feedback is shown (default 'default').","enum":["default","tooltip","modal","none"],"type":"string"},"msgMode":{"description":"Show one message or the full message list (default 'single').","enum":["single","full"],"type":"string"}},"type":"object"},"virtual":{"description":"Enable virtual scrolling for large datasets. vue3 renders the el-table-v2 engine. antdv and vue2 have NO virtual scrolling: a-table never implemented it and Element UI has no el-table-v2 — both targets warn and render a plain table. For large data on antdv/vue2 use `engine: 'vxe'` instead.","type":"boolean"}},"type":"object"},"target":{"default":"vue3","description":"Target framework: \"vue3\" (@es-plus/vue3 + Element Plus, default), \"vue2\" (@es-plus/vue2 + Element UI), or \"antdv\" (@es-plus/adapter-antdv + Ant Design Vue)","enum":["vue3","vue2","antdv"],"type":"string"},"toolbarBtns":{"description":"Buttons rendered in the QUERY-FORM button area, appended after 查询/重置. This area has NO left/right placement — when the description names a side (\"左侧…右侧…\", \"on the left/right of the table\"), use `tableBtns` instead, or the placement requirement is silently lost.","items":{"properties":{"actionType":{"type":"string"},"code":{"anyOf":[{"const":1,"type":"number"},{"const":2,"type":"number"}],"description":"1=left, 2=right (legacy alias of position; normalized automatically)"},"confirm":{"type":["string","boolean"]},"dialogKey":{"type":"string"},"direction":{"description":"Form-button direction (legacy form-side positioning field; wins over 'position')","enum":["left","right"],"type":"string"},"icon":{"type":"string"},"key":{"type":"string"},"name":{"minLength":1,"type":"string"},"permissionValue":{"type":"string"},"position":{"description":"left | right (recommended positioning field)","enum":["left","right"],"type":"string"},"triggerEvent":{"type":"boolean"},"type":{"type":"string"}},"required":["name"],"type":"object"},"type":"array"},"treeConfig":{"description":"Declarative tree table (AI-09 子项③). When set, the table renders parent/child levels from the nested child array in each row (row-key is emitted automatically). Static trees only — lazy/async loading is out of scope for this key. SAME NAME but DIFFERENT LAYER from `tableOptions.treeConfig` (the vxe-only VxeTreeConfig): this top-level key is the cross-renderer narrow subset, honored by el-table / a-table as well as vxe.","properties":{"childrenField":{"description":"Key name that holds a row's nested child nodes (default 'children'). Set only when the API nests children under a different key.","type":"string"},"expandAll":{"description":"Whether all nodes start expanded (default false).","type":"boolean"}},"type":"object"},"typescript":{"default":true,"description":"Generate TypeScript","type":"boolean"}},"required":["name","apiUrl","fields","actions"],"type":"object"},"name":"generate_crud_from_config"},{"description":"Validate an es-plus JSON configuration against its schema. Returns validation errors and fix suggestions. READ-ONLY: it judges and never repairs — format mistakes that the generators auto-fix (key aliases, relocated/nested keys, null placeholders, 'false'-style string booleans, dialog shorthands like dialogs:[\"add\"]) are reported here as errors. Use this to inspect a config; the generator tools repair such mistakes before generating (they report each repair).","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":{},"properties":{"config":{"description":"JSON string of the es-plus configuration to validate","type":"string"},"type":{"description":"Schema type to validate against. Available: api-params, btn-config, dialog-options, form-item, table-column, table-options, structured-crud-config (the input of generate_crud_from_config), es-table-config / es-form-config / es-dialog-config (the inputs of generate_table / generate_form / generate_dialog). Defaults to \"form-item\".","type":"string"}},"required":["config"],"type":"object"},"name":"validate_config"},{"description":"List all 16 available form field types (formtype) shared by es-plus on all three targets (vue3 / vue2 / antdv), with descriptions and usage examples.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":{},"properties":{},"type":"object"},"name":"list_form_types"},{"description":"Pre-fill a structured CRUD config from an existing schema (OpenAPI JSON, JSON Schema, a sample JSON object, a TypeScript interface/type literal, or SQL CREATE TABLE DDL). Deterministic, no LLM: it maps each property's DATA TYPE to a formtype (integer→InputNumber, boolean→Switch, string+date→DatePicker, string+enum→Select, array+enum→Checkbox, else Input). For ts-interface, JSDoc becomes the label and non-optional members become required; for sql-ddl, COMMENT becomes the label and NOT NULL/PRIMARY KEY become required. Use this as a HEAD START, then review & edit the draft (narrow the query fields, add buttons/dialogs/permissions the schema can't express) and pass it to generate_crud_from_config. OpenAPI YAML is not supported in this version — convert to JSON first.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":{},"properties":{"apiUrl":{"description":"Override the REST base URL, e.g. \"/api/users\". Defaults to a placeholder you must replace.","type":"string"},"kind":{"description":"Which kind of schema `text` is.","enum":["openapi","jsonSchema","sample-json","ts-interface","sql-ddl"],"type":"string"},"name":{"description":"Override the page name (PascalCase). Defaults to the schema title, else a placeholder.","type":"string"},"text":{"description":"The schema source text (JSON for openapi/jsonSchema; a JSON object or array for sample-json; TypeScript interface/type source for ts-interface; CREATE TABLE DDL for sql-ddl).","minLength":1,"type":"string"}},"required":["text","kind"],"type":"object"},"name":"ingest_schema"},{"description":"Apply ONE round of refinement to a pinned CRUD config. The pin is just the StructuredCrudConfig JSON you (the host) already hold — there is no server-side session. YOU apply the user's natural-language correction to produce the `revised` config, then call this tool with the `previous` (last-pinned) and `revised` JSON. It deterministically (1) validates `revised` against the authoritative schema and (2) returns a structured DIFF of what this round changed — fields added/removed, formtype/membership changes, actions, AND changed top-level blocks (dialogs / formLayout / tableOptions / buttons / columns / permissions / generation options), so a round that only adds an edit dialog or widens the form is not reported as \"no change\". If `revised` is invalid, you get the schema errors instead of a diff — fix and retry. Pass `revised` to generate_crud_from_config once you're happy. This tool does NOT call a model; the reasoning is yours.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":{},"properties":{"previous":{"description":"JSON string of the previously pinned config (omit for the first round).","type":"string"},"revised":{"description":"JSON string of the config after you applied the user's correction.","type":"string"}},"required":["revised"],"type":"object"},"name":"refine_config"},{"description":"READ-ONLY pre-flight for a generate_scene intent table: returns the scene capability report (es-plus.capabilities@1 — which keys are accepted / degraded / unsupported / missing) plus deterministic per-field issues (unknown surfaces, duplicate props, missing formtype, membership flags such as inQuery, labels absent from the spec, system fields inside an editable form, malformed dialog entries). It judges and never repairs or generates. Call it after extracting surfaces from a PRD / wireframe and before generating; fix the errors and re-run.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":{},"properties":{"intent":{"additionalProperties":{},"description":"The scene intent table (scene='crud': name/apiUrl/surfaces…; fragments: fields…). The same object you would pass as generate_scene's `intent`.","propertyNames":{"type":"string"},"type":"object"},"scene":{"default":"crud","description":"The scene the intent is for — same value you would pass to generate_scene.","enum":["crud","table","form","dialog"],"type":"string"},"spec":{"description":"Optional spec text (PRD / wireframe transcription). When present, every field label must appear verbatim in it — the check catches labels the host paraphrased instead of copying.","type":"string"}},"required":["intent"],"type":"object"},"name":"validate_intent"},{"description":"READ-ONLY per-page coverage classification for a structured spec inventory: L1 = generate_scene emits the page faithfully with no post-edit (metadata-only keys such as name/apiUrl/mode may lack a carrier but need no host edit); L2 = it emits, but a behavior-bearing key is degraded, the page composes several fragments, or the host declares extension points; L3 = an intent key is unsupported / required keys are missing / the intent shape is invalid / the host declares code of its own. The verdict comes from the es-plus.capabilities@1 ledger (assessIntent) plus the same front-door Zod shapes, not from prose, so the same inventory always yields the same levels. Run validate_intent first to get per-field detail.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":{},"properties":{"pages":{"description":"The structured page inventory (one entry per page of the spec).","items":{"additionalProperties":{},"description":"One page of the structured inventory.","properties":{"extensionPoints":{"description":"Host-declared extension points on an otherwise generated page (e.g. a toolbar slot or a custom cell). Any entry makes the page L2.","items":{"additionalProperties":{},"propertyNames":{"type":"string"},"type":"object"},"type":"array"},"hostCode":{"description":"Host-code items the declarative path cannot emit (charts, bespoke business widgets, custom routing…). Any entry makes the page L3.","items":{"additionalProperties":{},"propertyNames":{"type":"string"},"type":"object"},"type":"array"},"intent":{"additionalProperties":{},"description":"Single-part shorthand's intent table.","propertyNames":{"type":"string"},"type":"object"},"name":{"description":"Page name for the report (defaults to page-<n>).","type":"string"},"parts":{"description":"When the page is assembled from several generated pieces (multi-table master-detail, form + dialog, …), list them here — they will be composed with generate_composition.","items":{"additionalProperties":{},"properties":{"intent":{"additionalProperties":{},"description":"That scene's intent table (same shape validate_intent checks).","propertyNames":{"type":"string"},"type":"object"},"scene":{"description":"crud / table / form / dialog","enum":["crud","table","form","dialog"],"type":"string"}},"required":["scene","intent"],"type":"object"},"type":"array"},"scene":{"description":"Single-part shorthand: use scene + intent instead of parts[].","enum":["crud","table","form","dialog"],"type":"string"}},"type":"object"},"type":"array"}},"required":["pages"],"type":"object"},"name":"coverage_report"},{"description":"Recover the generator input from a page es-plus produced. Pages carry their own provenance (`__esPlusSource` inside pageSchema, or a `// __esPlusSource:` comment in sfc mode), so this unzips the recorded input instead of re-inferring a config from the rendered output. It is NOT a claim that artifact and input are identical: every place they differ (dropped unknown keys, keys the mode ignores, non-JSON values, deterministic repairs) is listed in `lossy[]`. Pass the full source of `schema.ts` / `Page.vue` / a bare pageSchema JSON. Returns `config` (exactly what the generator was given, after normalization), `lossy[]`, and `intent` (a mechanical `surfaces` projection you can pass straight to `generate_scene` scene='crud', plus `surfacesLossy[]` for anything the projection itself cannot express, e.g. explicit `columns`). Edit the returned config for the next round, then regenerate. Pages generated before this feature (or hand-written ones) have no provenance: this tool errors with a hint instead of guessing. Composition pages (`generate_composition`) carry a different contract (`// __esPlusCompositionSource:`): for those this returns `kind:'composition'` and the full `plan` to replay verbatim — it does NOT project them to `surfaces`, because role/wire details would be lost.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":{},"properties":{"code":{"description":"Full source text of the generated page: schema.ts, Page.vue (sfc mode), or a bare pageSchema JSON.","minLength":1,"type":"string"},"label":{"description":"Name used in error messages (e.g. the file name). Defaults to \"page\".","type":"string"}},"required":["code"],"type":"object"},"name":"read_page"},{"description":"Get the full API documentation for an es-plus component, including TypeScript interfaces, props, methods, and usage examples. Specify target='vue2' for @es-plus/vue2 + Element UI variants, target='antdv' for @es-plus/adapter-antdv + Ant Design Vue; default is target='vue3'.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":{},"properties":{"component":{"description":"Component name: EsForm, EsTable, EsDialog, EsCrudPage, SvgIcon, or useDialog (detailed docs for all six; the EsTable doc also covers the vxe engine)","enum":["EsForm","EsTable","EsDialog","EsCrudPage","SvgIcon","useDialog"],"type":"string"},"target":{"default":"vue3","description":"Target framework: 'vue3' (default, @es-plus/vue3 + Element Plus), 'vue2' (@es-plus/vue2 + Element UI), or 'antdv' (@es-plus/adapter-antdv + Ant Design Vue, Vue 3 syntax). Match the user's project.","enum":["vue3","vue2","antdv"],"type":"string"}},"required":["component"],"type":"object"},"name":"get_component_api"},{"description":"Generate a minimal es-plus page scaffold (.vue SFC) — plus the SAME `preflight` checklist that generated CRUD pages emit (httpRequest / permission / t / JSX plugin / UI library), with a copy-once app-entry boilerplate (vue3: `app.use(ESPlus, { permission, t, httpRequest })`, vue2: `Vue.use`). Supports vue3 (default) / vue2 / antdv targets. Use this when you need a blank starting template; use `doctor_page` to check an entry the host already has.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":{},"properties":{"features":{"description":"Features to include. Defaults to ['query', 'table']. Options: query, table, dialog","items":{"enum":["query","table","dialog"],"type":"string"},"type":"array"},"name":{"description":"Page name in kebab-case, e.g. 'user-management'","type":"string"},"target":{"default":"vue3","description":"Target framework: 'vue3' (default, <script setup> + @es-plus/vue3), 'vue2' (defineComponent + setup() + @es-plus/vue2), or 'antdv' (<script setup> + @es-plus/adapter-antdv + Ant Design Vue)","enum":["vue3","vue2","antdv"],"type":"string"}},"required":["name"],"type":"object"},"name":"scaffold_page"},{"description":"Static-check a host app entry against the es-plus preflight checklist (UI library, ESPlus plugin registration, httpRequest, permission, t, JSX transform). Pass the entry source and optionally the config the page was generated from (so only the capabilities that page actually needs are required) plus vite.config source (for UI auto-import / JSX plugin). Literal scan only: results are ok / missing / unverified — unverified means the item may be satisfied elsewhere and must be checked by hand.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":{},"properties":{"config":{"additionalProperties":{},"description":"Optional: the StructuredCrudConfig the page was generated from. When given, permission / t / httpRequest / JSX are required only if that config actually uses them.","propertyNames":{"type":"string"},"type":"object"},"entry":{"description":"Source of the app entry, e.g. src/main.ts (or src/main.js for vue2).","minLength":1,"type":"string"},"target":{"default":"vue3","description":"Target framework the entry is for.","enum":["vue3","vue2","antdv"],"type":"string"},"viteConfig":{"description":"Optional: vite.config.* source. Needed to verify UI-library auto-import and the JSX plugin.","type":"string"}},"required":["entry"],"type":"object"},"name":"doctor_page"}]}}}
