(component): update

This commit is contained in:
就眠儀式 2022-10-18 00:39:48 +08:00
parent e141750076
commit b138bdb7fd
12 changed files with 15 additions and 13 deletions

View File

@ -30,8 +30,8 @@ const classes = computed(() => {
});
const styles = computed<StyleValue>(() => {
return [props.color ? `background-color: ${props.color}` : ""]
})
return [props.color ? `background-color: ${props.color}` : ""];
});
</script>
<template>

View File

@ -44,7 +44,7 @@ import {
useResizeObserver,
useThrottleFn,
} from "@vueuse/core";
import { PopperTrigger } from '../tooltip/index.vue';
import { PopperTrigger } from "../tooltip/index.vue";
export interface PopperProps {
el: HTMLElement;

View File

@ -1,2 +1,2 @@
export type RippleType = "out" | "inset";
export type RippleTrigger = "always" | "mouseenter" | "click"
export type RippleTrigger = "always" | "mouseenter" | "click";

View File

@ -31,7 +31,9 @@ const props = withDefaults(defineProps<SelectOptionProps>(), {
const searchValue: Ref<string> = inject("searchValue") as Ref<string>;
const selectRef: Ref<HTMLElement> = inject("selectRef") as Ref<HTMLElement>;
const selectedValue: WritableComputedRef<any> = inject("selectedValue") as WritableComputedRef<any>;
const selectedValue: WritableComputedRef<any> = inject(
"selectedValue"
) as WritableComputedRef<any>;
const multiple: ComputedRef = inject("multiple") as ComputedRef;
const handleSelect = () => {

View File

@ -1,7 +1,7 @@
<script lang="ts">
export default {
name: "StandardVue",
}
};
</script>
<script setup lang="ts">

View File

@ -1,7 +1,7 @@
<script lang="ts">
export default {
name: "StandardRange",
}
};
</script>
<script setup lang="ts">

View File

@ -1,7 +1,7 @@
<script lang="ts">
export default {
name: "Vertical",
}
};
</script>
<script setup lang="ts">

View File

@ -1,7 +1,7 @@
<script lang="ts">
export default {
name: "VerticalRange",
}
};
</script>
<script setup lang="ts">