@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.
- package/dist/esm/columnControls/CustomColumn/designer.js +1 -0
- package/dist/esm/formControls/Counter/property.js +11 -9
- package/dist/esm/formControls/Image/designer.js +1 -4
- package/dist/esm/formControls/Image/property.js +24 -2
- package/dist/esm/layoutControls/Collapse/designer.js +0 -12
- package/dist/esm/layoutControls/Collapse/property.js +2 -3
- package/dist/esm/listControls/GridTable/designer.js +1 -0
- package/dist/index.umd.js +1 -1
- package/dist/types/formControls/Counter/property.d.ts +1 -1
- package/dist/types/formControls/Image/property.d.ts +14 -2
- package/dist/types/layoutControls/Collapse/property.d.ts +0 -7
- package/package.json +2 -2
|
@@ -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
|
-
|
|
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
|
-
|
|
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.
|
|
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": "
|
|
34
|
+
"gitHead": "e9963dd4239ad91950b3fbc442608c33adfbf4f2"
|
|
35
35
|
}
|