ngx-rs-ant 2.0.7 → 2.0.8
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/esm2020/box-container/PluginManager.mjs +5 -1
- package/esm2020/form/form.component.mjs +6 -3
- package/esm2020/types/component/form-item-component-base.mjs +23 -1
- package/esm2020/types/config/form-item-config-base.mjs +1 -9
- package/esm2020/types/config/page-item-config-base.mjs +1 -9
- package/fesm2015/ngx-rs-ant.mjs +32 -17
- package/fesm2015/ngx-rs-ant.mjs.map +1 -1
- package/fesm2020/ngx-rs-ant.mjs +30 -15
- package/fesm2020/ngx-rs-ant.mjs.map +1 -1
- package/form/form.component.d.ts +1 -0
- package/package.json +1 -1
- package/types/component/form-item-component-base.d.ts +22 -0
package/form/form.component.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ export declare class FormComponent extends UniqueId implements OnInit, OnChanges
|
|
|
29
29
|
submitCallback: EventEmitter<any>;
|
|
30
30
|
loading: boolean;
|
|
31
31
|
private changeFilter;
|
|
32
|
+
private valueChange;
|
|
32
33
|
protected context: any;
|
|
33
34
|
protected extraValidateMessage: any;
|
|
34
35
|
constructor(viewContainerRef: ViewContainerRef, service: FormService, elementRef: ElementRef);
|
package/package.json
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ComponentBase } from "./component-base";
|
|
2
|
+
import { Subject } from "rxjs";
|
|
2
3
|
export declare class FormItemComponentBase extends ComponentBase {
|
|
3
4
|
/**
|
|
4
5
|
* 编辑模式,在设计器中为true,用于区分组件设计和应用状态
|
|
@@ -24,6 +25,22 @@ export declare class FormItemComponentBase extends ComponentBase {
|
|
|
24
25
|
* 表单当前model
|
|
25
26
|
*/
|
|
26
27
|
model: any;
|
|
28
|
+
/**
|
|
29
|
+
* 属性值更新订阅,用于属性映射,表单组件驱动更新其他表单组件的值
|
|
30
|
+
*/
|
|
31
|
+
valueChange?: Subject<{
|
|
32
|
+
field: string;
|
|
33
|
+
value: any;
|
|
34
|
+
onlyInit?: boolean;
|
|
35
|
+
}>;
|
|
36
|
+
/**
|
|
37
|
+
* 自定义属性值更新函数,在收到属性值更新事件时自定义更新逻辑,如转换数据类型为数组
|
|
38
|
+
*/
|
|
39
|
+
customValueChanged?: (change: {
|
|
40
|
+
field: string;
|
|
41
|
+
value: any;
|
|
42
|
+
onlyInit?: boolean;
|
|
43
|
+
}) => void;
|
|
27
44
|
/**
|
|
28
45
|
* 打开表单的组件,一般用于刷新上层表格
|
|
29
46
|
*/
|
|
@@ -32,4 +49,9 @@ export declare class FormItemComponentBase extends ComponentBase {
|
|
|
32
49
|
* 表单只读状态,用于区分组件只读状态
|
|
33
50
|
*/
|
|
34
51
|
readonly: boolean;
|
|
52
|
+
protected defaultValueChanged(change: {
|
|
53
|
+
field: string;
|
|
54
|
+
value: any;
|
|
55
|
+
onlyInit?: boolean;
|
|
56
|
+
}): void;
|
|
35
57
|
}
|