Skip to content

Commit

Permalink
Add icon
Browse files Browse the repository at this point in the history
  • Loading branch information
duydvu committed Sep 14, 2022
1 parent be284fd commit 33b761f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/interface.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@
class="action"
:class="[trigger.type]"
:loading="loadings[index].value"
:secondary="trigger.type !== 'primary'"
v-bind="{ [trigger.size]: true }"
@click="onClick(trigger.method, parsedUrls[index], index)"
>
{{ trigger.label }}
<v-icon v-if="trigger.icon" left :name="trigger.icon" />
<span v-if="trigger.label">{{ trigger.label }}</span>
</v-button>
</div>
</template>
Expand Down

0 comments on commit 33b761f

Please sign in to comment.