UNPKG

yanzhen-design-vue

Version:

19 lines (18 loc) 640 B
"use strict"; Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); const vue = require("vue"); const indicatorCache = vue.reactive({ indicator: void 0 }); function setDefaultIndicator(Content) { const { indicator, ...options } = Content; indicatorCache.indicator = typeof indicator === "function" ? indicator : () => vue.createVNode(indicator, null, null); for (const [key, value] of Object.entries(options)) { indicatorCache[key] = value; } } function getDefaultIndicator() { return indicatorCache; } exports.getDefaultIndicator = getDefaultIndicator; exports.setDefaultIndicator = setDefaultIndicator;