@byteluck-fe/model-driven-core 4.36.0-lx2 → 6.1.0-1-beta.2

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,11 @@ 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",
804
+ IS_INTERNATIONAL = "isInternational"
777
805
  }
778
806
  export declare enum PAGE_STATUS {
779
807
  UNKNOWN = 0,
@@ -876,23 +904,42 @@ export declare class RowStyleRule {
876
904
  * @public
877
905
  */
878
906
  name: string;
879
- /**
880
- * 颜色值。theme:跟随主题色;#4c78fc:具体颜色值
881
- * @defaultValue 'theme'
882
- * @public
883
- */
884
- color: string;
907
+ settings: RowStyleSettings[];
885
908
  /**
886
909
  * 过滤条件
887
910
  * @defaultValue []
888
911
  * @public
889
912
  */
890
913
  filters?: Array<FieldFilterCondition | FieldFilterConditions>;
914
+ script?: string;
891
915
  constructor(props?: Partial<RowStyleRule>);
892
916
  }
893
- export declare class RowStyleRuleScript {
894
- id: string;
895
- script: string;
917
+ export declare class RowStyleSettings {
918
+ /**
919
+ * 颜色值。theme:跟随主题色;#4c78fc:具体颜色值
920
+ * @defaultValue 'theme'
921
+ * @public
922
+ */
896
923
  color: string;
897
- constructor(props: Partial<RowStyleRuleScript>);
924
+ /**
925
+ * 生效列字段
926
+ */
927
+ fieldCodes: string[];
928
+ /**
929
+ * 样式类型,background单元格背景色,fontColor单元格字体色
930
+ */
931
+ type: 'background' | 'fontColor';
932
+ /**
933
+ * 作用范围,row整行,col整列
934
+ */
935
+ scope: 'row' | 'col';
936
+ constructor(props: Partial<RowStyleSettings>);
937
+ }
938
+ export declare class RowStyle {
939
+ type: 'none' | 'interval' | 'rules';
940
+ interval: {
941
+ color?: string;
942
+ };
943
+ rules: RowStyleRule[];
944
+ constructor(props?: Partial<RowStyle>);
898
945
  }
@@ -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.2",
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.2",
30
30
  "async-validator": "3.5.1",
31
31
  "tslib": "^2.1.0"
32
32
  },
33
- "gitHead": "867a3a2b9bd62b7279cf01baee7a9dbd1fff8ed4"
33
+ "gitHead": "eacb8b0bb68fec8e2fd4a2ca9d137397072ab5a8"
34
34
  }