tvm-popup
v1.0.6
Published
a simple alert with no button
Downloads
4
Readme
npm install --save tvm-popup
import popup from 'tvm-popup'
@param {object} option - one entry param to function popJs
@param {string} [option.type] - accept 'success' 'error' 'loading' ''
@param {string} [option.title]
@param {(string|string[])} [option.desc]
@param {number} [option.width = 80] - max width 100% min width 80px
@param {number} [option.timing = 3000] - autoclose when pop has timing
@param {function} [option.mounted] - before pop's dom into html
@callback callback
@param {function} [option.callback] - after pop's dom removed