uview-plus 3.1.50 → 3.1.52

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 (169) hide show
  1. package/README.md +10 -10
  2. package/changelog.md +18 -1
  3. package/components/u-action-sheet/props.js +10 -11
  4. package/components/u-album/props.js +11 -12
  5. package/components/u-alert/props.js +8 -9
  6. package/components/u-avatar/props.js +14 -15
  7. package/components/u-avatar-group/props.js +9 -10
  8. package/components/u-back-top/props.js +10 -11
  9. package/components/u-back-top/u-back-top.vue +1 -1
  10. package/components/u-badge/props.js +14 -15
  11. package/components/u-badge/u-badge.vue +1 -1
  12. package/components/u-button/props.js +28 -29
  13. package/components/u-button/u-button.vue +6 -6
  14. package/components/u-button/vue.scss +8 -7
  15. package/components/u-calendar/month.vue +1 -1
  16. package/components/u-calendar/props.js +27 -28
  17. package/components/u-car-keyboard/props.js +0 -1
  18. package/components/u-car-keyboard/u-car-keyboard.vue +1 -1
  19. package/components/u-cell/props.js +17 -18
  20. package/components/u-cell/u-cell.vue +14 -4
  21. package/components/u-cell-group/props.js +2 -3
  22. package/components/u-cell-group/u-cell-group.vue +1 -1
  23. package/components/u-checkbox/props.js +13 -14
  24. package/components/u-checkbox/u-checkbox.vue +1 -1
  25. package/components/u-checkbox-group/props.js +16 -17
  26. package/components/u-circle-progress/props.js +1 -2
  27. package/components/u-code/props.js +6 -7
  28. package/components/u-code/u-code.vue +5 -0
  29. package/components/u-code-input/props.js +16 -17
  30. package/components/u-col/props.js +5 -6
  31. package/components/u-collapse/props.js +3 -4
  32. package/components/u-collapse-item/props.js +11 -12
  33. package/components/u-column-notice/props.js +10 -11
  34. package/components/u-copy/u-copy.vue +70 -0
  35. package/components/u-count-down/props.js +4 -5
  36. package/components/u-count-down/u-count-down.vue +6 -1
  37. package/components/u-count-to/props.js +11 -12
  38. package/components/u-datetime-picker/props.js +37 -25
  39. package/components/u-datetime-picker/u-datetime-picker.vue +58 -3
  40. package/components/u-divider/props.js +8 -9
  41. package/components/u-dropdown/props.js +0 -1
  42. package/components/u-dropdown-item/props.js +0 -1
  43. package/components/u-empty/props.js +11 -12
  44. package/components/u-form/props.js +8 -9
  45. package/components/u-form/u-form.vue +1 -1
  46. package/components/u-form-item/props.js +13 -9
  47. package/components/u-form-item/u-form-item.vue +1 -0
  48. package/components/u-gap/props.js +4 -5
  49. package/components/u-gap/u-gap.vue +5 -4
  50. package/components/u-grid/props.js +3 -4
  51. package/components/u-grid-item/props.js +2 -3
  52. package/components/u-grid-item/u-grid-item.vue +5 -0
  53. package/components/u-icon/props.js +17 -18
  54. package/components/u-icon/u-icon.vue +9 -6
  55. package/components/u-image/props.js +16 -17
  56. package/components/u-image/u-image.vue +1 -1
  57. package/components/u-index-anchor/props.js +5 -6
  58. package/components/u-index-anchor/u-index-anchor.vue +1 -1
  59. package/components/u-index-item/props.js +0 -1
  60. package/components/u-index-item/u-index-item.vue +1 -1
  61. package/components/u-index-list/props.js +5 -6
  62. package/components/u-index-list/u-index-list.vue +3 -2
  63. package/components/u-input/props.js +35 -36
  64. package/components/u-input/u-input.vue +10 -4
  65. package/components/u-keyboard/props.js +16 -17
  66. package/components/u-line/props.js +6 -7
  67. package/components/u-line-progress/props.js +5 -6
  68. package/components/u-link/props.js +7 -8
  69. package/components/u-list/props.js +14 -15
  70. package/components/u-list-item/props.js +1 -2
  71. package/components/u-loading-icon/props.js +11 -12
  72. package/components/u-loading-page/props.js +9 -10
  73. package/components/u-loadmore/props.js +18 -19
  74. package/components/u-modal/props.js +16 -17
  75. package/components/u-navbar/props.js +16 -17
  76. package/components/u-no-network/props.js +3 -4
  77. package/components/u-notice-bar/props.js +13 -14
  78. package/components/u-notify/props.js +9 -10
  79. package/components/u-notify/u-notify.vue +5 -0
  80. package/components/u-number-box/props.js +22 -23
  81. package/components/u-number-box/u-number-box.vue +21 -1
  82. package/components/u-number-keyboard/props.js +3 -4
  83. package/components/u-overlay/props.js +4 -5
  84. package/components/u-parse/props.js +8 -9
  85. package/components/u-parse/u-parse.vue +6 -1
  86. package/components/u-picker/props.js +16 -17
  87. package/components/u-picker-column/props.js +0 -1
  88. package/components/u-popup/props.js +15 -16
  89. package/components/u-qrcode/qrcode.js +1206 -0
  90. package/components/u-qrcode/u-qrcode.vue +199 -0
  91. package/components/u-radio/props.js +13 -14
  92. package/components/u-radio-group/props.js +17 -18
  93. package/components/u-rate/props.js +14 -15
  94. package/components/u-read-more/props.js +8 -9
  95. package/components/u-row/props.js +3 -4
  96. package/components/u-row-notice/props.js +7 -8
  97. package/components/u-row-notice/u-row-notice.vue +5 -0
  98. package/components/u-safe-bottom/props.js +0 -1
  99. package/components/u-scroll-list/props.js +6 -7
  100. package/components/u-search/props.js +24 -25
  101. package/components/u-skeleton/props.js +11 -12
  102. package/components/u-slider/props.js +11 -12
  103. package/components/u-status-bar/props.js +1 -2
  104. package/components/u-status-bar/u-status-bar.vue +1 -1
  105. package/components/u-steps/props.js +7 -8
  106. package/components/u-steps/u-steps.vue +1 -1
  107. package/components/u-steps-item/props.js +4 -5
  108. package/components/u-steps-item/u-steps-item.vue +1 -1
  109. package/components/u-sticky/props.js +6 -7
  110. package/components/u-sticky/u-sticky.vue +5 -0
  111. package/components/u-subsection/props.js +9 -10
  112. package/components/u-subsection/u-subsection.vue +2 -2
  113. package/components/u-swipe-action/props.js +1 -2
  114. package/components/u-swipe-action-item/nvue.js +5 -0
  115. package/components/u-swipe-action-item/props.js +6 -7
  116. package/components/u-swiper/props.js +24 -25
  117. package/components/u-swiper-indicator/props.js +5 -6
  118. package/components/u-switch/props.js +11 -12
  119. package/components/u-tabbar/props.js +8 -9
  120. package/components/u-tabbar-item/props.js +6 -7
  121. package/components/u-table/props.js +0 -1
  122. package/components/u-tabs/props.js +12 -13
  123. package/components/u-tabs-item/props.js +0 -1
  124. package/components/u-tag/props.js +15 -16
  125. package/components/u-td/props.js +0 -1
  126. package/components/u-text/props.js +21 -22
  127. package/components/u-textarea/props.js +23 -24
  128. package/components/u-toast/u-toast.vue +5 -0
  129. package/components/u-toolbar/props.js +6 -7
  130. package/components/u-tooltip/props.js +11 -12
  131. package/components/u-tooltip/u-tooltip.vue +0 -28
  132. package/components/u-tr/props.js +0 -1
  133. package/components/u-transition/props.js +4 -5
  134. package/components/u-transition/transition.js +8 -9
  135. package/components/u-transition/u-transition.vue +1 -1
  136. package/components/u-upload/props.js +22 -23
  137. package/components/u-upload/u-upload.vue +1 -1
  138. package/index.js +6 -6
  139. package/libs/config/props/actionSheet.js +1 -1
  140. package/libs/config/props/album.js +1 -1
  141. package/libs/config/props/avatarGroup.js +1 -1
  142. package/libs/config/props/backtop.js +2 -2
  143. package/libs/config/props/badge.js +1 -1
  144. package/libs/config/props/calendar.js +3 -3
  145. package/libs/config/props/checkboxGroup.js +1 -1
  146. package/libs/config/props/datetimePicker.js +1 -1
  147. package/libs/config/props/form.js +3 -3
  148. package/libs/config/props/formItem.js +1 -0
  149. package/libs/config/props/indexList.js +1 -1
  150. package/libs/config/props/noticeBar.js +1 -1
  151. package/libs/config/props/picker.js +2 -2
  152. package/libs/config/props/popup.js +1 -1
  153. package/libs/config/props/search.js +2 -2
  154. package/libs/config/props/slider.js +1 -1
  155. package/libs/config/props/swiper.js +1 -1
  156. package/libs/config/props/tabs.js +7 -7
  157. package/libs/config/props/text.js +2 -2
  158. package/libs/config/props/toast.js +1 -1
  159. package/libs/config/props/tooltip.js +1 -1
  160. package/libs/config/props/upload.js +3 -3
  161. package/libs/css/components.scss +11 -1
  162. package/libs/css/flex.scss +103 -101
  163. package/libs/function/colorGradient.js +8 -8
  164. package/libs/function/debounce.js +2 -2
  165. package/libs/function/digit.js +5 -5
  166. package/libs/function/index.js +29 -29
  167. package/libs/function/test.js +28 -28
  168. package/libs/function/throttle.js +2 -2
  169. package/package.json +4 -3
@@ -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
  }
@@ -136,7 +136,7 @@
136
136
  /**
137
137
  * upload 上传
138
138
  * @description 该组件用于上传图片场景
139
- * @tutorial https://uiadmin.net/uview-plus/components/upload.html
139
+ * @tutorial https://uview-plus.jiangruyi.com/components/upload.html
140
140
  * @property {String} accept 接受的文件类型, 可选值为all media image file video (默认 'image' )
141
141
  * @property {String | Array} capture 图片或视频拾取模式,当accept为image类型时设置capture可选额外camera可以直接调起摄像头(默认 ['album', 'camera'] )
142
142
  * @property {Boolean} compressed 当accept为video时生效,是否压缩视频,默认为true(默认 true )
package/index.js CHANGED
@@ -33,6 +33,10 @@ import color from './libs/config/color.js'
33
33
  // 平台
34
34
  import platform from './libs/function/platform'
35
35
 
36
+ // 导出
37
+ export * from './libs/function/index.js'
38
+ export const http = new Request()
39
+
36
40
  const $u = {
37
41
  route,
38
42
  date: index.timeFormat, // 另名date
@@ -42,8 +46,8 @@ const $u = {
42
46
  colorToRgba: colorGradient.colorToRgba,
43
47
  test,
44
48
  type: ['primary', 'success', 'error', 'warning', 'info'],
45
- http: new Request(),
46
- config, // uView配置信息相关,比如版本号
49
+ http,
50
+ config, // uview-plus配置信息相关,比如版本号
47
51
  zIndex,
48
52
  debounce,
49
53
  throttle,
@@ -68,10 +72,6 @@ const install = (Vue) => {
68
72
  // #ifndef APP-NVUE
69
73
  // 只有vue,挂载到Vue.prototype才有意义,因为nvue中全局Vue.prototype和Vue.mixin是无效的
70
74
  Vue.config.globalProperties.$u = $u
71
- // 暂时兼容vue2的$nextTick写法
72
- Vue.config.globalProperties.$nextTick = (cb) => {
73
- cb();
74
- }
75
75
  Vue.mixin(mixin)
76
76
  // #endif
77
77
  }
@@ -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;