UNPKG

vue-admin-core

Version:
17 lines (13 loc) 464 B
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); function variableToHtml(elem) { const { value = "", label = "" } = elem; return `<span data-w-e-type="variable" data-w-e-is-void data-w-e-is-inline data-value="${value}" data-label="${label}">${label}</span>`; } const conf = { type: "variable", // 节点 type ,重要!!! elemToHtml: variableToHtml }; exports.default = conf; //# sourceMappingURL=elem-to-html.js.map