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

okay-com-lib

v1.3.2

Published

okay快速开发平台UI库

Downloads

7

Readme

okay-com-lib

基于okay框架快速产品开发平台

注意:框架中使用到 v-viewer 大图预览插件,使用本插件之前,请确保你的项目已经安装好了 v-viewer 插件。

安装方式
npm安装:
npm i okay-com-lib -S

yarn安装(推荐):
yarn add okay-com-lib
完整引入
在 main.js 中写入以下内容
import okayUi from 'okay-com-lib'
Vue.use(okayUi)
完整组件列表和引入方式
import Vue from 'vue';
import {
  okayUpload,
  okayBrowse
} from 'okay-com-lib';

Vue.use(okayUpload);
Vue.use(okayBrowse);
页面按需引入
// 引入组件 例如:okayUpload 
import { okayUpload } from 'okay-com-lib'

//注册组件
components: {
  okayUpload
}
1、上传组件
//组件调用
<okay-upload 
  ownerId="fdb6c1cf6b474e9bb84386bc4ac9c6e7" 
  ownerType="A-E10" 
  resType="image" 
  tips="请选择图片" 
  maxNum="8"
>
</okay-upload>

参数说明

| 参数 | 说明 | 类型 |默认值 | | --- | --- | :-- |--- | | ownerId | 主体所属主键值 | string |— | | ownerType | 主体所属类型 | string |— | | resType | 数字资源分类 | string |— | | tips | 上传按钮文字修改 | string |— | | maxNum | 支持上传最大个数 | string/number |— | | useType | 数字资源用途 | string/number |— | | size | 图片区域大小 | string |220px | | type | 编辑:edit,预览:preview | string |edit |

2、预览组件
//引入组件
import { okayBrowse }  from 'okay-com-lib'

//注册组件
components: {
  okayBrowse
}

//组件调用
<okay-browse 
  url="http://pic-bucket.ws.126.net/photo/0005/2022-11-10/HLRCCFI8SBUM0005NOS.jpg" 
  resType="image" 
  attachName="图片描述"
>
</okay-browse>

参数说明

| 参数 | 说明 | 类型 |默认值 | | --- | --- | :-- |--- | | url | 资源路径 | string |— | | resType | 数字资源分类 | string |— | | attachName | 文件标题 | string |— | | size | 图片区域大小 | string |220px | | canClick | 是否开启点击操作 | Boolean |true |