Skip to content

Commit 1581743

Browse files
committed
feat: check fastQuery acceptText (#45)
close #45
1 parent 622310c commit 1581743

File tree

3 files changed

+9
-25
lines changed

3 files changed

+9
-25
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"@antv/g6": "5.0.43",
2626
"@eslint/js": "9.21.0",
2727
"@gkd-kit/api": "0.6.0",
28-
"@gkd-kit/selector": "0.5.21",
28+
"@gkd-kit/selector": "0.5.22",
2929
"@gkd-kit/wasm_matches": "0.0.1",
3030
"@tsconfig/node20": "20.1.4",
3131
"@types/file-saver": "2.0.7",

pnpm-lock.yaml

Lines changed: 5 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/views/snapshot/SearchCard.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,17 +164,17 @@ const generateRules = errorTry(async (result: SelectorSearchResult) => {
164164
(t.quickFind ?? t.idQf) &&
165165
t.attr.id &&
166166
s.fastQueryList.some(
167-
(v) => v instanceof FastQuery.Id && v.value === t.attr.id,
167+
(v) => v instanceof FastQuery.Id && v.acceptText(t.attr.id!),
168168
),
169169
(t.quickFind ?? t.idQf) &&
170170
t.attr.vid &&
171171
s.fastQueryList.some(
172-
(v) => v instanceof FastQuery.Vid && v.value === t.attr.vid,
172+
(v) => v instanceof FastQuery.Vid && v.acceptText(t.attr.vid!),
173173
),
174174
(t.quickFind ?? t.textQf) &&
175175
t.attr.text &&
176176
s.fastQueryList.some(
177-
(v) => v instanceof FastQuery.Text && v.value === t.attr.text,
177+
(v) => v instanceof FastQuery.Text && v.acceptText(t.attr.text!),
178178
),
179179
].some(Boolean);
180180
const rule = {

0 commit comments

Comments
 (0)