zartui 2.0.34 → 2.0.36
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/es/avatar/index.js +1 -1
- package/es/back-top/images/top.png +0 -0
- package/es/back-top/index.css +1 -1
- package/es/back-top/index.js +30 -30
- package/es/back-top/index.less +1 -3
- package/es/cascader/style/index.js +2 -2
- package/es/cascader/style/less.js +2 -2
- package/es/index.js +1 -1
- package/es/media-picker/style/index.js +1 -0
- package/es/media-picker/style/less.js +1 -0
- package/es/media-player/index.js +4 -2
- package/es/media-player/style/index.js +1 -0
- package/es/media-player/style/less.js +1 -0
- package/es/sticky/index.js +2 -1
- package/es/sticky/style/index.js +1 -0
- package/es/sticky/style/less.js +1 -0
- package/es/style/var.less +2 -2
- package/es/tabs/style/index.js +1 -0
- package/es/tabs/style/less.js +1 -0
- package/lib/avatar/index.js +1 -1
- package/lib/back-top/images/top.png +0 -0
- package/lib/back-top/index.css +1 -1
- package/lib/back-top/index.js +30 -30
- package/lib/back-top/index.less +1 -3
- package/lib/cascader/style/index.js +2 -2
- package/lib/cascader/style/less.js +2 -2
- package/lib/index.css +1 -1
- package/lib/index.js +1 -1
- package/lib/index.less +2 -2
- package/lib/media-picker/style/index.js +1 -0
- package/lib/media-picker/style/less.js +1 -0
- package/lib/media-player/index.js +6 -2
- package/lib/media-player/style/index.js +1 -0
- package/lib/media-player/style/less.js +1 -0
- package/lib/sticky/index.js +5 -1
- package/lib/sticky/style/index.js +1 -0
- package/lib/sticky/style/less.js +1 -0
- package/lib/style/var.less +2 -2
- package/lib/tabs/style/index.js +1 -0
- package/lib/tabs/style/less.js +1 -0
- package/lib/zart.js +1655 -1347
- package/lib/zart.min.js +1 -1
- package/package.json +2 -2
package/es/avatar/index.js
CHANGED
|
Binary file
|
package/es/back-top/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.zt2-back-top{position:fixed;bottom:12px;right:12px;width:48px;height:48px;background:
|
|
1
|
+
.zt2-back-top{position:fixed;bottom:12px;right:12px;width:48px;height:48px;background:-webkit-linear-gradient(314deg,#058ce6 6%,#00c3ff 96%);background:linear-gradient(136deg,#058ce6 6%,#00c3ff 96%);border:2px solid #c3ebff;border-radius:50%;box-shadow:0 4px 12px 0 rgba(5,140,230,.4);-webkit-filter:blur(2);filter:blur(2);display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.zt2-back-top.half-border::before{border-radius:50%}
|
package/es/back-top/index.js
CHANGED
|
@@ -49,8 +49,8 @@ export default createComponent({
|
|
|
49
49
|
clientWidth: '',
|
|
50
50
|
clientHeight: '',
|
|
51
51
|
showButton: false,
|
|
52
|
-
bodyInitialHeight:
|
|
53
|
-
bodyInitialMinHeight:
|
|
52
|
+
bodyInitialHeight: 'auto',
|
|
53
|
+
bodyInitialMinHeight: 'auto'
|
|
54
54
|
};
|
|
55
55
|
},
|
|
56
56
|
computed: {
|
|
@@ -62,25 +62,35 @@ export default createComponent({
|
|
|
62
62
|
this.clientWidth = document.documentElement.clientWidth;
|
|
63
63
|
this.clientHeight = document.documentElement.clientHeight;
|
|
64
64
|
this.recordHeight();
|
|
65
|
+
var $target = this.target();
|
|
66
|
+
|
|
67
|
+
if ($target) {
|
|
68
|
+
$target.removeEventListener('scroll', this.scrollListener);
|
|
69
|
+
$target.addEventListener('scroll', this.scrollListener);
|
|
70
|
+
}
|
|
65
71
|
},
|
|
66
72
|
activated: function activated() {
|
|
67
|
-
var _this = this;
|
|
68
|
-
|
|
69
73
|
this.recordHeight();
|
|
70
|
-
this.target()
|
|
71
|
-
var scrollTop = getScroll(_this.target(), true);
|
|
74
|
+
var $target = this.target();
|
|
72
75
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
}
|
|
78
|
-
});
|
|
76
|
+
if ($target) {
|
|
77
|
+
$target.removeEventListener('scroll', this.scrollListener);
|
|
78
|
+
$target.addEventListener('scroll', this.scrollListener);
|
|
79
|
+
}
|
|
79
80
|
},
|
|
80
81
|
deactivated: function deactivated() {
|
|
81
82
|
this.setHeight(true);
|
|
82
83
|
},
|
|
83
84
|
methods: {
|
|
85
|
+
scrollListener: function scrollListener() {
|
|
86
|
+
var scrollTop = getScroll(this.target(), true);
|
|
87
|
+
|
|
88
|
+
if (scrollTop >= this.visibilityHeight) {
|
|
89
|
+
this.showButton = true;
|
|
90
|
+
} else {
|
|
91
|
+
this.showButton = false;
|
|
92
|
+
}
|
|
93
|
+
},
|
|
84
94
|
// 实现移动端拖拽
|
|
85
95
|
down: function down(event) {
|
|
86
96
|
this.blurStyle = '';
|
|
@@ -129,16 +139,16 @@ export default createComponent({
|
|
|
129
139
|
top = this.clientHeight - 56;
|
|
130
140
|
}
|
|
131
141
|
|
|
132
|
-
this.backTopDiv.style.left = left +
|
|
133
|
-
this.backTopDiv.style.top = top +
|
|
142
|
+
this.backTopDiv.style.left = left + 'px';
|
|
143
|
+
this.backTopDiv.style.top = top + 'px';
|
|
134
144
|
}
|
|
135
145
|
},
|
|
136
146
|
end: function end() {
|
|
137
|
-
var
|
|
147
|
+
var _this = this;
|
|
138
148
|
|
|
139
149
|
this.flags = false;
|
|
140
150
|
setTimeout(function () {
|
|
141
|
-
|
|
151
|
+
_this.blurStyle = 'opacity:0.3;';
|
|
142
152
|
}, 3000);
|
|
143
153
|
},
|
|
144
154
|
backTop: function backTop(event) {
|
|
@@ -176,7 +186,7 @@ export default createComponent({
|
|
|
176
186
|
name: "show",
|
|
177
187
|
value: this.showButton
|
|
178
188
|
}],
|
|
179
|
-
"class": bem() +
|
|
189
|
+
"class": bem() + ' half-border',
|
|
180
190
|
"attrs": {
|
|
181
191
|
"id": "backTopDiv"
|
|
182
192
|
},
|
|
@@ -187,20 +197,10 @@ export default createComponent({
|
|
|
187
197
|
"click": this.backTop
|
|
188
198
|
},
|
|
189
199
|
"style": this.blurStyle
|
|
190
|
-
}, [h("
|
|
191
|
-
"attrs": {
|
|
192
|
-
"xmlns": "http://www.w3.org/2000/svg",
|
|
193
|
-
"viewBox": "0 0 24 24"
|
|
194
|
-
},
|
|
195
|
-
"class": "design-iconfont"
|
|
196
|
-
}, [h("path", {
|
|
200
|
+
}, [h("img", {
|
|
197
201
|
"attrs": {
|
|
198
|
-
"
|
|
199
|
-
"fill": "#000",
|
|
200
|
-
"fill-rule": "nonzero",
|
|
201
|
-
"stroke": "#000",
|
|
202
|
-
"stroke-width": ".5"
|
|
202
|
+
"src": require('./images/top.png')
|
|
203
203
|
}
|
|
204
|
-
})])
|
|
204
|
+
})]);
|
|
205
205
|
}
|
|
206
206
|
});
|
package/es/back-top/index.less
CHANGED
|
@@ -6,15 +6,13 @@
|
|
|
6
6
|
width: @backtop-size;
|
|
7
7
|
height: @backtop-size;
|
|
8
8
|
background: @backtop-background-color;
|
|
9
|
+
border: 2px solid #C3EBFF;
|
|
9
10
|
border-radius: 50%;
|
|
10
11
|
box-shadow: @backtop-box-shadow;
|
|
11
12
|
filter: blur(2);
|
|
12
13
|
display: flex;
|
|
13
14
|
justify-content: center;
|
|
14
15
|
align-items: center;
|
|
15
|
-
svg {
|
|
16
|
-
width: @backtop-svg-size;
|
|
17
|
-
}
|
|
18
16
|
}
|
|
19
17
|
.@{base-prefix}-back-top.half-border::before {
|
|
20
18
|
border-radius: 50%;
|
|
@@ -4,9 +4,9 @@ import '../../info/index.css';
|
|
|
4
4
|
import '../../icon/index.css';
|
|
5
5
|
import '../../popup/index.css';
|
|
6
6
|
import '../../loading/index.css';
|
|
7
|
-
import '../../button/index.css';
|
|
8
|
-
import '../../tab/index.css';
|
|
9
7
|
import '../../sticky/index.css';
|
|
10
8
|
import '../../tabs/index.css';
|
|
9
|
+
import '../../button/index.css';
|
|
10
|
+
import '../../tab/index.css';
|
|
11
11
|
import '../../divider/index.css';
|
|
12
12
|
import '../index.css';
|
|
@@ -4,9 +4,9 @@ import '../../info/index.less';
|
|
|
4
4
|
import '../../icon/index.less';
|
|
5
5
|
import '../../popup/index.less';
|
|
6
6
|
import '../../loading/index.less';
|
|
7
|
-
import '../../button/index.less';
|
|
8
|
-
import '../../tab/index.less';
|
|
9
7
|
import '../../sticky/index.less';
|
|
10
8
|
import '../../tabs/index.less';
|
|
9
|
+
import '../../button/index.less';
|
|
10
|
+
import '../../tab/index.less';
|
|
11
11
|
import '../../divider/index.less';
|
|
12
12
|
import '../index.less';
|
package/es/index.js
CHANGED
|
@@ -74,7 +74,7 @@ import Tag from './tag';
|
|
|
74
74
|
import Timeline from './timeline';
|
|
75
75
|
import Toast from './toast';
|
|
76
76
|
import Uploader from './uploader';
|
|
77
|
-
var version = '2.0.
|
|
77
|
+
var version = '2.0.36';
|
|
78
78
|
|
|
79
79
|
function install(Vue) {
|
|
80
80
|
var components = [ActionSheet, Area, Avatar, BackTop, Badge, Button, Calendar, Cascader, Cell, CellGroup, Checkbox, CheckboxGroup, Col, Collapse, CollapseItem, CountDown, DatetimePicker, Dialog, Divider, DropdownItem, DropdownMenu, Empty, Field, FoldDialog, Form, Grid, GridItem, HierarchySelect, Icon, Image, ImagePreview, IndexAnchor, IndexBar, Info, Lazyload, List, Loading, Locale, MediaPicker, MediaPlayer, MultiplePicker, NavBar, NoticeBar, NumberKeyboard, Overlay, PasswordInput, Picker, Popover, Popup, PullRefresh, Radio, RadioGroup, Rate, Row, Search, Signature, Skeleton, Slider, Step, Stepper, Steps, Sticky, Swipe, SwipeCell, SwipeItem, Switch, SwitchCell, Tab, Tabbar, TabbarItem, Table, Tabs, Tag, Timeline, Toast, Uploader];
|
|
@@ -7,6 +7,7 @@ import '../../grid-item/index.css';
|
|
|
7
7
|
import '../../popup/index.css';
|
|
8
8
|
import '../../loading/index.css';
|
|
9
9
|
import '../../toast/index.css';
|
|
10
|
+
import '../../button/index.css';
|
|
10
11
|
import '../../action-sheet/index.css';
|
|
11
12
|
import '../../grid/index.css';
|
|
12
13
|
import '../../swipe/index.css';
|
|
@@ -7,6 +7,7 @@ import '../../grid-item/index.less';
|
|
|
7
7
|
import '../../popup/index.less';
|
|
8
8
|
import '../../loading/index.less';
|
|
9
9
|
import '../../toast/index.less';
|
|
10
|
+
import '../../button/index.less';
|
|
10
11
|
import '../../action-sheet/index.less';
|
|
11
12
|
import '../../grid/index.less';
|
|
12
13
|
import '../../swipe/index.less';
|
package/es/media-player/index.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { createNamespace } from '../utils';
|
|
2
2
|
import { MediaType } from "../media-picker/type";
|
|
3
3
|
import Toast from '../toast';
|
|
4
|
+
import Popup from '../popup';
|
|
5
|
+
import Button from '../button';
|
|
4
6
|
import { isIOS, isWeixin } from "../utils/device";
|
|
5
7
|
|
|
6
8
|
var _createNamespace = createNamespace('media-player'),
|
|
@@ -122,7 +124,7 @@ export default createComponent({
|
|
|
122
124
|
}
|
|
123
125
|
},
|
|
124
126
|
render: function render(h) {
|
|
125
|
-
return h(
|
|
127
|
+
return h(Popup, {
|
|
126
128
|
"class": bem(),
|
|
127
129
|
"attrs": {
|
|
128
130
|
"value": this.value,
|
|
@@ -135,7 +137,7 @@ export default createComponent({
|
|
|
135
137
|
"on": {
|
|
136
138
|
"open": this.onOpen
|
|
137
139
|
}
|
|
138
|
-
}, [this.renderTag(), h(
|
|
140
|
+
}, [this.renderTag(), h(Button, {
|
|
139
141
|
"attrs": {
|
|
140
142
|
"block": true,
|
|
141
143
|
"square": true,
|
package/es/sticky/index.js
CHANGED
|
@@ -4,6 +4,7 @@ import { createNamespace, isDef, isServer } from '../utils';
|
|
|
4
4
|
import { getScrollTop, getElementTop, getScroller } from '../utils/dom/scroll';
|
|
5
5
|
import { BindEventMixin } from '../mixins/bind-event';
|
|
6
6
|
import { TouchMixin } from '../mixins/touch';
|
|
7
|
+
import Loading from '../loading';
|
|
7
8
|
|
|
8
9
|
var _createNamespace = createNamespace('sticky'),
|
|
9
10
|
createComponent = _createNamespace[0],
|
|
@@ -286,7 +287,7 @@ export default createComponent({
|
|
|
286
287
|
return this.slots('pull');
|
|
287
288
|
}
|
|
288
289
|
|
|
289
|
-
return h(
|
|
290
|
+
return h(Loading);
|
|
290
291
|
}
|
|
291
292
|
},
|
|
292
293
|
scrollAnimation: function scrollAnimation(currentY, targetY, lockfixed) {
|
package/es/sticky/style/index.js
CHANGED
package/es/sticky/style/less.js
CHANGED
package/es/style/var.less
CHANGED
|
@@ -1057,8 +1057,8 @@
|
|
|
1057
1057
|
@backtop-svg-size: 24px;
|
|
1058
1058
|
@backtop-bottom: 12px;
|
|
1059
1059
|
@backtop-right: 12px;
|
|
1060
|
-
@backtop-background-color:
|
|
1061
|
-
@backtop-box-shadow: 0 4px
|
|
1060
|
+
@backtop-background-color: linear-gradient(136deg, #058CE6 6%, #00C3FF 96%);
|
|
1061
|
+
@backtop-box-shadow: 0 4px 12px 0 rgba(5,140,230,0.40);
|
|
1062
1062
|
|
|
1063
1063
|
// Table
|
|
1064
1064
|
@table-border-radius: @border-radius-lg;
|
package/es/tabs/style/index.js
CHANGED
package/es/tabs/style/less.js
CHANGED
package/lib/avatar/index.js
CHANGED
|
Binary file
|
package/lib/back-top/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.zt2-back-top{position:fixed;bottom:12px;right:12px;width:48px;height:48px;background:
|
|
1
|
+
.zt2-back-top{position:fixed;bottom:12px;right:12px;width:48px;height:48px;background:-webkit-linear-gradient(314deg,#058ce6 6%,#00c3ff 96%);background:linear-gradient(136deg,#058ce6 6%,#00c3ff 96%);border:2px solid #c3ebff;border-radius:50%;box-shadow:0 4px 12px 0 rgba(5,140,230,.4);-webkit-filter:blur(2);filter:blur(2);display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.zt2-back-top.half-border::before{border-radius:50%}
|
package/lib/back-top/index.js
CHANGED
|
@@ -59,8 +59,8 @@ var _default2 = createComponent({
|
|
|
59
59
|
clientWidth: '',
|
|
60
60
|
clientHeight: '',
|
|
61
61
|
showButton: false,
|
|
62
|
-
bodyInitialHeight:
|
|
63
|
-
bodyInitialMinHeight:
|
|
62
|
+
bodyInitialHeight: 'auto',
|
|
63
|
+
bodyInitialMinHeight: 'auto'
|
|
64
64
|
};
|
|
65
65
|
},
|
|
66
66
|
computed: {
|
|
@@ -72,25 +72,35 @@ var _default2 = createComponent({
|
|
|
72
72
|
this.clientWidth = document.documentElement.clientWidth;
|
|
73
73
|
this.clientHeight = document.documentElement.clientHeight;
|
|
74
74
|
this.recordHeight();
|
|
75
|
+
var $target = this.target();
|
|
76
|
+
|
|
77
|
+
if ($target) {
|
|
78
|
+
$target.removeEventListener('scroll', this.scrollListener);
|
|
79
|
+
$target.addEventListener('scroll', this.scrollListener);
|
|
80
|
+
}
|
|
75
81
|
},
|
|
76
82
|
activated: function activated() {
|
|
77
|
-
var _this = this;
|
|
78
|
-
|
|
79
83
|
this.recordHeight();
|
|
80
|
-
this.target()
|
|
81
|
-
var scrollTop = (0, _getScroll.default)(_this.target(), true);
|
|
84
|
+
var $target = this.target();
|
|
82
85
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
}
|
|
88
|
-
});
|
|
86
|
+
if ($target) {
|
|
87
|
+
$target.removeEventListener('scroll', this.scrollListener);
|
|
88
|
+
$target.addEventListener('scroll', this.scrollListener);
|
|
89
|
+
}
|
|
89
90
|
},
|
|
90
91
|
deactivated: function deactivated() {
|
|
91
92
|
this.setHeight(true);
|
|
92
93
|
},
|
|
93
94
|
methods: {
|
|
95
|
+
scrollListener: function scrollListener() {
|
|
96
|
+
var scrollTop = (0, _getScroll.default)(this.target(), true);
|
|
97
|
+
|
|
98
|
+
if (scrollTop >= this.visibilityHeight) {
|
|
99
|
+
this.showButton = true;
|
|
100
|
+
} else {
|
|
101
|
+
this.showButton = false;
|
|
102
|
+
}
|
|
103
|
+
},
|
|
94
104
|
// 实现移动端拖拽
|
|
95
105
|
down: function down(event) {
|
|
96
106
|
this.blurStyle = '';
|
|
@@ -139,16 +149,16 @@ var _default2 = createComponent({
|
|
|
139
149
|
top = this.clientHeight - 56;
|
|
140
150
|
}
|
|
141
151
|
|
|
142
|
-
this.backTopDiv.style.left = left +
|
|
143
|
-
this.backTopDiv.style.top = top +
|
|
152
|
+
this.backTopDiv.style.left = left + 'px';
|
|
153
|
+
this.backTopDiv.style.top = top + 'px';
|
|
144
154
|
}
|
|
145
155
|
},
|
|
146
156
|
end: function end() {
|
|
147
|
-
var
|
|
157
|
+
var _this = this;
|
|
148
158
|
|
|
149
159
|
this.flags = false;
|
|
150
160
|
setTimeout(function () {
|
|
151
|
-
|
|
161
|
+
_this.blurStyle = 'opacity:0.3;';
|
|
152
162
|
}, 3000);
|
|
153
163
|
},
|
|
154
164
|
backTop: function backTop(event) {
|
|
@@ -186,7 +196,7 @@ var _default2 = createComponent({
|
|
|
186
196
|
name: "show",
|
|
187
197
|
value: this.showButton
|
|
188
198
|
}],
|
|
189
|
-
"class": bem() +
|
|
199
|
+
"class": bem() + ' half-border',
|
|
190
200
|
"attrs": {
|
|
191
201
|
"id": "backTopDiv"
|
|
192
202
|
},
|
|
@@ -197,21 +207,11 @@ var _default2 = createComponent({
|
|
|
197
207
|
"click": this.backTop
|
|
198
208
|
},
|
|
199
209
|
"style": this.blurStyle
|
|
200
|
-
}, [h("
|
|
201
|
-
"attrs": {
|
|
202
|
-
"xmlns": "http://www.w3.org/2000/svg",
|
|
203
|
-
"viewBox": "0 0 24 24"
|
|
204
|
-
},
|
|
205
|
-
"class": "design-iconfont"
|
|
206
|
-
}, [h("path", {
|
|
210
|
+
}, [h("img", {
|
|
207
211
|
"attrs": {
|
|
208
|
-
"
|
|
209
|
-
"fill": "#000",
|
|
210
|
-
"fill-rule": "nonzero",
|
|
211
|
-
"stroke": "#000",
|
|
212
|
-
"stroke-width": ".5"
|
|
212
|
+
"src": require('./images/top.png')
|
|
213
213
|
}
|
|
214
|
-
})])
|
|
214
|
+
})]);
|
|
215
215
|
}
|
|
216
216
|
});
|
|
217
217
|
|
package/lib/back-top/index.less
CHANGED
|
@@ -6,15 +6,13 @@
|
|
|
6
6
|
width: @backtop-size;
|
|
7
7
|
height: @backtop-size;
|
|
8
8
|
background: @backtop-background-color;
|
|
9
|
+
border: 2px solid #C3EBFF;
|
|
9
10
|
border-radius: 50%;
|
|
10
11
|
box-shadow: @backtop-box-shadow;
|
|
11
12
|
filter: blur(2);
|
|
12
13
|
display: flex;
|
|
13
14
|
justify-content: center;
|
|
14
15
|
align-items: center;
|
|
15
|
-
svg {
|
|
16
|
-
width: @backtop-svg-size;
|
|
17
|
-
}
|
|
18
16
|
}
|
|
19
17
|
.@{base-prefix}-back-top.half-border::before {
|
|
20
18
|
border-radius: 50%;
|
|
@@ -4,9 +4,9 @@ require('../../info/index.css');
|
|
|
4
4
|
require('../../icon/index.css');
|
|
5
5
|
require('../../popup/index.css');
|
|
6
6
|
require('../../loading/index.css');
|
|
7
|
-
require('../../button/index.css');
|
|
8
|
-
require('../../tab/index.css');
|
|
9
7
|
require('../../sticky/index.css');
|
|
10
8
|
require('../../tabs/index.css');
|
|
9
|
+
require('../../button/index.css');
|
|
10
|
+
require('../../tab/index.css');
|
|
11
11
|
require('../../divider/index.css');
|
|
12
12
|
require('../index.css');
|
|
@@ -4,9 +4,9 @@ require('../../info/index.less');
|
|
|
4
4
|
require('../../icon/index.less');
|
|
5
5
|
require('../../popup/index.less');
|
|
6
6
|
require('../../loading/index.less');
|
|
7
|
-
require('../../button/index.less');
|
|
8
|
-
require('../../tab/index.less');
|
|
9
7
|
require('../../sticky/index.less');
|
|
10
8
|
require('../../tabs/index.less');
|
|
9
|
+
require('../../button/index.less');
|
|
10
|
+
require('../../tab/index.less');
|
|
11
11
|
require('../../divider/index.less');
|
|
12
12
|
require('../index.less');
|