uview-plus 3.1.36 → 3.1.38
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.
- package/changelog.md +4 -0
- package/components/u-action-sheet/u-action-sheet.vue +1 -0
- package/components/u-album/u-album.vue +1 -0
- package/components/u-alert/u-alert.vue +1 -0
- package/components/u-avatar/u-avatar.vue +1 -0
- package/components/u-avatar-group/u-avatar-group.vue +1 -0
- package/components/u-back-top/u-back-top.vue +2 -1
- package/components/u-badge/u-badge.vue +1 -1
- package/components/u-calendar/u-calendar.vue +1 -0
- package/components/u-car-keyboard/u-car-keyboard.vue +312 -311
- package/components/u-cell/u-cell.vue +1 -1
- package/components/u-cell-group/u-cell-group.vue +1 -1
- package/components/u-checkbox/u-checkbox.vue +2 -1
- package/components/u-code/u-code.vue +1 -0
- package/components/u-code-input/props.js +14 -5
- package/components/u-code-input/u-code-input.vue +13 -2
- package/components/u-col/u-col.vue +1 -0
- package/components/u-collapse/u-collapse.vue +1 -0
- package/components/u-column-notice/u-column-notice.vue +1 -0
- package/components/u-count-down/u-count-down.vue +164 -163
- package/components/u-count-to/u-count-to.vue +1 -0
- package/components/u-divider/u-divider.vue +1 -0
- package/components/u-dropdown/u-dropdown.vue +127 -129
- package/components/u-form-item/u-form-item.vue +1 -0
- package/components/u-image/u-image.vue +1 -1
- package/components/u-index-anchor/u-index-anchor.vue +1 -1
- package/components/u-index-item/u-index-item.vue +1 -1
- package/components/u-index-list/u-index-list.vue +1 -1
- package/components/u-input/u-input.vue +3 -3
- package/components/u-keyboard/u-keyboard.vue +1 -0
- package/components/u-link/u-link.vue +1 -0
- package/components/u-list/u-list.vue +1 -0
- package/components/u-loadmore/u-loadmore.vue +1 -0
- package/components/u-modal/u-modal.vue +230 -229
- package/components/u-navbar/u-navbar.vue +1 -1
- package/components/u-no-network/u-no-network.vue +1 -0
- package/components/u-notice-bar/u-notice-bar.vue +1 -0
- package/components/u-number-box/u-number-box.vue +1 -1
- package/components/u-number-keyboard/u-number-keyboard.vue +1 -1
- package/components/u-overlay/u-overlay.vue +1 -0
- package/components/u-parse/node/node.vue +2 -2
- package/components/u-parse/parser.js +1333 -1333
- package/components/u-parse/u-parse.vue +3 -3
- package/components/u-popup/u-popup.vue +307 -306
- package/components/u-radio/u-radio.vue +1 -1
- package/components/u-read-more/u-read-more.vue +1 -0
- package/components/u-row/u-row.vue +1 -0
- package/components/u-row-notice/u-row-notice.vue +1 -0
- package/components/u-scroll-list/u-scroll-list.vue +1 -0
- package/components/u-search/u-search.vue +6 -2
- package/components/u-slider/props.js +14 -5
- package/components/u-slider/u-slider.vue +66 -55
- package/components/u-status-bar/u-status-bar.vue +1 -1
- package/components/u-steps/u-steps.vue +1 -1
- package/components/u-steps-item/u-steps-item.vue +1 -1
- package/components/u-subsection/u-subsection.vue +1 -0
- package/components/u-swiper/u-swiper.vue +10 -9
- package/components/u-tabbar-item/u-tabbar-item.vue +1 -0
- package/components/u-tag/u-tag.vue +362 -361
- package/components/u-toolbar/u-toolbar.vue +1 -0
- package/components/u-tooltip/u-tooltip.vue +1 -0
- package/components/u-upload/u-upload.vue +1 -1
- package/libs/function/index.js +6 -4
- package/package.json +1 -1
|
@@ -136,7 +136,7 @@
|
|
|
136
136
|
/**
|
|
137
137
|
* upload 上传
|
|
138
138
|
* @description 该组件用于上传图片场景
|
|
139
|
-
* @tutorial https://
|
|
139
|
+
* @tutorial https://uiadmin.net/uview-plus/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/libs/function/index.js
CHANGED
|
@@ -170,9 +170,9 @@ function addStyle(customStyle, target = 'object') {
|
|
|
170
170
|
* @param {string|number} value 需要添加单位的值
|
|
171
171
|
* @param {string} unit 添加的单位名 比如px
|
|
172
172
|
*/
|
|
173
|
-
function addUnit(value = 'auto', unit = '') {
|
|
174
|
-
if (!unit) {
|
|
175
|
-
unit = uni.$u.config.unit || 'px'
|
|
173
|
+
function addUnit(value = 'auto', unit = '') {
|
|
174
|
+
if (!unit) {
|
|
175
|
+
unit = uni.$u.config.unit || 'px'
|
|
176
176
|
}
|
|
177
177
|
value = String(value)
|
|
178
178
|
// 用uView内置验证规则中的number判断是否为数值
|
|
@@ -212,7 +212,9 @@ function deepMerge(target = {}, source = {}) {
|
|
|
212
212
|
for (const prop in source) {
|
|
213
213
|
if (!source.hasOwnProperty(prop)) continue
|
|
214
214
|
if (prop in target) {
|
|
215
|
-
if (
|
|
215
|
+
if (source[prop] == null) {
|
|
216
|
+
target[prop] = source[prop]
|
|
217
|
+
}else if (typeof target[prop] !== 'object') {
|
|
216
218
|
target[prop] = source[prop]
|
|
217
219
|
} else if (typeof source[prop] !== 'object') {
|
|
218
220
|
target[prop] = source[prop]
|