-
Notifications
You must be signed in to change notification settings - Fork 1
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
Setting components #56
Changes from 4 commits
5098e89
79a3406
69fa550
4540797
9505bba
8372079
3e549c0
f0b5248
6da86a5
59b2bb3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
cp-20 marked this conversation as resolved.
Show resolved
Hide resolved
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
<template> | ||
<div>Here is dashboard</div> | ||
<div><MainHeader></MainHeader></div> | ||
</template> | ||
|
||
<script lang="ts" setup></script> | ||
<script lang="ts" setup> | ||
import MainHeader from '@/shared/lib/components/MainHeader.vue'; | ||
</script> | ||
|
||
<style lang="scss" module></style> |
cp-20 marked this conversation as resolved.
Show resolved
Hide resolved
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<script setup lang="ts"> | ||
import Button from 'primevue/button'; | ||
</script> | ||
|
||
<template> | ||
<div> | ||
<div class="p-button p-button-rounded p-button-outlined"> | ||
<span class="p-button-label">物品を登録</span> | ||
</div> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. PrimeVueの |
||
</div> | ||
</template> |
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. should: パスカルケース ( |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<script setup lang="ts"> | ||
import { defineProps } from 'vue'; | ||
|
||
defineProps<{ | ||
name: string; | ||
}>(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. imo: |
||
</script> | ||
<template> | ||
<div> | ||
<div class="p-chip"> | ||
<span>{{ name }}</span> | ||
</div> | ||
</div> | ||
</template> |
cp-20 marked this conversation as resolved.
Show resolved
Hide resolved
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<script setup lang="ts"> | ||
import Avatar from 'primevue/avatar'; | ||
defineProps<{ | ||
name: string; | ||
}>(); | ||
</script> | ||
<template> | ||
<div> | ||
<Avatar | ||
:image="`https://q.trap.jp/api/v3/public/icon/${name}`" | ||
class="mr-2" | ||
size="xlarge" | ||
shape="circle" | ||
/> | ||
</div> | ||
</template> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<template> | ||
<div> | ||
<div class="header"> | ||
<Iconavatar :name="dynamicName" /> | ||
</div> | ||
<div class="content"> | ||
<Chiptag :name="dynamicName2" /> | ||
</div> | ||
<div class="content"> | ||
<Chipcard></Chipcard> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script lang="ts" setup> | ||
import Iconavatar from '@/shared/lib/components/Iconavatar.vue'; | ||
import Chipcard from '@/shared/lib/components/Chipcard.vue'; | ||
import Chiptag from '@/shared/lib/components/Chiptag.vue'; | ||
const dynamicName = 'o_ER4'; // 実際は指定のユーザーの名前を取得する | ||
const dynamicName2 = 'test1'; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (疑問) ココには何が入る想定ですか? |
||
</script> | ||
|
||
<style lang="scss" module> | ||
.header { | ||
display: flex; | ||
justify-content: flex-end; | ||
align-items: center; | ||
padding: 10px; | ||
position: fixed; | ||
top: 0; | ||
right: 0; | ||
left: 0; | ||
background-color: white; | ||
} | ||
|
||
.content { | ||
padding: 20px; | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. must: CSSが上手く動いてなさそう (というかtemplate内の要素との対応が上手くできてなさそう) なので、修正して欲しいです! Flexbox or Grid について理解すると書けるようになるはずです! (分からないことがあれば聞いてください) |
||
</style> |
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.
これは消した方がいいかも