树控件样式微调

This commit is contained in:
GYYM
2024-11-15 09:34:43 +08:00
parent 815d34f817
commit 563285eb77
4 changed files with 35 additions and 13 deletions

View File

@@ -64,17 +64,21 @@ const getTreeData = (val: any) => {
treeRef.value.setCurrentKey(defaultChecked.value);
};
const getCurrentIndex = (val: number) => {
currentIndex.value = val;
};
const filterText = ref("");
const treeRef = ref();
const currentIndex = ref(0);
const timer = setInterval(() => {
currentIndex.value++;
if (currentIndex.value > 14)
currentIndex.value = 0;
// console.log(currentIndex.value);
// const timer = setInterval(() => {
// currentIndex.value++;
// if (currentIndex.value > 14)
// currentIndex.value = 0;
// // console.log(currentIndex.value);
}, 2000);
// }, 2000);
watch(
@@ -103,7 +107,7 @@ const detail = (e: any) => {
onMounted(() => {
console.log();
});
defineExpose({ getTreeData });
defineExpose({ getTreeData,getCurrentIndex });
</script>
<style lang="scss" scoped>
.plan_tree {