Files
danyang-match/miniapp/components/status-badge/index.js
T

17 lines
571 B
JavaScript
Raw Normal View History

2026-09-09 22:05:00 +08:00
/**
* StatusBadge 状态徽标(规范 §22 / §107 STATUS_BADGE 映射)
*
* 用统一的 kind 控制色彩语义:success / warning / danger / info / disabled
* 用法:
* <ui-status-badge kind="success" label="已实名" />
* <ui-status-badge kind="warning" label="审核中" />
*/
Component({
options: { addGlobalClass: true },
properties: {
kind: { type: String, value: 'info' }, // success|warning|danger|info|disabled
label: { type: String, value: '' },
icon: { type: Boolean, value: false }, // 是否显示前缀圆点
},
});