格式化
This commit is contained in:
@@ -70,8 +70,8 @@ const nodeIconType = (node: TreeData): string => {
|
||||
if (node.children.length !== 0) {
|
||||
return !node.isLeaf ? "layui-icon-addition" : "layui-icon-subtraction";
|
||||
}
|
||||
if(props.hideicon){
|
||||
return ""
|
||||
if (props.hideicon) {
|
||||
return "";
|
||||
}
|
||||
return "layui-icon-file";
|
||||
};
|
||||
|
||||
@@ -38,7 +38,7 @@ export interface TreeProps {
|
||||
showLine?: boolean;
|
||||
showCheckbox?: boolean;
|
||||
replaceFields?: ReplaceFieldsOptions;
|
||||
hideicon?:boolean;
|
||||
hideicon?: boolean;
|
||||
}
|
||||
|
||||
interface TreeEmits {
|
||||
|
||||
Reference in New Issue
Block a user