|
@@ -2,7 +2,7 @@
|
|
|
<template>
|
|
|
<div class="d-flex" style="width: 100%;">
|
|
|
<div style="line-height: 40px;">
|
|
|
- <span style="color: #777;">{{ item?.label }}</span>
|
|
|
+ <span class="ml-3" style="color: #777;">{{ item?.label }}</span>
|
|
|
<span v-if="prop.required" class="mr-1" style="color: var(--v-error-base);"> *</span>
|
|
|
</div>
|
|
|
<div style="flex: 1;">
|
|
@@ -44,7 +44,6 @@ const prop = {
|
|
|
multiple: item.multiple || false,
|
|
|
checkStrictly: item.checkStrictly || false,
|
|
|
}
|
|
|
-console.log('1', prop)
|
|
|
|
|
|
const value = ref()
|
|
|
watch(
|
|
@@ -58,7 +57,6 @@ watch(
|
|
|
|
|
|
const handleChange = (val) => {
|
|
|
value.value = item.multiple ? val : Array.isArray(val) && val?.length ? val[0] : null
|
|
|
- console.log(1, 'handleChange', value.value)
|
|
|
if (prop.required && value.value !== '' && value.value !== null && value.value !== undefined) requiredTxt.value = ''
|
|
|
|
|
|
emit('update:modelValue', value.value)
|