1.1.17 • Published 4 years ago

vue-component-inspector v1.1.17

Weekly downloads
1
License
MIT
Repository
-
Last release
4 years ago

Vue-Component-Inspector

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

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

基于 Element-UI 开发。

npm.io

安装方法 (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.非响检测

npm.io

视频教程

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

npm.io

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

视图栏

npm.io

1.组件视图开关

2.刷新视图按钮

导航面板

npm.io

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

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

5.审查组件

基本信息面板

npm.io

7.组件名称

8.组件路径

数据面板

npm.io

事件面板

npm.io

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

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

npm.io

1.1.16

4 years ago

1.1.17

4 years ago

1.1.15

4 years ago

1.1.14

4 years ago

1.1.13

4 years ago

1.1.12

4 years ago

1.1.10

4 years ago

1.1.8

4 years ago

1.1.7

4 years ago

1.1.6

4 years ago

1.1.5

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.2

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago