Skip to content

Commit

Permalink
feat(bulletin-board): [bulletin-board] Add click events
Browse files Browse the repository at this point in the history
  • Loading branch information
wuyiping0628 committed Dec 3, 2024
1 parent 494c225 commit acf1191
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/sites/demos/apis/bulletin-board.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export default {
],
events: [
{
name: 'click',
name: 'handleClick',
type: '(event: BulletinBoardData) => void',
defaultValue: '',
desc: {
Expand Down
4 changes: 2 additions & 2 deletions packages/vue/src/bulletin-board/src/pc.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@
:target="subItem.target"
class="tiny-bulletin-board__textTitle"
rel="noopener noreferrer"
@click.native="handleBulletinBoardClick(subItem)"
@click="handleBulletinBoardClick(subItem)"
>
{{ subItem.text }}
<span v-if="subIndex === 0" class="tiny-bulletin-board__new">
<component :is="icon" class="tiny-svg-size" />{{ icon ? '' : 'NEW' }}
</span>
</a>
<span v-else class="tiny-bulletin-board__textTitle" @click.native="handleBulletinBoardClick(subItem)">
<span v-else class="tiny-bulletin-board__textTitle" @click="handleBulletinBoardClick(subItem)">
{{ subItem.text }}
<span v-if="subIndex === 0" class="tiny-bulletin-board__new">
<component :is="icon" class="tiny-svg-size" />{{ icon ? '' : 'NEW' }}
Expand Down

0 comments on commit acf1191

Please sign in to comment.