提交 1c602af9 编写于 作者: D DCloud_LXH

chore: rich-text scopeId

上级 4491164f
......@@ -149,7 +149,7 @@ export const nodeList2VNode = /*#__PURE__*/ (
return
}
if (!hasOwn(node, 'type') || node.type === 'node') {
let nodeProps = {}
let nodeProps = { [scopeId]: '' }
const tagName = node.name.toLowerCase()
if (!hasOwn(TAGS, tagName)) {
return
......
......@@ -5073,7 +5073,7 @@ const nodeList2VNode = (scopeId, triggerItemClick, nodeList) => {
return;
}
if (!shared.hasOwn(node, "type") || node.type === "node") {
let nodeProps = {};
let nodeProps = { [scopeId]: "" };
const tagName = node.name.toLowerCase();
if (!shared.hasOwn(TAGS, tagName)) {
return;
......@@ -5203,11 +5203,11 @@ var index$p = /* @__PURE__ */ defineBuiltInComponent({
trigger("itemclick", e2, detail);
}
function renderVNode() {
let nodes = props2.nodes;
if (typeof nodes === "string") {
nodes = parseHtml(props2.nodes);
let nodeList = props2.nodes;
if (typeof nodeList === "string") {
nodeList = parseHtml(props2.nodes);
}
_vnode.value = nodeList2VNode(scopeId, triggerItemClick, nodes);
_vnode.value = nodeList2VNode(scopeId, triggerItemClick, nodeList);
}
vue.watch(() => props2.nodes, renderVNode, {
immediate: true
......
......@@ -11760,7 +11760,7 @@ const nodeList2VNode = (scopeId, triggerItemClick, nodeList) => {
return;
}
if (!hasOwn(node, "type") || node.type === "node") {
let nodeProps = {};
let nodeProps = { [scopeId]: "" };
const tagName = node.name.toLowerCase();
if (!hasOwn(TAGS, tagName)) {
return;
......@@ -11890,11 +11890,11 @@ var index$m = /* @__PURE__ */ defineBuiltInComponent({
trigger("itemclick", e2, detail);
}
function renderVNode() {
let nodes = props2.nodes;
if (typeof nodes === "string") {
nodes = parseHtml(props2.nodes);
let nodeList = props2.nodes;
if (typeof nodeList === "string") {
nodeList = parseHtml(props2.nodes);
}
_vnode.value = nodeList2VNode(scopeId, triggerItemClick, nodes);
_vnode.value = nodeList2VNode(scopeId, triggerItemClick, nodeList);
}
watch(() => props2.nodes, renderVNode, {
immediate: true
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册