Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如果可以的话,希望将title的部分改为slot #46

Closed
ldwqh0 opened this issue Oct 27, 2017 · 2 comments
Closed

如果可以的话,希望将title的部分改为slot #46

ldwqh0 opened this issue Oct 27, 2017 · 2 comments

Comments

@ldwqh0
Copy link

ldwqh0 commented Oct 27, 2017

我希望使用svg作为按钮图片,
希望能够自定义按钮部分的内容,
将title部分设置为 slot挺好的。

<span class="vue-file-upload">
  <i v-if='icon != null' v-bind:class='rendIcon'></i>
  <slot>{{label}}</slot>
  <input ref="fileInput" type="file" name="file">
</span>
@marchFantasy
Copy link
Owner

这个好,这样icon那块也可以放出去了

@marchFantasy
Copy link
Owner

0.1.6已经修复,具体可参考demo

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

No branches or pull requests

2 participants