|
@@ -37,7 +37,7 @@
|
|
|
import { onMounted, ref, watch } from 'vue';
|
|
import { onMounted, ref, watch } from 'vue';
|
|
|
import { ElMessageBox, FormInstance } from 'element-plus';
|
|
import { ElMessageBox, FormInstance } from 'element-plus';
|
|
|
import DrawerCommonVue, { FormModelCommon } from './DrawerCommon.vue';
|
|
import DrawerCommonVue, { FormModelCommon } from './DrawerCommon.vue';
|
|
|
-
|
|
|
|
|
|
|
+ import { useKeyPress } from 'vue-hooks-plus';
|
|
|
export type CreateType = '添加模板' | '修改模板';
|
|
export type CreateType = '添加模板' | '修改模板';
|
|
|
const props = defineProps<{
|
|
const props = defineProps<{
|
|
|
type: string;
|
|
type: string;
|
|
@@ -65,7 +65,9 @@
|
|
|
size: number;
|
|
size: number;
|
|
|
page: number;
|
|
page: number;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+ useKeyPress('enter', () => {
|
|
|
|
|
+ findDataByName(ruleFormRef.value);
|
|
|
|
|
+ });
|
|
|
const titleDrawer = ref(false);
|
|
const titleDrawer = ref(false);
|
|
|
watch(
|
|
watch(
|
|
|
() => props.drawer,
|
|
() => props.drawer,
|