Skip to content

Commit

Permalink
fix: types
Browse files Browse the repository at this point in the history
  • Loading branch information
shamilfrontend committed May 31, 2022
1 parent bb88049 commit e4dff26
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
<script lang="ts">
import { get, isPlainObject } from 'lodash-es';
import { defineComponent, computed, inject, ref, watch } from 'vue';
import type { CSSProperties } from 'vue';
import type { StyleValue } from 'vue';
import { getConfig } from '@/qComponents/config';
import { QCheckbox } from '@/qComponents/QCheckbox';
Expand Down Expand Up @@ -114,7 +114,7 @@ export default defineComponent({
const multiple = qSelect.multiple ?? ref(false);
const zIndex = ref<number>(DEFAULT_Z_INDEX);
const styles = computed<CSSProperties>(() => ({
const styles = computed<StyleValue>(() => ({
zIndex: zIndex.value,
width: props.width ? `${props.width}px` : undefined
}));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { ComputedRef, Ref, CSSProperties } from 'vue';
import type { ComputedRef, Ref, StyleValue } from 'vue';

import type { QScrollbarInstance } from '@/qComponents/QScrollbar';
import type { QSelectState } from '@/qComponents/QSelect';
Expand All @@ -19,7 +19,7 @@ export interface QSelectDropdownProps {

export interface QSelectDropdownInstance {
zIndex: Ref<number>;
styles: ComputedRef<CSSProperties>;
styles: ComputedRef<StyleValue>;
isVisibleOptionExist: ComputedRef<boolean>;
areAllSelected: ComputedRef<boolean>;
isIndeterminate: ComputedRef<boolean>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export default defineComponent({
setup(props, ctx): QSelectTagsInstance {
const input = ref<Nullable<HTMLInputElement>>(null);
const qSelect = inject<Nullable<QSelectProvider>>('qSelect', null);
const { selected = ref([]), query = ref('') } = toRefs(
const { selected = ref<QOptionModel[]>([]), query = ref('') } = toRefs(
qSelect?.state ?? {}
);
Expand Down

0 comments on commit e4dff26

Please sign in to comment.