diff --git a/src/components/pivottable-ui/VAggregatorCell.vue b/src/components/pivottable-ui/VAggregatorCell.vue index 61f4703..dd29660 100644 --- a/src/components/pivottable-ui/VAggregatorCell.vue +++ b/src/components/pivottable-ui/VAggregatorCell.vue @@ -37,7 +37,7 @@ :key="i" :options="valsOptions" :value="vals[i]" - @update:value="(val, i) => updateVals(val, i)" + @update:value="(val) => updateVals(val, i)" > diff --git a/src/components/pivottable-ui/VDropdown.vue b/src/components/pivottable-ui/VDropdown.vue index aa66ea0..baecc60 100644 --- a/src/components/pivottable-ui/VDropdown.vue +++ b/src/components/pivottable-ui/VDropdown.vue @@ -26,11 +26,9 @@ const props = defineProps({ default: '' } }) -const valueModel = ref(props.value) +const valueModel = ref(props.value || props.options[0]) const emit = defineEmits(['update:value']) watch(valueModel, (newVal) => { emit('update:value', newVal) -}) +}, { immediate: true }) - -// v-model 구현 diff --git a/src/components/pivottable-ui/VFilterBox.vue b/src/components/pivottable-ui/VFilterBox.vue index 9746d88..2ca6e02 100644 --- a/src/components/pivottable-ui/VFilterBox.vue +++ b/src/components/pivottable-ui/VFilterBox.vue @@ -90,7 +90,6 @@ const props = defineProps({ } }) const { localeStrings, sorter, menuLimit } = useProvideFilterBox() -console.log(localeStrings) const filterBoxValuesList = Object.keys(props.filterBoxValues) const filterText = ref('') const showMenu = ref(filterBoxValuesList.length < menuLimit) @@ -117,6 +116,7 @@ const addValuesToFilter = (values) => { emit('update:unselectedFilterValues', { key: props.filterBoxKey, value: filterValues }) } const removeValuesFromFilter = (values) => { + console.log(values) const filterValues = values.reduce((r, v) => { if (r[v]) { delete r[v]