util.wxs 143 B

12345
  1. module.exports.getTreeClass = function (level) {
  2. if (level === 0) return 'leaf';
  3. if (level === 1) return 'parent';
  4. return 'ancestor';
  5. };