Compare commits

..

No commits in common. "0d48b923f7853eaa65f260d60697be956fd62e44" and "5799a3680ba7751c3700bff7c0e8f33eca58b195" have entirely different histories.

1 changed files with 3 additions and 20 deletions

View File

@ -69,7 +69,7 @@
</template>
<script setup>
import { ref, defineProps, defineEmits, computed, onMounted, watch } from "vue";
import { ref, defineProps, defineEmits, computed, onMounted } from "vue";
const props = defineProps({
multiple: { type: Boolean, default: false },
@ -103,25 +103,8 @@ onMounted(() => {
tableData.value = props.options;
hidePagination.value = true;
}
watch(
() => props.label,
async (newVal) => {
init()
},
{ deep: true, immediate: true }
);
watch(
() => props.modelValue,
async (newVal) => {
init()
},
{ deep: true, immediate: true }
)
});
const init = () => {
if (props.label) {
if (props.label) {
selectLabel.value = props.label;
} else {
if (props.multiple) {
@ -150,7 +133,7 @@ const init = () => {
}
}
}
}
});
const isFixOptions = ref(false);
const tableData = ref(null);