import { use, isDef } from '../utils'; import { inherit } from '../utils/functional'; // Types import { FunctionalComponent } from '../utils/use/sfc'; const [sfc, bem] = use('info'); const Info: FunctionalComponent = function (h, props, slots, ctx) { if (!isDef(props.info)) { return; } return (
{props.info}
); }; export type InfoProps = { info?: string | number; }; Info.props = { info: [String, Number] }; export default sfc(Info);