-
Notifications
You must be signed in to change notification settings - Fork 11
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
chore: add captions #16
Conversation
✅ Deploy Preview for pfccblog ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
src/posts/chuan-story.md
Outdated
<img src="../images/chuan-story/chuan-04.jpg" alt="chuan-04" style="width: 33%;"> | ||
<img src="../images/chuan-story/chuan-05.jpg" alt="chuan-05" style="width: 33%;"> | ||
<img src="../images/chuan-story/chuan-06.jpg" alt="chuan-06" style="width: 33%;"> | ||
<center style="width: 33%;"> |
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.
别用 center 了,已经 Deprecated 了
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/center
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.
已替换
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.
此处的命名和写法可能有些问题
@@ -161,7 +162,7 @@ import MessageBox from '../.vitepress/components/MessageBox.vue' | |||
</Message> | |||
</MessageBox> | |||
|
|||
### by 卢师傅([sanbuphy](https://github.com/sanbuphy)) | |||
### by 卢师傅([AndSonder](https://github.com/AndSonder)) |
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.
@sunzhongkai588 孙师傅出来挨打!
const src = computed(() => { | ||
return url | ||
}) | ||
|
||
const alt = computed(() => { | ||
return describe | ||
}) |
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.
这直接用不就好了,不用再改成计算属性
const centerstyle = computed(() => { | ||
const centerStyle_ = centerStyle ?? null | ||
if (centerStyle_ == null) { | ||
return 'text-align: center' | ||
} else { | ||
return centerStyle + 'text-align: center' | ||
} | ||
}) | ||
|
||
const legendstyles = computed(() => { | ||
return ( | ||
legendStyle ?? | ||
'color: orange;border-bottom: 1px solid #d9d9d9;display: inline-block;color: #999;padding: 2px;' | ||
) | ||
}) |
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.
这俩自定义需求高么?不高感觉直接写死就好
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.
不太高,而且我觉得全部统一更好
src/posts/chuan-story.md
Outdated
</div> | ||
|
||
![chuan-07](../images/chuan-story/chuan-07.jpg) | ||
<ImageBox url="../images/chuan-story/chuan-07.jpg" describe="平潭(来源: 新华社2023/04/29 )"/> |
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.
<ImageBox url="../images/chuan-story/chuan-07.jpg" describe="平潭(来源: 新华社2023/04/29 )"/> | |
<ImageBox url="../images/chuan-story/chuan-07.jpg" describe="平潭(来源: 新华社 2023/04/29 )"/> |
|
||
const { url, describe, centerStyle, legendStyle } = defineProps<{ | ||
url: string | ||
describe: 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.
describe: string | |
description: string |
src/posts/chuan-story.md
Outdated
![chuan-14](../images/chuan-story/chuan-14.jpg) | ||
|
||
![chuan-15](../images/chuan-story/chuan-15.jpg) | ||
<ImageBox url="../images/chuan-story/chuan-14.jpg" describe="北京798艺术区"/> |
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.
<ImageBox url="../images/chuan-story/chuan-14.jpg" describe="北京798艺术区"/> | |
<ImageBox url="../images/chuan-story/chuan-14.jpg" describe="北京 798 艺术区"/> |
需要确认一下图片为啥加载不出来,本地dev可以 |
这个可以合入了嘛 |
还不可以,现在渲染是有问题的,等有时间再看看 |
先不用组件了 |
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.
添加图注