mirror of
https://github.com/youzan/vant.git
synced 2025-10-19 18:14:13 +00:00
[Improvement] Support Vue.use to register a component (#401)
This commit is contained in:
@@ -27,15 +27,12 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import Loading from '../loading';
|
||||
import { create } from '../utils';
|
||||
import scrollUtils from '../utils/scroll';
|
||||
import { i18n } from '../locale';
|
||||
|
||||
export default {
|
||||
export default create({
|
||||
name: 'van-pull-refresh',
|
||||
|
||||
mixins: [i18n],
|
||||
|
||||
props: {
|
||||
pullingText: String,
|
||||
loosingText: String,
|
||||
@@ -54,10 +51,6 @@ export default {
|
||||
}
|
||||
},
|
||||
|
||||
components: {
|
||||
Loading
|
||||
},
|
||||
|
||||
data() {
|
||||
return {
|
||||
status: 'normal',
|
||||
@@ -171,5 +164,5 @@ export default {
|
||||
return distanceX > distanceY ? 'horizontal' : distanceX < distanceY ? 'vertical' : '';
|
||||
}
|
||||
}
|
||||
};
|
||||
});
|
||||
</script>
|
||||
|
Reference in New Issue
Block a user