UNPKG

vue-admin-core

Version:
23 lines (19 loc) 554 B
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); function parseHtml(elem) { const value = elem.getAttribute("data-value") || ""; const label = elem.getAttribute("data-label") || ""; return { type: "variable", value, label: label || elem.innerHTML, children: [{ text: "" }] // void node 必须有一个空白 text }; } const parseHtmlConf = { selector: "span[data-w-e-type='variable']", parseElemHtml: parseHtml }; exports.default = parseHtmlConf; //# sourceMappingURL=parse-elem-html.js.map