Compare commits

...

6 Commits

Author SHA1 Message Date
COOL
861ff875ce
Merge pull request #150 from shxhanxia/patch-1
fix: cl-user-select 按角色分类bug
2025-07-21 11:45:34 +08:00
COOL
0a09a661b9
Merge pull request #154 from icjs-cc/patch-2
fix: 自定义crud打包报错Return type of exported function has or is using name…
2025-07-21 11:44:32 +08:00
COOL
766033a18d
Merge pull request #155 from xinnix/patch-2
修复了 onConfig 自定义表单项的数据无法提交
2025-07-21 11:43:52 +08:00
xinnix
2fc8c351ae
修复了 onConfig 自定义表单项的数据无法提交
import-btn里只提交了 upload 的数据,所以自定义表单项虽然展现出来了,但这个数据并不包含在提交的数据里。
2025-06-23 10:59:24 +08:00
陈剑术
66b36ac39f
fix: 自定义crud打包报错Return type of exported function has or is using name 'TableHeader' from external 2025-06-18 16:35:45 +08:00
韩侠
8976bf67a2
fix: cl-user-select 按角色分类bug 2025-05-16 15:23:07 +08:00
3 changed files with 7 additions and 3 deletions

View File

@ -2,11 +2,12 @@ import { inject, reactive, ref } from "vue";
import { useConfig } from "../../../hooks";
import { getValue, mergeConfig } from "../../../utils";
import { ElTable } from "element-plus";
import type { TableInstance } from "element-plus";
export function useTable(props: any) {
const { style } = useConfig();
const Table = ref<InstanceType<typeof ElTable>>();
const Table = ref<TableInstance>();
// 配置
const config = reactive<ClTable.Config>(mergeConfig(props, inject("useTable__options") || {}));

View File

@ -223,7 +223,7 @@ async function getDept() {
async function getRole() {
return service.base.sys.role.list().then(res => {
res.forEach(e => {
e.children = users.value.filter(u => u.roleIds.includes(u.id));
e.children = users.value.filter(u => u.roleIds.includes(e.id));
});
data.role = res as Item[];

View File

@ -275,7 +275,10 @@ function open() {
}
if (props.onSubmit) {
props.onSubmit(upload, { done, close });
props.onSubmit({
...upload,
..._
}, { done, close });
} else {
ElMessage.error(t('[cl-import-btn] onSubmit is required'));
done();