feat: agent resources upgrade
This commit is contained in:
1 parent
659b7497fb
commit
ee323fe660
6 files changed
+170
-71
No files matched your search
@@ -1,5 +1,6 @@
|
||||
<script setup>
|
||||
import { ref, computed, watch } from 'vue'
|
||||
import * as ui from '../ui'
|
||||
|
||||
const props = defineProps({
|
||||
/** JSON schema object describing the input structure */
|
||||
@@ -55,6 +56,17 @@
|
||||
};
|
||||
}
|
||||
|
||||
async function addField(field) {
|
||||
let key = await ui.input("Enter new property name");
|
||||
if (!key) return;
|
||||
|
||||
// Never mutate the field object in place.
|
||||
currentValue.value = {
|
||||
...(currentValue.value || {}),
|
||||
[key]: null
|
||||
};
|
||||
}
|
||||
|
||||
const computedFields = computed(() => {
|
||||
let fields = [];
|
||||
let skip = {};
|
||||
|
||||
Reference in new issue
Block a user