lodash#flow JavaScript Examples

The following examples show how to use lodash#flow. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: index.js    From hzero-front with Apache License 2.0 6 votes vote down vote up
constructor(props) {
    super(props);
    const pageConfig = this.pageConfig();
    class SearchBasicForm extends BaseFilterForm {}
    const formWrapper = pageConfig.cacheKey
      ? flow(
          cacheComponent({ cacheKey: pageConfig.cacheKey }),
          Form.create({ fieldNameProp: null })
        )
      : Form.create({ fieldNameProp: null });
    this.FilterForm = formWrapper(SearchBasicForm);
    this.pageConfig = pageConfig;
    this.filterForm = {};
    this.state = {
      selectedRows: [],
    };
    this.customConstructor(props); // 初始化自定义数据
  }
Example #2
Source File: bootstrap.js    From atomize with MIT License 5 votes vote down vote up
createStyleRule = flow([createCssRule, createEffectWrapper, createMediaWrapper])