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

oit-permission-vue

v1.0.10

Published

the Vue version of [oit-permission](https://www.npmjs.com/package/oit-permission)

Downloads

3

Readme

oit-permission-vue

the Vue version of oit-permission

Install

npm i oit-permission-vue

// or

yarn add oit-permission-vue

Usage Example

import oit permission component

// entry file such as main.js
import 'oit-permission-vue/dist/oit-permission-vue.css';
import permission from 'oit-permission-vue';
Vue.use(permission);

use oit permission component

<template>
  <div id="app">
    <oit-permission :handleApply="handleApply">
      <template slot="header"> 暂无权限,申请后即可使用区服导航服务 </template>
      <template slot="description" class="description">
        区服导航服务,可以提供游戏运营者一个可视化的方式来配置服务器结构和状态,以便可以快速指引玩家选择服务器并开始玩游戏。
      </template>
      <template slot="button"> 提交申请 </template>
    </oit-permission>
  </div>
</template>

<script>
export default {
  methods: {
    handleApply() {
      console.log('apply');
    },
  },
};
</script>

Parameters

props

| Prop | Introduction | Type | Default Value | | ----------- | -------------------------------------------------------------------------------------------------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | type | default: The entire subsystem has no permissions content: No permission for some module | String | default | | thumb | Thumbnail | String | https://cdn.jsdelivr.net/gh/cody1991/images@master/20210826/f0984492bd5f035d.uxjmxkl1cow.svg | | handleApply | handle the event of click the apply button | Function | empty function: ()={ } |

slots

header

<slot name="header">暂无权限,申请后即可使用数据管理与合规治理服务</slot>

introduction

<slot name="description">
  数据管理与合规治理服务,能帮助使用者对元数据、数据日志以及数据权限审批进行统一管理,为游戏产品提供数据合规处理相关能力。
</slot>

button

<slot name="button">提交申请</slot>