UNPKG

vimo-dt

Version:

A Vue2.x UI Project For Mobile & HyBrid

20 lines (17 loc) 499 B
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = function (slots) { if ((0, _type.isPresent)(slots) && (0, _type.isObject)(slots)) { var slotKeys = Object.keys(slots); slotKeys.forEach(function (slotKey) { if (slotKey !== 'default') { slots[slotKey].forEach(function (item) { item.elm && item.elm.setAttribute && item.elm.setAttribute(slotKey, ''); }); } }); } }; var _type = require('./type');