1.0.12 • Published 4 years ago

xaxpack v1.0.12

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

XaxPack

Some needed js shortcuts and functionalities for any kind of applications. It is good to have this in your backpack.

Installation

Use the package manager npm to install xaxpack.

npm install xaxpack --save
npm update xaxpack

Update Code

// git commit and push 
npm run p
//or
npm version patch
npm publish

Usage

Can be use like this:

window.axios = require('axios')
window.toastr = require('toastr')
import { aMixins, printMsg } from 'xaxpack'

Vue.mixin(aMixins)
printMsg()

import { loadingToastr } from 'xaxpack'

in Vue, you may want to write this.

mounted () {
   this.xaxPackInit()
   ...
}

aMixins

xaxPackInit:            //initial
set:                    //reactive set
selfromdataf:           //vue selectbox
objSearch:              //
objFilter:              //
// setState:            //vuex mutation
con:                    //console.log
isEmpty:                //
// trans:               //
urlSegment:             //
delayed:                //delay it
daterangepickerGlobal:  //
datepickerGlobal:       //
// waitForSocket:       //
post:                   //api post
scrollToBot:            //scroll
tc:                     //try catch

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

1.0.12

4 years ago

1.0.11

4 years ago

1.0.10

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.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago