Skip to content
This repository has been archived by the owner on Jun 12, 2023. It is now read-only.

Commit

Permalink
chore: playground
Browse files Browse the repository at this point in the history
  • Loading branch information
Zolyn committed May 8, 2022
1 parent d57975e commit 92ddc10
Showing 1 changed file with 8 additions and 17 deletions.
25 changes: 8 additions & 17 deletions playground/src/components/Button.vue
Original file line number Diff line number Diff line change
@@ -1,25 +1,16 @@
<script setup lang="ts">
import { ButtonProps } from '~/button-types';
// type A = string;
// const df = {
// size: () => ({ msg: '1', base: true }),
// color: 'blue',
// };
// interface Size {
// small: 'sm';
// medium: 'md';
// large: 'lg';
// }
interface BProps extends ButtonProps {
more: boolean;
}
// interface ButtonProps {
// color: string;
// size: number | Size | A;
// }
const df = {
size: () => ({ msg: '1', base: true }),
color: 'blue',
};
const props = withDefaults(defineProps<ButtonProps>(), {
const props = withDefaults(defineProps<BProps>(), {
size: () => ({ msg: '1', base: true }),
color: 'blue',
});
Expand Down

0 comments on commit 92ddc10

Please sign in to comment.