Skip to content

Commit

Permalink
feat: 添加启用发现开关
Browse files Browse the repository at this point in the history
  • Loading branch information
aooiuu committed Mar 28, 2024
1 parent 5a8613f commit 0288baf
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"displayName": "any-reader",
"description": "any-reader for vscode",
"icon": "resources/icon.png",
"version": "0.4.0",
"version": "0.4.1",
"preview": true,
"publisher": "aooiu",
"qna": "https://github.com/aooiuu/any-reader/issues",
Expand Down
2 changes: 1 addition & 1 deletion packages/web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "any-reader-web",
"version": "0.0.0",
"version": "0.4.1",
"private": true,
"type": "module",
"scripts": {
Expand Down
15 changes: 15 additions & 0 deletions packages/web/src/pages/rules/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,21 @@ const tableColumns = ref([
/>
)
},
{
title: '启用发现',
width: 100,
align: 'center',
render: ({ record }) => (
<a-switch
model-value={record.enableDiscover}
onUpdate:model-value={(v) =>
setRule(record, {
enableDiscover: v
})
}
/>
)
},
{
title: '操作',
width: 100,
Expand Down

0 comments on commit 0288baf

Please sign in to comment.