feat: establish color slider geometry and picker composition

This commit is contained in:
maoyingjie
2026-10-25 14:37:48 +08:00
parent e59d1bea8b
commit 712b6c6037
28 changed files with 1760 additions and 7 deletions
+6 -1
View File
@@ -1,5 +1,9 @@
<script setup lang="ts">
import { ref } from "vue";
import ColorSliderFoundationLab from "./ColorSliderFoundationLab.vue";
const colorSliderFoundation =
typeof window !== "undefined" &&
new URLSearchParams(window.location.search).has("color-slider-foundation");
import ColorInputFoundationLab from "./ColorInputFoundationLab.vue";
const colorInputFoundation =
typeof window !== "undefined" &&
@@ -43,7 +47,8 @@ function save() {
}
</script>
<template>
<ColorInputFoundationLab v-if="colorInputFoundation" />
<ColorSliderFoundationLab v-if="colorSliderFoundation" />
<ColorInputFoundationLab v-else-if="colorInputFoundation" />
<ColorFoundationLab v-else-if="colorFoundation" />
<RangeCalendarFoundationLab v-else-if="rangeFoundation" />
<SelectLifecycle v-else-if="selectLifecycle" />