更新记录

1.0.0(2023-06-29)

版本初始化


平台兼容性

Vue2 Vue3
App 快应用 微信小程序 支付宝小程序 百度小程序 字节小程序 QQ小程序
app-vue app-nvue
钉钉小程序 快手小程序 飞书小程序 京东小程序
H5-Safari Android Browser 微信浏览器(Android) QQ浏览器(Android) Chrome IE Edge Firefox PC-Safari
<template>
  <view style="padding: 30rpx;">
    tab切换
    <c-radio :arr="['全部','待支付','进行中','已完成','已取消']" :value.sync="tab" :showIcon="false" activeLabel="active"
      labelClass="item"></c-radio>

    单选
    <c-radio :arr="['不限','男','女']" :value.sync="sex" labelClass="item"></c-radio>

    多选 <br>
    :isM="true" arr和value都需要.sync <br>
    arr格式为JSON数组 keyName为显示字段名<br>
    <c-radio :arr.sync="typesJson" :value.sync="typeJson" :isM="true" keyName="name" labelClass="item"></c-radio>

  </view>
</template>

<script>
  export default {
    data() {

      return {
        tab: '全部',
        sex: '男',
        typesJson: [{ name: '中国', }, { name: '美国', }, { name: '韩国', }, { name: '英国', }, ],
        typeJson: [{ name: '中国', }],
      };
    },

  }
</script>
<style lang="scss" scoped>
  /deep/ .item {
    width: 20%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32rpx;
    color: #ccc;
    padding: 30rpx 0;
    background-color: #fff;
    margin-bottom: 30rpx;
  }

  /deep/ .active {
    color: #4E92E2;
    position: relative;

    &::after {
      position: absolute;
      display: block;
      content: '';
      width: 2.5em;
      height: 8rpx;
      bottom: 0;
      left: 50%;
      transform: translateX(-50%);
      background: linear-gradient(270deg, #4E92E2 0%, #7BB6FE 100%);
      border-radius: 4px 4px 4px 4px;
    }
  }
</style>

隐私、权限声明

1. 本插件需要申请的系统权限列表:

2. 本插件采集的数据、发送的服务器地址、以及数据用途说明:

3. 本插件是否包含广告,如包含需详细说明广告表达方式、展示频率:

许可协议

MIT协议

暂无用户评论。

使用中有什么不明白的地方,就向插件作者提问吧~ 我要提问