feat: establish composed color field and input group protocols
This commit is contained in:
@@ -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" />
|
||||
|
||||
Reference in New Issue
Block a user