mirror of https://github.com/certd/certd
🔱: [client] sync upgrade with 2 commits [trident-sync]
perf: 新增editable-select组件pull/349/head
parent
ec01f47b98
commit
c7a3bc9eac
|
@ -250,6 +250,26 @@ export default async function ({ crudExpose }: CreateCrudOptionsProps): Promise<
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
editable: {
|
||||||
|
title: "可编辑选择",
|
||||||
|
search: { show: true },
|
||||||
|
type: "editable-select",
|
||||||
|
dict: dict({
|
||||||
|
value: "id",
|
||||||
|
label: "name",
|
||||||
|
async getData() {
|
||||||
|
return await textTableApi.GetAll();
|
||||||
|
}
|
||||||
|
}),
|
||||||
|
form: {
|
||||||
|
component: {
|
||||||
|
tableSelect: {
|
||||||
|
createCrudOptions: createCrudOptionsText,
|
||||||
|
crudOptionsOverride
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -48,3 +48,10 @@ export function GetByIds(ids: any) {
|
||||||
data: { ids }
|
data: { ids }
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function GetAll() {
|
||||||
|
return request({
|
||||||
|
url: apiPrefix + "/all",
|
||||||
|
method: "get"
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
|
@ -45,5 +45,6 @@ const list = [
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
options.list = list;
|
options.list = list;
|
||||||
|
options.copyTimes = 5;
|
||||||
const mock = mockUtil.buildMock(options);
|
const mock = mockUtil.buildMock(options);
|
||||||
export default mock;
|
export default mock;
|
||||||
|
|
Loading…
Reference in New Issue