ux-m-platform-tab-select

平台移动端切换选择组件

Usage no npm install needed!

<script type="module">
  import uxMPlatformTabSelect from 'https://cdn.skypack.dev/ux-m-platform-tab-select';
</script>

README

TabSelect切换选择组件

用于只有一个/两个选项时的选择组件

UI规则

  • 左侧显示标题 右侧显示选项
  • 选项的描述展示在字段下方
  • 如无设置,默认选中第一项
  • 切换选项时,展示对应描述

choose1

choose2

API

TabSelect props

name description type default
cls 自定义container css String ''
style 自定义container style Object {}
label 字段标题 String ''
options 选项 Array
activeValue 默认选中项value值 Number 0
handleChooseChange 切换选项时的回调函数 Function