npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

ding-helper

v1.0.5

Published

helper with dingding

Downloads

1

Readme

使用说明

1、插件安装

npm install ding-helper --save

2、插件引入方式

1、main.js 引入 dinghelper
import 自定义名称 from '插件名称'
2、Vue.use('自定义名称')
3、在需要使用的界面中直接使用该插件(如果需要插件的UI界面)
<ding-helper></ding-helper>

3、插件可传属性

| 属性名称 | type | default | | | -------- | ------ | ----------------------------------- | ------------------------------------------------------------ | | list | array | [{imgUrl: '', href: '/', text: ''}] | 功能列表 示例:list: [{imgUrl: require('../static/tocreate.png'), href: '/index', text: '测试'}] imgUrl: 必须使用require 方式引入图片地址(重要) href: 跳转到的路由界面 (界面地址必须要注册,不能使用没有注册的路由地址) text: 功能描述 如:’手动录入‘,’信息填写‘ | | url | string | '' | 应用的头部图片地址 示例: require('../static/banner.jpg') 必须使用require 方式引入图片地址(重要) |

4、插件方法

引入插件之后可以在vue文件中使用如下几个方法

1、this.$isDingPlatForm()	// 判断当下的运行环境是不是钉钉环境 return: true: 是, false: 否

2、this.$setTitle(title)	// 设置标题, title(string): 标题栏标题文字

3、this.$getCode(corpid)	// 获取免登授权码	corpid 企业ID return{status: true/false,data: code/errMessage}, status: 获取成功为true,获取失败为false; data: 获取成功为授权码,失败为失败信息

4、this.$ddConfig(config)	//JSAPI鉴权,鉴权失败会弹出失败信息;
config 格式为: { agentId: String, corpId: String, timeStamp: timeStamp, nonceStr: String, signature: String, jsApiList: Array}
agentId // 必填,微应用ID
corpId // 必填,企业ID
timeStamp // 必填,生成签名的时间戳
nonceStr // 必填,自定义固定字符串。
signature // 必填,签名
jsApiList // JSAPI鉴权列表 具体鉴权api请参考钉钉开发文档