/** @jsx h */ // AUTO-GENERATED by export-examples-tsx —— 由同名 .vpproj.json 导出的 VP-TSX 配对视图(已回编译等值验证)。 // 修改请改 JSON 后重跑导出脚本,或改本文件后用 compile.mts 重编 JSON——保持两者一致。 import { defineProject, h } from '../scripts/vptsx/runtime' export default defineProject({ name: "数据交互(联动)", connections: [ { "uid": "conn_pm", "name": "PostMessage数据源", "type": "postMessage", "connectorType": "postMessage", "config": { "linkId": "link_demo", "responseMode": "实时更新" }, "tables": [ { "uid": "tbl_pm", "name": "data", "eventName": "data", "eventParams": "", "fields": [ { "uid": "f_month", "sourceField": "month", "alias": "month", "type": "string" }, { "uid": "f_sales", "sourceField": "sales", "alias": "sales", "type": "number" }, { "uid": "f_profit", "sourceField": "profit", "alias": "profit", "type": "number" } ] } ] } ], connectionData: { "conn_pm": [ { "tableId": "tbl_pm", "tableName": "data", "fields": [ { "uid": "f_month", "sourceField": "month", "alias": "month", "type": "string" }, { "uid": "f_sales", "sourceField": "sales", "alias": "sales", "type": "number" }, { "uid": "f_profit", "sourceField": "profit", "alias": "profit", "type": "number" } ], "rows": [ { "f_month": "一月", "f_sales": 16000, "f_profit": 110 }, { "f_month": "二月", "f_sales": 19000, "f_profit": 230 }, { "f_month": "三月", "f_sales": 15000, "f_profit": 340 } ] } ] }, screen: ( ), })