1.0.0 • Published 5 months ago

@pin-dao/common-components-v2 v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

common-components-v2

common components|utils|class build project. (based on vue2+elementUI2+vxeTable3)

develop

npm install --registry=https://registry.npmmirror.com

local

npm run dev

build

npm run lib

Lints and fixes files

npm run lint

use

npm i common-utils-comps --save

use in main.js

import CommonComponents from 'common-utils-comps'

CommonComponents.initGlobal('name'); // Register a global object name (attached to the window object) that contains all public methods. Please define the name yourself and make sure it does not conflict with other global variables.
Vue.use(CommonComponents); // Globally inject 

page use

// components
<template>
  <BackToTop></BackToTop>
</template>
// methods
name.isArray(); // name Definition of the parameters corresponding to the initGlobal function in main.js
// class
import { Audiojs } from 'common-utils-comps';
const audio = new Audiojs();

audio.play('url');