exportHelper.js 328 B

1234567891011
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. // runtime helper for setting properties on components
  4. // in a tree-shakable way
  5. exports.default = (sfc, props) => {
  6. const target = sfc.__vccOpts || sfc;
  7. for (const [key, val] of props) {
  8. target[key] = val;
  9. }
  10. return target;
  11. };