Files
wechatpay-enterprise-web/node_modules/@ztree/ztree_v3/api/cn/setting.data.render.name.html
jefferyzhao b9bdc8598b first commit
2025-07-31 17:44:12 +08:00

43 lines
1.2 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<div class="apiDetail">
<div>
<h2>
<span>Function(name, treeNode)</span
><span class="path">setting.data.render.</span>name
</h2>
<h3>
概述<span class="h3_info"
>[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js
]</span
>
</h3>
<div class="desc">
<p></p>
<div class="longdesc">
<p>用于使用自定义的方法动态渲染节点名称</p>
<p>默认值null</p>
<p class="highlight_red">v3.5.45+</p>
</div>
</div>
<h3>Function 参数说明</h3>
<div class="desc">
<h4><b>name</b><span>String</span></h4>
<p>对应 zTree 利用 setting.key.name 获取到的节点名称</p>
<h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
<p>待渲染节点的 JSON 数据对象</p>
<p class="highlight_red">针对根进行渲染时treeNode = null</p>
<h4 class="topLine"><b>返回值</b><span>Boolean</span></h4>
<p>返回值是 渲染后的节点名称</p>
</div>
<h3>setting & function 举例</h3>
<pre xmlns=""><code>
var setting = {
data: {
render: function(name,treeNode){
return name + treeNode.id;
}
}
};
......</code></pre>
</div>
</div>