mirror of
https://github.com/directus/directus.git
synced 2026-01-23 18:38:13 -05:00
Fix editing raw value for object fields
This commit is contained in:
@@ -135,7 +135,15 @@ export default defineComponent({
|
||||
|
||||
const rawValue = computed({
|
||||
get() {
|
||||
return _value.value;
|
||||
switch (type.value) {
|
||||
case 'object':
|
||||
return JSON.stringify(_value.value, null, '\t');
|
||||
case 'string':
|
||||
case 'number':
|
||||
case 'boolean':
|
||||
default:
|
||||
return _value.value;
|
||||
}
|
||||
},
|
||||
set(newRawValue: string) {
|
||||
switch (type.value) {
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
font-size: inherit;
|
||||
font-family: inherit;
|
||||
line-height: inherit;
|
||||
tab-size: 2;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
@@ -120,9 +121,9 @@ dd {
|
||||
}
|
||||
|
||||
dt {
|
||||
flex-shrink: 0;
|
||||
margin-right: 8px;
|
||||
font-weight: 600;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
dd {
|
||||
|
||||
Reference in New Issue
Block a user