UNPKG

vxe-table-select-area

Version:

一个基于 vxe-table 的可区域选中复制、粘贴的组件

36 lines (35 loc) 665 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.focus = void 0; /* element focus */ var focus = { bind: function bind(el, _ref, vnode) { var value = _ref.value; if (value) { var _focus = value.focus, select = value.select; vnode.context.$nextTick(function () { if (_focus) { el.focus(); } if (select) { el.select(); } }); } }, update: function update(el, _ref2) { var value = _ref2.value; if (value) { var _focus2 = value.focus; if (_focus2) { el.focus(); } } } }; exports.focus = focus;