Skip to content

Commit

Permalink
feat: add divider & icon support
Browse files Browse the repository at this point in the history
  • Loading branch information
Jasonzyt committed Jan 12, 2025
1 parent bb66e9f commit c7ccf15
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/components/content/Divider.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<template>
<UDivider :ui="ui">
<slot />
</UDivider>
</template>

<script lang="ts" setup>
defineProps({
ui: {
type: Object,
default: {}
},
size: {
type: String,
default: 'sm'
}
})
</script>
19 changes: 19 additions & 0 deletions src/components/content/Icon.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<template>
<Icon :name="name" :size="size" :style="style" />
</template>

<script lang="ts" setup>
defineProps({
name: {
type: String,
},
size: {
type: String,
default: '24px'
},
style: {
type: Object,
default: {}
}
})
</script>
6 changes: 6 additions & 0 deletions src/components/content/ProseHr.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<template>
<UDivider />
</template>

<script lang="ts" setup>
</script>
12 changes: 12 additions & 0 deletions src/content/blog/hello-world.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,22 @@ import vue from "vue";
![左对齐](/assets/img/blogs/hello-world/112981252_p0.jpg){align=left}
![右对齐](/assets/img/blogs/hello-world/112981252_p0.jpg){align=right}

::divider{size="xl"}
[:icon{name="logos:github-icon"}](github.com)
::

```python
from PIL import Image
from waifu_sensor.v3 import predict

result = predict(Image.open('urusai.jpg'))
print(result) # [('momoi (blue archive)', 1.8325137893845367), ('iijima yun', 2.4338155048445755), ('midori (blue archive)', 2.5287921933510806)]
```

---

| Key | Type | Description |
| --- | --------- | ----------- |
| 1 | Wonderful | Table |
| 2 | Wonderful | Data |
| 3 | Wonderful | Website |

0 comments on commit c7ccf15

Please sign in to comment.