-
Notifications
You must be signed in to change notification settings - Fork 458
Feat/model driven:The model driver is optimized, and built-in interfaces for adding, deleting, modifying, and querying are added. #1756
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from all commits
a725ac3
55e464f
967a971
c69689a
372ee1a
cb95ffb
aca95bb
5081684
96f221a
2bfbb1c
1bf67be
1c11943
337516d
52d35f5
783ce1c
2ff4221
6b3c6d6
1522e6c
d523d6d
0d877bc
c55c05a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -86,6 +86,14 @@ | |
| <div v-else class="readonly-cell">{{ getFieldTypeLabel(row.type) }}</div> | ||
| </template> | ||
| </tiny-grid-column> | ||
| <tiny-grid-column field="defaultValue" title="默认值" width="120"> | ||
| <template #default="{ row }"> | ||
| <div v-if="row.isEditing" class="editing-cell"> | ||
| <tiny-input v-model="row.defaultValue" placeholder="请输入默认值" size="small" /> | ||
| </div> | ||
| <div v-else class="readonly-cell">{{ row.defaultValue }}</div> | ||
| </template> | ||
|
Comment on lines
+89
to
+95
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Guard ModelRef defaultValue edits to avoid invalid IDs Line 91-95: the new defaultValue column uses a free‑text input for all types. For 🛠️ Suggested adjustment- <div v-if="row.isEditing" class="editing-cell">
- <tiny-input v-model="row.defaultValue" placeholder="请输入默认值" size="small" />
- </div>
- <div v-else class="readonly-cell">{{ row.defaultValue }}</div>
+ <div v-if="row.isEditing" class="editing-cell">
+ <tiny-input
+ v-model="row.defaultValue"
+ placeholder="请输入默认值"
+ size="small"
+ :disabled="row.type === 'ModelRef'"
+ />
+ </div>
+ <div v-else class="readonly-cell">
+ {{ row.type === 'ModelRef' ? getModelName(row.defaultValue) : row.defaultValue }}
+ </div>🤖 Prompt for AI Agents |
||
| </tiny-grid-column> | ||
| <tiny-grid-column field="required" title="必填" width="60"> | ||
| <template #default="{ row }"> | ||
| <div v-if="row.isEditing" class="editing-cell"> | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reset selected function and URL on model change
Line 175‑178:
getModelnow only resets the method. If a previous function was selected,selectedFunctionandmethodBasicData.urlcan stay populated, showing stale data for a different model. Clear them when the model changes.🛠️ Suggested adjustment
const getModel = (data) => { selectedModel.value = data methodBasicData.method = 'post' + methodBasicData.url = '' + selectedFunction.value = null }📝 Committable suggestion
🤖 Prompt for AI Agents