提交 79700e8b 编写于 作者: RedPig97's avatar RedPig97

fix: 修复打包报错

上级 705edc70
......@@ -44,6 +44,6 @@
{{/if}}
{{#eq ctrlType 'grid'}}
:value="record.{{item.psEditor.name}}"
@editorEvent="($event) => onEditorEvent(index,$event)"
@editorEvent="($event: IActionParam) => onEditorEvent(index,$event)"
{{/eq}}
/>
......@@ -26,6 +26,6 @@
{{/if}}
{{#eq ctrlType 'grid'}}
:value="record.{{item.psEditor.name}}"
@editorEvent="($event) => onEditorEvent(index,$event)"
@editorEvent="($event: IActionParam) => onEditorEvent(index,$event)"
{{/eq}}
/>
......@@ -12,6 +12,6 @@
{{/if}}
{{#eq ctrlType 'grid'}}
:value="record.{{item.psEditor.name}}"
@editorEvent="($event) => onEditorEvent(index,$event)"
@editorEvent="($event: IActionParam) => onEditorEvent(index,$event)"
{{/eq}}
/>
......@@ -9,7 +9,7 @@
{{/if}}
{{#eq ctrlType 'grid'}}
:value="record.{{item.psEditor.name}}"
@editorEvent="($event) => onEditorEvent(index,$event)"
@editorEvent="($event: IActionParam) => onEditorEvent(index,$event)"
{{/eq}}
:context="state.context"
:viewParams="state.viewParams"/>
\ No newline at end of file
......@@ -30,6 +30,6 @@
{{/if}}
{{#eq ctrlType 'grid'}}
:value="record.{{item.psEditor.name}}"
@editorEvent="($event) => onEditorEvent(index,$event)"
@editorEvent="($event: IActionParam) => onEditorEvent(index,$event)"
{{/eq}}
/>
\ No newline at end of file
......@@ -57,6 +57,6 @@
{{/if}}
{{#eq ctrlType 'grid'}}
:value="record.{{item.psEditor.name}}"
@editorEvent="($event) => onEditorEvent(index,$event)"
@editorEvent="($event: IActionParam) => onEditorEvent(index,$event)"
{{/eq}}
/>
\ No newline at end of file
......@@ -51,6 +51,6 @@
{{/if}}
{{#eq ctrlType 'grid'}}
:value="record.{{item.psEditor.name}}"
@editorEvent="($event) => onEditorEvent(index,$event)"
@editorEvent="($event: IActionParam) => onEditorEvent(index,$event)"
{{/eq}}
/>
......@@ -33,6 +33,6 @@
{{#eq ctrlType 'grid'}}
:value="record.{{item.psEditor.name}}"
:data="record"
@editorEvent="($event) => onEditorEvent(index,$event)"
@editorEvent="($event: IActionParam) => onEditorEvent(index,$event)"
{{/eq}}
/>
......@@ -12,7 +12,7 @@
{{/if}}
{{#eq ctrlType 'grid'}}
:value="record.{{item.psEditor.name}}"
@editorEvent="($event) => onEditorEvent(index,$event)"
@editorEvent="($event: IActionParam) => onEditorEvent(index,$event)"
{{/eq}}
/>
......@@ -42,6 +42,6 @@
{{/if}}
{{#eq ctrlType 'grid'}}
:value="record.{{item.psEditor.name}}"
@editorEvent="($event) => onEditorEvent(index,$event)"
@editorEvent="($event: IActionParam) => onEditorEvent(index,$event)"
{{/eq}}
/>
......@@ -42,6 +42,6 @@
{{/if}}
{{#eq ctrlType 'grid'}}
:value="record.{{item.psEditor.name}}"
@editorEvent="($event) => onEditorEvent(index,$event)"
@editorEvent="($event: IActionParam) => onEditorEvent(index,$event)"
{{/eq}}
/>
......@@ -26,6 +26,6 @@
{{/if}}
{{#eq ctrlType 'grid'}}
:value="record.{{item.psEditor.name}}"
@editorEvent="($event) => onEditorEvent(index,$event)"
@editorEvent="($event: IActionParam) => onEditorEvent(index,$event)"
{{/eq}}
/>
\ No newline at end of file
......@@ -18,6 +18,6 @@
{{/if}}
{{#eq ctrlType 'grid'}}
:value="record.{{item.psEditor.name}}"
@editorEvent="($event) => onEditorEvent(index,$event)"
@editorEvent="($event: IActionParam) => onEditorEvent(index,$event)"
{{/eq}}
/>
......@@ -16,6 +16,6 @@
{{/if}}
{{#eq ctrlType 'grid'}}
:value="record.{{item.psEditor.name}}"
@editorEvent="($event) => onEditorEvent(index,$event)"
@editorEvent="($event: IActionParam) => onEditorEvent(index,$event)"
{{/eq}}
/>
......@@ -25,6 +25,6 @@
{{#eq ctrlType 'grid'}}
:value="record.{{item.psEditor.name}}"
:data="record"
@editorEvent="($event) => onEditorEvent(index,$event)"
@editorEvent="($event: IActionParam) => onEditorEvent(index,$event)"
{{/eq}}
/>
......@@ -22,6 +22,6 @@
{{/if}}
{{#eq ctrlType 'grid'}}
:value="record.{{item.psEditor.name}}"
@editorEvent="($event) => onEditorEvent(index,$event)"
@editorEvent="($event: IActionParam) => onEditorEvent(index,$event)"
{{/eq}}
/>
......@@ -24,6 +24,6 @@
{{/if}}
{{#eq ctrlType 'grid'}}
:value="record.{{item.psEditor.name}}"
@editorEvent="($event) => onEditorEvent(index,$event)"
@editorEvent="($event: IActionParam) => onEditorEvent(index,$event)"
{{/eq}}
/>
......@@ -15,6 +15,6 @@
{{/if}}
{{#eq ctrlType 'grid'}}
:value="record.{{item.psEditor.name}}"
@editorEvent="($event) => onEditorEvent(index,$event)"
@editorEvent="($event: IActionParam) => onEditorEvent(index,$event)"
{{/eq}}
/>
......@@ -35,6 +35,6 @@
{{/if}}
{{#eq ctrlType 'grid'}}
:value="record.{{item.psEditor.name}}"
@editorEvent="($event) => onEditorEvent(index,$event)"
@editorEvent="($event: IActionParam) => onEditorEvent(index,$event)"
{{/eq}}
/>
......@@ -28,7 +28,7 @@
mode="link"
name="{{lowerCase item.codeName}}"
:actionModel="record.{{lowerCase item.codeName}}"
@toolbarEvent="($event) => handleToolbarEvent(record, $event)"/>
@onToolbarEvent="($event: IActionParam) => onToolbarEvent(record, $event)"/>
{{/if}}
</div>
{{/unless}}
......
......@@ -55,16 +55,16 @@ export class GridControl extends MDControl {
if (!rowEditState) {
selectedRowKeys.value = [record.srfkey];
if (!record.children) {
this.emit("ctrlevent", { tag: controlName, action: "selectionChange", data: [deepCopy(record)] })
this.emit("onCtrlEvent", { tag: controlName, action: "selectionChange", data: [deepCopy(record)] })
if (Object.is(rowActiveMode, 1)) {
this.emit("ctrlevent", { tag: controlName, action: "rowClick", data: [deepCopy(record)] })
this.emit("onCtrlEvent", { tag: controlName, action: "rowClick", data: [deepCopy(record)] })
}
}
}
},
onDblclick: () => {
if (!record.children && Object.is(rowActiveMode, 2)) {
this.emit("ctrlevent", { tag: controlName, action: "rowDbClick", data: [deepCopy(record)] })
this.emit("onCtrlEvent", { tag: controlName, action: "rowDbClick", data: [deepCopy(record)] })
}
}
};
......@@ -86,7 +86,7 @@ export class GridControl extends MDControl {
selection.push(select);
}
})
this.emit("ctrlevent", { tag: controlName, action: "selectionChange", data: selection })
this.emit("onCtrlEvent", { tag: controlName, action: "selectionChange", data: selection })
},
};
});
......@@ -179,7 +179,7 @@ export class GridControl extends MDControl {
selectedRowKeys.value = _selectedRowKeys;
} else if (isSelectDefault) {
if (items && items.length > 0) {
this.emit("ctrlevent", {
this.emit("onCtrlEvent", {
tag: controlName,
action: "selectionChange",
data: [deepCopy(items[0])],
......@@ -431,7 +431,8 @@ export class GridControl extends MDControl {
const superParams = super.moduleInstall();
return {
...superParams,
useCustom: this.useCustom()
useCustom: this.useCustom(),
onEditorEvent: this.onEditorEvent.bind(this),
};
}
}
......@@ -44,7 +44,7 @@ const { state, cancel, confirm,handleCtrlEvent } = new PickupView(viewState, pro
mode="button"
name="{{lowerCase codeName}}"
:actionModel="state.viewToolbarModel"
@toolbarEvent="handleToolbarEvent"/>
@onToolbarEvent="onToolbarEvent"/>
</template>
{{/eq}}
{{#eq controlType "PICKUPVIEWPANEL"}}
......
......@@ -25,7 +25,7 @@ interface ViewEmit {
const emit = defineEmits<ViewEmit>();
// 安装功能模块
const { state, handleCtrlEvent, handleToolbarEvent } = new TreeExpView(viewState, props, emit).moduleInstall();
const { state, handleCtrlEvent, onToolbarEvent } = new TreeExpView(viewState, props, emit).moduleInstall();
</script>
<template>
......@@ -40,7 +40,7 @@ const { state, handleCtrlEvent, handleToolbarEvent } = new TreeExpView(viewState
mode="button"
name="{{lowerCase codeName}}"
:actionModel="state.toolbar"
@toolbarEvent="handleToolbarEvent"/>
@onToolbarEvent="onToolbarEvent"/>
</template>
{{/eq}}
{{#eq controlType "TREEEXPBAR"}}
......
......@@ -6,14 +6,14 @@ import { GridControl, IActionParam, IParam, IContext, ControlAction, deepCopy }
interface Props {
context: IContext;
isMultiple: boolean;
viewParams: IParam;
multiple: boolean;
rowEditState: boolean;
rowActiveMode: 0 | 1 | 2;
selectedData: IParam[];
isSelectDefault: boolean;
viewParams?: IParam;
selectedData?: IParam[];
isSelectDefault?: boolean;
controlAction: ControlAction;
showBusyIndicator?: boolean;
showBusyIndicator: boolean;
viewSubject: Subject<IActionParam>;
}
......@@ -30,7 +30,7 @@ const props = withDefaults(defineProps < Props > (), {
const emit = defineEmits<{(event: 'onCtrlevent', value: IActionParam): void;}>();
// 安装功能模块,提供状态和能力
const { state, useCustom } = new GridControl(ctrlState, props, emit).moduleInstall();
const { state, useCustom, onEditorEvent, onToolbarEvent } = new GridControl(ctrlState, props, emit).moduleInstall();
const { useScrollOption, useRowKey, useRowClassName, useCustomRow, useRowSelectionOption, onResizeColumn, onGridChange } = useCustom;
// 暴露内部状态及能力
......@@ -49,8 +49,8 @@ defineExpose({ state, name: '{{ctrl.name}}' });
:row-selection="rowSelectionOption"
:columns="state.columnsModel"
:pagination="state.mdCtrlPaging.pagination"
:customRow="customRow"
:rowClassName="rowClassName"
:customRow="useCustomRow"
:rowClassName="useRowClassName"
@change="onGridChange"
@resizeColumn="onResizeColumn"
>
......
......@@ -61,7 +61,6 @@ const { state, onEditorEvent, onComponentEvent, onSearch, loadDraft, onSaveHisto
class="search-form-history"
v-show="state.historyItems.length > 0"
v-model:Value="state.selectHistoryItem"
@change="handleChange"
>
<a-select-option class="search-form-history-option" v-for="(item,index) in state.historyItems" :key="index" :value="item.value">\{{item.name}} <close-outlined @click="() => onRemoveHistoryItem(item)" /></a-select-option>
</a-select>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册