/** @format */ import _ from 'lodash'; import React from 'react'; import styled from 'styled-components'; const Img = styled.img` width: 16px; height: 16px; `; interface PositionProps { size?: Record; [key: string]: any; } const Position = (props: PositionProps) => { const { size, text = '这是地点', textStyle } = props; const styleBase = { fontSize: 14, color: '#2db9ff', }; const style = _.merge(styleBase, size, textStyle); return (
{text}
); }; export default Position;