atr-components 0.2.205 → 0.2.207
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/lib/shared/form/form.component.mjs +4 -2
- package/esm2020/lib/shared/table/table.component.mjs +8 -1
- package/fesm2015/atr-components.mjs +10 -1
- package/fesm2015/atr-components.mjs.map +1 -1
- package/fesm2020/atr-components.mjs +10 -1
- package/fesm2020/atr-components.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -2923,6 +2923,13 @@ class AtrTableComponent {
|
|
|
2923
2923
|
// this.queryOpts.headers.forEach((c: any, index: any) => {
|
|
2924
2924
|
// c.isShow = this.isCollapse ? index < this.queryOpts.showNum : true;
|
|
2925
2925
|
// });
|
|
2926
|
+
let action = {
|
|
2927
|
+
name: '收起/展开',
|
|
2928
|
+
code: 'collapse',
|
|
2929
|
+
data: this.isCollapse,
|
|
2930
|
+
value: this.isCollapse,
|
|
2931
|
+
};
|
|
2932
|
+
this.headerAction.emit(action);
|
|
2926
2933
|
}
|
|
2927
2934
|
resetForm() {
|
|
2928
2935
|
this.atrForm.reset();
|
|
@@ -4081,7 +4088,9 @@ class AtrFormComponent {
|
|
|
4081
4088
|
list.forEach((dic) => {
|
|
4082
4089
|
if (dic.value == value[index]) {
|
|
4083
4090
|
value[index] = dic.nzValueProperty;
|
|
4084
|
-
|
|
4091
|
+
if (dic.children) {
|
|
4092
|
+
value = this.getCascaderDefaultValue(dic.children, index + 1, value);
|
|
4093
|
+
}
|
|
4085
4094
|
return;
|
|
4086
4095
|
}
|
|
4087
4096
|
});
|