扩展底座:更新检查函数
Methods
(static) upCondition(state, prevState) → {Object}
「标准」Ex.upCondition
检查 $condition
状态信息,计算最终状态值:
{
original: "原始状态",
current: "新状态"
}
Parameters:
Name | Type | Description |
---|---|---|
state |
Object | 当前状态 |
prevState |
Object | 之前状态 |
Returns:
返回计算后的状态信息
- Type
- Object
(static) upList(props, prevProps) → {Object}
「标准」Ex.upList
检查 $options, $identifier
状态信息,计算最终状态值:
{
original: "原始属性",
current: "新属性"
}
移除 component 相关配置信息
- 解决第一次多选闪屏的问题
- 在切换页面的过程中,实际上 component 的改动不重要,因为 component 应该在两种情况彻底更改
- $options 发生变更
- $identifier 发生变更
二者是从属关系,所以在 rxPostSelected 触发时,保证不闪屏,所以不检查 component
Parameters:
Name | Type | Description |
---|---|---|
props |
Object | 当前树形 |
prevProps |
Object | 之前树形 |
Returns:
返回计算后的状态信息
- Type
- Object
(static) upLoading(state, prevState) → {Object}
「标准」Ex.upLoading
检查 $loading
状态信息,计算最终状态值:
{
original: "原始状态",
current: "新状态"
}
Parameters:
Name | Type | Description |
---|---|---|
state |
Object | 当前状态 |
prevState |
Object | 之前状态 |
Returns:
返回计算后的状态信息
- Type
- Object
(static) upQuery(state, prevState) → {Object}
「标准」Ex.upQuery
检查 $query
状态信息,计算最终状态值:
{
original: "原始状态",
current: "新状态"
}
Parameters:
Name | Type | Description |
---|---|---|
state |
Object | 当前状态 |
prevState |
Object | 之前状态 |
Returns:
返回计算后的状态信息
- Type
- Object
(static) upValue(state, prevState, key) → {Object}
「标准」Ex.upValue
检查输入的 key
状态信息,计算最终状态值:
{
original: "原始状态",
current: "新状态"
}
Parameters:
Name | Type | Description |
---|---|---|
state |
Object | 当前状态 |
prevState |
Object | 之前状态 |
key |
String | 状态值 |
Returns:
- Type
- Object