Skip to content

Commit 2dbc3e8

Browse files
committed
refactor: resolve eslint warnings
1 parent 9673820 commit 2dbc3e8

File tree

5 files changed

+5
-18
lines changed

5 files changed

+5
-18
lines changed

packages/coreui-vue/src/components/conditional-teleport/CConditionalTeleport.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@ const CConditionalTeleport = defineComponent({
1919
* @since v5.0.0-beta.1
2020
*/
2121
container: {
22-
type: [Object, String] as PropType<
23-
HTMLElement | (() => HTMLElement) | string
24-
>,
22+
type: [Object, String] as PropType<HTMLElement | (() => HTMLElement) | string>,
2523
default: 'body',
2624
},
2725
/**

packages/coreui-vue/src/components/dropdown/CDropdown.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,7 @@ const CDropdown = defineComponent({
6565
* @since v5.0.0-beta.1
6666
*/
6767
container: {
68-
type: [Object, String] as PropType<
69-
HTMLElement | (() => HTMLElement) | string
70-
>,
68+
type: [Object, String] as PropType<HTMLElement | (() => HTMLElement) | string>,
7169
default: 'body',
7270
},
7371
/**

packages/coreui-vue/src/components/sidebar/CSidebar.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ const CSidebar = defineComponent({
9696
const mobile = ref()
9797
const visibleMobile = ref(false)
9898
const visibleDesktop = ref(
99-
props.visible !== undefined ? props.visible : props.overlaid ? false : true,
99+
props.visible === undefined ? (props.overlaid ? false : true) : props.visible,
100100
)
101101

102102
watch(inViewport, () => {

packages/coreui-vue/src/components/tooltip/CTooltip.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@ const CTooltip = defineComponent({
2626
* @since v5.0.0-beta.1
2727
*/
2828
container: {
29-
type: [Object, String] as PropType<
30-
HTMLElement | (() => HTMLElement) | string
31-
>,
29+
type: [Object, String] as PropType<HTMLElement | (() => HTMLElement) | string>,
3230
default: 'body',
3331
},
3432
/**
Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
1-
/*
21
declare module '*.vue' {
3-
import type { DefineComponent } from 'vue'
2+
import { DefineComponent } from 'vue'
43
const component: DefineComponent<{}, {}, any>
54
export default component
65
}
7-
*/
8-
declare module '*.vue' {
9-
import { DefineComponent } from 'vue';
10-
const component: DefineComponent<{}, {}, any>;
11-
export default component;
12-
}

0 commit comments

Comments
 (0)