This repository has been archived by the owner on Feb 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
200 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<script setup lang="ts"> | ||
import { useVModel } from '@vueuse/core' | ||
import { NInput } from 'naive-ui' | ||
import { wrapProp } from '@/misc' | ||
import type { Config } from '@/types' | ||
import ClearButton from '@/components/atomic/ClearButton.vue' | ||
import FormLayout from '@/layout/FormLayout.vue' | ||
const props = defineProps<{ | ||
value: Config | ||
}>() | ||
const emits = defineEmits<{ | ||
'update:value': [Config] | ||
}>() | ||
const config = useVModel(props, 'value', emits, { | ||
passive: true, | ||
deep: true | ||
}) | ||
const fw = wrapProp(config, 'maaframework') | ||
const adb = wrapProp(fw, 'adb') | ||
const address = wrapProp(fw, 'address') | ||
console.log(adb) | ||
</script> | ||
|
||
<template> | ||
<div class="flex flex-col gap-2"> | ||
<span class="font-bold">下列配置需要重启才能生效</span> | ||
<FormLayout> | ||
<ClearButton propkey="adb" v-model:value="adb"> ADB路径 </ClearButton> | ||
<NInput v-model:value="adb" placeholder="adb"></NInput> | ||
<ClearButton propkey="address" v-model:value="address"> | ||
连接地址 | ||
</ClearButton> | ||
<NInput v-model:value="address" placeholder="127.0.0.1:5555"></NInput> | ||
</FormLayout> | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { ref } from 'vue' | ||
|
||
import type { Config } from '@/types' | ||
|
||
export const config = ref<Config | null>(null) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.