Compare commits
No commits in common. "0d48b923f7853eaa65f260d60697be956fd62e44" and "5799a3680ba7751c3700bff7c0e8f33eca58b195" have entirely different histories.
0d48b923f7
...
5799a3680b
|
|
@ -69,7 +69,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ref, defineProps, defineEmits, computed, onMounted, watch } from "vue";
|
import { ref, defineProps, defineEmits, computed, onMounted } from "vue";
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
multiple: { type: Boolean, default: false },
|
multiple: { type: Boolean, default: false },
|
||||||
|
|
@ -103,25 +103,8 @@ onMounted(() => {
|
||||||
tableData.value = props.options;
|
tableData.value = props.options;
|
||||||
hidePagination.value = true;
|
hidePagination.value = true;
|
||||||
}
|
}
|
||||||
watch(
|
|
||||||
() => props.label,
|
|
||||||
async (newVal) => {
|
|
||||||
init()
|
|
||||||
},
|
|
||||||
{ deep: true, immediate: true }
|
|
||||||
);
|
|
||||||
watch(
|
|
||||||
() => props.modelValue,
|
|
||||||
async (newVal) => {
|
|
||||||
init()
|
|
||||||
},
|
|
||||||
{ deep: true, immediate: true }
|
|
||||||
)
|
|
||||||
|
|
||||||
});
|
if (props.label) {
|
||||||
|
|
||||||
const init = () => {
|
|
||||||
if (props.label) {
|
|
||||||
selectLabel.value = props.label;
|
selectLabel.value = props.label;
|
||||||
} else {
|
} else {
|
||||||
if (props.multiple) {
|
if (props.multiple) {
|
||||||
|
|
@ -150,7 +133,7 @@ const init = () => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
});
|
||||||
|
|
||||||
const isFixOptions = ref(false);
|
const isFixOptions = ref(false);
|
||||||
const tableData = ref(null);
|
const tableData = ref(null);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue