@vtj/materials 0.13.16 → 0.13.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/antdv/index.umd.js +2 -2
- package/dist/assets/charts/index.umd.js +2 -2
- package/dist/assets/element/index.umd.js +3 -3
- package/dist/assets/icons/index.umd.js +2 -2
- package/dist/assets/ui/index.umd.js +2 -2
- package/dist/assets/uni-h5/index.umd.js +2 -2
- package/dist/assets/uni-ui/index.umd.js +2 -2
- package/dist/assets/vant/index.umd.js +2 -2
- package/dist/deps/@vtj/charts/index.umd.js +2 -2
- package/dist/deps/@vtj/icons/index.umd.js +2 -2
- package/dist/deps/@vtj/ui/index.umd.js +4 -4
- package/dist/deps/@vtj/ui/style.css +1 -1
- package/dist/deps/@vtj/utils/index.umd.js +28 -33
- package/dist/deps/@vueuse/core/index.iife.min.js +1 -1
- package/dist/deps/element-plus/index.css +1 -1
- package/dist/deps/element-plus/index.full.min.js +14 -14
- package/dist/deps/element-plus/zh-cn.js +1 -1
- package/dist/deps/uni-app/index.umd.js +1 -1
- package/dist/deps/uni-h5/index.umd.js +8 -8
- package/dist/deps/uni-h5/style.css +1 -1
- package/dist/deps/uni-h5-vue/index.umd.js +1 -1
- package/dist/deps/uni-ui/index.umd.js +1 -1
- package/dist/deps/uni-ui/style.css +1 -1
- package/dist/deps/vue/vue.global.js +88 -53
- package/dist/deps/vue/vue.global.prod.js +9 -9
- package/package.json +12 -12
- package/src/antdv/image.ts +1 -1
- package/src/element/image.ts +1 -1
- package/src/element/virtualizedTable.ts +6 -6
- package/src/manifest.json +69 -0
- package/src/pages/index.vue +2 -0
- package/src/pages.json +19 -0
- package/src/uni-ui/index.ts +88 -58
- package/src/{uni-ui/lib/uni.scss → uni.scss} +4 -0
- package/src/version.ts +2 -2
- package/src/uni-ui/lib/uni-col/uni-col.vue +0 -324
- package/src/uni-ui/lib/uni-collapse/uni-collapse.vue +0 -153
- package/src/uni-ui/lib/uni-collapse-item/uni-collapse-item.vue +0 -425
- package/src/uni-ui/lib/uni-data-picker/keypress.js +0 -45
- package/src/uni-ui/lib/uni-data-picker/uni-data-picker.vue +0 -604
- package/src/uni-ui/lib/uni-data-pickerview/uni-data-picker.js +0 -622
- package/src/uni-ui/lib/uni-data-pickerview/uni-data-pickerview.css +0 -76
- package/src/uni-ui/lib/uni-data-pickerview/uni-data-pickerview.vue +0 -335
- package/src/uni-ui/lib/uni-data-select/uni-data-select.vue +0 -590
- package/src/uni-ui/lib/uni-datetime-picker/calendar-item.vue +0 -188
- package/src/uni-ui/lib/uni-datetime-picker/calendar.vue +0 -985
- package/src/uni-ui/lib/uni-datetime-picker/i18n/en.json +0 -22
- package/src/uni-ui/lib/uni-datetime-picker/i18n/index.js +0 -8
- package/src/uni-ui/lib/uni-datetime-picker/i18n/zh-Hans.json +0 -22
- package/src/uni-ui/lib/uni-datetime-picker/i18n/zh-Hant.json +0 -22
- package/src/uni-ui/lib/uni-datetime-picker/time-picker.vue +0 -1032
- package/src/uni-ui/lib/uni-datetime-picker/uni-datetime-picker.vue +0 -1230
- package/src/uni-ui/lib/uni-datetime-picker/util.js +0 -448
- package/src/uni-ui/lib/uni-easyinput/common.js +0 -54
- package/src/uni-ui/lib/uni-easyinput/uni-easyinput.vue +0 -790
- package/src/uni-ui/lib/uni-fav/i18n/en.json +0 -4
- package/src/uni-ui/lib/uni-fav/i18n/index.js +0 -8
- package/src/uni-ui/lib/uni-fav/i18n/zh-Hans.json +0 -4
- package/src/uni-ui/lib/uni-fav/i18n/zh-Hant.json +0 -4
- package/src/uni-ui/lib/uni-fav/uni-fav.vue +0 -170
- package/src/uni-ui/lib/uni-file-picker/choose-and-upload-file.js +0 -280
- package/src/uni-ui/lib/uni-file-picker/uni-file-picker.vue +0 -668
- package/src/uni-ui/lib/uni-file-picker/upload-file.vue +0 -325
- package/src/uni-ui/lib/uni-file-picker/upload-image.vue +0 -292
- package/src/uni-ui/lib/uni-file-picker/utils.js +0 -110
- package/src/uni-ui/lib/uni-forms/uni-forms.vue +0 -416
- package/src/uni-ui/lib/uni-forms/utils.js +0 -293
- package/src/uni-ui/lib/uni-forms/validate.js +0 -486
- package/src/uni-ui/lib/uni-forms-item/uni-forms-item.vue +0 -630
- package/src/uni-ui/lib/uni-goods-nav/i18n/en.json +0 -6
- package/src/uni-ui/lib/uni-goods-nav/i18n/index.js +0 -8
- package/src/uni-ui/lib/uni-goods-nav/i18n/zh-Hans.json +0 -6
- package/src/uni-ui/lib/uni-goods-nav/i18n/zh-Hant.json +0 -6
- package/src/uni-ui/lib/uni-goods-nav/uni-goods-nav.vue +0 -231
- package/src/uni-ui/lib/uni-grid/uni-grid.vue +0 -148
- package/src/uni-ui/lib/uni-icons/uni-icons.uvue +0 -91
- package/src/uni-ui/lib/uni-icons/uni-icons.vue +0 -114
- package/src/uni-ui/lib/uni-icons/uniicons.css +0 -664
- package/src/uni-ui/lib/uni-icons/uniicons.ttf +0 -0
- package/src/uni-ui/lib/uni-icons/uniicons_file.ts +0 -664
- package/src/uni-ui/lib/uni-icons/uniicons_file_vue.js +0 -649
- package/src/uni-ui/lib/uni-indexed-list/uni-indexed-list-item.vue +0 -168
- package/src/uni-ui/lib/uni-indexed-list/uni-indexed-list.vue +0 -404
- package/src/uni-ui/lib/uni-list/uni-list.vue +0 -123
- package/src/uni-ui/lib/uni-list/uni-refresh.vue +0 -65
- package/src/uni-ui/lib/uni-list/uni-refresh.wxs +0 -87
- package/src/uni-ui/lib/uni-load-more/i18n/en.json +0 -5
- package/src/uni-ui/lib/uni-load-more/i18n/index.js +0 -8
- package/src/uni-ui/lib/uni-load-more/i18n/zh-Hans.json +0 -5
- package/src/uni-ui/lib/uni-load-more/i18n/zh-Hant.json +0 -5
- package/src/uni-ui/lib/uni-load-more/uni-load-more.vue +0 -456
- package/src/uni-ui/lib/uni-notice-bar/uni-notice-bar.vue +0 -484
- package/src/uni-ui/lib/uni-popup/i18n/en.json +0 -7
- package/src/uni-ui/lib/uni-popup/i18n/index.js +0 -8
- package/src/uni-ui/lib/uni-popup/i18n/zh-Hans.json +0 -7
- package/src/uni-ui/lib/uni-popup/i18n/zh-Hant.json +0 -7
- package/src/uni-ui/lib/uni-popup/keypress.js +0 -45
- package/src/uni-ui/lib/uni-popup/popup.js +0 -26
- package/src/uni-ui/lib/uni-popup/uni-popup.uvue +0 -90
- package/src/uni-ui/lib/uni-popup/uni-popup.vue +0 -552
- package/src/uni-ui/lib/uni-popup-dialog/keypress.js +0 -45
- package/src/uni-ui/lib/uni-popup-dialog/uni-popup-dialog.vue +0 -324
- package/src/uni-ui/lib/uni-popup-message/uni-popup-message.vue +0 -149
- package/src/uni-ui/lib/uni-rate/uni-rate.vue +0 -380
- package/src/uni-ui/lib/uni-row/uni-row.vue +0 -193
- package/src/uni-ui/lib/uni-search-bar/i18n/en.json +0 -4
- package/src/uni-ui/lib/uni-search-bar/i18n/index.js +0 -8
- package/src/uni-ui/lib/uni-search-bar/i18n/zh-Hans.json +0 -4
- package/src/uni-ui/lib/uni-search-bar/i18n/zh-Hant.json +0 -4
- package/src/uni-ui/lib/uni-search-bar/uni-search-bar.vue +0 -339
- package/src/uni-ui/lib/uni-swipe-action-item/bindingx.js +0 -311
- package/src/uni-ui/lib/uni-swipe-action-item/isPC.js +0 -12
- package/src/uni-ui/lib/uni-swipe-action-item/mpalipay.js +0 -195
- package/src/uni-ui/lib/uni-swipe-action-item/mpother.js +0 -260
- package/src/uni-ui/lib/uni-swipe-action-item/mpwxs.js +0 -84
- package/src/uni-ui/lib/uni-swipe-action-item/render.js +0 -270
- package/src/uni-ui/lib/uni-swipe-action-item/uni-swipe-action-item.vue +0 -493
- package/src/uni-ui/lib/uni-swipe-action-item/wx.wxs +0 -341
- package/src/uni-ui/lib/uni-table/uni-table.vue +0 -496
- package/src/uni-ui/lib/uni-td/uni-td.vue +0 -99
- package/src/uni-ui/lib/uni-th/filter-dropdown.vue +0 -559
- package/src/uni-ui/lib/uni-th/uni-th.vue +0 -322
- package/src/uni-ui/lib/uni-tr/table-checkbox.vue +0 -181
- package/src/uni-ui/lib/uni-tr/uni-tr.vue +0 -208
- package/src/uni-ui/lib/uni-transition/createAnimation.js +0 -131
- package/src/uni-ui/lib/uni-transition/uni-transition.vue +0 -310
- package/src/uni-ui/polyfill.ts +0 -41
@@ -1,65 +0,0 @@
|
|
1
|
-
<template>
|
2
|
-
<!-- #ifdef APP-NVUE -->
|
3
|
-
<refresh :display="display" @refresh="onrefresh" @pullingdown="onpullingdown">
|
4
|
-
<slot />
|
5
|
-
</refresh>
|
6
|
-
<!-- #endif -->
|
7
|
-
<!-- #ifndef APP-NVUE -->
|
8
|
-
<view ref="uni-refresh" class="uni-refresh" v-show="isShow">
|
9
|
-
<slot />
|
10
|
-
</view>
|
11
|
-
<!-- #endif -->
|
12
|
-
</template>
|
13
|
-
|
14
|
-
<script>
|
15
|
-
export default {
|
16
|
-
name: 'UniRefresh',
|
17
|
-
props: {
|
18
|
-
display: {
|
19
|
-
type: [String],
|
20
|
-
default: "hide"
|
21
|
-
}
|
22
|
-
},
|
23
|
-
data() {
|
24
|
-
return {
|
25
|
-
pulling: false
|
26
|
-
}
|
27
|
-
},
|
28
|
-
computed: {
|
29
|
-
isShow() {
|
30
|
-
if (this.display === "show" || this.pulling === true) {
|
31
|
-
return true;
|
32
|
-
}
|
33
|
-
return false;
|
34
|
-
}
|
35
|
-
},
|
36
|
-
created() {},
|
37
|
-
methods: {
|
38
|
-
onchange(value) {
|
39
|
-
this.pulling = value;
|
40
|
-
},
|
41
|
-
onrefresh(e) {
|
42
|
-
this.$emit("refresh", e);
|
43
|
-
},
|
44
|
-
onpullingdown(e) {
|
45
|
-
// #ifdef APP-NVUE
|
46
|
-
this.$emit("pullingdown", e);
|
47
|
-
// #endif
|
48
|
-
// #ifndef APP-NVUE
|
49
|
-
var detail = {
|
50
|
-
viewHeight: 90,
|
51
|
-
pullingDistance: e.height
|
52
|
-
}
|
53
|
-
this.$emit("pullingdown", detail);
|
54
|
-
// #endif
|
55
|
-
}
|
56
|
-
}
|
57
|
-
}
|
58
|
-
</script>
|
59
|
-
|
60
|
-
<style>
|
61
|
-
.uni-refresh {
|
62
|
-
height: 0;
|
63
|
-
overflow: hidden;
|
64
|
-
}
|
65
|
-
</style>
|
@@ -1,87 +0,0 @@
|
|
1
|
-
var pullDown = {
|
2
|
-
threshold: 95,
|
3
|
-
maxHeight: 200,
|
4
|
-
callRefresh: 'onrefresh',
|
5
|
-
callPullingDown: 'onpullingdown',
|
6
|
-
refreshSelector: '.uni-refresh'
|
7
|
-
};
|
8
|
-
|
9
|
-
function ready(newValue, oldValue, ownerInstance, instance) {
|
10
|
-
var state = instance.getState()
|
11
|
-
state.canPullDown = newValue;
|
12
|
-
// console.log(newValue);
|
13
|
-
}
|
14
|
-
|
15
|
-
function touchStart(e, instance) {
|
16
|
-
var state = instance.getState();
|
17
|
-
state.refreshInstance = instance.selectComponent(pullDown.refreshSelector);
|
18
|
-
state.canPullDown = (state.refreshInstance != null && state.refreshInstance != undefined);
|
19
|
-
if (!state.canPullDown) {
|
20
|
-
return
|
21
|
-
}
|
22
|
-
|
23
|
-
// console.log("touchStart");
|
24
|
-
|
25
|
-
state.height = 0;
|
26
|
-
state.touchStartY = e.touches[0].pageY || e.changedTouches[0].pageY;
|
27
|
-
state.refreshInstance.setStyle({
|
28
|
-
'height': 0
|
29
|
-
});
|
30
|
-
state.refreshInstance.callMethod("onchange", true);
|
31
|
-
}
|
32
|
-
|
33
|
-
function touchMove(e, ownerInstance) {
|
34
|
-
var instance = e.instance;
|
35
|
-
var state = instance.getState();
|
36
|
-
if (!state.canPullDown) {
|
37
|
-
return
|
38
|
-
}
|
39
|
-
|
40
|
-
var oldHeight = state.height;
|
41
|
-
var endY = e.touches[0].pageY || e.changedTouches[0].pageY;
|
42
|
-
var height = endY - state.touchStartY;
|
43
|
-
if (height > pullDown.maxHeight) {
|
44
|
-
return;
|
45
|
-
}
|
46
|
-
|
47
|
-
var refreshInstance = state.refreshInstance;
|
48
|
-
refreshInstance.setStyle({
|
49
|
-
'height': height + 'px'
|
50
|
-
});
|
51
|
-
|
52
|
-
height = height < pullDown.maxHeight ? height : pullDown.maxHeight;
|
53
|
-
state.height = height;
|
54
|
-
refreshInstance.callMethod(pullDown.callPullingDown, {
|
55
|
-
height: height
|
56
|
-
});
|
57
|
-
}
|
58
|
-
|
59
|
-
function touchEnd(e, ownerInstance) {
|
60
|
-
var state = e.instance.getState();
|
61
|
-
if (!state.canPullDown) {
|
62
|
-
return
|
63
|
-
}
|
64
|
-
|
65
|
-
state.refreshInstance.callMethod("onchange", false);
|
66
|
-
|
67
|
-
var refreshInstance = state.refreshInstance;
|
68
|
-
if (state.height > pullDown.threshold) {
|
69
|
-
refreshInstance.callMethod(pullDown.callRefresh);
|
70
|
-
return;
|
71
|
-
}
|
72
|
-
|
73
|
-
refreshInstance.setStyle({
|
74
|
-
'height': 0
|
75
|
-
});
|
76
|
-
}
|
77
|
-
|
78
|
-
function propObserver(newValue, oldValue, instance) {
|
79
|
-
pullDown = newValue;
|
80
|
-
}
|
81
|
-
|
82
|
-
module.exports = {
|
83
|
-
touchmove: touchMove,
|
84
|
-
touchstart: touchStart,
|
85
|
-
touchend: touchEnd,
|
86
|
-
propObserver: propObserver
|
87
|
-
}
|
@@ -1,456 +0,0 @@
|
|
1
|
-
<template>
|
2
|
-
<view class="uni-load-more" @click="onClick">
|
3
|
-
<!-- #ifdef APP-NVUE -->
|
4
|
-
<loading-indicator
|
5
|
-
v-if="!webviewHide && status === 'loading' && showIcon"
|
6
|
-
:style="{ color: color, width: iconSize + 'px', height: iconSize + 'px' }"
|
7
|
-
:animating="true"
|
8
|
-
class="uni-load-more__img uni-load-more__img--nvue"></loading-indicator>
|
9
|
-
<!-- #endif -->
|
10
|
-
<!-- #ifdef H5 -->
|
11
|
-
<svg
|
12
|
-
width="24"
|
13
|
-
height="24"
|
14
|
-
viewBox="25 25 50 50"
|
15
|
-
v-if="
|
16
|
-
!webviewHide &&
|
17
|
-
(iconType === 'circle' ||
|
18
|
-
(iconType === 'auto' && platform === 'android')) &&
|
19
|
-
status === 'loading' &&
|
20
|
-
showIcon
|
21
|
-
"
|
22
|
-
:style="{ width: iconSize + 'px', height: iconSize + 'px' }"
|
23
|
-
class="uni-load-more__img uni-load-more__img--android-H5">
|
24
|
-
<circle
|
25
|
-
cx="50"
|
26
|
-
cy="50"
|
27
|
-
r="20"
|
28
|
-
fill="none"
|
29
|
-
:style="{ color: color }"
|
30
|
-
:stroke-width="3"></circle>
|
31
|
-
</svg>
|
32
|
-
<!-- #endif -->
|
33
|
-
<!-- #ifndef APP-NVUE || H5 -->
|
34
|
-
<view
|
35
|
-
v-if="
|
36
|
-
!webviewHide &&
|
37
|
-
(iconType === 'circle' ||
|
38
|
-
(iconType === 'auto' && platform === 'android')) &&
|
39
|
-
status === 'loading' &&
|
40
|
-
showIcon
|
41
|
-
"
|
42
|
-
:style="{ width: iconSize + 'px', height: iconSize + 'px' }"
|
43
|
-
class="uni-load-more__img uni-load-more__img--android-MP">
|
44
|
-
<view
|
45
|
-
class="uni-load-more__img-icon"
|
46
|
-
:style="{
|
47
|
-
borderTopColor: color,
|
48
|
-
borderTopWidth: iconSize / 12
|
49
|
-
}"></view>
|
50
|
-
<view
|
51
|
-
class="uni-load-more__img-icon"
|
52
|
-
:style="{
|
53
|
-
borderTopColor: color,
|
54
|
-
borderTopWidth: iconSize / 12
|
55
|
-
}"></view>
|
56
|
-
<view
|
57
|
-
class="uni-load-more__img-icon"
|
58
|
-
:style="{
|
59
|
-
borderTopColor: color,
|
60
|
-
borderTopWidth: iconSize / 12
|
61
|
-
}"></view>
|
62
|
-
</view>
|
63
|
-
<!-- #endif -->
|
64
|
-
<!-- #ifndef APP-NVUE -->
|
65
|
-
<view
|
66
|
-
v-else-if="!webviewHide && status === 'loading' && showIcon"
|
67
|
-
:style="{ width: iconSize + 'px', height: iconSize + 'px' }"
|
68
|
-
class="uni-load-more__img uni-load-more__img--ios-H5">
|
69
|
-
<image :src="imgBase64" mode="widthFix"></image>
|
70
|
-
</view>
|
71
|
-
<!-- #endif -->
|
72
|
-
<text
|
73
|
-
v-if="showText"
|
74
|
-
class="uni-load-more__text"
|
75
|
-
:style="{ color: color }"
|
76
|
-
>{{
|
77
|
-
status === 'more'
|
78
|
-
? contentdownText
|
79
|
-
: status === 'loading'
|
80
|
-
? contentrefreshText
|
81
|
-
: contentnomoreText
|
82
|
-
}}</text
|
83
|
-
>
|
84
|
-
</view>
|
85
|
-
</template>
|
86
|
-
|
87
|
-
<script>
|
88
|
-
let platform;
|
89
|
-
setTimeout(() => {
|
90
|
-
// #ifdef MP-WEIXIN
|
91
|
-
// platform = uni.getDeviceInfo().platform;
|
92
|
-
// #endif
|
93
|
-
// #ifndef MP-WEIXIN
|
94
|
-
platform = uni.getSystemInfoSync().platform;
|
95
|
-
// #endif
|
96
|
-
}, 16);
|
97
|
-
|
98
|
-
import { initVueI18n } from '@dcloudio/uni-i18n';
|
99
|
-
import messages from './i18n/index.js';
|
100
|
-
const { t } = initVueI18n(messages);
|
101
|
-
|
102
|
-
/**
|
103
|
-
* LoadMore 加载更多
|
104
|
-
* @description 用于列表中,做滚动加载使用,展示 loading 的各种状态
|
105
|
-
* @tutorial https://ext.dcloud.net.cn/plugin?id=29
|
106
|
-
* @property {String} status = [more|loading|noMore] loading 的状态
|
107
|
-
* @value more loading前
|
108
|
-
* @value loading loading中
|
109
|
-
* @value noMore 没有更多了
|
110
|
-
* @property {Number} iconSize 指定图标大小
|
111
|
-
* @property {Boolean} iconSize = [true|false] 是否显示 loading 图标
|
112
|
-
* @property {String} iconType = [snow|circle|auto] 指定图标样式
|
113
|
-
* @value snow ios雪花加载样式
|
114
|
-
* @value circle 安卓唤醒加载样式
|
115
|
-
* @value auto 根据平台自动选择加载样式
|
116
|
-
* @property {String} color 图标和文字颜色
|
117
|
-
* @property {Object} contentText 各状态文字说明,值为:{contentdown: "上拉显示更多",contentrefresh: "正在加载...",contentnomore: "没有更多数据了"}
|
118
|
-
* @event {Function} clickLoadMore 点击加载更多时触发
|
119
|
-
*/
|
120
|
-
export default {
|
121
|
-
name: 'UniLoadMore',
|
122
|
-
emits: ['clickLoadMore'],
|
123
|
-
props: {
|
124
|
-
status: {
|
125
|
-
// 上拉的状态:more-loading前;loading-loading中;noMore-没有更多了
|
126
|
-
type: String,
|
127
|
-
default: 'more'
|
128
|
-
},
|
129
|
-
showIcon: {
|
130
|
-
type: Boolean,
|
131
|
-
default: true
|
132
|
-
},
|
133
|
-
iconType: {
|
134
|
-
type: String,
|
135
|
-
default: 'auto'
|
136
|
-
},
|
137
|
-
iconSize: {
|
138
|
-
type: Number,
|
139
|
-
default: 24
|
140
|
-
},
|
141
|
-
color: {
|
142
|
-
type: String,
|
143
|
-
default: '#777777'
|
144
|
-
},
|
145
|
-
contentText: {
|
146
|
-
type: Object,
|
147
|
-
default() {
|
148
|
-
return {
|
149
|
-
contentdown: '',
|
150
|
-
contentrefresh: '',
|
151
|
-
contentnomore: ''
|
152
|
-
};
|
153
|
-
}
|
154
|
-
},
|
155
|
-
showText: {
|
156
|
-
type: Boolean,
|
157
|
-
default: true
|
158
|
-
}
|
159
|
-
},
|
160
|
-
data() {
|
161
|
-
return {
|
162
|
-
webviewHide: false,
|
163
|
-
platform: platform,
|
164
|
-
imgBase64:
|
165
|
-
'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gP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y0x1PG7vtNg24oz9Uo/Z412++VFWI7Fcog9tu9Lm6gvRmIPv9x1xmQAu6RDkXtbOtlGEmpgD5Nvnyc0dcv0EE6cfdi1HmhMf9wDF3k3gtRvEedhxjpgfqPb9PU9iEJHnyOUA7bQUXh6kq/D7l2iTjWv7XOD530BDr8jIrus+srXjt4MzumJMHuTsBa63YKE1+RR5lBjEikCCnWKWiHdzOgKO+nRIBAF88za/IFmJ3eMZov4CYxGBabcpGL8EYx+SeMXJeRwHNsV/h+vdxeuhEpN3ZyNY78Gm2fknJxVGhyjixPiQvVkNzT1elD9Py/aTAL64Hb9vcYmC9zfdXdT/C1LeGbg4rnBaAihDFJH12W5ulfNCNe/xTsP3bp8ikzJs5BF+5PNfAQYAPaseTdsEcaYAAAAASUVORK5CYII='
|
166
|
-
};
|
167
|
-
},
|
168
|
-
computed: {
|
169
|
-
iconSnowWidth() {
|
170
|
-
return (Math.floor(this.iconSize / 24) || 1) * 2;
|
171
|
-
},
|
172
|
-
contentdownText() {
|
173
|
-
return this.contentText.contentdown || t('uni-load-more.contentdown');
|
174
|
-
},
|
175
|
-
contentrefreshText() {
|
176
|
-
return (
|
177
|
-
this.contentText.contentrefresh || t('uni-load-more.contentrefresh')
|
178
|
-
);
|
179
|
-
},
|
180
|
-
contentnomoreText() {
|
181
|
-
return (
|
182
|
-
this.contentText.contentnomore || t('uni-load-more.contentnomore')
|
183
|
-
);
|
184
|
-
}
|
185
|
-
},
|
186
|
-
mounted() {
|
187
|
-
// uni-app js引擎版编译为App时
|
188
|
-
// #ifdef APP-PLUS
|
189
|
-
// var pages = getCurrentPages();
|
190
|
-
// var page = pages[pages.length - 1];
|
191
|
-
// var currentWebview = page.$getAppWebview();
|
192
|
-
// currentWebview.addEventListener('hide', () => {
|
193
|
-
// this.webviewHide = true;
|
194
|
-
// });
|
195
|
-
// currentWebview.addEventListener('show', () => {
|
196
|
-
// this.webviewHide = false;
|
197
|
-
// });
|
198
|
-
// #endif
|
199
|
-
},
|
200
|
-
methods: {
|
201
|
-
onClick() {
|
202
|
-
this.$emit('clickLoadMore', {
|
203
|
-
detail: {
|
204
|
-
status: this.status
|
205
|
-
}
|
206
|
-
});
|
207
|
-
}
|
208
|
-
}
|
209
|
-
};
|
210
|
-
</script>
|
211
|
-
|
212
|
-
<style lang="scss">
|
213
|
-
.uni-load-more {
|
214
|
-
/* #ifndef APP-NVUE */
|
215
|
-
display: flex;
|
216
|
-
/* #endif */
|
217
|
-
flex-direction: row;
|
218
|
-
height: 40px;
|
219
|
-
align-items: center;
|
220
|
-
justify-content: center;
|
221
|
-
}
|
222
|
-
|
223
|
-
.uni-load-more__text {
|
224
|
-
font-size: 14px;
|
225
|
-
margin-left: 8px;
|
226
|
-
}
|
227
|
-
|
228
|
-
.uni-load-more__img {
|
229
|
-
width: 24px;
|
230
|
-
height: 24px;
|
231
|
-
// margin-right: 8px;
|
232
|
-
}
|
233
|
-
|
234
|
-
.uni-load-more__img--nvue {
|
235
|
-
color: #666666;
|
236
|
-
}
|
237
|
-
|
238
|
-
.uni-load-more__img--android,
|
239
|
-
.uni-load-more__img--ios {
|
240
|
-
width: 24px;
|
241
|
-
height: 24px;
|
242
|
-
transform: rotate(0deg);
|
243
|
-
}
|
244
|
-
|
245
|
-
/* #ifndef APP-NVUE */
|
246
|
-
.uni-load-more__img--android {
|
247
|
-
animation: loading-ios 1s 0s linear infinite;
|
248
|
-
}
|
249
|
-
|
250
|
-
@keyframes loading-android {
|
251
|
-
0% {
|
252
|
-
transform: rotate(0deg);
|
253
|
-
}
|
254
|
-
|
255
|
-
100% {
|
256
|
-
transform: rotate(360deg);
|
257
|
-
}
|
258
|
-
}
|
259
|
-
|
260
|
-
.uni-load-more__img--ios-H5 {
|
261
|
-
position: relative;
|
262
|
-
animation: loading-ios-H5 1s 0s step-end infinite;
|
263
|
-
}
|
264
|
-
|
265
|
-
.uni-load-more__img--ios-H5 image {
|
266
|
-
position: absolute;
|
267
|
-
width: 100%;
|
268
|
-
height: 100%;
|
269
|
-
left: 0;
|
270
|
-
top: 0;
|
271
|
-
}
|
272
|
-
|
273
|
-
@keyframes loading-ios-H5 {
|
274
|
-
0% {
|
275
|
-
transform: rotate(0deg);
|
276
|
-
}
|
277
|
-
|
278
|
-
8% {
|
279
|
-
transform: rotate(30deg);
|
280
|
-
}
|
281
|
-
|
282
|
-
16% {
|
283
|
-
transform: rotate(60deg);
|
284
|
-
}
|
285
|
-
|
286
|
-
24% {
|
287
|
-
transform: rotate(90deg);
|
288
|
-
}
|
289
|
-
|
290
|
-
32% {
|
291
|
-
transform: rotate(120deg);
|
292
|
-
}
|
293
|
-
|
294
|
-
40% {
|
295
|
-
transform: rotate(150deg);
|
296
|
-
}
|
297
|
-
|
298
|
-
48% {
|
299
|
-
transform: rotate(180deg);
|
300
|
-
}
|
301
|
-
|
302
|
-
56% {
|
303
|
-
transform: rotate(210deg);
|
304
|
-
}
|
305
|
-
|
306
|
-
64% {
|
307
|
-
transform: rotate(240deg);
|
308
|
-
}
|
309
|
-
|
310
|
-
73% {
|
311
|
-
transform: rotate(270deg);
|
312
|
-
}
|
313
|
-
|
314
|
-
82% {
|
315
|
-
transform: rotate(300deg);
|
316
|
-
}
|
317
|
-
|
318
|
-
91% {
|
319
|
-
transform: rotate(330deg);
|
320
|
-
}
|
321
|
-
|
322
|
-
100% {
|
323
|
-
transform: rotate(360deg);
|
324
|
-
}
|
325
|
-
}
|
326
|
-
|
327
|
-
/* #endif */
|
328
|
-
|
329
|
-
/* #ifdef H5 */
|
330
|
-
.uni-load-more__img--android-H5 {
|
331
|
-
animation: loading-android-H5-rotate 2s linear infinite;
|
332
|
-
transform-origin: center center;
|
333
|
-
}
|
334
|
-
|
335
|
-
.uni-load-more__img--android-H5 circle {
|
336
|
-
display: inline-block;
|
337
|
-
animation: loading-android-H5-dash 1.5s ease-in-out infinite;
|
338
|
-
stroke: currentColor;
|
339
|
-
stroke-linecap: round;
|
340
|
-
}
|
341
|
-
|
342
|
-
@keyframes loading-android-H5-rotate {
|
343
|
-
0% {
|
344
|
-
transform: rotate(0deg);
|
345
|
-
}
|
346
|
-
|
347
|
-
100% {
|
348
|
-
transform: rotate(360deg);
|
349
|
-
}
|
350
|
-
}
|
351
|
-
|
352
|
-
@keyframes loading-android-H5-dash {
|
353
|
-
0% {
|
354
|
-
stroke-dasharray: 1, 200;
|
355
|
-
stroke-dashoffset: 0;
|
356
|
-
}
|
357
|
-
|
358
|
-
50% {
|
359
|
-
stroke-dasharray: 90, 150;
|
360
|
-
stroke-dashoffset: -40;
|
361
|
-
}
|
362
|
-
|
363
|
-
100% {
|
364
|
-
stroke-dasharray: 90, 150;
|
365
|
-
stroke-dashoffset: -120;
|
366
|
-
}
|
367
|
-
}
|
368
|
-
|
369
|
-
/* #endif */
|
370
|
-
|
371
|
-
/* #ifndef APP-NVUE || H5 */
|
372
|
-
.uni-load-more__img--android-MP {
|
373
|
-
position: relative;
|
374
|
-
width: 24px;
|
375
|
-
height: 24px;
|
376
|
-
transform: rotate(0deg);
|
377
|
-
animation: loading-ios 1s 0s ease infinite;
|
378
|
-
}
|
379
|
-
|
380
|
-
.uni-load-more__img--android-MP .uni-load-more__img-icon {
|
381
|
-
position: absolute;
|
382
|
-
box-sizing: border-box;
|
383
|
-
width: 100%;
|
384
|
-
height: 100%;
|
385
|
-
border-radius: 50%;
|
386
|
-
border: solid 2px transparent;
|
387
|
-
border-top: solid 2px #777777;
|
388
|
-
transform-origin: center;
|
389
|
-
}
|
390
|
-
|
391
|
-
.uni-load-more__img--android-MP .uni-load-more__img-icon:nth-child(1) {
|
392
|
-
animation: loading-android-MP-1 1s 0s linear infinite;
|
393
|
-
}
|
394
|
-
|
395
|
-
.uni-load-more__img--android-MP .uni-load-more__img-icon:nth-child(2) {
|
396
|
-
animation: loading-android-MP-2 1s 0s linear infinite;
|
397
|
-
}
|
398
|
-
|
399
|
-
.uni-load-more__img--android-MP .uni-load-more__img-icon:nth-child(3) {
|
400
|
-
animation: loading-android-MP-3 1s 0s linear infinite;
|
401
|
-
}
|
402
|
-
|
403
|
-
@keyframes loading-android {
|
404
|
-
0% {
|
405
|
-
transform: rotate(0deg);
|
406
|
-
}
|
407
|
-
|
408
|
-
100% {
|
409
|
-
transform: rotate(360deg);
|
410
|
-
}
|
411
|
-
}
|
412
|
-
|
413
|
-
@keyframes loading-android-MP-1 {
|
414
|
-
0% {
|
415
|
-
transform: rotate(0deg);
|
416
|
-
}
|
417
|
-
|
418
|
-
50% {
|
419
|
-
transform: rotate(90deg);
|
420
|
-
}
|
421
|
-
|
422
|
-
100% {
|
423
|
-
transform: rotate(360deg);
|
424
|
-
}
|
425
|
-
}
|
426
|
-
|
427
|
-
@keyframes loading-android-MP-2 {
|
428
|
-
0% {
|
429
|
-
transform: rotate(0deg);
|
430
|
-
}
|
431
|
-
|
432
|
-
50% {
|
433
|
-
transform: rotate(180deg);
|
434
|
-
}
|
435
|
-
|
436
|
-
100% {
|
437
|
-
transform: rotate(360deg);
|
438
|
-
}
|
439
|
-
}
|
440
|
-
|
441
|
-
@keyframes loading-android-MP-3 {
|
442
|
-
0% {
|
443
|
-
transform: rotate(0deg);
|
444
|
-
}
|
445
|
-
|
446
|
-
50% {
|
447
|
-
transform: rotate(270deg);
|
448
|
-
}
|
449
|
-
|
450
|
-
100% {
|
451
|
-
transform: rotate(360deg);
|
452
|
-
}
|
453
|
-
}
|
454
|
-
|
455
|
-
/* #endif */
|
456
|
-
</style>
|