提交 43b9896e 编写于 作者: Q qiang

chore: build

上级 d7559e5e
......@@ -5024,7 +5024,7 @@ function decodeEntities(htmlString) {
return wrap.innerText || wrap.textContent;
});
}
function parseNodes(nodes, parentNode) {
function parseNodes(nodes, parentNode, scopeId) {
nodes.forEach(function(node) {
if (!shared.isPlainObject(node)) {
return;
......@@ -5051,6 +5051,7 @@ function parseNodes(nodes, parentNode) {
Array.isArray(value) && (value = value.join(" "));
case "style":
elem.setAttribute(name, value);
scopeId && elem.setAttribute(scopeId, "");
break;
default:
if (tagAttrs.indexOf(name) !== -1) {
......@@ -5087,12 +5088,13 @@ var index$p = /* @__PURE__ */ defineBuiltInComponent({
},
props: props$f,
setup(props2) {
const vm = vue.getCurrentInstance();
const rootRef = vue.ref(null);
function _renderNodes(nodes) {
if (typeof nodes === "string") {
nodes = parseHtml(nodes);
}
const nodeList = parseNodes(nodes, document.createDocumentFragment());
const nodeList = parseNodes(nodes, document.createDocumentFragment(), (vm == null ? void 0 : vm.root.type).__scopeId || "");
rootRef.value.firstElementChild.innerHTML = "";
rootRef.value.firstElementChild.appendChild(nodeList);
}
......
......@@ -11365,7 +11365,7 @@ function decodeEntities(htmlString) {
return wrap.innerText || wrap.textContent;
});
}
function parseNodes(nodes, parentNode) {
function parseNodes(nodes, parentNode, scopeId) {
nodes.forEach(function(node) {
if (!isPlainObject(node)) {
return;
......@@ -11392,6 +11392,7 @@ function parseNodes(nodes, parentNode) {
Array.isArray(value) && (value = value.join(" "));
case "style":
elem.setAttribute(name, value);
scopeId && elem.setAttribute(scopeId, "");
break;
default:
if (tagAttrs.indexOf(name) !== -1) {
......@@ -11428,12 +11429,13 @@ var index$m = /* @__PURE__ */ defineBuiltInComponent({
},
props: props$m,
setup(props2) {
const vm = getCurrentInstance();
const rootRef = ref(null);
function _renderNodes(nodes) {
if (typeof nodes === "string") {
nodes = parseHtml(nodes);
}
const nodeList = parseNodes(nodes, document.createDocumentFragment());
const nodeList = parseNodes(nodes, document.createDocumentFragment(), (vm == null ? void 0 : vm.root.type).__scopeId || "");
rootRef.value.firstElementChild.innerHTML = "";
rootRef.value.firstElementChild.appendChild(nodeList);
}
......
'use strict';
var version = "3.0.0-alpha-3021020211012003";
var version = "3.0.0-alpha-3021020211012004";
const STAT_VERSION = version;
const STAT_URL = 'https://tongji.dcloud.io/uni/stat';
......
var version = "3.0.0-alpha-3021020211012003";
var version = "3.0.0-alpha-3021020211012004";
const STAT_VERSION = version;
const STAT_URL = 'https://tongji.dcloud.io/uni/stat';
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册