{ "slug": "alert", "mode": "scenarios", "examples": [ { "id": "alert-ex-1", "title": "默认与常用变体", "titleSrc": "demo", "desc": "", "html": "
\n
\n
\n 系统提示\n
\n 请检查当前配置后继续。\n \n
\n
\n
", "preview": { "show": [ [ 0, 2 ] ], "hide": [ [ 1 ], [ 0, 0 ], [ 0, 1 ], [ 0, 3 ], [ 0, 2, 0 ] ], "mode": "scenarios" }, "previewSafe": true, "previewUnsafeReasons": [], "source": "curated", "code": { "html": "
\n
\n 系统提示\n
\n 请检查当前配置后继续。\n \n
\n
", "jsx": "import { KoleAlert } from 'kole-ui/react';\n\n", "vue3": "\n\n", "vue2": "\n\n", "tsx": "import { KoleAlert } from 'kole-ui/react';\n\nexport default function KoleAlertDemo(): JSX.Element {\n return (\n \n );\n}", "vue3ts": "\n\n", "vue2ts": "\n\n" }, "notes": [ "依据 frameworks/Alert.html 第一个 demo-block(kole-alert-alert + kole-alert-desc + kole-alert-close「×」);type/title/description/closable 见 Alert.vue3 defineProps 与 Alert.jsx 形参默认值。" ] }, { "id": "alert-ex-2", "title": "状态与使用场景", "titleSrc": "demo", "desc": "", "html": "
\n
\n
在页面内持续展示风险、限制、成功结果或操作说明。
\n 支持键盘焦点、状态反馈和令牌化样式。\n
\n

零运行时依赖;数据请求、权限和国际化由宿主接入方决定。

\n
", "preview": { "show": [ [ 0, 3 ] ], "hide": [ [ 1 ], [ 0, 0 ], [ 0, 1 ], [ 0, 2 ], [ 0, 3, 0 ] ], "mode": "scenarios" }, "previewSafe": true, "previewUnsafeReasons": [], "source": "curated", "code": { "html": "
\n
在页面内持续展示风险、限制、成功结果或操作说明。
\n 支持键盘焦点、状态反馈和令牌化样式。\n
\n

零运行时依赖;数据请求、权限和国际化由宿主接入方决定。

", "jsx": "import { KoleAlert } from 'kole-ui/react';\n\n<>\n \n \n \n \n", "vue3": "\n\n", "vue2": "\n\n", "tsx": "import { KoleAlert } from 'kole-ui/react';\n\nexport default function KoleAlertDemo(): JSX.Element {\n return (\n <>\n \n \n \n \n \n );\n}", "vue3ts": "\n\n", "vue2ts": "\n\n" }, "notes": [ "依据 frameworks/Alert.html 第二个 demo-block(kole-alert-surface / kole-alert-desc)与 Alert.vue3 的 :class=\"is- + props.type\";四档取值 info/success/warning/error 见 Alert.css 的 .is-info/.is-success/.is-warning/.is-error。" ] } ], "curated": true }