fix: type bugs

This commit is contained in:
wangdan-fit2cloud 2025-02-21 15:07:16 +08:00
parent a2e5180236
commit ad29a0d85b
3 changed files with 4 additions and 4 deletions

View File

@ -51,7 +51,7 @@ const wheel = (e: any) => {
function visibleChange(bool: boolean) {
if (bool) {
options.value = props.global
? props.nodeModel.get_up_node_field_list(false, true).filter((v) => v.value === 'global')
? props.nodeModel.get_up_node_field_list(false, true).filter((v: any) => v.value === 'global')
: props.nodeModel.get_up_node_field_list(false, true)
}
}
@ -80,7 +80,7 @@ const validate = () => {
defineExpose({ validate })
onMounted(() => {
options.value = props.global
? props.nodeModel.get_up_node_field_list(false, true).filter((v) => v.value === 'global')
? props.nodeModel.get_up_node_field_list(false, true).filter((v: any) => v.value === 'global')
: props.nodeModel.get_up_node_field_list(false, true)
})
</script>

View File

@ -108,7 +108,7 @@ function onDragHandle() {
const tbody = wrapper.querySelector('.el-table__body-wrapper tbody')
if (!tbody) return
// Sortable
Sortable.create(tbody, {
Sortable.create(tbody as HTMLElement, {
animation: 150,
ghostClass: 'ghost-row',
onEnd: (evt) => {

View File

@ -192,7 +192,7 @@ function onDragHandle() {
const tbody = wrapper.querySelector('.el-table__body-wrapper tbody')
if (!tbody) return
// Sortable
Sortable.create(tbody, {
Sortable.create(tbody as HTMLElement, {
animation: 150,
ghostClass: 'ghost-row',
onEnd: (evt) => {