vue-admin-core
Version:
A Component Library for Vue 3
13 lines (11 loc) • 390 B
JavaScript
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
};
export { conf as default };
//# sourceMappingURL=elem-to-html.mjs.map