feat: establish composed color field and input group protocols

This commit is contained in:
maoyingjie
2026-10-25 15:20:02 +08:00
parent a41517aa76
commit db18d0d3da
31 changed files with 1859 additions and 39 deletions
+6 -1
View File
@@ -1,5 +1,9 @@
<script setup lang="ts">
import { ref } from "vue";
import ColorFieldProtocolLab from "./ColorFieldProtocolLab.vue";
const colorFieldProtocol =
typeof window !== "undefined" &&
new URLSearchParams(window.location.search).has("color-field-protocol");
import ColorSliderFoundationLab from "./ColorSliderFoundationLab.vue";
const colorSliderFoundation =
typeof window !== "undefined" &&
@@ -47,7 +51,8 @@ function save() {
}
</script>
<template>
<ColorSliderFoundationLab v-if="colorSliderFoundation" />
<ColorFieldProtocolLab v-if="colorFieldProtocol" />
<ColorSliderFoundationLab v-else-if="colorSliderFoundation" />
<ColorInputFoundationLab v-else-if="colorInputFoundation" />
<ColorFoundationLab v-else-if="colorFoundation" />
<RangeCalendarFoundationLab v-else-if="rangeFoundation" />