@byteluck-fe/model-driven-core 4.36.0-lx2 → 5.5.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.
@@ -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
@@ -768,12 +791,10 @@ export declare enum COMMON_SETTING_TYPE {
768
791
  REVISIONS_MODE = "revisionsMode",
769
792
  ALLOW_COPY_OPTIONS = "allowCopyOptions",
770
793
  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"
794
+ SORTABLE = "sortable",
795
+ IS_SHOW_SIMPLE_SEARCH = "isShowSimpleSearch",
796
+ IS_SHOW_TOOL_BAE = "isShowToolbar",
797
+ MAIN_DEPT_FLAG = "mainDeptFlag"
777
798
  }
778
799
  export declare enum PAGE_STATUS {
779
800
  UNKNOWN = 0,
@@ -876,23 +897,42 @@ export declare class RowStyleRule {
876
897
  * @public
877
898
  */
878
899
  name: string;
879
- /**
880
- * 颜色值。theme:跟随主题色;#4c78fc:具体颜色值
881
- * @defaultValue 'theme'
882
- * @public
883
- */
884
- color: string;
900
+ settings: RowStyleSettings[];
885
901
  /**
886
902
  * 过滤条件
887
903
  * @defaultValue []
888
904
  * @public
889
905
  */
890
906
  filters?: Array<FieldFilterCondition | FieldFilterConditions>;
907
+ script?: string;
891
908
  constructor(props?: Partial<RowStyleRule>);
892
909
  }
893
- export declare class RowStyleRuleScript {
894
- id: string;
895
- script: string;
910
+ export declare class RowStyleSettings {
911
+ /**
912
+ * 颜色值。theme:跟随主题色;#4c78fc:具体颜色值
913
+ * @defaultValue 'theme'
914
+ * @public
915
+ */
896
916
  color: string;
897
- constructor(props: Partial<RowStyleRuleScript>);
917
+ /**
918
+ * 生效列字段
919
+ */
920
+ fieldCodes: string[];
921
+ /**
922
+ * 样式类型,background单元格背景色,fontColor单元格字体色
923
+ */
924
+ type: 'background' | 'fontColor';
925
+ /**
926
+ * 作用范围,row整行,col整列
927
+ */
928
+ scope: 'row' | 'col';
929
+ constructor(props: Partial<RowStyleSettings>);
930
+ }
931
+ export declare class RowStyle {
932
+ type: 'none' | 'interval' | 'rules';
933
+ interval: {
934
+ color?: string;
935
+ };
936
+ rules: RowStyleRule[];
937
+ constructor(props?: Partial<RowStyle>);
898
938
  }
@@ -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": "5.5.0-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": "5.5.0-1",
30
30
  "async-validator": "3.5.1",
31
31
  "tslib": "^2.1.0"
32
32
  },
33
- "gitHead": "867a3a2b9bd62b7279cf01baee7a9dbd1fff8ed4"
33
+ "gitHead": "39c4a91b9c89f399f61799dcacb72bd666631f79"
34
34
  }