提交 54b64788 编写于 作者: Cano1997's avatar Cano1997

update:插件临时注释

上级 59d76626
<template>
<div :class="classNames" :id="controlID" style="" >
<a-form class="control-content">
<AppGrid
<!-- <AppGrid
:columns="model.columns"
:items="store.data"
:singleSelect="singleSelect"
......@@ -22,7 +22,7 @@
@page-size-change="(pageSize: number) => handlePageSizeChange(controller, pageSize)"
@action-click="(logic: any, data: IParam, event: MouseEvent) => handleActionClick(controller, logic as IViewLogicInput, data, event)"
>
</AppGrid>
</AppGrid> -->
</a-form>
</div>
</template>
......@@ -217,45 +217,45 @@ export default class PluginBase extends Vue implements ControlInterface {
}
import { AppGrid } from "@components/widgets/grid";
import { IContext, IParam, IViewLogicInput } from "@/core";
import { GridActionType, ICtrlDataAction, IGridAbility, IGridControllerParams, IGridStore, GridController, ILoadingHelper, LoadingHelper, createUUID, IViewCtx } from "@/core";
import { handlePageChange, handlePageSizeChange, handleSortChange, handleComponentAction } from '@/hooks/use-ctrl';
import { useNavParamsBind, useEventBind, handleActionClick, getCtrlClassNames } from '@/hooks/use-ctrl';
import GridService from "@/core/modules/ctrl-service/grid-service";
interface Props {
name?: string;
context: IContext;
viewParams: IParam;
localContext?: IParam,
localViewParams?: IParam,
closeView?: Function;
pLoadingHelper?: ILoadingHelper;
pViewCtx?: IViewCtx;
openView?: Function;
newView?: Function;
actions: ICtrlDataAction;
singleSelect?: boolean;
selectFirstDefault?: boolean;
rowActiveMode?: 0 | 1 | 2;
defaultEnableRowEdit?: boolean;
controller: GridController
}
const props = withDefaults(defineProps<Props>(), {
singleSelect: false,
rowActiveMode: 2
});
const model: IParam = props.controller.getModel();
const store = props.controller.getStore();
const classNames = computed(() => {
const names = getCtrlClassNames(model, props);
Object.assign(names, {
"app-control-grid--no-paging-bar": model.enablePagingBar,
"red-grid-header": true
});
return names;
});
// import { AppGrid } from "@components/widgets/grid";
// import { IContext, IParam, IViewLogicInput } from "@/core";
// import { GridActionType, ICtrlDataAction, IGridAbility, IGridControllerParams, IGridStore, GridController, ILoadingHelper, LoadingHelper, createUUID, IViewCtx } from "@/core";
// import { handlePageChange, handlePageSizeChange, handleSortChange, handleComponentAction } from '@/hooks/use-ctrl';
// import { useNavParamsBind, useEventBind, handleActionClick, getCtrlClassNames } from '@/hooks/use-ctrl';
// import GridService from "@/core/modules/ctrl-service/grid-service";
// interface Props {
// name?: string;
// context: IContext;
// viewParams: IParam;
// localContext?: IParam,
// localViewParams?: IParam,
// closeView?: Function;
// pLoadingHelper?: ILoadingHelper;
// pViewCtx?: IViewCtx;
// openView?: Function;
// newView?: Function;
// actions: ICtrlDataAction;
// singleSelect?: boolean;
// selectFirstDefault?: boolean;
// rowActiveMode?: 0 | 1 | 2;
// defaultEnableRowEdit?: boolean;
// controller: GridController
// }
// const props = withDefaults(defineProps<Props>(), {
// singleSelect: false,
// rowActiveMode: 2
// });
// const model: IParam = props.controller.getModel();
// const store = props.controller.getStore();
// const classNames = computed(() => {
// const names = getCtrlClassNames(model, props);
// Object.assign(names, {
// "app-control-grid--no-paging-bar": model.enablePagingBar,
// "red-grid-header": true
// });
// return names;
// });
/**
* 代码表服务对象
......
......@@ -57,13 +57,13 @@
:rules="store.valueRule.formitem2"
:emptyCaption="false">
<div class="form-editor-container">
<AppSwitch
<!-- <AppSwitch
name="formitem2"
:disabled="store.detailModel.formitem2.disabled"
style=""
:value="store.data.formitem2"
@component-action="(actionParam: IEvent<string>) => { handleComponentAction(controller, actionParam) }"
/>
/> -->
</div>
</AppFormItem>
</template>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册