1.0.2 • Published 1 year ago

wang-layout v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

介绍

一个flex布局css类库,用于简化项目flex布局代码书写量

安装

npm i easy-layout -S

使用

在项目 main.js 文件引入,就可以全局使用了

import "easy-layout"

布局name

cssName对应样式效果
fxdisplay: flex;
fx_fdcdisplay: flex;flex-direction: column;
fx_acdisplay: flex; align-items: center;
fx_afsdisplay: flex;align-items: flex-start;
fx_afedisplay: flex; align-items: flex-end;
fx_jcdisplay: flex; justify-content: center;
fx_jsbdisplay: flex; justify-content: space-between;
fx_jfsdisplay: flex; justify-content: flex-start;
fx_jfedisplay: flex; justify-content: flex-end;
fx_jsadisplay: flex; justify-content: space-around;
fx_jsb_acdisplay: flex; justify-content: space-between; align-items: center;
fx_jc_acdisplay: flex; justify-content: center; align-items: center;
fx_fdc_jcsbdisplay: flex;flex-direction: column;justify-content: space-between;
fx_1flex: 1;
fx_fs0flex-shrink: 0;

使用demo

<div class="test_box fx_jc_ac">
     <span>只需要添加 fx_jc_ac 类名,即可快速实现flex布局</span>
</div>
1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago