@shival99/z-ui 1.2.31 → 1.2.33
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.
|
@@ -3057,44 +3057,11 @@ class ZTableComponent {
|
|
|
3057
3057
|
this._dataForceUpdate.update(v => v + 1);
|
|
3058
3058
|
});
|
|
3059
3059
|
explicitEffect([this.zKey, this.zConfig], ([key, config]) => {
|
|
3060
|
-
|
|
3061
|
-
if (key && config.columns && config.columns.length > 0 && !this._configCacheLoaded) {
|
|
3060
|
+
if (key && config.columns && config.columns.length > 0) {
|
|
3062
3061
|
this._loadConfigCache();
|
|
3063
|
-
this._configCacheLoaded = true;
|
|
3064
3062
|
}
|
|
3065
3063
|
});
|
|
3066
3064
|
explicitEffect([this.zConfig], ([cfg]) => {
|
|
3067
|
-
// Skip applying initialState for properties that were loaded from cache
|
|
3068
|
-
// Cache values have priority over initialState
|
|
3069
|
-
if (this._configCacheLoaded) {
|
|
3070
|
-
// Only apply non-column-layout related initial state when cache is loaded
|
|
3071
|
-
const initial = cfg.initialState;
|
|
3072
|
-
if (initial) {
|
|
3073
|
-
// These are not stored in cache, so always apply them
|
|
3074
|
-
if (initial.sorting) {
|
|
3075
|
-
this.sorting.set(initial.sorting);
|
|
3076
|
-
}
|
|
3077
|
-
if (initial.columnFilters) {
|
|
3078
|
-
this.columnFilters.set(initial.columnFilters);
|
|
3079
|
-
}
|
|
3080
|
-
if (initial.globalFilter) {
|
|
3081
|
-
this.globalFilter.set(initial.globalFilter);
|
|
3082
|
-
}
|
|
3083
|
-
if (initial.expanded) {
|
|
3084
|
-
this.expanded.set(initial.expanded);
|
|
3085
|
-
}
|
|
3086
|
-
if (initial.rowSelection) {
|
|
3087
|
-
this.rowSelection.set(initial.rowSelection);
|
|
3088
|
-
}
|
|
3089
|
-
if (initial.rowPinning) {
|
|
3090
|
-
this.rowPinning.set(initial.rowPinning);
|
|
3091
|
-
}
|
|
3092
|
-
if (initial.pagination) {
|
|
3093
|
-
this.pagination.set(initial.pagination);
|
|
3094
|
-
}
|
|
3095
|
-
}
|
|
3096
|
-
return;
|
|
3097
|
-
}
|
|
3098
3065
|
const initial = cfg.initialState;
|
|
3099
3066
|
if (initial) {
|
|
3100
3067
|
if (initial.columnPinning) {
|
|
@@ -3146,6 +3113,7 @@ class ZTableComponent {
|
|
|
3146
3113
|
if (leftPinned.length > 0 || rightPinned.length > 0) {
|
|
3147
3114
|
this.columnPinning.set({ left: leftPinned, right: rightPinned });
|
|
3148
3115
|
}
|
|
3116
|
+
console.log('🚀 ~ this.columnPinning:', this.columnPinning);
|
|
3149
3117
|
});
|
|
3150
3118
|
explicitEffect([this.zConfig], ([cfg]) => {
|
|
3151
3119
|
if (cfg.enableRowPinning && !this.hasBodyRowSpan()) {
|