@webitel/ui-sdk 2.0.16-10 → 2.0.16-13
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/img/sprite/idle.svg +4 -0
- package/dist/img/sprite/index.js +1 -1
- package/dist/ui-sdk.common.js +14 -12
- package/dist/ui-sdk.common.js.map +1 -1
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.umd.js +14 -12
- 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/molecules/wt-select/wt-select.vue +5 -3
- package/src/locale/en/en.js +1 -0
- package/src/locale/ru/ru.js +1 -0
- package/src/locale/ua/ua.js +1 -0
package/package.json
CHANGED
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
<!-- Slot that is used for all selected options (tags)-->
|
|
40
40
|
<template slot="tag" slot-scope="{ option }">
|
|
41
41
|
<span class="multiselect__custom-tag">
|
|
42
|
-
|
|
42
|
+
{{ getOptionLabel({ option, optionLabel }) }}
|
|
43
43
|
</span>
|
|
44
44
|
</template>
|
|
45
45
|
|
|
@@ -141,7 +141,6 @@ export default {
|
|
|
141
141
|
|
|
142
142
|
optionLabel: {
|
|
143
143
|
type: String,
|
|
144
|
-
default: 'name',
|
|
145
144
|
},
|
|
146
145
|
|
|
147
146
|
searchMethod: {
|
|
@@ -226,11 +225,14 @@ export default {
|
|
|
226
225
|
|
|
227
226
|
methods: {
|
|
228
227
|
getOptionLabel({ option, optionLabel }) {
|
|
228
|
+
const defaultOptionLabel = 'name';
|
|
229
|
+
|
|
230
|
+
if (optionLabel) return option[optionLabel];
|
|
229
231
|
if (option.locale) {
|
|
230
232
|
if (Array.isArray(option.locale)) return this.$tc(...option.locale);
|
|
231
233
|
return this.$t(option.locale);
|
|
232
234
|
}
|
|
233
|
-
return option[
|
|
235
|
+
return option[defaultOptionLabel] || option;
|
|
234
236
|
},
|
|
235
237
|
handleSearchChange(search) {
|
|
236
238
|
if (!this.isApiMode) return;
|
package/src/locale/en/en.js
CHANGED
package/src/locale/ru/ru.js
CHANGED