fix: 修复 Antd 和 React 废弃 API 警告
- AutoComplete/Select: dropdownStyle -> styles.popup.root - AutoComplete/Select: popupClassName -> classNames.popup.root - 移除 WebkitBackdropFilter(Chakra backdropFilter 自动处理) - Table rowKey: 使用唯一标识符替代 index 参数 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -44,15 +44,19 @@ const PeriodSelector: React.FC<PeriodSelectorProps> = memo(({
|
||||
background: 'transparent',
|
||||
}}
|
||||
size="small"
|
||||
popupClassName="period-selector-dropdown"
|
||||
classNames={{ popup: { root: 'period-selector-dropdown' } }}
|
||||
styles={{
|
||||
popup: {
|
||||
root: {
|
||||
background: '#1A202C',
|
||||
borderColor: 'rgba(212, 175, 55, 0.3)',
|
||||
},
|
||||
},
|
||||
}}
|
||||
options={periodOptions.map((period) => ({
|
||||
value: period,
|
||||
label: `最近${period}期`,
|
||||
}))}
|
||||
dropdownStyle={{
|
||||
background: '#1A202C',
|
||||
borderColor: 'rgba(212, 175, 55, 0.3)',
|
||||
}}
|
||||
/>
|
||||
<IconButton
|
||||
icon={<RefreshCw size={14} className={isLoading ? 'spin' : ''} />}
|
||||
|
||||
Reference in New Issue
Block a user