Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.
/ wepy-com-selectab Public archive

(Deprecated)(不再维护)选择数量或者其他单选操作,可用于座位选择。wepy组件。

Notifications You must be signed in to change notification settings

colmugx/wepy-com-selectab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wepy-com-selectab

NPM

适用于选座位等数字或者类型选择的组件,这是一个从Bandix独立出来的组件。

早期Vue实现版本(异曲同工):https://github.com/ColMugX/vue-number-tab

安装 Install

npm install -S wepy-com-selectab

使用 Usage

import Selectab from 'wepy-com-selectab'

export ...

    components = {
        selectab: Selectab
    }
<selectab :total.sync="total" :value="value" bgColor="#444751" @selected="handleSelected" />

默认是选择数字,从14,颜色是#444751

配置 Options

Api

参数 说明 类型 可选值 默认值
total 数字的总数,或者通过数组传入数据 [Array] - [1, 2, 3, 4]
value 组件默认选择数据 [String] - 1
bgColor 选择区块颜色 String - #444751

Event

参数 说明 返回值
selected 获取当前选择数据 [String]

About

(Deprecated)(不再维护)选择数量或者其他单选操作,可用于座位选择。wepy组件。

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published