fix: entry editor support byte array
This commit is contained in:
parent
400a908cf9
commit
53e8c26380
|
@ -23,7 +23,7 @@ const props = defineProps({
|
||||||
type: [String, Number],
|
type: [String, Number],
|
||||||
},
|
},
|
||||||
value: {
|
value: {
|
||||||
type: String,
|
type: [String, Array],
|
||||||
},
|
},
|
||||||
fieldLabel: {
|
fieldLabel: {
|
||||||
type: String,
|
type: String,
|
||||||
|
|
|
@ -15,7 +15,7 @@ import IconButton from '@/components/common/IconButton.vue'
|
||||||
import ContentEntryEditor from '@/components/content_value/ContentEntryEditor.vue'
|
import ContentEntryEditor from '@/components/content_value/ContentEntryEditor.vue'
|
||||||
import Edit from '@/components/icons/Edit.vue'
|
import Edit from '@/components/icons/Edit.vue'
|
||||||
import FormatSelector from '@/components/content_value/FormatSelector.vue'
|
import FormatSelector from '@/components/content_value/FormatSelector.vue'
|
||||||
import { decodeRedisKey } from '@/utils/key_convert.js'
|
import { decodeRedisKey, nativeRedisKey } from '@/utils/key_convert.js'
|
||||||
import ContentSearchInput from '@/components/content_value/ContentSearchInput.vue'
|
import ContentSearchInput from '@/components/content_value/ContentSearchInput.vue'
|
||||||
import { formatBytes } from '@/utils/byte_convert.js'
|
import { formatBytes } from '@/utils/byte_convert.js'
|
||||||
import copy from 'copy-text-to-clipboard'
|
import copy from 'copy-text-to-clipboard'
|
||||||
|
@ -140,7 +140,7 @@ const valueColumn = computed(() => ({
|
||||||
// return !!~row.v.indexOf(value.toString())
|
// return !!~row.v.indexOf(value.toString())
|
||||||
// },
|
// },
|
||||||
render: (row) => {
|
render: (row) => {
|
||||||
const val = row.dv || decodeRedisKey(row.v)
|
const val = row.dv || nativeRedisKey(row.v)
|
||||||
if (isCode.value) {
|
if (isCode.value) {
|
||||||
return h('pre', { class: 'pre-wrap' }, val)
|
return h('pre', { class: 'pre-wrap' }, val)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue