214 lines
34 KiB
JavaScript
214 lines
34 KiB
JavaScript
|
import{b as l,r as p,o as N,h as q,e as s,d as r,z as o,L as d,f as n,t as y,g as t}from"./vendor.e7911ee1.js";const L={class:"markdown-body"},D=n("pre",null,[n("code",{"v-pre":""},[n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"<"),t("template")]),n("span",{class:"token punctuation"},">")]),t(`
|
||
|
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"<"),t("lay-tree")]),t(`
|
||
|
`),n("span",{class:"token attr-name"},":data"),n("span",{class:"token attr-value"},[n("span",{class:"token punctuation attr-equals"},"="),n("span",{class:"token punctuation"},'"'),t("data"),n("span",{class:"token punctuation"},'"')]),t(`
|
||
|
`),n("span",{class:"token attr-name"},":onlyIconControl"),n("span",{class:"token attr-value"},[n("span",{class:"token punctuation attr-equals"},"="),n("span",{class:"token punctuation"},'"'),t("iconCtrl"),n("span",{class:"token punctuation"},'"')]),t(`
|
||
|
`),n("span",{class:"token attr-name"},":showLine"),n("span",{class:"token attr-value"},[n("span",{class:"token punctuation attr-equals"},"="),n("span",{class:"token punctuation"},'"'),t("showLine"),n("span",{class:"token punctuation"},'"')]),t(`
|
||
|
`),n("span",{class:"token attr-name"},":showCheckbox"),n("span",{class:"token attr-value"},[n("span",{class:"token punctuation attr-equals"},"="),n("span",{class:"token punctuation"},'"'),t("showCheckbox"),n("span",{class:"token punctuation"},'"')]),t(`
|
||
|
`),n("span",{class:"token attr-name"},[n("span",{class:"token namespace"},"v-model:"),t("checkedKeys")]),n("span",{class:"token attr-value"},[n("span",{class:"token punctuation attr-equals"},"="),n("span",{class:"token punctuation"},'"'),t("checkedKeys"),n("span",{class:"token punctuation"},'"')]),t(`
|
||
|
`),n("span",{class:"token attr-name"},"@node-click"),n("span",{class:"token attr-value"},[n("span",{class:"token punctuation attr-equals"},"="),n("span",{class:"token punctuation"},'"'),t("handleClick"),n("span",{class:"token punctuation"},'"')]),t(`
|
||
|
`),n("span",{class:"token attr-name"},":disabled"),n("span",{class:"token attr-value"},[n("span",{class:"token punctuation attr-equals"},"="),n("span",{class:"token punctuation"},'"'),t("disabled"),n("span",{class:"token punctuation"},'"')]),t(`
|
||
|
`),n("span",{class:"token punctuation"},">")]),t(`
|
||
|
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"</"),t("lay-tree")]),n("span",{class:"token punctuation"},">")]),t(`
|
||
|
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"<"),t("br")]),n("span",{class:"token punctuation"},"/>")]),t(`
|
||
|
\u662F\u5426\u53EF\u5F00\u542F\u9009\u62E9\u6846\uFF1A
|
||
|
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"<"),t("br")]),n("span",{class:"token punctuation"},"/>")]),t(`
|
||
|
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"<"),t("lay-switch")]),t(),n("span",{class:"token attr-name"},"v-model"),n("span",{class:"token attr-value"},[n("span",{class:"token punctuation attr-equals"},"="),n("span",{class:"token punctuation"},'"'),t("showCheckbox"),n("span",{class:"token punctuation"},'"')]),n("span",{class:"token punctuation"},">")]),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"</"),t("lay-switch")]),n("span",{class:"token punctuation"},">")]),t(`
|
||
|
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"<"),t("br")]),n("span",{class:"token punctuation"},"/>")]),t(`
|
||
|
checkedKeys\uFF1A
|
||
|
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"<"),t("pre")]),n("span",{class:"token punctuation"},">")]),t(`
|
||
|
{{ checkedKeys }}
|
||
|
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"</"),t("pre")]),n("span",{class:"token punctuation"},">")]),t(`
|
||
|
\u53EA\u80FD\u901A\u8FC7\u8282\u70B9\u5DE6\u4FA7\u56FE\u6807\u6765\u5C55\u5F00\u6536\u7F29\uFF1A
|
||
|
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"<"),t("br")]),n("span",{class:"token punctuation"},"/>")]),t(`
|
||
|
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"<"),t("lay-switch")]),t(),n("span",{class:"token attr-name"},"v-model"),n("span",{class:"token attr-value"},[n("span",{class:"token punctuation attr-equals"},"="),n("span",{class:"token punctuation"},'"'),t("iconCtrl"),n("span",{class:"token punctuation"},'"')]),n("span",{class:"token punctuation"},">")]),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"</"),t("lay-switch")]),n("span",{class:"token punctuation"},">")]),t(`
|
||
|
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"<"),t("br")]),n("span",{class:"token punctuation"},"/>")]),t(`
|
||
|
\u662F\u5426\u5F00\u542F\u8FDE\u63A5\u7EBF\uFF1A
|
||
|
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"<"),t("br")]),n("span",{class:"token punctuation"},"/>")]),t(`
|
||
|
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"<"),t("lay-switch")]),t(),n("span",{class:"token attr-name"},"v-model"),n("span",{class:"token attr-value"},[n("span",{class:"token punctuation attr-equals"},"="),n("span",{class:"token punctuation"},'"'),t("showLine"),n("span",{class:"token punctuation"},'"')]),n("span",{class:"token punctuation"},">")]),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"</"),t("lay-switch")]),n("span",{class:"token punctuation"},">")]),t(`
|
||
|
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"<"),t("br")]),n("span",{class:"token punctuation"},"/>")]),t(`
|
||
|
\u5F53\u524D\u70B9\u51FB\u7684\u8282\u70B9\uFF1A
|
||
|
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"<"),t("br")]),n("span",{class:"token punctuation"},"/>")]),t(`
|
||
|
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"<"),t("pre")]),n("span",{class:"token punctuation"},">")]),t(`
|
||
|
{{ clickNode }}
|
||
|
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"</"),t("pre")]),n("span",{class:"token punctuation"},">")]),t(`
|
||
|
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"<"),t("br")]),n("span",{class:"token punctuation"},"/>")]),t(`
|
||
|
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"</"),t("template")]),n("span",{class:"token punctuation"},">")]),t(`
|
||
|
|
||
|
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"<"),t("script")]),t(),n("span",{class:"token attr-name"},"setup"),n("span",{class:"token punctuation"},">")]),n("span",{class:"token script"},[n("span",{class:"token language-javascript"},[t(`
|
||
|
`),n("span",{class:"token keyword"},"import"),t(),n("span",{class:"token punctuation"},"{"),t(" ref "),n("span",{class:"token punctuation"},"}"),t(),n("span",{class:"token keyword"},"from"),t(),n("span",{class:"token string"},"'vue'"),n("span",{class:"token punctuation"},";"),t(`
|
||
|
|
||
|
`),n("span",{class:"token keyword"},"const"),t(" data "),n("span",{class:"token operator"},"="),t(),n("span",{class:"token function"},"ref"),n("span",{class:"token punctuation"},"("),n("span",{class:"token punctuation"},"["),n("span",{class:"token punctuation"},"{"),t(`
|
||
|
title`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token string"},"'\u4E00\u7EA71'"),n("span",{class:"token punctuation"},","),t(`
|
||
|
id`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token number"},"1"),n("span",{class:"token punctuation"},","),t(`
|
||
|
field`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token string"},"'name1'"),n("span",{class:"token punctuation"},","),t(`
|
||
|
checked`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token boolean"},"true"),n("span",{class:"token punctuation"},","),t(`
|
||
|
spread`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token boolean"},"true"),n("span",{class:"token punctuation"},","),t(`
|
||
|
children`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token punctuation"},"["),n("span",{class:"token punctuation"},"{"),t(`
|
||
|
title`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token string"},"'\u4E8C\u7EA71-1 \u53EF\u5141\u8BB8\u8DF3\u8F6C'"),n("span",{class:"token punctuation"},","),t(`
|
||
|
id`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token number"},"3"),n("span",{class:"token punctuation"},","),t(`
|
||
|
field`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token string"},"'name11'"),n("span",{class:"token punctuation"},","),t(`
|
||
|
href`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token string"},"'https://www.layui.com/'"),n("span",{class:"token punctuation"},","),t(`
|
||
|
children`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token punctuation"},"["),n("span",{class:"token punctuation"},"{"),t(`
|
||
|
title`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token string"},"'\u4E09\u7EA71-1-3'"),n("span",{class:"token punctuation"},","),t(`
|
||
|
id`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token number"},"23"),n("span",{class:"token punctuation"},","),t(`
|
||
|
field`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token string"},"''"),n("span",{class:"token punctuation"},","),t(`
|
||
|
children`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token punctuation"},"["),n("span",{class:"token punctuation"},"{"),t(`
|
||
|
title`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token string"},"'\u56DB\u7EA71-1-3-1'"),n("span",{class:"token punctuation"},","),t(`
|
||
|
id`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token number"},"24"),n("span",{class:"token punctuation"},","),t(`
|
||
|
field`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token string"},"''"),n("span",{class:"token punctuation"},","),t(`
|
||
|
children`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token punctuation"},"["),n("span",{class:"token punctuation"},"{"),t(`
|
||
|
title`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token string"},"'\u4E94\u7EA71-1-3-1-1'"),n("span",{class:"token punctuation"},","),t(`
|
||
|
id`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token number"},"30"),n("span",{class:"token punctuation"},","),t(`
|
||
|
field`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token string"},"''"),t(`
|
||
|
`),n("span",{class:"token punctuation"},"}"),n("span",{class:"token punctuation"},","),t(`
|
||
|
`),n("span",{class:"token punctuation"},"{"),t(`
|
||
|
title`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token string"},"'\u4E94\u7EA71-1-3-1-2'"),n("span",{class:"token punctuation"},","),t(`
|
||
|
id`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token number"},"31"),n("span",{class:"token punctuation"},","),t(`
|
||
|
field`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token string"},"''"),t(`
|
||
|
`),n("span",{class:"token punctuation"},"}"),n("span",{class:"token punctuation"},"]"),t(`
|
||
|
`),n("span",{class:"token punctuation"},"}"),n("span",{class:"token punctuation"},"]"),t(`
|
||
|
`),n("span",{class:"token punctuation"},"}"),n("span",{class:"token punctuation"},","),t(`
|
||
|
`),n("span",{class:"token punctuation"},"{"),t(`
|
||
|
title`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token string"},"'\u4E09\u7EA71-1-1'"),n("span",{class:"token punctuation"},","),t(`
|
||
|
id`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token number"},"7"),n("span",{class:"token punctuation"},","),t(`
|
||
|
field`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token string"},"''"),n("span",{class:"token punctuation"},","),t(`
|
||
|
children`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token punctuation"},"["),n("span",{class:"token punctuation"},"{"),t(`
|
||
|
title`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token string"},"'\u56DB\u7EA71-1-1-1 \u53EF\u5141\u8BB8\u8DF3\u8F6C'"),n("span",{class:"token punctuation"},","),t(`
|
||
|
id`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token number"},"15"),n("span",{class:"token punctuation"},","),t(`
|
||
|
field`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token string"},"''"),n("span",{class:"token punctuation"},","),t(`
|
||
|
href`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token string"},"'https://www.layui.com/doc/'"),t(`
|
||
|
`),n("span",{class:"token punctuation"},"}"),n("span",{class:"token punctuation"},"]"),t(`
|
||
|
`),n("span",{class:"token punctuation"},"}"),n("span",{class:"token punctuation"},","),t(`
|
||
|
`),n("span",{class:"token punctuation"},"{"),t(`
|
||
|
title`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token string"},"'\u4E09\u7EA71-1-2'"),n("span",{class:"token punctuation"},","),t(`
|
||
|
id`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token number"},"8"),n("span",{class:"token punctuation"},","),t(`
|
||
|
field`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token string"},"''"),n("span",{class:"token punctuation"},","),t(`
|
||
|
children`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token punctuation"},"["),n("span",{class:"token punctuation"},"{"),t(`
|
||
|
title`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token string"},"'\u56DB\u7EA71-1-2-1'"),n("span",{class:"token punctuation"},","),t(`
|
||
|
id`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token number"},"32"),n("span",{class:"token punctuation"},","),t(`
|
||
|
field`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token string"},"''"),t(`
|
||
|
`),n("span",{class:"token punctuation"},"}"),n("span",{class:"token punctuation"},"]"),t(`
|
||
|
`),n("span",{class:"token punctuation"},"}"),n("span",{class:"token punctuation"},"]"),t(`
|
||
|
`),n("span",{class:"token punctuation"},"}"),n("span",{class:"token punctuation"},","),t(`
|
||
|
`),n("span",{class:"token punctuation"},"{"),t(`
|
||
|
title`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token string"},"'\u4E8C\u7EA71-2'"),n("span",{class:"token punctuation"},","),t(`
|
||
|
id`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token number"},"4"),n("span",{class:"token punctuation"},","),t(`
|
||
|
spread`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token boolean"},"true"),n("span",{class:"token punctuation"},","),t(`
|
||
|
children`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token punctuation"},"["),n("span",{class:"token punctuation"},"{"),t(`
|
||
|
title`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token string"},"'\u4E09\u7EA71-2-1'"),n("span",{class:"token punctuation"},","),t(`
|
||
|
id`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token number"},"9"),n("span",{class:"token punctuation"},","),t(`
|
||
|
field`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token string"},"''"),n("span",{class:"token punctuation"},","),t(`
|
||
|
disabled`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token boolean"},"true"),t(`
|
||
|
`),n("span",{class:"token punctuation"},"}"),n("span",{class:"token punctuation"},","),t(`
|
||
|
`),n("span",{class:"token punctuation"},"{"),t(`
|
||
|
title`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token string"},"'\u4E09\u7EA71-2-2'"),n("span",{class:"token punctuation"},","),t(`
|
||
|
id`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token number"},"10"),n("span",{class:"token punctuation"},","),t(`
|
||
|
field`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token string"},"''"),t(`
|
||
|
`),n("span",{class:"token punctuation"},"}"),n("span",{class:"token punctuation"},"]"),t(`
|
||
|
`),n("span",{class:"token punctuation"},"}"),n("span",{class:"token punctuation"},","),t(`
|
||
|
`),n("span",{class:"token punctuation"},"{"),t(`
|
||
|
title`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token string"},"'\u4E8C\u7EA71-3'"),n("span",{class:"token punctuation"},","),t(`
|
||
|
id`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token number"},"20"),n("span",{class:"token punctuation"},","),t(`
|
||
|
field`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token string"},"''"),n("span",{class:"token punctuation"},","),t(`
|
||
|
children`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token punctuation"},"["),n("span",{class:"token punctuation"},"{"),t(`
|
||
|
title`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token string"},"'\u4E09\u7EA71-3-1'"),n("span",{class:"token punctuation"},","),t(`
|
||
|
id`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token number"},"21"),n("span",{class:"token punctuation"},","),t(`
|
||
|
field`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token string"},"''"),t(`
|
||
|
`),n("span",{class:"token punctuation"},"}"),n("span",{class:"token punctuation"},","),t(`
|
||
|
`),n("span",{class:"token punctuation"},"{"),t(`
|
||
|
title`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token string"},"'\u4E09\u7EA71-3-2'"),n("span",{class:"token punctuation"},","),t(`
|
||
|
id`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token number"},"22"),n("span",{class:"token punctuation"},","),t(`
|
||
|
field`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token string"},"''"),t(`
|
||
|
`),n("span",{class:"token punctuation"},"}"),n("span",{class:"token punctuation"},"]"),t(`
|
||
|
`),n("span",{class:"token punctuation"},"}"),n("span",{class:"token punctuation"},"]"),t(`
|
||
|
`),n("span",{class:"token punctuation"},"}"),n("span",{class:"token punctuation"},","),t(`
|
||
|
`),n("span",{class:"token punctuation"},"{"),t(`
|
||
|
title`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token string"},"'\u4E00\u7EA72'"),n("span",{class:"token punctuation"},","),t(`
|
||
|
id`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token number"},"2"),n("span",{class:"token punctuation"},","),t(`
|
||
|
field`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token string"},"''"),n("span",{class:"token punctuation"},","),t(`
|
||
|
spread`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token boolean"},"true"),n("span",{class:"token punctuation"},","),t(`
|
||
|
children`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token punctuation"},"["),n("span",{class:"token punctuation"},"{"),t(`
|
||
|
title`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token string"},"'\u4E8C\u7EA72-1'"),n("span",{class:"token punctuation"},","),t(`
|
||
|
id`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token number"},"5"),n("span",{class:"token punctuation"},","),t(`
|
||
|
field`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token string"},"''"),n("span",{class:"token punctuation"},","),t(`
|
||
|
spread`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token boolean"},"true"),n("span",{class:"token punctuation"},","),t(`
|
||
|
children`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token punctuation"},"["),n("span",{class:"token punctuation"},"{"),t(`
|
||
|
title`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token string"},"'\u4E09\u7EA72-1-1'"),n("span",{class:"token punctuation"},","),t(`
|
||
|
id`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token number"},"11"),n("span",{class:"token punctuation"},","),t(`
|
||
|
field`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token string"},"''"),t(`
|
||
|
`),n("span",{class:"token punctuation"},"}"),n("span",{class:"token punctuation"},","),t(`
|
||
|
`),n("span",{class:"token punctuation"},"{"),t(`
|
||
|
title`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token string"},"'\u4E09\u7EA72-1-2'"),n("span",{class:"token punctuation"},","),t(`
|
||
|
id`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token number"},"12"),n("span",{class:"token punctuation"},","),t(`
|
||
|
field`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token string"},"''"),t(`
|
||
|
`),n("span",{class:"token punctuation"},"}"),n("span",{class:"token punctuation"},"]"),t(`
|
||
|
`),n("span",{class:"token punctuation"},"}"),n("span",{class:"token punctuation"},","),t(`
|
||
|
`),n("span",{class:"token punctuation"},"{"),t(`
|
||
|
title`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token string"},"'\u4E8C\u7EA72-2'"),n("span",{class:"token punctuation"},","),t(`
|
||
|
id`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token number"},"6"),n("span",{class:"token punctuation"},","),t(`
|
||
|
field`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token string"},"''"),n("span",{class:"token punctuation"},","),t(`
|
||
|
children`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token punctuation"},"["),n("span",{class:"token punctuation"},"{"),t(`
|
||
|
title`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token string"},"'\u4E09\u7EA72-2-1'"),n("span",{class:"token punctuation"},","),t(`
|
||
|
id`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token number"},"13"),n("span",{class:"token punctuation"},","),t(`
|
||
|
field`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token string"},"''"),t(`
|
||
|
`),n("span",{class:"token punctuation"},"}"),n("span",{class:"token punctuation"},","),t(`
|
||
|
`),n("span",{class:"token punctuation"},"{"),t(`
|
||
|
title`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token string"},"'\u4E09\u7EA72-2-2'"),n("span",{class:"token punctuation"},","),t(`
|
||
|
id`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token number"},"14"),n("span",{class:"token punctuation"},","),t(`
|
||
|
field`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token string"},"''"),n("span",{class:"token punctuation"},","),t(`
|
||
|
disabled`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token boolean"},"true"),t(`
|
||
|
`),n("span",{class:"token punctuation"},"}"),n("span",{class:"token punctuation"},"]"),t(`
|
||
|
`),n("span",{class:"token punctuation"},"}"),n("span",{class:"token punctuation"},"]"),t(`
|
||
|
`),n("span",{class:"token punctuation"},"}"),n("span",{class:"token punctuation"},","),t(`
|
||
|
`),n("span",{class:"token punctuation"},"{"),t(`
|
||
|
title`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token string"},"'\u4E00\u7EA73'"),n("span",{class:"token punctuation"},","),t(`
|
||
|
id`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token number"},"16"),n("span",{class:"token punctuation"},","),t(`
|
||
|
field`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token string"},"''"),n("span",{class:"token punctuation"},","),t(`
|
||
|
children`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token punctuation"},"["),n("span",{class:"token punctuation"},"{"),t(`
|
||
|
title`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token string"},"'\u4E8C\u7EA73-1'"),n("span",{class:"token punctuation"},","),t(`
|
||
|
id`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token number"},"17"),n("span",{class:"token punctuation"},","),t(`
|
||
|
field`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token string"},"''"),n("span",{class:"token punctuation"},","),t(`
|
||
|
fixed`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token boolean"},"true"),n("span",{class:"token punctuation"},","),t(`
|
||
|
children`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token punctuation"},"["),n("span",{class:"token punctuation"},"{"),t(`
|
||
|
title`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token string"},"'\u4E09\u7EA73-1-1'"),n("span",{class:"token punctuation"},","),t(`
|
||
|
id`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token number"},"18"),n("span",{class:"token punctuation"},","),t(`
|
||
|
field`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token string"},"''"),t(`
|
||
|
`),n("span",{class:"token punctuation"},"}"),n("span",{class:"token punctuation"},","),t(`
|
||
|
`),n("span",{class:"token punctuation"},"{"),t(`
|
||
|
title`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token string"},"'\u4E09\u7EA73-1-2'"),n("span",{class:"token punctuation"},","),t(`
|
||
|
id`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token number"},"19"),n("span",{class:"token punctuation"},","),t(`
|
||
|
field`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token string"},"''"),t(`
|
||
|
`),n("span",{class:"token punctuation"},"}"),n("span",{class:"token punctuation"},"]"),t(`
|
||
|
`),n("span",{class:"token punctuation"},"}"),n("span",{class:"token punctuation"},","),t(`
|
||
|
`),n("span",{class:"token punctuation"},"{"),t(`
|
||
|
title`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token string"},"'\u4E8C\u7EA73-2'"),n("span",{class:"token punctuation"},","),t(`
|
||
|
id`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token number"},"27"),n("span",{class:"token punctuation"},","),t(`
|
||
|
field`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token string"},"''"),n("span",{class:"token punctuation"},","),t(`
|
||
|
children`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token punctuation"},"["),n("span",{class:"token punctuation"},"{"),t(`
|
||
|
title`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token string"},"'\u4E09\u7EA73-2-1'"),n("span",{class:"token punctuation"},","),t(`
|
||
|
id`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token number"},"28"),n("span",{class:"token punctuation"},","),t(`
|
||
|
field`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token string"},"''"),t(`
|
||
|
`),n("span",{class:"token punctuation"},"}"),n("span",{class:"token punctuation"},","),t(`
|
||
|
`),n("span",{class:"token punctuation"},"{"),t(`
|
||
|
title`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token string"},"'\u4E09\u7EA73-2-2'"),n("span",{class:"token punctuation"},","),t(`
|
||
|
id`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token number"},"29"),n("span",{class:"token punctuation"},","),t(`
|
||
|
field`),n("span",{class:"token operator"},":"),t(),n("span",{class:"token string"},"''"),t(`
|
||
|
`),n("span",{class:"token punctuation"},"}"),n("span",{class:"token punctuation"},"]"),t(`
|
||
|
`),n("span",{class:"token punctuation"},"}"),n("span",{class:"token punctuation"},"]"),t(`
|
||
|
`),n("span",{class:"token punctuation"},"}"),n("span",{class:"token punctuation"},"]"),n("span",{class:"token punctuation"},")"),n("span",{class:"token punctuation"},";"),t(`
|
||
|
|
||
|
`),n("span",{class:"token keyword"},"const"),t(" iconCtrl "),n("span",{class:"token operator"},"="),t(),n("span",{class:"token function"},"ref"),n("span",{class:"token punctuation"},"("),n("span",{class:"token boolean"},"false"),n("span",{class:"token punctuation"},")"),n("span",{class:"token punctuation"},";"),t(`
|
||
|
`),n("span",{class:"token keyword"},"const"),t(" showLine "),n("span",{class:"token operator"},"="),t(),n("span",{class:"token function"},"ref"),n("span",{class:"token punctuation"},"("),n("span",{class:"token boolean"},"true"),n("span",{class:"token punctuation"},")"),n("span",{class:"token punctuation"},";"),t(`
|
||
|
`),n("span",{class:"token keyword"},"const"),t(" clickNode "),n("span",{class:"token operator"},"="),t(),n("span",{class:"token function"},"ref"),n("span",{class:"token punctuation"},"("),n("span",{class:"token keyword"},"null"),n("span",{class:"token punctuation"},")"),n("span",{class:"token punctuation"},";"),t(`
|
||
|
`),n("span",{class:"token keyword"},"const"),t(" showCheckbox "),n("span",{class:"token operator"},"="),t(),n("span",{class:"token function"},"ref"),n("span",{class:"token punctuation"},"("),n("span",{class:"token boolean"},"true"),n("span",{class:"token punctuation"},")"),n("span",{class:"token punctuation"},";"),t(`
|
||
|
`),n("span",{class:"token keyword"},"const"),t(" checkedKeys "),n("span",{class:"token operator"},"="),t(),n("span",{class:"token function"},"ref"),n("span",{class:"token punctuation"},"("),n("span",{class:"token punctuation"},"["),n("span",{class:"token number"},"1"),n("span",{class:"token punctuation"},"]"),n("span",{class:"token punctuation"},")"),n("span",{class:"token punctuation"},";"),t(`
|
||
|
`),n("span",{class:"token keyword"},"const"),t(" disabled "),n("span",{class:"token operator"},"="),t(),n("span",{class:"token function"},"ref"),n("span",{class:"token punctuation"},"("),n("span",{class:"token boolean"},"false"),n("span",{class:"token punctuation"},")"),n("span",{class:"token punctuation"},";"),t(`
|
||
|
|
||
|
`),n("span",{class:"token keyword"},"function"),t(),n("span",{class:"token function"},"handleClick"),n("span",{class:"token punctuation"},"("),n("span",{class:"token parameter"},"node"),n("span",{class:"token punctuation"},")"),t(),n("span",{class:"token punctuation"},"{"),t(`
|
||
|
clickNode`),n("span",{class:"token punctuation"},"."),t("value "),n("span",{class:"token operator"},"="),t(` node
|
||
|
`),n("span",{class:"token punctuation"},"}"),t(`
|
||
|
`)])]),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"</"),t("script")]),n("span",{class:"token punctuation"},">")]),t(`
|
||
|
`)])],-1),I=n("br",null,null,-1),T=t(" \u662F\u5426\u53EF\u5F00\u542F\u9009\u62E9\u6846\uFF1A "),U=n("br",null,null,-1),A=n("br",null,null,-1),B=t(" checkedKeys\uFF1A "),j=t(" \u53EA\u80FD\u901A\u8FC7\u8282\u70B9\u5DE6\u4FA7\u56FE\u6807\u6765\u5C55\u5F00\u6536\u7F29\uFF1A "),z=n("br",null,null,-1),E=n("br",null,null,-1),P=t(" \u662F\u5426\u5F00\u542F\u8FDE\u63A5\u7EBF\uFF1A "),R=n("br",null,null,-1),S=n("br",null,null,-1),F=t(" \u5F53\u524D\u70B9\u51FB\u7684\u8282\u70B9\uFF1A "),G=n("br",null,null,-1),H=n("br",null,null,-1),J=n("table",null,[n("thead",null,[n("tr",null,[n("th",null,"Name"),n("th",null,"Description"),n("th",null,"Accepted Values")])]),n("tbody",null,[n("tr",null,[n("td",null,"data"),n("td",null,"\u6811\u578B\u7EC4\u4EF6\u6570\u636E,\u7C7B\u578B TreeData | TreeData[]"),n("td",null,"null")]),n("tr",null,[n("td",null,"showCheckbox"),n("td",null,"\u662F\u5426\u663E\u793A\u590D\u9009\u6846"),n("td",null,"false")]),n("tr",null,[n("td",null,"onlyIconControl"),n("td",null,"\u662F\u5426\u4EC5\u5141\u8BB8\u8282\u70B9\u5DE6\u4FA7\u56FE\u6807\u63A7\u5236\u5C55\u5F00\u6536\u7F29"),n("td",null,"false")]),n("tr",null,[n("td",null,"showLine"),n("td",null,"\u662F\u5426\u5F00\u542F\u8FDE\u63A5\u7EBF"),n("td",null,"true")]),n("tr",null,[n("td",null,"checkedKeys(v-model:checkedKeys)"),n("td",null,"\u5F00\u542F showCheckbox \u540E, \u9009\u4E2D\u7684\u8282\u70B9"),n("td",null,"[]")])])],-1),M=n("table",null,[n("thead",null,[n("tr",null,[n("th",null,"Name"),n("th",null,"Description"),n("th",null,"Accepted Values")])]),n("tbody",null,[n("tr",null,[n("td",null,"id"),n("td",null,"\u552F\u4E00\u503C"),n("td",null,"-")]),n("tr",null,[n("td",null,"title"),n("td",null,"\u8282\u70B9\u540D\u79F0"),n("td",null,"-")]),n("tr",null,[n("td",null,"children"),n("td",null,"\u5B50\u8282\u70B9"),n("td",null,"[]")]),n("tr",null,[n("td",null,"disabled"),n("td",null,"\u8BE5\u8282\u70B9\u662F\u5426\u7981\u7528"),n("td",null,"false")]),n("tr",null,[n("td",null,"spread"),n("td",null,"\u8BE5\u8282\u70B9\u662F\u5426\u5C55\u5F00"),n("td",null,"false")])])],-1),O=n("table",null,[n("thead",null,[n("tr",null,[n("th",null,"Name"),n("th",null,"Description"),n("th",null,"Accepted Params")])]),n("tbody",null,[n("tr",null,[n("td",null,"node-click"),n("td",null,"\u8282\u70B9 click \u4E8B\u4EF6"),n("td",null,"\u2013")])])],-1),Y={setup(Q,{expose:_}){_({frontmatter:{}});let w=l([{title:"\u4E00\u7EA71",id:1,field:"name1",checked:!0,spread:!0,children:[{title:"\u4E8C\u7EA71-1 \u53EF\u5141\u8BB8\u8DF3\u8F6C",id:3,field:"name11",href:"https://www.layui.com/",children:[{title:"\u4E09\u7EA71-1-3",id:23,field:"",children:[{title:"\u56DB\u7EA71-1-3-1",id:24,field:"",children:[{title:"\u4E94\u7EA71-1-3-1-1",id:30,field:""},{title:"\u4E94\u7EA71-1-3-1-2",id:31,field:""}]}]},{title:"\u4E09\u7EA71-1-1",id:7,field:"",children:[{title:"\u56DB\u7EA71-1-1-1 \u53EF\u5141\u8BB8\u8DF3\u8F6C",id:15,field:"",href:"https://www.layui.com/doc/"}]},{title:"\u4E09\u7EA71-1-2",id:8,field:"",children:[{title:"\u56DB\u7EA71-1-2-1",id:32,field:""}]}]},{title:"\u4E8C\u7EA71-2",id:4,spread:!0,children:[{title:"\u4E09\u7EA71-2-1",id:9,field:"",disabled:!0},{title:"\u4E09\u7EA71-2-2",id:10,field:""}]},{title:"\u4E8C\u7EA71-3",id:20,field:"",children:[{title:"\u4E09\u7EA71-3-1",id:21,field:""},{title:"\u4E09\u7EA71-3-2",id:22,field:""}]}]},{title:"\u4E00\u7EA72",id:2,field:"",spread:!0,children:[{title:"\u4E8C\u7EA72-1",id:5,field:"",spread:!0,children:[{title:"\u4E09\u7EA72-1-1",id:11,field:""},{title:"\u4E09\u7EA72-1-2",id:12,field:""}]},{title:"\u4E8C\u7EA72-2",id:6,field:"",children:[{title:"\u4E09\u7EA72-2-1",id:13,field:""},{title:"\u4E09\u7EA72-2-2",id:14,field:"",disabled:!0}]}]},{title:"\u4E00\u7EA73",id:16,field:"",children:[{title:"\u4E8C\u7EA73-1",id:17,field:"",fixed:!0,children:[{title:"\u4E09\u7EA73-1-1",id:18,field:""},{title:"\u4E09\u7EA73-1-2",id:19,field:""}]},{title:"\u4E8C\u7EA73-2",id:27,field:"",children:[{title:"\u4E09\u7EA73-2-1",id:28,field:""},{title:"\u4E09\u7EA73-2-2",id:29,field:""}]}]}]),c=l(!1),u=l(!0),m=l(null),i=l(!0),k=l([1]),v=l(!1);function x(b){m.value=b}return
|
||
|
`,1),j,z,s(g,{modelValue:o(c),"onUpdate:modelValue":e[2]||(e[2]=a=>d(c)?c.value=a:c=a)},null,8,["modelValue"]),E,P,R,s(g,{modelValue:o(u),"onUpdate:modelValue":e[3]||(e[3]=a=>d(u)?u.value=a:u=a)},null,8,["modelValue"]),S,F,G,n("pre",null," "+y(o(m))+`
|
||
|
`,1),H]),_:1}),s(h,{title:"tree attributes",style:{"margin-top":"20px","margin-bottom":"20px"}}),s(f,null,{default:r(()=>[J]),_:1}),s(h,{title:"TreeData",style:{"margin-top":"20px","margin-bottom":"20px"}}),s(f,null,{default:r(()=>[M]),_:1}),s(h,{title:"tree events",style:{"margin-top":"20px","margin-bottom":"20px"}}),s(f,null,{default:r(()=>[O]),_:1}),s(K)])}}};export{Y as default};
|