1.0.0 • Published 5 months ago
@pin-dao/common-components-v2 v1.0.0
common-components-v2
common components|utils|class build project. (based on vue2+elementUI2+vxeTable3)
develop
npm install --registry=https://registry.npmmirror.comlocal
npm run devbuild
npm run libLints and fixes files
npm run lintuse
npm i common-utils-comps --saveuse 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');1.0.0
5 months ago