diff --git a/src/utils/api.ts b/src/utils/api.ts index 3300181..1168d68 100644 --- a/src/utils/api.ts +++ b/src/utils/api.ts @@ -76,7 +76,11 @@ export const useDeviceApi = (initOrigin?: string) => { }, }); }, - execSelector: async (data: { selector: string; action?: string }) => { + execSelector: async (data: { + selector: string; + action?: string; + quickFind?: boolean; + }) => { return jsonRpc<{ message: string; action: string; result: boolean }>( `execSelector`, { diff --git a/src/views/DevicePage.vue b/src/views/DevicePage.vue index e330907..a1bc418 100644 --- a/src/views/DevicePage.vue +++ b/src/views/DevicePage.vue @@ -23,6 +23,8 @@ import { NModal, NRadioGroup, NRadio, + NCheckboxGroup, + NCheckbox, } from 'naive-ui'; import { SortState } from 'naive-ui/es/data-table/src/interface'; import pLimit from 'p-limit'; @@ -208,6 +210,7 @@ const clickAction = shallowReactive({ selector: ``, selectorValid: false, action: `click`, + quickFind: false, }); const checkSelectorValid = useDebounceFn(() => { clickAction.selectorValid = checkSelector(clickAction.selector); @@ -276,6 +279,17 @@ const execSelector = useTask(async () => { placeholder="请输入合法的选择器" />
+