dev #26
|
|
@ -1,3 +1,4 @@
|
||||||
|
import { Ref } from "vue";
|
||||||
import { array } from "vue-types";
|
import { array } from "vue-types";
|
||||||
|
|
||||||
export interface Dialog {
|
export interface Dialog {
|
||||||
|
|
@ -329,6 +330,8 @@ export interface TableConfig {
|
||||||
searchCallback?: (s: SearchConditions) => void;
|
searchCallback?: (s: SearchConditions) => void;
|
||||||
/** 新增/修改回调函数 */
|
/** 新增/修改回调函数 */
|
||||||
editCallback?: (from: any) => void;
|
editCallback?: (from: any) => void;
|
||||||
|
/** 编辑表单初始化回调函数 */
|
||||||
|
editInitCallback?: (from: Ref<Record<string, TableColumn>>) => void;
|
||||||
/** 展开行的回调 */
|
/** 展开行的回调 */
|
||||||
expandChange?: (row: any, expandedRows: any[]) => void;
|
expandChange?: (row: any, expandedRows: any[]) => void;
|
||||||
/** API地址 */
|
/** API地址 */
|
||||||
|
|
|
||||||
|
|
@ -46,6 +46,9 @@ onMounted(() => {
|
||||||
intiColumn();
|
intiColumn();
|
||||||
fetchInitData();
|
fetchInitData();
|
||||||
fetchFormData();
|
fetchFormData();
|
||||||
|
//回调
|
||||||
|
if (editData.value.table.editInitCallback)
|
||||||
|
editData.value.table.editInitCallback(column);
|
||||||
});
|
});
|
||||||
|
|
||||||
function execute(obj, btn) {
|
function execute(obj, btn) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue