zartui 2.0.40 → 2.0.42

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.
@@ -549,7 +549,8 @@ export default createComponent({
549
549
  "position": this.position,
550
550
  "getContainer": this.getContainer,
551
551
  "closeOnPopstate": this.closeOnPopstate,
552
- "closeOnClickOverlay": this.closeOnClickOverlay
552
+ "closeOnClickOverlay": this.closeOnClickOverlay,
553
+ "safeAreaInsetBottom": this.safeAreaInsetBottom
553
554
  },
554
555
  "on": {
555
556
  "input": this.togglePopup,
@@ -40,6 +40,10 @@ export default createComponent({
40
40
  getContainer: {
41
41
  type: [String, Function],
42
42
  default: 'body'
43
+ },
44
+ safeAreaInsetBottom: {
45
+ type: Boolean,
46
+ default: false
43
47
  }
44
48
  },
45
49
  data: function data() {
@@ -321,10 +325,10 @@ export default createComponent({
321
325
  "round": true,
322
326
  "position": "bottom",
323
327
  "getContainer": this.getContainer,
324
- "safe-area-inset-bottom": true,
325
328
  "closeOnPopstate": this.closeOnPopstate,
326
329
  "closeOnClickOverlay": this.closeOnClickOverlay,
327
- "customOnClickOverlay": this.onClickOverlay
330
+ "customOnClickOverlay": this.onClickOverlay,
331
+ "safeAreaInsetBottom": this.safeAreaInsetBottom
328
332
  }
329
333
  }, [this.renderCascade()]);
330
334
  }
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.40';
77
+ var version = '2.0.42';
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];
@@ -8,7 +8,6 @@ import Loading from '../loading';
8
8
  import MultiplePickerOptions from './MultiplePickerOptions';
9
9
  import Popup from '../popup';
10
10
  import { PopupMixin } from '../mixins/popup';
11
- import { deepClone } from '../utils/deep-clone';
12
11
  import Button from '../button';
13
12
 
14
13
  var _createNamespace = createNamespace('multiple-picker'),
@@ -46,6 +45,10 @@ export default createComponent({
46
45
  columnCounts: {
47
46
  type: Number,
48
47
  default: 3
48
+ },
49
+ safeAreaInsetBottom: {
50
+ type: Boolean,
51
+ default: false
49
52
  }
50
53
  }),
51
54
  data: function data() {
@@ -231,7 +234,8 @@ export default createComponent({
231
234
  "closeOnPopstate": this.closeOnPopstate,
232
235
  "closeOnClickOverlay": this.closeOnClickOverlay,
233
236
  "customOnClickOverlay": this.onClickOverlay,
234
- "getContainer": this.getContainer
237
+ "getContainer": this.getContainer,
238
+ "safeAreaInsetBottom": this.safeAreaInsetBottom
235
239
  }
236
240
  }, [h("div", {
237
241
  "class": bem(),
@@ -23,6 +23,10 @@ export default createComponent({
23
23
  type: Boolean,
24
24
  default: true
25
25
  },
26
+ safeAreaInsetBottom: {
27
+ type: Boolean,
28
+ default: false
29
+ },
26
30
  defaultIndex: {
27
31
  type: [Number, String],
28
32
  default: 0
@@ -30,5 +30,9 @@ export var pickerProps = {
30
30
  closeOnClickOverlay: {
31
31
  type: Boolean,
32
32
  default: true
33
+ },
34
+ safeAreaInsetBottom: {
35
+ type: Boolean,
36
+ default: false
33
37
  }
34
38
  };
@@ -1 +1 @@
1
- .zt2-timeline{background-color:#fff}.zt2-timeline .zt2-timeline__top-bar{height:44px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.zt2-timeline .zt2-timeline__top-left{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.zt2-timeline .zt2-timeline__bar{width:4px;height:16px;background:#0091fa;margin-right:12px}.zt2-timeline .zt2-timeline__top-right{padding-right:16px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.zt2-timeline .zt2-timeline__fold-text{font-size:14px;color:rgba(45,75,115,.6);line-height:24px;margin-right:8px}.zt2-timeline .zt2-timeline__container{padding-top:16px}.zt2-timeline .zt2-timeline__item{padding:0 16px 16px 16px;display:-webkit-box;display:-webkit-flex;display:flex}.zt2-timeline .zt2-timeline__item.last-item .zt2-timeline__line{height:0}.zt2-timeline .zt2-timeline__left-container{margin-right:8px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.zt2-timeline .zt2-timeline__right-container{-webkit-box-flex:1;-webkit-flex:1;flex:1}.zt2-timeline .zt2-timeline__avatar-box{width:40px;height:40px;position:relative}.zt2-timeline .zt2-timeline__status{width:16px;height:16px;position:absolute;bottom:-4px;right:-4px}.zt2-timeline .zt2-timeline__avatar{width:40px;height:40px;background:rgba(0,145,250,.7);border-radius:4px;font-size:14px;font-weight:700;text-align:center;color:#fff;line-height:40px}.zt2-timeline .zt2-timeline__line{background-color:#f5f5f5;width:2px;height:100%;margin-top:4px;margin-bottom:-12px}.zt2-timeline .zt2-timeline__title-box{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;align-items:center;margin-bottom:8px}.zt2-timeline .zt2-timeline__title{font-size:14px;font-weight:700;color:#2d4b73;line-height:24px}.zt2-timeline .zt2-timeline__time{font-size:12px;color:rgba(45,75,115,.8);line-height:16px}.zt2-timeline .zt2-timeline__content-box{font-size:14px;color:#2d4b73;line-height:20px;padding-bottom:8px;padding-top:4px}.zt2-timeline .zt2-timeline__human-box{padding-bottom:8px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-flex-wrap:wrap;flex-wrap:wrap;overflow:hidden}.zt2-timeline .zt2-timeline__human-box .zt2-timeline__depart{font-size:14px;color:#2d4b73;line-height:20px;margin-right:8px}.zt2-timeline .zt2-timeline__human-box .zt2-timeline__human{font-weight:700;font-size:14px;color:#2d4b73;line-height:20px}.zt2-timeline .zt2-timeline__main-container{background:rgba(45,75,115,.04);border-radius:4px;padding:8px 12px}.zt2-timeline .zt2-timeline__main-container::before{border-radius:4px}.zt2-timeline .zt2-timeline__main-container .zt2-timeline__text-bold{font-weight:700;color:#2d4b73}.zt2-timeline .zt2-timeline__opinion-box{padding-top:7px}.zt2-timeline .zt2-timeline__opinion-box .zt2-timeline__opinion--empty{font-size:14px;color:rgba(45,75,115,.2)}.zt2-timeline .zt2-timeline__content-label,.zt2-timeline .zt2-timeline__opinion-label{margin-bottom:4px;font-size:14px;color:rgba(45,75,115,.6);line-height:20px}.zt2-timeline .zt2-timeline__opinion{font-size:14px;color:#2d4b73;line-height:20px}
1
+ .zt2-timeline{background-color:#fff}.zt2-timeline .zt2-timeline__top-bar{height:44px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.zt2-timeline .zt2-timeline__top-left{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.zt2-timeline .zt2-timeline__bar{width:4px;height:16px;background:#0091fa;margin-right:12px}.zt2-timeline .zt2-timeline__top-right{padding-right:16px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.zt2-timeline .zt2-timeline__fold-text{font-size:14px;color:rgba(45,75,115,.6);line-height:24px;margin-right:8px}.zt2-timeline .zt2-timeline__container{padding-top:16px}.zt2-timeline .zt2-timeline__item{padding:0 16px 16px 16px;display:-webkit-box;display:-webkit-flex;display:flex}.zt2-timeline .zt2-timeline__item.last-item .zt2-timeline__line{height:0}.zt2-timeline .zt2-timeline__left-container{margin-right:8px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.zt2-timeline .zt2-timeline__right-container{-webkit-box-flex:1;-webkit-flex:1;flex:1}.zt2-timeline .zt2-timeline__avatar-box{width:40px;height:40px;position:relative}.zt2-timeline .zt2-timeline__status{width:16px;height:16px;position:absolute;bottom:-4px;right:-4px}.zt2-timeline .zt2-timeline__avatar{width:40px;height:40px;background:rgba(0,145,250,.7);border-radius:4px;font-size:14px;font-weight:700;text-align:center;color:#fff;line-height:40px}.zt2-timeline .zt2-timeline__line{background-color:#f5f5f5;width:2px;height:100%;margin-top:4px;margin-bottom:-12px}.zt2-timeline .zt2-timeline__title-box{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;align-items:center;margin-bottom:8px}.zt2-timeline .zt2-timeline__main-title{font-size:16px;font-weight:700;color:#2d4b73;line-height:24px}.zt2-timeline .zt2-timeline__title{font-size:14px;font-weight:700;color:#2d4b73;line-height:24px}.zt2-timeline .zt2-timeline__time{font-size:12px;color:rgba(45,75,115,.8);line-height:16px}.zt2-timeline .zt2-timeline__content-box{font-size:14px;color:#2d4b73;line-height:20px;padding-bottom:8px;padding-top:4px}.zt2-timeline .zt2-timeline__human-box{padding-bottom:8px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-flex-wrap:wrap;flex-wrap:wrap;overflow:hidden}.zt2-timeline .zt2-timeline__human-box .zt2-timeline__depart{font-size:14px;color:#2d4b73;line-height:20px;margin-right:8px}.zt2-timeline .zt2-timeline__human-box .zt2-timeline__human{font-weight:700;font-size:14px;color:#2d4b73;line-height:20px}.zt2-timeline .zt2-timeline__main-container{background:rgba(45,75,115,.04);border-radius:4px;padding:8px 12px}.zt2-timeline .zt2-timeline__main-container::before{border-radius:4px}.zt2-timeline .zt2-timeline__main-container .zt2-timeline__text-bold{font-weight:700;color:#2d4b73}.zt2-timeline .zt2-timeline__opinion-box{padding-top:7px}.zt2-timeline .zt2-timeline__opinion-box .zt2-timeline__opinion--empty{font-size:14px;color:rgba(45,75,115,.2)}.zt2-timeline .zt2-timeline__content-label,.zt2-timeline .zt2-timeline__opinion-label{margin-bottom:4px;font-size:14px;color:rgba(45,75,115,.6);line-height:20px}.zt2-timeline .zt2-timeline__opinion{font-size:14px;color:#2d4b73;line-height:20px}
@@ -50,6 +50,10 @@ export default createComponent({
50
50
  enableSingleFold: {
51
51
  type: Boolean,
52
52
  default: true
53
+ },
54
+ showFold: {
55
+ type: Boolean,
56
+ default: true
53
57
  }
54
58
  },
55
59
  data: function data() {
@@ -231,14 +235,18 @@ export default createComponent({
231
235
  return h("div", {
232
236
  "class": bem()
233
237
  }, [h("div", {
234
- "class": [bem("top-bar"), BORDER_BOTTOM]
238
+ "class": [bem("top-bar" + " half-border-bottom"), BORDER_BOTTOM]
235
239
  }, [h("div", {
236
240
  "class": bem("top-left")
237
241
  }, [h("div", {
238
242
  "class": bem("bar")
239
243
  }), h("div", {
240
- "class": bem("title")
244
+ "class": bem("main-title")
241
245
  }, [this.title])]), h("div", {
246
+ "directives": [{
247
+ name: "show",
248
+ value: this.showFold
249
+ }],
242
250
  "class": bem("top-right")
243
251
  }, [h("span", {
244
252
  "class": bem("fold-text")
@@ -86,6 +86,12 @@
86
86
  align-items: center;
87
87
  margin-bottom: 8px;
88
88
  }
89
+ .@{base-prefix}-timeline__main-title {
90
+ font-size: 16px;
91
+ font-weight: bold;
92
+ color: rgba(45, 75, 115, 1);
93
+ line-height: 24px;
94
+ }
89
95
  .@{base-prefix}-timeline__title {
90
96
  font-size: 14px;
91
97
  font-weight: bold;
@@ -565,7 +565,8 @@ var _default2 = (0, _utils.createComponent)({
565
565
  "position": this.position,
566
566
  "getContainer": this.getContainer,
567
567
  "closeOnPopstate": this.closeOnPopstate,
568
- "closeOnClickOverlay": this.closeOnClickOverlay
568
+ "closeOnClickOverlay": this.closeOnClickOverlay,
569
+ "safeAreaInsetBottom": this.safeAreaInsetBottom
569
570
  },
570
571
  "on": {
571
572
  "input": this.togglePopup,
@@ -53,6 +53,10 @@ var _default2 = createComponent({
53
53
  getContainer: {
54
54
  type: [String, Function],
55
55
  default: 'body'
56
+ },
57
+ safeAreaInsetBottom: {
58
+ type: Boolean,
59
+ default: false
56
60
  }
57
61
  },
58
62
  data: function data() {
@@ -334,10 +338,10 @@ var _default2 = createComponent({
334
338
  "round": true,
335
339
  "position": "bottom",
336
340
  "getContainer": this.getContainer,
337
- "safe-area-inset-bottom": true,
338
341
  "closeOnPopstate": this.closeOnPopstate,
339
342
  "closeOnClickOverlay": this.closeOnClickOverlay,
340
- "customOnClickOverlay": this.onClickOverlay
343
+ "customOnClickOverlay": this.onClickOverlay,
344
+ "safeAreaInsetBottom": this.safeAreaInsetBottom
341
345
  }
342
346
  }, [this.renderCascade()]);
343
347
  }