提交 501c7344 编写于 作者: Cano1997's avatar Cano1997

feat: 表格部件传递视图控制器

上级 69a17c98
......@@ -32,6 +32,7 @@ export const GridView = defineComponent({
if (this.c.providers[grid.name]) {
gridComponent = h(this.c.providers[grid.name].component, {
props: {
controller: this.c,
modelData: grid,
context: this.c.context,
params: this.c.params,
......
......@@ -12,6 +12,7 @@ import {
watch,
} from 'vue';
import { IModal } from '@ibiz-template/runtime';
import { MDViewController } from '@ibiz-template/controller';
import { AppGridPagination } from '@/components/common';
import {
useAppGridPagination,
......@@ -22,6 +23,10 @@ import '@ibiz-template/theme/style/components/widgets/grid/grid.scss';
export const GridControl = defineComponent({
props: {
controller: {
type: Object as PropType<MDViewController>,
required: true,
},
modelData: GridModel,
context: { type: Object as PropType<IContext>, required: true },
params: { type: Object as PropType<IParams>, default: () => ({}) },
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册