22 lines
1.7 KiB
JSON
22 lines
1.7 KiB
JSON
{
|
|
"slug": "popconfirm",
|
|
"curated": true,
|
|
"title": "操作结果卡片",
|
|
"desc": "Popconfirm出现在结果卡片里,与后续操作按钮并列时的样子。",
|
|
"uses": [
|
|
"card",
|
|
"button"
|
|
],
|
|
"markup": {
|
|
"html": "<div class=\"ksc-card\">\n <div class=\"kole-popconfirm\">删除</div>\n <div class=\"ksc-actions\">\n <button class=\"btn btn-primary btn-md\" type=\"button\">知道了</button>\n </div>\n</div>",
|
|
"jsx": "<div className=\"ksc-card\">\n <div className=\"kole-popconfirm\">删除</div>\n <div className=\"ksc-actions\">\n <button className=\"btn btn-primary btn-md\" type=\"button\">知道了</button>\n </div>\n</div>",
|
|
"vue2": "<template>\n <div>\n <div class=\"ksc-card\">\n <div class=\"kole-popconfirm\">删除</div>\n <div class=\"ksc-actions\" slot=\"footer\">\n <button class=\"btn btn-primary btn-md\" type=\"button\">知道了</button>\n </div>\n </div>\n </div>\n</template>",
|
|
"vue3": "<template>\n <div>\n <div class=\"ksc-card\">\n <div class=\"kole-popconfirm\">删除</div>\n <div class=\"ksc-actions\">\n <button class=\"btn btn-primary btn-md\" type=\"button\">知道了</button>\n </div>\n </div>\n </div>\n</template>\n\n<script setup>\n// 场景外壳由业务页面提供;组件按本端文档的调用方式接入\n</script>"
|
|
},
|
|
"notes": [
|
|
"组件本体类名依据该组件 SSR 产物(site/end-preview/popconfirm.react.html)的根元素:kole-popconfirm",
|
|
"协作者 card, button 取自组件族耦合关系(.design_library/kole-ui/components/index.json 的 family 字段)",
|
|
"外壳类 ksc-* 与动作按钮 .btn 依据 tools/build-scenes.mjs 的 SCAFFOLD_CSS 与 frameworks/Button.css"
|
|
]
|
|
}
|