egoist / vue-step-indicator

👣 Simple step indicator for Vue.js
https://vue-step-indicator.egoist.sh
92 stars 10 forks source link

[Feature request] Ability to use custom template for step #3

Open probil opened 6 years ago

probil commented 6 years ago

It would be nice to have ability to pass custom template using scoped slots https://vuejs.org/v2/guide/components.html#Scoped-Slots

egoist commented 6 years ago

Yeah this is very nice to have.

rabingaire commented 6 years ago
<step-indicator
  :handleClick="handleClick"
  :current="current"
  :total="total"
  :current-color="currentColor"
  :default-color="defaultColor"
>
  <div class="someOtherStyle" />
</step-indicator>

I have been thinking about this and thought of building API something like this, the div inside step-indicator can have custom style required by the user and the style get's reflected on each list node, which is in the circle in the current implementation.