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

vue-component-inspector

v1.1.17

Published

development tool for Vue.js 2

Downloads

10

Readme

Vue-Component-Inspector

Vue-Component-Inspector 是一款 Vue 2.0 开发调试工具,它本身也是一个 Vue 组件。

特点:易安装,兼容性强。

基于 Element-UI 开发。

安装方法 (Vue CLI )

$ npm install vue-component-inspector -S

####在 main.js 中写入以下内容:

import VCI from 'vue-component-inspector'
 
Vue.use(VCI)

####在 app.vue 中写入以下内容:

<div id="app">
    <vue-component-inspector/>
</div>

配置参数

const options = {
  noInspect: [] // 不可审查组件name
};
Vue.use(VCI, options)

使用教程

新增功能

1.非响检测

视频教程

视频地址: https://www.bilibili.com/video/BV19g4y1v7g6

视频地址: https://www.bilibili.com/video/BV19g4y1v7g6

视图栏

1.组件视图开关

2.刷新视图按钮

导航面板

3.通过全局变量 $vm 访问当前选中的组件实例

4.跳转最近的可审查父组件

5.审查组件

基本信息面板

7.组件名称

8.组件路径

数据面板

事件面板

8.DOM事件

9.组件事件

⚠️ 注意事项

可审查组件

为了提高调试工具性能,并非所有的组件都具有可审查的权限。 ⚠️ 只有组件具有name属性,并且不在noInspect中配置的组件具有审查权限( 具有name属性&&(!noInspect) )

使用 Element-UI 作为基础 UI 的项目,建议配置如下:

const options = {
    noInspect:['ElPagination', 'ElDialog', 'ElAutocomplete', 'ElDropdown', 'ElDropdownMenu', 'ElDropdownItem', 'ElMenu', 'ElSubmenu', 'ElMenuItem', 'ElMenuItemGroup', 'ElInput', 'ElInputNumber', 'ElRadio', 'ElRadioGroup', 'ElRadioButton', 'ElCheckbox', 'ElCheckboxButton', 'ElCheckboxGroup', 'ElSwitch', 'ElSelect', 'ElOption', 'ElOptionGroup', 'ElButtonGroup', 'ElTable', 'ElTableColumn', 'ElDatePicker', 'ElTimeSelect', 'ElTimePicker', 'ElPopover', 'ElTooltip', 'ElBreadcrumb', 'ElBreadcrumbItem', 'ElForm', 'ElFormItem', 'ElTabs', 'ElTabPane', 'ElTag', 'ElTree', 'ElAlert', 'ElSlider', 'ElIcon', 'ElRow', 'ElCol', 'ElUpload', 'ElProgress', 'ElSpinner', 'ElBadge', 'ElCard', 'ElRate', 'ElSteps', 'ElStep', 'ElCarousel', 'ElScrollbar', 'ElCarouselItem', 'ElCollapse', 'ElCollapseItem', 'ElCascader', 'ElColorPicker', 'ElTransfer', 'ElContainer', 'ElHeader', 'ElAside', 'ElMain', 'ElFooter', 'ElTimeline', 'ElTimelineItem', 'ElLink', 'ElDivider', 'ElImage', 'ElCalendar', 'ElBacktop', 'ElPageHeader', 'ElCascaderPanel', 'ElAvatar', 'ElDrawer', 'ElPopconfirm', 'ElCollapseTransition', 'ElTreeNode', undefined, 'SvgIcon', 'SidebarItem','ElTableBody','ElTableHeader','ElSelectDropdown']
};
Vue.use(VCI, options)

如果使用其他 UI 库,请自行配置

本地开发

$ npm i
$ npm run dev:dist

感谢大家使用,如有问题联系我