1.新增批量导入 2.新增财务报表

This commit is contained in:
gyq
2026-02-04 14:51:29 +08:00
parent a5b11cf4f4
commit 76af0f5a83
20 changed files with 1517 additions and 268 deletions

View File

@@ -12,7 +12,7 @@
</template>
<script setup>
import { ref, onMounted, nextTick } from 'vue'
import { ref, onMounted, nextTick, watch } from 'vue'
const props = defineProps({
// {label: '设置',value: 1}
@@ -29,10 +29,8 @@ const modelValue = defineModel('modelValue', {
required: true
})
// 改变索引
function changeHandle(index) {
modelValue.value = index
// 更新active_wrap位置
function updateActivePosition(index) {
let left = 0
itemsWidth.value.forEach((val, i) => {
if (i < index) {
@@ -40,7 +38,12 @@ function changeHandle(index) {
}
})
leftValue.value = left + gap.value * index
}
// 改变索引
function changeHandle(index) {
modelValue.value = index
updateActivePosition(index)
emits('change', index)
}
@@ -57,10 +60,14 @@ onMounted(() => {
console.log('itemRefs===', itemRefs.value);
console.log('itemsWidth===', itemsWidth.value);
changeHandle(modelValue.value)
updateActivePosition(modelValue.value)
})
})
// 监听modelValue变化更新位置
watch(modelValue, (newVal) => {
updateActivePosition(newVal)
})
</script>
<style scoped lang="scss">