1.1.8 • Published 2 years ago

@leiych/flex v1.1.8

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

自定义的 react-flex 组件

Prerequisites

  • node >=10

  • React >=16.8.0

Install

yarn add @leiych/flex

# or

npm i @leiych/flex

Usage

import Flex from '@leiych/flex';

export default () => {
  return <Flex align="center" gutter="15" justify="center"></Flex>;
};

Author

👤 leiych

Props

参数名说明必填类型默认值备注
growflex-grow 的值string|number0
directionflex-direction 的值'row' | 'column' | 'row-reverse' | 'column-reverse''row'
justifyjustify-content 的值'start'| 'center'| 'end'| 'between'| 'around'| 'evenly'| 'normal''normal'
alignalign-items 的值'start'| 'center'| 'end'| 'baseline'|'normal''normal'
wrapflex-wrap 的值'wrap' | 'nowrap' | 'wrap-reverse''nowrap'
gutterflex-元素的间距string | number | string[] | number[]0为数组时可以按顺序自定义子元素的间距
1.1.8

2 years ago

1.2.0

3 years ago

1.3.0

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.1.7

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago