1.3.0 • Published 2 years ago

@schema-plugin-flow/sifo-mplg-react-optimize v1.3.0

Weekly downloads
12
License
MIT
Repository
github
Last release
2 years ago

SifoReactOptimizeModelPlugin

sifo-react-optimize-model-plugin

react渲染优化的sifo-model modelPlugin模型插件

sifo-react is 'top-down' rendering type, you can use the modelPlugin @schema-plugin-flow/sifo-mplg-react-optimize to optimize the rerendering in complex project.

In general, you should use it as the last one in the plugins list.

codesandbox.io: sifo-react-mplg-optimize

代码示例

import SifoModel from '@schema-plugin-flow/sifo-model';
//
const plugins = [..., { modelPlugin: reactOptimizeModelPlugin }];
new SifoModel(
  namespace,
  refreshApi,
  schema,
  plugins
);

扩展的 mApi 模型接口

mApi说明

方法名参数/类型返回值类型描述
forceRefresh-mApi的setAttributes和refresh是按标记刷新渲染,调用此方法将强制全部刷新

attributes

属性名类型默认值描述
muteRenderOptimizeMarkboolfalse当节点上此属性为true时,该节点不受渲染优化标记的控制,按照普通渲染模式渲染,但仍然受父组件的渲染与否影响

其它

此模型插件是通过扩展sifo-model的setAttributes方法实现的。

1.3.0

2 years ago

1.2.3

3 years ago

1.2.2

3 years ago

1.2.1

3 years ago

1.2.0

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago