parent
d472836d5f
commit
70354c14ec
|
@ -1,5 +1,5 @@
|
||||||
<script setup>
|
<script setup>
|
||||||
import { computed, h, nextTick, reactive, ref } from 'vue'
|
import { computed, h, reactive, ref } from 'vue'
|
||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
import AddLink from '@/components/icons/AddLink.vue'
|
import AddLink from '@/components/icons/AddLink.vue'
|
||||||
import { NButton, NIcon, useThemeVars } from 'naive-ui'
|
import { NButton, NIcon, useThemeVars } from 'naive-ui'
|
||||||
|
@ -89,7 +89,7 @@ const fieldColumn = computed(() => ({
|
||||||
},
|
},
|
||||||
scrollable: true,
|
scrollable: true,
|
||||||
},
|
},
|
||||||
lineClamp: 10,
|
lineClamp: 1,
|
||||||
},
|
},
|
||||||
filterOptionValue: fieldFilterOption.value,
|
filterOptionValue: fieldFilterOption.value,
|
||||||
className: inEdit.value ? 'clickable' : '',
|
className: inEdit.value ? 'clickable' : '',
|
||||||
|
@ -121,6 +121,7 @@ const valueColumn = computed(() => ({
|
||||||
},
|
},
|
||||||
scrollable: true,
|
scrollable: true,
|
||||||
},
|
},
|
||||||
|
lineClamp: 1,
|
||||||
},
|
},
|
||||||
// filterOptionValue: valueFilterOption.value,
|
// filterOptionValue: valueFilterOption.value,
|
||||||
className: inEdit.value ? 'clickable' : '',
|
className: inEdit.value ? 'clickable' : '',
|
||||||
|
@ -185,9 +186,9 @@ const resetEdit = () => {
|
||||||
currentEditRow.no = 0
|
currentEditRow.no = 0
|
||||||
currentEditRow.key = ''
|
currentEditRow.key = ''
|
||||||
currentEditRow.value = null
|
currentEditRow.value = null
|
||||||
if (currentEditRow.format !== props.format || currentEditRow.decode !== props.decode) {
|
// if (currentEditRow.format !== props.format || currentEditRow.decode !== props.decode) {
|
||||||
nextTick(() => onFormatChanged(currentEditRow.decode, currentEditRow.format))
|
// nextTick(() => onFormatChanged(currentEditRow.decode, currentEditRow.format))
|
||||||
}
|
// }
|
||||||
// currentEditRow.format = formatTypes.RAW
|
// currentEditRow.format = formatTypes.RAW
|
||||||
// currentEditRow.decode = decodeTypes.NONE
|
// currentEditRow.decode = decodeTypes.NONE
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<script setup>
|
<script setup>
|
||||||
import { computed, h, nextTick, reactive, ref } from 'vue'
|
import { computed, h, reactive, ref } from 'vue'
|
||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
import AddLink from '@/components/icons/AddLink.vue'
|
import AddLink from '@/components/icons/AddLink.vue'
|
||||||
import { NButton, NIcon, useThemeVars } from 'naive-ui'
|
import { NButton, NIcon, useThemeVars } from 'naive-ui'
|
||||||
|
@ -96,6 +96,7 @@ const valueColumn = computed(() => ({
|
||||||
},
|
},
|
||||||
scrollable: true,
|
scrollable: true,
|
||||||
},
|
},
|
||||||
|
lineClamp: 1,
|
||||||
},
|
},
|
||||||
filterOptionValue: valueFilterOption.value,
|
filterOptionValue: valueFilterOption.value,
|
||||||
className: inEdit.value ? 'clickable' : '',
|
className: inEdit.value ? 'clickable' : '',
|
||||||
|
@ -162,9 +163,9 @@ const saveEdit = async (pos, value, decode, format) => {
|
||||||
const resetEdit = () => {
|
const resetEdit = () => {
|
||||||
currentEditRow.no = 0
|
currentEditRow.no = 0
|
||||||
currentEditRow.value = null
|
currentEditRow.value = null
|
||||||
if (currentEditRow.format !== props.format || currentEditRow.decode !== props.decode) {
|
// if (currentEditRow.format !== props.format || currentEditRow.decode !== props.decode) {
|
||||||
nextTick(() => onFormatChanged(currentEditRow.decode, currentEditRow.format))
|
// nextTick(() => onFormatChanged(currentEditRow.decode, currentEditRow.format))
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
const actionColumn = {
|
const actionColumn = {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<script setup>
|
<script setup>
|
||||||
import { computed, h, nextTick, reactive, ref } from 'vue'
|
import { computed, h, reactive, ref } from 'vue'
|
||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
import AddLink from '@/components/icons/AddLink.vue'
|
import AddLink from '@/components/icons/AddLink.vue'
|
||||||
import { NButton, NIcon, useThemeVars } from 'naive-ui'
|
import { NButton, NIcon, useThemeVars } from 'naive-ui'
|
||||||
|
@ -95,6 +95,7 @@ const valueColumn = computed(() => ({
|
||||||
},
|
},
|
||||||
scrollable: true,
|
scrollable: true,
|
||||||
},
|
},
|
||||||
|
lineClamp: 1,
|
||||||
},
|
},
|
||||||
filterOptionValue: valueFilterOption.value,
|
filterOptionValue: valueFilterOption.value,
|
||||||
className: inEdit.value ? 'clickable' : '',
|
className: inEdit.value ? 'clickable' : '',
|
||||||
|
@ -159,9 +160,9 @@ const saveEdit = async (pos, value, decode, format) => {
|
||||||
const resetEdit = () => {
|
const resetEdit = () => {
|
||||||
currentEditRow.no = 0
|
currentEditRow.no = 0
|
||||||
currentEditRow.value = null
|
currentEditRow.value = null
|
||||||
if (currentEditRow.format !== props.format || currentEditRow.decode !== props.decode) {
|
// if (currentEditRow.format !== props.format || currentEditRow.decode !== props.decode) {
|
||||||
nextTick(() => onFormatChanged(currentEditRow.decode, currentEditRow.format))
|
// nextTick(() => onFormatChanged(currentEditRow.decode, currentEditRow.format))
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
const actionColumn = {
|
const actionColumn = {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<script setup>
|
<script setup>
|
||||||
import { computed, h, nextTick, reactive, ref } from 'vue'
|
import { computed, h, reactive, ref } from 'vue'
|
||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
import AddLink from '@/components/icons/AddLink.vue'
|
import AddLink from '@/components/icons/AddLink.vue'
|
||||||
import { NButton, NIcon, useThemeVars } from 'naive-ui'
|
import { NButton, NIcon, useThemeVars } from 'naive-ui'
|
||||||
|
@ -144,6 +144,7 @@ const valueColumn = computed(() => ({
|
||||||
},
|
},
|
||||||
scrollable: true,
|
scrollable: true,
|
||||||
},
|
},
|
||||||
|
lineClamp: 1,
|
||||||
},
|
},
|
||||||
filterOptionValue: valueFilterOption.value,
|
filterOptionValue: valueFilterOption.value,
|
||||||
className: inEdit.value ? 'clickable' : '',
|
className: inEdit.value ? 'clickable' : '',
|
||||||
|
@ -206,9 +207,9 @@ const resetEdit = () => {
|
||||||
currentEditRow.no = 0
|
currentEditRow.no = 0
|
||||||
currentEditRow.score = 0
|
currentEditRow.score = 0
|
||||||
currentEditRow.value = null
|
currentEditRow.value = null
|
||||||
if (currentEditRow.format !== props.format || currentEditRow.decode !== props.decode) {
|
// if (currentEditRow.format !== props.format || currentEditRow.decode !== props.decode) {
|
||||||
nextTick(() => onFormatChanged(currentEditRow.decode, currentEditRow.format))
|
// nextTick(() => onFormatChanged(currentEditRow.decode, currentEditRow.format))
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
const actionColumn = {
|
const actionColumn = {
|
||||||
|
|
Loading…
Reference in New Issue