格式化

This commit is contained in:
2023-05-05 09:59:19 +08:00
parent 27f75e2ced
commit f87a5bb70a
4 changed files with 26 additions and 24 deletions

View File

@@ -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";
};

View File

@@ -38,7 +38,7 @@ export interface TreeProps {
showLine?: boolean;
showCheckbox?: boolean;
replaceFields?: ReplaceFieldsOptions;
hideicon?:boolean;
hideicon?: boolean;
}
interface TreeEmits {