Commit 5126684f authored by Дмитрий Малюгин's avatar Дмитрий Малюгин 🕓
Browse files

fix: styles (add "scoped") and watcher in 'Paginator'

parent 8d1d03d1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -65,7 +65,7 @@ const color = computed(() => convertThemeToColor(props.theme, props.darknessThem
const textColor = computed(() => convertThemeToTextColor(props.theme, props.darknessTheme));

watch(itemsPerPage, (cur, prev) => {
  if (cur > prev) current.value = Math.ceil((current.value * prev) / cur);
  if (cur > prev) current.value = Math.round((current.value * prev) / cur);
  else current.value = Math.ceil((prev * (current.value - 1) + +cur) / cur);
});
</script>
+1 −1
Original line number Diff line number Diff line
@@ -29,7 +29,7 @@ defineProps<{
  </div>
</template>

<style>
<style scoped>
.item {
  position: relative;
  display: flex;