Socket
Book a DemoInstallSign in
Socket

yee-avatar-components

Package Overview
Dependencies
Maintainers
0
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yee-avatar-components

易宝用户组件,整合飞书及权限中心用户信息,提供用户小头像及用户名片组件,后续丰富其他组件

0.0.1
latest
npmnpm
Version published
Weekly downloads
1
Maintainers
0
Weekly downloads
 
Created
Source

yee-user

易宝用户组件,整合飞书及权限中心用户信息,提供用户小头像及用户名片组件,后续丰富其他组件

Setting

飞书权限管理

若要使用该组件,需要创建对应飞书应用,并且开通对应权限控制

  • 获取用户 user ID
  • 获取用户受雇信息
  • 获取用户邮箱信息
  • 获取用户 user ID
  • 获取用户手机号
  • 获取成员名片信息

Install

pnpm install yee-user-components

Usage

Init

具体可参考Playground

<body>
  <!-- index.html -->
  <script src="https://lf1-cdn-tos.bytegoofy.com/goofy/locl/lark/external_js_sdk/h5-js-sdk-1.1.0-alpha.4.js"></script>
</body>

import Vue from "vue";
import axios from "axios"
import "yee-user-components/dist/style.css";
import YeeUser from "yee-user-components";

// 可在拦截器中配置token、baseUrl
axios.defaults.headers.yuiassotoken = "xxx"
axios.defaults.baseURL = "xxxx";

YeeUser.defaults.axios = axios;

Vue.use(YeeUser, {
  appId: "xxxx", // 飞书应用id
});

Mouted

<yee-user-avatar login-name="xxx" />

FAQs

Package last updated on 13 Jan 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.