uview-plus 3.1.45 → 3.1.47

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.
Files changed (137) hide show
  1. package/changelog.md +8 -0
  2. package/components/u-action-sheet/props.js +10 -11
  3. package/components/u-album/props.js +11 -12
  4. package/components/u-alert/props.js +8 -9
  5. package/components/u-avatar/props.js +14 -15
  6. package/components/u-avatar-group/props.js +9 -10
  7. package/components/u-back-top/props.js +10 -11
  8. package/components/u-badge/props.js +14 -15
  9. package/components/u-button/props.js +28 -29
  10. package/components/u-calendar/month.vue +1 -1
  11. package/components/u-calendar/props.js +27 -28
  12. package/components/u-car-keyboard/props.js +0 -1
  13. package/components/u-cell/props.js +17 -18
  14. package/components/u-cell/u-cell.vue +11 -2
  15. package/components/u-cell-group/props.js +2 -3
  16. package/components/u-checkbox/props.js +13 -14
  17. package/components/u-checkbox-group/props.js +16 -17
  18. package/components/u-circle-progress/props.js +1 -2
  19. package/components/u-code/props.js +6 -7
  20. package/components/u-code/u-code.vue +5 -0
  21. package/components/u-code-input/props.js +16 -17
  22. package/components/u-col/props.js +5 -6
  23. package/components/u-collapse/props.js +3 -4
  24. package/components/u-collapse-item/props.js +11 -12
  25. package/components/u-column-notice/props.js +10 -11
  26. package/components/u-count-down/props.js +4 -5
  27. package/components/u-count-down/u-count-down.vue +5 -0
  28. package/components/u-count-to/props.js +11 -12
  29. package/components/u-datetime-picker/props.js +24 -25
  30. package/components/u-divider/props.js +8 -9
  31. package/components/u-dropdown/props.js +0 -1
  32. package/components/u-dropdown-item/props.js +0 -1
  33. package/components/u-empty/props.js +11 -12
  34. package/components/u-form/props.js +8 -9
  35. package/components/u-form/u-form.vue +1 -1
  36. package/components/u-form-item/props.js +13 -9
  37. package/components/u-form-item/u-form-item.vue +1 -0
  38. package/components/u-gap/props.js +4 -5
  39. package/components/u-grid/props.js +3 -4
  40. package/components/u-grid-item/props.js +2 -3
  41. package/components/u-grid-item/u-grid-item.vue +5 -0
  42. package/components/u-icon/props.js +17 -18
  43. package/components/u-icon/u-icon.vue +9 -6
  44. package/components/u-image/props.js +16 -17
  45. package/components/u-index-anchor/props.js +5 -6
  46. package/components/u-index-item/props.js +0 -1
  47. package/components/u-index-list/props.js +5 -6
  48. package/components/u-index-list/u-index-list.vue +2 -1
  49. package/components/u-input/props.js +35 -36
  50. package/components/u-keyboard/props.js +16 -17
  51. package/components/u-line/props.js +6 -7
  52. package/components/u-line-progress/props.js +5 -6
  53. package/components/u-link/props.js +7 -8
  54. package/components/u-list/props.js +14 -15
  55. package/components/u-list-item/props.js +1 -2
  56. package/components/u-loading-icon/props.js +11 -12
  57. package/components/u-loading-page/props.js +9 -10
  58. package/components/u-loadmore/props.js +18 -19
  59. package/components/u-modal/props.js +16 -17
  60. package/components/u-navbar/props.js +16 -17
  61. package/components/u-no-network/props.js +3 -4
  62. package/components/u-notice-bar/props.js +13 -14
  63. package/components/u-notify/props.js +9 -10
  64. package/components/u-notify/u-notify.vue +5 -0
  65. package/components/u-number-box/props.js +22 -23
  66. package/components/u-number-keyboard/props.js +3 -4
  67. package/components/u-overlay/props.js +4 -5
  68. package/components/u-parse/props.js +8 -9
  69. package/components/u-parse/u-parse.vue +6 -1
  70. package/components/u-picker/props.js +16 -17
  71. package/components/u-picker-column/props.js +0 -1
  72. package/components/u-popup/props.js +15 -16
  73. package/components/u-radio/props.js +13 -14
  74. package/components/u-radio-group/props.js +17 -18
  75. package/components/u-rate/props.js +14 -15
  76. package/components/u-read-more/props.js +8 -9
  77. package/components/u-row/props.js +3 -4
  78. package/components/u-row-notice/props.js +7 -8
  79. package/components/u-row-notice/u-row-notice.vue +5 -0
  80. package/components/u-safe-bottom/props.js +0 -1
  81. package/components/u-scroll-list/props.js +6 -7
  82. package/components/u-search/props.js +24 -25
  83. package/components/u-skeleton/props.js +11 -12
  84. package/components/u-slider/props.js +11 -12
  85. package/components/u-status-bar/props.js +1 -2
  86. package/components/u-steps/props.js +7 -8
  87. package/components/u-steps-item/props.js +4 -5
  88. package/components/u-sticky/props.js +6 -7
  89. package/components/u-sticky/u-sticky.vue +5 -0
  90. package/components/u-subsection/props.js +9 -10
  91. package/components/u-swipe-action/props.js +1 -2
  92. package/components/u-swipe-action-item/nvue.js +5 -0
  93. package/components/u-swipe-action-item/props.js +6 -7
  94. package/components/u-swiper/props.js +24 -25
  95. package/components/u-swiper-indicator/props.js +5 -6
  96. package/components/u-switch/props.js +11 -12
  97. package/components/u-tabbar/props.js +8 -9
  98. package/components/u-tabbar-item/props.js +6 -7
  99. package/components/u-table/props.js +0 -1
  100. package/components/u-tabs/props.js +12 -13
  101. package/components/u-tabs-item/props.js +0 -1
  102. package/components/u-tag/props.js +15 -16
  103. package/components/u-td/props.js +0 -1
  104. package/components/u-text/props.js +21 -22
  105. package/components/u-textarea/props.js +23 -24
  106. package/components/u-toast/u-toast.vue +5 -0
  107. package/components/u-toolbar/props.js +6 -7
  108. package/components/u-tooltip/props.js +11 -12
  109. package/components/u-tr/props.js +0 -1
  110. package/components/u-transition/props.js +4 -5
  111. package/components/u-transition/transition.js +8 -9
  112. package/components/u-upload/props.js +22 -23
  113. package/libs/config/props/actionSheet.js +1 -1
  114. package/libs/config/props/album.js +1 -1
  115. package/libs/config/props/avatarGroup.js +1 -1
  116. package/libs/config/props/backtop.js +2 -2
  117. package/libs/config/props/badge.js +1 -1
  118. package/libs/config/props/calendar.js +3 -3
  119. package/libs/config/props/checkboxGroup.js +1 -1
  120. package/libs/config/props/datetimePicker.js +1 -1
  121. package/libs/config/props/form.js +3 -3
  122. package/libs/config/props/formItem.js +1 -0
  123. package/libs/config/props/indexList.js +1 -1
  124. package/libs/config/props/noticeBar.js +1 -1
  125. package/libs/config/props/picker.js +2 -2
  126. package/libs/config/props/popup.js +1 -1
  127. package/libs/config/props/search.js +2 -2
  128. package/libs/config/props/slider.js +1 -1
  129. package/libs/config/props/swiper.js +1 -1
  130. package/libs/config/props/tabs.js +7 -7
  131. package/libs/config/props/text.js +2 -2
  132. package/libs/config/props/toast.js +1 -1
  133. package/libs/config/props/tooltip.js +1 -1
  134. package/libs/config/props/upload.js +3 -3
  135. package/libs/css/components.scss +11 -1
  136. package/libs/css/flex.scss +41 -39
  137. package/package.json +1 -1
@@ -1,60 +1,59 @@
1
- import defprops from '../../libs/config/props';
2
1
  export default {
3
2
  props: {
4
3
  // 需要显示的提示文字
5
4
  text: {
6
5
  type: [String, Number],
7
- default: defprops.tooltip.text
6
+ default: () => uni.$u.props.tooltip.text
8
7
  },
9
8
  // 点击复制按钮时,复制的文本,为空则使用text值
10
9
  copyText: {
11
10
  type: [String, Number],
12
- default: defprops.tooltip.copyText
11
+ default: () => uni.$u.props.tooltip.copyText
13
12
  },
14
13
  // 文本大小
15
14
  size: {
16
15
  type: [String, Number],
17
- default: defprops.tooltip.size
16
+ default: () => uni.$u.props.tooltip.size
18
17
  },
19
18
  // 字体颜色
20
19
  color: {
21
20
  type: String,
22
- default: defprops.tooltip.color
21
+ default: () => uni.$u.props.tooltip.color
23
22
  },
24
23
  // 弹出提示框时,文本的背景色
25
24
  bgColor: {
26
25
  type: String,
27
- default: defprops.tooltip.bgColor
26
+ default: () => uni.$u.props.tooltip.bgColor
28
27
  },
29
28
  // 弹出提示的方向,top-上方,bottom-下方
30
29
  direction: {
31
30
  type: String,
32
- default: defprops.tooltip.direction
31
+ default: () => uni.$u.props.tooltip.direction
33
32
  },
34
33
  // 弹出提示的z-index,nvue无效
35
34
  zIndex: {
36
35
  type: [String, Number],
37
- default: defprops.tooltip.zIndex
36
+ default: () => uni.$u.props.tooltip.zIndex
38
37
  },
39
38
  // 是否显示复制按钮
40
39
  showCopy: {
41
40
  type: Boolean,
42
- default: defprops.tooltip.showCopy
41
+ default: () => uni.$u.props.tooltip.showCopy
43
42
  },
44
43
  // 扩展的按钮组
45
44
  buttons: {
46
45
  type: Array,
47
- default: defprops.tooltip.buttons
46
+ default: () => uni.$u.props.tooltip.buttons
48
47
  },
49
48
  // 是否显示透明遮罩以防止触摸穿透
50
49
  overlay: {
51
50
  type: Boolean,
52
- default: defprops.tooltip.overlay
51
+ default: () => uni.$u.props.tooltip.overlay
53
52
  },
54
53
  // 是否显示复制成功或者失败的toast
55
54
  showToast: {
56
55
  type: Boolean,
57
- default: defprops.tooltip.showToast
56
+ default: () => uni.$u.props.tooltip.showToast
58
57
  }
59
58
  }
60
59
  }
@@ -1,4 +1,3 @@
1
- import defprops from '../../libs/config/props';
2
1
  export default {
3
2
  props: {
4
3
 
@@ -1,25 +1,24 @@
1
- import defprops from '../../libs/config/props';
2
1
  export default {
3
2
  props: {
4
3
  // 是否展示组件
5
4
  show: {
6
5
  type: Boolean,
7
- default: defprops.transition.show
6
+ default: () => uni.$u.props.transition.show
8
7
  },
9
8
  // 使用的动画模式
10
9
  mode: {
11
10
  type: String,
12
- default: defprops.transition.mode
11
+ default: () => uni.$u.props.transition.mode
13
12
  },
14
13
  // 动画的执行时间,单位ms
15
14
  duration: {
16
15
  type: [String, Number],
17
- default: defprops.transition.duration
16
+ default: () => uni.$u.props.transition.duration
18
17
  },
19
18
  // 使用的动画过渡函数
20
19
  timingFunction: {
21
20
  type: String,
22
- default: defprops.transition.timingFunction
21
+ default: () => uni.$u.props.transition.timingFunction
23
22
  }
24
23
  }
25
24
  }
@@ -1,8 +1,8 @@
1
1
  // 定义一个一定时间后自动成功的promise,让调用nextTick方法处,进入下一个then方法
2
2
  const waitTick = () => new Promise(resolve => setTimeout(resolve, 1000 / 50))
3
3
  // nvue动画模块实现细节抽离在外部文件
4
- // #ifdef APP-NVUE
5
- import animationMap from './nvue-ani-map.js'
4
+ // #ifdef APP-NVUE
5
+ import animationMap from './nvue-ani-map.js'
6
6
  // #endif
7
7
 
8
8
  // #ifndef APP-NVUE
@@ -20,8 +20,8 @@ const getClassNames = (name) => ({
20
20
  // https://weex.apache.org/zh/docs/modules/animation.html#transition
21
21
  const animation = uni.requireNativePlugin('animation')
22
22
  const getStyle = (name) => animationMap[name]
23
- // #endif
24
-
23
+ // #endif
24
+
25
25
  import { nextTick } from 'vue'
26
26
 
27
27
  export default {
@@ -41,11 +41,10 @@ export default {
41
41
  this.inited = true
42
42
  this.display = true
43
43
  this.classes = classNames.enter
44
- await nextTick();
44
+ await nextTick();
45
45
  {
46
- // #ifdef H5
46
+ // https://github.com/umicro/uView2.0/issues/545
47
47
  await uni.$u.sleep(20)
48
- // #endif
49
48
  // 标识动画尚未结束
50
49
  this.$emit('enter')
51
50
  this.transitionEnded = false
@@ -66,7 +65,7 @@ export default {
66
65
  // 获得类名
67
66
  this.classes = classNames.leave
68
67
 
69
- await nextTick();
68
+ await nextTick();
70
69
  {
71
70
  // 动画正在离场的状态
72
71
  this.transitionEnded = false
@@ -94,7 +93,7 @@ export default {
94
93
  opacity: 0
95
94
  }
96
95
  // 等待弹窗内容渲染完成
97
- await nextTick();
96
+ await nextTick();
98
97
  {
99
98
  // 合并样式
100
99
  this.viewStyle = currentStyle.enter
@@ -1,45 +1,44 @@
1
- import defprops from '../../libs/config/props';
2
1
  export default {
3
2
  props: {
4
3
  // 接受的文件类型, 可选值为all media image file video
5
4
  accept: {
6
5
  type: String,
7
- default: defprops.upload.accept
6
+ default: () => uni.$u.props.upload.accept
8
7
  },
9
8
  // 图片或视频拾取模式,当accept为image类型时设置capture可选额外camera可以直接调起摄像头
10
9
  capture: {
11
10
  type: [String, Array],
12
- default: defprops.upload.capture
11
+ default: () => uni.$u.props.upload.capture
13
12
  },
14
13
  // 当accept为video时生效,是否压缩视频,默认为true
15
14
  compressed: {
16
15
  type: Boolean,
17
- default: defprops.upload.compressed
16
+ default: () => uni.$u.props.upload.compressed
18
17
  },
19
18
  // 当accept为video时生效,可选值为back或front
20
19
  camera: {
21
20
  type: String,
22
- default: defprops.upload.camera
21
+ default: () => uni.$u.props.upload.camera
23
22
  },
24
23
  // 当accept为video时生效,拍摄视频最长拍摄时间,单位秒
25
24
  maxDuration: {
26
25
  type: Number,
27
- default: defprops.upload.maxDuration
26
+ default: () => uni.$u.props.upload.maxDuration
28
27
  },
29
28
  // 上传区域的图标,只能内置图标
30
29
  uploadIcon: {
31
30
  type: String,
32
- default: defprops.upload.uploadIcon
31
+ default: () => uni.$u.props.upload.uploadIcon
33
32
  },
34
33
  // 上传区域的图标的颜色,默认
35
34
  uploadIconColor: {
36
35
  type: String,
37
- default: defprops.upload.uploadIconColor
36
+ default: () => uni.$u.props.upload.uploadIconColor
38
37
  },
39
38
  // 是否开启文件读取前事件
40
39
  useBeforeRead: {
41
40
  type: Boolean,
42
- default: defprops.upload.useBeforeRead
41
+ default: () => uni.$u.props.upload.useBeforeRead
43
42
  },
44
43
  // 读取后的处理函数
45
44
  afterRead: {
@@ -54,72 +53,72 @@ export default {
54
53
  // 是否显示组件自带的图片预览功能
55
54
  previewFullImage: {
56
55
  type: Boolean,
57
- default: defprops.upload.previewFullImage
56
+ default: () => uni.$u.props.upload.previewFullImage
58
57
  },
59
58
  // 最大上传数量
60
59
  maxCount: {
61
60
  type: [String, Number],
62
- default: defprops.upload.maxCount
61
+ default: () => uni.$u.props.upload.maxCount
63
62
  },
64
63
  // 是否启用
65
64
  disabled: {
66
65
  type: Boolean,
67
- default: defprops.upload.disabled
66
+ default: () => uni.$u.props.upload.disabled
68
67
  },
69
68
  // 预览上传的图片时的裁剪模式,和image组件mode属性一致
70
69
  imageMode: {
71
70
  type: String,
72
- default: defprops.upload.imageMode
71
+ default: () => uni.$u.props.upload.imageMode
73
72
  },
74
73
  // 标识符,可以在回调函数的第二项参数中获取
75
74
  name: {
76
75
  type: String,
77
- default: defprops.upload.name
76
+ default: () => uni.$u.props.upload.name
78
77
  },
79
78
  // 所选的图片的尺寸, 可选值为original compressed
80
79
  sizeType: {
81
80
  type: Array,
82
- default: defprops.upload.sizeType
81
+ default: () => uni.$u.props.upload.sizeType
83
82
  },
84
83
  // 是否开启图片多选,部分安卓机型不支持
85
84
  multiple: {
86
85
  type: Boolean,
87
- default: defprops.upload.multiple
86
+ default: () => uni.$u.props.upload.multiple
88
87
  },
89
88
  // 是否展示删除按钮
90
89
  deletable: {
91
90
  type: Boolean,
92
- default: defprops.upload.deletable
91
+ default: () => uni.$u.props.upload.deletable
93
92
  },
94
93
  // 文件大小限制,单位为byte
95
94
  maxSize: {
96
95
  type: [String, Number],
97
- default: defprops.upload.maxSize
96
+ default: () => uni.$u.props.upload.maxSize
98
97
  },
99
98
  // 显示已上传的文件列表
100
99
  fileList: {
101
100
  type: Array,
102
- default: defprops.upload.fileList
101
+ default: () => uni.$u.props.upload.fileList
103
102
  },
104
103
  // 上传区域的提示文字
105
104
  uploadText: {
106
105
  type: String,
107
- default: defprops.upload.uploadText
106
+ default: () => uni.$u.props.upload.uploadText
108
107
  },
109
108
  // 内部预览图片区域和选择图片按钮的区域宽度
110
109
  width: {
111
110
  type: [String, Number],
112
- default: defprops.upload.width
111
+ default: () => uni.$u.props.upload.width
113
112
  },
114
113
  // 内部预览图片区域和选择图片按钮的区域高度
115
114
  height: {
116
115
  type: [String, Number],
117
- default: defprops.upload.height
116
+ default: () => uni.$u.props.upload.height
118
117
  },
119
118
  // 是否在上传完成后展示预览图
120
119
  previewImage: {
121
120
  type: Boolean,
122
- default: defprops.upload.previewImage
121
+ default: () => uni.$u.props.upload.previewImage
123
122
  }
124
123
  }
125
124
  }
@@ -13,7 +13,7 @@ export default {
13
13
  show: false,
14
14
  title: '',
15
15
  description: '',
16
- actions: () => [],
16
+ actions: [],
17
17
  index: '',
18
18
  cancelText: '',
19
19
  closeOnClickAction: true,
@@ -10,7 +10,7 @@
10
10
  export default {
11
11
  // album 组件
12
12
  album: {
13
- urls: () => [],
13
+ urls: [],
14
14
  keyName: '',
15
15
  singleSize: 180,
16
16
  multipleSize: 70,
@@ -10,7 +10,7 @@
10
10
  export default {
11
11
  // avatarGroup 组件
12
12
  avatarGroup: {
13
- urls: () => [],
13
+ urls: [],
14
14
  maxCount: 5,
15
15
  shape: 'circle',
16
16
  mode: 'scaleToFill',
@@ -19,9 +19,9 @@ export default {
19
19
  bottom: 100,
20
20
  right: 20,
21
21
  zIndex: 9,
22
- iconStyle: () => ({
22
+ iconStyle: {
23
23
  color: '#909399',
24
24
  fontSize: '19px'
25
- })
25
+ }
26
26
  }
27
27
  }
@@ -20,7 +20,7 @@ export default {
20
20
  color: null,
21
21
  shape: 'circle',
22
22
  numberType: 'overflow',
23
- offset: () => [],
23
+ offset: [],
24
24
  inverted: false,
25
25
  absolute: false
26
26
  }
@@ -16,7 +16,7 @@ export default {
16
16
  mode: 'single',
17
17
  startText: '开始',
18
18
  endText: '结束',
19
- customList: () => [],
19
+ customList: [],
20
20
  color: '#3c9cff',
21
21
  minDate: 0,
22
22
  maxDate: 0,
@@ -35,8 +35,8 @@ export default {
35
35
  maxRange: Number.MAX_SAFE_INTEGER, // Infinity
36
36
  rangePrompt: '',
37
37
  showRangePrompt: true,
38
- allowSameDay: false,
39
- round: 0,
38
+ allowSameDay: false,
39
+ round: 0,
40
40
  monthNum: 3
41
41
  }
42
42
  }
@@ -11,7 +11,7 @@ export default {
11
11
  // checkbox-group组件
12
12
  checkboxGroup: {
13
13
  name: '',
14
- value: () => [],
14
+ value: [],
15
15
  shape: 'square',
16
16
  disabled: false,
17
17
  activeColor: '#2979ff',
@@ -32,6 +32,6 @@ export default {
32
32
  confirmColor: '#3c9cff',
33
33
  visibleItemCount: 5,
34
34
  closeOnClickOverlay: false,
35
- defaultIndex: () => []
35
+ defaultIndex: []
36
36
  }
37
37
  }
@@ -10,13 +10,13 @@
10
10
  export default {
11
11
  // form 组件
12
12
  form: {
13
- model: () => ({}),
14
- rules: () => ({}),
13
+ model: {},
14
+ rules: {},
15
15
  errorType: 'message',
16
16
  borderBottom: true,
17
17
  labelPosition: 'left',
18
18
  labelWidth: 45,
19
19
  labelAlign: 'left',
20
- labelStyle: () => ({})
20
+ labelStyle: {}
21
21
  }
22
22
  }
@@ -12,6 +12,7 @@ export default {
12
12
  formItem: {
13
13
  label: '',
14
14
  prop: '',
15
+ rule: '',
15
16
  borderBottom: '',
16
17
  labelWidth: '',
17
18
  rightIcon: '',
@@ -12,7 +12,7 @@ export default {
12
12
  indexList: {
13
13
  inactiveColor: '#606266',
14
14
  activeColor: '#5677fc',
15
- indexList: () => [],
15
+ indexList: [],
16
16
  sticky: true,
17
17
  customNavHeight: 0
18
18
  }
@@ -10,7 +10,7 @@
10
10
  export default {
11
11
  // noticeBar
12
12
  noticeBar: {
13
- text: () => [],
13
+ text: [],
14
14
  direction: 'row',
15
15
  step: false,
16
16
  icon: 'volume',
@@ -14,7 +14,7 @@ export default {
14
14
  popupMode: 'bottom',
15
15
  showToolbar: true,
16
16
  title: '',
17
- columns: () => [],
17
+ columns: [],
18
18
  loading: false,
19
19
  itemHeight: 44,
20
20
  cancelText: '取消',
@@ -24,7 +24,7 @@ export default {
24
24
  visibleItemCount: 5,
25
25
  keyName: 'text',
26
26
  closeOnClickOverlay: false,
27
- defaultIndex: () => [],
27
+ defaultIndex: [],
28
28
  immediateChange: false
29
29
  }
30
30
  }
@@ -15,7 +15,7 @@ export default {
15
15
  mode: 'bottom',
16
16
  duration: 300,
17
17
  closeable: false,
18
- overlayStyle: () => {},
18
+ overlayStyle: {},
19
19
  closeOnClickOverlay: true,
20
20
  zIndex: 10075,
21
21
  safeAreaInsetBottom: true,
@@ -16,10 +16,10 @@ export default {
16
16
  clearabled: true,
17
17
  focus: false,
18
18
  showAction: true,
19
- actionStyle: () => ({}),
19
+ actionStyle: {},
20
20
  actionText: '搜索',
21
21
  inputAlign: 'left',
22
- inputStyle: () => ({}),
22
+ inputStyle: {},
23
23
  disabled: false,
24
24
  borderColor: 'transparent',
25
25
  searchIconColor: '#909399',
@@ -20,6 +20,6 @@ export default {
20
20
  blockColor: '#ffffff',
21
21
  showValue: false,
22
22
  disabled:false,
23
- blockStyle: () => {}
23
+ blockStyle: {}
24
24
  }
25
25
  }
@@ -10,7 +10,7 @@
10
10
  export default {
11
11
  // swiper 组件
12
12
  swiper: {
13
- list: () => [],
13
+ list: [],
14
14
  indicator: false,
15
15
  indicatorActiveColor: '#FFFFFF',
16
16
  indicatorInactiveColor: 'rgba(255, 255, 255, 0.35)',
@@ -11,20 +11,20 @@ export default {
11
11
  //
12
12
  tabs: {
13
13
  duration: 300,
14
- list: () => [],
14
+ list: [],
15
15
  lineColor: '#3c9cff',
16
- activeStyle: () => ({
16
+ activeStyle: {
17
17
  color: '#303133'
18
- }),
19
- inactiveStyle: () => ({
18
+ },
19
+ inactiveStyle: {
20
20
  color: '#606266'
21
- }),
21
+ },
22
22
  lineWidth: 20,
23
23
  lineHeight: 3,
24
24
  lineBgSize: 'cover',
25
- itemStyle: () => ({
25
+ itemStyle: {
26
26
  height: '44px'
27
- }),
27
+ },
28
28
  scrollable: true,
29
29
  current: 0,
30
30
  keyName: 'name'
@@ -25,9 +25,9 @@ export default {
25
25
  lines: '',
26
26
  color: '#303133',
27
27
  size: 15,
28
- iconStyle: () => ({
28
+ iconStyle: {
29
29
  fontSize: '15px'
30
- }),
30
+ },
31
31
  decoration: 'none',
32
32
  margin: 0,
33
33
  lineHeight: '',
@@ -19,7 +19,7 @@ export default {
19
19
  show: '',
20
20
  overlay: false,
21
21
  position: 'center',
22
- params: () => {},
22
+ params: {},
23
23
  duration: 2000,
24
24
  isTab: false,
25
25
  url: '',
@@ -18,7 +18,7 @@ export default {
18
18
  direction: 'top',
19
19
  zIndex: 10071,
20
20
  showCopy: true,
21
- buttons: () => [],
21
+ buttons: [],
22
22
  overlay: true,
23
23
  showToast: true
24
24
  }
@@ -11,7 +11,7 @@ export default {
11
11
  // upload组件
12
12
  upload: {
13
13
  accept: 'image',
14
- capture: () => ['album', 'camera'],
14
+ capture: ['album', 'camera'],
15
15
  compressed: true,
16
16
  camera: 'back',
17
17
  maxDuration: 60,
@@ -23,11 +23,11 @@ export default {
23
23
  disabled: false,
24
24
  imageMode: 'aspectFill',
25
25
  name: '',
26
- sizeType: () => ['original', 'compressed'],
26
+ sizeType: ['original', 'compressed'],
27
27
  multiple: false,
28
28
  deletable: true,
29
29
  maxSize: Number.MAX_VALUE,
30
- fileList: () => [],
30
+ fileList: [],
31
31
  uploadText: '',
32
32
  width: 80,
33
33
  height: 80,
@@ -3,7 +3,17 @@
3
3
  /* #ifndef APP-NVUE */
4
4
  // 由于uView是基于nvue环境进行开发的,此环境中普通元素默认为flex-direction: column;
5
5
  // 所以在非nvue中,需要对元素进行重置为flex-direction: column; 否则可能会表现异常
6
- view, scroll-view, swiper-item {
6
+ view,
7
+ scroll-view,
8
+ swiper-item,
9
+ .u-empty,
10
+ .u-empty__wrap,
11
+ .u-tabs,
12
+ .u-tabs__wrapper,
13
+ .u-tabs__wrapper__scroll-view-wrapper,
14
+ .u-tabs__wrapper__scroll-view,
15
+ .u-tabs__wrapper__nav,
16
+ .u-tabs__wrapper__nav__line {
7
17
  display: flex;
8
18
  flex-direction: column;
9
19
  flex-shrink: 0;