{ "slug": "chartpanel", "mode": "scenarios", "curated": true, "examples": [ { "id": "chartpanel-ex-1", "title": "刷新", "titleSrc": "demo", "desc": "", "html": "", "preview": { "show": [ [ 0, 0, 1, 0 ] ], "hide": [ [ 1 ], [ 0, 1 ], [ 0, 0, 0 ], [ 0, 0, 1, 1 ], [ 0, 0, 1, 2 ] ], "mode": "scenarios" }, "previewSafe": true, "previewUnsafeReasons": [], "source": "curated", "code": { "html": "", "jsx": "import { KoleChartPanel } from 'kole-ui/react';\n\nfunction handleRefresh() {\n console.log('刷新图表');\n}\n\n\n 图表区域(可放置折线/柱状/饼图)\n", "vue3": "\n\n", "vue2": "\n\n", "tsx": "import { KoleChartPanel } from 'kole-ui/react';\n\nexport default function KoleChartPanelDemo(): JSX.Element {\n function handleRefresh() {\n console.log('刷新图表');\n }\n return (\n \n 图表区域(可放置折线/柱状/饼图)\n \n );\n}", "vue3ts": "\n\n", "vue2ts": "\n\n" }, "notes": [ "依据 frameworks/ChartPanel.html:14 标题「访问趋势」与 :16 id=refresh「刷新」按钮的 onclick(:29 alert('刷新图表'));prop/事件取自 frameworks/ChartPanel.jsx:4 与 ChartPanel.vue3.vue:22" ] }, { "id": "chartpanel-ex-2", "title": "导出", "titleSrc": "demo", "desc": "", "html": "", "preview": { "show": [ [ 0, 0, 1, 1 ] ], "hide": [ [ 1 ], [ 0, 1 ], [ 0, 0, 0 ], [ 0, 0, 1, 0 ], [ 0, 0, 1, 2 ] ], "mode": "scenarios" }, "previewSafe": true, "previewUnsafeReasons": [], "source": "curated", "code": { "html": "", "jsx": "import { KoleChartPanel } from 'kole-ui/react';\n\nfunction handleExport() {\n console.log('导出图表');\n}\n\n\n 图表区域(可放置折线/柱状/饼图)\n", "vue3": "\n\n", "vue2": "\n\n", "tsx": "import { KoleChartPanel } from 'kole-ui/react';\n\nexport default function KoleChartPanelDemo(): JSX.Element {\n function handleExport() {\n console.log('导出图表');\n }\n return (\n \n 图表区域(可放置折线/柱状/饼图)\n \n );\n}", "vue3ts": "\n\n", "vue2ts": "\n\n" }, "notes": [ "依据 frameworks/ChartPanel.html:17 id=export「导出」按钮与 :30 alert('导出图表');事件名 export 取自 frameworks/ChartPanel.vue3.vue:22" ] }, { "id": "chartpanel-ex-3", "title": "图表面板 ChartPanel 示例 3", "titleSrc": "", "desc": "", "html": "", "preview": { "show": [ [ 0, 0, 1, 2 ] ], "hide": [ [ 1 ], [ 0, 1 ], [ 0, 0, 0 ], [ 0, 0, 1, 0 ], [ 0, 0, 1, 1 ] ], "mode": "scenarios" }, "previewSafe": true, "previewUnsafeReasons": [], "source": "curated", "code": { "html": "", "jsx": "import { KoleChartPanel } from 'kole-ui/react';\n\n\n 图表区域(可放置折线/柱状/饼图)\n", "vue3": "\n\n", "vue2": "\n\n", "tsx": "import { KoleChartPanel } from 'kole-ui/react';\n\nexport default function KoleChartPanelDemo(): JSX.Element {\n return (\n \n 图表区域(可放置折线/柱状/饼图)\n \n );\n}", "vue3ts": "\n\n", "vue2ts": "\n\n" }, "notes": [ "依据 frameworks/ChartPanel.html:18 的 kole-chartpanel-caret「▾」折叠按钮与 :28 classList.toggle('is-collapsed');collapsible/collapsed 取自 frameworks/ChartPanel.jsx:4" ] } ] }