import React from 'react'; import './Cell.css'; /* 单元格(移动端)— 规格 §7;link=true 时用原生 button(整行热区、可键盘聚焦) */ export default function Cell({ title = '', desc = '', value = '', arrow = false, link = false, borderless = false, disabled = false, onClick, children = null, icon = null, }) { const cls = 'kole-m-cell' + (link ? ' kole-m-cell--link' : '') + (borderless ? ' kole-m-cell--borderless' : '') + (disabled ? ' is-disabled' : ''); const inner = ( <> {icon ? {icon} : null} {title} {desc ? {desc} : null} {children || (value ? {value} : null)} {arrow ? ( ) : null} > ); /* 可点单元格用原生 button(规格 §7.6);纯展示用 div */ if (link) { return ( ); } return (