mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: type bugs
This commit is contained in:
parent
a2e5180236
commit
ad29a0d85b
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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) => {
|
||||
|
|
|
|||
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue