rumtime.js 372 B

123456789
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.isSlot = void 0;
  4. const vue_1 = require("vue");
  5. const isFunction = (val) => typeof val === 'function';
  6. const isObject = (val) => Object.prototype.toString.call(val) === '[object Object]';
  7. const isSlot = (s) => isFunction(s) || (isObject(s) && !vue_1.isVNode(s));
  8. exports.isSlot = isSlot;