zartui 2.0.34 → 2.0.35

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.
Binary file
@@ -1 +1 @@
1
- .zt2-back-top{position:fixed;bottom:12px;right:12px;width:48px;height:48px;background:rgba(255,255,255,.6);border-radius:50%;box-shadow:0 4px 8px 0 rgba(0,0,0,.2);-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 svg{width:24px}.zt2-back-top.half-border::before{border-radius:50%}
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%}
@@ -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().addEventListener("scroll", function (e) {
71
- var scrollTop = getScroll(_this.target(), true);
74
+ var $target = this.target();
72
75
 
73
- if (scrollTop >= _this.visibilityHeight) {
74
- _this.showButton = true;
75
- } else {
76
- _this.showButton = false;
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 = '';
@@ -134,11 +144,11 @@ export default createComponent({
134
144
  }
135
145
  },
136
146
  end: function end() {
137
- var _this2 = this;
147
+ var _this = this;
138
148
 
139
149
  this.flags = false;
140
150
  setTimeout(function () {
141
- _this2.blurStyle = 'opacity:0.3;';
151
+ _this.blurStyle = 'opacity:0.3;';
142
152
  }, 3000);
143
153
  },
144
154
  backTop: function backTop(event) {
@@ -187,20 +197,10 @@ export default createComponent({
187
197
  "click": this.backTop
188
198
  },
189
199
  "style": this.blurStyle
190
- }, [h("svg", {
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
- "d": "M12.1252846,2.04229201 C12.406091,2.04229201 12.6420247,2.13629271 12.8336091,2.33000304 L19.8037393,9.30040177 C19.9946618,9.49119157 20.0911844,9.72632732 20.0911844,10.0084605 C20.0911844,10.2933839 19.9962543,10.5313075 19.8073245,10.7193094 C19.6187919,10.9074438 19.380604,11.0042329 19.0954147,11.0042329 C18.8150057,11.0042329 18.5792064,10.9073111 18.3876192,10.7165218 L13.1213094,5.44172565 L13.1213094,20.9619488 C13.1213094,21.2358534 13.0239894,21.4708551 12.8286865,21.6645639 C12.6344447,21.8609299 12.3997075,21.9577185 12.1247421,21.9577185 C11.8499083,21.9577185 11.6155699,21.8607967 11.4205318,21.6645639 C11.2260244,21.4708533 11.1284379,21.2357191 11.1284379,20.9619488 L11.1284379,5.44172565 L5.86185954,10.7166561 C5.67040588,10.907313 5.43473893,11.0042355 5.15380086,11.0042355 C4.86861156,11.0042355 4.63121968,10.9073138 4.44215696,10.7193121 C4.2526949,10.5313105 4.15882607,10.2933866 4.15882607,10.0084631 C4.15882607,9.72632732 4.25428743,9.49119399 4.44600536,9.30040446 L11.4160013,2.33000572 C11.6074549,2.13629512 11.8436509,2.04229201 12.1241942,2.04229201 L12.1252564,2.04229201 L12.1252846,2.04229201 Z",
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
  });
@@ -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%;
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.34';
77
+ var version = '2.0.35';
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];
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: rgba(255,255,255,0.60);
1061
- @backtop-box-shadow: 0 4px 8px 0 rgba(0,0,0,0.20);
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;
Binary file
@@ -1 +1 @@
1
- .zt2-back-top{position:fixed;bottom:12px;right:12px;width:48px;height:48px;background:rgba(255,255,255,.6);border-radius:50%;box-shadow:0 4px 8px 0 rgba(0,0,0,.2);-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 svg{width:24px}.zt2-back-top.half-border::before{border-radius:50%}
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%}
@@ -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().addEventListener("scroll", function (e) {
81
- var scrollTop = (0, _getScroll.default)(_this.target(), true);
84
+ var $target = this.target();
82
85
 
83
- if (scrollTop >= _this.visibilityHeight) {
84
- _this.showButton = true;
85
- } else {
86
- _this.showButton = false;
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 = '';
@@ -144,11 +154,11 @@ var _default2 = createComponent({
144
154
  }
145
155
  },
146
156
  end: function end() {
147
- var _this2 = this;
157
+ var _this = this;
148
158
 
149
159
  this.flags = false;
150
160
  setTimeout(function () {
151
- _this2.blurStyle = 'opacity:0.3;';
161
+ _this.blurStyle = 'opacity:0.3;';
152
162
  }, 3000);
153
163
  },
154
164
  backTop: function backTop(event) {
@@ -197,21 +207,11 @@ var _default2 = createComponent({
197
207
  "click": this.backTop
198
208
  },
199
209
  "style": this.blurStyle
200
- }, [h("svg", {
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
- "d": "M12.1252846,2.04229201 C12.406091,2.04229201 12.6420247,2.13629271 12.8336091,2.33000304 L19.8037393,9.30040177 C19.9946618,9.49119157 20.0911844,9.72632732 20.0911844,10.0084605 C20.0911844,10.2933839 19.9962543,10.5313075 19.8073245,10.7193094 C19.6187919,10.9074438 19.380604,11.0042329 19.0954147,11.0042329 C18.8150057,11.0042329 18.5792064,10.9073111 18.3876192,10.7165218 L13.1213094,5.44172565 L13.1213094,20.9619488 C13.1213094,21.2358534 13.0239894,21.4708551 12.8286865,21.6645639 C12.6344447,21.8609299 12.3997075,21.9577185 12.1247421,21.9577185 C11.8499083,21.9577185 11.6155699,21.8607967 11.4205318,21.6645639 C11.2260244,21.4708533 11.1284379,21.2357191 11.1284379,20.9619488 L11.1284379,5.44172565 L5.86185954,10.7166561 C5.67040588,10.907313 5.43473893,11.0042355 5.15380086,11.0042355 C4.86861156,11.0042355 4.63121968,10.9073138 4.44215696,10.7193121 C4.2526949,10.5313105 4.15882607,10.2933866 4.15882607,10.0084631 C4.15882607,9.72632732 4.25428743,9.49119399 4.44600536,9.30040446 L11.4160013,2.33000572 C11.6074549,2.13629512 11.8436509,2.04229201 12.1241942,2.04229201 L12.1252564,2.04229201 L12.1252846,2.04229201 Z",
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
 
@@ -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%;