0.0.15 • Published 4 years ago

@retailwe/ui-tree-select v0.0.15

Weekly downloads
1
License
-
Repository
-
Last release
4 years ago

tree-select 消息提示

引入

"usingComponents": {
  "wr-tree-select": "@retailwe/ui-tree-select/index"
}

代码演示

基础用法

<tree-select
  items="{{items}}"
  subItems="{{subItems}}"
  bind:onSelect="{{tapSelect}}"
></tree-select>
Page({
  data: {
    items: [{ title: 'apple' }, { title: 'sumsing' }, { title: 'xiaomi' }],
    subItems: [
      [{ text: 'iphone 11' }, { text: 'iphone x' }, { text: 'iphone 8' }],
      [{ text: 'sumsing 20' }, { text: 'sumsing 10' }, { text: 'sumsing 9' }],
      [{ text: 'xiaomi 10' }, { text: 'xiaomi 9' }, { text: 'xiaomi 6' }],
    ],
  },
  methods: {
    tapSelect() {},
  },
});

API

treeSelect Props

treeSelect Props

参数说明类型默认值版本
iClass自定义 class 类名string--

| items | 标题栏列表 | array | [] | - | - | | subItems |选择栏列表 | array | [] | - | - |

treeSelect Event

事件名说明参数
onSelect选中项时触发选中项
0.0.15

4 years ago

0.0.14

4 years ago

0.0.13

4 years ago

0.0.12

4 years ago

0.0.11

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7-beta.1

4 years ago