mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
20 lines
307 B
JavaScript
20 lines
307 B
JavaScript
import { use, isDef } from '../utils';
|
|
|
|
const [sfc, bem] = use('info');
|
|
|
|
function Info(h, props, slots, ctx) {
|
|
return (
|
|
isDef(props.info) && (
|
|
<div class={bem()} {...ctx.data}>
|
|
{props.info}
|
|
</div>
|
|
)
|
|
);
|
|
}
|
|
|
|
Info.props = {
|
|
info: [String, Number]
|
|
};
|
|
|
|
export default sfc(Info);
|