import { View } from '@tarojs/components'; import type { MlReadonlyInputProps } from './types'; import { classNames, isEmpty } from 'mixlea-utils-js'; export function MlReadonlyInput(props: MlReadonlyInputProps) { const paddingLeft = props.paddingLeft ?? props.paddingX; const paddingRight = props.paddingRight ?? props.paddingX; const showPlaceholder = isEmpty(props.value); return ( {showPlaceholder ? props.placeholder : props.value} ); }