New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

ele_test

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ele_test

A Vue.js project

latest
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

element

基于element开发的自定义组件, 安装方式与element相同

使用

import Element from 'element-custom';
import Vue from 'vue';

Vue.use(Element)

开发步骤

1.在components插入相关的组件custom.vue

2.如果自定义组件基于element二次封装, 在文件中要单独引入:

import { Dialog as ElDialog, Button as ElButton } from 'element-ui';
  • main.js中注册组件
const install = function(Vue) {
    Vue.use(Element);
    .....// other component
    Vue.component('You component name', CustomComponent);
}

调试方式

App.vue中注册, 之后

yarn start

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# build for production and view the bundle analyzer report
npm run build --report

For a detailed explanation on how things work, check out the guide and docs for vue-loader.

FAQs

Package last updated on 14 Mar 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts