1.0.7 • Published 6 months ago

@mingyunsnpm/picker v1.0.7

Weekly downloads
-
License
MIT
Repository
-
Last release
6 months 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

6 months ago

1.0.6

6 months ago

1.0.5

6 months ago

1.0.4

6 months ago

1.0.2

7 months ago

1.0.1

8 months ago

1.0.0

8 months ago

0.0.0

8 months ago