|
|
|
@ -19,7 +19,7 @@ |
|
|
|
</TransitionGroup> |
|
|
|
<div class="btn disabled" @click="confirm"> |
|
|
|
<slot></slot> |
|
|
|
<span>{{ btnText }}</span> |
|
|
|
<span>查找车辆</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
@ -41,7 +41,6 @@ const props = withDefaults(defineProps<Props>(), { |
|
|
|
const PLATE_LENGTH = 8 //车牌长度 |
|
|
|
|
|
|
|
const renderInputLength = computed(() => (props.searchMethod === '车牌' ? PLATE_LENGTH : props.spaceLength)) |
|
|
|
const btnText = computed(() => (props.searchMethod === '车牌' ? '寻车缴费' : '寻车导航')) |
|
|
|
|
|
|
|
const emits = defineEmits(['handle-energy', 'confirm']) |
|
|
|
const isEnergy = ref(false) |
|
|
|
|