uview-plus 3.1.48 → 3.1.50

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 +5 -10
  2. package/components/u-action-sheet/props.js +11 -10
  3. package/components/u-album/props.js +12 -11
  4. package/components/u-alert/props.js +9 -8
  5. package/components/u-avatar/props.js +15 -14
  6. package/components/u-avatar-group/props.js +10 -9
  7. package/components/u-back-top/props.js +11 -10
  8. package/components/u-badge/props.js +15 -14
  9. package/components/u-button/props.js +29 -28
  10. package/components/u-calendar/month.vue +1 -1
  11. package/components/u-calendar/props.js +28 -27
  12. package/components/u-car-keyboard/props.js +1 -0
  13. package/components/u-cell/props.js +18 -17
  14. package/components/u-cell/u-cell.vue +2 -11
  15. package/components/u-cell-group/props.js +3 -2
  16. package/components/u-checkbox/props.js +14 -13
  17. package/components/u-checkbox-group/props.js +17 -16
  18. package/components/u-circle-progress/props.js +2 -1
  19. package/components/u-code/props.js +7 -6
  20. package/components/u-code/u-code.vue +0 -5
  21. package/components/u-code-input/props.js +17 -16
  22. package/components/u-col/props.js +6 -5
  23. package/components/u-collapse/props.js +4 -3
  24. package/components/u-collapse-item/props.js +12 -11
  25. package/components/u-column-notice/props.js +11 -10
  26. package/components/u-count-down/props.js +5 -4
  27. package/components/u-count-down/u-count-down.vue +0 -5
  28. package/components/u-count-to/props.js +12 -11
  29. package/components/u-datetime-picker/props.js +25 -24
  30. package/components/u-divider/props.js +9 -8
  31. package/components/u-dropdown/props.js +1 -0
  32. package/components/u-dropdown-item/props.js +1 -0
  33. package/components/u-empty/props.js +12 -11
  34. package/components/u-form/props.js +9 -8
  35. package/components/u-form/u-form.vue +1 -1
  36. package/components/u-form-item/props.js +9 -13
  37. package/components/u-form-item/u-form-item.vue +0 -1
  38. package/components/u-gap/props.js +5 -4
  39. package/components/u-grid/props.js +4 -3
  40. package/components/u-grid-item/props.js +3 -2
  41. package/components/u-grid-item/u-grid-item.vue +0 -5
  42. package/components/u-icon/props.js +18 -17
  43. package/components/u-icon/u-icon.vue +6 -9
  44. package/components/u-image/props.js +17 -16
  45. package/components/u-index-anchor/props.js +6 -5
  46. package/components/u-index-item/props.js +1 -0
  47. package/components/u-index-list/props.js +6 -5
  48. package/components/u-index-list/u-index-list.vue +1 -2
  49. package/components/u-input/props.js +36 -35
  50. package/components/u-keyboard/props.js +17 -16
  51. package/components/u-line/props.js +7 -6
  52. package/components/u-line-progress/props.js +6 -5
  53. package/components/u-link/props.js +8 -7
  54. package/components/u-list/props.js +15 -14
  55. package/components/u-list-item/props.js +2 -1
  56. package/components/u-loading-icon/props.js +12 -11
  57. package/components/u-loading-page/props.js +10 -9
  58. package/components/u-loadmore/props.js +19 -18
  59. package/components/u-modal/props.js +17 -16
  60. package/components/u-navbar/props.js +17 -16
  61. package/components/u-no-network/props.js +4 -3
  62. package/components/u-notice-bar/props.js +14 -13
  63. package/components/u-notify/props.js +10 -9
  64. package/components/u-notify/u-notify.vue +0 -5
  65. package/components/u-number-box/props.js +23 -22
  66. package/components/u-number-keyboard/props.js +4 -3
  67. package/components/u-overlay/props.js +5 -4
  68. package/components/u-parse/props.js +9 -8
  69. package/components/u-parse/u-parse.vue +1 -6
  70. package/components/u-picker/props.js +17 -16
  71. package/components/u-picker-column/props.js +1 -0
  72. package/components/u-popup/props.js +16 -15
  73. package/components/u-radio/props.js +14 -13
  74. package/components/u-radio-group/props.js +18 -17
  75. package/components/u-rate/props.js +15 -14
  76. package/components/u-read-more/props.js +9 -8
  77. package/components/u-row/props.js +4 -3
  78. package/components/u-row-notice/props.js +8 -7
  79. package/components/u-row-notice/u-row-notice.vue +0 -5
  80. package/components/u-safe-bottom/props.js +1 -0
  81. package/components/u-scroll-list/props.js +7 -6
  82. package/components/u-search/props.js +25 -24
  83. package/components/u-skeleton/props.js +12 -11
  84. package/components/u-slider/props.js +12 -11
  85. package/components/u-status-bar/props.js +2 -1
  86. package/components/u-steps/props.js +8 -7
  87. package/components/u-steps-item/props.js +5 -4
  88. package/components/u-sticky/props.js +7 -6
  89. package/components/u-sticky/u-sticky.vue +0 -5
  90. package/components/u-subsection/props.js +10 -9
  91. package/components/u-swipe-action/props.js +2 -1
  92. package/components/u-swipe-action-item/nvue.js +0 -5
  93. package/components/u-swipe-action-item/props.js +7 -6
  94. package/components/u-swiper/props.js +25 -24
  95. package/components/u-swiper-indicator/props.js +6 -5
  96. package/components/u-switch/props.js +12 -11
  97. package/components/u-tabbar/props.js +9 -8
  98. package/components/u-tabbar-item/props.js +7 -6
  99. package/components/u-table/props.js +1 -0
  100. package/components/u-tabs/props.js +13 -12
  101. package/components/u-tabs-item/props.js +1 -0
  102. package/components/u-tag/props.js +16 -15
  103. package/components/u-td/props.js +1 -0
  104. package/components/u-text/props.js +22 -21
  105. package/components/u-textarea/props.js +24 -23
  106. package/components/u-toast/u-toast.vue +0 -5
  107. package/components/u-toolbar/props.js +7 -6
  108. package/components/u-tooltip/props.js +12 -11
  109. package/components/u-tr/props.js +1 -0
  110. package/components/u-transition/props.js +5 -4
  111. package/components/u-transition/transition.js +9 -8
  112. package/components/u-upload/props.js +23 -22
  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 +0 -1
  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 +1 -11
  136. package/libs/css/flex.scss +71 -73
  137. package/package.json +1 -1
@@ -1,59 +1,60 @@
1
+ import defprops from '../../libs/config/props';
1
2
  export default {
2
3
  props: {
3
4
  // 需要显示的提示文字
4
5
  text: {
5
6
  type: [String, Number],
6
- default: () => uni.$u.props.tooltip.text
7
+ default: defprops.tooltip.text
7
8
  },
8
9
  // 点击复制按钮时,复制的文本,为空则使用text值
9
10
  copyText: {
10
11
  type: [String, Number],
11
- default: () => uni.$u.props.tooltip.copyText
12
+ default: defprops.tooltip.copyText
12
13
  },
13
14
  // 文本大小
14
15
  size: {
15
16
  type: [String, Number],
16
- default: () => uni.$u.props.tooltip.size
17
+ default: defprops.tooltip.size
17
18
  },
18
19
  // 字体颜色
19
20
  color: {
20
21
  type: String,
21
- default: () => uni.$u.props.tooltip.color
22
+ default: defprops.tooltip.color
22
23
  },
23
24
  // 弹出提示框时,文本的背景色
24
25
  bgColor: {
25
26
  type: String,
26
- default: () => uni.$u.props.tooltip.bgColor
27
+ default: defprops.tooltip.bgColor
27
28
  },
28
29
  // 弹出提示的方向,top-上方,bottom-下方
29
30
  direction: {
30
31
  type: String,
31
- default: () => uni.$u.props.tooltip.direction
32
+ default: defprops.tooltip.direction
32
33
  },
33
34
  // 弹出提示的z-index,nvue无效
34
35
  zIndex: {
35
36
  type: [String, Number],
36
- default: () => uni.$u.props.tooltip.zIndex
37
+ default: defprops.tooltip.zIndex
37
38
  },
38
39
  // 是否显示复制按钮
39
40
  showCopy: {
40
41
  type: Boolean,
41
- default: () => uni.$u.props.tooltip.showCopy
42
+ default: defprops.tooltip.showCopy
42
43
  },
43
44
  // 扩展的按钮组
44
45
  buttons: {
45
46
  type: Array,
46
- default: () => uni.$u.props.tooltip.buttons
47
+ default: defprops.tooltip.buttons
47
48
  },
48
49
  // 是否显示透明遮罩以防止触摸穿透
49
50
  overlay: {
50
51
  type: Boolean,
51
- default: () => uni.$u.props.tooltip.overlay
52
+ default: defprops.tooltip.overlay
52
53
  },
53
54
  // 是否显示复制成功或者失败的toast
54
55
  showToast: {
55
56
  type: Boolean,
56
- default: () => uni.$u.props.tooltip.showToast
57
+ default: defprops.tooltip.showToast
57
58
  }
58
59
  }
59
60
  }
@@ -1,3 +1,4 @@
1
+ import defprops from '../../libs/config/props';
1
2
  export default {
2
3
  props: {
3
4
 
@@ -1,24 +1,25 @@
1
+ import defprops from '../../libs/config/props';
1
2
  export default {
2
3
  props: {
3
4
  // 是否展示组件
4
5
  show: {
5
6
  type: Boolean,
6
- default: () => uni.$u.props.transition.show
7
+ default: defprops.transition.show
7
8
  },
8
9
  // 使用的动画模式
9
10
  mode: {
10
11
  type: String,
11
- default: () => uni.$u.props.transition.mode
12
+ default: defprops.transition.mode
12
13
  },
13
14
  // 动画的执行时间,单位ms
14
15
  duration: {
15
16
  type: [String, Number],
16
- default: () => uni.$u.props.transition.duration
17
+ default: defprops.transition.duration
17
18
  },
18
19
  // 使用的动画过渡函数
19
20
  timingFunction: {
20
21
  type: String,
21
- default: () => uni.$u.props.transition.timingFunction
22
+ default: defprops.transition.timingFunction
22
23
  }
23
24
  }
24
25
  }
@@ -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,10 +41,11 @@ 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
- // https://github.com/umicro/uView2.0/issues/545
46
+ // #ifdef H5
47
47
  await uni.$u.sleep(20)
48
+ // #endif
48
49
  // 标识动画尚未结束
49
50
  this.$emit('enter')
50
51
  this.transitionEnded = false
@@ -65,7 +66,7 @@ export default {
65
66
  // 获得类名
66
67
  this.classes = classNames.leave
67
68
 
68
- await nextTick();
69
+ await nextTick();
69
70
  {
70
71
  // 动画正在离场的状态
71
72
  this.transitionEnded = false
@@ -93,7 +94,7 @@ export default {
93
94
  opacity: 0
94
95
  }
95
96
  // 等待弹窗内容渲染完成
96
- await nextTick();
97
+ await nextTick();
97
98
  {
98
99
  // 合并样式
99
100
  this.viewStyle = currentStyle.enter
@@ -1,44 +1,45 @@
1
+ import defprops from '../../libs/config/props';
1
2
  export default {
2
3
  props: {
3
4
  // 接受的文件类型, 可选值为all media image file video
4
5
  accept: {
5
6
  type: String,
6
- default: () => uni.$u.props.upload.accept
7
+ default: defprops.upload.accept
7
8
  },
8
9
  // 图片或视频拾取模式,当accept为image类型时设置capture可选额外camera可以直接调起摄像头
9
10
  capture: {
10
11
  type: [String, Array],
11
- default: () => uni.$u.props.upload.capture
12
+ default: defprops.upload.capture
12
13
  },
13
14
  // 当accept为video时生效,是否压缩视频,默认为true
14
15
  compressed: {
15
16
  type: Boolean,
16
- default: () => uni.$u.props.upload.compressed
17
+ default: defprops.upload.compressed
17
18
  },
18
19
  // 当accept为video时生效,可选值为back或front
19
20
  camera: {
20
21
  type: String,
21
- default: () => uni.$u.props.upload.camera
22
+ default: defprops.upload.camera
22
23
  },
23
24
  // 当accept为video时生效,拍摄视频最长拍摄时间,单位秒
24
25
  maxDuration: {
25
26
  type: Number,
26
- default: () => uni.$u.props.upload.maxDuration
27
+ default: defprops.upload.maxDuration
27
28
  },
28
29
  // 上传区域的图标,只能内置图标
29
30
  uploadIcon: {
30
31
  type: String,
31
- default: () => uni.$u.props.upload.uploadIcon
32
+ default: defprops.upload.uploadIcon
32
33
  },
33
34
  // 上传区域的图标的颜色,默认
34
35
  uploadIconColor: {
35
36
  type: String,
36
- default: () => uni.$u.props.upload.uploadIconColor
37
+ default: defprops.upload.uploadIconColor
37
38
  },
38
39
  // 是否开启文件读取前事件
39
40
  useBeforeRead: {
40
41
  type: Boolean,
41
- default: () => uni.$u.props.upload.useBeforeRead
42
+ default: defprops.upload.useBeforeRead
42
43
  },
43
44
  // 读取后的处理函数
44
45
  afterRead: {
@@ -53,72 +54,72 @@ export default {
53
54
  // 是否显示组件自带的图片预览功能
54
55
  previewFullImage: {
55
56
  type: Boolean,
56
- default: () => uni.$u.props.upload.previewFullImage
57
+ default: defprops.upload.previewFullImage
57
58
  },
58
59
  // 最大上传数量
59
60
  maxCount: {
60
61
  type: [String, Number],
61
- default: () => uni.$u.props.upload.maxCount
62
+ default: defprops.upload.maxCount
62
63
  },
63
64
  // 是否启用
64
65
  disabled: {
65
66
  type: Boolean,
66
- default: () => uni.$u.props.upload.disabled
67
+ default: defprops.upload.disabled
67
68
  },
68
69
  // 预览上传的图片时的裁剪模式,和image组件mode属性一致
69
70
  imageMode: {
70
71
  type: String,
71
- default: () => uni.$u.props.upload.imageMode
72
+ default: defprops.upload.imageMode
72
73
  },
73
74
  // 标识符,可以在回调函数的第二项参数中获取
74
75
  name: {
75
76
  type: String,
76
- default: () => uni.$u.props.upload.name
77
+ default: defprops.upload.name
77
78
  },
78
79
  // 所选的图片的尺寸, 可选值为original compressed
79
80
  sizeType: {
80
81
  type: Array,
81
- default: () => uni.$u.props.upload.sizeType
82
+ default: defprops.upload.sizeType
82
83
  },
83
84
  // 是否开启图片多选,部分安卓机型不支持
84
85
  multiple: {
85
86
  type: Boolean,
86
- default: () => uni.$u.props.upload.multiple
87
+ default: defprops.upload.multiple
87
88
  },
88
89
  // 是否展示删除按钮
89
90
  deletable: {
90
91
  type: Boolean,
91
- default: () => uni.$u.props.upload.deletable
92
+ default: defprops.upload.deletable
92
93
  },
93
94
  // 文件大小限制,单位为byte
94
95
  maxSize: {
95
96
  type: [String, Number],
96
- default: () => uni.$u.props.upload.maxSize
97
+ default: defprops.upload.maxSize
97
98
  },
98
99
  // 显示已上传的文件列表
99
100
  fileList: {
100
101
  type: Array,
101
- default: () => uni.$u.props.upload.fileList
102
+ default: defprops.upload.fileList
102
103
  },
103
104
  // 上传区域的提示文字
104
105
  uploadText: {
105
106
  type: String,
106
- default: () => uni.$u.props.upload.uploadText
107
+ default: defprops.upload.uploadText
107
108
  },
108
109
  // 内部预览图片区域和选择图片按钮的区域宽度
109
110
  width: {
110
111
  type: [String, Number],
111
- default: () => uni.$u.props.upload.width
112
+ default: defprops.upload.width
112
113
  },
113
114
  // 内部预览图片区域和选择图片按钮的区域高度
114
115
  height: {
115
116
  type: [String, Number],
116
- default: () => uni.$u.props.upload.height
117
+ default: defprops.upload.height
117
118
  },
118
119
  // 是否在上传完成后展示预览图
119
120
  previewImage: {
120
121
  type: Boolean,
121
- default: () => uni.$u.props.upload.previewImage
122
+ default: defprops.upload.previewImage
122
123
  }
123
124
  }
124
125
  }
@@ -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,7 +12,6 @@ export default {
12
12
  formItem: {
13
13
  label: '',
14
14
  prop: '',
15
- rule: '',
16
15
  borderBottom: '',
17
16
  labelWidth: '',
18
17
  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,17 +3,7 @@
3
3
  /* #ifndef APP-NVUE */
4
4
  // 由于uView是基于nvue环境进行开发的,此环境中普通元素默认为flex-direction: column;
5
5
  // 所以在非nvue中,需要对元素进行重置为flex-direction: column; 否则可能会表现异常
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 {
6
+ view, scroll-view, swiper-item {
17
7
  display: flex;
18
8
  flex-direction: column;
19
9
  flex-shrink: 0;