字典值计算属性

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

  

posted @ 2021-04-14 09:17  jiaqiq  阅读(30)  评论(0编辑  收藏  举报