树控件样式微调
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user