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