更新记录

1.0.0(2024-07-05)

新增


平台兼容性

Vue2 Vue3
App 快应用 微信小程序 支付宝小程序 百度小程序 字节小程序 QQ小程序
HBuilderX 3.1.0 × × × ×
钉钉小程序 快手小程序 飞书小程序 京东小程序
× × × ×
H5-Safari Android Browser 微信浏览器(Android) QQ浏览器(Android) Chrome IE Edge Firefox PC-Safari
× × × × ×

hbxw-arrow组件

介绍

一个纯CSS实现(左右上下)三角箭头

使用示例


<template>
    <view class="container">
        <text class="title">左三角</text>
        <hbxw-arrow @click="click" />
        <text class="title">右三角</text>
        <hbxw-arrow type="right" size="10px" />
        <text class="title">上三角</text>
        <hbxw-arrow type="top" size="40rpx" color="blue" />
        <text class="title">下三角</text>
        <hbxw-arrow type="bottom" :size="40" color="yellow" />
    </view>
</template>

<script>
    export default {
        methods: {
            click() {
                console.log('---- hbxw-arrow click ----');
            }
        }
    }
</script>

<style>
.container{
    display: flex;
    flex-direction: column;
    align-items: center;
}
.title{
    width: 100%;
    font-size: 28rpx;
    font-weight: bold;
    line-height: 1.5;
    text-align: center;
}
</style>

API

Props

属性名 类型 默认值 必填 说明
type String 'left' 箭头类型,left(左)/right(右)/top(上)/bottom(下) 箭头
size Number/String 20 三角形大小
color String #ff0000 三角形颜色

Events

事件名 说明 返回值
click 进度条件点击触发事件 当前三角形类型

隐私、权限声明

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

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

插件不采集任何数据

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

许可协议

MIT协议

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