@byteluck-fe/model-driven-core 4.36.0-lx2 → 6.1.0-1-beta.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.
@@ -37,6 +37,18 @@ export declare class AutoWidth {
37
37
  flex: number;
38
38
  constructor(props?: Partial<AutoWidth>);
39
39
  }
40
+ export declare class RowHeight {
41
+ rowHeightType: 'auto' | 'fixed';
42
+ minRows: number;
43
+ maxRows?: number;
44
+ fiexdRow: number;
45
+ constructor(props?: Partial<RowHeight>);
46
+ }
47
+ export declare class MetaRowHeight {
48
+ pc: RowHeight;
49
+ mobile: RowHeight;
50
+ constructor(props?: Partial<MetaRowHeight>);
51
+ }
40
52
  export declare class MetaWidth extends AutoWidth {
41
53
  width: number;
42
54
  widthType: 'px' | 'auto';
@@ -99,7 +111,7 @@ export declare class ListBind {
99
111
  export declare class FieldBindItem {
100
112
  fieldName: string;
101
113
  fieldCode: string;
102
- fieldType: FieldTypes;
114
+ fieldType: string;
103
115
  constructor(props?: Partial<FieldBindItem>);
104
116
  }
105
117
  export declare class SubListItem extends FormBind {
@@ -259,9 +271,20 @@ export declare class DisplayBoListItem {
259
271
  /**
260
272
  * 字段数据类型
261
273
  */
262
- fieldType?: FieldTypes;
274
+ fieldType?: string;
263
275
  constructor(props?: Partial<DisplayBoListItem>);
264
276
  }
277
+ export declare class OptionDisplayConfigItem {
278
+ /**
279
+ * 标题
280
+ */
281
+ title: string;
282
+ /**
283
+ * 字段数据类型
284
+ */
285
+ displayBoList: DisplayBoListItem[];
286
+ constructor(props?: Partial<OptionDisplayConfigItem>);
287
+ }
265
288
  /**
266
289
  * 数据源排序项
267
290
  * @public
@@ -553,8 +576,14 @@ export declare class ImageOptionSetting extends OptionSetting {
553
576
  type: 'attachment' | 'src';
554
577
  constructor(props?: Partial<ImageOptionSetting>);
555
578
  }
579
+ export declare class AiOptionSetting extends OptionSetting {
580
+ cueWord: string;
581
+ checked: boolean;
582
+ constructor(props?: Partial<AiOptionSetting>);
583
+ }
556
584
  export declare function initOptions(options?: Partial<OptionSetting>[]): OptionSetting[];
557
585
  export declare function initImageOptions(options?: Partial<ImageOptionSetting>[]): ImageOptionSetting[];
586
+ export declare function initAiOptions(options?: Partial<AiOptionSetting>[]): AiOptionSetting[];
558
587
  /**
559
588
  * 对象类型数据绑定配置
560
589
  * @public
@@ -768,12 +797,10 @@ export declare enum COMMON_SETTING_TYPE {
768
797
  REVISIONS_MODE = "revisionsMode",
769
798
  ALLOW_COPY_OPTIONS = "allowCopyOptions",
770
799
  IS_PASTE = "isPaste",
771
- CAPTION_SIZE = "captionSize",
772
- CAPTION_COLOR = "captionColor",
773
- IS_CAPTION_ITALIC = "isCaptionItalic",
774
- ONLY_ALLOW_TAKE_PHOTO = "onlyAllowTakePhoto",
775
- FORBID_DOWNLOAD = "forbidDownload",
776
- ACCESS_CONTROL = "accessControl"
800
+ SORTABLE = "sortable",
801
+ IS_SHOW_SIMPLE_SEARCH = "isShowSimpleSearch",
802
+ IS_SHOW_TOOL_BAE = "isShowToolbar",
803
+ MAIN_DEPT_FLAG = "mainDeptFlag"
777
804
  }
778
805
  export declare enum PAGE_STATUS {
779
806
  UNKNOWN = 0,
@@ -876,23 +903,42 @@ export declare class RowStyleRule {
876
903
  * @public
877
904
  */
878
905
  name: string;
879
- /**
880
- * 颜色值。theme:跟随主题色;#4c78fc:具体颜色值
881
- * @defaultValue 'theme'
882
- * @public
883
- */
884
- color: string;
906
+ settings: RowStyleSettings[];
885
907
  /**
886
908
  * 过滤条件
887
909
  * @defaultValue []
888
910
  * @public
889
911
  */
890
912
  filters?: Array<FieldFilterCondition | FieldFilterConditions>;
913
+ script?: string;
891
914
  constructor(props?: Partial<RowStyleRule>);
892
915
  }
893
- export declare class RowStyleRuleScript {
894
- id: string;
895
- script: string;
916
+ export declare class RowStyleSettings {
917
+ /**
918
+ * 颜色值。theme:跟随主题色;#4c78fc:具体颜色值
919
+ * @defaultValue 'theme'
920
+ * @public
921
+ */
896
922
  color: string;
897
- constructor(props: Partial<RowStyleRuleScript>);
923
+ /**
924
+ * 生效列字段
925
+ */
926
+ fieldCodes: string[];
927
+ /**
928
+ * 样式类型,background单元格背景色,fontColor单元格字体色
929
+ */
930
+ type: 'background' | 'fontColor';
931
+ /**
932
+ * 作用范围,row整行,col整列
933
+ */
934
+ scope: 'row' | 'col';
935
+ constructor(props: Partial<RowStyleSettings>);
936
+ }
937
+ export declare class RowStyle {
938
+ type: 'none' | 'interval' | 'rules';
939
+ interval: {
940
+ color?: string;
941
+ };
942
+ rules: RowStyleRule[];
943
+ constructor(props?: Partial<RowStyle>);
898
944
  }
@@ -1,2 +1,2 @@
1
- import { DataBind, ObjectDataBind } from "framework";
1
+ import { DataBind, ObjectDataBind } from 'framework';
2
2
  export declare function isDataBind(dataBind: DataBind | ObjectDataBind): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byteluck-fe/model-driven-core",
3
- "version": "4.36.0-lx2",
3
+ "version": "6.1.0-1-beta.1",
4
4
  "description": "model engine core",
5
5
  "author": "郝晨光 <2293885211@qq.com>",
6
6
  "homepage": "",
@@ -26,9 +26,9 @@
26
26
  "postpublish": "node ../../scripts/postpublish.js"
27
27
  },
28
28
  "dependencies": {
29
- "@byteluck-fe/model-driven-shared": "2.9.1-beta.1",
29
+ "@byteluck-fe/model-driven-shared": "6.1.0-1-beta.1",
30
30
  "async-validator": "3.5.1",
31
31
  "tslib": "^2.1.0"
32
32
  },
33
- "gitHead": "867a3a2b9bd62b7279cf01baee7a9dbd1fff8ed4"
33
+ "gitHead": "f568b10a1d990a9b004146c172053abae6a7263b"
34
34
  }