UNPKG

m2-webui

Version:

The package is provided web components and utilities based on vue and element-ui.

30 lines (24 loc) 941 B
"use strict"; exports.__esModule = true; var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; exports.default = { methods: { getSelectedItems: function getSelectedItems() { var _this = this; var items = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; return items.map(function (item) { var _getCurrentItem = _this.getCurrentItem(item), key = _getCurrentItem.key, text = _getCurrentItem.text, tags = _getCurrentItem.tags, modal = _getCurrentItem.modal; return _extends({}, item, { _key: key + "-" + text, _text: text, _tags: tags, _modal: modal }); }); } } };