/// import type { ButtonProps } from '@tarojs/components'; import type { BorderProps, ColorProps, FlexboxProps, LayoutProps, SpaceProps, TypographyProps } from '@lx-react-materiel/shared'; import { type Required as IRequired } from 'utility-types'; import './index.less'; type ILxButtonBasic = ButtonProps & ColorProps & FlexboxProps & LayoutProps & SpaceProps & TypographyProps & BorderProps; export type ILxButtonProps = IRequired; /** * 按钮组件 * * 1、在 taro button 组件属性使用方式不改变。 * 文档:https://docs.taro.zone/docs/components/forms/button#buttonprops * * 2、绑定布局常用的相关 css 属性 到 props 上 * 文档:https://styled-system.com/table * * @constructor * @example * 默认按钮 */ export declare function LxButton(props: ILxButtonProps): JSX.Element; export declare namespace LxButton { var defaultProps: { width: string; fontSize: number; fontWeight: string; display: string; borderRadius: number; borderColor: string; paddingTop: number; paddingRight: number; paddingBottom: number; paddingLeft: number; backgroundColor: string; color: string; }; } export default LxButton;