【微信小程序】横向_纵向布局(98_100)

93 阅读1分钟

在这里插入图片描述

<!--pages/flex_direction/flex_direction.wxml-->
<text>flex-direction: row\n横向布局</text>

<view  class="flex-wrp" >
  <image style="width: 200px; height: 100px;" src="../../images/ic_img01.png"   />
  <text>123456789</text>
        </view>
        <text>flex-direction: column\n纵向布局</text>
        <view class="flex-wrp" style="flex-direction:column;">
        <image src="../../images/ic_img01.png"   />
        <text>123456789</text>
      </view>


/* pages/flex_direction/flex_direction.wxss */
flex-wrp{
  flex-direction: row;
}

功能描述

视图容器

属性说明

属性 类型 默认值 必填 说明 最低版本 hover-class string none 否 指定按下去的样式类。当 hover-class="none" 时,没有点击态效果 1.0.0

hover-stop-propagation boolean false 否 指定是否阻止本节点的祖先节点出现点击态 1.5.0

hover-start-time number 50 否 按住后多久出现点击态,单位毫秒 1.0.0

hover-stay-time number 400 否 手指松开后点击态保留时间,单位毫秒 1.0.0

好用的Api工具推荐

历时一年半多开发终于smartApi-v1.0.0版本在2023-09-15晚十点正式上线 smartApi是一款对标国外的postman的api调试开发工具,由于开发人力就作者一个所以人力有限,因此v1.0.0版本功能进行精简,大功能项有:

  • api参数填写
  • api请求响应数据展示
  • PDF形式的分享文档
  • Mock本地化解决方案
  • api列表数据本地化处理
  • 再加上UI方面的打磨

本地运行,性能优越,高效,快捷

下面是一段smartApi使用介绍: 在这里插入图片描述

下载地址

pan.baidu.com/s/1WGaIDYQv…