|
|
|
|
@ -3,7 +3,7 @@ import { ContentWrap } from '@/components/ContentWrap'
|
|
|
|
|
import { useI18n } from '@/hooks/web/useI18n'
|
|
|
|
|
import { Table, TableColumn, TableSlotDefault } from '@/components/Table'
|
|
|
|
|
import { getTableListApi } from '@/api/table'
|
|
|
|
|
import { ref, reactive, unref } from 'vue'
|
|
|
|
|
import { ref, reactive, unref, onMounted } from 'vue'
|
|
|
|
|
import { ElTag } from 'element-plus'
|
|
|
|
|
import { useTable } from '@/hooks/web/useTable'
|
|
|
|
|
import { BaseButton } from '@/components/Button'
|
|
|
|
|
@ -26,7 +26,12 @@ const { setProps, setColumn, getElTableExpose, addColumn, delColumn, refresh } =
|
|
|
|
|
|
|
|
|
|
const { t } = useI18n()
|
|
|
|
|
|
|
|
|
|
const columns = reactive<TableColumn[]>([
|
|
|
|
|
const columns = reactive<TableColumn[]>([])
|
|
|
|
|
|
|
|
|
|
onMounted(() => {
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
setProps({
|
|
|
|
|
columns: [
|
|
|
|
|
{
|
|
|
|
|
field: 'expand',
|
|
|
|
|
type: 'expand',
|
|
|
|
|
@ -102,7 +107,10 @@ const columns = reactive<TableColumn[]>([
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
])
|
|
|
|
|
]
|
|
|
|
|
})
|
|
|
|
|
}, 2000)
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
const actionFn = (data: TableSlotDefault) => {
|
|
|
|
|
console.log(data)
|
|
|
|
|
|