-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: the 'base' and a few 'header' components #6
Conversation
const props = defineProps(['name']); | ||
//const props = defineProps(['name']); | ||
export interface Props { | ||
name: string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should I set the type of the name to be part of a list of names, or just let it string ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
string should be enough
|
||
const show = computed(() => config.value?.header?.show); | ||
const manifests = computed(() => store.getters['contents/manifests']); | ||
const store = useStore(); | ||
const config = computed(() => store.getters['config/config']); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it necessary to create an interface and assign it as a type to 'config' ?
src/components/base/BaseIcon.vue
Outdated
import { getIcon } from '@/utils/icons'; | ||
|
||
const props = defineProps(['name']); | ||
//const props = defineProps(['name']); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unused comment
No description provided.