import React, { useState } from 'react'; import { Text, View } from 'react-native'; import { Space, Select } from '@xrnjs/ui'; import Card from '_global/Card'; import { styles, priorityStyles } from './style'; const options = [ { label: '重要', value: 'important', labelTextStyle: priorityStyles.important.labelTextStyle, subLabel: '高优先级', subLabelTextStyle: priorityStyles.important.subLabelTextStyle, }, { label: '普通', value: 'normal', labelTextStyle: priorityStyles.normal.labelTextStyle, subLabel: '中等优先级', subLabelTextStyle: priorityStyles.normal.subLabelTextStyle, }, { label: '低优先级', value: 'low', labelTextStyle: priorityStyles.low.labelTextStyle, subLabel: '可延后处理', subLabelTextStyle: priorityStyles.low.subLabelTextStyle, contentLabel: '不紧急', contentLabelTextStyle: priorityStyles.low.contentLabelTextStyle, }, ]; const CustomStyleSelectExample = () => { const [visible, setVisible] = useState(false); const [value, setValue] = useState(); const onChange = (selectedValue: string | string[]) => { setValue(selectedValue as string); setVisible(false); }; const customFooter = ( 自定义底部区域 ); const selectedOption = options.find((opt) => opt.value === value); return ( 自定义样式