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

apom-ui-sdk-plugin

v0.0.10

Published

Agree Tec pom system plubic sdk module

Downloads

3

Readme

apom-ui-sdk-plugin

使用

    npm install apom-ui-sdk-plugin --save
    // 在main.js中引入
    import sdk from 'apom-ui-sdk-plugin'
    sdk.init(Vue)
    
    // 注意:需要放置在挂载之前
    new Vue({
        render: h => h(App),
    }).$mount('#app')


    // sdk中提供一些公共方法(未挂载在vue对象上),使用方法如下
    const { util } =  require('apom-ui-sdk-plugin')
    const { base64, crypto } = util
    
    const result1 = base64.stringToBase64('abcd1234')
    console.log(base64.base64ToString(result1))

公共方法

  • 统一的axios

  • 格式化

    • money

    • rate

      目前只支持百分之、千分之、万分之

    • number

      参考accounting.js

    • date

    • time

    • datetime

      应用的是element-ui的工具类方法

  • 用户相关

  • 权限

filter

  • date
  • datetime
  • time
  • enum

directive

  • permission
  • copy
  • draggable (限定位置)
  • HotKey

component

  • ex-submenu
  • ex-table
  • ex-input
  • edit-row
  • edit-cell
  • edit-column
  • excel
  • ex-select
  • ex-icon
  • rightmenu
  • identify-code
  • markdown
  • ex-describe

    在新版本element-ui中已经加入,和当前使用方式一摸一样

  • ex-result

    在新版本element-ui中已经加入,和当前使用方式一摸一样

预计功能

参考view ui和ant design增加一些组件

  • 重写step
  • 增加statistic
  • 增加countdown
  • 重点优化Result
  • 增加底部工具栏(全局和当前页面)
  • 文本自动省略号(包括table中)
  • xlsx和csv导入导出
  • print调用预览
  • table粘贴
  • 通知菜单(待定)
  • 头像列表
  • 左侧导航菜单【主要功能是层级过多自动收起】
  • 日期相关的方法工具类
  • 底部功能描述列
  • 提供全局样式【默认打开型,即只要添加了此sdk即统一样式】
  • 简化右键菜单的使用

Api说明文档