Loading package.json +1 −1 Original line number Diff line number Diff line { "name": "@d.malygin/UI_storybook", "version": "1.0.15", "version": "1.0.16", "type": "module", "scripts": { "dev": "vite", Loading src/components/SelectButton/SelectButton.vue +6 −2 Original line number Diff line number Diff line Loading @@ -62,7 +62,10 @@ const buttonHeight = computed(() => { return '40px'; }); const calcItemColor = (item: ISBOption) => { if (((item.value ?? null) && value.value === item.value) || String(value.value) === item.label) { if ( (item.value !== null && item.value !== undefined && value.value === item.value) || String(value.value) === item.label ) { const activeColor = item.activeColor; if (!activeColor) { return color.value; Loading @@ -79,7 +82,8 @@ const calcItemColor = (item: ISBOption) => { } }; const calcBGColorItem = (item: ISBOption) => { return ((value.value ?? false) && value.value === item.value) || String(value.value) === item.label return (value.value !== null && value.value !== undefined && value.value === item.value) || String(value.value) === item.label ? activeBGColorComputed.value : item.backgroundColor ? convertThemeToColor(item.backgroundColor, item.darknessBackgroundColor ?? '500') Loading Loading
package.json +1 −1 Original line number Diff line number Diff line { "name": "@d.malygin/UI_storybook", "version": "1.0.15", "version": "1.0.16", "type": "module", "scripts": { "dev": "vite", Loading
src/components/SelectButton/SelectButton.vue +6 −2 Original line number Diff line number Diff line Loading @@ -62,7 +62,10 @@ const buttonHeight = computed(() => { return '40px'; }); const calcItemColor = (item: ISBOption) => { if (((item.value ?? null) && value.value === item.value) || String(value.value) === item.label) { if ( (item.value !== null && item.value !== undefined && value.value === item.value) || String(value.value) === item.label ) { const activeColor = item.activeColor; if (!activeColor) { return color.value; Loading @@ -79,7 +82,8 @@ const calcItemColor = (item: ISBOption) => { } }; const calcBGColorItem = (item: ISBOption) => { return ((value.value ?? false) && value.value === item.value) || String(value.value) === item.label return (value.value !== null && value.value !== undefined && value.value === item.value) || String(value.value) === item.label ? activeBGColorComputed.value : item.backgroundColor ? convertThemeToColor(item.backgroundColor, item.darknessBackgroundColor ?? '500') Loading