mirror of
https://github.com/youzan/vant.git
synced 2026-01-31 01:01:30 +08:00
[Improvement] PullRefresh: support trigger loading animation (#684)
This commit is contained in:
@@ -4,7 +4,6 @@ import Toast from 'packages/toast';
|
||||
import { mount } from 'avoriaz';
|
||||
import { DOMChecker } from '../utils';
|
||||
import skuMockData from '../../docs/demos/mock/sku';
|
||||
import repeat from 'lodash/repeat';
|
||||
|
||||
const data = skuMockData['zh-CN'];
|
||||
const { skuHelper } = Sku;
|
||||
@@ -13,6 +12,13 @@ const initialSku = {
|
||||
s1: '30349',
|
||||
s2: '1193'
|
||||
};
|
||||
const repeat = (str, count) => {
|
||||
let result = '';
|
||||
for (let i = 0; i < count; i++) {
|
||||
result += str;
|
||||
}
|
||||
return result;
|
||||
};
|
||||
|
||||
const File = function() {
|
||||
this.name = 'test';
|
||||
|
||||
Reference in New Issue
Block a user