Skip to content

Commit

Permalink
fix: attempt to fix building issue
Browse files Browse the repository at this point in the history
  • Loading branch information
tikazyq committed Jun 24, 2024
1 parent 610cca1 commit fbb4fc9
Show file tree
Hide file tree
Showing 9 changed files with 41 additions and 38 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"prebuild": "pnpm run prebuild:gen",
"prebuild:gen": "pnpm run gen:index && pnpm run gen:svg",
"postbuild": "pnpm run postbuild:gen",
"postbuild:gen": "pnpm run gen:dts && pnpm run gen:interfaces",
"postbuild:gen": "pnpm run gen:interfaces",
"postbuild:dist:local": "node ./scripts/copy-dist-local.js",
"build": "pnpm run prebuild && pnpm run build:lib && pnpm run postbuild",
"build:dist:local": "pnpm run build && pnpm run postbuild:dist:local",
Expand Down
19 changes: 2 additions & 17 deletions src/components/button/Button.vue
Original file line number Diff line number Diff line change
@@ -1,24 +1,9 @@
<script setup lang="ts">
defineOptions({ name: 'ClButton' });
import { computed } from 'vue';
import { ButtonProps } from '@/components/button/button';
export interface ButtonProps {
tooltip?: string;
type?: BasicType;
size?: BasicSize;
round?: boolean;
circle?: boolean;
plain?: boolean;
disabled?: boolean;
isIcon?: boolean;
loading?: boolean;
onClick?: () => void;
className?: string;
id?: string;
noMargin?: boolean;
}
const props = withDefaults(defineProps<ButtonProps>(), {
const props = withDefaults(defineProps</* @vue-ignore */ ButtonProps>(), {
type: 'primary',
size: 'default',
});
Expand Down
16 changes: 8 additions & 8 deletions src/components/button/FaIconButton.vue
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<script setup lang="ts">
defineOptions({ name: 'ClFaIconButton' });
import { computed } from 'vue';
import { ButtonProps } from '@/components/button/Button.vue';
import { ButtonProps } from '@/components/button/button';
export interface FaIconButtonProps extends /* @vue-ignore */ ButtonProps {
icon: Icon;
badgeIcon?: Icon;
spin?: boolean;
}
const props = defineProps<FaIconButtonProps>();
const props = defineProps<
/* @vue-ignore */ ButtonProps & {
icon: Icon;
badgeIcon?: Icon;
spin?: boolean;
}
>();
const emit = defineEmits<{
(e: 'click', event: Event): void;
Expand Down
15 changes: 9 additions & 6 deletions src/components/button/IconButton.vue
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
<script setup lang="ts">
defineOptions({ name: 'ClIconButton' });
import { ButtonProps } from '@/components/button/Button.vue';
import { ButtonProps } from '@/components/button/button';
export interface IconButtonProps extends /* @vue-ignore */ ButtonProps {
icon: string;
}
withDefaults(defineProps<IconButtonProps>(), {});
withDefaults(
defineProps<
/* @vue-ignore */ ButtonProps & {
icon: string;
}
>(),
, {}
);
</script>

<template>
Expand Down
4 changes: 2 additions & 2 deletions src/components/button/LabelButton.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<script setup lang="ts">
defineOptions({ name: 'ClLabelButton' });
import { ButtonProps } from '@/components/button/Button.vue';
import { ButtonProps } from '@/components/button/button';
defineProps<
ButtonProps & {
/* @vue-ignore */ ButtonProps & {
label?: string;
icon?: Icon;
}
Expand Down
15 changes: 15 additions & 0 deletions src/components/button/button.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
export interface ButtonProps {
tooltip?: string;
type?: BasicType;
size?: BasicSize;
round?: boolean;
circle?: boolean;
plain?: boolean;
disabled?: boolean;
isIcon?: boolean;
loading?: boolean;
onClick?: () => void;
className?: string;
id?: string;
noMargin?: boolean;
}
2 changes: 1 addition & 1 deletion src/components/chart/LineChart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export interface LineChartProps {
isTimeSeries?: boolean;
}
const props = withDefaults(defineProps<LineChartProps>(), {
const props = withDefaults(defineProps</* @vue-ignore */ LineChartProps>(), {
width: '100%',
height: '100%',
theme: 'light',
Expand Down
2 changes: 1 addition & 1 deletion src/components/chart/MetricLineChart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { plainClone } from '@/utils/object';
import { LineChartProps } from '@/components/chart/LineChart.vue';
const props = defineProps<
LineChartProps & {
/* @vue-ignore */ LineChartProps & {
metric?: string;
}
>();
Expand Down
4 changes: 2 additions & 2 deletions src/components/nav/NavActionButton.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<script setup lang="ts">
defineOptions({ name: 'ClNavActionButton' });
import { ButtonProps } from '@/components/button/Button.vue';
import { ButtonProps } from '@/components/button/button';
withDefaults(
defineProps<
ButtonProps & {
/* @vue-ignore */ ButtonProps & {
buttonType: ButtonType;
label?: string;
icon?: Icon;
Expand Down

0 comments on commit fbb4fc9

Please sign in to comment.