@webitel/ui-sdk 3.1.1 → 3.1.3
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/ui-sdk.common.js +37 -29
- package/dist/ui-sdk.common.js.map +1 -1
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.umd.js +37 -29
- package/dist/ui-sdk.umd.js.map +1 -1
- package/dist/ui-sdk.umd.min.js +1 -1
- package/dist/ui-sdk.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/organisms/wt-table/wt-table.vue +10 -1
- package/src/store/BaseStoreModules/CardStoreModule.js +3 -3
package/package.json
CHANGED
|
@@ -123,7 +123,16 @@ export default {
|
|
|
123
123
|
|
|
124
124
|
dataHeaders() {
|
|
125
125
|
return this.headers
|
|
126
|
-
|
|
126
|
+
.filter((header) => header.show === undefined || header.show)
|
|
127
|
+
.map((header) => {
|
|
128
|
+
if (!header.text && header.locale) {
|
|
129
|
+
return {
|
|
130
|
+
...header,
|
|
131
|
+
text: typeof header.locale === 'string' ? this.$t(header.locale) : this.$t(...header.locale),
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
return header;
|
|
135
|
+
});
|
|
127
136
|
},
|
|
128
137
|
|
|
129
138
|
columnsStyle() {
|
|
@@ -18,20 +18,20 @@ export default class CardStoreModule extends BaseStoreModule {
|
|
|
18
18
|
},
|
|
19
19
|
LOAD_ITEM: async (context) => {
|
|
20
20
|
if (context.state.itemId) {
|
|
21
|
-
const item = await context.dispatch('GET_ITEM');
|
|
21
|
+
const item = await context.dispatch('api/GET_ITEM');
|
|
22
22
|
context.commit('SET_ITEM', item);
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
ADD_ITEM: async (context) => {
|
|
26
26
|
if (!context.state.itemId) {
|
|
27
|
-
const { id } = await context.dispatch('POST_ITEM');
|
|
27
|
+
const { id } = await context.dispatch('api/POST_ITEM');
|
|
28
28
|
await context.dispatch('SET_ITEM_ID', id);
|
|
29
29
|
context.dispatch('LOAD_ITEM');
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
UPDATE_ITEM: async (context) => {
|
|
33
33
|
if (context.state.itemInstance._dirty) {
|
|
34
|
-
await context.dispatch('UPD_ITEM');
|
|
34
|
+
await context.dispatch('api/UPD_ITEM');
|
|
35
35
|
context.dispatch('LOAD_ITEM');
|
|
36
36
|
}
|
|
37
37
|
},
|