@formixru/b2b-ui 1.0.2 → 1.0.4
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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## v1.0.4
|
|
2
|
+
|
|
3
|
+
- Добавлены новые переменные для .slider-nav
|
|
4
|
+
- Исправлены ошибки в работе FileInput
|
|
5
|
+
|
|
6
|
+
## v1.0.3
|
|
7
|
+
|
|
8
|
+
- Исправлены ошибки в работе SuggestInput
|
|
9
|
+
|
|
1
10
|
## v1.0.2
|
|
2
11
|
|
|
3
12
|
- Исправлены ошибки в работе FileInput - теперь при загрузке вместе с содержимым файла (поле `file`) отправляется его имя (поле `name`)
|
package/package.json
CHANGED
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
|
|
49
49
|
import { pluralize } from '@advdominion/pluralize';
|
|
50
50
|
import mime from 'mime';
|
|
51
|
-
import { computed, onMounted, ref, toRefs } from 'vue';
|
|
51
|
+
import { computed, nextTick, onMounted, ref, toRefs } from 'vue';
|
|
52
52
|
|
|
53
53
|
const ICONS_PATH = window.ICONS_PATH;
|
|
54
54
|
|
|
@@ -265,6 +265,7 @@ const uploadFile = async (file) => {
|
|
|
265
265
|
throw response;
|
|
266
266
|
}
|
|
267
267
|
files.value[index].uploaded = true;
|
|
268
|
+
await nextTick();
|
|
268
269
|
emit('upload');
|
|
269
270
|
} catch (error) {
|
|
270
271
|
if (error.status === 401) {
|
|
@@ -56,6 +56,8 @@ $b: '.slider-nav';
|
|
|
56
56
|
|
|
57
57
|
&:not(#{$b}__button_disabled):hover,
|
|
58
58
|
&:not(#{$b}__button_disabled):focus-visible {
|
|
59
|
+
background-color: $slider-nav-button-fill-white-active-bg;
|
|
60
|
+
border-color: $slider-nav-button-fill-white-active-border-color;
|
|
59
61
|
color: $slider-nav-button-fill-white-active-color;
|
|
60
62
|
}
|
|
61
63
|
}
|
|
@@ -156,7 +156,7 @@ const showSuggests = ref(false);
|
|
|
156
156
|
const itemHeight = ref(0);
|
|
157
157
|
|
|
158
158
|
watch(showSuggests, async (value) => {
|
|
159
|
-
if (value) {
|
|
159
|
+
if (value && suggests.value.length > 0) {
|
|
160
160
|
await nextTick();
|
|
161
161
|
itemHeight.value = $list.value.querySelector('.suggest-input__list-item').offsetHeight;
|
|
162
162
|
} else {
|
package/src/variables.scss
CHANGED
|
@@ -1049,7 +1049,10 @@ $slider-nav-button-fill-white-bg: $color-white !default;
|
|
|
1049
1049
|
$slider-nav-button-fill-white-border-color: $color-white !default;
|
|
1050
1050
|
$slider-nav-button-fill-white-shadow: $shadow !default;
|
|
1051
1051
|
$slider-nav-button-fill-white-color: $color-grey-70 !default;
|
|
1052
|
+
|
|
1053
|
+
$slider-nav-button-fill-white-active-bg: $slider-nav-button-fill-white-bg !default;
|
|
1052
1054
|
$slider-nav-button-fill-white-active-color: $color-grey-40 !default;
|
|
1055
|
+
$slider-nav-button-fill-white-active-border-color: $slider-nav-button-fill-white-border-color !default;
|
|
1053
1056
|
|
|
1054
1057
|
/********** Пагинация слайдеров (.slider-pagination) **********/
|
|
1055
1058
|
|