[bugfix] uploader style error (#265)

* [bugfix] CouponList always show empty info

* [bugfix] add click feedback of buttons in components

* [Doc] add custom theme document

* [new feature] Notice bar support more props

* [bugfix] PullRefresh test cases

* [bugfix] unused NoticeBar style

* [bugfix] Swipe width calc error

* [Doc] english document of all action components

* [Doc] change document site path to /zanui/vant

* [Doc] fix

* [bugfix] uploader style error

* [bugfix] tabs document demo
This commit is contained in:
neverland 2017-10-27 02:34:19 -05:00 committed by GitHub
parent a186f6958d
commit ed43b21306
3 changed files with 11 additions and 9 deletions

View File

@ -37,8 +37,8 @@ module.exports = {
host: '0.0.0.0', host: '0.0.0.0',
historyApiFallback: { historyApiFallback: {
rewrites: [ rewrites: [
{ from: /^\/zanui\/vue\/examples/, to: '/examples.html' }, { from: /^\/zanui\/vant\/examples/, to: '/examples.html' },
{ from: /^\/zanui\/vue/, to: '/index.html' } { from: /^\/zanui\/vant/, to: '/index.html' }
] ]
}, },
stats: 'errors-only' stats: 'errors-only'

View File

@ -24,6 +24,8 @@
</style> </style>
<script> <script>
import { Toast } from 'packages/index';
export default { export default {
data() { data() {
return { return {
@ -36,8 +38,8 @@ export default {
}, 1000); }, 1000);
}, },
methods: { methods: {
popalert() { onClickDisabled() {
alert('haha') Toast('Disabled!')
}, },
handleTabClick(index) { handleTabClick(index) {
@ -128,9 +130,9 @@ Vue.component(Tabs.name, Tabs);
:::demo 禁用tab :::demo 禁用tab
```html ```html
<van-tabs> <van-tabs @disabled="onClickDisabled">
<van-tab title="选项一">内容一</van-tab> <van-tab title="选项一">内容一</van-tab>
<van-tab title="选项二" disabled @disabled="popalert">内容二</van-tab> <van-tab title="选项二" disabled>内容二</van-tab>
<van-tab title="选项三">内容三</van-tab> <van-tab title="选项三">内容三</van-tab>
<van-tab title="选项四">内容四</van-tab> <van-tab title="选项四">内容四</van-tab>
</van-tabs> </van-tabs>
@ -139,8 +141,8 @@ Vue.component(Tabs.name, Tabs);
```javascript ```javascript
export default { export default {
methods: { methods: {
popalert() { onClickDisabled() {
alert('haha') Toast('Disabled!')
} }
} }
}; };

View File

@ -16,7 +16,7 @@
cursor: pointer; cursor: pointer;
} }
input[type="file" i]::-webkit-file-upload-button { input[type="file"]::-webkit-file-upload-button {
cursor: pointer; cursor: pointer;
} }
} }