[{"data":1,"prerenderedAt":6138,"buildId":6139},["ShallowReactive",2],{"-docs-data-table-tree-description":3,"component-example-dataTableTreeBasicExample":16,"component-example-dataTableTreeBasicExampletdCNQ6226iiZKNkds9W7nqV771lTw8VEX0JmHKG7zWU":20,"component-example-dataTableTreeDefaultExpandExample":606,"component-example-dataTableTreeDefaultExpandExampletdCNQ6226iiZKNkds9W7nqV771lTw8VEX0JmHKG7zWU":610,"component-example-dataTableTreeExpandExample":1470,"component-example-dataTableTreeExpandExampletdCNQ6226iiZKNkds9W7nqV771lTw8VEX0JmHKG7zWU":1474,"component-example-dataTableTreeIndentExample":2739,"component-example-dataTableTreeIndentExampletdCNQ6226iiZKNkds9W7nqV771lTw8VEX0JmHKG7zWU":2743,"component-example-dataTableTreeModeExample":3191,"component-example-dataTableTreeModeExampletdCNQ6226iiZKNkds9W7nqV771lTw8VEX0JmHKG7zWU":3195,"component-example-dataTableTreeResultExample":3904,"component-example-dataTableTreeResultExampletdCNQ6226iiZKNkds9W7nqV771lTw8VEX0JmHKG7zWU":3908,"component-example-dataTableTreeStrategyExample":4932,"component-example-dataTableTreeStrategyExampletdCNQ6226iiZKNkds9W7nqV771lTw8VEX0JmHKG7zWU":4936,"docs--docs-data-table-tree":5682,"docs-navigation-zh-CN":5922,"mdc-d0lvp9-key":6119,"surround--docs-data-table-tree":6135},{"data":4,"body":5},{},{"type":6,"children":7},"root",[8],{"type":9,"tag":10,"props":11,"children":12},"element","p",{},[13],{"type":14,"value":15},"text","通过 childrenKey 启用树形表格，配置展开、级联选择策略、缩进与选中结果读取。",{"code":17,"filePath":18,"pascalName":19},"\u003Cscript setup lang=\"ts\">\nimport type { DataTableColumn } from '@movk\u002Fnuxt'\nimport type { Person } from '~\u002Fcomposables\u002FuseTableMock'\n\nconst treeData = makePeopleTree(3, 3, 2)\n\nconst columns: DataTableColumn\u003CPerson>[] = [\n  { type: 'expand' },\n  { accessorKey: 'name', header: '成员' },\n  { accessorKey: 'department', header: '部门' },\n  { accessorKey: 'role', header: '岗位' },\n  { accessorKey: 'level', header: '职级', emptyCell: '—' }\n]\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CMDataTable :data=\"treeData\" :columns=\"columns\" children-key=\"children\" row-key=\"id\" :ui=\"{ root: 'max-h-[50vh]' }\" \u002F>\n\u003C\u002Ftemplate>\n","\u002Fopt\u002Fbuildhome\u002Frepo\u002Fdocs\u002Fapp\u002Fcomponents\u002Fcontent\u002Fexamples\u002Fdata-table\u002Ftree\u002FDataTableTreeBasicExample.vue","DataTableTreeBasicExample",{"data":21,"body":23,"toc":604},{"title":22,"description":22},"",{"type":6,"children":24},[25,598],{"type":9,"tag":26,"props":27,"children":31},"pre",{"className":28,"code":29,"language":30,"meta":22,"style":22},"language-vue shiki shiki-themes github-light github-light github-dark","\u003Cscript setup lang=\"ts\">\nimport type { DataTableColumn } from '@movk\u002Fnuxt'\nimport type { Person } from '~\u002Fcomposables\u002FuseTableMock'\n\nconst treeData = makePeopleTree(3, 3, 2)\n\nconst columns: DataTableColumn\u003CPerson>[] = [\n  { type: 'expand' },\n  { accessorKey: 'name', header: '成员' },\n  { accessorKey: 'department', header: '部门' },\n  { accessorKey: 'role', header: '岗位' },\n  { accessorKey: 'level', header: '职级', emptyCell: '—' }\n]\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CMDataTable :data=\"treeData\" :columns=\"columns\" children-key=\"children\" row-key=\"id\" :ui=\"{ root: 'max-h-[50vh]' }\" \u002F>\n\u003C\u002Ftemplate>\n\n","vue",[32],{"type":9,"tag":33,"props":34,"children":35},"code",{"__ignoreMap":22},[36,81,111,137,147,205,213,259,278,306,332,358,395,404,421,429,446,582],{"type":9,"tag":37,"props":38,"children":41},"span",{"class":39,"line":40},"line",1,[42,48,54,60,65,70,76],{"type":9,"tag":37,"props":43,"children":45},{"style":44},"--shiki-light:#24292E;--shiki-default:#24292E;--shiki-dark:#E1E4E8",[46],{"type":14,"value":47},"\u003C",{"type":9,"tag":37,"props":49,"children":51},{"style":50},"--shiki-light:#22863A;--shiki-default:#22863A;--shiki-dark:#85E89D",[52],{"type":14,"value":53},"script",{"type":9,"tag":37,"props":55,"children":57},{"style":56},"--shiki-light:#6F42C1;--shiki-default:#6F42C1;--shiki-dark:#B392F0",[58],{"type":14,"value":59}," setup",{"type":9,"tag":37,"props":61,"children":62},{"style":56},[63],{"type":14,"value":64}," lang",{"type":9,"tag":37,"props":66,"children":67},{"style":44},[68],{"type":14,"value":69},"=",{"type":9,"tag":37,"props":71,"children":73},{"style":72},"--shiki-light:#032F62;--shiki-default:#032F62;--shiki-dark:#9ECBFF",[74],{"type":14,"value":75},"\"ts\"",{"type":9,"tag":37,"props":77,"children":78},{"style":44},[79],{"type":14,"value":80},">\n",{"type":9,"tag":37,"props":82,"children":84},{"class":39,"line":83},2,[85,91,96,101,106],{"type":9,"tag":37,"props":86,"children":88},{"style":87},"--shiki-light:#D73A49;--shiki-default:#D73A49;--shiki-dark:#F97583",[89],{"type":14,"value":90},"import",{"type":9,"tag":37,"props":92,"children":93},{"style":87},[94],{"type":14,"value":95}," type",{"type":9,"tag":37,"props":97,"children":98},{"style":44},[99],{"type":14,"value":100}," { DataTableColumn } ",{"type":9,"tag":37,"props":102,"children":103},{"style":87},[104],{"type":14,"value":105},"from",{"type":9,"tag":37,"props":107,"children":108},{"style":72},[109],{"type":14,"value":110}," '@movk\u002Fnuxt'\n",{"type":9,"tag":37,"props":112,"children":114},{"class":39,"line":113},3,[115,119,123,128,132],{"type":9,"tag":37,"props":116,"children":117},{"style":87},[118],{"type":14,"value":90},{"type":9,"tag":37,"props":120,"children":121},{"style":87},[122],{"type":14,"value":95},{"type":9,"tag":37,"props":124,"children":125},{"style":44},[126],{"type":14,"value":127}," { Person } ",{"type":9,"tag":37,"props":129,"children":130},{"style":87},[131],{"type":14,"value":105},{"type":9,"tag":37,"props":133,"children":134},{"style":72},[135],{"type":14,"value":136}," '~\u002Fcomposables\u002FuseTableMock'\n",{"type":9,"tag":37,"props":138,"children":140},{"class":39,"line":139},4,[141],{"type":9,"tag":37,"props":142,"children":144},{"emptyLinePlaceholder":143},true,[145],{"type":14,"value":146},"\n",{"type":9,"tag":37,"props":148,"children":150},{"class":39,"line":149},5,[151,156,162,167,172,177,182,187,191,195,200],{"type":9,"tag":37,"props":152,"children":153},{"style":87},[154],{"type":14,"value":155},"const",{"type":9,"tag":37,"props":157,"children":159},{"style":158},"--shiki-light:#005CC5;--shiki-default:#005CC5;--shiki-dark:#79B8FF",[160],{"type":14,"value":161}," treeData",{"type":9,"tag":37,"props":163,"children":164},{"style":87},[165],{"type":14,"value":166}," =",{"type":9,"tag":37,"props":168,"children":169},{"style":56},[170],{"type":14,"value":171}," makePeopleTree",{"type":9,"tag":37,"props":173,"children":174},{"style":44},[175],{"type":14,"value":176},"(",{"type":9,"tag":37,"props":178,"children":179},{"style":158},[180],{"type":14,"value":181},"3",{"type":9,"tag":37,"props":183,"children":184},{"style":44},[185],{"type":14,"value":186},", ",{"type":9,"tag":37,"props":188,"children":189},{"style":158},[190],{"type":14,"value":181},{"type":9,"tag":37,"props":192,"children":193},{"style":44},[194],{"type":14,"value":186},{"type":9,"tag":37,"props":196,"children":197},{"style":158},[198],{"type":14,"value":199},"2",{"type":9,"tag":37,"props":201,"children":202},{"style":44},[203],{"type":14,"value":204},")\n",{"type":9,"tag":37,"props":206,"children":208},{"class":39,"line":207},6,[209],{"type":9,"tag":37,"props":210,"children":211},{"emptyLinePlaceholder":143},[212],{"type":14,"value":146},{"type":9,"tag":37,"props":214,"children":216},{"class":39,"line":215},7,[217,221,226,231,236,240,245,250,254],{"type":9,"tag":37,"props":218,"children":219},{"style":87},[220],{"type":14,"value":155},{"type":9,"tag":37,"props":222,"children":223},{"style":158},[224],{"type":14,"value":225}," columns",{"type":9,"tag":37,"props":227,"children":228},{"style":87},[229],{"type":14,"value":230},":",{"type":9,"tag":37,"props":232,"children":233},{"style":56},[234],{"type":14,"value":235}," DataTableColumn",{"type":9,"tag":37,"props":237,"children":238},{"style":44},[239],{"type":14,"value":47},{"type":9,"tag":37,"props":241,"children":242},{"style":56},[243],{"type":14,"value":244},"Person",{"type":9,"tag":37,"props":246,"children":247},{"style":44},[248],{"type":14,"value":249},">[] ",{"type":9,"tag":37,"props":251,"children":252},{"style":87},[253],{"type":14,"value":69},{"type":9,"tag":37,"props":255,"children":256},{"style":44},[257],{"type":14,"value":258}," [\n",{"type":9,"tag":37,"props":260,"children":262},{"class":39,"line":261},8,[263,268,273],{"type":9,"tag":37,"props":264,"children":265},{"style":44},[266],{"type":14,"value":267},"  { type: ",{"type":9,"tag":37,"props":269,"children":270},{"style":72},[271],{"type":14,"value":272},"'expand'",{"type":9,"tag":37,"props":274,"children":275},{"style":44},[276],{"type":14,"value":277}," },\n",{"type":9,"tag":37,"props":279,"children":281},{"class":39,"line":280},9,[282,287,292,297,302],{"type":9,"tag":37,"props":283,"children":284},{"style":44},[285],{"type":14,"value":286},"  { accessorKey: ",{"type":9,"tag":37,"props":288,"children":289},{"style":72},[290],{"type":14,"value":291},"'name'",{"type":9,"tag":37,"props":293,"children":294},{"style":44},[295],{"type":14,"value":296},", header: ",{"type":9,"tag":37,"props":298,"children":299},{"style":72},[300],{"type":14,"value":301},"'成员'",{"type":9,"tag":37,"props":303,"children":304},{"style":44},[305],{"type":14,"value":277},{"type":9,"tag":37,"props":307,"children":309},{"class":39,"line":308},10,[310,314,319,323,328],{"type":9,"tag":37,"props":311,"children":312},{"style":44},[313],{"type":14,"value":286},{"type":9,"tag":37,"props":315,"children":316},{"style":72},[317],{"type":14,"value":318},"'department'",{"type":9,"tag":37,"props":320,"children":321},{"style":44},[322],{"type":14,"value":296},{"type":9,"tag":37,"props":324,"children":325},{"style":72},[326],{"type":14,"value":327},"'部门'",{"type":9,"tag":37,"props":329,"children":330},{"style":44},[331],{"type":14,"value":277},{"type":9,"tag":37,"props":333,"children":335},{"class":39,"line":334},11,[336,340,345,349,354],{"type":9,"tag":37,"props":337,"children":338},{"style":44},[339],{"type":14,"value":286},{"type":9,"tag":37,"props":341,"children":342},{"style":72},[343],{"type":14,"value":344},"'role'",{"type":9,"tag":37,"props":346,"children":347},{"style":44},[348],{"type":14,"value":296},{"type":9,"tag":37,"props":350,"children":351},{"style":72},[352],{"type":14,"value":353},"'岗位'",{"type":9,"tag":37,"props":355,"children":356},{"style":44},[357],{"type":14,"value":277},{"type":9,"tag":37,"props":359,"children":361},{"class":39,"line":360},12,[362,366,371,375,380,385,390],{"type":9,"tag":37,"props":363,"children":364},{"style":44},[365],{"type":14,"value":286},{"type":9,"tag":37,"props":367,"children":368},{"style":72},[369],{"type":14,"value":370},"'level'",{"type":9,"tag":37,"props":372,"children":373},{"style":44},[374],{"type":14,"value":296},{"type":9,"tag":37,"props":376,"children":377},{"style":72},[378],{"type":14,"value":379},"'职级'",{"type":9,"tag":37,"props":381,"children":382},{"style":44},[383],{"type":14,"value":384},", emptyCell: ",{"type":9,"tag":37,"props":386,"children":387},{"style":72},[388],{"type":14,"value":389},"'—'",{"type":9,"tag":37,"props":391,"children":392},{"style":44},[393],{"type":14,"value":394}," }\n",{"type":9,"tag":37,"props":396,"children":398},{"class":39,"line":397},13,[399],{"type":9,"tag":37,"props":400,"children":401},{"style":44},[402],{"type":14,"value":403},"]\n",{"type":9,"tag":37,"props":405,"children":407},{"class":39,"line":406},14,[408,413,417],{"type":9,"tag":37,"props":409,"children":410},{"style":44},[411],{"type":14,"value":412},"\u003C\u002F",{"type":9,"tag":37,"props":414,"children":415},{"style":50},[416],{"type":14,"value":53},{"type":9,"tag":37,"props":418,"children":419},{"style":44},[420],{"type":14,"value":80},{"type":9,"tag":37,"props":422,"children":424},{"class":39,"line":423},15,[425],{"type":9,"tag":37,"props":426,"children":427},{"emptyLinePlaceholder":143},[428],{"type":14,"value":146},{"type":9,"tag":37,"props":430,"children":432},{"class":39,"line":431},16,[433,437,442],{"type":9,"tag":37,"props":434,"children":435},{"style":44},[436],{"type":14,"value":47},{"type":9,"tag":37,"props":438,"children":439},{"style":50},[440],{"type":14,"value":441},"template",{"type":9,"tag":37,"props":443,"children":444},{"style":44},[445],{"type":14,"value":80},{"type":9,"tag":37,"props":447,"children":449},{"class":39,"line":448},17,[450,455,460,465,470,474,479,484,488,492,497,501,505,509,513,518,522,527,532,536,541,545,550,554,558,563,568,573,577],{"type":9,"tag":37,"props":451,"children":452},{"style":44},[453],{"type":14,"value":454},"  \u003C",{"type":9,"tag":37,"props":456,"children":457},{"style":50},[458],{"type":14,"value":459},"MDataTable",{"type":9,"tag":37,"props":461,"children":462},{"style":44},[463],{"type":14,"value":464}," :",{"type":9,"tag":37,"props":466,"children":467},{"style":56},[468],{"type":14,"value":469},"data",{"type":9,"tag":37,"props":471,"children":472},{"style":44},[473],{"type":14,"value":69},{"type":9,"tag":37,"props":475,"children":476},{"style":72},[477],{"type":14,"value":478},"\"",{"type":9,"tag":37,"props":480,"children":481},{"style":44},[482],{"type":14,"value":483},"treeData",{"type":9,"tag":37,"props":485,"children":486},{"style":72},[487],{"type":14,"value":478},{"type":9,"tag":37,"props":489,"children":490},{"style":44},[491],{"type":14,"value":464},{"type":9,"tag":37,"props":493,"children":494},{"style":56},[495],{"type":14,"value":496},"columns",{"type":9,"tag":37,"props":498,"children":499},{"style":44},[500],{"type":14,"value":69},{"type":9,"tag":37,"props":502,"children":503},{"style":72},[504],{"type":14,"value":478},{"type":9,"tag":37,"props":506,"children":507},{"style":44},[508],{"type":14,"value":496},{"type":9,"tag":37,"props":510,"children":511},{"style":72},[512],{"type":14,"value":478},{"type":9,"tag":37,"props":514,"children":515},{"style":56},[516],{"type":14,"value":517}," children-key",{"type":9,"tag":37,"props":519,"children":520},{"style":44},[521],{"type":14,"value":69},{"type":9,"tag":37,"props":523,"children":524},{"style":72},[525],{"type":14,"value":526},"\"children\"",{"type":9,"tag":37,"props":528,"children":529},{"style":56},[530],{"type":14,"value":531}," row-key",{"type":9,"tag":37,"props":533,"children":534},{"style":44},[535],{"type":14,"value":69},{"type":9,"tag":37,"props":537,"children":538},{"style":72},[539],{"type":14,"value":540},"\"id\"",{"type":9,"tag":37,"props":542,"children":543},{"style":44},[544],{"type":14,"value":464},{"type":9,"tag":37,"props":546,"children":547},{"style":56},[548],{"type":14,"value":549},"ui",{"type":9,"tag":37,"props":551,"children":552},{"style":44},[553],{"type":14,"value":69},{"type":9,"tag":37,"props":555,"children":556},{"style":72},[557],{"type":14,"value":478},{"type":9,"tag":37,"props":559,"children":560},{"style":44},[561],{"type":14,"value":562},"{ root: ",{"type":9,"tag":37,"props":564,"children":565},{"style":72},[566],{"type":14,"value":567},"'max-h-[50vh]'",{"type":9,"tag":37,"props":569,"children":570},{"style":44},[571],{"type":14,"value":572}," }",{"type":9,"tag":37,"props":574,"children":575},{"style":72},[576],{"type":14,"value":478},{"type":9,"tag":37,"props":578,"children":579},{"style":44},[580],{"type":14,"value":581}," \u002F>\n",{"type":9,"tag":37,"props":583,"children":585},{"class":39,"line":584},18,[586,590,594],{"type":9,"tag":37,"props":587,"children":588},{"style":44},[589],{"type":14,"value":412},{"type":9,"tag":37,"props":591,"children":592},{"style":50},[593],{"type":14,"value":441},{"type":9,"tag":37,"props":595,"children":596},{"style":44},[597],{"type":14,"value":80},{"type":9,"tag":599,"props":600,"children":601},"style",{},[602],{"type":14,"value":603},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":22,"searchDepth":83,"depth":83,"links":605},[],{"code":607,"filePath":608,"pascalName":609},"\u003Cscript setup lang=\"ts\">\nimport type { DataTableColumn, DataTableProps } from '@movk\u002Fnuxt'\nimport type { Person } from '~\u002Fcomposables\u002FuseTableMock'\n\nconst props = withDefaults(defineProps\u003C{\n  mode?: 'all' | 'depth1' | 'depth2' | 'fn'\n}>(), { mode: 'all' })\n\nconst treeData = makePeopleTree(3, 3, 3)\n\nconst columns: DataTableColumn\u003CPerson>[] = [\n  { type: 'expand' },\n  { accessorKey: 'name', header: '成员' },\n  { accessorKey: 'department', header: '部门' },\n  { accessorKey: 'role', header: '岗位' }\n]\n\nconst defaultExpanded = computed\u003CDataTableProps\u003CPerson>['defaultExpanded']>(() => {\n  if (props.mode === 'depth1') return 1\n  if (props.mode === 'depth2') return 2\n  if (props.mode === 'fn') return row => row.department === '设计'\n  return true\n})\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CMDataTable\n    :key=\"props.mode\"\n    :default-expanded=\"defaultExpanded\"\n    :data=\"treeData\"\n    :columns=\"columns\"\n    children-key=\"children\"\n    row-key=\"id\"\n    class=\"max-h-150\"\n  \u002F>\n\u003C\u002Ftemplate>\n","\u002Fopt\u002Fbuildhome\u002Frepo\u002Fdocs\u002Fapp\u002Fcomponents\u002Fcontent\u002Fexamples\u002Fdata-table\u002Ftree\u002FDataTableTreeDefaultExpandExample.vue","DataTableTreeDefaultExpandExample",{"data":611,"body":612,"toc":1468},{"title":22,"description":22},{"type":6,"children":613},[614,1464],{"type":9,"tag":26,"props":615,"children":617},{"className":28,"code":616,"language":30,"meta":22,"style":22},"\u003Cscript setup lang=\"ts\">\nimport type { DataTableColumn, DataTableProps } from '@movk\u002Fnuxt'\nimport type { Person } from '~\u002Fcomposables\u002FuseTableMock'\n\nconst props = withDefaults(defineProps\u003C{\n  mode?: 'all' | 'depth1' | 'depth2' | 'fn'\n}>(), { mode: 'all' })\n\nconst treeData = makePeopleTree(3, 3, 3)\n\nconst columns: DataTableColumn\u003CPerson>[] = [\n  { type: 'expand' },\n  { accessorKey: 'name', header: '成员' },\n  { accessorKey: 'department', header: '部门' },\n  { accessorKey: 'role', header: '岗位' }\n]\n\nconst defaultExpanded = computed\u003CDataTableProps\u003CPerson>['defaultExpanded']>(() => {\n  if (props.mode === 'depth1') return 1\n  if (props.mode === 'depth2') return 2\n  if (props.mode === 'fn') return row => row.department === '设计'\n  return true\n})\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CMDataTable\n    :key=\"props.mode\"\n    :default-expanded=\"defaultExpanded\"\n    :data=\"treeData\"\n    :columns=\"columns\"\n    children-key=\"children\"\n    row-key=\"id\"\n    class=\"max-h-150\"\n  \u002F>\n\u003C\u002Ftemplate>\n\n",[618],{"type":9,"tag":33,"props":619,"children":620},{"__ignoreMap":22},[621,652,676,699,706,741,788,806,813,860,867,906,921,944,967,990,997,1004,1067,1105,1138,1191,1205,1214,1230,1238,1254,1267,1299,1329,1357,1385,1403,1421,1439,1448],{"type":9,"tag":37,"props":622,"children":623},{"class":39,"line":40},[624,628,632,636,640,644,648],{"type":9,"tag":37,"props":625,"children":626},{"style":44},[627],{"type":14,"value":47},{"type":9,"tag":37,"props":629,"children":630},{"style":50},[631],{"type":14,"value":53},{"type":9,"tag":37,"props":633,"children":634},{"style":56},[635],{"type":14,"value":59},{"type":9,"tag":37,"props":637,"children":638},{"style":56},[639],{"type":14,"value":64},{"type":9,"tag":37,"props":641,"children":642},{"style":44},[643],{"type":14,"value":69},{"type":9,"tag":37,"props":645,"children":646},{"style":72},[647],{"type":14,"value":75},{"type":9,"tag":37,"props":649,"children":650},{"style":44},[651],{"type":14,"value":80},{"type":9,"tag":37,"props":653,"children":654},{"class":39,"line":83},[655,659,663,668,672],{"type":9,"tag":37,"props":656,"children":657},{"style":87},[658],{"type":14,"value":90},{"type":9,"tag":37,"props":660,"children":661},{"style":87},[662],{"type":14,"value":95},{"type":9,"tag":37,"props":664,"children":665},{"style":44},[666],{"type":14,"value":667}," { DataTableColumn, DataTableProps } ",{"type":9,"tag":37,"props":669,"children":670},{"style":87},[671],{"type":14,"value":105},{"type":9,"tag":37,"props":673,"children":674},{"style":72},[675],{"type":14,"value":110},{"type":9,"tag":37,"props":677,"children":678},{"class":39,"line":113},[679,683,687,691,695],{"type":9,"tag":37,"props":680,"children":681},{"style":87},[682],{"type":14,"value":90},{"type":9,"tag":37,"props":684,"children":685},{"style":87},[686],{"type":14,"value":95},{"type":9,"tag":37,"props":688,"children":689},{"style":44},[690],{"type":14,"value":127},{"type":9,"tag":37,"props":692,"children":693},{"style":87},[694],{"type":14,"value":105},{"type":9,"tag":37,"props":696,"children":697},{"style":72},[698],{"type":14,"value":136},{"type":9,"tag":37,"props":700,"children":701},{"class":39,"line":139},[702],{"type":9,"tag":37,"props":703,"children":704},{"emptyLinePlaceholder":143},[705],{"type":14,"value":146},{"type":9,"tag":37,"props":707,"children":708},{"class":39,"line":149},[709,713,718,722,727,731,736],{"type":9,"tag":37,"props":710,"children":711},{"style":87},[712],{"type":14,"value":155},{"type":9,"tag":37,"props":714,"children":715},{"style":158},[716],{"type":14,"value":717}," props",{"type":9,"tag":37,"props":719,"children":720},{"style":87},[721],{"type":14,"value":166},{"type":9,"tag":37,"props":723,"children":724},{"style":56},[725],{"type":14,"value":726}," withDefaults",{"type":9,"tag":37,"props":728,"children":729},{"style":44},[730],{"type":14,"value":176},{"type":9,"tag":37,"props":732,"children":733},{"style":56},[734],{"type":14,"value":735},"defineProps",{"type":9,"tag":37,"props":737,"children":738},{"style":44},[739],{"type":14,"value":740},"\u003C{\n",{"type":9,"tag":37,"props":742,"children":743},{"class":39,"line":207},[744,750,755,760,765,770,774,779,783],{"type":9,"tag":37,"props":745,"children":747},{"style":746},"--shiki-light:#E36209;--shiki-default:#E36209;--shiki-dark:#FFAB70",[748],{"type":14,"value":749},"  mode",{"type":9,"tag":37,"props":751,"children":752},{"style":87},[753],{"type":14,"value":754},"?:",{"type":9,"tag":37,"props":756,"children":757},{"style":72},[758],{"type":14,"value":759}," 'all'",{"type":9,"tag":37,"props":761,"children":762},{"style":87},[763],{"type":14,"value":764}," |",{"type":9,"tag":37,"props":766,"children":767},{"style":72},[768],{"type":14,"value":769}," 'depth1'",{"type":9,"tag":37,"props":771,"children":772},{"style":87},[773],{"type":14,"value":764},{"type":9,"tag":37,"props":775,"children":776},{"style":72},[777],{"type":14,"value":778}," 'depth2'",{"type":9,"tag":37,"props":780,"children":781},{"style":87},[782],{"type":14,"value":764},{"type":9,"tag":37,"props":784,"children":785},{"style":72},[786],{"type":14,"value":787}," 'fn'\n",{"type":9,"tag":37,"props":789,"children":790},{"class":39,"line":215},[791,796,801],{"type":9,"tag":37,"props":792,"children":793},{"style":44},[794],{"type":14,"value":795},"}>(), { mode: ",{"type":9,"tag":37,"props":797,"children":798},{"style":72},[799],{"type":14,"value":800},"'all'",{"type":9,"tag":37,"props":802,"children":803},{"style":44},[804],{"type":14,"value":805}," })\n",{"type":9,"tag":37,"props":807,"children":808},{"class":39,"line":261},[809],{"type":9,"tag":37,"props":810,"children":811},{"emptyLinePlaceholder":143},[812],{"type":14,"value":146},{"type":9,"tag":37,"props":814,"children":815},{"class":39,"line":280},[816,820,824,828,832,836,840,844,848,852,856],{"type":9,"tag":37,"props":817,"children":818},{"style":87},[819],{"type":14,"value":155},{"type":9,"tag":37,"props":821,"children":822},{"style":158},[823],{"type":14,"value":161},{"type":9,"tag":37,"props":825,"children":826},{"style":87},[827],{"type":14,"value":166},{"type":9,"tag":37,"props":829,"children":830},{"style":56},[831],{"type":14,"value":171},{"type":9,"tag":37,"props":833,"children":834},{"style":44},[835],{"type":14,"value":176},{"type":9,"tag":37,"props":837,"children":838},{"style":158},[839],{"type":14,"value":181},{"type":9,"tag":37,"props":841,"children":842},{"style":44},[843],{"type":14,"value":186},{"type":9,"tag":37,"props":845,"children":846},{"style":158},[847],{"type":14,"value":181},{"type":9,"tag":37,"props":849,"children":850},{"style":44},[851],{"type":14,"value":186},{"type":9,"tag":37,"props":853,"children":854},{"style":158},[855],{"type":14,"value":181},{"type":9,"tag":37,"props":857,"children":858},{"style":44},[859],{"type":14,"value":204},{"type":9,"tag":37,"props":861,"children":862},{"class":39,"line":308},[863],{"type":9,"tag":37,"props":864,"children":865},{"emptyLinePlaceholder":143},[866],{"type":14,"value":146},{"type":9,"tag":37,"props":868,"children":869},{"class":39,"line":334},[870,874,878,882,886,890,894,898,902],{"type":9,"tag":37,"props":871,"children":872},{"style":87},[873],{"type":14,"value":155},{"type":9,"tag":37,"props":875,"children":876},{"style":158},[877],{"type":14,"value":225},{"type":9,"tag":37,"props":879,"children":880},{"style":87},[881],{"type":14,"value":230},{"type":9,"tag":37,"props":883,"children":884},{"style":56},[885],{"type":14,"value":235},{"type":9,"tag":37,"props":887,"children":888},{"style":44},[889],{"type":14,"value":47},{"type":9,"tag":37,"props":891,"children":892},{"style":56},[893],{"type":14,"value":244},{"type":9,"tag":37,"props":895,"children":896},{"style":44},[897],{"type":14,"value":249},{"type":9,"tag":37,"props":899,"children":900},{"style":87},[901],{"type":14,"value":69},{"type":9,"tag":37,"props":903,"children":904},{"style":44},[905],{"type":14,"value":258},{"type":9,"tag":37,"props":907,"children":908},{"class":39,"line":360},[909,913,917],{"type":9,"tag":37,"props":910,"children":911},{"style":44},[912],{"type":14,"value":267},{"type":9,"tag":37,"props":914,"children":915},{"style":72},[916],{"type":14,"value":272},{"type":9,"tag":37,"props":918,"children":919},{"style":44},[920],{"type":14,"value":277},{"type":9,"tag":37,"props":922,"children":923},{"class":39,"line":397},[924,928,932,936,940],{"type":9,"tag":37,"props":925,"children":926},{"style":44},[927],{"type":14,"value":286},{"type":9,"tag":37,"props":929,"children":930},{"style":72},[931],{"type":14,"value":291},{"type":9,"tag":37,"props":933,"children":934},{"style":44},[935],{"type":14,"value":296},{"type":9,"tag":37,"props":937,"children":938},{"style":72},[939],{"type":14,"value":301},{"type":9,"tag":37,"props":941,"children":942},{"style":44},[943],{"type":14,"value":277},{"type":9,"tag":37,"props":945,"children":946},{"class":39,"line":406},[947,951,955,959,963],{"type":9,"tag":37,"props":948,"children":949},{"style":44},[950],{"type":14,"value":286},{"type":9,"tag":37,"props":952,"children":953},{"style":72},[954],{"type":14,"value":318},{"type":9,"tag":37,"props":956,"children":957},{"style":44},[958],{"type":14,"value":296},{"type":9,"tag":37,"props":960,"children":961},{"style":72},[962],{"type":14,"value":327},{"type":9,"tag":37,"props":964,"children":965},{"style":44},[966],{"type":14,"value":277},{"type":9,"tag":37,"props":968,"children":969},{"class":39,"line":423},[970,974,978,982,986],{"type":9,"tag":37,"props":971,"children":972},{"style":44},[973],{"type":14,"value":286},{"type":9,"tag":37,"props":975,"children":976},{"style":72},[977],{"type":14,"value":344},{"type":9,"tag":37,"props":979,"children":980},{"style":44},[981],{"type":14,"value":296},{"type":9,"tag":37,"props":983,"children":984},{"style":72},[985],{"type":14,"value":353},{"type":9,"tag":37,"props":987,"children":988},{"style":44},[989],{"type":14,"value":394},{"type":9,"tag":37,"props":991,"children":992},{"class":39,"line":431},[993],{"type":9,"tag":37,"props":994,"children":995},{"style":44},[996],{"type":14,"value":403},{"type":9,"tag":37,"props":998,"children":999},{"class":39,"line":448},[1000],{"type":9,"tag":37,"props":1001,"children":1002},{"emptyLinePlaceholder":143},[1003],{"type":14,"value":146},{"type":9,"tag":37,"props":1005,"children":1006},{"class":39,"line":584},[1007,1011,1016,1020,1025,1029,1034,1038,1042,1047,1052,1057,1062],{"type":9,"tag":37,"props":1008,"children":1009},{"style":87},[1010],{"type":14,"value":155},{"type":9,"tag":37,"props":1012,"children":1013},{"style":158},[1014],{"type":14,"value":1015}," defaultExpanded",{"type":9,"tag":37,"props":1017,"children":1018},{"style":87},[1019],{"type":14,"value":166},{"type":9,"tag":37,"props":1021,"children":1022},{"style":56},[1023],{"type":14,"value":1024}," computed",{"type":9,"tag":37,"props":1026,"children":1027},{"style":44},[1028],{"type":14,"value":47},{"type":9,"tag":37,"props":1030,"children":1031},{"style":56},[1032],{"type":14,"value":1033},"DataTableProps",{"type":9,"tag":37,"props":1035,"children":1036},{"style":44},[1037],{"type":14,"value":47},{"type":9,"tag":37,"props":1039,"children":1040},{"style":56},[1041],{"type":14,"value":244},{"type":9,"tag":37,"props":1043,"children":1044},{"style":44},[1045],{"type":14,"value":1046},">[",{"type":9,"tag":37,"props":1048,"children":1049},{"style":72},[1050],{"type":14,"value":1051},"'defaultExpanded'",{"type":9,"tag":37,"props":1053,"children":1054},{"style":44},[1055],{"type":14,"value":1056},"]>(() ",{"type":9,"tag":37,"props":1058,"children":1059},{"style":87},[1060],{"type":14,"value":1061},"=>",{"type":9,"tag":37,"props":1063,"children":1064},{"style":44},[1065],{"type":14,"value":1066}," {\n",{"type":9,"tag":37,"props":1068,"children":1070},{"class":39,"line":1069},19,[1071,1076,1081,1086,1090,1095,1100],{"type":9,"tag":37,"props":1072,"children":1073},{"style":87},[1074],{"type":14,"value":1075},"  if",{"type":9,"tag":37,"props":1077,"children":1078},{"style":44},[1079],{"type":14,"value":1080}," (props.mode ",{"type":9,"tag":37,"props":1082,"children":1083},{"style":87},[1084],{"type":14,"value":1085},"===",{"type":9,"tag":37,"props":1087,"children":1088},{"style":72},[1089],{"type":14,"value":769},{"type":9,"tag":37,"props":1091,"children":1092},{"style":44},[1093],{"type":14,"value":1094},") ",{"type":9,"tag":37,"props":1096,"children":1097},{"style":87},[1098],{"type":14,"value":1099},"return",{"type":9,"tag":37,"props":1101,"children":1102},{"style":158},[1103],{"type":14,"value":1104}," 1\n",{"type":9,"tag":37,"props":1106,"children":1108},{"class":39,"line":1107},20,[1109,1113,1117,1121,1125,1129,1133],{"type":9,"tag":37,"props":1110,"children":1111},{"style":87},[1112],{"type":14,"value":1075},{"type":9,"tag":37,"props":1114,"children":1115},{"style":44},[1116],{"type":14,"value":1080},{"type":9,"tag":37,"props":1118,"children":1119},{"style":87},[1120],{"type":14,"value":1085},{"type":9,"tag":37,"props":1122,"children":1123},{"style":72},[1124],{"type":14,"value":778},{"type":9,"tag":37,"props":1126,"children":1127},{"style":44},[1128],{"type":14,"value":1094},{"type":9,"tag":37,"props":1130,"children":1131},{"style":87},[1132],{"type":14,"value":1099},{"type":9,"tag":37,"props":1134,"children":1135},{"style":158},[1136],{"type":14,"value":1137}," 2\n",{"type":9,"tag":37,"props":1139,"children":1141},{"class":39,"line":1140},21,[1142,1146,1150,1154,1159,1163,1167,1172,1177,1182,1186],{"type":9,"tag":37,"props":1143,"children":1144},{"style":87},[1145],{"type":14,"value":1075},{"type":9,"tag":37,"props":1147,"children":1148},{"style":44},[1149],{"type":14,"value":1080},{"type":9,"tag":37,"props":1151,"children":1152},{"style":87},[1153],{"type":14,"value":1085},{"type":9,"tag":37,"props":1155,"children":1156},{"style":72},[1157],{"type":14,"value":1158}," 'fn'",{"type":9,"tag":37,"props":1160,"children":1161},{"style":44},[1162],{"type":14,"value":1094},{"type":9,"tag":37,"props":1164,"children":1165},{"style":87},[1166],{"type":14,"value":1099},{"type":9,"tag":37,"props":1168,"children":1169},{"style":746},[1170],{"type":14,"value":1171}," row",{"type":9,"tag":37,"props":1173,"children":1174},{"style":87},[1175],{"type":14,"value":1176}," =>",{"type":9,"tag":37,"props":1178,"children":1179},{"style":44},[1180],{"type":14,"value":1181}," row.department ",{"type":9,"tag":37,"props":1183,"children":1184},{"style":87},[1185],{"type":14,"value":1085},{"type":9,"tag":37,"props":1187,"children":1188},{"style":72},[1189],{"type":14,"value":1190}," '设计'\n",{"type":9,"tag":37,"props":1192,"children":1194},{"class":39,"line":1193},22,[1195,1200],{"type":9,"tag":37,"props":1196,"children":1197},{"style":87},[1198],{"type":14,"value":1199},"  return",{"type":9,"tag":37,"props":1201,"children":1202},{"style":158},[1203],{"type":14,"value":1204}," true\n",{"type":9,"tag":37,"props":1206,"children":1208},{"class":39,"line":1207},23,[1209],{"type":9,"tag":37,"props":1210,"children":1211},{"style":44},[1212],{"type":14,"value":1213},"})\n",{"type":9,"tag":37,"props":1215,"children":1217},{"class":39,"line":1216},24,[1218,1222,1226],{"type":9,"tag":37,"props":1219,"children":1220},{"style":44},[1221],{"type":14,"value":412},{"type":9,"tag":37,"props":1223,"children":1224},{"style":50},[1225],{"type":14,"value":53},{"type":9,"tag":37,"props":1227,"children":1228},{"style":44},[1229],{"type":14,"value":80},{"type":9,"tag":37,"props":1231,"children":1233},{"class":39,"line":1232},25,[1234],{"type":9,"tag":37,"props":1235,"children":1236},{"emptyLinePlaceholder":143},[1237],{"type":14,"value":146},{"type":9,"tag":37,"props":1239,"children":1241},{"class":39,"line":1240},26,[1242,1246,1250],{"type":9,"tag":37,"props":1243,"children":1244},{"style":44},[1245],{"type":14,"value":47},{"type":9,"tag":37,"props":1247,"children":1248},{"style":50},[1249],{"type":14,"value":441},{"type":9,"tag":37,"props":1251,"children":1252},{"style":44},[1253],{"type":14,"value":80},{"type":9,"tag":37,"props":1255,"children":1257},{"class":39,"line":1256},27,[1258,1262],{"type":9,"tag":37,"props":1259,"children":1260},{"style":44},[1261],{"type":14,"value":454},{"type":9,"tag":37,"props":1263,"children":1264},{"style":50},[1265],{"type":14,"value":1266},"MDataTable\n",{"type":9,"tag":37,"props":1268,"children":1270},{"class":39,"line":1269},28,[1271,1276,1281,1285,1289,1294],{"type":9,"tag":37,"props":1272,"children":1273},{"style":44},[1274],{"type":14,"value":1275},"    :",{"type":9,"tag":37,"props":1277,"children":1278},{"style":56},[1279],{"type":14,"value":1280},"key",{"type":9,"tag":37,"props":1282,"children":1283},{"style":44},[1284],{"type":14,"value":69},{"type":9,"tag":37,"props":1286,"children":1287},{"style":72},[1288],{"type":14,"value":478},{"type":9,"tag":37,"props":1290,"children":1291},{"style":44},[1292],{"type":14,"value":1293},"props.mode",{"type":9,"tag":37,"props":1295,"children":1296},{"style":72},[1297],{"type":14,"value":1298},"\"\n",{"type":9,"tag":37,"props":1300,"children":1302},{"class":39,"line":1301},29,[1303,1307,1312,1316,1320,1325],{"type":9,"tag":37,"props":1304,"children":1305},{"style":44},[1306],{"type":14,"value":1275},{"type":9,"tag":37,"props":1308,"children":1309},{"style":56},[1310],{"type":14,"value":1311},"default-expanded",{"type":9,"tag":37,"props":1313,"children":1314},{"style":44},[1315],{"type":14,"value":69},{"type":9,"tag":37,"props":1317,"children":1318},{"style":72},[1319],{"type":14,"value":478},{"type":9,"tag":37,"props":1321,"children":1322},{"style":44},[1323],{"type":14,"value":1324},"defaultExpanded",{"type":9,"tag":37,"props":1326,"children":1327},{"style":72},[1328],{"type":14,"value":1298},{"type":9,"tag":37,"props":1330,"children":1332},{"class":39,"line":1331},30,[1333,1337,1341,1345,1349,1353],{"type":9,"tag":37,"props":1334,"children":1335},{"style":44},[1336],{"type":14,"value":1275},{"type":9,"tag":37,"props":1338,"children":1339},{"style":56},[1340],{"type":14,"value":469},{"type":9,"tag":37,"props":1342,"children":1343},{"style":44},[1344],{"type":14,"value":69},{"type":9,"tag":37,"props":1346,"children":1347},{"style":72},[1348],{"type":14,"value":478},{"type":9,"tag":37,"props":1350,"children":1351},{"style":44},[1352],{"type":14,"value":483},{"type":9,"tag":37,"props":1354,"children":1355},{"style":72},[1356],{"type":14,"value":1298},{"type":9,"tag":37,"props":1358,"children":1360},{"class":39,"line":1359},31,[1361,1365,1369,1373,1377,1381],{"type":9,"tag":37,"props":1362,"children":1363},{"style":44},[1364],{"type":14,"value":1275},{"type":9,"tag":37,"props":1366,"children":1367},{"style":56},[1368],{"type":14,"value":496},{"type":9,"tag":37,"props":1370,"children":1371},{"style":44},[1372],{"type":14,"value":69},{"type":9,"tag":37,"props":1374,"children":1375},{"style":72},[1376],{"type":14,"value":478},{"type":9,"tag":37,"props":1378,"children":1379},{"style":44},[1380],{"type":14,"value":496},{"type":9,"tag":37,"props":1382,"children":1383},{"style":72},[1384],{"type":14,"value":1298},{"type":9,"tag":37,"props":1386,"children":1388},{"class":39,"line":1387},32,[1389,1394,1398],{"type":9,"tag":37,"props":1390,"children":1391},{"style":56},[1392],{"type":14,"value":1393},"    children-key",{"type":9,"tag":37,"props":1395,"children":1396},{"style":44},[1397],{"type":14,"value":69},{"type":9,"tag":37,"props":1399,"children":1400},{"style":72},[1401],{"type":14,"value":1402},"\"children\"\n",{"type":9,"tag":37,"props":1404,"children":1406},{"class":39,"line":1405},33,[1407,1412,1416],{"type":9,"tag":37,"props":1408,"children":1409},{"style":56},[1410],{"type":14,"value":1411},"    row-key",{"type":9,"tag":37,"props":1413,"children":1414},{"style":44},[1415],{"type":14,"value":69},{"type":9,"tag":37,"props":1417,"children":1418},{"style":72},[1419],{"type":14,"value":1420},"\"id\"\n",{"type":9,"tag":37,"props":1422,"children":1424},{"class":39,"line":1423},34,[1425,1430,1434],{"type":9,"tag":37,"props":1426,"children":1427},{"style":56},[1428],{"type":14,"value":1429},"    class",{"type":9,"tag":37,"props":1431,"children":1432},{"style":44},[1433],{"type":14,"value":69},{"type":9,"tag":37,"props":1435,"children":1436},{"style":72},[1437],{"type":14,"value":1438},"\"max-h-150\"\n",{"type":9,"tag":37,"props":1440,"children":1442},{"class":39,"line":1441},35,[1443],{"type":9,"tag":37,"props":1444,"children":1445},{"style":44},[1446],{"type":14,"value":1447},"  \u002F>\n",{"type":9,"tag":37,"props":1449,"children":1451},{"class":39,"line":1450},36,[1452,1456,1460],{"type":9,"tag":37,"props":1453,"children":1454},{"style":44},[1455],{"type":14,"value":412},{"type":9,"tag":37,"props":1457,"children":1458},{"style":50},[1459],{"type":14,"value":441},{"type":9,"tag":37,"props":1461,"children":1462},{"style":44},[1463],{"type":14,"value":80},{"type":9,"tag":599,"props":1465,"children":1466},{},[1467],{"type":14,"value":603},{"title":22,"searchDepth":83,"depth":83,"links":1469},[],{"code":1471,"filePath":1472,"pascalName":1473},"\u003Cscript setup lang=\"ts\">\nimport type { DataTableColumn, DataTableExposed } from '@movk\u002Fnuxt'\nimport type { Person } from '~\u002Fcomposables\u002FuseTableMock'\n\nconst treeData = makePeopleTree(3, 3, 3)\nconst tableRef = useTemplateRef\u003CDataTableExposed\u003CPerson>>('tableRef')\nconst expandOnRowClick = ref(false)\n\nconst columns: DataTableColumn\u003CPerson>[] = [\n  {\n    type: 'expand',\n    buttonProps: ctx => ({\n      icon: ctx.isExpanded ? 'i-lucide-folder-open' : 'i-lucide-folder',\n      color: ctx.isExpanded ? 'primary' : 'neutral',\n      variant: 'soft'\n    }),\n    toggleAllButtonProps: ctx => ({\n      icon: ctx.isAllExpanded ? 'i-lucide-chevrons-down-up' : 'i-lucide-chevrons-up-down',\n      variant: 'soft',\n      color: 'primary'\n    })\n  },\n  { accessorKey: 'name', header: '成员' },\n  { accessorKey: 'department', header: '部门' },\n  { accessorKey: 'role', header: '岗位' }\n]\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003Cdiv class=\"flex flex-col gap-3\">\n    \u003Cdiv class=\"flex flex-wrap items-center gap-2\">\n      \u003CUSwitch v-model=\"expandOnRowClick\" label=\"expandOnRowClick\" \u002F>\n      \u003CUButton size=\"xs\" variant=\"soft\" @click=\"tableRef?.expandToDepth(1)\">\n        展开 1 级\n      \u003C\u002FUButton>\n      \u003CUButton size=\"xs\" variant=\"soft\" @click=\"tableRef?.expandToDepth(2)\">\n        展开 2 级\n      \u003C\u002FUButton>\n      \u003CUButton size=\"xs\" variant=\"soft\" @click=\"tableRef?.collapseAll()\">\n        收起全部\n      \u003C\u002FUButton>\n    \u003C\u002Fdiv>\n    \u003CMDataTable\n      ref=\"tableRef\"\n      :data=\"treeData\"\n      :columns=\"columns\"\n      children-key=\"children\"\n      row-key=\"id\"\n      :expand-on-row-click=\"expandOnRowClick\"\n    \u002F>\n  \u003C\u002Fdiv>\n\u003C\u002Ftemplate>\n","\u002Fopt\u002Fbuildhome\u002Frepo\u002Fdocs\u002Fapp\u002Fcomponents\u002Fcontent\u002Fexamples\u002Fdata-table\u002Ftree\u002FDataTableTreeExpandExample.vue","DataTableTreeExpandExample",{"data":1475,"body":1476,"toc":2737},{"title":22,"description":22},{"type":6,"children":1477},[1478,2733],{"type":9,"tag":26,"props":1479,"children":1481},{"className":28,"code":1480,"language":30,"meta":22,"style":22},"\u003Cscript setup lang=\"ts\">\nimport type { DataTableColumn, DataTableExposed } from '@movk\u002Fnuxt'\nimport type { Person } from '~\u002Fcomposables\u002FuseTableMock'\n\nconst treeData = makePeopleTree(3, 3, 3)\nconst tableRef = useTemplateRef\u003CDataTableExposed\u003CPerson>>('tableRef')\nconst expandOnRowClick = ref(false)\n\nconst columns: DataTableColumn\u003CPerson>[] = [\n  {\n    type: 'expand',\n    buttonProps: ctx => ({\n      icon: ctx.isExpanded ? 'i-lucide-folder-open' : 'i-lucide-folder',\n      color: ctx.isExpanded ? 'primary' : 'neutral',\n      variant: 'soft'\n    }),\n    toggleAllButtonProps: ctx => ({\n      icon: ctx.isAllExpanded ? 'i-lucide-chevrons-down-up' : 'i-lucide-chevrons-up-down',\n      variant: 'soft',\n      color: 'primary'\n    })\n  },\n  { accessorKey: 'name', header: '成员' },\n  { accessorKey: 'department', header: '部门' },\n  { accessorKey: 'role', header: '岗位' }\n]\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003Cdiv class=\"flex flex-col gap-3\">\n    \u003Cdiv class=\"flex flex-wrap items-center gap-2\">\n      \u003CUSwitch v-model=\"expandOnRowClick\" label=\"expandOnRowClick\" \u002F>\n      \u003CUButton size=\"xs\" variant=\"soft\" @click=\"tableRef?.expandToDepth(1)\">\n        展开 1 级\n      \u003C\u002FUButton>\n      \u003CUButton size=\"xs\" variant=\"soft\" @click=\"tableRef?.expandToDepth(2)\">\n        展开 2 级\n      \u003C\u002FUButton>\n      \u003CUButton size=\"xs\" variant=\"soft\" @click=\"tableRef?.collapseAll()\">\n        收起全部\n      \u003C\u002FUButton>\n    \u003C\u002Fdiv>\n    \u003CMDataTable\n      ref=\"tableRef\"\n      :data=\"treeData\"\n      :columns=\"columns\"\n      children-key=\"children\"\n      row-key=\"id\"\n      :expand-on-row-click=\"expandOnRowClick\"\n    \u002F>\n  \u003C\u002Fdiv>\n\u003C\u002Ftemplate>\n\n",[1482],{"type":9,"tag":33,"props":1483,"children":1484},{"__ignoreMap":22},[1485,1516,1540,1563,1570,1617,1669,1703,1710,1749,1757,1774,1801,1832,1862,1875,1883,1907,1937,1953,1966,1974,1982,2005,2028,2051,2058,2073,2080,2095,2125,2154,2207,2297,2305,2321,2400,2409,2425,2499,2508,2524,2541,2553,2571,2600,2628,2645,2662,2691,2700,2717],{"type":9,"tag":37,"props":1486,"children":1487},{"class":39,"line":40},[1488,1492,1496,1500,1504,1508,1512],{"type":9,"tag":37,"props":1489,"children":1490},{"style":44},[1491],{"type":14,"value":47},{"type":9,"tag":37,"props":1493,"children":1494},{"style":50},[1495],{"type":14,"value":53},{"type":9,"tag":37,"props":1497,"children":1498},{"style":56},[1499],{"type":14,"value":59},{"type":9,"tag":37,"props":1501,"children":1502},{"style":56},[1503],{"type":14,"value":64},{"type":9,"tag":37,"props":1505,"children":1506},{"style":44},[1507],{"type":14,"value":69},{"type":9,"tag":37,"props":1509,"children":1510},{"style":72},[1511],{"type":14,"value":75},{"type":9,"tag":37,"props":1513,"children":1514},{"style":44},[1515],{"type":14,"value":80},{"type":9,"tag":37,"props":1517,"children":1518},{"class":39,"line":83},[1519,1523,1527,1532,1536],{"type":9,"tag":37,"props":1520,"children":1521},{"style":87},[1522],{"type":14,"value":90},{"type":9,"tag":37,"props":1524,"children":1525},{"style":87},[1526],{"type":14,"value":95},{"type":9,"tag":37,"props":1528,"children":1529},{"style":44},[1530],{"type":14,"value":1531}," { DataTableColumn, DataTableExposed } ",{"type":9,"tag":37,"props":1533,"children":1534},{"style":87},[1535],{"type":14,"value":105},{"type":9,"tag":37,"props":1537,"children":1538},{"style":72},[1539],{"type":14,"value":110},{"type":9,"tag":37,"props":1541,"children":1542},{"class":39,"line":113},[1543,1547,1551,1555,1559],{"type":9,"tag":37,"props":1544,"children":1545},{"style":87},[1546],{"type":14,"value":90},{"type":9,"tag":37,"props":1548,"children":1549},{"style":87},[1550],{"type":14,"value":95},{"type":9,"tag":37,"props":1552,"children":1553},{"style":44},[1554],{"type":14,"value":127},{"type":9,"tag":37,"props":1556,"children":1557},{"style":87},[1558],{"type":14,"value":105},{"type":9,"tag":37,"props":1560,"children":1561},{"style":72},[1562],{"type":14,"value":136},{"type":9,"tag":37,"props":1564,"children":1565},{"class":39,"line":139},[1566],{"type":9,"tag":37,"props":1567,"children":1568},{"emptyLinePlaceholder":143},[1569],{"type":14,"value":146},{"type":9,"tag":37,"props":1571,"children":1572},{"class":39,"line":149},[1573,1577,1581,1585,1589,1593,1597,1601,1605,1609,1613],{"type":9,"tag":37,"props":1574,"children":1575},{"style":87},[1576],{"type":14,"value":155},{"type":9,"tag":37,"props":1578,"children":1579},{"style":158},[1580],{"type":14,"value":161},{"type":9,"tag":37,"props":1582,"children":1583},{"style":87},[1584],{"type":14,"value":166},{"type":9,"tag":37,"props":1586,"children":1587},{"style":56},[1588],{"type":14,"value":171},{"type":9,"tag":37,"props":1590,"children":1591},{"style":44},[1592],{"type":14,"value":176},{"type":9,"tag":37,"props":1594,"children":1595},{"style":158},[1596],{"type":14,"value":181},{"type":9,"tag":37,"props":1598,"children":1599},{"style":44},[1600],{"type":14,"value":186},{"type":9,"tag":37,"props":1602,"children":1603},{"style":158},[1604],{"type":14,"value":181},{"type":9,"tag":37,"props":1606,"children":1607},{"style":44},[1608],{"type":14,"value":186},{"type":9,"tag":37,"props":1610,"children":1611},{"style":158},[1612],{"type":14,"value":181},{"type":9,"tag":37,"props":1614,"children":1615},{"style":44},[1616],{"type":14,"value":204},{"type":9,"tag":37,"props":1618,"children":1619},{"class":39,"line":207},[1620,1624,1629,1633,1638,1642,1647,1651,1655,1660,1665],{"type":9,"tag":37,"props":1621,"children":1622},{"style":87},[1623],{"type":14,"value":155},{"type":9,"tag":37,"props":1625,"children":1626},{"style":158},[1627],{"type":14,"value":1628}," tableRef",{"type":9,"tag":37,"props":1630,"children":1631},{"style":87},[1632],{"type":14,"value":166},{"type":9,"tag":37,"props":1634,"children":1635},{"style":56},[1636],{"type":14,"value":1637}," useTemplateRef",{"type":9,"tag":37,"props":1639,"children":1640},{"style":44},[1641],{"type":14,"value":47},{"type":9,"tag":37,"props":1643,"children":1644},{"style":56},[1645],{"type":14,"value":1646},"DataTableExposed",{"type":9,"tag":37,"props":1648,"children":1649},{"style":44},[1650],{"type":14,"value":47},{"type":9,"tag":37,"props":1652,"children":1653},{"style":56},[1654],{"type":14,"value":244},{"type":9,"tag":37,"props":1656,"children":1657},{"style":44},[1658],{"type":14,"value":1659},">>(",{"type":9,"tag":37,"props":1661,"children":1662},{"style":72},[1663],{"type":14,"value":1664},"'tableRef'",{"type":9,"tag":37,"props":1666,"children":1667},{"style":44},[1668],{"type":14,"value":204},{"type":9,"tag":37,"props":1670,"children":1671},{"class":39,"line":215},[1672,1676,1681,1685,1690,1694,1699],{"type":9,"tag":37,"props":1673,"children":1674},{"style":87},[1675],{"type":14,"value":155},{"type":9,"tag":37,"props":1677,"children":1678},{"style":158},[1679],{"type":14,"value":1680}," expandOnRowClick",{"type":9,"tag":37,"props":1682,"children":1683},{"style":87},[1684],{"type":14,"value":166},{"type":9,"tag":37,"props":1686,"children":1687},{"style":56},[1688],{"type":14,"value":1689}," ref",{"type":9,"tag":37,"props":1691,"children":1692},{"style":44},[1693],{"type":14,"value":176},{"type":9,"tag":37,"props":1695,"children":1696},{"style":158},[1697],{"type":14,"value":1698},"false",{"type":9,"tag":37,"props":1700,"children":1701},{"style":44},[1702],{"type":14,"value":204},{"type":9,"tag":37,"props":1704,"children":1705},{"class":39,"line":261},[1706],{"type":9,"tag":37,"props":1707,"children":1708},{"emptyLinePlaceholder":143},[1709],{"type":14,"value":146},{"type":9,"tag":37,"props":1711,"children":1712},{"class":39,"line":280},[1713,1717,1721,1725,1729,1733,1737,1741,1745],{"type":9,"tag":37,"props":1714,"children":1715},{"style":87},[1716],{"type":14,"value":155},{"type":9,"tag":37,"props":1718,"children":1719},{"style":158},[1720],{"type":14,"value":225},{"type":9,"tag":37,"props":1722,"children":1723},{"style":87},[1724],{"type":14,"value":230},{"type":9,"tag":37,"props":1726,"children":1727},{"style":56},[1728],{"type":14,"value":235},{"type":9,"tag":37,"props":1730,"children":1731},{"style":44},[1732],{"type":14,"value":47},{"type":9,"tag":37,"props":1734,"children":1735},{"style":56},[1736],{"type":14,"value":244},{"type":9,"tag":37,"props":1738,"children":1739},{"style":44},[1740],{"type":14,"value":249},{"type":9,"tag":37,"props":1742,"children":1743},{"style":87},[1744],{"type":14,"value":69},{"type":9,"tag":37,"props":1746,"children":1747},{"style":44},[1748],{"type":14,"value":258},{"type":9,"tag":37,"props":1750,"children":1751},{"class":39,"line":308},[1752],{"type":9,"tag":37,"props":1753,"children":1754},{"style":44},[1755],{"type":14,"value":1756},"  {\n",{"type":9,"tag":37,"props":1758,"children":1759},{"class":39,"line":334},[1760,1765,1769],{"type":9,"tag":37,"props":1761,"children":1762},{"style":44},[1763],{"type":14,"value":1764},"    type: ",{"type":9,"tag":37,"props":1766,"children":1767},{"style":72},[1768],{"type":14,"value":272},{"type":9,"tag":37,"props":1770,"children":1771},{"style":44},[1772],{"type":14,"value":1773},",\n",{"type":9,"tag":37,"props":1775,"children":1776},{"class":39,"line":360},[1777,1782,1787,1792,1796],{"type":9,"tag":37,"props":1778,"children":1779},{"style":56},[1780],{"type":14,"value":1781},"    buttonProps",{"type":9,"tag":37,"props":1783,"children":1784},{"style":44},[1785],{"type":14,"value":1786},": ",{"type":9,"tag":37,"props":1788,"children":1789},{"style":746},[1790],{"type":14,"value":1791},"ctx",{"type":9,"tag":37,"props":1793,"children":1794},{"style":87},[1795],{"type":14,"value":1176},{"type":9,"tag":37,"props":1797,"children":1798},{"style":44},[1799],{"type":14,"value":1800}," ({\n",{"type":9,"tag":37,"props":1802,"children":1803},{"class":39,"line":397},[1804,1809,1814,1819,1823,1828],{"type":9,"tag":37,"props":1805,"children":1806},{"style":44},[1807],{"type":14,"value":1808},"      icon: ctx.isExpanded ",{"type":9,"tag":37,"props":1810,"children":1811},{"style":87},[1812],{"type":14,"value":1813},"?",{"type":9,"tag":37,"props":1815,"children":1816},{"style":72},[1817],{"type":14,"value":1818}," 'i-lucide-folder-open'",{"type":9,"tag":37,"props":1820,"children":1821},{"style":87},[1822],{"type":14,"value":464},{"type":9,"tag":37,"props":1824,"children":1825},{"style":72},[1826],{"type":14,"value":1827}," 'i-lucide-folder'",{"type":9,"tag":37,"props":1829,"children":1830},{"style":44},[1831],{"type":14,"value":1773},{"type":9,"tag":37,"props":1833,"children":1834},{"class":39,"line":406},[1835,1840,1844,1849,1853,1858],{"type":9,"tag":37,"props":1836,"children":1837},{"style":44},[1838],{"type":14,"value":1839},"      color: ctx.isExpanded ",{"type":9,"tag":37,"props":1841,"children":1842},{"style":87},[1843],{"type":14,"value":1813},{"type":9,"tag":37,"props":1845,"children":1846},{"style":72},[1847],{"type":14,"value":1848}," 'primary'",{"type":9,"tag":37,"props":1850,"children":1851},{"style":87},[1852],{"type":14,"value":464},{"type":9,"tag":37,"props":1854,"children":1855},{"style":72},[1856],{"type":14,"value":1857}," 'neutral'",{"type":9,"tag":37,"props":1859,"children":1860},{"style":44},[1861],{"type":14,"value":1773},{"type":9,"tag":37,"props":1863,"children":1864},{"class":39,"line":423},[1865,1870],{"type":9,"tag":37,"props":1866,"children":1867},{"style":44},[1868],{"type":14,"value":1869},"      variant: ",{"type":9,"tag":37,"props":1871,"children":1872},{"style":72},[1873],{"type":14,"value":1874},"'soft'\n",{"type":9,"tag":37,"props":1876,"children":1877},{"class":39,"line":431},[1878],{"type":9,"tag":37,"props":1879,"children":1880},{"style":44},[1881],{"type":14,"value":1882},"    }),\n",{"type":9,"tag":37,"props":1884,"children":1885},{"class":39,"line":448},[1886,1891,1895,1899,1903],{"type":9,"tag":37,"props":1887,"children":1888},{"style":56},[1889],{"type":14,"value":1890},"    toggleAllButtonProps",{"type":9,"tag":37,"props":1892,"children":1893},{"style":44},[1894],{"type":14,"value":1786},{"type":9,"tag":37,"props":1896,"children":1897},{"style":746},[1898],{"type":14,"value":1791},{"type":9,"tag":37,"props":1900,"children":1901},{"style":87},[1902],{"type":14,"value":1176},{"type":9,"tag":37,"props":1904,"children":1905},{"style":44},[1906],{"type":14,"value":1800},{"type":9,"tag":37,"props":1908,"children":1909},{"class":39,"line":584},[1910,1915,1919,1924,1928,1933],{"type":9,"tag":37,"props":1911,"children":1912},{"style":44},[1913],{"type":14,"value":1914},"      icon: ctx.isAllExpanded ",{"type":9,"tag":37,"props":1916,"children":1917},{"style":87},[1918],{"type":14,"value":1813},{"type":9,"tag":37,"props":1920,"children":1921},{"style":72},[1922],{"type":14,"value":1923}," 'i-lucide-chevrons-down-up'",{"type":9,"tag":37,"props":1925,"children":1926},{"style":87},[1927],{"type":14,"value":464},{"type":9,"tag":37,"props":1929,"children":1930},{"style":72},[1931],{"type":14,"value":1932}," 'i-lucide-chevrons-up-down'",{"type":9,"tag":37,"props":1934,"children":1935},{"style":44},[1936],{"type":14,"value":1773},{"type":9,"tag":37,"props":1938,"children":1939},{"class":39,"line":1069},[1940,1944,1949],{"type":9,"tag":37,"props":1941,"children":1942},{"style":44},[1943],{"type":14,"value":1869},{"type":9,"tag":37,"props":1945,"children":1946},{"style":72},[1947],{"type":14,"value":1948},"'soft'",{"type":9,"tag":37,"props":1950,"children":1951},{"style":44},[1952],{"type":14,"value":1773},{"type":9,"tag":37,"props":1954,"children":1955},{"class":39,"line":1107},[1956,1961],{"type":9,"tag":37,"props":1957,"children":1958},{"style":44},[1959],{"type":14,"value":1960},"      color: ",{"type":9,"tag":37,"props":1962,"children":1963},{"style":72},[1964],{"type":14,"value":1965},"'primary'\n",{"type":9,"tag":37,"props":1967,"children":1968},{"class":39,"line":1140},[1969],{"type":9,"tag":37,"props":1970,"children":1971},{"style":44},[1972],{"type":14,"value":1973},"    })\n",{"type":9,"tag":37,"props":1975,"children":1976},{"class":39,"line":1193},[1977],{"type":9,"tag":37,"props":1978,"children":1979},{"style":44},[1980],{"type":14,"value":1981},"  },\n",{"type":9,"tag":37,"props":1983,"children":1984},{"class":39,"line":1207},[1985,1989,1993,1997,2001],{"type":9,"tag":37,"props":1986,"children":1987},{"style":44},[1988],{"type":14,"value":286},{"type":9,"tag":37,"props":1990,"children":1991},{"style":72},[1992],{"type":14,"value":291},{"type":9,"tag":37,"props":1994,"children":1995},{"style":44},[1996],{"type":14,"value":296},{"type":9,"tag":37,"props":1998,"children":1999},{"style":72},[2000],{"type":14,"value":301},{"type":9,"tag":37,"props":2002,"children":2003},{"style":44},[2004],{"type":14,"value":277},{"type":9,"tag":37,"props":2006,"children":2007},{"class":39,"line":1216},[2008,2012,2016,2020,2024],{"type":9,"tag":37,"props":2009,"children":2010},{"style":44},[2011],{"type":14,"value":286},{"type":9,"tag":37,"props":2013,"children":2014},{"style":72},[2015],{"type":14,"value":318},{"type":9,"tag":37,"props":2017,"children":2018},{"style":44},[2019],{"type":14,"value":296},{"type":9,"tag":37,"props":2021,"children":2022},{"style":72},[2023],{"type":14,"value":327},{"type":9,"tag":37,"props":2025,"children":2026},{"style":44},[2027],{"type":14,"value":277},{"type":9,"tag":37,"props":2029,"children":2030},{"class":39,"line":1232},[2031,2035,2039,2043,2047],{"type":9,"tag":37,"props":2032,"children":2033},{"style":44},[2034],{"type":14,"value":286},{"type":9,"tag":37,"props":2036,"children":2037},{"style":72},[2038],{"type":14,"value":344},{"type":9,"tag":37,"props":2040,"children":2041},{"style":44},[2042],{"type":14,"value":296},{"type":9,"tag":37,"props":2044,"children":2045},{"style":72},[2046],{"type":14,"value":353},{"type":9,"tag":37,"props":2048,"children":2049},{"style":44},[2050],{"type":14,"value":394},{"type":9,"tag":37,"props":2052,"children":2053},{"class":39,"line":1240},[2054],{"type":9,"tag":37,"props":2055,"children":2056},{"style":44},[2057],{"type":14,"value":403},{"type":9,"tag":37,"props":2059,"children":2060},{"class":39,"line":1256},[2061,2065,2069],{"type":9,"tag":37,"props":2062,"children":2063},{"style":44},[2064],{"type":14,"value":412},{"type":9,"tag":37,"props":2066,"children":2067},{"style":50},[2068],{"type":14,"value":53},{"type":9,"tag":37,"props":2070,"children":2071},{"style":44},[2072],{"type":14,"value":80},{"type":9,"tag":37,"props":2074,"children":2075},{"class":39,"line":1269},[2076],{"type":9,"tag":37,"props":2077,"children":2078},{"emptyLinePlaceholder":143},[2079],{"type":14,"value":146},{"type":9,"tag":37,"props":2081,"children":2082},{"class":39,"line":1301},[2083,2087,2091],{"type":9,"tag":37,"props":2084,"children":2085},{"style":44},[2086],{"type":14,"value":47},{"type":9,"tag":37,"props":2088,"children":2089},{"style":50},[2090],{"type":14,"value":441},{"type":9,"tag":37,"props":2092,"children":2093},{"style":44},[2094],{"type":14,"value":80},{"type":9,"tag":37,"props":2096,"children":2097},{"class":39,"line":1331},[2098,2102,2107,2112,2116,2121],{"type":9,"tag":37,"props":2099,"children":2100},{"style":44},[2101],{"type":14,"value":454},{"type":9,"tag":37,"props":2103,"children":2104},{"style":50},[2105],{"type":14,"value":2106},"div",{"type":9,"tag":37,"props":2108,"children":2109},{"style":56},[2110],{"type":14,"value":2111}," class",{"type":9,"tag":37,"props":2113,"children":2114},{"style":44},[2115],{"type":14,"value":69},{"type":9,"tag":37,"props":2117,"children":2118},{"style":72},[2119],{"type":14,"value":2120},"\"flex flex-col gap-3\"",{"type":9,"tag":37,"props":2122,"children":2123},{"style":44},[2124],{"type":14,"value":80},{"type":9,"tag":37,"props":2126,"children":2127},{"class":39,"line":1359},[2128,2133,2137,2141,2145,2150],{"type":9,"tag":37,"props":2129,"children":2130},{"style":44},[2131],{"type":14,"value":2132},"    \u003C",{"type":9,"tag":37,"props":2134,"children":2135},{"style":50},[2136],{"type":14,"value":2106},{"type":9,"tag":37,"props":2138,"children":2139},{"style":56},[2140],{"type":14,"value":2111},{"type":9,"tag":37,"props":2142,"children":2143},{"style":44},[2144],{"type":14,"value":69},{"type":9,"tag":37,"props":2146,"children":2147},{"style":72},[2148],{"type":14,"value":2149},"\"flex flex-wrap items-center gap-2\"",{"type":9,"tag":37,"props":2151,"children":2152},{"style":44},[2153],{"type":14,"value":80},{"type":9,"tag":37,"props":2155,"children":2156},{"class":39,"line":1387},[2157,2162,2167,2172,2176,2180,2185,2189,2194,2198,2203],{"type":9,"tag":37,"props":2158,"children":2159},{"style":44},[2160],{"type":14,"value":2161},"      \u003C",{"type":9,"tag":37,"props":2163,"children":2164},{"style":50},[2165],{"type":14,"value":2166},"USwitch",{"type":9,"tag":37,"props":2168,"children":2169},{"style":56},[2170],{"type":14,"value":2171}," v-model",{"type":9,"tag":37,"props":2173,"children":2174},{"style":44},[2175],{"type":14,"value":69},{"type":9,"tag":37,"props":2177,"children":2178},{"style":72},[2179],{"type":14,"value":478},{"type":9,"tag":37,"props":2181,"children":2182},{"style":44},[2183],{"type":14,"value":2184},"expandOnRowClick",{"type":9,"tag":37,"props":2186,"children":2187},{"style":72},[2188],{"type":14,"value":478},{"type":9,"tag":37,"props":2190,"children":2191},{"style":56},[2192],{"type":14,"value":2193}," label",{"type":9,"tag":37,"props":2195,"children":2196},{"style":44},[2197],{"type":14,"value":69},{"type":9,"tag":37,"props":2199,"children":2200},{"style":72},[2201],{"type":14,"value":2202},"\"expandOnRowClick\"",{"type":9,"tag":37,"props":2204,"children":2205},{"style":44},[2206],{"type":14,"value":581},{"type":9,"tag":37,"props":2208,"children":2209},{"class":39,"line":1405},[2210,2214,2219,2224,2228,2233,2238,2242,2247,2252,2257,2261,2265,2270,2275,2279,2284,2289,2293],{"type":9,"tag":37,"props":2211,"children":2212},{"style":44},[2213],{"type":14,"value":2161},{"type":9,"tag":37,"props":2215,"children":2216},{"style":50},[2217],{"type":14,"value":2218},"UButton",{"type":9,"tag":37,"props":2220,"children":2221},{"style":56},[2222],{"type":14,"value":2223}," size",{"type":9,"tag":37,"props":2225,"children":2226},{"style":44},[2227],{"type":14,"value":69},{"type":9,"tag":37,"props":2229,"children":2230},{"style":72},[2231],{"type":14,"value":2232},"\"xs\"",{"type":9,"tag":37,"props":2234,"children":2235},{"style":56},[2236],{"type":14,"value":2237}," variant",{"type":9,"tag":37,"props":2239,"children":2240},{"style":44},[2241],{"type":14,"value":69},{"type":9,"tag":37,"props":2243,"children":2244},{"style":72},[2245],{"type":14,"value":2246},"\"soft\"",{"type":9,"tag":37,"props":2248,"children":2249},{"style":44},[2250],{"type":14,"value":2251}," @",{"type":9,"tag":37,"props":2253,"children":2254},{"style":56},[2255],{"type":14,"value":2256},"click",{"type":9,"tag":37,"props":2258,"children":2259},{"style":44},[2260],{"type":14,"value":69},{"type":9,"tag":37,"props":2262,"children":2263},{"style":72},[2264],{"type":14,"value":478},{"type":9,"tag":37,"props":2266,"children":2267},{"style":44},[2268],{"type":14,"value":2269},"tableRef?.",{"type":9,"tag":37,"props":2271,"children":2272},{"style":56},[2273],{"type":14,"value":2274},"expandToDepth",{"type":9,"tag":37,"props":2276,"children":2277},{"style":44},[2278],{"type":14,"value":176},{"type":9,"tag":37,"props":2280,"children":2281},{"style":158},[2282],{"type":14,"value":2283},"1",{"type":9,"tag":37,"props":2285,"children":2286},{"style":44},[2287],{"type":14,"value":2288},")",{"type":9,"tag":37,"props":2290,"children":2291},{"style":72},[2292],{"type":14,"value":478},{"type":9,"tag":37,"props":2294,"children":2295},{"style":44},[2296],{"type":14,"value":80},{"type":9,"tag":37,"props":2298,"children":2299},{"class":39,"line":1423},[2300],{"type":9,"tag":37,"props":2301,"children":2302},{"style":44},[2303],{"type":14,"value":2304},"        展开 1 级\n",{"type":9,"tag":37,"props":2306,"children":2307},{"class":39,"line":1441},[2308,2313,2317],{"type":9,"tag":37,"props":2309,"children":2310},{"style":44},[2311],{"type":14,"value":2312},"      \u003C\u002F",{"type":9,"tag":37,"props":2314,"children":2315},{"style":50},[2316],{"type":14,"value":2218},{"type":9,"tag":37,"props":2318,"children":2319},{"style":44},[2320],{"type":14,"value":80},{"type":9,"tag":37,"props":2322,"children":2323},{"class":39,"line":1450},[2324,2328,2332,2336,2340,2344,2348,2352,2356,2360,2364,2368,2372,2376,2380,2384,2388,2392,2396],{"type":9,"tag":37,"props":2325,"children":2326},{"style":44},[2327],{"type":14,"value":2161},{"type":9,"tag":37,"props":2329,"children":2330},{"style":50},[2331],{"type":14,"value":2218},{"type":9,"tag":37,"props":2333,"children":2334},{"style":56},[2335],{"type":14,"value":2223},{"type":9,"tag":37,"props":2337,"children":2338},{"style":44},[2339],{"type":14,"value":69},{"type":9,"tag":37,"props":2341,"children":2342},{"style":72},[2343],{"type":14,"value":2232},{"type":9,"tag":37,"props":2345,"children":2346},{"style":56},[2347],{"type":14,"value":2237},{"type":9,"tag":37,"props":2349,"children":2350},{"style":44},[2351],{"type":14,"value":69},{"type":9,"tag":37,"props":2353,"children":2354},{"style":72},[2355],{"type":14,"value":2246},{"type":9,"tag":37,"props":2357,"children":2358},{"style":44},[2359],{"type":14,"value":2251},{"type":9,"tag":37,"props":2361,"children":2362},{"style":56},[2363],{"type":14,"value":2256},{"type":9,"tag":37,"props":2365,"children":2366},{"style":44},[2367],{"type":14,"value":69},{"type":9,"tag":37,"props":2369,"children":2370},{"style":72},[2371],{"type":14,"value":478},{"type":9,"tag":37,"props":2373,"children":2374},{"style":44},[2375],{"type":14,"value":2269},{"type":9,"tag":37,"props":2377,"children":2378},{"style":56},[2379],{"type":14,"value":2274},{"type":9,"tag":37,"props":2381,"children":2382},{"style":44},[2383],{"type":14,"value":176},{"type":9,"tag":37,"props":2385,"children":2386},{"style":158},[2387],{"type":14,"value":199},{"type":9,"tag":37,"props":2389,"children":2390},{"style":44},[2391],{"type":14,"value":2288},{"type":9,"tag":37,"props":2393,"children":2394},{"style":72},[2395],{"type":14,"value":478},{"type":9,"tag":37,"props":2397,"children":2398},{"style":44},[2399],{"type":14,"value":80},{"type":9,"tag":37,"props":2401,"children":2403},{"class":39,"line":2402},37,[2404],{"type":9,"tag":37,"props":2405,"children":2406},{"style":44},[2407],{"type":14,"value":2408},"        展开 2 级\n",{"type":9,"tag":37,"props":2410,"children":2412},{"class":39,"line":2411},38,[2413,2417,2421],{"type":9,"tag":37,"props":2414,"children":2415},{"style":44},[2416],{"type":14,"value":2312},{"type":9,"tag":37,"props":2418,"children":2419},{"style":50},[2420],{"type":14,"value":2218},{"type":9,"tag":37,"props":2422,"children":2423},{"style":44},[2424],{"type":14,"value":80},{"type":9,"tag":37,"props":2426,"children":2428},{"class":39,"line":2427},39,[2429,2433,2437,2441,2445,2449,2453,2457,2461,2465,2469,2473,2477,2481,2486,2491,2495],{"type":9,"tag":37,"props":2430,"children":2431},{"style":44},[2432],{"type":14,"value":2161},{"type":9,"tag":37,"props":2434,"children":2435},{"style":50},[2436],{"type":14,"value":2218},{"type":9,"tag":37,"props":2438,"children":2439},{"style":56},[2440],{"type":14,"value":2223},{"type":9,"tag":37,"props":2442,"children":2443},{"style":44},[2444],{"type":14,"value":69},{"type":9,"tag":37,"props":2446,"children":2447},{"style":72},[2448],{"type":14,"value":2232},{"type":9,"tag":37,"props":2450,"children":2451},{"style":56},[2452],{"type":14,"value":2237},{"type":9,"tag":37,"props":2454,"children":2455},{"style":44},[2456],{"type":14,"value":69},{"type":9,"tag":37,"props":2458,"children":2459},{"style":72},[2460],{"type":14,"value":2246},{"type":9,"tag":37,"props":2462,"children":2463},{"style":44},[2464],{"type":14,"value":2251},{"type":9,"tag":37,"props":2466,"children":2467},{"style":56},[2468],{"type":14,"value":2256},{"type":9,"tag":37,"props":2470,"children":2471},{"style":44},[2472],{"type":14,"value":69},{"type":9,"tag":37,"props":2474,"children":2475},{"style":72},[2476],{"type":14,"value":478},{"type":9,"tag":37,"props":2478,"children":2479},{"style":44},[2480],{"type":14,"value":2269},{"type":9,"tag":37,"props":2482,"children":2483},{"style":56},[2484],{"type":14,"value":2485},"collapseAll",{"type":9,"tag":37,"props":2487,"children":2488},{"style":44},[2489],{"type":14,"value":2490},"()",{"type":9,"tag":37,"props":2492,"children":2493},{"style":72},[2494],{"type":14,"value":478},{"type":9,"tag":37,"props":2496,"children":2497},{"style":44},[2498],{"type":14,"value":80},{"type":9,"tag":37,"props":2500,"children":2502},{"class":39,"line":2501},40,[2503],{"type":9,"tag":37,"props":2504,"children":2505},{"style":44},[2506],{"type":14,"value":2507},"        收起全部\n",{"type":9,"tag":37,"props":2509,"children":2511},{"class":39,"line":2510},41,[2512,2516,2520],{"type":9,"tag":37,"props":2513,"children":2514},{"style":44},[2515],{"type":14,"value":2312},{"type":9,"tag":37,"props":2517,"children":2518},{"style":50},[2519],{"type":14,"value":2218},{"type":9,"tag":37,"props":2521,"children":2522},{"style":44},[2523],{"type":14,"value":80},{"type":9,"tag":37,"props":2525,"children":2527},{"class":39,"line":2526},42,[2528,2533,2537],{"type":9,"tag":37,"props":2529,"children":2530},{"style":44},[2531],{"type":14,"value":2532},"    \u003C\u002F",{"type":9,"tag":37,"props":2534,"children":2535},{"style":50},[2536],{"type":14,"value":2106},{"type":9,"tag":37,"props":2538,"children":2539},{"style":44},[2540],{"type":14,"value":80},{"type":9,"tag":37,"props":2542,"children":2544},{"class":39,"line":2543},43,[2545,2549],{"type":9,"tag":37,"props":2546,"children":2547},{"style":44},[2548],{"type":14,"value":2132},{"type":9,"tag":37,"props":2550,"children":2551},{"style":50},[2552],{"type":14,"value":1266},{"type":9,"tag":37,"props":2554,"children":2556},{"class":39,"line":2555},44,[2557,2562,2566],{"type":9,"tag":37,"props":2558,"children":2559},{"style":56},[2560],{"type":14,"value":2561},"      ref",{"type":9,"tag":37,"props":2563,"children":2564},{"style":44},[2565],{"type":14,"value":69},{"type":9,"tag":37,"props":2567,"children":2568},{"style":72},[2569],{"type":14,"value":2570},"\"tableRef\"\n",{"type":9,"tag":37,"props":2572,"children":2574},{"class":39,"line":2573},45,[2575,2580,2584,2588,2592,2596],{"type":9,"tag":37,"props":2576,"children":2577},{"style":44},[2578],{"type":14,"value":2579},"      :",{"type":9,"tag":37,"props":2581,"children":2582},{"style":56},[2583],{"type":14,"value":469},{"type":9,"tag":37,"props":2585,"children":2586},{"style":44},[2587],{"type":14,"value":69},{"type":9,"tag":37,"props":2589,"children":2590},{"style":72},[2591],{"type":14,"value":478},{"type":9,"tag":37,"props":2593,"children":2594},{"style":44},[2595],{"type":14,"value":483},{"type":9,"tag":37,"props":2597,"children":2598},{"style":72},[2599],{"type":14,"value":1298},{"type":9,"tag":37,"props":2601,"children":2603},{"class":39,"line":2602},46,[2604,2608,2612,2616,2620,2624],{"type":9,"tag":37,"props":2605,"children":2606},{"style":44},[2607],{"type":14,"value":2579},{"type":9,"tag":37,"props":2609,"children":2610},{"style":56},[2611],{"type":14,"value":496},{"type":9,"tag":37,"props":2613,"children":2614},{"style":44},[2615],{"type":14,"value":69},{"type":9,"tag":37,"props":2617,"children":2618},{"style":72},[2619],{"type":14,"value":478},{"type":9,"tag":37,"props":2621,"children":2622},{"style":44},[2623],{"type":14,"value":496},{"type":9,"tag":37,"props":2625,"children":2626},{"style":72},[2627],{"type":14,"value":1298},{"type":9,"tag":37,"props":2629,"children":2631},{"class":39,"line":2630},47,[2632,2637,2641],{"type":9,"tag":37,"props":2633,"children":2634},{"style":56},[2635],{"type":14,"value":2636},"      children-key",{"type":9,"tag":37,"props":2638,"children":2639},{"style":44},[2640],{"type":14,"value":69},{"type":9,"tag":37,"props":2642,"children":2643},{"style":72},[2644],{"type":14,"value":1402},{"type":9,"tag":37,"props":2646,"children":2648},{"class":39,"line":2647},48,[2649,2654,2658],{"type":9,"tag":37,"props":2650,"children":2651},{"style":56},[2652],{"type":14,"value":2653},"      row-key",{"type":9,"tag":37,"props":2655,"children":2656},{"style":44},[2657],{"type":14,"value":69},{"type":9,"tag":37,"props":2659,"children":2660},{"style":72},[2661],{"type":14,"value":1420},{"type":9,"tag":37,"props":2663,"children":2665},{"class":39,"line":2664},49,[2666,2670,2675,2679,2683,2687],{"type":9,"tag":37,"props":2667,"children":2668},{"style":44},[2669],{"type":14,"value":2579},{"type":9,"tag":37,"props":2671,"children":2672},{"style":56},[2673],{"type":14,"value":2674},"expand-on-row-click",{"type":9,"tag":37,"props":2676,"children":2677},{"style":44},[2678],{"type":14,"value":69},{"type":9,"tag":37,"props":2680,"children":2681},{"style":72},[2682],{"type":14,"value":478},{"type":9,"tag":37,"props":2684,"children":2685},{"style":44},[2686],{"type":14,"value":2184},{"type":9,"tag":37,"props":2688,"children":2689},{"style":72},[2690],{"type":14,"value":1298},{"type":9,"tag":37,"props":2692,"children":2694},{"class":39,"line":2693},50,[2695],{"type":9,"tag":37,"props":2696,"children":2697},{"style":44},[2698],{"type":14,"value":2699},"    \u002F>\n",{"type":9,"tag":37,"props":2701,"children":2703},{"class":39,"line":2702},51,[2704,2709,2713],{"type":9,"tag":37,"props":2705,"children":2706},{"style":44},[2707],{"type":14,"value":2708},"  \u003C\u002F",{"type":9,"tag":37,"props":2710,"children":2711},{"style":50},[2712],{"type":14,"value":2106},{"type":9,"tag":37,"props":2714,"children":2715},{"style":44},[2716],{"type":14,"value":80},{"type":9,"tag":37,"props":2718,"children":2720},{"class":39,"line":2719},52,[2721,2725,2729],{"type":9,"tag":37,"props":2722,"children":2723},{"style":44},[2724],{"type":14,"value":412},{"type":9,"tag":37,"props":2726,"children":2727},{"style":50},[2728],{"type":14,"value":441},{"type":9,"tag":37,"props":2730,"children":2731},{"style":44},[2732],{"type":14,"value":80},{"type":9,"tag":599,"props":2734,"children":2735},{},[2736],{"type":14,"value":603},{"title":22,"searchDepth":83,"depth":83,"links":2738},[],{"code":2740,"filePath":2741,"pascalName":2742},"\u003Cscript setup lang=\"ts\">\nimport type { DataTableColumn } from '@movk\u002Fnuxt'\nimport type { Person } from '~\u002Fcomposables\u002FuseTableMock'\n\nconst treeData = makePeopleTree(3, 3, 3)\n\nconst columns: DataTableColumn\u003CPerson>[] = [\n  { type: 'expand' },\n  { accessorKey: 'name', header: '成员' },\n  { accessorKey: 'department', header: '部门' },\n  { accessorKey: 'role', header: '岗位' }\n]\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CMDataTable :default-expanded=\"1\" :data=\"treeData\" :columns=\"columns\" children-key=\"children\" row-key=\"id\" \u002F>\n\u003C\u002Ftemplate>\n","\u002Fopt\u002Fbuildhome\u002Frepo\u002Fdocs\u002Fapp\u002Fcomponents\u002Fcontent\u002Fexamples\u002Fdata-table\u002Ftree\u002FDataTableTreeIndentExample.vue","DataTableTreeIndentExample",{"data":2744,"body":2745,"toc":3189},{"title":22,"description":22},{"type":6,"children":2746},[2747,3185],{"type":9,"tag":26,"props":2748,"children":2750},{"className":28,"code":2749,"language":30,"meta":22,"style":22},"\u003Cscript setup lang=\"ts\">\nimport type { DataTableColumn } from '@movk\u002Fnuxt'\nimport type { Person } from '~\u002Fcomposables\u002FuseTableMock'\n\nconst treeData = makePeopleTree(3, 3, 3)\n\nconst columns: DataTableColumn\u003CPerson>[] = [\n  { type: 'expand' },\n  { accessorKey: 'name', header: '成员' },\n  { accessorKey: 'department', header: '部门' },\n  { accessorKey: 'role', header: '岗位' }\n]\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CMDataTable :default-expanded=\"1\" :data=\"treeData\" :columns=\"columns\" children-key=\"children\" row-key=\"id\" \u002F>\n\u003C\u002Ftemplate>\n\n",[2751],{"type":9,"tag":33,"props":2752,"children":2753},{"__ignoreMap":22},[2754,2785,2808,2831,2838,2885,2892,2931,2946,2969,2992,3015,3022,3037,3044,3059,3170],{"type":9,"tag":37,"props":2755,"children":2756},{"class":39,"line":40},[2757,2761,2765,2769,2773,2777,2781],{"type":9,"tag":37,"props":2758,"children":2759},{"style":44},[2760],{"type":14,"value":47},{"type":9,"tag":37,"props":2762,"children":2763},{"style":50},[2764],{"type":14,"value":53},{"type":9,"tag":37,"props":2766,"children":2767},{"style":56},[2768],{"type":14,"value":59},{"type":9,"tag":37,"props":2770,"children":2771},{"style":56},[2772],{"type":14,"value":64},{"type":9,"tag":37,"props":2774,"children":2775},{"style":44},[2776],{"type":14,"value":69},{"type":9,"tag":37,"props":2778,"children":2779},{"style":72},[2780],{"type":14,"value":75},{"type":9,"tag":37,"props":2782,"children":2783},{"style":44},[2784],{"type":14,"value":80},{"type":9,"tag":37,"props":2786,"children":2787},{"class":39,"line":83},[2788,2792,2796,2800,2804],{"type":9,"tag":37,"props":2789,"children":2790},{"style":87},[2791],{"type":14,"value":90},{"type":9,"tag":37,"props":2793,"children":2794},{"style":87},[2795],{"type":14,"value":95},{"type":9,"tag":37,"props":2797,"children":2798},{"style":44},[2799],{"type":14,"value":100},{"type":9,"tag":37,"props":2801,"children":2802},{"style":87},[2803],{"type":14,"value":105},{"type":9,"tag":37,"props":2805,"children":2806},{"style":72},[2807],{"type":14,"value":110},{"type":9,"tag":37,"props":2809,"children":2810},{"class":39,"line":113},[2811,2815,2819,2823,2827],{"type":9,"tag":37,"props":2812,"children":2813},{"style":87},[2814],{"type":14,"value":90},{"type":9,"tag":37,"props":2816,"children":2817},{"style":87},[2818],{"type":14,"value":95},{"type":9,"tag":37,"props":2820,"children":2821},{"style":44},[2822],{"type":14,"value":127},{"type":9,"tag":37,"props":2824,"children":2825},{"style":87},[2826],{"type":14,"value":105},{"type":9,"tag":37,"props":2828,"children":2829},{"style":72},[2830],{"type":14,"value":136},{"type":9,"tag":37,"props":2832,"children":2833},{"class":39,"line":139},[2834],{"type":9,"tag":37,"props":2835,"children":2836},{"emptyLinePlaceholder":143},[2837],{"type":14,"value":146},{"type":9,"tag":37,"props":2839,"children":2840},{"class":39,"line":149},[2841,2845,2849,2853,2857,2861,2865,2869,2873,2877,2881],{"type":9,"tag":37,"props":2842,"children":2843},{"style":87},[2844],{"type":14,"value":155},{"type":9,"tag":37,"props":2846,"children":2847},{"style":158},[2848],{"type":14,"value":161},{"type":9,"tag":37,"props":2850,"children":2851},{"style":87},[2852],{"type":14,"value":166},{"type":9,"tag":37,"props":2854,"children":2855},{"style":56},[2856],{"type":14,"value":171},{"type":9,"tag":37,"props":2858,"children":2859},{"style":44},[2860],{"type":14,"value":176},{"type":9,"tag":37,"props":2862,"children":2863},{"style":158},[2864],{"type":14,"value":181},{"type":9,"tag":37,"props":2866,"children":2867},{"style":44},[2868],{"type":14,"value":186},{"type":9,"tag":37,"props":2870,"children":2871},{"style":158},[2872],{"type":14,"value":181},{"type":9,"tag":37,"props":2874,"children":2875},{"style":44},[2876],{"type":14,"value":186},{"type":9,"tag":37,"props":2878,"children":2879},{"style":158},[2880],{"type":14,"value":181},{"type":9,"tag":37,"props":2882,"children":2883},{"style":44},[2884],{"type":14,"value":204},{"type":9,"tag":37,"props":2886,"children":2887},{"class":39,"line":207},[2888],{"type":9,"tag":37,"props":2889,"children":2890},{"emptyLinePlaceholder":143},[2891],{"type":14,"value":146},{"type":9,"tag":37,"props":2893,"children":2894},{"class":39,"line":215},[2895,2899,2903,2907,2911,2915,2919,2923,2927],{"type":9,"tag":37,"props":2896,"children":2897},{"style":87},[2898],{"type":14,"value":155},{"type":9,"tag":37,"props":2900,"children":2901},{"style":158},[2902],{"type":14,"value":225},{"type":9,"tag":37,"props":2904,"children":2905},{"style":87},[2906],{"type":14,"value":230},{"type":9,"tag":37,"props":2908,"children":2909},{"style":56},[2910],{"type":14,"value":235},{"type":9,"tag":37,"props":2912,"children":2913},{"style":44},[2914],{"type":14,"value":47},{"type":9,"tag":37,"props":2916,"children":2917},{"style":56},[2918],{"type":14,"value":244},{"type":9,"tag":37,"props":2920,"children":2921},{"style":44},[2922],{"type":14,"value":249},{"type":9,"tag":37,"props":2924,"children":2925},{"style":87},[2926],{"type":14,"value":69},{"type":9,"tag":37,"props":2928,"children":2929},{"style":44},[2930],{"type":14,"value":258},{"type":9,"tag":37,"props":2932,"children":2933},{"class":39,"line":261},[2934,2938,2942],{"type":9,"tag":37,"props":2935,"children":2936},{"style":44},[2937],{"type":14,"value":267},{"type":9,"tag":37,"props":2939,"children":2940},{"style":72},[2941],{"type":14,"value":272},{"type":9,"tag":37,"props":2943,"children":2944},{"style":44},[2945],{"type":14,"value":277},{"type":9,"tag":37,"props":2947,"children":2948},{"class":39,"line":280},[2949,2953,2957,2961,2965],{"type":9,"tag":37,"props":2950,"children":2951},{"style":44},[2952],{"type":14,"value":286},{"type":9,"tag":37,"props":2954,"children":2955},{"style":72},[2956],{"type":14,"value":291},{"type":9,"tag":37,"props":2958,"children":2959},{"style":44},[2960],{"type":14,"value":296},{"type":9,"tag":37,"props":2962,"children":2963},{"style":72},[2964],{"type":14,"value":301},{"type":9,"tag":37,"props":2966,"children":2967},{"style":44},[2968],{"type":14,"value":277},{"type":9,"tag":37,"props":2970,"children":2971},{"class":39,"line":308},[2972,2976,2980,2984,2988],{"type":9,"tag":37,"props":2973,"children":2974},{"style":44},[2975],{"type":14,"value":286},{"type":9,"tag":37,"props":2977,"children":2978},{"style":72},[2979],{"type":14,"value":318},{"type":9,"tag":37,"props":2981,"children":2982},{"style":44},[2983],{"type":14,"value":296},{"type":9,"tag":37,"props":2985,"children":2986},{"style":72},[2987],{"type":14,"value":327},{"type":9,"tag":37,"props":2989,"children":2990},{"style":44},[2991],{"type":14,"value":277},{"type":9,"tag":37,"props":2993,"children":2994},{"class":39,"line":334},[2995,2999,3003,3007,3011],{"type":9,"tag":37,"props":2996,"children":2997},{"style":44},[2998],{"type":14,"value":286},{"type":9,"tag":37,"props":3000,"children":3001},{"style":72},[3002],{"type":14,"value":344},{"type":9,"tag":37,"props":3004,"children":3005},{"style":44},[3006],{"type":14,"value":296},{"type":9,"tag":37,"props":3008,"children":3009},{"style":72},[3010],{"type":14,"value":353},{"type":9,"tag":37,"props":3012,"children":3013},{"style":44},[3014],{"type":14,"value":394},{"type":9,"tag":37,"props":3016,"children":3017},{"class":39,"line":360},[3018],{"type":9,"tag":37,"props":3019,"children":3020},{"style":44},[3021],{"type":14,"value":403},{"type":9,"tag":37,"props":3023,"children":3024},{"class":39,"line":397},[3025,3029,3033],{"type":9,"tag":37,"props":3026,"children":3027},{"style":44},[3028],{"type":14,"value":412},{"type":9,"tag":37,"props":3030,"children":3031},{"style":50},[3032],{"type":14,"value":53},{"type":9,"tag":37,"props":3034,"children":3035},{"style":44},[3036],{"type":14,"value":80},{"type":9,"tag":37,"props":3038,"children":3039},{"class":39,"line":406},[3040],{"type":9,"tag":37,"props":3041,"children":3042},{"emptyLinePlaceholder":143},[3043],{"type":14,"value":146},{"type":9,"tag":37,"props":3045,"children":3046},{"class":39,"line":423},[3047,3051,3055],{"type":9,"tag":37,"props":3048,"children":3049},{"style":44},[3050],{"type":14,"value":47},{"type":9,"tag":37,"props":3052,"children":3053},{"style":50},[3054],{"type":14,"value":441},{"type":9,"tag":37,"props":3056,"children":3057},{"style":44},[3058],{"type":14,"value":80},{"type":9,"tag":37,"props":3060,"children":3061},{"class":39,"line":431},[3062,3066,3070,3074,3078,3082,3086,3090,3094,3098,3102,3106,3110,3114,3118,3122,3126,3130,3134,3138,3142,3146,3150,3154,3158,3162,3166],{"type":9,"tag":37,"props":3063,"children":3064},{"style":44},[3065],{"type":14,"value":454},{"type":9,"tag":37,"props":3067,"children":3068},{"style":50},[3069],{"type":14,"value":459},{"type":9,"tag":37,"props":3071,"children":3072},{"style":44},[3073],{"type":14,"value":464},{"type":9,"tag":37,"props":3075,"children":3076},{"style":56},[3077],{"type":14,"value":1311},{"type":9,"tag":37,"props":3079,"children":3080},{"style":44},[3081],{"type":14,"value":69},{"type":9,"tag":37,"props":3083,"children":3084},{"style":72},[3085],{"type":14,"value":478},{"type":9,"tag":37,"props":3087,"children":3088},{"style":158},[3089],{"type":14,"value":2283},{"type":9,"tag":37,"props":3091,"children":3092},{"style":72},[3093],{"type":14,"value":478},{"type":9,"tag":37,"props":3095,"children":3096},{"style":44},[3097],{"type":14,"value":464},{"type":9,"tag":37,"props":3099,"children":3100},{"style":56},[3101],{"type":14,"value":469},{"type":9,"tag":37,"props":3103,"children":3104},{"style":44},[3105],{"type":14,"value":69},{"type":9,"tag":37,"props":3107,"children":3108},{"style":72},[3109],{"type":14,"value":478},{"type":9,"tag":37,"props":3111,"children":3112},{"style":44},[3113],{"type":14,"value":483},{"type":9,"tag":37,"props":3115,"children":3116},{"style":72},[3117],{"type":14,"value":478},{"type":9,"tag":37,"props":3119,"children":3120},{"style":44},[3121],{"type":14,"value":464},{"type":9,"tag":37,"props":3123,"children":3124},{"style":56},[3125],{"type":14,"value":496},{"type":9,"tag":37,"props":3127,"children":3128},{"style":44},[3129],{"type":14,"value":69},{"type":9,"tag":37,"props":3131,"children":3132},{"style":72},[3133],{"type":14,"value":478},{"type":9,"tag":37,"props":3135,"children":3136},{"style":44},[3137],{"type":14,"value":496},{"type":9,"tag":37,"props":3139,"children":3140},{"style":72},[3141],{"type":14,"value":478},{"type":9,"tag":37,"props":3143,"children":3144},{"style":56},[3145],{"type":14,"value":517},{"type":9,"tag":37,"props":3147,"children":3148},{"style":44},[3149],{"type":14,"value":69},{"type":9,"tag":37,"props":3151,"children":3152},{"style":72},[3153],{"type":14,"value":526},{"type":9,"tag":37,"props":3155,"children":3156},{"style":56},[3157],{"type":14,"value":531},{"type":9,"tag":37,"props":3159,"children":3160},{"style":44},[3161],{"type":14,"value":69},{"type":9,"tag":37,"props":3163,"children":3164},{"style":72},[3165],{"type":14,"value":540},{"type":9,"tag":37,"props":3167,"children":3168},{"style":44},[3169],{"type":14,"value":581},{"type":9,"tag":37,"props":3171,"children":3172},{"class":39,"line":448},[3173,3177,3181],{"type":9,"tag":37,"props":3174,"children":3175},{"style":44},[3176],{"type":14,"value":412},{"type":9,"tag":37,"props":3178,"children":3179},{"style":50},[3180],{"type":14,"value":441},{"type":9,"tag":37,"props":3182,"children":3183},{"style":44},[3184],{"type":14,"value":80},{"type":9,"tag":599,"props":3186,"children":3187},{},[3188],{"type":14,"value":603},{"title":22,"searchDepth":83,"depth":83,"links":3190},[],{"code":3192,"filePath":3193,"pascalName":3194},"\u003Cscript setup lang=\"ts\">\nimport type { DataTableColumn, DataTableSelectionColumn } from '@movk\u002Fnuxt'\nimport type { Person } from '~\u002Fcomposables\u002FuseTableMock'\n\nconst treeData = makePeopleTree(3, 3, 2)\nconst mode = ref\u003CDataTableSelectionColumn['mode']>('multiple')\n\nconst columns = computed\u003CDataTableColumn\u003CPerson>[]>(() => [\n  { type: 'selection', mode: mode.value, strategy: mode.value === 'single' ? 'isolated' : 'cascade' },\n  { type: 'expand' },\n  { accessorKey: 'name', header: '成员' },\n  { accessorKey: 'department', header: '部门' },\n  { accessorKey: 'role', header: '岗位' }\n])\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003Cdiv class=\"flex flex-col gap-3\">\n    \u003CUSwitch\n      :model-value=\"mode === 'single'\"\n      label=\"single 单选\"\n      @update:model-value=\"mode = $event ? 'single' : 'multiple'\"\n    \u002F>\n    \u003CMDataTable :data=\"treeData\" :columns=\"columns\" children-key=\"children\" row-key=\"id\" \u002F>\n  \u003C\u002Fdiv>\n\u003C\u002Ftemplate>\n","\u002Fopt\u002Fbuildhome\u002Frepo\u002Fdocs\u002Fapp\u002Fcomponents\u002Fcontent\u002Fexamples\u002Fdata-table\u002Ftree\u002FDataTableTreeModeExample.vue","DataTableTreeModeExample",{"data":3196,"body":3197,"toc":3902},{"title":22,"description":22},{"type":6,"children":3198},[3199,3898],{"type":9,"tag":26,"props":3200,"children":3202},{"className":28,"code":3201,"language":30,"meta":22,"style":22},"\u003Cscript setup lang=\"ts\">\nimport type { DataTableColumn, DataTableSelectionColumn } from '@movk\u002Fnuxt'\nimport type { Person } from '~\u002Fcomposables\u002FuseTableMock'\n\nconst treeData = makePeopleTree(3, 3, 2)\nconst mode = ref\u003CDataTableSelectionColumn['mode']>('multiple')\n\nconst columns = computed\u003CDataTableColumn\u003CPerson>[]>(() => [\n  { type: 'selection', mode: mode.value, strategy: mode.value === 'single' ? 'isolated' : 'cascade' },\n  { type: 'expand' },\n  { accessorKey: 'name', header: '成员' },\n  { accessorKey: 'department', header: '部门' },\n  { accessorKey: 'role', header: '岗位' }\n])\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003Cdiv class=\"flex flex-col gap-3\">\n    \u003CUSwitch\n      :model-value=\"mode === 'single'\"\n      label=\"single 单选\"\n      @update:model-value=\"mode = $event ? 'single' : 'multiple'\"\n    \u002F>\n    \u003CMDataTable :data=\"treeData\" :columns=\"columns\" children-key=\"children\" row-key=\"id\" \u002F>\n  \u003C\u002Fdiv>\n\u003C\u002Ftemplate>\n\n",[3203],{"type":9,"tag":33,"props":3204,"children":3205},{"__ignoreMap":22},[3206,3237,3261,3284,3291,3338,3391,3398,3447,3496,3511,3534,3557,3580,3588,3603,3610,3625,3652,3664,3698,3715,3774,3781,3868,3883],{"type":9,"tag":37,"props":3207,"children":3208},{"class":39,"line":40},[3209,3213,3217,3221,3225,3229,3233],{"type":9,"tag":37,"props":3210,"children":3211},{"style":44},[3212],{"type":14,"value":47},{"type":9,"tag":37,"props":3214,"children":3215},{"style":50},[3216],{"type":14,"value":53},{"type":9,"tag":37,"props":3218,"children":3219},{"style":56},[3220],{"type":14,"value":59},{"type":9,"tag":37,"props":3222,"children":3223},{"style":56},[3224],{"type":14,"value":64},{"type":9,"tag":37,"props":3226,"children":3227},{"style":44},[3228],{"type":14,"value":69},{"type":9,"tag":37,"props":3230,"children":3231},{"style":72},[3232],{"type":14,"value":75},{"type":9,"tag":37,"props":3234,"children":3235},{"style":44},[3236],{"type":14,"value":80},{"type":9,"tag":37,"props":3238,"children":3239},{"class":39,"line":83},[3240,3244,3248,3253,3257],{"type":9,"tag":37,"props":3241,"children":3242},{"style":87},[3243],{"type":14,"value":90},{"type":9,"tag":37,"props":3245,"children":3246},{"style":87},[3247],{"type":14,"value":95},{"type":9,"tag":37,"props":3249,"children":3250},{"style":44},[3251],{"type":14,"value":3252}," { DataTableColumn, DataTableSelectionColumn } ",{"type":9,"tag":37,"props":3254,"children":3255},{"style":87},[3256],{"type":14,"value":105},{"type":9,"tag":37,"props":3258,"children":3259},{"style":72},[3260],{"type":14,"value":110},{"type":9,"tag":37,"props":3262,"children":3263},{"class":39,"line":113},[3264,3268,3272,3276,3280],{"type":9,"tag":37,"props":3265,"children":3266},{"style":87},[3267],{"type":14,"value":90},{"type":9,"tag":37,"props":3269,"children":3270},{"style":87},[3271],{"type":14,"value":95},{"type":9,"tag":37,"props":3273,"children":3274},{"style":44},[3275],{"type":14,"value":127},{"type":9,"tag":37,"props":3277,"children":3278},{"style":87},[3279],{"type":14,"value":105},{"type":9,"tag":37,"props":3281,"children":3282},{"style":72},[3283],{"type":14,"value":136},{"type":9,"tag":37,"props":3285,"children":3286},{"class":39,"line":139},[3287],{"type":9,"tag":37,"props":3288,"children":3289},{"emptyLinePlaceholder":143},[3290],{"type":14,"value":146},{"type":9,"tag":37,"props":3292,"children":3293},{"class":39,"line":149},[3294,3298,3302,3306,3310,3314,3318,3322,3326,3330,3334],{"type":9,"tag":37,"props":3295,"children":3296},{"style":87},[3297],{"type":14,"value":155},{"type":9,"tag":37,"props":3299,"children":3300},{"style":158},[3301],{"type":14,"value":161},{"type":9,"tag":37,"props":3303,"children":3304},{"style":87},[3305],{"type":14,"value":166},{"type":9,"tag":37,"props":3307,"children":3308},{"style":56},[3309],{"type":14,"value":171},{"type":9,"tag":37,"props":3311,"children":3312},{"style":44},[3313],{"type":14,"value":176},{"type":9,"tag":37,"props":3315,"children":3316},{"style":158},[3317],{"type":14,"value":181},{"type":9,"tag":37,"props":3319,"children":3320},{"style":44},[3321],{"type":14,"value":186},{"type":9,"tag":37,"props":3323,"children":3324},{"style":158},[3325],{"type":14,"value":181},{"type":9,"tag":37,"props":3327,"children":3328},{"style":44},[3329],{"type":14,"value":186},{"type":9,"tag":37,"props":3331,"children":3332},{"style":158},[3333],{"type":14,"value":199},{"type":9,"tag":37,"props":3335,"children":3336},{"style":44},[3337],{"type":14,"value":204},{"type":9,"tag":37,"props":3339,"children":3340},{"class":39,"line":207},[3341,3345,3350,3354,3358,3362,3367,3372,3377,3382,3387],{"type":9,"tag":37,"props":3342,"children":3343},{"style":87},[3344],{"type":14,"value":155},{"type":9,"tag":37,"props":3346,"children":3347},{"style":158},[3348],{"type":14,"value":3349}," mode",{"type":9,"tag":37,"props":3351,"children":3352},{"style":87},[3353],{"type":14,"value":166},{"type":9,"tag":37,"props":3355,"children":3356},{"style":56},[3357],{"type":14,"value":1689},{"type":9,"tag":37,"props":3359,"children":3360},{"style":44},[3361],{"type":14,"value":47},{"type":9,"tag":37,"props":3363,"children":3364},{"style":56},[3365],{"type":14,"value":3366},"DataTableSelectionColumn",{"type":9,"tag":37,"props":3368,"children":3369},{"style":44},[3370],{"type":14,"value":3371},"[",{"type":9,"tag":37,"props":3373,"children":3374},{"style":72},[3375],{"type":14,"value":3376},"'mode'",{"type":9,"tag":37,"props":3378,"children":3379},{"style":44},[3380],{"type":14,"value":3381},"]>(",{"type":9,"tag":37,"props":3383,"children":3384},{"style":72},[3385],{"type":14,"value":3386},"'multiple'",{"type":9,"tag":37,"props":3388,"children":3389},{"style":44},[3390],{"type":14,"value":204},{"type":9,"tag":37,"props":3392,"children":3393},{"class":39,"line":215},[3394],{"type":9,"tag":37,"props":3395,"children":3396},{"emptyLinePlaceholder":143},[3397],{"type":14,"value":146},{"type":9,"tag":37,"props":3399,"children":3400},{"class":39,"line":261},[3401,3405,3409,3413,3417,3421,3426,3430,3434,3439,3443],{"type":9,"tag":37,"props":3402,"children":3403},{"style":87},[3404],{"type":14,"value":155},{"type":9,"tag":37,"props":3406,"children":3407},{"style":158},[3408],{"type":14,"value":225},{"type":9,"tag":37,"props":3410,"children":3411},{"style":87},[3412],{"type":14,"value":166},{"type":9,"tag":37,"props":3414,"children":3415},{"style":56},[3416],{"type":14,"value":1024},{"type":9,"tag":37,"props":3418,"children":3419},{"style":44},[3420],{"type":14,"value":47},{"type":9,"tag":37,"props":3422,"children":3423},{"style":56},[3424],{"type":14,"value":3425},"DataTableColumn",{"type":9,"tag":37,"props":3427,"children":3428},{"style":44},[3429],{"type":14,"value":47},{"type":9,"tag":37,"props":3431,"children":3432},{"style":56},[3433],{"type":14,"value":244},{"type":9,"tag":37,"props":3435,"children":3436},{"style":44},[3437],{"type":14,"value":3438},">[]>(() ",{"type":9,"tag":37,"props":3440,"children":3441},{"style":87},[3442],{"type":14,"value":1061},{"type":9,"tag":37,"props":3444,"children":3445},{"style":44},[3446],{"type":14,"value":258},{"type":9,"tag":37,"props":3448,"children":3449},{"class":39,"line":280},[3450,3454,3459,3464,3468,3473,3478,3483,3487,3492],{"type":9,"tag":37,"props":3451,"children":3452},{"style":44},[3453],{"type":14,"value":267},{"type":9,"tag":37,"props":3455,"children":3456},{"style":72},[3457],{"type":14,"value":3458},"'selection'",{"type":9,"tag":37,"props":3460,"children":3461},{"style":44},[3462],{"type":14,"value":3463},", mode: mode.value, strategy: mode.value ",{"type":9,"tag":37,"props":3465,"children":3466},{"style":87},[3467],{"type":14,"value":1085},{"type":9,"tag":37,"props":3469,"children":3470},{"style":72},[3471],{"type":14,"value":3472}," 'single'",{"type":9,"tag":37,"props":3474,"children":3475},{"style":87},[3476],{"type":14,"value":3477}," ?",{"type":9,"tag":37,"props":3479,"children":3480},{"style":72},[3481],{"type":14,"value":3482}," 'isolated'",{"type":9,"tag":37,"props":3484,"children":3485},{"style":87},[3486],{"type":14,"value":464},{"type":9,"tag":37,"props":3488,"children":3489},{"style":72},[3490],{"type":14,"value":3491}," 'cascade'",{"type":9,"tag":37,"props":3493,"children":3494},{"style":44},[3495],{"type":14,"value":277},{"type":9,"tag":37,"props":3497,"children":3498},{"class":39,"line":308},[3499,3503,3507],{"type":9,"tag":37,"props":3500,"children":3501},{"style":44},[3502],{"type":14,"value":267},{"type":9,"tag":37,"props":3504,"children":3505},{"style":72},[3506],{"type":14,"value":272},{"type":9,"tag":37,"props":3508,"children":3509},{"style":44},[3510],{"type":14,"value":277},{"type":9,"tag":37,"props":3512,"children":3513},{"class":39,"line":334},[3514,3518,3522,3526,3530],{"type":9,"tag":37,"props":3515,"children":3516},{"style":44},[3517],{"type":14,"value":286},{"type":9,"tag":37,"props":3519,"children":3520},{"style":72},[3521],{"type":14,"value":291},{"type":9,"tag":37,"props":3523,"children":3524},{"style":44},[3525],{"type":14,"value":296},{"type":9,"tag":37,"props":3527,"children":3528},{"style":72},[3529],{"type":14,"value":301},{"type":9,"tag":37,"props":3531,"children":3532},{"style":44},[3533],{"type":14,"value":277},{"type":9,"tag":37,"props":3535,"children":3536},{"class":39,"line":360},[3537,3541,3545,3549,3553],{"type":9,"tag":37,"props":3538,"children":3539},{"style":44},[3540],{"type":14,"value":286},{"type":9,"tag":37,"props":3542,"children":3543},{"style":72},[3544],{"type":14,"value":318},{"type":9,"tag":37,"props":3546,"children":3547},{"style":44},[3548],{"type":14,"value":296},{"type":9,"tag":37,"props":3550,"children":3551},{"style":72},[3552],{"type":14,"value":327},{"type":9,"tag":37,"props":3554,"children":3555},{"style":44},[3556],{"type":14,"value":277},{"type":9,"tag":37,"props":3558,"children":3559},{"class":39,"line":397},[3560,3564,3568,3572,3576],{"type":9,"tag":37,"props":3561,"children":3562},{"style":44},[3563],{"type":14,"value":286},{"type":9,"tag":37,"props":3565,"children":3566},{"style":72},[3567],{"type":14,"value":344},{"type":9,"tag":37,"props":3569,"children":3570},{"style":44},[3571],{"type":14,"value":296},{"type":9,"tag":37,"props":3573,"children":3574},{"style":72},[3575],{"type":14,"value":353},{"type":9,"tag":37,"props":3577,"children":3578},{"style":44},[3579],{"type":14,"value":394},{"type":9,"tag":37,"props":3581,"children":3582},{"class":39,"line":406},[3583],{"type":9,"tag":37,"props":3584,"children":3585},{"style":44},[3586],{"type":14,"value":3587},"])\n",{"type":9,"tag":37,"props":3589,"children":3590},{"class":39,"line":423},[3591,3595,3599],{"type":9,"tag":37,"props":3592,"children":3593},{"style":44},[3594],{"type":14,"value":412},{"type":9,"tag":37,"props":3596,"children":3597},{"style":50},[3598],{"type":14,"value":53},{"type":9,"tag":37,"props":3600,"children":3601},{"style":44},[3602],{"type":14,"value":80},{"type":9,"tag":37,"props":3604,"children":3605},{"class":39,"line":431},[3606],{"type":9,"tag":37,"props":3607,"children":3608},{"emptyLinePlaceholder":143},[3609],{"type":14,"value":146},{"type":9,"tag":37,"props":3611,"children":3612},{"class":39,"line":448},[3613,3617,3621],{"type":9,"tag":37,"props":3614,"children":3615},{"style":44},[3616],{"type":14,"value":47},{"type":9,"tag":37,"props":3618,"children":3619},{"style":50},[3620],{"type":14,"value":441},{"type":9,"tag":37,"props":3622,"children":3623},{"style":44},[3624],{"type":14,"value":80},{"type":9,"tag":37,"props":3626,"children":3627},{"class":39,"line":584},[3628,3632,3636,3640,3644,3648],{"type":9,"tag":37,"props":3629,"children":3630},{"style":44},[3631],{"type":14,"value":454},{"type":9,"tag":37,"props":3633,"children":3634},{"style":50},[3635],{"type":14,"value":2106},{"type":9,"tag":37,"props":3637,"children":3638},{"style":56},[3639],{"type":14,"value":2111},{"type":9,"tag":37,"props":3641,"children":3642},{"style":44},[3643],{"type":14,"value":69},{"type":9,"tag":37,"props":3645,"children":3646},{"style":72},[3647],{"type":14,"value":2120},{"type":9,"tag":37,"props":3649,"children":3650},{"style":44},[3651],{"type":14,"value":80},{"type":9,"tag":37,"props":3653,"children":3654},{"class":39,"line":1069},[3655,3659],{"type":9,"tag":37,"props":3656,"children":3657},{"style":44},[3658],{"type":14,"value":2132},{"type":9,"tag":37,"props":3660,"children":3661},{"style":50},[3662],{"type":14,"value":3663},"USwitch\n",{"type":9,"tag":37,"props":3665,"children":3666},{"class":39,"line":1107},[3667,3671,3676,3680,3684,3689,3693],{"type":9,"tag":37,"props":3668,"children":3669},{"style":44},[3670],{"type":14,"value":2579},{"type":9,"tag":37,"props":3672,"children":3673},{"style":56},[3674],{"type":14,"value":3675},"model-value",{"type":9,"tag":37,"props":3677,"children":3678},{"style":44},[3679],{"type":14,"value":69},{"type":9,"tag":37,"props":3681,"children":3682},{"style":72},[3683],{"type":14,"value":478},{"type":9,"tag":37,"props":3685,"children":3686},{"style":44},[3687],{"type":14,"value":3688},"mode ",{"type":9,"tag":37,"props":3690,"children":3691},{"style":87},[3692],{"type":14,"value":1085},{"type":9,"tag":37,"props":3694,"children":3695},{"style":72},[3696],{"type":14,"value":3697}," 'single'\"\n",{"type":9,"tag":37,"props":3699,"children":3700},{"class":39,"line":1140},[3701,3706,3710],{"type":9,"tag":37,"props":3702,"children":3703},{"style":56},[3704],{"type":14,"value":3705},"      label",{"type":9,"tag":37,"props":3707,"children":3708},{"style":44},[3709],{"type":14,"value":69},{"type":9,"tag":37,"props":3711,"children":3712},{"style":72},[3713],{"type":14,"value":3714},"\"single 单选\"\n",{"type":9,"tag":37,"props":3716,"children":3717},{"class":39,"line":1193},[3718,3723,3728,3732,3736,3740,3744,3748,3752,3757,3761,3765,3769],{"type":9,"tag":37,"props":3719,"children":3720},{"style":44},[3721],{"type":14,"value":3722},"      @",{"type":9,"tag":37,"props":3724,"children":3725},{"style":56},[3726],{"type":14,"value":3727},"update",{"type":9,"tag":37,"props":3729,"children":3730},{"style":44},[3731],{"type":14,"value":230},{"type":9,"tag":37,"props":3733,"children":3734},{"style":56},[3735],{"type":14,"value":3675},{"type":9,"tag":37,"props":3737,"children":3738},{"style":44},[3739],{"type":14,"value":69},{"type":9,"tag":37,"props":3741,"children":3742},{"style":72},[3743],{"type":14,"value":478},{"type":9,"tag":37,"props":3745,"children":3746},{"style":44},[3747],{"type":14,"value":3688},{"type":9,"tag":37,"props":3749,"children":3750},{"style":87},[3751],{"type":14,"value":69},{"type":9,"tag":37,"props":3753,"children":3754},{"style":44},[3755],{"type":14,"value":3756}," $event ",{"type":9,"tag":37,"props":3758,"children":3759},{"style":87},[3760],{"type":14,"value":1813},{"type":9,"tag":37,"props":3762,"children":3763},{"style":72},[3764],{"type":14,"value":3472},{"type":9,"tag":37,"props":3766,"children":3767},{"style":87},[3768],{"type":14,"value":464},{"type":9,"tag":37,"props":3770,"children":3771},{"style":72},[3772],{"type":14,"value":3773}," 'multiple'\"\n",{"type":9,"tag":37,"props":3775,"children":3776},{"class":39,"line":1207},[3777],{"type":9,"tag":37,"props":3778,"children":3779},{"style":44},[3780],{"type":14,"value":2699},{"type":9,"tag":37,"props":3782,"children":3783},{"class":39,"line":1216},[3784,3788,3792,3796,3800,3804,3808,3812,3816,3820,3824,3828,3832,3836,3840,3844,3848,3852,3856,3860,3864],{"type":9,"tag":37,"props":3785,"children":3786},{"style":44},[3787],{"type":14,"value":2132},{"type":9,"tag":37,"props":3789,"children":3790},{"style":50},[3791],{"type":14,"value":459},{"type":9,"tag":37,"props":3793,"children":3794},{"style":44},[3795],{"type":14,"value":464},{"type":9,"tag":37,"props":3797,"children":3798},{"style":56},[3799],{"type":14,"value":469},{"type":9,"tag":37,"props":3801,"children":3802},{"style":44},[3803],{"type":14,"value":69},{"type":9,"tag":37,"props":3805,"children":3806},{"style":72},[3807],{"type":14,"value":478},{"type":9,"tag":37,"props":3809,"children":3810},{"style":44},[3811],{"type":14,"value":483},{"type":9,"tag":37,"props":3813,"children":3814},{"style":72},[3815],{"type":14,"value":478},{"type":9,"tag":37,"props":3817,"children":3818},{"style":44},[3819],{"type":14,"value":464},{"type":9,"tag":37,"props":3821,"children":3822},{"style":56},[3823],{"type":14,"value":496},{"type":9,"tag":37,"props":3825,"children":3826},{"style":44},[3827],{"type":14,"value":69},{"type":9,"tag":37,"props":3829,"children":3830},{"style":72},[3831],{"type":14,"value":478},{"type":9,"tag":37,"props":3833,"children":3834},{"style":44},[3835],{"type":14,"value":496},{"type":9,"tag":37,"props":3837,"children":3838},{"style":72},[3839],{"type":14,"value":478},{"type":9,"tag":37,"props":3841,"children":3842},{"style":56},[3843],{"type":14,"value":517},{"type":9,"tag":37,"props":3845,"children":3846},{"style":44},[3847],{"type":14,"value":69},{"type":9,"tag":37,"props":3849,"children":3850},{"style":72},[3851],{"type":14,"value":526},{"type":9,"tag":37,"props":3853,"children":3854},{"style":56},[3855],{"type":14,"value":531},{"type":9,"tag":37,"props":3857,"children":3858},{"style":44},[3859],{"type":14,"value":69},{"type":9,"tag":37,"props":3861,"children":3862},{"style":72},[3863],{"type":14,"value":540},{"type":9,"tag":37,"props":3865,"children":3866},{"style":44},[3867],{"type":14,"value":581},{"type":9,"tag":37,"props":3869,"children":3870},{"class":39,"line":1232},[3871,3875,3879],{"type":9,"tag":37,"props":3872,"children":3873},{"style":44},[3874],{"type":14,"value":2708},{"type":9,"tag":37,"props":3876,"children":3877},{"style":50},[3878],{"type":14,"value":2106},{"type":9,"tag":37,"props":3880,"children":3881},{"style":44},[3882],{"type":14,"value":80},{"type":9,"tag":37,"props":3884,"children":3885},{"class":39,"line":1240},[3886,3890,3894],{"type":9,"tag":37,"props":3887,"children":3888},{"style":44},[3889],{"type":14,"value":412},{"type":9,"tag":37,"props":3891,"children":3892},{"style":50},[3893],{"type":14,"value":441},{"type":9,"tag":37,"props":3895,"children":3896},{"style":44},[3897],{"type":14,"value":80},{"type":9,"tag":599,"props":3899,"children":3900},{},[3901],{"type":14,"value":603},{"title":22,"searchDepth":83,"depth":83,"links":3903},[],{"code":3905,"filePath":3906,"pascalName":3907},"\u003Cscript setup lang=\"ts\">\nimport type { DataTableColumn, DataTableExposed } from '@movk\u002Fnuxt'\nimport type { Person } from '~\u002Fcomposables\u002FuseTableMock'\n\nconst treeData = makePeopleTree(3, 3, 2)\nconst tableRef = useTemplateRef\u003CDataTableExposed\u003CPerson>>('tableRef')\nconst selectionKeys = ref\u003Cstring[]>([])\nconst names = (rows: Person[]) => rows.map(p => p.name)\n\nconst result = computed(() => {\n  const r = tableRef.value?.treeSelection\n  if (!r) return {}\n  return {\n    selectionKeys: selectionKeys.value,\n    leaves: names(r.leaves),\n    parents: names(r.parents),\n    halfSelected: names(r.halfSelected),\n    strictlyChecked: names(r.strictlyChecked)\n  }\n})\n\nconst columns: DataTableColumn\u003CPerson>[] = [\n  { type: 'selection', strategy: 'cascade' },\n  { type: 'expand' },\n  { accessorKey: 'name', header: '成员' },\n  { accessorKey: 'department', header: '部门' }\n]\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003Cdiv class=\"flex flex-col gap-3\">\n    \u003CUButton size=\"xs\" variant=\"soft\" class=\"self-start\" @click=\"tableRef?.clearSelection()\">\n      清空选中\n    \u003C\u002FUButton>\n    \u003CMDataTable\n      ref=\"tableRef\"\n      v-model:row-selection-keys=\"selectionKeys\"\n      :data=\"treeData\"\n      :columns=\"columns\"\n      children-key=\"children\"\n      row-key=\"id\"\n    \u002F>\n    \u003Cpre class=\"text-xs p-3 rounded-md bg-muted overflow-auto\">{{ result }}\u003C\u002Fpre>\n  \u003C\u002Fdiv>\n\u003C\u002Ftemplate>\n","\u002Fopt\u002Fbuildhome\u002Frepo\u002Fdocs\u002Fapp\u002Fcomponents\u002Fcontent\u002Fexamples\u002Fdata-table\u002Ftree\u002FDataTableTreeResultExample.vue","DataTableTreeResultExample",{"data":3909,"body":3910,"toc":4930},{"title":22,"description":22},{"type":6,"children":3911},[3912,4926],{"type":9,"tag":26,"props":3913,"children":3915},{"className":28,"code":3914,"language":30,"meta":22,"style":22},"\u003Cscript setup lang=\"ts\">\nimport type { DataTableColumn, DataTableExposed } from '@movk\u002Fnuxt'\nimport type { Person } from '~\u002Fcomposables\u002FuseTableMock'\n\nconst treeData = makePeopleTree(3, 3, 2)\nconst tableRef = useTemplateRef\u003CDataTableExposed\u003CPerson>>('tableRef')\nconst selectionKeys = ref\u003Cstring[]>([])\nconst names = (rows: Person[]) => rows.map(p => p.name)\n\nconst result = computed(() => {\n  const r = tableRef.value?.treeSelection\n  if (!r) return {}\n  return {\n    selectionKeys: selectionKeys.value,\n    leaves: names(r.leaves),\n    parents: names(r.parents),\n    halfSelected: names(r.halfSelected),\n    strictlyChecked: names(r.strictlyChecked)\n  }\n})\n\nconst columns: DataTableColumn\u003CPerson>[] = [\n  { type: 'selection', strategy: 'cascade' },\n  { type: 'expand' },\n  { accessorKey: 'name', header: '成员' },\n  { accessorKey: 'department', header: '部门' }\n]\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003Cdiv class=\"flex flex-col gap-3\">\n    \u003CUButton size=\"xs\" variant=\"soft\" class=\"self-start\" @click=\"tableRef?.clearSelection()\">\n      清空选中\n    \u003C\u002FUButton>\n    \u003CMDataTable\n      ref=\"tableRef\"\n      v-model:row-selection-keys=\"selectionKeys\"\n      :data=\"treeData\"\n      :columns=\"columns\"\n      children-key=\"children\"\n      row-key=\"id\"\n    \u002F>\n    \u003Cpre class=\"text-xs p-3 rounded-md bg-muted overflow-auto\">{{ result }}\u003C\u002Fpre>\n  \u003C\u002Fdiv>\n\u003C\u002Ftemplate>\n\n",[3916],{"type":9,"tag":33,"props":3917,"children":3918},{"__ignoreMap":22},[3919,3950,3973,3996,4003,4050,4097,4131,4202,4209,4242,4264,4294,4305,4313,4331,4348,4365,4382,4390,4397,4404,4443,4468,4483,4506,4529,4536,4551,4558,4573,4600,4685,4693,4708,4719,4734,4768,4795,4822,4837,4852,4859,4896,4911],{"type":9,"tag":37,"props":3920,"children":3921},{"class":39,"line":40},[3922,3926,3930,3934,3938,3942,3946],{"type":9,"tag":37,"props":3923,"children":3924},{"style":44},[3925],{"type":14,"value":47},{"type":9,"tag":37,"props":3927,"children":3928},{"style":50},[3929],{"type":14,"value":53},{"type":9,"tag":37,"props":3931,"children":3932},{"style":56},[3933],{"type":14,"value":59},{"type":9,"tag":37,"props":3935,"children":3936},{"style":56},[3937],{"type":14,"value":64},{"type":9,"tag":37,"props":3939,"children":3940},{"style":44},[3941],{"type":14,"value":69},{"type":9,"tag":37,"props":3943,"children":3944},{"style":72},[3945],{"type":14,"value":75},{"type":9,"tag":37,"props":3947,"children":3948},{"style":44},[3949],{"type":14,"value":80},{"type":9,"tag":37,"props":3951,"children":3952},{"class":39,"line":83},[3953,3957,3961,3965,3969],{"type":9,"tag":37,"props":3954,"children":3955},{"style":87},[3956],{"type":14,"value":90},{"type":9,"tag":37,"props":3958,"children":3959},{"style":87},[3960],{"type":14,"value":95},{"type":9,"tag":37,"props":3962,"children":3963},{"style":44},[3964],{"type":14,"value":1531},{"type":9,"tag":37,"props":3966,"children":3967},{"style":87},[3968],{"type":14,"value":105},{"type":9,"tag":37,"props":3970,"children":3971},{"style":72},[3972],{"type":14,"value":110},{"type":9,"tag":37,"props":3974,"children":3975},{"class":39,"line":113},[3976,3980,3984,3988,3992],{"type":9,"tag":37,"props":3977,"children":3978},{"style":87},[3979],{"type":14,"value":90},{"type":9,"tag":37,"props":3981,"children":3982},{"style":87},[3983],{"type":14,"value":95},{"type":9,"tag":37,"props":3985,"children":3986},{"style":44},[3987],{"type":14,"value":127},{"type":9,"tag":37,"props":3989,"children":3990},{"style":87},[3991],{"type":14,"value":105},{"type":9,"tag":37,"props":3993,"children":3994},{"style":72},[3995],{"type":14,"value":136},{"type":9,"tag":37,"props":3997,"children":3998},{"class":39,"line":139},[3999],{"type":9,"tag":37,"props":4000,"children":4001},{"emptyLinePlaceholder":143},[4002],{"type":14,"value":146},{"type":9,"tag":37,"props":4004,"children":4005},{"class":39,"line":149},[4006,4010,4014,4018,4022,4026,4030,4034,4038,4042,4046],{"type":9,"tag":37,"props":4007,"children":4008},{"style":87},[4009],{"type":14,"value":155},{"type":9,"tag":37,"props":4011,"children":4012},{"style":158},[4013],{"type":14,"value":161},{"type":9,"tag":37,"props":4015,"children":4016},{"style":87},[4017],{"type":14,"value":166},{"type":9,"tag":37,"props":4019,"children":4020},{"style":56},[4021],{"type":14,"value":171},{"type":9,"tag":37,"props":4023,"children":4024},{"style":44},[4025],{"type":14,"value":176},{"type":9,"tag":37,"props":4027,"children":4028},{"style":158},[4029],{"type":14,"value":181},{"type":9,"tag":37,"props":4031,"children":4032},{"style":44},[4033],{"type":14,"value":186},{"type":9,"tag":37,"props":4035,"children":4036},{"style":158},[4037],{"type":14,"value":181},{"type":9,"tag":37,"props":4039,"children":4040},{"style":44},[4041],{"type":14,"value":186},{"type":9,"tag":37,"props":4043,"children":4044},{"style":158},[4045],{"type":14,"value":199},{"type":9,"tag":37,"props":4047,"children":4048},{"style":44},[4049],{"type":14,"value":204},{"type":9,"tag":37,"props":4051,"children":4052},{"class":39,"line":207},[4053,4057,4061,4065,4069,4073,4077,4081,4085,4089,4093],{"type":9,"tag":37,"props":4054,"children":4055},{"style":87},[4056],{"type":14,"value":155},{"type":9,"tag":37,"props":4058,"children":4059},{"style":158},[4060],{"type":14,"value":1628},{"type":9,"tag":37,"props":4062,"children":4063},{"style":87},[4064],{"type":14,"value":166},{"type":9,"tag":37,"props":4066,"children":4067},{"style":56},[4068],{"type":14,"value":1637},{"type":9,"tag":37,"props":4070,"children":4071},{"style":44},[4072],{"type":14,"value":47},{"type":9,"tag":37,"props":4074,"children":4075},{"style":56},[4076],{"type":14,"value":1646},{"type":9,"tag":37,"props":4078,"children":4079},{"style":44},[4080],{"type":14,"value":47},{"type":9,"tag":37,"props":4082,"children":4083},{"style":56},[4084],{"type":14,"value":244},{"type":9,"tag":37,"props":4086,"children":4087},{"style":44},[4088],{"type":14,"value":1659},{"type":9,"tag":37,"props":4090,"children":4091},{"style":72},[4092],{"type":14,"value":1664},{"type":9,"tag":37,"props":4094,"children":4095},{"style":44},[4096],{"type":14,"value":204},{"type":9,"tag":37,"props":4098,"children":4099},{"class":39,"line":215},[4100,4104,4109,4113,4117,4121,4126],{"type":9,"tag":37,"props":4101,"children":4102},{"style":87},[4103],{"type":14,"value":155},{"type":9,"tag":37,"props":4105,"children":4106},{"style":158},[4107],{"type":14,"value":4108}," selectionKeys",{"type":9,"tag":37,"props":4110,"children":4111},{"style":87},[4112],{"type":14,"value":166},{"type":9,"tag":37,"props":4114,"children":4115},{"style":56},[4116],{"type":14,"value":1689},{"type":9,"tag":37,"props":4118,"children":4119},{"style":44},[4120],{"type":14,"value":47},{"type":9,"tag":37,"props":4122,"children":4123},{"style":158},[4124],{"type":14,"value":4125},"string",{"type":9,"tag":37,"props":4127,"children":4128},{"style":44},[4129],{"type":14,"value":4130},"[]>([])\n",{"type":9,"tag":37,"props":4132,"children":4133},{"class":39,"line":261},[4134,4138,4143,4147,4152,4157,4161,4166,4171,4175,4180,4185,4189,4193,4197],{"type":9,"tag":37,"props":4135,"children":4136},{"style":87},[4137],{"type":14,"value":155},{"type":9,"tag":37,"props":4139,"children":4140},{"style":56},[4141],{"type":14,"value":4142}," names",{"type":9,"tag":37,"props":4144,"children":4145},{"style":87},[4146],{"type":14,"value":166},{"type":9,"tag":37,"props":4148,"children":4149},{"style":44},[4150],{"type":14,"value":4151}," (",{"type":9,"tag":37,"props":4153,"children":4154},{"style":746},[4155],{"type":14,"value":4156},"rows",{"type":9,"tag":37,"props":4158,"children":4159},{"style":87},[4160],{"type":14,"value":230},{"type":9,"tag":37,"props":4162,"children":4163},{"style":56},[4164],{"type":14,"value":4165}," Person",{"type":9,"tag":37,"props":4167,"children":4168},{"style":44},[4169],{"type":14,"value":4170},"[]) ",{"type":9,"tag":37,"props":4172,"children":4173},{"style":87},[4174],{"type":14,"value":1061},{"type":9,"tag":37,"props":4176,"children":4177},{"style":44},[4178],{"type":14,"value":4179}," rows.",{"type":9,"tag":37,"props":4181,"children":4182},{"style":56},[4183],{"type":14,"value":4184},"map",{"type":9,"tag":37,"props":4186,"children":4187},{"style":44},[4188],{"type":14,"value":176},{"type":9,"tag":37,"props":4190,"children":4191},{"style":746},[4192],{"type":14,"value":10},{"type":9,"tag":37,"props":4194,"children":4195},{"style":87},[4196],{"type":14,"value":1176},{"type":9,"tag":37,"props":4198,"children":4199},{"style":44},[4200],{"type":14,"value":4201}," p.name)\n",{"type":9,"tag":37,"props":4203,"children":4204},{"class":39,"line":280},[4205],{"type":9,"tag":37,"props":4206,"children":4207},{"emptyLinePlaceholder":143},[4208],{"type":14,"value":146},{"type":9,"tag":37,"props":4210,"children":4211},{"class":39,"line":308},[4212,4216,4221,4225,4229,4234,4238],{"type":9,"tag":37,"props":4213,"children":4214},{"style":87},[4215],{"type":14,"value":155},{"type":9,"tag":37,"props":4217,"children":4218},{"style":158},[4219],{"type":14,"value":4220}," result",{"type":9,"tag":37,"props":4222,"children":4223},{"style":87},[4224],{"type":14,"value":166},{"type":9,"tag":37,"props":4226,"children":4227},{"style":56},[4228],{"type":14,"value":1024},{"type":9,"tag":37,"props":4230,"children":4231},{"style":44},[4232],{"type":14,"value":4233},"(() ",{"type":9,"tag":37,"props":4235,"children":4236},{"style":87},[4237],{"type":14,"value":1061},{"type":9,"tag":37,"props":4239,"children":4240},{"style":44},[4241],{"type":14,"value":1066},{"type":9,"tag":37,"props":4243,"children":4244},{"class":39,"line":334},[4245,4250,4255,4259],{"type":9,"tag":37,"props":4246,"children":4247},{"style":87},[4248],{"type":14,"value":4249},"  const",{"type":9,"tag":37,"props":4251,"children":4252},{"style":158},[4253],{"type":14,"value":4254}," r",{"type":9,"tag":37,"props":4256,"children":4257},{"style":87},[4258],{"type":14,"value":166},{"type":9,"tag":37,"props":4260,"children":4261},{"style":44},[4262],{"type":14,"value":4263}," tableRef.value?.treeSelection\n",{"type":9,"tag":37,"props":4265,"children":4266},{"class":39,"line":360},[4267,4271,4275,4280,4285,4289],{"type":9,"tag":37,"props":4268,"children":4269},{"style":87},[4270],{"type":14,"value":1075},{"type":9,"tag":37,"props":4272,"children":4273},{"style":44},[4274],{"type":14,"value":4151},{"type":9,"tag":37,"props":4276,"children":4277},{"style":87},[4278],{"type":14,"value":4279},"!",{"type":9,"tag":37,"props":4281,"children":4282},{"style":44},[4283],{"type":14,"value":4284},"r) ",{"type":9,"tag":37,"props":4286,"children":4287},{"style":87},[4288],{"type":14,"value":1099},{"type":9,"tag":37,"props":4290,"children":4291},{"style":44},[4292],{"type":14,"value":4293}," {}\n",{"type":9,"tag":37,"props":4295,"children":4296},{"class":39,"line":397},[4297,4301],{"type":9,"tag":37,"props":4298,"children":4299},{"style":87},[4300],{"type":14,"value":1199},{"type":9,"tag":37,"props":4302,"children":4303},{"style":44},[4304],{"type":14,"value":1066},{"type":9,"tag":37,"props":4306,"children":4307},{"class":39,"line":406},[4308],{"type":9,"tag":37,"props":4309,"children":4310},{"style":44},[4311],{"type":14,"value":4312},"    selectionKeys: selectionKeys.value,\n",{"type":9,"tag":37,"props":4314,"children":4315},{"class":39,"line":423},[4316,4321,4326],{"type":9,"tag":37,"props":4317,"children":4318},{"style":44},[4319],{"type":14,"value":4320},"    leaves: ",{"type":9,"tag":37,"props":4322,"children":4323},{"style":56},[4324],{"type":14,"value":4325},"names",{"type":9,"tag":37,"props":4327,"children":4328},{"style":44},[4329],{"type":14,"value":4330},"(r.leaves),\n",{"type":9,"tag":37,"props":4332,"children":4333},{"class":39,"line":431},[4334,4339,4343],{"type":9,"tag":37,"props":4335,"children":4336},{"style":44},[4337],{"type":14,"value":4338},"    parents: ",{"type":9,"tag":37,"props":4340,"children":4341},{"style":56},[4342],{"type":14,"value":4325},{"type":9,"tag":37,"props":4344,"children":4345},{"style":44},[4346],{"type":14,"value":4347},"(r.parents),\n",{"type":9,"tag":37,"props":4349,"children":4350},{"class":39,"line":448},[4351,4356,4360],{"type":9,"tag":37,"props":4352,"children":4353},{"style":44},[4354],{"type":14,"value":4355},"    halfSelected: ",{"type":9,"tag":37,"props":4357,"children":4358},{"style":56},[4359],{"type":14,"value":4325},{"type":9,"tag":37,"props":4361,"children":4362},{"style":44},[4363],{"type":14,"value":4364},"(r.halfSelected),\n",{"type":9,"tag":37,"props":4366,"children":4367},{"class":39,"line":584},[4368,4373,4377],{"type":9,"tag":37,"props":4369,"children":4370},{"style":44},[4371],{"type":14,"value":4372},"    strictlyChecked: ",{"type":9,"tag":37,"props":4374,"children":4375},{"style":56},[4376],{"type":14,"value":4325},{"type":9,"tag":37,"props":4378,"children":4379},{"style":44},[4380],{"type":14,"value":4381},"(r.strictlyChecked)\n",{"type":9,"tag":37,"props":4383,"children":4384},{"class":39,"line":1069},[4385],{"type":9,"tag":37,"props":4386,"children":4387},{"style":44},[4388],{"type":14,"value":4389},"  }\n",{"type":9,"tag":37,"props":4391,"children":4392},{"class":39,"line":1107},[4393],{"type":9,"tag":37,"props":4394,"children":4395},{"style":44},[4396],{"type":14,"value":1213},{"type":9,"tag":37,"props":4398,"children":4399},{"class":39,"line":1140},[4400],{"type":9,"tag":37,"props":4401,"children":4402},{"emptyLinePlaceholder":143},[4403],{"type":14,"value":146},{"type":9,"tag":37,"props":4405,"children":4406},{"class":39,"line":1193},[4407,4411,4415,4419,4423,4427,4431,4435,4439],{"type":9,"tag":37,"props":4408,"children":4409},{"style":87},[4410],{"type":14,"value":155},{"type":9,"tag":37,"props":4412,"children":4413},{"style":158},[4414],{"type":14,"value":225},{"type":9,"tag":37,"props":4416,"children":4417},{"style":87},[4418],{"type":14,"value":230},{"type":9,"tag":37,"props":4420,"children":4421},{"style":56},[4422],{"type":14,"value":235},{"type":9,"tag":37,"props":4424,"children":4425},{"style":44},[4426],{"type":14,"value":47},{"type":9,"tag":37,"props":4428,"children":4429},{"style":56},[4430],{"type":14,"value":244},{"type":9,"tag":37,"props":4432,"children":4433},{"style":44},[4434],{"type":14,"value":249},{"type":9,"tag":37,"props":4436,"children":4437},{"style":87},[4438],{"type":14,"value":69},{"type":9,"tag":37,"props":4440,"children":4441},{"style":44},[4442],{"type":14,"value":258},{"type":9,"tag":37,"props":4444,"children":4445},{"class":39,"line":1207},[4446,4450,4454,4459,4464],{"type":9,"tag":37,"props":4447,"children":4448},{"style":44},[4449],{"type":14,"value":267},{"type":9,"tag":37,"props":4451,"children":4452},{"style":72},[4453],{"type":14,"value":3458},{"type":9,"tag":37,"props":4455,"children":4456},{"style":44},[4457],{"type":14,"value":4458},", strategy: ",{"type":9,"tag":37,"props":4460,"children":4461},{"style":72},[4462],{"type":14,"value":4463},"'cascade'",{"type":9,"tag":37,"props":4465,"children":4466},{"style":44},[4467],{"type":14,"value":277},{"type":9,"tag":37,"props":4469,"children":4470},{"class":39,"line":1216},[4471,4475,4479],{"type":9,"tag":37,"props":4472,"children":4473},{"style":44},[4474],{"type":14,"value":267},{"type":9,"tag":37,"props":4476,"children":4477},{"style":72},[4478],{"type":14,"value":272},{"type":9,"tag":37,"props":4480,"children":4481},{"style":44},[4482],{"type":14,"value":277},{"type":9,"tag":37,"props":4484,"children":4485},{"class":39,"line":1232},[4486,4490,4494,4498,4502],{"type":9,"tag":37,"props":4487,"children":4488},{"style":44},[4489],{"type":14,"value":286},{"type":9,"tag":37,"props":4491,"children":4492},{"style":72},[4493],{"type":14,"value":291},{"type":9,"tag":37,"props":4495,"children":4496},{"style":44},[4497],{"type":14,"value":296},{"type":9,"tag":37,"props":4499,"children":4500},{"style":72},[4501],{"type":14,"value":301},{"type":9,"tag":37,"props":4503,"children":4504},{"style":44},[4505],{"type":14,"value":277},{"type":9,"tag":37,"props":4507,"children":4508},{"class":39,"line":1240},[4509,4513,4517,4521,4525],{"type":9,"tag":37,"props":4510,"children":4511},{"style":44},[4512],{"type":14,"value":286},{"type":9,"tag":37,"props":4514,"children":4515},{"style":72},[4516],{"type":14,"value":318},{"type":9,"tag":37,"props":4518,"children":4519},{"style":44},[4520],{"type":14,"value":296},{"type":9,"tag":37,"props":4522,"children":4523},{"style":72},[4524],{"type":14,"value":327},{"type":9,"tag":37,"props":4526,"children":4527},{"style":44},[4528],{"type":14,"value":394},{"type":9,"tag":37,"props":4530,"children":4531},{"class":39,"line":1256},[4532],{"type":9,"tag":37,"props":4533,"children":4534},{"style":44},[4535],{"type":14,"value":403},{"type":9,"tag":37,"props":4537,"children":4538},{"class":39,"line":1269},[4539,4543,4547],{"type":9,"tag":37,"props":4540,"children":4541},{"style":44},[4542],{"type":14,"value":412},{"type":9,"tag":37,"props":4544,"children":4545},{"style":50},[4546],{"type":14,"value":53},{"type":9,"tag":37,"props":4548,"children":4549},{"style":44},[4550],{"type":14,"value":80},{"type":9,"tag":37,"props":4552,"children":4553},{"class":39,"line":1301},[4554],{"type":9,"tag":37,"props":4555,"children":4556},{"emptyLinePlaceholder":143},[4557],{"type":14,"value":146},{"type":9,"tag":37,"props":4559,"children":4560},{"class":39,"line":1331},[4561,4565,4569],{"type":9,"tag":37,"props":4562,"children":4563},{"style":44},[4564],{"type":14,"value":47},{"type":9,"tag":37,"props":4566,"children":4567},{"style":50},[4568],{"type":14,"value":441},{"type":9,"tag":37,"props":4570,"children":4571},{"style":44},[4572],{"type":14,"value":80},{"type":9,"tag":37,"props":4574,"children":4575},{"class":39,"line":1359},[4576,4580,4584,4588,4592,4596],{"type":9,"tag":37,"props":4577,"children":4578},{"style":44},[4579],{"type":14,"value":454},{"type":9,"tag":37,"props":4581,"children":4582},{"style":50},[4583],{"type":14,"value":2106},{"type":9,"tag":37,"props":4585,"children":4586},{"style":56},[4587],{"type":14,"value":2111},{"type":9,"tag":37,"props":4589,"children":4590},{"style":44},[4591],{"type":14,"value":69},{"type":9,"tag":37,"props":4593,"children":4594},{"style":72},[4595],{"type":14,"value":2120},{"type":9,"tag":37,"props":4597,"children":4598},{"style":44},[4599],{"type":14,"value":80},{"type":9,"tag":37,"props":4601,"children":4602},{"class":39,"line":1387},[4603,4607,4611,4615,4619,4623,4627,4631,4635,4639,4643,4648,4652,4656,4660,4664,4668,4673,4677,4681],{"type":9,"tag":37,"props":4604,"children":4605},{"style":44},[4606],{"type":14,"value":2132},{"type":9,"tag":37,"props":4608,"children":4609},{"style":50},[4610],{"type":14,"value":2218},{"type":9,"tag":37,"props":4612,"children":4613},{"style":56},[4614],{"type":14,"value":2223},{"type":9,"tag":37,"props":4616,"children":4617},{"style":44},[4618],{"type":14,"value":69},{"type":9,"tag":37,"props":4620,"children":4621},{"style":72},[4622],{"type":14,"value":2232},{"type":9,"tag":37,"props":4624,"children":4625},{"style":56},[4626],{"type":14,"value":2237},{"type":9,"tag":37,"props":4628,"children":4629},{"style":44},[4630],{"type":14,"value":69},{"type":9,"tag":37,"props":4632,"children":4633},{"style":72},[4634],{"type":14,"value":2246},{"type":9,"tag":37,"props":4636,"children":4637},{"style":56},[4638],{"type":14,"value":2111},{"type":9,"tag":37,"props":4640,"children":4641},{"style":44},[4642],{"type":14,"value":69},{"type":9,"tag":37,"props":4644,"children":4645},{"style":72},[4646],{"type":14,"value":4647},"\"self-start\"",{"type":9,"tag":37,"props":4649,"children":4650},{"style":44},[4651],{"type":14,"value":2251},{"type":9,"tag":37,"props":4653,"children":4654},{"style":56},[4655],{"type":14,"value":2256},{"type":9,"tag":37,"props":4657,"children":4658},{"style":44},[4659],{"type":14,"value":69},{"type":9,"tag":37,"props":4661,"children":4662},{"style":72},[4663],{"type":14,"value":478},{"type":9,"tag":37,"props":4665,"children":4666},{"style":44},[4667],{"type":14,"value":2269},{"type":9,"tag":37,"props":4669,"children":4670},{"style":56},[4671],{"type":14,"value":4672},"clearSelection",{"type":9,"tag":37,"props":4674,"children":4675},{"style":44},[4676],{"type":14,"value":2490},{"type":9,"tag":37,"props":4678,"children":4679},{"style":72},[4680],{"type":14,"value":478},{"type":9,"tag":37,"props":4682,"children":4683},{"style":44},[4684],{"type":14,"value":80},{"type":9,"tag":37,"props":4686,"children":4687},{"class":39,"line":1405},[4688],{"type":9,"tag":37,"props":4689,"children":4690},{"style":44},[4691],{"type":14,"value":4692},"      清空选中\n",{"type":9,"tag":37,"props":4694,"children":4695},{"class":39,"line":1423},[4696,4700,4704],{"type":9,"tag":37,"props":4697,"children":4698},{"style":44},[4699],{"type":14,"value":2532},{"type":9,"tag":37,"props":4701,"children":4702},{"style":50},[4703],{"type":14,"value":2218},{"type":9,"tag":37,"props":4705,"children":4706},{"style":44},[4707],{"type":14,"value":80},{"type":9,"tag":37,"props":4709,"children":4710},{"class":39,"line":1441},[4711,4715],{"type":9,"tag":37,"props":4712,"children":4713},{"style":44},[4714],{"type":14,"value":2132},{"type":9,"tag":37,"props":4716,"children":4717},{"style":50},[4718],{"type":14,"value":1266},{"type":9,"tag":37,"props":4720,"children":4721},{"class":39,"line":1450},[4722,4726,4730],{"type":9,"tag":37,"props":4723,"children":4724},{"style":56},[4725],{"type":14,"value":2561},{"type":9,"tag":37,"props":4727,"children":4728},{"style":44},[4729],{"type":14,"value":69},{"type":9,"tag":37,"props":4731,"children":4732},{"style":72},[4733],{"type":14,"value":2570},{"type":9,"tag":37,"props":4735,"children":4736},{"class":39,"line":2402},[4737,4742,4746,4751,4755,4759,4764],{"type":9,"tag":37,"props":4738,"children":4739},{"style":56},[4740],{"type":14,"value":4741},"      v-model",{"type":9,"tag":37,"props":4743,"children":4744},{"style":44},[4745],{"type":14,"value":230},{"type":9,"tag":37,"props":4747,"children":4748},{"style":56},[4749],{"type":14,"value":4750},"row-selection-keys",{"type":9,"tag":37,"props":4752,"children":4753},{"style":44},[4754],{"type":14,"value":69},{"type":9,"tag":37,"props":4756,"children":4757},{"style":72},[4758],{"type":14,"value":478},{"type":9,"tag":37,"props":4760,"children":4761},{"style":44},[4762],{"type":14,"value":4763},"selectionKeys",{"type":9,"tag":37,"props":4765,"children":4766},{"style":72},[4767],{"type":14,"value":1298},{"type":9,"tag":37,"props":4769,"children":4770},{"class":39,"line":2411},[4771,4775,4779,4783,4787,4791],{"type":9,"tag":37,"props":4772,"children":4773},{"style":44},[4774],{"type":14,"value":2579},{"type":9,"tag":37,"props":4776,"children":4777},{"style":56},[4778],{"type":14,"value":469},{"type":9,"tag":37,"props":4780,"children":4781},{"style":44},[4782],{"type":14,"value":69},{"type":9,"tag":37,"props":4784,"children":4785},{"style":72},[4786],{"type":14,"value":478},{"type":9,"tag":37,"props":4788,"children":4789},{"style":44},[4790],{"type":14,"value":483},{"type":9,"tag":37,"props":4792,"children":4793},{"style":72},[4794],{"type":14,"value":1298},{"type":9,"tag":37,"props":4796,"children":4797},{"class":39,"line":2427},[4798,4802,4806,4810,4814,4818],{"type":9,"tag":37,"props":4799,"children":4800},{"style":44},[4801],{"type":14,"value":2579},{"type":9,"tag":37,"props":4803,"children":4804},{"style":56},[4805],{"type":14,"value":496},{"type":9,"tag":37,"props":4807,"children":4808},{"style":44},[4809],{"type":14,"value":69},{"type":9,"tag":37,"props":4811,"children":4812},{"style":72},[4813],{"type":14,"value":478},{"type":9,"tag":37,"props":4815,"children":4816},{"style":44},[4817],{"type":14,"value":496},{"type":9,"tag":37,"props":4819,"children":4820},{"style":72},[4821],{"type":14,"value":1298},{"type":9,"tag":37,"props":4823,"children":4824},{"class":39,"line":2501},[4825,4829,4833],{"type":9,"tag":37,"props":4826,"children":4827},{"style":56},[4828],{"type":14,"value":2636},{"type":9,"tag":37,"props":4830,"children":4831},{"style":44},[4832],{"type":14,"value":69},{"type":9,"tag":37,"props":4834,"children":4835},{"style":72},[4836],{"type":14,"value":1402},{"type":9,"tag":37,"props":4838,"children":4839},{"class":39,"line":2510},[4840,4844,4848],{"type":9,"tag":37,"props":4841,"children":4842},{"style":56},[4843],{"type":14,"value":2653},{"type":9,"tag":37,"props":4845,"children":4846},{"style":44},[4847],{"type":14,"value":69},{"type":9,"tag":37,"props":4849,"children":4850},{"style":72},[4851],{"type":14,"value":1420},{"type":9,"tag":37,"props":4853,"children":4854},{"class":39,"line":2526},[4855],{"type":9,"tag":37,"props":4856,"children":4857},{"style":44},[4858],{"type":14,"value":2699},{"type":9,"tag":37,"props":4860,"children":4861},{"class":39,"line":2543},[4862,4866,4870,4874,4878,4883,4888,4892],{"type":9,"tag":37,"props":4863,"children":4864},{"style":44},[4865],{"type":14,"value":2132},{"type":9,"tag":37,"props":4867,"children":4868},{"style":50},[4869],{"type":14,"value":26},{"type":9,"tag":37,"props":4871,"children":4872},{"style":56},[4873],{"type":14,"value":2111},{"type":9,"tag":37,"props":4875,"children":4876},{"style":44},[4877],{"type":14,"value":69},{"type":9,"tag":37,"props":4879,"children":4880},{"style":72},[4881],{"type":14,"value":4882},"\"text-xs p-3 rounded-md bg-muted overflow-auto\"",{"type":9,"tag":37,"props":4884,"children":4885},{"style":44},[4886],{"type":14,"value":4887},">{{ result }}\u003C\u002F",{"type":9,"tag":37,"props":4889,"children":4890},{"style":50},[4891],{"type":14,"value":26},{"type":9,"tag":37,"props":4893,"children":4894},{"style":44},[4895],{"type":14,"value":80},{"type":9,"tag":37,"props":4897,"children":4898},{"class":39,"line":2555},[4899,4903,4907],{"type":9,"tag":37,"props":4900,"children":4901},{"style":44},[4902],{"type":14,"value":2708},{"type":9,"tag":37,"props":4904,"children":4905},{"style":50},[4906],{"type":14,"value":2106},{"type":9,"tag":37,"props":4908,"children":4909},{"style":44},[4910],{"type":14,"value":80},{"type":9,"tag":37,"props":4912,"children":4913},{"class":39,"line":2573},[4914,4918,4922],{"type":9,"tag":37,"props":4915,"children":4916},{"style":44},[4917],{"type":14,"value":412},{"type":9,"tag":37,"props":4919,"children":4920},{"style":50},[4921],{"type":14,"value":441},{"type":9,"tag":37,"props":4923,"children":4924},{"style":44},[4925],{"type":14,"value":80},{"type":9,"tag":599,"props":4927,"children":4928},{},[4929],{"type":14,"value":603},{"title":22,"searchDepth":83,"depth":83,"links":4931},[],{"code":4933,"filePath":4934,"pascalName":4935},"\u003Cscript setup lang=\"ts\">\nimport type { DataTableColumn, DataTableSelectionColumn } from '@movk\u002Fnuxt'\nimport type { Person } from '~\u002Fcomposables\u002FuseTableMock'\n\nconst treeData = makePeopleTree(3, 3, 2)\nconst strategy = ref\u003CDataTableSelectionColumn['strategy']>('cascade')\n\nconst columns = computed\u003CDataTableColumn\u003CPerson>[]>(() => [\n  { type: 'selection', strategy: strategy.value },\n  { type: 'expand' },\n  { accessorKey: 'name', header: '成员' },\n  { accessorKey: 'department', header: '部门' },\n  { accessorKey: 'role', header: '岗位' }\n])\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003Cdiv class=\"flex flex-col gap-3\">\n    \u003CUSelect\n      v-model=\"strategy\"\n      :items=\"[\n        { label: 'cascade 父子级联', value: 'cascade' },\n        { label: 'isolated 父子独立', value: 'isolated' },\n        { label: 'leaf 仅叶子可勾', value: 'leaf' }\n      ]\"\n      value-key=\"value\"\n      size=\"xs\"\n      class=\"w-56\"\n    \u002F>\n    \u003CMDataTable :data=\"treeData\" :columns=\"columns\" children-key=\"children\" row-key=\"id\" \u002F>\n  \u003C\u002Fdiv>\n\u003C\u002Ftemplate>\n","\u002Fopt\u002Fbuildhome\u002Frepo\u002Fdocs\u002Fapp\u002Fcomponents\u002Fcontent\u002Fexamples\u002Fdata-table\u002Ftree\u002FDataTableTreeStrategyExample.vue","DataTableTreeStrategyExample",{"data":4937,"body":4938,"toc":5680},{"title":22,"description":22},{"type":6,"children":4939},[4940,5676],{"type":9,"tag":26,"props":4941,"children":4943},{"className":28,"code":4942,"language":30,"meta":22,"style":22},"\u003Cscript setup lang=\"ts\">\nimport type { DataTableColumn, DataTableSelectionColumn } from '@movk\u002Fnuxt'\nimport type { Person } from '~\u002Fcomposables\u002FuseTableMock'\n\nconst treeData = makePeopleTree(3, 3, 2)\nconst strategy = ref\u003CDataTableSelectionColumn['strategy']>('cascade')\n\nconst columns = computed\u003CDataTableColumn\u003CPerson>[]>(() => [\n  { type: 'selection', strategy: strategy.value },\n  { type: 'expand' },\n  { accessorKey: 'name', header: '成员' },\n  { accessorKey: 'department', header: '部门' },\n  { accessorKey: 'role', header: '岗位' }\n])\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003Cdiv class=\"flex flex-col gap-3\">\n    \u003CUSelect\n      v-model=\"strategy\"\n      :items=\"[\n        { label: 'cascade 父子级联', value: 'cascade' },\n        { label: 'isolated 父子独立', value: 'isolated' },\n        { label: 'leaf 仅叶子可勾', value: 'leaf' }\n      ]\"\n      value-key=\"value\"\n      size=\"xs\"\n      class=\"w-56\"\n    \u002F>\n    \u003CMDataTable :data=\"treeData\" :columns=\"columns\" children-key=\"children\" row-key=\"id\" \u002F>\n  \u003C\u002Fdiv>\n\u003C\u002Ftemplate>\n\n",[4944],{"type":9,"tag":33,"props":4945,"children":4946},{"__ignoreMap":22},[4947,4978,5001,5024,5031,5078,5127,5134,5181,5197,5212,5235,5258,5281,5288,5303,5310,5325,5352,5364,5388,5413,5439,5464,5489,5501,5518,5535,5552,5559,5646,5661],{"type":9,"tag":37,"props":4948,"children":4949},{"class":39,"line":40},[4950,4954,4958,4962,4966,4970,4974],{"type":9,"tag":37,"props":4951,"children":4952},{"style":44},[4953],{"type":14,"value":47},{"type":9,"tag":37,"props":4955,"children":4956},{"style":50},[4957],{"type":14,"value":53},{"type":9,"tag":37,"props":4959,"children":4960},{"style":56},[4961],{"type":14,"value":59},{"type":9,"tag":37,"props":4963,"children":4964},{"style":56},[4965],{"type":14,"value":64},{"type":9,"tag":37,"props":4967,"children":4968},{"style":44},[4969],{"type":14,"value":69},{"type":9,"tag":37,"props":4971,"children":4972},{"style":72},[4973],{"type":14,"value":75},{"type":9,"tag":37,"props":4975,"children":4976},{"style":44},[4977],{"type":14,"value":80},{"type":9,"tag":37,"props":4979,"children":4980},{"class":39,"line":83},[4981,4985,4989,4993,4997],{"type":9,"tag":37,"props":4982,"children":4983},{"style":87},[4984],{"type":14,"value":90},{"type":9,"tag":37,"props":4986,"children":4987},{"style":87},[4988],{"type":14,"value":95},{"type":9,"tag":37,"props":4990,"children":4991},{"style":44},[4992],{"type":14,"value":3252},{"type":9,"tag":37,"props":4994,"children":4995},{"style":87},[4996],{"type":14,"value":105},{"type":9,"tag":37,"props":4998,"children":4999},{"style":72},[5000],{"type":14,"value":110},{"type":9,"tag":37,"props":5002,"children":5003},{"class":39,"line":113},[5004,5008,5012,5016,5020],{"type":9,"tag":37,"props":5005,"children":5006},{"style":87},[5007],{"type":14,"value":90},{"type":9,"tag":37,"props":5009,"children":5010},{"style":87},[5011],{"type":14,"value":95},{"type":9,"tag":37,"props":5013,"children":5014},{"style":44},[5015],{"type":14,"value":127},{"type":9,"tag":37,"props":5017,"children":5018},{"style":87},[5019],{"type":14,"value":105},{"type":9,"tag":37,"props":5021,"children":5022},{"style":72},[5023],{"type":14,"value":136},{"type":9,"tag":37,"props":5025,"children":5026},{"class":39,"line":139},[5027],{"type":9,"tag":37,"props":5028,"children":5029},{"emptyLinePlaceholder":143},[5030],{"type":14,"value":146},{"type":9,"tag":37,"props":5032,"children":5033},{"class":39,"line":149},[5034,5038,5042,5046,5050,5054,5058,5062,5066,5070,5074],{"type":9,"tag":37,"props":5035,"children":5036},{"style":87},[5037],{"type":14,"value":155},{"type":9,"tag":37,"props":5039,"children":5040},{"style":158},[5041],{"type":14,"value":161},{"type":9,"tag":37,"props":5043,"children":5044},{"style":87},[5045],{"type":14,"value":166},{"type":9,"tag":37,"props":5047,"children":5048},{"style":56},[5049],{"type":14,"value":171},{"type":9,"tag":37,"props":5051,"children":5052},{"style":44},[5053],{"type":14,"value":176},{"type":9,"tag":37,"props":5055,"children":5056},{"style":158},[5057],{"type":14,"value":181},{"type":9,"tag":37,"props":5059,"children":5060},{"style":44},[5061],{"type":14,"value":186},{"type":9,"tag":37,"props":5063,"children":5064},{"style":158},[5065],{"type":14,"value":181},{"type":9,"tag":37,"props":5067,"children":5068},{"style":44},[5069],{"type":14,"value":186},{"type":9,"tag":37,"props":5071,"children":5072},{"style":158},[5073],{"type":14,"value":199},{"type":9,"tag":37,"props":5075,"children":5076},{"style":44},[5077],{"type":14,"value":204},{"type":9,"tag":37,"props":5079,"children":5080},{"class":39,"line":207},[5081,5085,5090,5094,5098,5102,5106,5110,5115,5119,5123],{"type":9,"tag":37,"props":5082,"children":5083},{"style":87},[5084],{"type":14,"value":155},{"type":9,"tag":37,"props":5086,"children":5087},{"style":158},[5088],{"type":14,"value":5089}," strategy",{"type":9,"tag":37,"props":5091,"children":5092},{"style":87},[5093],{"type":14,"value":166},{"type":9,"tag":37,"props":5095,"children":5096},{"style":56},[5097],{"type":14,"value":1689},{"type":9,"tag":37,"props":5099,"children":5100},{"style":44},[5101],{"type":14,"value":47},{"type":9,"tag":37,"props":5103,"children":5104},{"style":56},[5105],{"type":14,"value":3366},{"type":9,"tag":37,"props":5107,"children":5108},{"style":44},[5109],{"type":14,"value":3371},{"type":9,"tag":37,"props":5111,"children":5112},{"style":72},[5113],{"type":14,"value":5114},"'strategy'",{"type":9,"tag":37,"props":5116,"children":5117},{"style":44},[5118],{"type":14,"value":3381},{"type":9,"tag":37,"props":5120,"children":5121},{"style":72},[5122],{"type":14,"value":4463},{"type":9,"tag":37,"props":5124,"children":5125},{"style":44},[5126],{"type":14,"value":204},{"type":9,"tag":37,"props":5128,"children":5129},{"class":39,"line":215},[5130],{"type":9,"tag":37,"props":5131,"children":5132},{"emptyLinePlaceholder":143},[5133],{"type":14,"value":146},{"type":9,"tag":37,"props":5135,"children":5136},{"class":39,"line":261},[5137,5141,5145,5149,5153,5157,5161,5165,5169,5173,5177],{"type":9,"tag":37,"props":5138,"children":5139},{"style":87},[5140],{"type":14,"value":155},{"type":9,"tag":37,"props":5142,"children":5143},{"style":158},[5144],{"type":14,"value":225},{"type":9,"tag":37,"props":5146,"children":5147},{"style":87},[5148],{"type":14,"value":166},{"type":9,"tag":37,"props":5150,"children":5151},{"style":56},[5152],{"type":14,"value":1024},{"type":9,"tag":37,"props":5154,"children":5155},{"style":44},[5156],{"type":14,"value":47},{"type":9,"tag":37,"props":5158,"children":5159},{"style":56},[5160],{"type":14,"value":3425},{"type":9,"tag":37,"props":5162,"children":5163},{"style":44},[5164],{"type":14,"value":47},{"type":9,"tag":37,"props":5166,"children":5167},{"style":56},[5168],{"type":14,"value":244},{"type":9,"tag":37,"props":5170,"children":5171},{"style":44},[5172],{"type":14,"value":3438},{"type":9,"tag":37,"props":5174,"children":5175},{"style":87},[5176],{"type":14,"value":1061},{"type":9,"tag":37,"props":5178,"children":5179},{"style":44},[5180],{"type":14,"value":258},{"type":9,"tag":37,"props":5182,"children":5183},{"class":39,"line":280},[5184,5188,5192],{"type":9,"tag":37,"props":5185,"children":5186},{"style":44},[5187],{"type":14,"value":267},{"type":9,"tag":37,"props":5189,"children":5190},{"style":72},[5191],{"type":14,"value":3458},{"type":9,"tag":37,"props":5193,"children":5194},{"style":44},[5195],{"type":14,"value":5196},", strategy: strategy.value },\n",{"type":9,"tag":37,"props":5198,"children":5199},{"class":39,"line":308},[5200,5204,5208],{"type":9,"tag":37,"props":5201,"children":5202},{"style":44},[5203],{"type":14,"value":267},{"type":9,"tag":37,"props":5205,"children":5206},{"style":72},[5207],{"type":14,"value":272},{"type":9,"tag":37,"props":5209,"children":5210},{"style":44},[5211],{"type":14,"value":277},{"type":9,"tag":37,"props":5213,"children":5214},{"class":39,"line":334},[5215,5219,5223,5227,5231],{"type":9,"tag":37,"props":5216,"children":5217},{"style":44},[5218],{"type":14,"value":286},{"type":9,"tag":37,"props":5220,"children":5221},{"style":72},[5222],{"type":14,"value":291},{"type":9,"tag":37,"props":5224,"children":5225},{"style":44},[5226],{"type":14,"value":296},{"type":9,"tag":37,"props":5228,"children":5229},{"style":72},[5230],{"type":14,"value":301},{"type":9,"tag":37,"props":5232,"children":5233},{"style":44},[5234],{"type":14,"value":277},{"type":9,"tag":37,"props":5236,"children":5237},{"class":39,"line":360},[5238,5242,5246,5250,5254],{"type":9,"tag":37,"props":5239,"children":5240},{"style":44},[5241],{"type":14,"value":286},{"type":9,"tag":37,"props":5243,"children":5244},{"style":72},[5245],{"type":14,"value":318},{"type":9,"tag":37,"props":5247,"children":5248},{"style":44},[5249],{"type":14,"value":296},{"type":9,"tag":37,"props":5251,"children":5252},{"style":72},[5253],{"type":14,"value":327},{"type":9,"tag":37,"props":5255,"children":5256},{"style":44},[5257],{"type":14,"value":277},{"type":9,"tag":37,"props":5259,"children":5260},{"class":39,"line":397},[5261,5265,5269,5273,5277],{"type":9,"tag":37,"props":5262,"children":5263},{"style":44},[5264],{"type":14,"value":286},{"type":9,"tag":37,"props":5266,"children":5267},{"style":72},[5268],{"type":14,"value":344},{"type":9,"tag":37,"props":5270,"children":5271},{"style":44},[5272],{"type":14,"value":296},{"type":9,"tag":37,"props":5274,"children":5275},{"style":72},[5276],{"type":14,"value":353},{"type":9,"tag":37,"props":5278,"children":5279},{"style":44},[5280],{"type":14,"value":394},{"type":9,"tag":37,"props":5282,"children":5283},{"class":39,"line":406},[5284],{"type":9,"tag":37,"props":5285,"children":5286},{"style":44},[5287],{"type":14,"value":3587},{"type":9,"tag":37,"props":5289,"children":5290},{"class":39,"line":423},[5291,5295,5299],{"type":9,"tag":37,"props":5292,"children":5293},{"style":44},[5294],{"type":14,"value":412},{"type":9,"tag":37,"props":5296,"children":5297},{"style":50},[5298],{"type":14,"value":53},{"type":9,"tag":37,"props":5300,"children":5301},{"style":44},[5302],{"type":14,"value":80},{"type":9,"tag":37,"props":5304,"children":5305},{"class":39,"line":431},[5306],{"type":9,"tag":37,"props":5307,"children":5308},{"emptyLinePlaceholder":143},[5309],{"type":14,"value":146},{"type":9,"tag":37,"props":5311,"children":5312},{"class":39,"line":448},[5313,5317,5321],{"type":9,"tag":37,"props":5314,"children":5315},{"style":44},[5316],{"type":14,"value":47},{"type":9,"tag":37,"props":5318,"children":5319},{"style":50},[5320],{"type":14,"value":441},{"type":9,"tag":37,"props":5322,"children":5323},{"style":44},[5324],{"type":14,"value":80},{"type":9,"tag":37,"props":5326,"children":5327},{"class":39,"line":584},[5328,5332,5336,5340,5344,5348],{"type":9,"tag":37,"props":5329,"children":5330},{"style":44},[5331],{"type":14,"value":454},{"type":9,"tag":37,"props":5333,"children":5334},{"style":50},[5335],{"type":14,"value":2106},{"type":9,"tag":37,"props":5337,"children":5338},{"style":56},[5339],{"type":14,"value":2111},{"type":9,"tag":37,"props":5341,"children":5342},{"style":44},[5343],{"type":14,"value":69},{"type":9,"tag":37,"props":5345,"children":5346},{"style":72},[5347],{"type":14,"value":2120},{"type":9,"tag":37,"props":5349,"children":5350},{"style":44},[5351],{"type":14,"value":80},{"type":9,"tag":37,"props":5353,"children":5354},{"class":39,"line":1069},[5355,5359],{"type":9,"tag":37,"props":5356,"children":5357},{"style":44},[5358],{"type":14,"value":2132},{"type":9,"tag":37,"props":5360,"children":5361},{"style":50},[5362],{"type":14,"value":5363},"USelect\n",{"type":9,"tag":37,"props":5365,"children":5366},{"class":39,"line":1107},[5367,5371,5375,5379,5384],{"type":9,"tag":37,"props":5368,"children":5369},{"style":56},[5370],{"type":14,"value":4741},{"type":9,"tag":37,"props":5372,"children":5373},{"style":44},[5374],{"type":14,"value":69},{"type":9,"tag":37,"props":5376,"children":5377},{"style":72},[5378],{"type":14,"value":478},{"type":9,"tag":37,"props":5380,"children":5381},{"style":44},[5382],{"type":14,"value":5383},"strategy",{"type":9,"tag":37,"props":5385,"children":5386},{"style":72},[5387],{"type":14,"value":1298},{"type":9,"tag":37,"props":5389,"children":5390},{"class":39,"line":1140},[5391,5395,5400,5404,5408],{"type":9,"tag":37,"props":5392,"children":5393},{"style":44},[5394],{"type":14,"value":2579},{"type":9,"tag":37,"props":5396,"children":5397},{"style":56},[5398],{"type":14,"value":5399},"items",{"type":9,"tag":37,"props":5401,"children":5402},{"style":44},[5403],{"type":14,"value":69},{"type":9,"tag":37,"props":5405,"children":5406},{"style":72},[5407],{"type":14,"value":478},{"type":9,"tag":37,"props":5409,"children":5410},{"style":44},[5411],{"type":14,"value":5412},"[\n",{"type":9,"tag":37,"props":5414,"children":5415},{"class":39,"line":1193},[5416,5421,5426,5431,5435],{"type":9,"tag":37,"props":5417,"children":5418},{"style":44},[5419],{"type":14,"value":5420},"        { label: ",{"type":9,"tag":37,"props":5422,"children":5423},{"style":72},[5424],{"type":14,"value":5425},"'cascade 父子级联'",{"type":9,"tag":37,"props":5427,"children":5428},{"style":44},[5429],{"type":14,"value":5430},", value: ",{"type":9,"tag":37,"props":5432,"children":5433},{"style":72},[5434],{"type":14,"value":4463},{"type":9,"tag":37,"props":5436,"children":5437},{"style":44},[5438],{"type":14,"value":277},{"type":9,"tag":37,"props":5440,"children":5441},{"class":39,"line":1207},[5442,5446,5451,5455,5460],{"type":9,"tag":37,"props":5443,"children":5444},{"style":44},[5445],{"type":14,"value":5420},{"type":9,"tag":37,"props":5447,"children":5448},{"style":72},[5449],{"type":14,"value":5450},"'isolated 父子独立'",{"type":9,"tag":37,"props":5452,"children":5453},{"style":44},[5454],{"type":14,"value":5430},{"type":9,"tag":37,"props":5456,"children":5457},{"style":72},[5458],{"type":14,"value":5459},"'isolated'",{"type":9,"tag":37,"props":5461,"children":5462},{"style":44},[5463],{"type":14,"value":277},{"type":9,"tag":37,"props":5465,"children":5466},{"class":39,"line":1216},[5467,5471,5476,5480,5485],{"type":9,"tag":37,"props":5468,"children":5469},{"style":44},[5470],{"type":14,"value":5420},{"type":9,"tag":37,"props":5472,"children":5473},{"style":72},[5474],{"type":14,"value":5475},"'leaf 仅叶子可勾'",{"type":9,"tag":37,"props":5477,"children":5478},{"style":44},[5479],{"type":14,"value":5430},{"type":9,"tag":37,"props":5481,"children":5482},{"style":72},[5483],{"type":14,"value":5484},"'leaf'",{"type":9,"tag":37,"props":5486,"children":5487},{"style":44},[5488],{"type":14,"value":394},{"type":9,"tag":37,"props":5490,"children":5491},{"class":39,"line":1232},[5492,5497],{"type":9,"tag":37,"props":5493,"children":5494},{"style":44},[5495],{"type":14,"value":5496},"      ]",{"type":9,"tag":37,"props":5498,"children":5499},{"style":72},[5500],{"type":14,"value":1298},{"type":9,"tag":37,"props":5502,"children":5503},{"class":39,"line":1240},[5504,5509,5513],{"type":9,"tag":37,"props":5505,"children":5506},{"style":56},[5507],{"type":14,"value":5508},"      value-key",{"type":9,"tag":37,"props":5510,"children":5511},{"style":44},[5512],{"type":14,"value":69},{"type":9,"tag":37,"props":5514,"children":5515},{"style":72},[5516],{"type":14,"value":5517},"\"value\"\n",{"type":9,"tag":37,"props":5519,"children":5520},{"class":39,"line":1256},[5521,5526,5530],{"type":9,"tag":37,"props":5522,"children":5523},{"style":56},[5524],{"type":14,"value":5525},"      size",{"type":9,"tag":37,"props":5527,"children":5528},{"style":44},[5529],{"type":14,"value":69},{"type":9,"tag":37,"props":5531,"children":5532},{"style":72},[5533],{"type":14,"value":5534},"\"xs\"\n",{"type":9,"tag":37,"props":5536,"children":5537},{"class":39,"line":1269},[5538,5543,5547],{"type":9,"tag":37,"props":5539,"children":5540},{"style":56},[5541],{"type":14,"value":5542},"      class",{"type":9,"tag":37,"props":5544,"children":5545},{"style":44},[5546],{"type":14,"value":69},{"type":9,"tag":37,"props":5548,"children":5549},{"style":72},[5550],{"type":14,"value":5551},"\"w-56\"\n",{"type":9,"tag":37,"props":5553,"children":5554},{"class":39,"line":1301},[5555],{"type":9,"tag":37,"props":5556,"children":5557},{"style":44},[5558],{"type":14,"value":2699},{"type":9,"tag":37,"props":5560,"children":5561},{"class":39,"line":1331},[5562,5566,5570,5574,5578,5582,5586,5590,5594,5598,5602,5606,5610,5614,5618,5622,5626,5630,5634,5638,5642],{"type":9,"tag":37,"props":5563,"children":5564},{"style":44},[5565],{"type":14,"value":2132},{"type":9,"tag":37,"props":5567,"children":5568},{"style":50},[5569],{"type":14,"value":459},{"type":9,"tag":37,"props":5571,"children":5572},{"style":44},[5573],{"type":14,"value":464},{"type":9,"tag":37,"props":5575,"children":5576},{"style":56},[5577],{"type":14,"value":469},{"type":9,"tag":37,"props":5579,"children":5580},{"style":44},[5581],{"type":14,"value":69},{"type":9,"tag":37,"props":5583,"children":5584},{"style":72},[5585],{"type":14,"value":478},{"type":9,"tag":37,"props":5587,"children":5588},{"style":44},[5589],{"type":14,"value":483},{"type":9,"tag":37,"props":5591,"children":5592},{"style":72},[5593],{"type":14,"value":478},{"type":9,"tag":37,"props":5595,"children":5596},{"style":44},[5597],{"type":14,"value":464},{"type":9,"tag":37,"props":5599,"children":5600},{"style":56},[5601],{"type":14,"value":496},{"type":9,"tag":37,"props":5603,"children":5604},{"style":44},[5605],{"type":14,"value":69},{"type":9,"tag":37,"props":5607,"children":5608},{"style":72},[5609],{"type":14,"value":478},{"type":9,"tag":37,"props":5611,"children":5612},{"style":44},[5613],{"type":14,"value":496},{"type":9,"tag":37,"props":5615,"children":5616},{"style":72},[5617],{"type":14,"value":478},{"type":9,"tag":37,"props":5619,"children":5620},{"style":56},[5621],{"type":14,"value":517},{"type":9,"tag":37,"props":5623,"children":5624},{"style":44},[5625],{"type":14,"value":69},{"type":9,"tag":37,"props":5627,"children":5628},{"style":72},[5629],{"type":14,"value":526},{"type":9,"tag":37,"props":5631,"children":5632},{"style":56},[5633],{"type":14,"value":531},{"type":9,"tag":37,"props":5635,"children":5636},{"style":44},[5637],{"type":14,"value":69},{"type":9,"tag":37,"props":5639,"children":5640},{"style":72},[5641],{"type":14,"value":540},{"type":9,"tag":37,"props":5643,"children":5644},{"style":44},[5645],{"type":14,"value":581},{"type":9,"tag":37,"props":5647,"children":5648},{"class":39,"line":1359},[5649,5653,5657],{"type":9,"tag":37,"props":5650,"children":5651},{"style":44},[5652],{"type":14,"value":2708},{"type":9,"tag":37,"props":5654,"children":5655},{"style":50},[5656],{"type":14,"value":2106},{"type":9,"tag":37,"props":5658,"children":5659},{"style":44},[5660],{"type":14,"value":80},{"type":9,"tag":37,"props":5662,"children":5663},{"class":39,"line":1387},[5664,5668,5672],{"type":9,"tag":37,"props":5665,"children":5666},{"style":44},[5667],{"type":14,"value":412},{"type":9,"tag":37,"props":5669,"children":5670},{"style":50},[5671],{"type":14,"value":441},{"type":9,"tag":37,"props":5673,"children":5674},{"style":44},[5675],{"type":14,"value":80},{"type":9,"tag":599,"props":5677,"children":5678},{},[5679],{"type":14,"value":603},{"title":22,"searchDepth":83,"depth":83,"links":5681},[],{"id":5683,"title":5684,"body":5685,"category":5913,"description":15,"difficulty":5913,"extension":5914,"index":5915,"keywords":5913,"links":5913,"meta":5916,"navigation":5913,"path":5917,"requires":5913,"seo":5918,"sitemap":5919,"stem":5920,"__hash__":5921},"docs\u002Fdocs\u002F3.data-table\u002F6.tree.md","树形数据",{"type":5686,"value":5687,"toc":5900},"minimark",[5688,5692,5711,5714,5720,5741,5743,5750,5766,5768,5771,5799,5801,5808,5817,5820,5826,5859,5862,5865,5898],[5689,5690,5691],"h2",{"id":5691},"树形数据基础",[10,5693,5694,5695,5698,5699,5702,5703,5706,5707,5710],{},"设置 ",[33,5696,5697],{},"children-key"," 即启用树形模式，配合 ",[33,5700,5701],{},"row-key"," 派生行 id、",[33,5704,5705],{},"expand"," 列渲染折叠按钮。父级缺失字段（如职级）可由 ",[33,5708,5709],{},"emptyCell"," 占位：",[5712,5713],"component-example",{"name":19},[5689,5715,5717,5719],{"id":5716},"strategy-级联选择策略",[33,5718,5383],{}," 级联选择策略",[10,5721,5722,5725,5726,5728,5729,5732,5733,5736,5737,5740],{},[33,5723,5724],{},"selection"," 列的 ",[33,5727,5383],{}," 决定父子勾选联动：",[33,5730,5731],{},"cascade"," 父子级联、",[33,5734,5735],{},"isolated"," 父子独立、",[33,5738,5739],{},"leaf"," 仅叶子可勾（父节点展示为子孙派生态）：",[5712,5742],{"name":4935},[5689,5744,5746,5749],{"id":5745},"mode-单选与多选",[33,5747,5748],{},"mode"," 单选与多选",[10,5751,5752,5755,5756,5758,5759,5762,5763,5765],{},[33,5753,5754],{},"mode: 'single'"," 时整树仅单行勾选（通常配合 ",[33,5757,5735],{},"）；",[33,5760,5761],{},"multiple"," 时配合 ",[33,5764,5383],{}," 联动：",[5712,5767],{"name":3194},[5689,5769,5770],{"id":5770},"选中结果读取",[10,5772,5773,5776,5777,5780,5781,5784,5785,5784,5788,5784,5791,5794,5795,5798],{},[33,5774,5775],{},"v-model:row-selection-keys"," 双向同步选中 id 数组；组件 expose 的 ",[33,5778,5779],{},"treeSelection"," 派生 ",[33,5782,5783],{},"leaves","、",[33,5786,5787],{},"parents",[33,5789,5790],{},"halfSelected",[33,5792,5793],{},"strictlyChecked"," 四类业务视图，并提供 ",[33,5796,5797],{},"clearSelection()","：",[5712,5800],{"name":3907},[5689,5802,5804,5807],{"id":5803},"indentsize-树形缩进",[33,5805,5806],{},"indentSize"," 树形缩进",[10,5809,5810,5812,5813,5816],{},[33,5811,5806],{}," 支持字符串、数字（px）与函数三种形态，函数形态可按 ",[33,5814,5815],{},"row.depth"," 等上下文动态调整：",[5712,5818],{"name":2742,":options":5819},"[{\"name\":\"indent-size\",\"label\":\"indentSize\",\"items\":[\"0.5rem\",\"1rem\",36,\"2.5rem\",\"ctx => `${(ctx.row.depth + 1) * 1.25}rem`\"],\"default\":\"1rem\"}]",[5689,5821,5823,5825],{"id":5822},"defaultexpanded-默认展开",[33,5824,1324],{}," 默认展开",[10,5827,5828,5830,5831,5834,5835,5838,5839,5842,5843,5846,5847,5850,5851,5854,5855,5858],{},[33,5829,1311],{}," 在未提供 ",[33,5832,5833],{},"expanded"," \u002F ",[33,5836,5837],{},"expanded-keys","（受控优先）时决定初始展开：",[33,5840,5841],{},"true"," 展开全部父级行、",[33,5844,5845],{},"number"," 展开 ",[33,5848,5849],{},"depth"," 小于该值的父级行（与 ",[33,5852,5853],{},"expandToDepth(n)"," 同义）、函数 ",[33,5856,5857],{},"(row, depth) => boolean"," 按行与深度自定义，无需手写收集父级 id：",[5712,5860],{"name":609,":options":5861},"[{\"name\":\"mode\",\"label\":\"defaultExpanded\",\"items\":[\"all\",\"depth1\",\"depth2\",\"fn\"],\"default\":\"all\"}]",[5689,5863,5864],{"id":5864},"展开行为控制",[10,5866,5867,5725,5869,5872,5873,5876,5877,5880,5881,5758,5884,5886,5887,5889,5890,5893,5894,5897],{},[33,5868,5705],{},[33,5870,5871],{},"buttonProps"," 与 ",[33,5874,5875],{},"toggleAllButtonProps"," 分别定制单元格与表头按钮（接收 ",[33,5878,5879],{},"isExpanded","\u002F",[33,5882,5883],{},"isAllExpanded",[33,5885,2674],{}," 整行触发展开；expose 的 ",[33,5888,5853],{}," 按层展开、",[33,5891,5892],{},"collapseAll()"," 收起全部，",[33,5895,5896],{},"v-model:expanded-keys"," 同步展开 id：",[5712,5899],{"name":1473},{"title":22,"searchDepth":83,"depth":83,"links":5901},[5902,5903,5905,5907,5908,5910,5912],{"id":5691,"depth":83,"text":5691},{"id":5716,"depth":83,"text":5904},"strategy 级联选择策略",{"id":5745,"depth":83,"text":5906},"mode 单选与多选",{"id":5770,"depth":83,"text":5770},{"id":5803,"depth":83,"text":5909},"indentSize 树形缩进",{"id":5822,"depth":83,"text":5911},"defaultExpanded 默认展开",{"id":5864,"depth":83,"text":5864},null,"md",false,{},"\u002Fdocs\u002Fdata-table\u002Ftree",{"title":5684,"description":15},{"loc":5917},"docs\u002F3.data-table\u002F6.tree","8Hg9a48LHkPN8EOSZH6ss2OFxRlU1XFRf2VYRdRp4kY",[5923],{"title":5924,"path":5925,"stem":5926,"children":5927,"page":5915},"Docs","\u002Fdocs","docs",[5928,5967,6022,6056,6095],{"title":5929,"path":5930,"stem":5931,"children":5932,"category":5913,"description":5913,"icon":5966},"快速开始","\u002Fdocs\u002Fgetting-started","docs\u002F1.getting-started\u002F1.index",[5933,5936,5941,5946,5951,5956,5961],{"title":5934,"path":5930,"stem":5931,"category":5913,"description":5935},"介绍","了解 Movk Nuxt 的表单、数据表格、组件和 API 集成，并选择适合 Nuxt 或 Vue + Vite 项目的接入方式。",{"title":5937,"path":5938,"stem":5939,"category":5913,"description":5940},"安装","\u002Fdocs\u002Fgetting-started\u002Finstallation","docs\u002F1.getting-started\u002F2.installation","在 Nuxt 4 项目中安装和配置 Movk Nuxt 模块。",{"title":5942,"path":5943,"stem":5944,"category":5913,"description":5945},"模块配置","\u002Fdocs\u002Fgetting-started\u002Fconfiguration","docs\u002F1.getting-started\u002F3.configuration","配置组件前缀、主题颜色、字体、API 端点、认证策略、响应解析规则和 Toast 提示行为。",{"title":5947,"path":5948,"stem":5949,"category":5913,"description":5950},"Vue \u002F Vite","\u002Fdocs\u002Fgetting-started\u002Fvue","docs\u002F1.getting-started\u002F4.vue","在纯 Vue + Vite 项目中使用 Movk 的独立组件、主题与 Composables，无需 Nuxt。",{"title":5952,"path":5953,"stem":5954,"category":5913,"description":5955},"主题系统","\u002Fdocs\u002Fgetting-started\u002Ftheme","docs\u002F1.getting-started\u002F5.theme","通过模块默认值、ThemePicker 组件和 useTheme composable 管理颜色、圆角、图标集与深色模式，字体则在构建期配置。",{"title":5957,"path":5958,"stem":5959,"category":5913,"description":5960},"迁移到 v2","\u002Fdocs\u002Fgetting-started\u002Fmigration","docs\u002F1.getting-started\u002F6.migration","从 v1 升级到 v2 时需要处理的破坏性变更。",{"title":5962,"path":5963,"stem":5964,"category":5913,"description":5965},"AI 集成","\u002Fdocs\u002Fgetting-started\u002Fai","docs\u002F1.getting-started\u002F7.ai","通过 MCP、llms.txt 与 Skills 让 AI 助手理解 Movk Nuxt。","i-lucide-square-play",{"title":5968,"category":5913,"description":5913,"icon":5969,"path":5970,"stem":5971,"children":5972,"page":5915},"表单","i-lucide-square-pen","\u002Fdocs\u002Fauto-form","docs\u002F2.auto-form",[5973,5977,5982,5987,5992,5997,6002,6007,6012,6017],{"title":5929,"path":5974,"stem":5975,"category":5913,"description":5976},"\u002Fdocs\u002Fauto-form\u002Fquickstart","docs\u002F2.auto-form\u002F1.quickstart","了解 AutoForm 的核心设计理念和基本使用方式。",{"title":5978,"path":5979,"stem":5980,"category":5913,"description":5981},"实战示例","\u002Fdocs\u002Fauto-form\u002Frecipes","docs\u002F2.auto-form\u002F10.recipes","登录、注册分组校验、多文件上传与横向搜索表单等 AutoForm 组合场景。",{"title":5983,"path":5984,"stem":5985,"category":5913,"description":5986},"字段类型","\u002Fdocs\u002Fauto-form\u002Ffield-types","docs\u002F2.auto-form\u002F2.field-types","afz 各字段类型到控件的映射与配置。",{"title":5988,"path":5989,"stem":5990,"category":5913,"description":5991},"对象与数组","\u002Fdocs\u002Fauto-form\u002Fobject-array","docs\u002F2.auto-form\u002F3.object-array","嵌套对象与动态数组字段的渲染与增删。",{"title":5993,"path":5994,"stem":5995,"category":5913,"description":5996},"控件","\u002Fdocs\u002Fauto-form\u002Fcontrols","docs\u002F2.auto-form\u002F4.controls","通过 type 字段将 schema 映射到 Nuxt UI 控件，或注册、直接传入自定义 Vue 组件扩展表单字段。",{"title":5998,"path":5999,"stem":6000,"category":5913,"description":6001},"元数据与布局","\u002Fdocs\u002Fauto-form\u002Fmetadata-layout","docs\u002F2.auto-form\u002F5.metadata-layout","通过 meta 配置字段属性，并用 afz.layout 组织布局。",{"title":6003,"path":6004,"stem":6005,"category":5913,"description":6006},"插槽","\u002Fdocs\u002Fauto-form\u002Fslots","docs\u002F2.auto-form\u002F6.slots","通过具名插槽自定义 AutoForm 的头尾、字段控件、字段前后与布局内容。",{"title":6008,"path":6009,"stem":6010,"category":5913,"description":6011},"联动与提交","\u002Fdocs\u002Fauto-form\u002Freactive-submit","docs\u002F2.auto-form\u002F7.reactive-submit","字段间响应式联动与表单提交处理。",{"title":6013,"path":6014,"stem":6015,"category":5913,"description":6016},"SearchForm","\u002Fdocs\u002Fauto-form\u002Fsearch-form","docs\u002F2.auto-form\u002F8.search-form","Schema 驱动的可折叠搜索表单组件。",{"title":6018,"path":6019,"stem":6020,"category":5913,"description":6021},"useAutoForm","\u002Fdocs\u002Fauto-form\u002Fuse-auto-form","docs\u002F2.auto-form\u002F9.use-auto-form","用于创建类型化 Zod Schema 和管理 AutoForm 控件的 composable。",{"title":6023,"path":6024,"stem":6025,"children":6026,"category":5913,"description":5913,"icon":6055},"DataTable","\u002Fdocs\u002Fdata-table","docs\u002F3.data-table\u002F1.index",[6027,6029,6034,6039,6044,6049,6050],{"title":5934,"path":6024,"stem":6025,"category":5913,"description":6028},"基于 TanStack Table 的声明式数据表格，含列配置、选择、展开、树形、分页、加载更多与完整 API 参考。",{"title":6030,"path":6031,"stem":6032,"category":5913,"description":6033},"外观","\u002Fdocs\u002Fdata-table\u002Fappearance","docs\u002F3.data-table\u002F2.appearance","组件样式覆盖、分页样式覆盖、斑马纹与边框、视觉密度、内容自适应、空值占位与粘性表头。",{"title":6035,"path":6036,"stem":6037,"category":5913,"description":6038},"列配置","\u002Fdocs\u002Fdata-table\u002Fcolumns","docs\u002F3.data-table\u002F3.columns","数据列的固定、排序、列固定切换、列宽拖拽、文本截断、Tooltip、可见性与函数式配置。",{"title":6040,"path":6041,"stem":6042,"category":5913,"description":6043},"特殊列","\u002Fdocs\u002Fdata-table\u002Fspecial-columns","docs\u002F3.data-table\u002F4.special-columns","选择列、索引列、行固定列与操作列的配置，含树形选择策略、动态按钮与二次确认。",{"title":6045,"path":6046,"stem":6047,"category":5913,"description":6048},"行为与交互","\u002Fdocs\u002Fdata-table\u002Frows","docs\u002F3.data-table\u002F5.rows","行选择、展开详情、点击行为、动态行样式、悬停、右键菜单与编程式控制。",{"title":5684,"path":5917,"stem":5920,"category":5913,"description":15},{"title":6051,"path":6052,"stem":6053,"category":5913,"description":6054},"分页与加载更多","\u002Fdocs\u002Fdata-table\u002Fpagination","docs\u002F3.data-table\u002F7.pagination","客户端自动分页、服务端手动分页与加载状态，以及触底加载、无限滚动的实用参数。","i-lucide-table",{"title":6057,"path":6058,"stem":6059,"children":6060,"category":5913,"description":5913,"icon":6094},"API","\u002Fdocs\u002Fapi","docs\u002F4.api\u002F1.index",[6061,6064,6069,6074,6079,6084,6089],{"title":6062,"path":6058,"stem":6059,"category":5913,"description":6063},"概览","Nuxt 数据获取基础与 Movk Nuxt API 系统的核心概念和架构设计。",{"title":6065,"path":6066,"stem":6067,"category":5913,"description":6068},"$api","\u002Fdocs\u002Fapi\u002Fapi-plugin","docs\u002F4.api\u002F2.api-plugin","由 api.factory 插件创建的增强型 $fetch 实例，支持认证注入、数据解包、业务检查和多端点切换。",{"title":6070,"path":6071,"stem":6072,"category":5913,"description":6073},"hooks","\u002Fdocs\u002Fapi\u002Fhooks","docs\u002F4.api\u002F3.hooks","通过 Nuxt 运行时 Hook 扩展 API 系统行为，实现全局请求拦截、错误处理和 401 自定义处理。",{"title":6075,"path":6076,"stem":6077,"category":5913,"description":6078},"useApiFetch","\u002Fdocs\u002Fapi\u002Fuse-api-fetch","docs\u002F4.api\u002F4.use-api-fetch","基于 Nuxt useFetch 封装的 API 请求 composable，提供自动认证、业务状态码检查和 Toast 提示。",{"title":6080,"path":6081,"stem":6082,"category":5913,"description":6083},"上传与下载","\u002Fdocs\u002Fapi\u002Fupload-download","docs\u002F4.api\u002F5.upload-download","带进度监控的文件上传与下载。",{"title":6085,"path":6086,"stem":6087,"category":5913,"description":6088},"流式请求","\u002Fdocs\u002Fapi\u002Fstream","docs\u002F4.api\u002F6.stream","SSE 流式请求与 AI SDK Chat Transport。",{"title":6090,"path":6091,"stem":6092,"category":5913,"description":6093},"API 架构设计","\u002Fdocs\u002Fapi\u002Farchitecture","docs\u002F4.api\u002F7.architecture","厘清 @movk\u002Fnuxt 的职责边界，用最小化分层组织直连后端、同源代理与最小化 BFF，并梳理两类 Auth 的完整闭环。","i-lucide-cloud",{"title":6096,"category":5913,"description":5913,"icon":6097,"path":6098,"stem":6099,"children":6100,"page":5915},"Components","i-lucide-box","\u002Fdocs\u002Fcomponents","docs\u002F5.components",[6101,6107,6113],{"title":6102,"path":6103,"stem":6104,"category":6105,"description":6106},"DatePicker","\u002Fdocs\u002Fcomponents\u002Fdate-picker","docs\u002F5.components\u002Fdate-picker","advanced","基于国际化标准的日期选择器组件。",{"title":6108,"path":6109,"stem":6110,"category":6111,"description":6112},"MessageBox","\u002Fdocs\u002Fcomponents\u002Fmessage-box","docs\u002F5.components\u002Fmessage-box","feedback","模态消息对话框，提供声明式与编程式两种调用方式。",{"title":6114,"path":6115,"stem":6116,"category":6105,"description":6117,"badge":6118},"Tree","\u002Fdocs\u002Fcomponents\u002Ftree","docs\u002F5.components\u002Ftree","基于 Nuxt UI Tree 的树形组件，补齐搜索、懒加载、工具栏、复选框与父子策略。","v1.4.2",{"data":6120,"body":6121},{},{"type":6,"children":6122},[6123],{"type":9,"tag":10,"props":6124,"children":6125},{},[6126,6128],{"type":14,"value":6127},"Copyright © 2025 - 2026 YiXuan - ",{"type":9,"tag":37,"props":6129,"children":6132},{"className":6130},[6131],"text-highlighted",[6133],{"type":14,"value":6134},"MIT License",[6136,6137],{"title":6045,"path":6046,"stem":6047,"description":6048,"children":-1},{"title":6051,"path":6052,"stem":6053,"description":6054,"children":-1},1795763784358,"237a5cff-9aba-4421-be98-81a239f14b62"]