@geelato/gl-ui-web-arco 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +55 -0
- package/dist/GlPdf-CP236wBj.js +891 -0
- package/dist/GlPdf-CP236wBj.js.gz +0 -0
- package/dist/gl-ui-web-arco.css +1 -0
- package/dist/gl-ui-web-arco.css.gz +0 -0
- package/dist/gl-ui-web-arco.js +21 -0
- package/dist/gl-ui-web-arco.js.gz +0 -0
- package/dist/main-D7ErSddl.js +164000 -0
- package/dist/main-D7ErSddl.js.gz +0 -0
- package/dist/pdfjs-Cvb5nkrC.js +26706 -0
- package/dist/pdfjs-Cvb5nkrC.js.gz +0 -0
- package/dist/types/api/SelectOptions.d.ts +41 -0
- package/dist/types/components/MetaHelper.d.ts +6 -0
- package/dist/types/components/gl-alert/GlAlert.vue.d.ts +27 -0
- package/dist/types/components/gl-button/GlButton.vue.d.ts +117 -0
- package/dist/types/components/gl-card/index.vue.d.ts +134 -0
- package/dist/types/components/gl-checkbox/GlCheckbox.vue.d.ts +19 -0
- package/dist/types/components/gl-color/GlColor.vue.d.ts +143 -0
- package/dist/types/components/gl-color-clipboard/GlColorClipboard.vue.d.ts +19 -0
- package/dist/types/components/gl-color-input/GlColorInput.vue.d.ts +37 -0
- package/dist/types/components/gl-comment/GlComment.vue.d.ts +80 -0
- package/dist/types/components/gl-comment/comment.vue.d.ts +72 -0
- package/dist/types/components/gl-comment/type.d.ts +30 -0
- package/dist/types/components/gl-countdown/GlCountdown.vue.d.ts +43 -0
- package/dist/types/components/gl-crontab/GlCrontab.vue.d.ts +39 -0
- package/dist/types/components/gl-crontab/tabs/day.vue.d.ts +30 -0
- package/dist/types/components/gl-crontab/tabs/hour.vue.d.ts +21 -0
- package/dist/types/components/gl-crontab/tabs/minute.vue.d.ts +21 -0
- package/dist/types/components/gl-crontab/tabs/mixin.d.ts +100 -0
- package/dist/types/components/gl-crontab/tabs/month.vue.d.ts +21 -0
- package/dist/types/components/gl-crontab/tabs/second.vue.d.ts +21 -0
- package/dist/types/components/gl-crontab/tabs/week.vue.d.ts +30 -0
- package/dist/types/components/gl-crontab/tabs/year.vue.d.ts +21 -0
- package/dist/types/components/gl-descriptions/GlDescriptions.vue.d.ts +36 -0
- package/dist/types/components/gl-dict/GlDict.vue.d.ts +444 -0
- package/dist/types/components/gl-dict/locale/en-US.d.ts +10 -0
- package/dist/types/components/gl-dict/locale/zh-CN.d.ts +10 -0
- package/dist/types/components/gl-divider/GlDevider.vue.d.ts +7 -0
- package/dist/types/components/gl-drag-verify/GlDragVerify.vue.d.ts +161 -0
- package/dist/types/components/gl-dropdown/GlDropdown.vue.d.ts +93 -0
- package/dist/types/components/gl-dynamic-select/GlDynamicSelect.vue.d.ts +582 -0
- package/dist/types/components/gl-email/GlEmailPreview.vue.d.ts +20 -0
- package/dist/types/components/gl-email/GlEmailSelect.vue.d.ts +1364 -0
- package/dist/types/components/gl-email/composables/index.d.ts +8 -0
- package/dist/types/components/gl-email/composables/useEmailData.d.ts +19 -0
- package/dist/types/components/gl-email/composables/useEmailForm.d.ts +57 -0
- package/dist/types/components/gl-email/composables/useEmailOperations.d.ts +15 -0
- package/dist/types/components/gl-email/composables/useEmailPreview.d.ts +10 -0
- package/dist/types/components/gl-email/composables/useEmailSchedule.d.ts +19 -0
- package/dist/types/components/gl-email/composables/useEmailValidation.d.ts +8 -0
- package/dist/types/components/gl-email/composables/useUserInfo.d.ts +18 -0
- package/dist/types/components/gl-email/locale/en-US.d.ts +51 -0
- package/dist/types/components/gl-email/locale/zh-CN.d.ts +51 -0
- package/dist/types/components/gl-email/types/index.d.ts +51 -0
- package/dist/types/components/gl-empty/GlEmpty.vue.d.ts +13 -0
- package/dist/types/components/gl-encode/GlEncode.vue.d.ts +152 -0
- package/dist/types/components/gl-entity-cascader/GlEntityCascader.vue.d.ts +26 -0
- package/dist/types/components/gl-entity-form/GlEntityForm.vue.d.ts +918 -0
- package/dist/types/components/gl-entity-form/composables/index.d.ts +16 -0
- package/dist/types/components/gl-entity-form/composables/useEmpty.d.ts +9 -0
- package/dist/types/components/gl-entity-form/composables/useFormCore.d.ts +560 -0
- package/dist/types/components/gl-entity-form/composables/useFormParams.d.ts +30 -0
- package/dist/types/components/gl-entity-form/composables/useFormValidation.d.ts +77 -0
- package/dist/types/components/gl-entity-table-plus/FilterManager.vue.d.ts +34 -0
- package/dist/types/components/gl-entity-table-plus/GlEntityTable.vue.d.ts +2910 -0
- package/dist/types/components/gl-entity-table-plus/GlEntityTableEdit.vue.d.ts +1322 -0
- package/dist/types/components/gl-entity-table-plus/GlEntityTableToolbar.vue.d.ts +471 -0
- package/dist/types/components/gl-entity-table-plus/constants.d.ts +292 -0
- package/dist/types/components/gl-entity-table-plus/index.vue.d.ts +3720 -0
- package/dist/types/components/gl-entity-table-plus/locale/en-US.d.ts +94 -0
- package/dist/types/components/gl-entity-table-plus/locale/zh-CN.d.ts +94 -0
- package/dist/types/components/gl-entity-table-plus/querySignature.d.ts +7 -0
- package/dist/types/components/gl-entity-table-plus/table.d.ts +137 -0
- package/dist/types/components/gl-entity-table-plus/useCellEditing.d.ts +55 -0
- package/dist/types/components/gl-entity-table-plus/useColumns.d.ts +20 -0
- package/dist/types/components/gl-entity-table-plus/useConvert.d.ts +5 -0
- package/dist/types/components/gl-entity-table-plus/useExport.d.ts +43 -0
- package/dist/types/components/gl-entity-table-plus/useFilters.d.ts +37 -0
- package/dist/types/components/gl-entity-table-plus/useLayout.d.ts +34 -0
- package/dist/types/components/gl-entity-table-plus/useMatch.d.ts +22 -0
- package/dist/types/components/gl-entity-table-plus/usePushedRecords.d.ts +39 -0
- package/dist/types/components/gl-entity-table-plus/useRow.d.ts +8 -0
- package/dist/types/components/gl-entity-table-plus/useRowHighlight.d.ts +33 -0
- package/dist/types/components/gl-entity-table-plus/useSelectedRecords.d.ts +25 -0
- package/dist/types/components/gl-entity-table-plus/useStore.d.ts +119 -0
- package/dist/types/components/gl-entity-table-plus/useSummary.d.ts +47 -0
- package/dist/types/components/gl-entity-table-plus/useTableDataAnalysis.d.ts +63 -0
- package/dist/types/components/gl-entity-table-plus/useTableHeight.d.ts +63 -0
- package/dist/types/components/gl-entity-table-plus/views/GlEntityCardView.vue.d.ts +76 -0
- package/dist/types/components/gl-entity-table-plus/views/GlEntityGalleryView.vue.d.ts +62 -0
- package/dist/types/components/gl-entity-table-plus/views/GlEntityPivotView.vue.d.ts +90 -0
- package/dist/types/components/gl-entity-table-plus/views/GlEntityTableStatView.vue.d.ts +127 -0
- package/dist/types/components/gl-entity-table-plus/views/GlEntityTableView.vue.d.ts +1150 -0
- package/dist/types/components/gl-entity-tree/GlBaseTree.vue.d.ts +944 -0
- package/dist/types/components/gl-entity-tree/GlEntityTree.vue.d.ts +1407 -0
- package/dist/types/components/gl-entity-tree/types.d.ts +11 -0
- package/dist/types/components/gl-flex-layout/GlFlexLayout.vue.d.ts +246 -0
- package/dist/types/components/gl-hidden-area/GlHiddenArea.vue.d.ts +109 -0
- package/dist/types/components/gl-iconfont-select/GlIconfontSelect.vue.d.ts +58 -0
- package/dist/types/components/gl-image/GlImage.vue.d.ts +554 -0
- package/dist/types/components/gl-import/GlImport.vue.d.ts +33 -0
- package/dist/types/components/gl-inst-runtime/GlInstRuntime.vue.d.ts +119 -0
- package/dist/types/components/gl-inst-runtime/GlInstsRuntime.vue.d.ts +100 -0
- package/dist/types/components/gl-layout-page/GlLayoutPage.vue.d.ts +224 -0
- package/dist/types/components/gl-layout-site/GlLayout.d.ts +24 -0
- package/dist/types/components/gl-layout-site/GlLayoutModeCollapse.vue.d.ts +19 -0
- package/dist/types/components/gl-layout-site/GlLayoutModeSidebar.vue.d.ts +41 -0
- package/dist/types/components/gl-layout-site/GlLayoutModeTopNav.vue.d.ts +19 -0
- package/dist/types/components/gl-layout-site/GlLayoutSite.vue.d.ts +26 -0
- package/dist/types/components/gl-layout-site/LayoutStore.d.ts +86 -0
- package/dist/types/components/gl-layout-site/ThemeSetting.vue.d.ts +19 -0
- package/dist/types/components/gl-list/GlList.vue.d.ts +104 -0
- package/dist/types/components/gl-metric-comparison-table/GlMetricComparisonTable.vue.d.ts +302 -0
- package/dist/types/components/gl-multi-components/GlMultiComponents.vue.d.ts +183 -0
- package/dist/types/components/gl-multi-components/locale/en-US.d.ts +5 -0
- package/dist/types/components/gl-multi-components/locale/zh-CN.d.ts +5 -0
- package/dist/types/components/gl-op-record/GlOpRecord.vue.d.ts +19 -0
- package/dist/types/components/gl-org-select/choose.vue.d.ts +124 -0
- package/dist/types/components/gl-org-select/index.vue.d.ts +178 -0
- package/dist/types/components/gl-org-select/tree.vue.d.ts +125 -0
- package/dist/types/components/gl-org-user-select/choose.vue.d.ts +428 -0
- package/dist/types/components/gl-org-user-select/index.vue.d.ts +178 -0
- package/dist/types/components/gl-org-user-select/list.vue.d.ts +133 -0
- package/dist/types/components/gl-page/GlPage.vue.d.ts +372 -0
- package/dist/types/components/gl-page-help/GlPageHelp.vue.d.ts +13 -0
- package/dist/types/components/gl-page-template/GlPageTemplateFlow.vue.d.ts +197 -0
- package/dist/types/components/gl-page-template/GlPageTemplateFlowApprove.vue.d.ts +19 -0
- package/dist/types/components/gl-page-template/ItemsManager.d.ts +23 -0
- package/dist/types/components/gl-page-template/locale/en-US.d.ts +25 -0
- package/dist/types/components/gl-page-template/locale/zh-CN.d.ts +25 -0
- package/dist/types/components/gl-page-template/state-wf/StateWFApprove.vue.d.ts +293 -0
- package/dist/types/components/gl-page-template/state-wf/StateWFTransfer.vue.d.ts +30 -0
- package/dist/types/components/gl-page-template/state-wf/stateWfApi.d.ts +114 -0
- package/dist/types/components/gl-pagination/GlPagination.vue.d.ts +19 -0
- package/dist/types/components/gl-pdf/GlPdf.vue.d.ts +90 -0
- package/dist/types/components/gl-popover/GlPopover.vue.d.ts +138 -0
- package/dist/types/components/gl-query/index.vue.d.ts +243 -0
- package/dist/types/components/gl-query/query.d.ts +47 -0
- package/dist/types/components/gl-rate/GlRate.vue.d.ts +19 -0
- package/dist/types/components/gl-ref-page/GlRefPage.vue.d.ts +171 -0
- package/dist/types/components/gl-regular-expression/GlRegularExpression.vue.d.ts +134 -0
- package/dist/types/components/gl-regular-expression/common.vue.d.ts +248 -0
- package/dist/types/components/gl-regular-expression/select.vue.d.ts +352 -0
- package/dist/types/components/gl-regular-expression/type.d.ts +17 -0
- package/dist/types/components/gl-row-col-layout/GlRowColLayout.vue.d.ts +189 -0
- package/dist/types/components/gl-select/GlSelect.vue.d.ts +83 -0
- package/dist/types/components/gl-slot/GlSlot.vue.d.ts +105 -0
- package/dist/types/components/gl-space/GlSpace.vue.d.ts +121 -0
- package/dist/types/components/gl-static-dict/GlStaticDict.vue.d.ts +32 -0
- package/dist/types/components/gl-static-dict/list.vue.d.ts +86 -0
- package/dist/types/components/gl-static-dict/type.d.ts +4 -0
- package/dist/types/components/gl-statistic/GlStatistic.vue.d.ts +65 -0
- package/dist/types/components/gl-table-select/GlTableSelect.vue.d.ts +474 -0
- package/dist/types/components/gl-table-select/GlTableSelectList.vue.d.ts +87 -0
- package/dist/types/components/gl-table-select/index.d.ts +4 -0
- package/dist/types/components/gl-tabs/GlDynamicTabs.vue.d.ts +226 -0
- package/dist/types/components/gl-tabs/GlTabs.vue.d.ts +152 -0
- package/dist/types/components/gl-tag/GlTag.vue.d.ts +122 -0
- package/dist/types/components/gl-text/GlText.vue.d.ts +152 -0
- package/dist/types/components/gl-textarea/GlTextarea.vue.d.ts +37 -0
- package/dist/types/components/gl-timeline/GlTimeline.vue.d.ts +110 -0
- package/dist/types/components/gl-timeline/type.d.ts +16 -0
- package/dist/types/components/gl-toolbar/index.vue.d.ts +65 -0
- package/dist/types/components/gl-toolbar/locale/en-US.d.ts +4 -0
- package/dist/types/components/gl-toolbar/locale/zh-CN.d.ts +4 -0
- package/dist/types/components/gl-toolbar/toolbar.d.ts +10 -0
- package/dist/types/components/gl-tooltip/GlTooltip.vue.d.ts +100 -0
- package/dist/types/components/gl-tree-select/GlTreeSelect.vue.d.ts +163 -0
- package/dist/types/components/gl-trigger-select/GlTriggerSelect.vue.d.ts +129 -0
- package/dist/types/components/gl-upload/GlUpload.vue.d.ts +559 -0
- package/dist/types/components/gl-upload/clipboard.vue.d.ts +370 -0
- package/dist/types/components/gl-upload/composables/useExternalDropArea.d.ts +11 -0
- package/dist/types/components/gl-upload/composables/useFileManager.d.ts +19 -0
- package/dist/types/components/gl-upload/locale/en-US.d.ts +10 -0
- package/dist/types/components/gl-upload/locale/zh-CN.d.ts +10 -0
- package/dist/types/components/gl-user-select/GlUserSelect.vue.d.ts +239 -0
- package/dist/types/components/gl-user-select/GlUserSelectInline.vue.d.ts +189 -0
- package/dist/types/components/gl-user-select/GlUserSelectPanel.vue.d.ts +97 -0
- package/dist/types/components/gl-user-select/GlUserSelectWorkflow.vue.d.ts +186 -0
- package/dist/types/components/gl-user-select/locale/en-US.d.ts +32 -0
- package/dist/types/components/gl-user-select/locale/zh-CN.d.ts +32 -0
- package/dist/types/components/gl-user-select/types.d.ts +62 -0
- package/dist/types/components/gl-workflow/GlWorkflowApprove.vue.d.ts +395 -0
- package/dist/types/components/gl-workflow/GlWorkflowModal.vue.d.ts +2086 -0
- package/dist/types/components/gl-workflow/GlWorkflowStart.vue.d.ts +19 -0
- package/dist/types/components/gl-workflow/GlWorkflowStartForm.vue.d.ts +294 -0
- package/dist/types/components/gl-workflow/GlWorkflowTasks.vue.d.ts +17 -0
- package/dist/types/components/gl-workflow/composables/useWorkflow.d.ts +99 -0
- package/dist/types/components/gl-workflow/index.d.ts +1075 -0
- package/dist/types/components/gl-workflow/types.d.ts +232 -0
- package/dist/types/composables/index.d.ts +3 -0
- package/dist/types/composables/useDropdownTriggerProps.d.ts +12 -0
- package/dist/types/composables/useStatus.d.ts +17 -0
- package/dist/types/composables/useTree.d.ts +31 -0
- package/dist/types/hooks/useEntityQuery.d.ts +8 -0
- package/dist/types/locale/en-US.d.ts +203 -0
- package/dist/types/locale/zh-CN.d.ts +203 -0
- package/dist/types/main.d.ts +16 -0
- package/dist/types/types/global.d.ts +64 -0
- package/package.json +78 -0
- package/src/main.ts +231 -0
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
import { RenderFunction } from '../../../vue/dist/vue.esm-bundler.js';
|
|
2
|
+
import { TableColumnData } from '@arco-design/web-vue';
|
|
3
|
+
import { ComponentInstance } from '@geelato/gl-ui-schema';
|
|
4
|
+
import { EntityReader, EntityReaderOrder, EntityReaderParam, PageProvideProxy } from '@geelato/gl-runtime-core';
|
|
5
|
+
import { QueryItemKv } from '../gl-query/query';
|
|
6
|
+
import { default as Toolbar } from '../gl-toolbar/toolbar';
|
|
7
|
+
export declare const SlotNameSeq: string;
|
|
8
|
+
export declare const SlotNameRecordStatus: string;
|
|
9
|
+
export type Column = GlTableColumn & {
|
|
10
|
+
checked?: true;
|
|
11
|
+
};
|
|
12
|
+
export type DeleteActionMode = 'deleteFrontAndServer' | 'deleteFrontOnly';
|
|
13
|
+
export interface TableMeta {
|
|
14
|
+
columns: GlTableColumn[];
|
|
15
|
+
columnResizable?: boolean;
|
|
16
|
+
entityReaderInfo: EntityReader;
|
|
17
|
+
enableI18n?: boolean;
|
|
18
|
+
rowSelection?: object;
|
|
19
|
+
size?: SizeProps;
|
|
20
|
+
}
|
|
21
|
+
export declare class BaseInfo {
|
|
22
|
+
/** 表格Id */
|
|
23
|
+
id?: string;
|
|
24
|
+
/** 显示名称,如用户列表 */
|
|
25
|
+
label?: string;
|
|
26
|
+
/** 对应的实体名 */
|
|
27
|
+
entityName?: string;
|
|
28
|
+
/** 外键字段加载配置 */
|
|
29
|
+
foreignKeys?: Array<{
|
|
30
|
+
field: string;
|
|
31
|
+
referenceEntity: string;
|
|
32
|
+
referenceField: string;
|
|
33
|
+
alias: string;
|
|
34
|
+
}>;
|
|
35
|
+
/** 控制权限,比如是否可以选择,如checkbox,radio,false */
|
|
36
|
+
checkType?: 'checkbox' | 'radio' | undefined;
|
|
37
|
+
/** 表格是否可拖动排序 */
|
|
38
|
+
tableDraggable?: boolean;
|
|
39
|
+
/** 拖拽后是否自动重置序号 */
|
|
40
|
+
autoResetSeqNoAfterDrag?: boolean;
|
|
41
|
+
/** 页面初始化时,是否自动加载第一页数据 */
|
|
42
|
+
triggerByInit?: boolean;
|
|
43
|
+
/** 查询条件组件中,值改变时,是否自动触发查询 */
|
|
44
|
+
triggerByValueChange?: boolean;
|
|
45
|
+
/** 是否显示序号列 */
|
|
46
|
+
showSeqNo?: boolean;
|
|
47
|
+
/** 是否显示复制行按钮 */
|
|
48
|
+
showActionCopy?: boolean;
|
|
49
|
+
/** 是否显示删除行按钮 */
|
|
50
|
+
showActionDelete?: boolean;
|
|
51
|
+
/** 删除行的操作模式 */
|
|
52
|
+
deleteActionMode?: 'deleteFrontAndServer' | 'deleteFrontOnly';
|
|
53
|
+
/** 是否显示解除关联关系的按钮 */
|
|
54
|
+
showActionRelease?: boolean;
|
|
55
|
+
/** 是否显示操作列,操作列一般包含添加复制编辑按钮 */
|
|
56
|
+
showOptColumn?: boolean;
|
|
57
|
+
/** 是否显示分页器,默认为是 */
|
|
58
|
+
showPagination?: boolean;
|
|
59
|
+
/** 点击行时,是否check该行 */
|
|
60
|
+
clickAsCheck?: boolean;
|
|
61
|
+
/** 双击单元格时,是否复制单元格内容到剪贴板 */
|
|
62
|
+
dblclickCopyCellText?: boolean;
|
|
63
|
+
/** 是否以逻辑删除的方式操作,如果是,则给该记录增加delFlag字段且值为1(表示删除),否则调用delete接口,直接删除该条记录。默认值为否 */
|
|
64
|
+
isLogicDeleteMode?: boolean;
|
|
65
|
+
/** 行只读表达式,js脚本,如 return row.status === 'paid' ,该行将不能再被编辑 */
|
|
66
|
+
isRowReadonlyExpression?: string;
|
|
67
|
+
/** 禁止保存表达式,js脚本,如 return row.status === 'paid' ,该行将不能再被保存 */
|
|
68
|
+
interdictExpression?: string;
|
|
69
|
+
/** 是否启用编辑模式,默认为否,不管页面是否处于只读状态,该表格都是不可以编辑 */
|
|
70
|
+
enableEdit?: boolean;
|
|
71
|
+
/** 是否为表单的子表,默认为否;如果是,当删除行时,只解除与父表单的关联关系,不删除记录 */
|
|
72
|
+
isFormSubTable?: boolean;
|
|
73
|
+
/** 作为子表,对应主表单ID的字段名,如orderId、pId等 */
|
|
74
|
+
subTablePidName?: string;
|
|
75
|
+
/** 是否显示工具栏,默认为是 */
|
|
76
|
+
showToolbar?: boolean;
|
|
77
|
+
/** 是否显示默认的导出按钮,默认为是 */
|
|
78
|
+
showDefaultExport?: boolean;
|
|
79
|
+
/** 是否显示查询区域,默认为是 */
|
|
80
|
+
showQuery?: boolean;
|
|
81
|
+
/** 是否显示重置查询条件按钮,默认为是 */
|
|
82
|
+
hideReset?: boolean;
|
|
83
|
+
/** 表格是否启用浏览器缓存记住用户设置的信息,默认为是 */
|
|
84
|
+
rememberInBrowser?: boolean;
|
|
85
|
+
/** 是否显示添加行按钮,默认为是 */
|
|
86
|
+
showAddRowBtn?: boolean;
|
|
87
|
+
/** 是否隐藏该表的标题名,默认为否 */
|
|
88
|
+
hideLabel?: boolean;
|
|
89
|
+
/** 表格元素外层的边距,默认为undefined,保持arco的默认padding */
|
|
90
|
+
tablePadding?: string;
|
|
91
|
+
/** 是否显示边框,默认为是 */
|
|
92
|
+
bordered?: boolean;
|
|
93
|
+
/** 是否显示hover效果,默认为否 */
|
|
94
|
+
hoverable?: boolean;
|
|
95
|
+
/** 是否显示过滤器,默认为否 */
|
|
96
|
+
showFilter?: boolean;
|
|
97
|
+
/** 是否自动计算表格高度 */
|
|
98
|
+
autoHeight?: boolean;
|
|
99
|
+
/** 自动高度调整值 */
|
|
100
|
+
autoHeightAdjust?: number;
|
|
101
|
+
/** 虚拟列表高度,大于0启用虚拟列表,值为高度(px);≤0不启用 */
|
|
102
|
+
virtualListHeight?: number;
|
|
103
|
+
/** 是否受页面的readonly状态控制,如表单上的查看按钮点击后,页面会变为只读状态,此时需要约束按钮不可用 */
|
|
104
|
+
controlByPageStatus?: boolean;
|
|
105
|
+
/** 过滤器显示模式:'toolbar' | 'dropdown' | 'tabs' */
|
|
106
|
+
filterDisplayMode?: 'toolbar' | 'dropdown' | 'tabs';
|
|
107
|
+
/** 操作列最多展示的操作项,超出折叠到更多菜单 */
|
|
108
|
+
optColumnMaxInlineActions?: number;
|
|
109
|
+
/** 是否启用前端本地过滤功能(仅在编辑模式下有效),默认为false
|
|
110
|
+
* 启用后,工具栏会显示搜索框,可以对当前已加载的数据进行前端过滤
|
|
111
|
+
* 过滤基于单元格的展示文本(如字典显示名),而不是原始值
|
|
112
|
+
*/
|
|
113
|
+
enableLocalFilter?: boolean;
|
|
114
|
+
}
|
|
115
|
+
export interface KeyboardProps {
|
|
116
|
+
enabled?: boolean;
|
|
117
|
+
enterToNextCell?: boolean;
|
|
118
|
+
tabToNextCell?: boolean;
|
|
119
|
+
shiftTabToPrevCell?: boolean;
|
|
120
|
+
enterToPrevCell?: boolean;
|
|
121
|
+
downToNextRowCell?: boolean;
|
|
122
|
+
upToPrevRowCell?: boolean;
|
|
123
|
+
downAtLastRowAddRow?: boolean;
|
|
124
|
+
}
|
|
125
|
+
export declare class TableExport {
|
|
126
|
+
btnText?: string;
|
|
127
|
+
fileName?: string;
|
|
128
|
+
scope?: 'CURRENT_PAGE' | 'ALL_PAGE' | 'SELECTED';
|
|
129
|
+
max?: number;
|
|
130
|
+
ignoreColumns?: string[];
|
|
131
|
+
readonly?: boolean;
|
|
132
|
+
hasSeqNo?: boolean;
|
|
133
|
+
}
|
|
134
|
+
export interface TableToolbar extends Toolbar {
|
|
135
|
+
export?: TableExport;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* 定义导出表格的列
|
|
139
|
+
*/
|
|
140
|
+
export interface ExcelColumnMeta {
|
|
141
|
+
dataIndex?: string;
|
|
142
|
+
title?: string | RenderFunction;
|
|
143
|
+
width?: number;
|
|
144
|
+
align?: 'left' | 'center' | 'right';
|
|
145
|
+
description?: string;
|
|
146
|
+
children?: ExcelColumnMeta[];
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* 定义导出的excel值单元格的格式
|
|
150
|
+
*/
|
|
151
|
+
export declare enum ExcelCellValueType {
|
|
152
|
+
STRING = "STRING",
|
|
153
|
+
NUMBER = "NUMBER",
|
|
154
|
+
DATE = "DATE",
|
|
155
|
+
DATETIME = "DATETIME"
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* 定义导出的excel值的取值方式
|
|
159
|
+
*/
|
|
160
|
+
export declare enum ExcelCellValueComputeMode {
|
|
161
|
+
VAR = "VAR",
|
|
162
|
+
CONST = "CONST",
|
|
163
|
+
EXPRESSION = "EXPRESSION"
|
|
164
|
+
}
|
|
165
|
+
export declare const ExcelCellValueTypeOptions: {
|
|
166
|
+
label: string;
|
|
167
|
+
value: string;
|
|
168
|
+
}[];
|
|
169
|
+
export declare const ExcelCellValueComputeModeOptions: {
|
|
170
|
+
label: string;
|
|
171
|
+
value: string;
|
|
172
|
+
}[];
|
|
173
|
+
/**
|
|
174
|
+
* 定义导出Excel的元数据
|
|
175
|
+
*/
|
|
176
|
+
export declare class ExcelCellMeta {
|
|
177
|
+
placeholder: string;
|
|
178
|
+
valueType: ExcelCellValueType;
|
|
179
|
+
valueComputeMode: ExcelCellValueComputeMode;
|
|
180
|
+
var?: string;
|
|
181
|
+
listVar?: string;
|
|
182
|
+
constValue?: any;
|
|
183
|
+
expression?: string;
|
|
184
|
+
isImage?: boolean;
|
|
185
|
+
imageWidth?: number;
|
|
186
|
+
imageHeight?: number;
|
|
187
|
+
isList?: boolean;
|
|
188
|
+
isMerge?: boolean;
|
|
189
|
+
isUnique?: boolean;
|
|
190
|
+
description?: string;
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* 定义GlTable的列
|
|
194
|
+
*/
|
|
195
|
+
export interface GlTableColumn extends TableColumnData {
|
|
196
|
+
dataIndex?: string;
|
|
197
|
+
title?: string;
|
|
198
|
+
slotName?: string;
|
|
199
|
+
width?: number;
|
|
200
|
+
_show?: boolean;
|
|
201
|
+
_icon?: string;
|
|
202
|
+
_renderScript: string;
|
|
203
|
+
_component?: ComponentInstance;
|
|
204
|
+
_noCustomRender?: boolean;
|
|
205
|
+
_required?: boolean;
|
|
206
|
+
_checked?: boolean;
|
|
207
|
+
_renderFnBody: string;
|
|
208
|
+
_bgColor?: string;
|
|
209
|
+
_propsExpressions?: object;
|
|
210
|
+
_stat?: boolean;
|
|
211
|
+
_statGroupBy?: string;
|
|
212
|
+
_statDecimal?: number;
|
|
213
|
+
_description?: string;
|
|
214
|
+
/********* 以下为导出到Excel中用到的属性 ***********/
|
|
215
|
+
_cellMeta?: ExcelCellMeta;
|
|
216
|
+
}
|
|
217
|
+
export interface GlTableRow {
|
|
218
|
+
rowClassExpression?: string;
|
|
219
|
+
}
|
|
220
|
+
export type SizeProps = 'mini' | 'small' | 'medium' | 'large';
|
|
221
|
+
export type GenShowColumnOptions = {
|
|
222
|
+
isShowByComponent: boolean;
|
|
223
|
+
showOptColumn?: boolean;
|
|
224
|
+
showSeqNoColumn?: boolean;
|
|
225
|
+
showRecordStatus?: boolean;
|
|
226
|
+
pageProxy: PageProvideProxy;
|
|
227
|
+
columnActions?: Array<ComponentInstance>;
|
|
228
|
+
optColumnMaxInlineActions?: number;
|
|
229
|
+
};
|
|
230
|
+
/**
|
|
231
|
+
* 在查询列表中,用于用户操作的查询信息,如查询条件、选择的页码信息
|
|
232
|
+
*/
|
|
233
|
+
export type EntityFetchDataInfo = {
|
|
234
|
+
pageSize?: number;
|
|
235
|
+
pageNo?: number;
|
|
236
|
+
order?: Array<EntityReaderOrder>;
|
|
237
|
+
params?: Array<EntityReaderParam>;
|
|
238
|
+
pushedRecordKeys?: string[];
|
|
239
|
+
unPushedRecordKeys?: string[];
|
|
240
|
+
};
|
|
241
|
+
/**
|
|
242
|
+
* 构建fetchData的初始化props
|
|
243
|
+
*/
|
|
244
|
+
export type EntityFetchDataProps = {
|
|
245
|
+
entityName: string;
|
|
246
|
+
isSubForm: boolean;
|
|
247
|
+
subFormPidName: string;
|
|
248
|
+
foreignKeys?: Array<{
|
|
249
|
+
field: string;
|
|
250
|
+
referenceEntity: string;
|
|
251
|
+
referenceField: string;
|
|
252
|
+
alias: string;
|
|
253
|
+
}>;
|
|
254
|
+
};
|
|
255
|
+
export interface FilterType {
|
|
256
|
+
id: string;
|
|
257
|
+
name: string;
|
|
258
|
+
showOnToolbar: boolean;
|
|
259
|
+
displayMode?: 'toolbar' | 'dropdown' | 'tabs';
|
|
260
|
+
queryItemKvs: Array<QueryItemKv>;
|
|
261
|
+
}
|
|
262
|
+
/**
|
|
263
|
+
* 个性化配置
|
|
264
|
+
*/
|
|
265
|
+
export type MyEntityTableConfig = {
|
|
266
|
+
filters: FilterType[];
|
|
267
|
+
columnsConfig?: {
|
|
268
|
+
visibleColumns?: string[];
|
|
269
|
+
columnWidths?: Record<string, number>;
|
|
270
|
+
columnOrder?: string[];
|
|
271
|
+
};
|
|
272
|
+
layoutConfig?: {
|
|
273
|
+
layoutMode?: 'vertical' | 'horizontal';
|
|
274
|
+
queryCollapsed?: boolean;
|
|
275
|
+
size?: SizeProps;
|
|
276
|
+
splitSize?: string | number;
|
|
277
|
+
};
|
|
278
|
+
pivotConfig?: {
|
|
279
|
+
rows?: any[];
|
|
280
|
+
cols?: any[];
|
|
281
|
+
values?: any[];
|
|
282
|
+
chartType?: string;
|
|
283
|
+
version?: string;
|
|
284
|
+
configs?: Record<string, any>;
|
|
285
|
+
[key: string]: any;
|
|
286
|
+
};
|
|
287
|
+
statConfig?: {
|
|
288
|
+
groupFields?: string[];
|
|
289
|
+
version?: string;
|
|
290
|
+
[key: string]: any;
|
|
291
|
+
};
|
|
292
|
+
};
|