@byteluck-fe/model-driven-controls 7.0.0-props.21 → 7.0.0-props.23

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.
@@ -53,7 +53,7 @@ interface CounterPropertyInterface extends BaseControlPropertyInterface {
53
53
  controlPosition: 'both' | 'right';
54
54
  }
55
55
  declare class CounterPropertyRules extends BaseControlPropertyRules {
56
- defaultValue: RuleItem;
56
+ defaultValue: RuleItem[];
57
57
  max: RuleItem;
58
58
  constructor(props: CounterProperty);
59
59
  }
@@ -1,4 +1,10 @@
1
+ import { BaseControlPropertyRules } from '@byteluck-fe/model-driven-core';
1
2
  import { AttachmentProperty, AttachmentPropertyInterface } from '../Attachment';
3
+ import { RuleItem } from 'async-validator';
4
+ declare class ImageControlPropertyRules extends BaseControlPropertyRules {
5
+ maxSize: RuleItem;
6
+ constructor(props: ImageProperty);
7
+ }
2
8
  interface ImagePropertyInterface extends AttachmentPropertyInterface {
3
9
  /**
4
10
  * 压缩类型;取值:0:不压缩;1:比例压缩;2:像素压缩;
@@ -23,13 +29,19 @@ interface ImagePropertyInterface extends AttachmentPropertyInterface {
23
29
  * @defaultValue []
24
30
  * @public
25
31
  */
26
- maxWidthHeight: number[];
32
+ /**
33
+ * 最大文件大小,单位为字节
34
+ * @defaultValue 104857600
35
+ * @public
36
+ */
37
+ maxSize: number;
27
38
  }
28
39
  declare class ImageProperty extends AttachmentProperty implements ImagePropertyInterface {
40
+ static readonly Rules: typeof ImageControlPropertyRules;
29
41
  compressTypeCode: string;
30
42
  compressRatio: number;
31
43
  maxPixel: number;
32
- maxWidthHeight: number[];
44
+ maxSize: number;
33
45
  constructor(props?: Partial<ImageProperty>);
34
46
  }
35
47
  export default ImageProperty;
@@ -22,18 +22,11 @@ interface CollapsePropertyInterface extends LayoutControlPropertyInterface {
22
22
  * @public
23
23
  */
24
24
  isShowHighlightBar: boolean;
25
- /**
26
- * 幽灵折叠面板,使折叠面板透明且无边框
27
- * @defaultValue false
28
- * @public
29
- */
30
- ghost: boolean;
31
25
  }
32
26
  declare class CollapseControlProperty extends LayoutControlProperty implements CollapsePropertyInterface {
33
27
  accordion: boolean;
34
28
  bordered: boolean;
35
29
  isShowHighlightBar: boolean;
36
- ghost: boolean;
37
30
  constructor(props?: Partial<CollapseControlProperty>);
38
31
  }
39
32
  export default CollapseControlProperty;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byteluck-fe/model-driven-controls",
3
- "version": "7.0.0-props.21",
3
+ "version": "7.0.0-props.23",
4
4
  "description": "> TODO: description",
5
5
  "author": "郝晨光 <2293885211@qq.com>",
6
6
  "homepage": "",
@@ -31,5 +31,5 @@
31
31
  "@byteluck-fe/model-driven-shared": "7.0.0-props.19",
32
32
  "async-validator": "3.5.1"
33
33
  },
34
- "gitHead": "dbdaee2fd60121b8b9ae70d322a69e971554188a"
34
+ "gitHead": "e9963dd4239ad91950b3fbc442608c33adfbf4f2"
35
35
  }