字典值计算属性

private get dicInfoComp() {
          return (type: any, options: any) => {
            for (const item of options) {
              if (item.dicKey === String(type)) {
                return item.dicValue;
              }
            }
          };
        }
              

  

原文地址:https://www.cnblogs.com/jiaqi1719/p/14656333.html