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

update:插件临时注释

上级 59d76626
<template> <template>
<div :class="classNames" :id="controlID" style="" > <div :class="classNames" :id="controlID" style="" >
<a-form class="control-content"> <a-form class="control-content">
<AppGrid <!-- <AppGrid
:columns="model.columns" :columns="model.columns"
:items="store.data" :items="store.data"
:singleSelect="singleSelect" :singleSelect="singleSelect"
:selections="store.selections" :selections="store.selections"
:showHeader="model.showHeader" :showHeader="model.showHeader"
:current="store.curPage" :current="store.curPage"
:limit="store.limit" :limit="store.limit"
:totalRecord="store.totalRecord" :totalRecord="store.totalRecord"
:context="store.context" :context="store.context"
:viewParams="store.viewParams" :viewParams="store.viewParams"
:enableRowEdit="model.enableRowEdit" :enableRowEdit="model.enableRowEdit"
:paging="model.paging" :paging="model.paging"
@row-click="handleRowClick" @row-click="handleRowClick"
@row-db-click="handleRowDbClick" @row-db-click="handleRowDbClick"
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
@sort-change="(field: string, dir: '' | 'asc' | 'desc') => handleSortChange(controller, field, dir)" @sort-change="(field: string, dir: '' | 'asc' | 'desc') => handleSortChange(controller, field, dir)"
@page-change="(currentPage: number) => handlePageChange(controller, currentPage)" @page-change="(currentPage: number) => handlePageChange(controller, currentPage)"
@page-size-change="(pageSize: number) => handlePageSizeChange(controller, pageSize)" @page-size-change="(pageSize: number) => handlePageSizeChange(controller, pageSize)"
@action-click="(logic: any, data: IParam, event: MouseEvent) => handleActionClick(controller, logic as IViewLogicInput, data, event)" @action-click="(logic: any, data: IParam, event: MouseEvent) => handleActionClick(controller, logic as IViewLogicInput, data, event)"
> >
</AppGrid> </AppGrid> -->
</a-form> </a-form>
</div> </div>
</template> </template>
// 基于 @CONTROL/表格/CONTROL-BASE.vue.ftl 生成 // 基于 @CONTROL/表格/CONTROL-BASE.vue.ftl 生成
...@@ -217,45 +217,45 @@ export default class PluginBase extends Vue implements ControlInterface { ...@@ -217,45 +217,45 @@ export default class PluginBase extends Vue implements ControlInterface {
} }
import { AppGrid } from "@components/widgets/grid"; // import { AppGrid } from "@components/widgets/grid";
import { IContext, IParam, IViewLogicInput } from "@/core"; // import { IContext, IParam, IViewLogicInput } from "@/core";
import { GridActionType, ICtrlDataAction, IGridAbility, IGridControllerParams, IGridStore, GridController, ILoadingHelper, LoadingHelper, createUUID, IViewCtx } 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 { handlePageChange, handlePageSizeChange, handleSortChange, handleComponentAction } from '@/hooks/use-ctrl';
import { useNavParamsBind, useEventBind, handleActionClick, getCtrlClassNames } from '@/hooks/use-ctrl'; // import { useNavParamsBind, useEventBind, handleActionClick, getCtrlClassNames } from '@/hooks/use-ctrl';
import GridService from "@/core/modules/ctrl-service/grid-service"; // import GridService from "@/core/modules/ctrl-service/grid-service";
interface Props { // interface Props {
name?: string; // name?: string;
context: IContext; // context: IContext;
viewParams: IParam; // viewParams: IParam;
localContext?: IParam, // localContext?: IParam,
localViewParams?: IParam, // localViewParams?: IParam,
closeView?: Function; // closeView?: Function;
pLoadingHelper?: ILoadingHelper; // pLoadingHelper?: ILoadingHelper;
pViewCtx?: IViewCtx; // pViewCtx?: IViewCtx;
openView?: Function; // openView?: Function;
newView?: Function; // newView?: Function;
actions: ICtrlDataAction; // actions: ICtrlDataAction;
singleSelect?: boolean; // singleSelect?: boolean;
selectFirstDefault?: boolean; // selectFirstDefault?: boolean;
rowActiveMode?: 0 | 1 | 2; // rowActiveMode?: 0 | 1 | 2;
defaultEnableRowEdit?: boolean; // defaultEnableRowEdit?: boolean;
controller: GridController // controller: GridController
} // }
const props = withDefaults(defineProps<Props>(), { // const props = withDefaults(defineProps<Props>(), {
singleSelect: false, // singleSelect: false,
rowActiveMode: 2 // rowActiveMode: 2
}); // });
const model: IParam = props.controller.getModel(); // const model: IParam = props.controller.getModel();
const store = props.controller.getStore(); // const store = props.controller.getStore();
const classNames = computed(() => { // const classNames = computed(() => {
const names = getCtrlClassNames(model, props); // const names = getCtrlClassNames(model, props);
Object.assign(names, { // Object.assign(names, {
"app-control-grid--no-paging-bar": model.enablePagingBar, // "app-control-grid--no-paging-bar": model.enablePagingBar,
"red-grid-header": true // "red-grid-header": true
}); // });
return names; // return names;
}); // });
/** /**
* 代码表服务对象 * 代码表服务对象
......
...@@ -39,34 +39,34 @@ ...@@ -39,34 +39,34 @@
<app-form-group :uiService="appUIService" :data="transformData(data)" :manageContainerStatus="detailsModel.grouppanel2.manageContainerStatus" :isManageContainer="detailsModel.grouppanel2.isManageContainer" @managecontainerclick="manageContainerClick('grouppanel2')" layoutType="TABLE_24COL" titleStyle="" class='' :uiActionGroup="detailsModel.grouppanel2.uiActionGroup" @groupuiactionclick="groupUIActionClick($event)" :caption="'表单项'" :isShowCaption="true" uiStyle="DEFAULT" :titleBarCloseMode="0" :isInfoGroupMode="false" > <app-form-group :uiService="appUIService" :data="transformData(data)" :manageContainerStatus="detailsModel.grouppanel2.manageContainerStatus" :isManageContainer="detailsModel.grouppanel2.isManageContainer" @managecontainerclick="manageContainerClick('grouppanel2')" layoutType="TABLE_24COL" titleStyle="" class='' :uiActionGroup="detailsModel.grouppanel2.uiActionGroup" @groupuiactionclick="groupUIActionClick($event)" :caption="'表单项'" :isShowCaption="true" uiStyle="DEFAULT" :titleBarCloseMode="0" :isInfoGroupMode="false" >
<row> <row>
<i-col v-show="detailsModel.formitem2.visible" :style="{}" :lg="{ span: 24, offset: 0 }"> <i-col v-show="detailsModel.formitem2.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<AppCol <AppCol
noRoot noRoot
class="red-solid" class="red-solid"
:visible="store.detailModel.formitem2.visible" :visible="store.detailModel.formitem2.visible"
:layoutOpts="{parentLayout: 'TABLE_24COL',colMD: 24,}"> :layoutOpts="{parentLayout: 'TABLE_24COL',colMD: 24,}">
<template v-slot:default="{ slotStyle, slotClass }"> <template v-slot:default="{ slotStyle, slotClass }">
<AppFormItem <AppFormItem
name="formitem2" name="formitem2"
:slotStyle="slotStyle" :slotStyle="slotStyle"
:slotClass="slotClass" :slotClass="slotClass"
label="" label=""
labelPos="LEFT" labelPos="LEFT"
:labelWidth="130" :labelWidth="130"
:showLabel="true" :showLabel="true"
:enableAnchor="false" :enableAnchor="false"
:rules="store.valueRule.formitem2" :rules="store.valueRule.formitem2"
:emptyCaption="false"> :emptyCaption="false">
<div class="form-editor-container"> <div class="form-editor-container">
<AppSwitch <!-- <AppSwitch
name="formitem2" name="formitem2"
:disabled="store.detailModel.formitem2.disabled" :disabled="store.detailModel.formitem2.disabled"
style="" style=""
:value="store.data.formitem2" :value="store.data.formitem2"
@component-action="(actionParam: IEvent<string>) => { handleComponentAction(controller, actionParam) }" @component-action="(actionParam: IEvent<string>) => { handleComponentAction(controller, actionParam) }"
/> /> -->
</div> </div>
</AppFormItem> </AppFormItem>
</template> </template>
</AppCol> </AppCol>
</i-col> </i-col>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册