Chuyển tới nội dung chính

Picker

Cho phép tạo giao diện cho phép người dùng chọn một lựa chọn trên từng cột dữ liệu

Properties​

Picker​

Type​

PickerDataType​

PickerColumnOption​

PickerActionType​

Example​

import React from "react";
import { Box, Text, Picker, Page } from "zmp-ui";

function PagePicker() {
const genTestData = (name, number, prefix = "Option") => {
const data = [];
// eslint-disable-next-line no-plusplus
for (let i = 0; i < number; i++) {
data.push({
value: i + 1,
displayName: `${prefix} ${i + 1}`,
});
}
return data;
};
return (


<Text.Title size="small">Type</Text.Title>
<Box mt={6}>

</Box>
<Box mt={6}>

</Box>


);
}

export default PagePicker;