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

@xview-ui/admin-core

v2.0.0

Published

基于Vuejs的中后台开发基础模块和基于element-ui的基础布局组件

Downloads

5

Readme

@xview-ui/admin-core

npm package NPM downloads NPM downloads gzip size License: MIT

基于Vuejs的中后台开发基础模块和基于element-ui的基础布局组件

Install

npm install @xview-ui/admin-core

Usage

import Vue from 'vue'
import store from './store'
import router from './router'
import adminCore from '@xview-ui/admin-core'
// 如果你不需要UI 可以不引入
import adminCoreUI from '@xview-ui/admin-core/ui/element'
Vue.use(adminCoreUI)
Vue.use(adminCore, { store, router })

支持功能

提示: 详细用法请暂时参考开发工具的智能提示使用

import adminCore, {
  formatDate, // 日期时间格式化工具
  getParentComponent, // 通过name属性获取父组件
  getChildComponents, // 获取所有子组件 如果提供name 则获取指定name的子组件
  getSubStr, // 截取指定长度字符 按照1个汉字等于2个字符长度
  getRoute, // 获取路由 该方法为解决:页面加载时 我们无法通过this.$route获取到正确的动态加载的路由
  getSize, // 获取尺寸 如果为数值或数值字符串 添加px单位 否则 直接返回
  navModal, // 支持导航控制的模态框混合
  filterRoutes // 过滤路由
} from '@xview-ui/admin-core'

// adminCoreUI 包含所有组件 也可按需引入
import adminCoreUI, {
  Aside, // 边栏菜单
  Breadcrumb, // 面包屑
  Header, // 头部
  Tabs, // 标签页导航
  FrameLayout, // 框架布局 也许你仅仅需要该组件
  TableView // 表格视图 由搜索栏 动作栏 表格 分页器构成
} from '@xview-ui/admin-core/ui/element'

// 路由配置元数据定义 元数据属性是可选的
{
  title: String, // 标题 -> 浏览器标签页 边栏菜单 标签页导航使用
  notTab: Boolean, // 是否不添加到标签页导航
  notMenu: Boolean, // 是否不添加到边栏菜单
  icon: String // 边栏菜单展示图标
}