|
@@ -5,6 +5,7 @@
|
|
|
placeholder="分类名称"
|
|
|
v-model="searchTxt"
|
|
|
@Enter="changeSearchTxt"
|
|
|
+ @Blur="changeSearchTxt"
|
|
|
>
|
|
|
<template #prefixIcon><SearchIcon /></template>
|
|
|
</t-input>
|
|
@@ -53,6 +54,11 @@ const props = defineProps({
|
|
|
type: Boolean,
|
|
|
default: false,
|
|
|
},
|
|
|
+ currentStep: { // 当前步骤
|
|
|
+ type: Number,
|
|
|
+ default: 1,
|
|
|
+ },
|
|
|
+
|
|
|
});
|
|
|
// emit事件
|
|
|
const emit = defineEmits(['close', 'setPermission', 'getSearch']);
|
|
@@ -86,6 +92,15 @@ watch(
|
|
|
},
|
|
|
{ immediate: true }
|
|
|
);
|
|
|
+watch(
|
|
|
+ () => props.currentStep,
|
|
|
+ (newValue) => {
|
|
|
+ if (newValue === 3) {
|
|
|
+ emit('getSearch', searchTxt.value);
|
|
|
+ }
|
|
|
+ },
|
|
|
+ { immediate: true }
|
|
|
+);
|
|
|
|
|
|
watch(
|
|
|
() => props.showSetPermission,
|