Skip to content

Commit

Permalink
feat(steps): 示例按钮文本更明确化
Browse files Browse the repository at this point in the history
  • Loading branch information
chenxi-20 committed Sep 12, 2024
1 parent 5cc8f1d commit ccac231
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<template>
<div class="demo-steps-slot-item-footer">
<tiny-button class="mb10" @click="handleChange">{{
stepsData.length > 3 ? '减少一个节点' : '增加一个节点'
}}</tiny-button>
<tiny-button class="mb10" @click="handleChange"
>点击{{ stepsData.length > 3 ? '减少' : '增加' }}一个节点</tiny-button
>
<tiny-steps :data="stepsData" line>
<template #itemFooter="{ slotScope: { links } }">
<div v-if="links">
Expand Down
6 changes: 3 additions & 3 deletions examples/sites/demos/pc/app/steps/slot-item-footer.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<template>
<div class="demo-steps-slot-item-footer">
<tiny-button class="mb10" @click="handleChange">{{
stepsData.length > 3 ? '减少一个节点' : '增加一个节点'
}}</tiny-button>
<tiny-button class="mb10" @click="handleChange"
>点击{{ stepsData.length > 3 ? '减少' : '增加' }}一个节点</tiny-button
>
<tiny-steps :data="stepsData" line>
<template #itemFooter="{ slotScope: { links } }">
<div v-if="links">
Expand Down

0 comments on commit ccac231

Please sign in to comment.