chore(tree): rename tree props accordion to collapse-transition
				
					
				
			This commit is contained in:
		
							parent
							
								
									86d8ed4ec9
								
							
						
					
					
						commit
						9b332cdfb4
					
				| @ -18,7 +18,7 @@ | |||||||
|     :onlyIconControl="iconCtrl" |     :onlyIconControl="iconCtrl" | ||||||
|     :showLine="showLine" |     :showLine="showLine" | ||||||
|     :showCheckbox="showCheckbox" |     :showCheckbox="showCheckbox" | ||||||
|     accordion |     collapseTransition | ||||||
|     v-model:checkedKeys="checkedKeys" |     v-model:checkedKeys="checkedKeys" | ||||||
|     @node-click="handleClick" |     @node-click="handleClick" | ||||||
|     :disabled="disabled" |     :disabled="disabled" | ||||||
| @ -246,14 +246,14 @@ function handleClick(node) { | |||||||
| 
 | 
 | ||||||
| ::: table | ::: table | ||||||
| 
 | 
 | ||||||
| | Name     | Description | Accepted Values | | | Name                | Description | Accepted Values | | ||||||
| | -------- |-------------| --------------- | | |---------------------|-------------| --------------- | | ||||||
| | id       | 唯一值         | -               | | | id                  | 唯一值         | -               | | ||||||
| | title    | 节点名称        | -               | | | title               | 节点名称        | -               | | ||||||
| | children | 子节点         | []              | | | children            | 子节点         | []              | | ||||||
| | disabled | 该节点是否禁用     | false           | | | disabled            | 该节点是否禁用     | false           | | ||||||
| | spread   | 该节点是否展开     | false           | | | spread              | 该节点是否展开     | false           | | ||||||
| | accordion   | 是否开启展示收起动画  | false           | | | collapse-transition | 是否开启展示收起动画  | false           | | ||||||
| 
 | 
 | ||||||
| ::: | ::: | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -33,7 +33,7 @@ interface TreeNodeProps { | |||||||
|   nodeList: TreeData[]; |   nodeList: TreeData[]; | ||||||
|   showCheckbox: boolean; |   showCheckbox: boolean; | ||||||
|   showLine: boolean; |   showLine: boolean; | ||||||
|   accordion: boolean; |   collapseTransition: boolean; | ||||||
|   onlyIconControl: boolean; |   onlyIconControl: boolean; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| @ -136,7 +136,7 @@ function handleTitleClick(node: TreeData) { | |||||||
|         </span> |         </span> | ||||||
|       </div> |       </div> | ||||||
|     </div> |     </div> | ||||||
|     <LayTransition :enable="accordion"> |     <LayTransition :enable="collapseTransition"> | ||||||
|       <div |       <div | ||||||
|         v-if="node.isLeaf.value" |         v-if="node.isLeaf.value" | ||||||
|         class="layui-tree-pack layui-tree-showLine" |         class="layui-tree-pack layui-tree-showLine" | ||||||
| @ -146,7 +146,7 @@ function handleTitleClick(node: TreeData) { | |||||||
|           :node-list="node.children" |           :node-list="node.children" | ||||||
|           :show-checkbox="showCheckbox" |           :show-checkbox="showCheckbox" | ||||||
|           :show-line="showLine" |           :show-line="showLine" | ||||||
|           :accordion="accordion" |           :collapse-transition="collapseTransition" | ||||||
|           :tree="tree" |           :tree="tree" | ||||||
|           :only-icon-control="onlyIconControl" |           :only-icon-control="onlyIconControl" | ||||||
|           @node-click="recursiveNodeClick" |           @node-click="recursiveNodeClick" | ||||||
|  | |||||||
| @ -28,7 +28,7 @@ interface TreeProps { | |||||||
|   data: OriginalTreeData; |   data: OriginalTreeData; | ||||||
|   showCheckbox?: boolean; |   showCheckbox?: boolean; | ||||||
|   edit?: EditType; |   edit?: EditType; | ||||||
|   accordion?: boolean; |   collapseTransition?: boolean; | ||||||
|   onlyIconControl?: boolean; |   onlyIconControl?: boolean; | ||||||
|   showLine?: boolean; |   showLine?: boolean; | ||||||
|   disabled?: boolean; |   disabled?: boolean; | ||||||
| @ -48,7 +48,7 @@ interface TreeEmits { | |||||||
| const props = withDefaults(defineProps<TreeProps>(), { | const props = withDefaults(defineProps<TreeProps>(), { | ||||||
|   showCheckbox: false, |   showCheckbox: false, | ||||||
|   edit: false, |   edit: false, | ||||||
|   accordion: false, |   collapseTransition: false, | ||||||
|   onlyIconControl: false, |   onlyIconControl: false, | ||||||
|   disabled: false, |   disabled: false, | ||||||
|   showLine: true, |   showLine: true, | ||||||
| @ -85,7 +85,7 @@ function handleClick(node: TreeData) { | |||||||
|       :node-list="nodeList" |       :node-list="nodeList" | ||||||
|       :show-checkbox="showCheckbox" |       :show-checkbox="showCheckbox" | ||||||
|       :show-line="showLine" |       :show-line="showLine" | ||||||
|       :accordion="accordion" |       :collapse-transition="collapseTransition" | ||||||
|       :only-icon-control="onlyIconControl" |       :only-icon-control="onlyIconControl" | ||||||
|       @node-click="handleClick" |       @node-click="handleClick" | ||||||
|     /> |     /> | ||||||
|  | |||||||
| @ -17,7 +17,7 @@ export interface TreeProps { | |||||||
|   data: OriginalTreeData; |   data: OriginalTreeData; | ||||||
|   showCheckbox?: boolean; |   showCheckbox?: boolean; | ||||||
|   edit?: EditType; |   edit?: EditType; | ||||||
|   accordion?: boolean; |   collapseTransition?: boolean; | ||||||
|   onlyIconControl?: boolean; |   onlyIconControl?: boolean; | ||||||
|   showLine?: boolean; |   showLine?: boolean; | ||||||
|   replaceFields?: { |   replaceFields?: { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user