@gct-paas/schema 0.1.4-dev.17 → 0.1.4-dev.18

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.
@@ -0,0 +1,79 @@
1
+ import { LowCodeWidget } from '../../widget';
2
+ import { ButtonTypeGroup, operateSysEnums, sortTypeEnum } from '@gct-paas/core';
3
+ /** 卡片列表属性 */
4
+ export interface CardListProps extends LowCodeWidget.WidgetProps {
5
+ title: string;
6
+ model: string;
7
+ /**关联搜索 */
8
+ refSearch: string;
9
+ /**显示标题 */
10
+ showTitle: boolean;
11
+ /**支持拖拽 */
12
+ draggable: boolean;
13
+ /**排序字段 */
14
+ collation: {
15
+ collationField: string;
16
+ collationSort: sortTypeEnum;
17
+ }[];
18
+ datafilter: {
19
+ key: string;
20
+ value: string;
21
+ }[] | {
22
+ dataRule: string;
23
+ dataRuleConfig: string;
24
+ };
25
+ /**可见按钮数量 */
26
+ visibleButtons: number;
27
+ /**是否可以数据选择 */
28
+ rowSelection: boolean;
29
+ /**数据选择类型 */
30
+ rowSelectionType: string;
31
+ /**初始化加载 */
32
+ initLoad: boolean;
33
+ /**自定义数据源 */
34
+ customdataSource: boolean;
35
+ /**数据源配置 */
36
+ datasourceConfig: LowCodeWidget.JsEvent | null;
37
+ /** 布局方式 */
38
+ layout: {
39
+ label: 'top' | 'left';
40
+ inputBg: boolean;
41
+ inputAlign: 'left' | 'right';
42
+ };
43
+ /**名称支持宽度配置*/
44
+ hasLabelWidth?: boolean;
45
+ /**名称显示类型*/
46
+ labelType?: string;
47
+ /**名称显示宽度*/
48
+ labelWidth?: string | number;
49
+ /**名称显示样式*/
50
+ overLabelDisplay?: string;
51
+ }
52
+ /** 卡片列表头部左侧属性 */
53
+ export type CardHeaderLeftProps = LowCodeWidget.WidgetProps;
54
+ /** 卡片列表头部右侧属性 */
55
+ export type CardHeaderRightProps = LowCodeWidget.WidgetProps;
56
+ /** 卡片列表内容属性 */
57
+ export type CardContentProps = LowCodeWidget.WidgetProps;
58
+ /** 卡片列表操作按钮属性 */
59
+ export interface CardOpeBtnProps extends LowCodeWidget.WidgetProps {
60
+ /**标题 */
61
+ title: string;
62
+ /**二次确认 */
63
+ confirm: boolean;
64
+ confirmText: string;
65
+ /**内置事件 */
66
+ innerEvent: boolean;
67
+ /**系统事件类型 */
68
+ sysMethedType?: operateSysEnums;
69
+ linkPage: string;
70
+ /**事件名称 */
71
+ eventName: string;
72
+ icon: string;
73
+ iconColor: string;
74
+ size: string;
75
+ disabled: boolean;
76
+ btnType: ButtonTypeGroup;
77
+ type: string;
78
+ danger: boolean;
79
+ }
@@ -30,7 +30,7 @@ export interface FormProcessProps extends FormProps {
30
30
  /** 描述列表属性 */
31
31
  export interface DescriptionsProps extends LowCodeWidget.WidgetProps {
32
32
  model?: string;
33
- layout: 'horizontal' | 'vertical';
33
+ layout: 'horizontal' | 'vertical' | IObject;
34
34
  column: number;
35
35
  refSearch?: string;
36
36
  /** 名称支持宽度配置 */
@@ -46,13 +46,13 @@ export interface DescriptionsProps extends LowCodeWidget.WidgetProps {
46
46
  export interface SearchProps extends LowCodeWidget.WidgetProps {
47
47
  model?: string;
48
48
  /** 查询字段配置信息 */
49
- fieldWidgets: SearchWidgets[];
49
+ fieldWidgets?: SearchWidgets[];
50
50
  /** 最多显示个数 */
51
- maxLength: number;
51
+ maxLength?: number;
52
52
  /** 单行显示个数 */
53
- rowLength: number;
53
+ rowLength?: number;
54
54
  /** 对齐方式 */
55
- alignment: Exclude<AGLINE_ENUMS, AGLINE_ENUMS.BETWEEN>;
55
+ alignment?: Exclude<AGLINE_ENUMS, AGLINE_ENUMS.BETWEEN>;
56
56
  /** 自定义搜索规则 */
57
57
  exp: string;
58
58
  /** 自定义搜索条件 */
@@ -7,7 +7,7 @@ export interface DataTableProps extends LowCodeWidget.WidgetProps {
7
7
  /** 关联搜索 */
8
8
  refSearch: string;
9
9
  /** 自定义搜索规则 */
10
- exp: string;
10
+ exp?: string;
11
11
  showPagination?: boolean;
12
12
  pageSize: number;
13
13
  /** 表头排序功能,默认关闭 */
@@ -43,13 +43,13 @@ export interface DataTableProps extends LowCodeWidget.WidgetProps {
43
43
  /** 斑马线 */
44
44
  stripe: boolean;
45
45
  /** 编辑方式 */
46
- editMethods: TableEditingMethodEnum;
46
+ editMethods?: TableEditingMethodEnum;
47
47
  /** 表格序号 */
48
48
  serialNumber: boolean;
49
49
  /** 按钮可见数量 */
50
- visibleButtons: number;
50
+ visibleButtons?: number;
51
51
  /** 数据源类型(实时数据、默认数据) */
52
- datasourceType: DatasourceTypeEnum;
52
+ datasourceType?: DatasourceTypeEnum;
53
53
  /** 数据源配置 */
54
54
  datasourceConfig: LowCodeWidget.JsEvent | null;
55
55
  /** 自定义数据源 */
@@ -60,7 +60,7 @@ export interface DataTableProps extends LowCodeWidget.WidgetProps {
60
60
  productionScheduling?: boolean;
61
61
  /** 排产试算排序字段信息 */
62
62
  productionSchedulingSort?: IData[];
63
- gridType: TableTypeEnum;
63
+ gridType?: TableTypeEnum;
64
64
  subModelField?: string;
65
65
  /** 多级表头 */
66
66
  levelHeaderGrouping?: IObject[];
@@ -6,3 +6,4 @@ export type * from './i-table-props';
6
6
  export type * from './i-button-props';
7
7
  export type * from './i-layout-props';
8
8
  export type * from './i-display-props';
9
+ export type * from './i-card-list-props';
@@ -1,5 +1,5 @@
1
1
  import { LowCodeModal, LowCodeWidget } from '..';
2
- import { InputProps, UploadFileProps, FormProps, DescriptionsProps, DataTableProps, DataListProps, ButtonProps, SelectProps, RadioProps, NumberProps, DoubleProps, MoneyProps, DateTimeProps, TimeProps, DateProps, UserProps, DeptProps, SwitchProps, SearchProps, ExportProps, ProcessButtonProps, LayoutProps, GridProps, GridColProps, ColumnsProps, ButtonContainerProps, SubTableProps, WorkflowNodesProps, LabelPrintProps, TabsProps, RefDataTableProps, TabPaneProps, ReadonlyCmpProps, CustomFieldProps, OperateProps, OperateButtonProps, ColumnTableProps, FormulaProps, TableSelectProps, GenRadioProps, GenSwitchProps, EsopProps, ExpressionProps, AggProps, treeTableProps, BaseButtonProps, DynamicTableProps, TransactionProps, SerialRuleProps, SelectSearchProps, TextProps, CollapseProps, SpaceOccupationProps, PrinterProps, SignatureProps, OnlineFormProps, TmplTreeSelectProps, DocumentPrintProps, RangeUserProps, GenImageProps, IframeProps, SubDataTableProps, ResetButtonProps, FormProcessProps, ApprovalHistoryProps, FlowDiagramProps, approveButtonProps, ButtonProcessContainerProps, BizProcessProps, TableApproveButtonProps, CustomCodeProps, ApprovalProcessProps, DividerProps } from './widget-props';
2
+ import { InputProps, UploadFileProps, FormProps, DescriptionsProps, DataTableProps, DataListProps, ButtonProps, SelectProps, RadioProps, NumberProps, DoubleProps, MoneyProps, DateTimeProps, TimeProps, DateProps, UserProps, DeptProps, SwitchProps, SearchProps, ExportProps, ProcessButtonProps, LayoutProps, GridProps, GridColProps, ColumnsProps, ButtonContainerProps, SubTableProps, WorkflowNodesProps, LabelPrintProps, TabsProps, RefDataTableProps, TabPaneProps, ReadonlyCmpProps, CustomFieldProps, OperateProps, OperateButtonProps, ColumnTableProps, FormulaProps, TableSelectProps, GenRadioProps, GenSwitchProps, EsopProps, ExpressionProps, AggProps, treeTableProps, BaseButtonProps, DynamicTableProps, TransactionProps, SerialRuleProps, SelectSearchProps, TextProps, CollapseProps, SpaceOccupationProps, PrinterProps, SignatureProps, OnlineFormProps, TmplTreeSelectProps, DocumentPrintProps, RangeUserProps, GenImageProps, IframeProps, SubDataTableProps, ResetButtonProps, FormProcessProps, ApprovalHistoryProps, FlowDiagramProps, approveButtonProps, ButtonProcessContainerProps, BizProcessProps, TableApproveButtonProps, CustomCodeProps, ApprovalProcessProps, DividerProps, CardListProps, CardHeaderLeftProps, CardHeaderRightProps, CardContentProps, CardOpeBtnProps } from './widget-props';
3
3
  import { FormComponents, DisplayEnums } from '@gct-paas/core';
4
4
  import { LinkageItem } from '../common/data-linkage-config';
5
5
  export interface Userpicker extends LowCodeWidget.BasicSchema {
@@ -328,6 +328,22 @@ export interface BizProcess extends LowCodeWidget.BasicSchema {
328
328
  export interface ApprovalProcess extends LowCodeWidget.BasicSchema {
329
329
  props: ApprovalProcessProps;
330
330
  }
331
+ export interface CardList extends LowCodeWidget.BasicSchema {
332
+ props: CardListProps;
333
+ children: CardHeaderLeft[] | CardHeaderRight[] | CardContent[] | CardOpeBtn[];
334
+ }
335
+ export interface CardHeaderLeft extends LowCodeWidget.BasicSchema {
336
+ props: CardHeaderLeftProps;
337
+ }
338
+ export interface CardHeaderRight extends LowCodeWidget.BasicSchema {
339
+ props: CardHeaderRightProps;
340
+ }
341
+ export interface CardContent extends LowCodeWidget.BasicSchema {
342
+ props: CardContentProps;
343
+ }
344
+ export interface CardOpeBtn extends LowCodeWidget.BasicSchema {
345
+ props: CardOpeBtnProps;
346
+ }
331
347
  /**
332
348
  * type 和 类型的映射关系
333
349
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gct-paas/schema",
3
- "version": "0.1.4-dev.17",
3
+ "version": "0.1.4-dev.18",
4
4
  "type": "module",
5
5
  "description": "paas 平台 schema 架构包",
6
6
  "loader": "dist/index.esm.min.js",
@@ -49,7 +49,7 @@
49
49
  },
50
50
  "dependencies": {
51
51
  "@gct-paas/api": "^0.1.2-dev.1",
52
- "@gct-paas/core": "0.1.4-dev.17",
52
+ "@gct-paas/core": "0.1.4-dev.18",
53
53
  "lodash-es": "^4.17.23",
54
54
  "vue": "^3.5.30"
55
55
  },
@@ -58,5 +58,5 @@
58
58
  "@gct-paas/core": "*",
59
59
  "vue": ">=3"
60
60
  },
61
- "gitHead": "386e2564d23891fd28c72e649788697ad12b7768"
61
+ "gitHead": "d79e561695bc9a4ff14b7c1bc735a595a32ed3e9"
62
62
  }