global setting add capture

This commit is contained in:
梁灏 2019-09-17 18:16:13 +08:00
parent 99fcf3b4b9
commit 3fc2747d7a

View file

@ -173,6 +173,7 @@ const install = function(Vue, opts = {}) {
Vue.prototype.$IVIEW = { Vue.prototype.$IVIEW = {
size: opts.size || '', size: opts.size || '',
transfer: 'transfer' in opts ? opts.transfer : '', transfer: 'transfer' in opts ? opts.transfer : '',
capture: 'capture' in opts ? opts.capture : true,
select: { select: {
arrow: opts.select ? opts.select.arrow ? opts.select.arrow : '' : '', arrow: opts.select ? opts.select.arrow ? opts.select.arrow : '' : '',
customArrow: opts.select ? opts.select.customArrow ? opts.select.customArrow : '' : '', customArrow: opts.select ? opts.select.customArrow ? opts.select.customArrow : '' : '',