reactjs - 主题-ui zIndices 对象打字稿错误
问题描述
我们的主题对象有一个 zIndices 对象
...
zIndices: {
proxyTray: 571,
proxyTrayOverlay: 570,
ruleMenu: 551,
... etc ...
}
...
升级到最新的 theme-ui (0.9) 后,我收到了很多这种类型的 TS 错误:
Property 'fixedButton' does not exist on type 'ZIndex[]'.
132 zIndex: ({ zIndices }): number => zIndices.fixedButton + 1,
zIndices 必须是一个数组吗?我认为这曾经可以正常工作
解决方案
推荐阅读
- python-3.x - 直接修改集合中的数据?
- java-11 - Javafx Web 11 - 初始化 QuantumRenderer 时出错:找不到合适的管道
- abap - 禁用 VA02 项目详细信息中的“配置结构”按钮?
- prism - AvalonDock 和 MainApplicationView 之间的 C# Prism 通信
- jmeter - 当同一个 URL 中有 2 个动态值且其中 1 个连续变化时,如何使用正则表达式?
- flowtype - 流类型一个通用函数,它对至少有一个 ID 的任何类型进行分组
- vue.js - vue3 反应性意外行为
- javascript - 单击接受好友请求按钮未创建数据库条目
- python - 根据几列上的条件更改数据框列中的某些值
- c# - 生成 JWS 时为空有效负载