Skip to content
This repository has been archived by the owner on Jul 17, 2022. It is now read-only.

ButtonText slot? #56

Open
pilisir opened this issue Jul 10, 2018 · 0 comments
Open

ButtonText slot? #56

pilisir opened this issue Jul 10, 2018 · 0 comments

Comments

@pilisir
Copy link

pilisir commented Jul 10, 2018

Hi,

I try to add some elements under buttons, just like

<button class="btn btn-danger">
    <i class="fa fa-trash"></i> Delete!
</button>

Unfortunately, customConfirmBtnText would do this, <i class="fa fa-trash"> Delete!</i>, as TEXT instead of HTML.

But it a little bit fall away from spirit of MVVM ,if it could be done by customConfirmBtnText.

I'm wondering whether the slot of Vue is in this project?
So, I can custom child elements under Button, even components!

<simplert id="simplert" :useRadius="true" :useIcon="true" ref="simplert">
    <template slot="confirmBtn" slot-scope="data">
        <icon :name="data.iconName"></icon>
        {{data.customConfirmBtnText}}
    </template>
</simplert>

Thanks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants