uview-plus 3.2.5 → 3.2.7

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 (104) hide show
  1. package/changelog.md +7 -0
  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 -37
  10. package/components/u-calendar/props.js +28 -27
  11. package/components/u-car-keyboard/props.js +1 -0
  12. package/components/u-cell/props.js +21 -20
  13. package/components/u-cell/u-cell.vue +3 -2
  14. package/components/u-cell-group/props.js +3 -2
  15. package/components/u-checkbox/props.js +14 -13
  16. package/components/u-checkbox-group/props.js +17 -16
  17. package/components/u-circle-progress/props.js +2 -1
  18. package/components/u-code/props.js +7 -6
  19. package/components/u-code-input/props.js +17 -16
  20. package/components/u-col/props.js +6 -5
  21. package/components/u-collapse/props.js +4 -3
  22. package/components/u-collapse-item/props.js +12 -11
  23. package/components/u-column-notice/props.js +11 -10
  24. package/components/u-count-down/props.js +5 -4
  25. package/components/u-count-to/props.js +12 -11
  26. package/components/u-datetime-picker/props.js +25 -24
  27. package/components/u-divider/props.js +9 -8
  28. package/components/u-dropdown/props.js +1 -0
  29. package/components/u-dropdown-item/props.js +1 -0
  30. package/components/u-dropdown-item/u-dropdown-item.vue +3 -5
  31. package/components/u-empty/props.js +12 -11
  32. package/components/u-form/props.js +9 -8
  33. package/components/u-form-item/props.js +11 -10
  34. package/components/u-gap/props.js +5 -4
  35. package/components/u-grid/props.js +4 -3
  36. package/components/u-grid-item/props.js +3 -2
  37. package/components/u-icon/props.js +18 -17
  38. package/components/u-image/props.js +17 -16
  39. package/components/u-index-anchor/props.js +6 -5
  40. package/components/u-index-item/props.js +1 -0
  41. package/components/u-index-list/props.js +6 -5
  42. package/components/u-input/props.js +36 -35
  43. package/components/u-keyboard/props.js +17 -16
  44. package/components/u-line/props.js +7 -6
  45. package/components/u-line-progress/props.js +6 -5
  46. package/components/u-link/props.js +8 -7
  47. package/components/u-list/props.js +15 -14
  48. package/components/u-list-item/props.js +2 -1
  49. package/components/u-loading-icon/props.js +12 -11
  50. package/components/u-loading-page/props.js +10 -9
  51. package/components/u-loadmore/props.js +19 -18
  52. package/components/u-modal/props.js +17 -16
  53. package/components/u-navbar/props.js +17 -16
  54. package/components/u-no-network/props.js +4 -3
  55. package/components/u-notice-bar/props.js +14 -13
  56. package/components/u-notify/props.js +10 -9
  57. package/components/u-number-box/props.js +23 -22
  58. package/components/u-number-keyboard/props.js +4 -3
  59. package/components/u-overlay/props.js +5 -4
  60. package/components/u-parse/props.js +9 -8
  61. package/components/u-picker/props.js +17 -16
  62. package/components/u-picker-column/props.js +1 -0
  63. package/components/u-popup/props.js +16 -15
  64. package/components/u-radio/props.js +14 -13
  65. package/components/u-radio-group/props.js +18 -17
  66. package/components/u-rate/props.js +15 -14
  67. package/components/u-read-more/props.js +9 -8
  68. package/components/u-row/props.js +4 -3
  69. package/components/u-row-notice/props.js +8 -7
  70. package/components/u-safe-bottom/props.js +1 -0
  71. package/components/u-scroll-list/props.js +7 -6
  72. package/components/u-search/props.js +25 -24
  73. package/components/u-skeleton/props.js +12 -11
  74. package/components/u-slider/props.js +12 -11
  75. package/components/u-status-bar/props.js +2 -1
  76. package/components/u-steps/props.js +8 -7
  77. package/components/u-steps-item/props.js +5 -4
  78. package/components/u-sticky/props.js +7 -6
  79. package/components/u-subsection/props.js +10 -9
  80. package/components/u-swipe-action/props.js +2 -1
  81. package/components/u-swipe-action-item/props.js +8 -7
  82. package/components/u-swipe-action-item/u-swipe-action-item.vue +18 -1
  83. package/components/u-swiper/props.js +25 -24
  84. package/components/u-swiper-indicator/props.js +6 -5
  85. package/components/u-switch/props.js +12 -11
  86. package/components/u-tabbar/props.js +9 -8
  87. package/components/u-tabbar-item/props.js +7 -6
  88. package/components/u-table/props.js +1 -0
  89. package/components/u-tabs/props.js +13 -12
  90. package/components/u-tabs-item/props.js +1 -0
  91. package/components/u-tag/props.js +20 -18
  92. package/components/u-td/props.js +1 -0
  93. package/components/u-text/props.js +22 -21
  94. package/components/u-textarea/props.js +24 -23
  95. package/components/u-toolbar/props.js +7 -6
  96. package/components/u-tooltip/props.js +12 -11
  97. package/components/u-tr/props.js +1 -0
  98. package/components/u-transition/props.js +5 -4
  99. package/components/u-upload/props.js +23 -22
  100. package/index.js +16 -1
  101. package/libs/function/index.js +30 -23
  102. package/package.json +2 -1
  103. package/types/index.d.ts +1 -0
  104. package/types/package.json +26 -0
@@ -1,84 +1,85 @@
1
+ import defProps from '../../libs/config/props.js';
1
2
  export default {
2
3
  props: {
3
4
  // 图片地址
4
5
  src: {
5
6
  type: String,
6
- default: () => uni.$u.props.image.src
7
+ default: () => defProps.image.src
7
8
  },
8
9
  // 裁剪模式
9
10
  mode: {
10
11
  type: String,
11
- default: () => uni.$u.props.image.mode
12
+ default: () => defProps.image.mode
12
13
  },
13
14
  // 宽度,单位任意
14
15
  width: {
15
16
  type: [String, Number],
16
- default: () => uni.$u.props.image.width
17
+ default: () => defProps.image.width
17
18
  },
18
19
  // 高度,单位任意
19
20
  height: {
20
21
  type: [String, Number],
21
- default: () => uni.$u.props.image.height
22
+ default: () => defProps.image.height
22
23
  },
23
24
  // 图片形状,circle-圆形,square-方形
24
25
  shape: {
25
26
  type: String,
26
- default: () => uni.$u.props.image.shape
27
+ default: () => defProps.image.shape
27
28
  },
28
29
  // 圆角,单位任意
29
30
  radius: {
30
31
  type: [String, Number],
31
- default: () => uni.$u.props.image.radius
32
+ default: () => defProps.image.radius
32
33
  },
33
34
  // 是否懒加载,微信小程序、App、百度小程序、字节跳动小程序
34
35
  lazyLoad: {
35
36
  type: Boolean,
36
- default: () => uni.$u.props.image.lazyLoad
37
+ default: () => defProps.image.lazyLoad
37
38
  },
38
39
  // 开启长按图片显示识别微信小程序码菜单
39
40
  showMenuByLongpress: {
40
41
  type: Boolean,
41
- default: () => uni.$u.props.image.showMenuByLongpress
42
+ default: () => defProps.image.showMenuByLongpress
42
43
  },
43
44
  // 加载中的图标,或者小图片
44
45
  loadingIcon: {
45
46
  type: String,
46
- default: () => uni.$u.props.image.loadingIcon
47
+ default: () => defProps.image.loadingIcon
47
48
  },
48
49
  // 加载失败的图标,或者小图片
49
50
  errorIcon: {
50
51
  type: String,
51
- default: () => uni.$u.props.image.errorIcon
52
+ default: () => defProps.image.errorIcon
52
53
  },
53
54
  // 是否显示加载中的图标或者自定义的slot
54
55
  showLoading: {
55
56
  type: Boolean,
56
- default: () => uni.$u.props.image.showLoading
57
+ default: () => defProps.image.showLoading
57
58
  },
58
59
  // 是否显示加载错误的图标或者自定义的slot
59
60
  showError: {
60
61
  type: Boolean,
61
- default: () => uni.$u.props.image.showError
62
+ default: () => defProps.image.showError
62
63
  },
63
64
  // 是否需要淡入效果
64
65
  fade: {
65
66
  type: Boolean,
66
- default: () => uni.$u.props.image.fade
67
+ default: () => defProps.image.fade
67
68
  },
68
69
  // 只支持网络资源,只对微信小程序有效
69
70
  webp: {
70
71
  type: Boolean,
71
- default: () => uni.$u.props.image.webp
72
+ default: () => defProps.image.webp
72
73
  },
73
74
  // 过渡时间,单位ms
74
75
  duration: {
75
76
  type: [String, Number],
76
- default: () => uni.$u.props.image.duration
77
+ default: () => defProps.image.duration
77
78
  },
78
79
  // 背景颜色,用于深色页面加载图片时,为了和背景色融合
79
80
  bgColor: {
80
81
  type: String,
81
- default: () => uni.$u.props.image.bgColor
82
+ default: () => defProps.image.bgColor
82
83
  }
83
84
  }
84
85
  }
@@ -1,29 +1,30 @@
1
+ import defProps from '../../libs/config/props.js';
1
2
  export default {
2
3
  props: {
3
4
  // 列表锚点文本内容
4
5
  text: {
5
6
  type: [String, Number],
6
- default: () => uni.$u.props.indexAnchor.text
7
+ default: () => defProps.indexAnchor.text
7
8
  },
8
9
  // 列表锚点文字颜色
9
10
  color: {
10
11
  type: String,
11
- default: () => uni.$u.props.indexAnchor.color
12
+ default: () => defProps.indexAnchor.color
12
13
  },
13
14
  // 列表锚点文字大小,单位默认px
14
15
  size: {
15
16
  type: [String, Number],
16
- default: () => uni.$u.props.indexAnchor.size
17
+ default: () => defProps.indexAnchor.size
17
18
  },
18
19
  // 列表锚点背景颜色
19
20
  bgColor: {
20
21
  type: String,
21
- default: () => uni.$u.props.indexAnchor.bgColor
22
+ default: () => defProps.indexAnchor.bgColor
22
23
  },
23
24
  // 列表锚点高度,单位默认px
24
25
  height: {
25
26
  type: [String, Number],
26
- default: () => uni.$u.props.indexAnchor.height
27
+ default: () => defProps.indexAnchor.height
27
28
  }
28
29
  }
29
30
  }
@@ -1,3 +1,4 @@
1
+ // import defProps from '../../libs/config/props.js';
1
2
  export default {
2
3
  props: {
3
4
 
@@ -1,29 +1,30 @@
1
+ import defProps from '../../libs/config/props.js';
1
2
  export default {
2
3
  props: {
3
4
  // 右边锚点非激活的颜色
4
5
  inactiveColor: {
5
6
  type: String,
6
- default: () => uni.$u.props.indexList.inactiveColor
7
+ default: () => defProps.indexList.inactiveColor
7
8
  },
8
9
  // 右边锚点激活的颜色
9
10
  activeColor: {
10
11
  type: String,
11
- default: () => uni.$u.props.indexList.activeColor
12
+ default: () => defProps.indexList.activeColor
12
13
  },
13
14
  // 索引字符列表,数组形式
14
15
  indexList: {
15
16
  type: Array,
16
- default: () => uni.$u.props.indexList.indexList
17
+ default: () => defProps.indexList.indexList
17
18
  },
18
19
  // 是否开启锚点自动吸顶
19
20
  sticky: {
20
21
  type: Boolean,
21
- default: () => uni.$u.props.indexList.sticky
22
+ default: () => defProps.indexList.sticky
22
23
  },
23
24
  // 自定义导航栏的高度
24
25
  customNavHeight: {
25
26
  type: [String, Number],
26
- default: () => uni.$u.props.indexList.customNavHeight
27
+ default: () => defProps.indexList.customNavHeight
27
28
  }
28
29
  }
29
30
  }
@@ -1,17 +1,18 @@
1
+ import defProps from '../../libs/config/props.js';
1
2
  export default {
2
3
  props: {
3
4
  // #ifdef VUE3
4
5
  // 绑定的值
5
6
  modelValue: {
6
7
  type: [String, Number],
7
- default: () => uni.$u.props.input.value
8
+ default: () => defProps.input.value
8
9
  },
9
10
  // #endif
10
11
  // #ifdef VUE2
11
12
  // 绑定的值
12
13
  value: {
13
14
  type: [String, Number],
14
- default: () => uni.$u.props.input.value
15
+ default: () => defProps.input.value
15
16
  },
16
17
  // #endif
17
18
  // number-数字输入键盘,app-vue下可以输入浮点数,app-nvue和小程序平台下只能输入整数
@@ -20,171 +21,171 @@ export default {
20
21
  // text-文本输入键盘
21
22
  type: {
22
23
  type: String,
23
- default: () => uni.$u.props.input.type
24
+ default: () => defProps.input.type
24
25
  },
25
26
  // 如果 textarea 是在一个 position:fixed 的区域,需要显示指定属性 fixed 为 true,
26
27
  // 兼容性:微信小程序、百度小程序、字节跳动小程序、QQ小程序
27
28
  fixed: {
28
29
  type: Boolean,
29
- default: () => uni.$u.props.input.fixed
30
+ default: () => defProps.input.fixed
30
31
  },
31
32
  // 是否禁用输入框
32
33
  disabled: {
33
34
  type: Boolean,
34
- default: () => uni.$u.props.input.disabled
35
+ default: () => defProps.input.disabled
35
36
  },
36
37
  // 禁用状态时的背景色
37
38
  disabledColor: {
38
39
  type: String,
39
- default: () => uni.$u.props.input.disabledColor
40
+ default: () => defProps.input.disabledColor
40
41
  },
41
42
  // 是否显示清除控件
42
43
  clearable: {
43
44
  type: Boolean,
44
- default: () => uni.$u.props.input.clearable
45
+ default: () => defProps.input.clearable
45
46
  },
46
47
  // 是否密码类型
47
48
  password: {
48
49
  type: Boolean,
49
- default: () => uni.$u.props.input.password
50
+ default: () => defProps.input.password
50
51
  },
51
52
  // 最大输入长度,设置为 -1 的时候不限制最大长度
52
53
  maxlength: {
53
54
  type: [String, Number],
54
- default: () => uni.$u.props.input.maxlength
55
+ default: () => defProps.input.maxlength
55
56
  },
56
57
  // 输入框为空时的占位符
57
58
  placeholder: {
58
59
  type: String,
59
- default: () => uni.$u.props.input.placeholder
60
+ default: () => defProps.input.placeholder
60
61
  },
61
62
  // 指定placeholder的样式类,注意页面或组件的style中写了scoped时,需要在类名前写/deep/
62
63
  placeholderClass: {
63
64
  type: String,
64
- default: () => uni.$u.props.input.placeholderClass
65
+ default: () => defProps.input.placeholderClass
65
66
  },
66
67
  // 指定placeholder的样式
67
68
  placeholderStyle: {
68
69
  type: [String, Object],
69
- default: () => uni.$u.props.input.placeholderStyle
70
+ default: () => defProps.input.placeholderStyle
70
71
  },
71
72
  // 是否显示输入字数统计,只在 type ="text"或type ="textarea"时有效
72
73
  showWordLimit: {
73
74
  type: Boolean,
74
- default: () => uni.$u.props.input.showWordLimit
75
+ default: () => defProps.input.showWordLimit
75
76
  },
76
77
  // 设置右下角按钮的文字,有效值:send|search|next|go|done,兼容性详见uni-app文档
77
78
  // https://uniapp.dcloud.io/component/input
78
79
  // https://uniapp.dcloud.io/component/textarea
79
80
  confirmType: {
80
81
  type: String,
81
- default: () => uni.$u.props.input.confirmType
82
+ default: () => defProps.input.confirmType
82
83
  },
83
84
  // 点击键盘右下角按钮时是否保持键盘不收起,H5无效
84
85
  confirmHold: {
85
86
  type: Boolean,
86
- default: () => uni.$u.props.input.confirmHold
87
+ default: () => defProps.input.confirmHold
87
88
  },
88
89
  // focus时,点击页面的时候不收起键盘,微信小程序有效
89
90
  holdKeyboard: {
90
91
  type: Boolean,
91
- default: () => uni.$u.props.input.holdKeyboard
92
+ default: () => defProps.input.holdKeyboard
92
93
  },
93
94
  // 自动获取焦点
94
95
  // 在 H5 平台能否聚焦以及软键盘是否跟随弹出,取决于当前浏览器本身的实现。nvue 页面不支持,需使用组件的 focus()、blur() 方法控制焦点
95
96
  focus: {
96
97
  type: Boolean,
97
- default: () => uni.$u.props.input.focus
98
+ default: () => defProps.input.focus
98
99
  },
99
100
  // 键盘收起时,是否自动失去焦点,目前仅App3.0.0+有效
100
101
  autoBlur: {
101
102
  type: Boolean,
102
- default: () => uni.$u.props.input.autoBlur
103
+ default: () => defProps.input.autoBlur
103
104
  },
104
105
  // 是否去掉 iOS 下的默认内边距,仅微信小程序,且type=textarea时有效
105
106
  disableDefaultPadding: {
106
107
  type: Boolean,
107
- default: () => uni.$u.props.input.disableDefaultPadding
108
+ default: () => defProps.input.disableDefaultPadding
108
109
  },
109
110
  // 指定focus时光标的位置
110
111
  cursor: {
111
112
  type: [String, Number],
112
- default: () => uni.$u.props.input.cursor
113
+ default: () => defProps.input.cursor
113
114
  },
114
115
  // 输入框聚焦时底部与键盘的距离
115
116
  cursorSpacing: {
116
117
  type: [String, Number],
117
- default: () => uni.$u.props.input.cursorSpacing
118
+ default: () => defProps.input.cursorSpacing
118
119
  },
119
120
  // 光标起始位置,自动聚集时有效,需与selection-end搭配使用
120
121
  selectionStart: {
121
122
  type: [String, Number],
122
- default: () => uni.$u.props.input.selectionStart
123
+ default: () => defProps.input.selectionStart
123
124
  },
124
125
  // 光标结束位置,自动聚集时有效,需与selection-start搭配使用
125
126
  selectionEnd: {
126
127
  type: [String, Number],
127
- default: () => uni.$u.props.input.selectionEnd
128
+ default: () => defProps.input.selectionEnd
128
129
  },
129
130
  // 键盘弹起时,是否自动上推页面
130
131
  adjustPosition: {
131
132
  type: Boolean,
132
- default: () => uni.$u.props.input.adjustPosition
133
+ default: () => defProps.input.adjustPosition
133
134
  },
134
135
  // 输入框内容对齐方式,可选值为:left|center|right
135
136
  inputAlign: {
136
137
  type: String,
137
- default: () => uni.$u.props.input.inputAlign
138
+ default: () => defProps.input.inputAlign
138
139
  },
139
140
  // 输入框字体的大小
140
141
  fontSize: {
141
142
  type: [String, Number],
142
- default: () => uni.$u.props.input.fontSize
143
+ default: () => defProps.input.fontSize
143
144
  },
144
145
  // 输入框字体颜色
145
146
  color: {
146
147
  type: String,
147
- default: () => uni.$u.props.input.color
148
+ default: () => defProps.input.color
148
149
  },
149
150
  // 输入框前置图标
150
151
  prefixIcon: {
151
152
  type: String,
152
- default: () => uni.$u.props.input.prefixIcon
153
+ default: () => defProps.input.prefixIcon
153
154
  },
154
155
  // 前置图标样式,对象或字符串
155
156
  prefixIconStyle: {
156
157
  type: [String, Object],
157
- default: () => uni.$u.props.input.prefixIconStyle
158
+ default: () => defProps.input.prefixIconStyle
158
159
  },
159
160
  // 输入框后置图标
160
161
  suffixIcon: {
161
162
  type: String,
162
- default: () => uni.$u.props.input.suffixIcon
163
+ default: () => defProps.input.suffixIcon
163
164
  },
164
165
  // 后置图标样式,对象或字符串
165
166
  suffixIconStyle: {
166
167
  type: [String, Object],
167
- default: () => uni.$u.props.input.suffixIconStyle
168
+ default: () => defProps.input.suffixIconStyle
168
169
  },
169
170
  // 边框类型,surround-四周边框,bottom-底部边框,none-无边框
170
171
  border: {
171
172
  type: String,
172
- default: () => uni.$u.props.input.border
173
+ default: () => defProps.input.border
173
174
  },
174
175
  // 是否只读,与disabled不同之处在于disabled会置灰组件,而readonly则不会
175
176
  readonly: {
176
177
  type: Boolean,
177
- default: () => uni.$u.props.input.readonly
178
+ default: () => defProps.input.readonly
178
179
  },
179
180
  // 输入框形状,circle-圆形,square-方形
180
181
  shape: {
181
182
  type: String,
182
- default: () => uni.$u.props.input.shape
183
+ default: () => defProps.input.shape
183
184
  },
184
185
  // 用于处理或者过滤输入框内容的方法
185
186
  formatter: {
186
187
  type: [Function, null],
187
- default: () => uni.$u.props.input.formatter
188
+ default: () => defProps.input.formatter
188
189
  },
189
190
  // 是否忽略组件内对文本合成系统事件的处理
190
191
  ignoreCompositionEvent: {
@@ -1,84 +1,85 @@
1
+ import defProps from '../../libs/config/props.js';
1
2
  export default {
2
3
  props: {
3
4
  // 键盘的类型,number-数字键盘,card-身份证键盘,car-车牌号键盘
4
5
  mode: {
5
6
  type: String,
6
- default: () => uni.$u.props.keyboard.mode
7
+ default: () => defProps.keyboard.mode
7
8
  },
8
9
  // 是否显示键盘的"."符号
9
10
  dotDisabled: {
10
11
  type: Boolean,
11
- default: () => uni.$u.props.keyboard.dotDisabled
12
+ default: () => defProps.keyboard.dotDisabled
12
13
  },
13
14
  // 是否显示顶部工具条
14
15
  tooltip: {
15
16
  type: Boolean,
16
- default: () => uni.$u.props.keyboard.tooltip
17
+ default: () => defProps.keyboard.tooltip
17
18
  },
18
19
  // 是否显示工具条中间的提示
19
20
  showTips: {
20
21
  type: Boolean,
21
- default: () => uni.$u.props.keyboard.showTips
22
+ default: () => defProps.keyboard.showTips
22
23
  },
23
24
  // 工具条中间的提示文字
24
25
  tips: {
25
26
  type: String,
26
- default: () => uni.$u.props.keyboard.tips
27
+ default: () => defProps.keyboard.tips
27
28
  },
28
29
  // 是否显示工具条左边的"取消"按钮
29
30
  showCancel: {
30
31
  type: Boolean,
31
- default: () => uni.$u.props.keyboard.showCancel
32
+ default: () => defProps.keyboard.showCancel
32
33
  },
33
34
  // 是否显示工具条右边的"完成"按钮
34
35
  showConfirm: {
35
36
  type: Boolean,
36
- default: () => uni.$u.props.keyboard.showConfirm
37
+ default: () => defProps.keyboard.showConfirm
37
38
  },
38
39
  // 是否打乱键盘按键的顺序
39
40
  random: {
40
41
  type: Boolean,
41
- default: () => uni.$u.props.keyboard.random
42
+ default: () => defProps.keyboard.random
42
43
  },
43
44
  // 是否开启底部安全区适配,开启的话,会在iPhoneX机型底部添加一定的内边距
44
45
  safeAreaInsetBottom: {
45
46
  type: Boolean,
46
- default: () => uni.$u.props.keyboard.safeAreaInsetBottom
47
+ default: () => defProps.keyboard.safeAreaInsetBottom
47
48
  },
48
49
  // 是否允许通过点击遮罩关闭键盘
49
50
  closeOnClickOverlay: {
50
51
  type: Boolean,
51
- default: () => uni.$u.props.keyboard.closeOnClickOverlay
52
+ default: () => defProps.keyboard.closeOnClickOverlay
52
53
  },
53
54
  // 控制键盘的弹出与收起
54
55
  show: {
55
56
  type: Boolean,
56
- default: () => uni.$u.props.keyboard.show
57
+ default: () => defProps.keyboard.show
57
58
  },
58
59
  // 是否显示遮罩,某些时候数字键盘时,用户希望看到自己的数值,所以可能不想要遮罩
59
60
  overlay: {
60
61
  type: Boolean,
61
- default: () => uni.$u.props.keyboard.overlay
62
+ default: () => defProps.keyboard.overlay
62
63
  },
63
64
  // z-index值
64
65
  zIndex: {
65
66
  type: [String, Number],
66
- default: () => uni.$u.props.keyboard.zIndex
67
+ default: () => defProps.keyboard.zIndex
67
68
  },
68
69
  // 取消按钮的文字
69
70
  cancelText: {
70
71
  type: String,
71
- default: () => uni.$u.props.keyboard.cancelText
72
+ default: () => defProps.keyboard.cancelText
72
73
  },
73
74
  // 确认按钮的文字
74
75
  confirmText: {
75
76
  type: String,
76
- default: () => uni.$u.props.keyboard.confirmText
77
+ default: () => defProps.keyboard.confirmText
77
78
  },
78
79
  // 输入一个中文后,是否自动切换到英文
79
80
  autoChange: {
80
81
  type: Boolean,
81
- default: () => uni.$u.props.keyboard.autoChange
82
+ default: () => defProps.keyboard.autoChange
82
83
  }
83
84
  }
84
85
  }
@@ -1,33 +1,34 @@
1
+ import defProps from '../../libs/config/props.js';
1
2
  export default {
2
3
  props: {
3
4
  color: {
4
5
  type: String,
5
- default: () => uni.$u.props.line.color
6
+ default: () => defProps.line.color
6
7
  },
7
8
  // 长度,竖向时表现为高度,横向时表现为长度,可以为百分比,带px单位的值等
8
9
  length: {
9
10
  type: [String, Number],
10
- default: () => uni.$u.props.line.length
11
+ default: () => defProps.line.length
11
12
  },
12
13
  // 线条方向,col-竖向,row-横向
13
14
  direction: {
14
15
  type: String,
15
- default: () => uni.$u.props.line.direction
16
+ default: () => defProps.line.direction
16
17
  },
17
18
  // 是否显示细边框
18
19
  hairline: {
19
20
  type: Boolean,
20
- default: () => uni.$u.props.line.hairline
21
+ default: () => defProps.line.hairline
21
22
  },
22
23
  // 线条与上下左右元素的间距,字符串形式,如"30px"、"20px 30px"
23
24
  margin: {
24
25
  type: [String, Number],
25
- default: () => uni.$u.props.line.margin
26
+ default: () => defProps.line.margin
26
27
  },
27
28
  // 是否虚线,true-虚线,false-实线
28
29
  dashed: {
29
30
  type: Boolean,
30
- default: () => uni.$u.props.line.dashed
31
+ default: () => defProps.line.dashed
31
32
  }
32
33
  }
33
34
  }
@@ -1,28 +1,29 @@
1
+ import defProps from '../../libs/config/props.js';
1
2
  export default {
2
3
  props: {
3
4
  // 激活部分的颜色
4
5
  activeColor: {
5
6
  type: String,
6
- default: () => uni.$u.props.lineProgress.activeColor
7
+ default: () => defProps.lineProgress.activeColor
7
8
  },
8
9
  inactiveColor: {
9
10
  type: String,
10
- default: () => uni.$u.props.lineProgress.color
11
+ default: () => defProps.lineProgress.color
11
12
  },
12
13
  // 进度百分比,数值
13
14
  percentage: {
14
15
  type: [String, Number],
15
- default: () => uni.$u.props.lineProgress.inactiveColor
16
+ default: () => defProps.lineProgress.inactiveColor
16
17
  },
17
18
  // 是否在进度条内部显示百分比的值
18
19
  showText: {
19
20
  type: Boolean,
20
- default: () => uni.$u.props.lineProgress.showText
21
+ default: () => defProps.lineProgress.showText
21
22
  },
22
23
  // 进度条的高度,单位px
23
24
  height: {
24
25
  type: [String, Number],
25
- default: () => uni.$u.props.lineProgress.height
26
+ default: () => defProps.lineProgress.height
26
27
  }
27
28
  }
28
29
  }
@@ -1,39 +1,40 @@
1
+ import defProps from '../../libs/config/props.js';
1
2
  export default {
2
3
  props: {
3
4
  // 文字颜色
4
5
  color: {
5
6
  type: String,
6
- default: () => uni.$u.props.link.color
7
+ default: () => defProps.link.color
7
8
  },
8
9
  // 字体大小,单位px
9
10
  fontSize: {
10
11
  type: [String, Number],
11
- default: () => uni.$u.props.link.fontSize
12
+ default: () => defProps.link.fontSize
12
13
  },
13
14
  // 是否显示下划线
14
15
  underLine: {
15
16
  type: Boolean,
16
- default: () => uni.$u.props.link.underLine
17
+ default: () => defProps.link.underLine
17
18
  },
18
19
  // 要跳转的链接
19
20
  href: {
20
21
  type: String,
21
- default: () => uni.$u.props.link.href
22
+ default: () => defProps.link.href
22
23
  },
23
24
  // 小程序中复制到粘贴板的提示语
24
25
  mpTips: {
25
26
  type: String,
26
- default: () => uni.$u.props.link.mpTips
27
+ default: () => defProps.link.mpTips
27
28
  },
28
29
  // 下划线颜色
29
30
  lineColor: {
30
31
  type: String,
31
- default: () => uni.$u.props.link.lineColor
32
+ default: () => defProps.link.lineColor
32
33
  },
33
34
  // 超链接的问题,不使用slot形式传入,是因为nvue下无法修改颜色
34
35
  text: {
35
36
  type: String,
36
- default: () => uni.$u.props.link.text
37
+ default: () => defProps.link.text
37
38
  }
38
39
  }
39
40
  }