1.0.7 • Published 2 years ago

@mingyunsnpm/picker v1.0.7

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

picker

it is a react picker component.

使用示例:

import Picker from "@mingyunsnpm/picker";

const DATA = [
  {
    text: "小明",
    value: 1,
  },
  {
    text: "小红",
    value: 2,
  },
  {
    text: "小张",
    value: 3,
  },
  {
    text: "小王",
    value: 4,
  },
];

// 命令式调用
Picker.show({
  list: DATA,
  onConfirm(index) {
    console.log(index);
  },
});

// 或者申明式调用
<Picker
  show
  list={DATA}
  onConfirm={(index) => {
    console.log(index);
  }}
/>;
1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.0.0

2 years ago