vue-admin-core
Version:
A Component Library for Vue 3
17 lines (13 loc) • 464 B
JavaScript
;
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