Skip to content

Commit

Permalink
Merge pull request #143 from oku-ui/v-avatar
Browse files Browse the repository at this point in the history
version(avatar): @oku-ui/[email protected]
  • Loading branch information
productdevbook authored May 22, 2023
2 parents d226ef5 + 3c61f26 commit 8989a86
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/components/avatar/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@oku-ui/avatar",
"type": "module",
"version": "0.0.0",
"version": "0.1.1",
"license": "MIT",
"source": "src/index.ts",
"funding": "https://github.com/sponsors/productdevbook",
Expand Down
12 changes: 9 additions & 3 deletions packages/components/avatar/src/avatar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ const Avatar = defineComponent({
...avatarProps,
ref: innerRef,
},
slots.default && slots.default(),
{
default: () => slots.default?.(),
},
)
return originalReturn as unknown as {
innerRef: AvatarElement
Expand Down Expand Up @@ -157,7 +159,9 @@ const AvatarImage = defineComponent({
src,
ref: innerRef,
},
slots.default && slots.default(),
{
default: () => slots.default?.(),
},
)
: null

Expand Down Expand Up @@ -227,7 +231,9 @@ const AvatarFallback = defineComponent({
...fallbackProps,
ref: innerRef,
},
slots.default && slots.default(),
{
default: () => slots.default?.(),
},
)
: canRender.value
}
Expand Down
11 changes: 11 additions & 0 deletions scripts/publish.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

# component name
componentName=$1

# cd to the component directory
cd packages/components/$componentName
pnpm build

# publish
pnpm publish --access public --no-git-checks

0 comments on commit 8989a86

Please sign in to comment.