组件源码:
https://github.com/AntJavascript/widgetUI/tree/master/Flex
组件说明:
一个让子元素竖着排列的组件,(只有子元素个数大于1个时,才会有效果)
组件结构:
<template>
<div class='wt-flex'>
<slot></slot>
</div>
</template>
css代码:
.wt-flex {
display: flex;
justify-content: space-between;
flex-direction: column;
height: 100%;
}
组件源码:
https://github.com/AntJavascript/widgetUI/tree/master/Flex