1.2.4 • Published 7 months ago

@hecom/constantgroup v1.2.4

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

ConstantGroup

npm version Build Status

这是选项值集的管理模块,原始数据是平铺列表,需要经过转换生成一个树状结构。

安装

npm install --save @hecom/constantgroup

使用方法

import ConstantGroup from '@hecom/constantgroup';

接口

  • load: (constantId) => Promise<object>:强制加载指定constantId的选项值集,返回Promise包含生成的选项值集树。
  • loadIfInvalid: (constantId) => Promise<object>:如果不存在已有的选项值集,则调用load强制加载,否则直接返回包含数据的Promise。
  • get: (constantId) => object:获取指定constantId的选项值集树。
  • isValid: (constantId) => boolean:判断指定constantId的选项值集在缓存中是否存在。
1.2.4

7 months ago

1.2.3

1 year ago

1.2.2

1 year ago

1.2.1

2 years ago

1.2.0

3 years ago

1.1.0

4 years ago

1.0.0

5 years ago