uview-ui-wjf 1.0.0
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/LICENSE +21 -0
- package/README.md +71 -0
- package/changelog.md +388 -0
- package/components/u--form/u--form.vue +92 -0
- package/components/u--image/u--image.vue +73 -0
- package/components/u--input/u--input.vue +115 -0
- package/components/u--text/u--text.vue +72 -0
- package/components/u--textarea/u--textarea.vue +85 -0
- package/components/u-action-sheet/props.js +54 -0
- package/components/u-action-sheet/u-action-sheet.vue +278 -0
- package/components/u-album/props.js +59 -0
- package/components/u-album/u-album.vue +259 -0
- package/components/u-alert/props.js +44 -0
- package/components/u-alert/u-alert.vue +243 -0
- package/components/u-avatar/props.js +78 -0
- package/components/u-avatar/u-avatar.vue +173 -0
- package/components/u-avatar-group/props.js +52 -0
- package/components/u-avatar-group/u-avatar-group.vue +103 -0
- package/components/u-back-top/props.js +54 -0
- package/components/u-back-top/u-back-top.vue +129 -0
- package/components/u-badge/props.js +72 -0
- package/components/u-badge/u-badge.vue +171 -0
- package/components/u-button/nvue.scss +46 -0
- package/components/u-button/props.js +161 -0
- package/components/u-button/u-button.vue +495 -0
- package/components/u-button/vue.scss +80 -0
- package/components/u-calendar/header.vue +99 -0
- package/components/u-calendar/month.vue +579 -0
- package/components/u-calendar/props.js +144 -0
- package/components/u-calendar/u-calendar.vue +384 -0
- package/components/u-calendar/util.js +85 -0
- package/components/u-car-keyboard/props.js +14 -0
- package/components/u-car-keyboard/u-car-keyboard.vue +311 -0
- package/components/u-cell/props.js +110 -0
- package/components/u-cell/u-cell.vue +229 -0
- package/components/u-cell-group/props.js +14 -0
- package/components/u-cell-group/u-cell-group.vue +61 -0
- package/components/u-checkbox/props.js +69 -0
- package/components/u-checkbox/u-checkbox.vue +344 -0
- package/components/u-checkbox-group/props.js +82 -0
- package/components/u-checkbox-group/u-checkbox-group.vue +103 -0
- package/components/u-circle-progress/props.js +8 -0
- package/components/u-circle-progress/u-circle-progress.vue +198 -0
- package/components/u-code/props.js +34 -0
- package/components/u-code/u-code.vue +129 -0
- package/components/u-code-input/props.js +79 -0
- package/components/u-code-input/u-code-input.vue +252 -0
- package/components/u-col/props.js +29 -0
- package/components/u-col/u-col.vue +162 -0
- package/components/u-collapse/props.js +19 -0
- package/components/u-collapse/u-collapse.vue +90 -0
- package/components/u-collapse-item/props.js +59 -0
- package/components/u-collapse-item/u-collapse-item.vue +225 -0
- package/components/u-column-notice/props.js +55 -0
- package/components/u-column-notice/u-column-notice.vue +160 -0
- package/components/u-count-down/props.js +24 -0
- package/components/u-count-down/u-count-down.vue +163 -0
- package/components/u-count-down/utils.js +62 -0
- package/components/u-count-to/props.js +59 -0
- package/components/u-count-to/u-count-to.vue +184 -0
- package/components/u-datetime-picker/props.js +120 -0
- package/components/u-datetime-picker/u-datetime-picker.vue +361 -0
- package/components/u-divider/props.js +44 -0
- package/components/u-divider/u-divider.vue +116 -0
- package/components/u-dropdown/props.js +65 -0
- package/components/u-dropdown/u-dropdown.vue +127 -0
- package/components/u-dropdown-item/props.js +36 -0
- package/components/u-dropdown-item/u-dropdown-item.vue +127 -0
- package/components/u-empty/props.js +59 -0
- package/components/u-empty/u-empty.vue +128 -0
- package/components/u-form/props.js +45 -0
- package/components/u-form/u-form.vue +214 -0
- package/components/u-form-item/props.js +48 -0
- package/components/u-form-item/u-form-item.vue +235 -0
- package/components/u-gap/props.js +24 -0
- package/components/u-gap/u-gap.vue +38 -0
- package/components/u-grid/props.js +19 -0
- package/components/u-grid/u-grid.vue +97 -0
- package/components/u-grid-item/props.js +14 -0
- package/components/u-grid-item/u-grid-item.vue +209 -0
- package/components/u-icon/icons.js +214 -0
- package/components/u-icon/props.js +89 -0
- package/components/u-icon/u-icon.vue +237 -0
- package/components/u-image/props.js +84 -0
- package/components/u-image/u-image.vue +232 -0
- package/components/u-index-anchor/props.js +29 -0
- package/components/u-index-anchor/u-index-anchor.vue +91 -0
- package/components/u-index-item/props.js +5 -0
- package/components/u-index-item/u-index-item.vue +87 -0
- package/components/u-index-list/props.js +29 -0
- package/components/u-index-list/u-index-list.vue +440 -0
- package/components/u-input/props.js +187 -0
- package/components/u-input/u-input.vue +369 -0
- package/components/u-keyboard/props.js +84 -0
- package/components/u-keyboard/u-keyboard.vue +164 -0
- package/components/u-line/props.js +33 -0
- package/components/u-line/u-line.vue +62 -0
- package/components/u-line-progress/props.js +28 -0
- package/components/u-line-progress/u-line-progress.vue +144 -0
- package/components/u-link/props.js +39 -0
- package/components/u-link/u-link.vue +83 -0
- package/components/u-list/props.js +76 -0
- package/components/u-list/u-list.vue +157 -0
- package/components/u-list-item/props.js +9 -0
- package/components/u-list-item/u-list-item.vue +116 -0
- package/components/u-loading-icon/props.js +59 -0
- package/components/u-loading-icon/u-loading-icon.vue +343 -0
- package/components/u-loading-page/props.js +49 -0
- package/components/u-loading-page/u-loading-page.vue +115 -0
- package/components/u-loadmore/props.js +94 -0
- package/components/u-loadmore/u-loadmore.vue +150 -0
- package/components/u-modal/props.js +89 -0
- package/components/u-modal/u-modal.vue +228 -0
- package/components/u-navbar/props.js +84 -0
- package/components/u-navbar/u-navbar.vue +186 -0
- package/components/u-no-network/props.js +19 -0
- package/components/u-no-network/u-no-network.vue +220 -0
- package/components/u-notice-bar/props.js +70 -0
- package/components/u-notice-bar/u-notice-bar.vue +101 -0
- package/components/u-notify/props.js +49 -0
- package/components/u-notify/u-notify.vue +211 -0
- package/components/u-number-box/props.js +109 -0
- package/components/u-number-box/u-number-box.vue +416 -0
- package/components/u-number-keyboard/props.js +19 -0
- package/components/u-number-keyboard/u-number-keyboard.vue +196 -0
- package/components/u-overlay/props.js +24 -0
- package/components/u-overlay/u-overlay.vue +68 -0
- package/components/u-parse/node/node.vue +499 -0
- package/components/u-parse/parser.js +1075 -0
- package/components/u-parse/props.js +45 -0
- package/components/u-parse/u-parse.vue +366 -0
- package/components/u-picker/props.js +79 -0
- package/components/u-picker/u-picker.vue +286 -0
- package/components/u-picker-column/props.js +5 -0
- package/components/u-picker-column/u-picker-column.vue +27 -0
- package/components/u-popup/props.js +79 -0
- package/components/u-popup/u-popup.vue +304 -0
- package/components/u-radio/props.js +64 -0
- package/components/u-radio/u-radio.vue +339 -0
- package/components/u-radio-group/props.js +85 -0
- package/components/u-radio-group/u-radio-group.vue +108 -0
- package/components/u-rate/props.js +69 -0
- package/components/u-rate/u-rate.vue +306 -0
- package/components/u-read-more/props.js +61 -0
- package/components/u-read-more/u-read-more.vue +157 -0
- package/components/u-row/props.js +19 -0
- package/components/u-row/u-row.vue +93 -0
- package/components/u-row-notice/props.js +39 -0
- package/components/u-row-notice/u-row-notice.vue +330 -0
- package/components/u-safe-bottom/props.js +5 -0
- package/components/u-safe-bottom/u-safe-bottom.vue +56 -0
- package/components/u-scroll-list/nvue.js +28 -0
- package/components/u-scroll-list/other.js +0 -0
- package/components/u-scroll-list/props.js +34 -0
- package/components/u-scroll-list/scrollWxs.wxs +50 -0
- package/components/u-scroll-list/u-scroll-list.vue +224 -0
- package/components/u-search/props.js +118 -0
- package/components/u-search/u-search.vue +303 -0
- package/components/u-skeleton/props.js +59 -0
- package/components/u-skeleton/u-skeleton.vue +244 -0
- package/components/u-slider/mpother.js +113 -0
- package/components/u-slider/mpwxs.js +42 -0
- package/components/u-slider/mpwxs.wxs +121 -0
- package/components/u-slider/nvue - /345/211/257/346/234/254.js" +180 -0
- package/components/u-slider/nvue.js +193 -0
- package/components/u-slider/props.js +54 -0
- package/components/u-slider/u-slider.vue +55 -0
- package/components/u-status-bar/props.js +8 -0
- package/components/u-status-bar/u-status-bar.vue +46 -0
- package/components/u-steps/props.js +39 -0
- package/components/u-steps/u-steps.vue +80 -0
- package/components/u-steps-item/props.js +24 -0
- package/components/u-steps-item/u-steps-item.vue +316 -0
- package/components/u-sticky/props.js +40 -0
- package/components/u-sticky/u-sticky.vue +212 -0
- package/components/u-subsection/props.js +49 -0
- package/components/u-subsection/u-subsection.vue +299 -0
- package/components/u-swipe-action/props.js +9 -0
- package/components/u-swipe-action/u-swipe-action.vue +67 -0
- package/components/u-swipe-action-item/index - backup.wxs +256 -0
- package/components/u-swipe-action-item/index.wxs +225 -0
- package/components/u-swipe-action-item/nvue - backup.js +270 -0
- package/components/u-swipe-action-item/nvue.js +174 -0
- package/components/u-swipe-action-item/props.js +41 -0
- package/components/u-swipe-action-item/u-swipe-action-item.vue +190 -0
- package/components/u-swipe-action-item/wxs.js +15 -0
- package/components/u-swiper/props.js +125 -0
- package/components/u-swiper/u-swiper.vue +255 -0
- package/components/u-swiper-indicator/props.js +29 -0
- package/components/u-swiper-indicator/u-swiper-indicator.vue +110 -0
- package/components/u-switch/props.js +54 -0
- package/components/u-switch/u-switch.vue +177 -0
- package/components/u-tabbar/props.js +44 -0
- package/components/u-tabbar/u-tabbar.vue +141 -0
- package/components/u-tabbar-item/props.js +35 -0
- package/components/u-tabbar-item/u-tabbar-item.vue +142 -0
- package/components/u-table/props.js +5 -0
- package/components/u-table/u-table.vue +29 -0
- package/components/u-tabs/props.js +64 -0
- package/components/u-tabs/u-tabs.vue +363 -0
- package/components/u-tabs-item/props.js +5 -0
- package/components/u-tabs-item/u-tabs-item.vue +29 -0
- package/components/u-tag/props.js +84 -0
- package/components/u-tag/u-tag.vue +358 -0
- package/components/u-td/props.js +5 -0
- package/components/u-td/u-td.vue +31 -0
- package/components/u-text/props.js +110 -0
- package/components/u-text/u-text.vue +223 -0
- package/components/u-text/value.js +85 -0
- package/components/u-textarea/props.js +119 -0
- package/components/u-textarea/u-textarea.vue +239 -0
- package/components/u-toast/u-toast.vue +291 -0
- package/components/u-toolbar/props.js +34 -0
- package/components/u-toolbar/u-toolbar.vue +102 -0
- package/components/u-tooltip/clipboard.min.js +58 -0
- package/components/u-tooltip/props.js +59 -0
- package/components/u-tooltip/u-tooltip.vue +366 -0
- package/components/u-tr/props.js +5 -0
- package/components/u-tr/u-tr.vue +31 -0
- package/components/u-transition/nvue.ani-map.js +68 -0
- package/components/u-transition/props.js +24 -0
- package/components/u-transition/transition.js +157 -0
- package/components/u-transition/u-transition.vue +92 -0
- package/components/u-transition/vue.ani-style.scss +113 -0
- package/components/u-upload/mixin.js +21 -0
- package/components/u-upload/props.js +124 -0
- package/components/u-upload/u-upload.vue +566 -0
- package/components/u-upload/utils.js +151 -0
- package/components/uview-ui/uview-ui.vue +15 -0
- package/index.js +79 -0
- package/index.scss +23 -0
- package/libs/config/color.js +17 -0
- package/libs/config/config.js +34 -0
- package/libs/config/props/actionSheet.js +25 -0
- package/libs/config/props/album.js +25 -0
- package/libs/config/props/alert.js +22 -0
- package/libs/config/props/avatar.js +28 -0
- package/libs/config/props/avatarGroup.js +23 -0
- package/libs/config/props/backtop.js +27 -0
- package/libs/config/props/badge.js +27 -0
- package/libs/config/props/button.js +42 -0
- package/libs/config/props/calendar.js +42 -0
- package/libs/config/props/carKeyboard.js +15 -0
- package/libs/config/props/cell.js +35 -0
- package/libs/config/props/cellGroup.js +17 -0
- package/libs/config/props/checkbox.js +27 -0
- package/libs/config/props/checkboxGroup.js +29 -0
- package/libs/config/props/circleProgress.js +15 -0
- package/libs/config/props/code.js +21 -0
- package/libs/config/props/codeInput.js +29 -0
- package/libs/config/props/col.js +19 -0
- package/libs/config/props/collapse.js +17 -0
- package/libs/config/props/collapseItem.js +25 -0
- package/libs/config/props/columnNotice.js +24 -0
- package/libs/config/props/countDown.js +18 -0
- package/libs/config/props/countTo.js +25 -0
- package/libs/config/props/datetimePicker.js +37 -0
- package/libs/config/props/divider.js +23 -0
- package/libs/config/props/empty.js +26 -0
- package/libs/config/props/form.js +22 -0
- package/libs/config/props/formItem.js +23 -0
- package/libs/config/props/gap.js +19 -0
- package/libs/config/props/grid.js +17 -0
- package/libs/config/props/gridItem.js +16 -0
- package/libs/config/props/icon.js +36 -0
- package/libs/config/props/image.js +30 -0
- package/libs/config/props/indexAnchor.js +19 -0
- package/libs/config/props/indexList.js +19 -0
- package/libs/config/props/input.js +48 -0
- package/libs/config/props/keyboard.js +30 -0
- package/libs/config/props/line.js +20 -0
- package/libs/config/props/lineProgress.js +19 -0
- package/libs/config/props/link.js +26 -0
- package/libs/config/props/list.js +28 -0
- package/libs/config/props/listItem.js +15 -0
- package/libs/config/props/loadingIcon.js +30 -0
- package/libs/config/props/loadingPage.js +23 -0
- package/libs/config/props/loadmore.js +32 -0
- package/libs/config/props/modal.js +31 -0
- package/libs/config/props/navbar.js +32 -0
- package/libs/config/props/noNetwork.js +18 -0
- package/libs/config/props/noticeBar.js +27 -0
- package/libs/config/props/notify.js +22 -0
- package/libs/config/props/numberBox.js +35 -0
- package/libs/config/props/numberKeyboard.js +17 -0
- package/libs/config/props/overlay.js +18 -0
- package/libs/config/props/parse.js +22 -0
- package/libs/config/props/picker.js +29 -0
- package/libs/config/props/popup.js +29 -0
- package/libs/config/props/radio.js +27 -0
- package/libs/config/props/radioGroup.js +30 -0
- package/libs/config/props/rate.js +26 -0
- package/libs/config/props/readMore.js +22 -0
- package/libs/config/props/row.js +17 -0
- package/libs/config/props/rowNotice.js +21 -0
- package/libs/config/props/scrollList.js +20 -0
- package/libs/config/props/search.js +37 -0
- package/libs/config/props/section.js +24 -0
- package/libs/config/props/skeleton.js +25 -0
- package/libs/config/props/slider.js +25 -0
- package/libs/config/props/statusBar.js +15 -0
- package/libs/config/props/steps.js +21 -0
- package/libs/config/props/stepsItem.js +18 -0
- package/libs/config/props/sticky.js +20 -0
- package/libs/config/props/subsection.js +23 -0
- package/libs/config/props/swipeAction.js +15 -0
- package/libs/config/props/swipeActionItem.js +21 -0
- package/libs/config/props/swiper.js +39 -0
- package/libs/config/props/swipterIndicator.js +19 -0
- package/libs/config/props/switch.js +24 -0
- package/libs/config/props/tabbar.js +22 -0
- package/libs/config/props/tabbarItem.js +20 -0
- package/libs/config/props/tabs.js +32 -0
- package/libs/config/props/tag.js +29 -0
- package/libs/config/props/text.js +38 -0
- package/libs/config/props/textarea.js +36 -0
- package/libs/config/props/toast.js +30 -0
- package/libs/config/props/toolbar.js +21 -0
- package/libs/config/props/tooltip.js +25 -0
- package/libs/config/props/transition.js +18 -0
- package/libs/config/props/upload.js +36 -0
- package/libs/config/props.js +190 -0
- package/libs/config/zIndex.js +20 -0
- package/libs/css/color.scss +155 -0
- package/libs/css/common.scss +97 -0
- package/libs/css/components.scss +15 -0
- package/libs/css/flex.scss +257 -0
- package/libs/css/h5.scss +0 -0
- package/libs/css/mixin.scss +8 -0
- package/libs/css/mp.scss +0 -0
- package/libs/css/nvue.scss +0 -0
- package/libs/css/vue.scss +27 -0
- package/libs/function/colorGradient.js +134 -0
- package/libs/function/debounce.js +29 -0
- package/libs/function/digit.js +167 -0
- package/libs/function/index.js +731 -0
- package/libs/function/platform.js +75 -0
- package/libs/function/test.js +288 -0
- package/libs/function/throttle.js +30 -0
- package/libs/luch-request/adapters/index.js +97 -0
- package/libs/luch-request/core/InterceptorManager.js +50 -0
- package/libs/luch-request/core/Request.js +198 -0
- package/libs/luch-request/core/buildFullPath.js +20 -0
- package/libs/luch-request/core/defaults.js +29 -0
- package/libs/luch-request/core/dispatchRequest.js +3 -0
- package/libs/luch-request/core/mergeConfig.js +103 -0
- package/libs/luch-request/core/settle.js +16 -0
- package/libs/luch-request/helpers/buildURL.js +69 -0
- package/libs/luch-request/helpers/combineURLs.js +14 -0
- package/libs/luch-request/helpers/isAbsoluteURL.js +14 -0
- package/libs/luch-request/index.d.ts +116 -0
- package/libs/luch-request/index.js +3 -0
- package/libs/luch-request/utils/clone.js +264 -0
- package/libs/luch-request/utils.js +131 -0
- package/libs/mixin/button.js +13 -0
- package/libs/mixin/mixin.js +160 -0
- package/libs/mixin/mpMixin.js +8 -0
- package/libs/mixin/mpShare.js +13 -0
- package/libs/mixin/openType.js +25 -0
- package/libs/mixin/style.js +228 -0
- package/libs/mixin/touch.js +59 -0
- package/libs/util/async-validator.js +1343 -0
- package/libs/util/calendar.js +546 -0
- package/libs/util/dayjs.js +308 -0
- package/libs/util/emitter.js +51 -0
- package/libs/util/route.js +124 -0
- package/package.json +83 -0
- package/theme.scss +44 -0
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
props: {
|
|
3
|
+
// 组件状态,loadmore-加载前的状态,loading-加载中的状态,nomore-没有更多的状态
|
|
4
|
+
status: {
|
|
5
|
+
type: String,
|
|
6
|
+
default: uni.$u.props.loadmore.status
|
|
7
|
+
},
|
|
8
|
+
// 组件背景色
|
|
9
|
+
bgColor: {
|
|
10
|
+
type: String,
|
|
11
|
+
default: uni.$u.props.loadmore.bgColor
|
|
12
|
+
},
|
|
13
|
+
// 是否显示加载中的图标
|
|
14
|
+
icon: {
|
|
15
|
+
type: Boolean,
|
|
16
|
+
default: uni.$u.props.loadmore.icon
|
|
17
|
+
},
|
|
18
|
+
// 字体大小
|
|
19
|
+
fontSize: {
|
|
20
|
+
type: [String, Number],
|
|
21
|
+
default: uni.$u.props.loadmore.fontSize
|
|
22
|
+
},
|
|
23
|
+
// 图标大小
|
|
24
|
+
iconSize: {
|
|
25
|
+
type: [String, Number],
|
|
26
|
+
default: uni.$u.props.loadmore.iconSize
|
|
27
|
+
},
|
|
28
|
+
// 字体颜色
|
|
29
|
+
color: {
|
|
30
|
+
type: String,
|
|
31
|
+
default: uni.$u.props.loadmore.color
|
|
32
|
+
},
|
|
33
|
+
// 加载中状态的图标,spinner-花朵状图标,circle-圆圈状,semicircle-半圆
|
|
34
|
+
loadingIcon: {
|
|
35
|
+
type: String,
|
|
36
|
+
default: uni.$u.props.loadmore.loadingIcon
|
|
37
|
+
},
|
|
38
|
+
// 加载前的提示语
|
|
39
|
+
loadmoreText: {
|
|
40
|
+
type: String,
|
|
41
|
+
default: uni.$u.props.loadmore.loadmoreText
|
|
42
|
+
},
|
|
43
|
+
// 加载中提示语
|
|
44
|
+
loadingText: {
|
|
45
|
+
type: String,
|
|
46
|
+
default: uni.$u.props.loadmore.loadingText
|
|
47
|
+
},
|
|
48
|
+
// 没有更多的提示语
|
|
49
|
+
nomoreText: {
|
|
50
|
+
type: String,
|
|
51
|
+
default: uni.$u.props.loadmore.nomoreText
|
|
52
|
+
},
|
|
53
|
+
// 在“没有更多”状态下,是否显示粗点
|
|
54
|
+
isDot: {
|
|
55
|
+
type: Boolean,
|
|
56
|
+
default: uni.$u.props.loadmore.isDot
|
|
57
|
+
},
|
|
58
|
+
// 加载中图标的颜色
|
|
59
|
+
iconColor: {
|
|
60
|
+
type: String,
|
|
61
|
+
default: uni.$u.props.loadmore.iconColor
|
|
62
|
+
},
|
|
63
|
+
// 上边距
|
|
64
|
+
marginTop: {
|
|
65
|
+
type: [String, Number],
|
|
66
|
+
default: uni.$u.props.loadmore.marginTop
|
|
67
|
+
},
|
|
68
|
+
// 下边距
|
|
69
|
+
marginBottom: {
|
|
70
|
+
type: [String, Number],
|
|
71
|
+
default: uni.$u.props.loadmore.marginBottom
|
|
72
|
+
},
|
|
73
|
+
// 高度,单位px
|
|
74
|
+
height: {
|
|
75
|
+
type: [String, Number],
|
|
76
|
+
default: uni.$u.props.loadmore.height
|
|
77
|
+
},
|
|
78
|
+
// 是否显示左边分割线
|
|
79
|
+
line: {
|
|
80
|
+
type: Boolean,
|
|
81
|
+
default: uni.$u.props.loadmore.line
|
|
82
|
+
},
|
|
83
|
+
// 线条颜色
|
|
84
|
+
lineColor: {
|
|
85
|
+
type: String,
|
|
86
|
+
default: uni.$u.props.loadmore.lineColor
|
|
87
|
+
},
|
|
88
|
+
// 是否虚线,true-虚线,false-实线
|
|
89
|
+
dashed: {
|
|
90
|
+
type: Boolean,
|
|
91
|
+
default: uni.$u.props.loadmore.dashed
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view
|
|
3
|
+
class="u-loadmore"
|
|
4
|
+
:style="[
|
|
5
|
+
$u.addStyle(customStyle),
|
|
6
|
+
{
|
|
7
|
+
backgroundColor: bgColor,
|
|
8
|
+
marginBottom: $u.addUnit(marginBottom),
|
|
9
|
+
marginTop: $u.addUnit(marginTop),
|
|
10
|
+
height: $u.addUnit(height),
|
|
11
|
+
},
|
|
12
|
+
]"
|
|
13
|
+
>
|
|
14
|
+
<u-line
|
|
15
|
+
length="140rpx"
|
|
16
|
+
:color="lineColor"
|
|
17
|
+
:hairline="false"
|
|
18
|
+
:dashed="dashed"
|
|
19
|
+
v-if="line"
|
|
20
|
+
></u-line>
|
|
21
|
+
<!-- 加载中和没有更多的状态才显示两边的横线 -->
|
|
22
|
+
<view
|
|
23
|
+
:class="status == 'loadmore' || status == 'nomore' ? 'u-more' : ''"
|
|
24
|
+
class="u-loadmore__content"
|
|
25
|
+
>
|
|
26
|
+
<view
|
|
27
|
+
class="u-loadmore__content__icon-wrap"
|
|
28
|
+
v-if="status === 'loading' && icon"
|
|
29
|
+
>
|
|
30
|
+
<u-loading-icon
|
|
31
|
+
:color="iconColor"
|
|
32
|
+
:size="iconSize"
|
|
33
|
+
:mode="loadingIcon"
|
|
34
|
+
></u-loading-icon>
|
|
35
|
+
</view>
|
|
36
|
+
<!-- 如果没有更多的状态下,显示内容为dot(粗点),加载特定样式 -->
|
|
37
|
+
<text
|
|
38
|
+
class="u-line-1"
|
|
39
|
+
:style="[loadTextStyle]"
|
|
40
|
+
:class="[(status == 'nomore' && isDot == true) ? 'u-loadmore__content__dot-text' : 'u-loadmore__content__text']"
|
|
41
|
+
@tap="loadMore"
|
|
42
|
+
>{{ showText }}</text>
|
|
43
|
+
</view>
|
|
44
|
+
<u-line
|
|
45
|
+
length="140rpx"
|
|
46
|
+
:color="lineColor"
|
|
47
|
+
:hairline="false"
|
|
48
|
+
:dashed="dashed"
|
|
49
|
+
v-if="line"
|
|
50
|
+
></u-line>
|
|
51
|
+
</view>
|
|
52
|
+
</template>
|
|
53
|
+
|
|
54
|
+
<script>
|
|
55
|
+
import props from './props.js';
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* loadmore 加载更多
|
|
59
|
+
* @description 此组件一般用于标识页面底部加载数据时的状态。
|
|
60
|
+
* @tutorial https://www.uviewui.com/components/loadMore.html
|
|
61
|
+
* @property {String} status 组件状态(默认 'loadmore' )
|
|
62
|
+
* @property {String} bgColor 组件背景颜色,在页面是非白色时会用到(默认 'transparent' )
|
|
63
|
+
* @property {Boolean} icon 加载中时是否显示图标(默认 true )
|
|
64
|
+
* @property {String | Number} fontSize 字体大小(默认 14 )
|
|
65
|
+
* @property {String | Number} iconSize 图标大小(默认 17 )
|
|
66
|
+
* @property {String} color 字体颜色(默认 '#606266' )
|
|
67
|
+
* @property {String} loadingIcon 加载图标(默认 'circle' )
|
|
68
|
+
* @property {String} loadmoreText 加载前的提示语(默认 '加载更多' )
|
|
69
|
+
* @property {String} loadingText 加载中提示语(默认 '正在加载...' )
|
|
70
|
+
* @property {String} nomoreText 没有更多的提示语(默认 '没有更多了' )
|
|
71
|
+
* @property {Boolean} isDot 到上一个相邻元素的距离 (默认 false )
|
|
72
|
+
* @property {String} iconColor 加载中图标的颜色 (默认 '#b7b7b7' )
|
|
73
|
+
* @property {String} lineColor 线条颜色(默认 #E6E8EB )
|
|
74
|
+
* @property {String | Number} marginTop 上边距 (默认 10 )
|
|
75
|
+
* @property {String | Number} marginBottom 下边距 (默认 10 )
|
|
76
|
+
* @property {String | Number} height 高度,单位px (默认 'auto' )
|
|
77
|
+
* @property {Boolean} line 是否显示左边分割线 (默认 false )
|
|
78
|
+
* @property {Boolean} dashed // 是否虚线,true-虚线,false-实线 (默认 false )
|
|
79
|
+
* @event {Function} loadmore status为loadmore时,点击组件会发出此事件
|
|
80
|
+
* @example <u-loadmore :status="status" icon-type="iconType" load-text="loadText" />
|
|
81
|
+
*/
|
|
82
|
+
export default {
|
|
83
|
+
name: "u-loadmore",
|
|
84
|
+
mixins: [uni.$u.mpMixin, uni.$u.mixin,props],
|
|
85
|
+
data() {
|
|
86
|
+
return {
|
|
87
|
+
// 粗点
|
|
88
|
+
dotText: "●"
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
computed: {
|
|
92
|
+
// 加载的文字显示的样式
|
|
93
|
+
loadTextStyle() {
|
|
94
|
+
return {
|
|
95
|
+
color: this.color,
|
|
96
|
+
fontSize: uni.$u.addUnit(this.fontSize),
|
|
97
|
+
lineHeight: uni.$u.addUnit(this.fontSize),
|
|
98
|
+
backgroundColor: this.bgColor,
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
// 显示的提示文字
|
|
102
|
+
showText() {
|
|
103
|
+
let text = '';
|
|
104
|
+
if (this.status == 'loadmore') text = this.loadmoreText
|
|
105
|
+
else if (this.status == 'loading') text = this.loadingText
|
|
106
|
+
else if (this.status == 'nomore' && this.isDot) text = this.dotText;
|
|
107
|
+
else text = this.nomoreText;
|
|
108
|
+
return text;
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
methods: {
|
|
112
|
+
loadMore() {
|
|
113
|
+
// 只有在“加载更多”的状态下才发送点击事件,内容不满一屏时无法触发底部上拉事件,所以需要点击来触发
|
|
114
|
+
if (this.status == 'loadmore') this.$emit('loadmore');
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
</script>
|
|
119
|
+
|
|
120
|
+
<style lang="scss" scoped>
|
|
121
|
+
@import "../../libs/css/components.scss";
|
|
122
|
+
|
|
123
|
+
.u-loadmore {
|
|
124
|
+
@include flex(row);
|
|
125
|
+
align-items: center;
|
|
126
|
+
justify-content: center;
|
|
127
|
+
flex: 1;
|
|
128
|
+
|
|
129
|
+
&__content {
|
|
130
|
+
margin: 0 15px;
|
|
131
|
+
@include flex(row);
|
|
132
|
+
align-items: center;
|
|
133
|
+
justify-content: center;
|
|
134
|
+
|
|
135
|
+
&__icon-wrap {
|
|
136
|
+
margin-right: 8px;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
&__text {
|
|
140
|
+
font-size: 14px;
|
|
141
|
+
color: $u-content-color;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
&__dot-text {
|
|
145
|
+
font-size: 15px;
|
|
146
|
+
color: $u-tips-color;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
</style>
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
props: {
|
|
3
|
+
// 是否展示modal
|
|
4
|
+
show: {
|
|
5
|
+
type: Boolean,
|
|
6
|
+
default: uni.$u.props.modal.show
|
|
7
|
+
},
|
|
8
|
+
// 标题
|
|
9
|
+
title: {
|
|
10
|
+
type: [String],
|
|
11
|
+
default: uni.$u.props.modal.title
|
|
12
|
+
},
|
|
13
|
+
// 弹窗内容
|
|
14
|
+
content: {
|
|
15
|
+
type: String,
|
|
16
|
+
default: uni.$u.props.modal.content
|
|
17
|
+
},
|
|
18
|
+
// 确认文案
|
|
19
|
+
confirmText: {
|
|
20
|
+
type: String,
|
|
21
|
+
default: uni.$u.props.modal.confirmText
|
|
22
|
+
},
|
|
23
|
+
// 取消文案
|
|
24
|
+
cancelText: {
|
|
25
|
+
type: String,
|
|
26
|
+
default: uni.$u.props.modal.cancelText
|
|
27
|
+
},
|
|
28
|
+
// 是否显示确认按钮
|
|
29
|
+
showConfirmButton: {
|
|
30
|
+
type: Boolean,
|
|
31
|
+
default: uni.$u.props.modal.showConfirmButton
|
|
32
|
+
},
|
|
33
|
+
// 是否显示取消按钮
|
|
34
|
+
showCancelButton: {
|
|
35
|
+
type: Boolean,
|
|
36
|
+
default: uni.$u.props.modal.showCancelButton
|
|
37
|
+
},
|
|
38
|
+
// 确认按钮颜色
|
|
39
|
+
confirmColor: {
|
|
40
|
+
type: String,
|
|
41
|
+
default: uni.$u.props.modal.confirmColor
|
|
42
|
+
},
|
|
43
|
+
// 取消文字颜色
|
|
44
|
+
cancelColor: {
|
|
45
|
+
type: String,
|
|
46
|
+
default: uni.$u.props.modal.cancelColor
|
|
47
|
+
},
|
|
48
|
+
// 对调确认和取消的位置
|
|
49
|
+
buttonReverse: {
|
|
50
|
+
type: Boolean,
|
|
51
|
+
default: uni.$u.props.modal.buttonReverse
|
|
52
|
+
},
|
|
53
|
+
// 是否开启缩放效果
|
|
54
|
+
zoom: {
|
|
55
|
+
type: Boolean,
|
|
56
|
+
default: uni.$u.props.modal.zoom
|
|
57
|
+
},
|
|
58
|
+
// 是否异步关闭,只对确定按钮有效
|
|
59
|
+
asyncClose: {
|
|
60
|
+
type: Boolean,
|
|
61
|
+
default: uni.$u.props.modal.asyncClose
|
|
62
|
+
},
|
|
63
|
+
// 是否允许点击遮罩关闭modal
|
|
64
|
+
closeOnClickOverlay: {
|
|
65
|
+
type: Boolean,
|
|
66
|
+
default: uni.$u.props.modal.closeOnClickOverlay
|
|
67
|
+
},
|
|
68
|
+
// 给一个负的margin-top,往上偏移,避免和键盘重合的情况
|
|
69
|
+
negativeTop: {
|
|
70
|
+
type: [String, Number],
|
|
71
|
+
default: uni.$u.props.modal.negativeTop
|
|
72
|
+
},
|
|
73
|
+
// modal宽度,不支持百分比,可以数值,px,rpx单位
|
|
74
|
+
width: {
|
|
75
|
+
type: [String, Number],
|
|
76
|
+
default: uni.$u.props.modal.width
|
|
77
|
+
},
|
|
78
|
+
// 确认按钮的样式,circle-圆形,square-方形,如设置,将不会显示取消按钮
|
|
79
|
+
confirmButtonShape: {
|
|
80
|
+
type: String,
|
|
81
|
+
default: uni.$u.props.modal.confirmButtonShape
|
|
82
|
+
},
|
|
83
|
+
// 弹窗动画过度时间
|
|
84
|
+
duration:{
|
|
85
|
+
type:String | Number,
|
|
86
|
+
default: uni.$u.props.modal.duration
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<u-popup
|
|
3
|
+
mode="center"
|
|
4
|
+
:zoom="zoom"
|
|
5
|
+
:show="show"
|
|
6
|
+
:customStyle="{
|
|
7
|
+
borderRadius: '6px',
|
|
8
|
+
overflow: 'hidden',
|
|
9
|
+
marginTop: `-${$u.addUnit(negativeTop)}`
|
|
10
|
+
}"
|
|
11
|
+
:closeOnClickOverlay="closeOnClickOverlay"
|
|
12
|
+
:safeAreaInsetBottom="false"
|
|
13
|
+
:duration="duration"
|
|
14
|
+
@click="clickHandler"
|
|
15
|
+
>
|
|
16
|
+
<view
|
|
17
|
+
class="u-modal"
|
|
18
|
+
:style="{
|
|
19
|
+
width: $u.addUnit(width),
|
|
20
|
+
}"
|
|
21
|
+
>
|
|
22
|
+
<text
|
|
23
|
+
class="u-modal__title"
|
|
24
|
+
v-if="title"
|
|
25
|
+
>{{ title }}</text>
|
|
26
|
+
<view
|
|
27
|
+
class="u-modal__content"
|
|
28
|
+
:style="{
|
|
29
|
+
paddingTop: `${title ? 12 : 25}px`
|
|
30
|
+
}"
|
|
31
|
+
>
|
|
32
|
+
<slot>
|
|
33
|
+
<text class="u-modal__content__text">{{ content }}</text>
|
|
34
|
+
</slot>
|
|
35
|
+
</view>
|
|
36
|
+
<view
|
|
37
|
+
class="u-modal__button-group--confirm-button"
|
|
38
|
+
v-if="$slots.confirmButton"
|
|
39
|
+
>
|
|
40
|
+
<slot name="confirmButton"></slot>
|
|
41
|
+
</view>
|
|
42
|
+
<template v-else>
|
|
43
|
+
<u-line></u-line>
|
|
44
|
+
<view
|
|
45
|
+
class="u-modal__button-group"
|
|
46
|
+
:style="{
|
|
47
|
+
flexDirection: buttonReverse ? 'row-reverse' : 'row'
|
|
48
|
+
}"
|
|
49
|
+
>
|
|
50
|
+
<view
|
|
51
|
+
class="u-modal__button-group__wrapper u-modal__button-group__wrapper--cancel"
|
|
52
|
+
:hover-stay-time="150"
|
|
53
|
+
hover-class="u-modal__button-group__wrapper--hover"
|
|
54
|
+
:class="[showCancelButton && !showConfirmButton && 'u-modal__button-group__wrapper--only-cancel']"
|
|
55
|
+
v-if="showCancelButton"
|
|
56
|
+
@tap="cancelHandler"
|
|
57
|
+
>
|
|
58
|
+
<text
|
|
59
|
+
class="u-modal__button-group__wrapper__text"
|
|
60
|
+
:style="{
|
|
61
|
+
color: cancelColor
|
|
62
|
+
}"
|
|
63
|
+
>{{ cancelText }}</text>
|
|
64
|
+
</view>
|
|
65
|
+
<u-line
|
|
66
|
+
direction="column"
|
|
67
|
+
v-if="showConfirmButton && showCancelButton"
|
|
68
|
+
></u-line>
|
|
69
|
+
<view
|
|
70
|
+
class="u-modal__button-group__wrapper u-modal__button-group__wrapper--confirm"
|
|
71
|
+
:hover-stay-time="150"
|
|
72
|
+
hover-class="u-modal__button-group__wrapper--hover"
|
|
73
|
+
:class="[!showCancelButton && showConfirmButton && 'u-modal__button-group__wrapper--only-confirm']"
|
|
74
|
+
v-if="showConfirmButton"
|
|
75
|
+
@tap="confirmHandler"
|
|
76
|
+
>
|
|
77
|
+
<u-loading-icon v-if="loading"></u-loading-icon>
|
|
78
|
+
<text
|
|
79
|
+
v-else
|
|
80
|
+
class="u-modal__button-group__wrapper__text"
|
|
81
|
+
:style="{
|
|
82
|
+
color: confirmColor
|
|
83
|
+
}"
|
|
84
|
+
>{{ confirmText }}</text>
|
|
85
|
+
</view>
|
|
86
|
+
</view>
|
|
87
|
+
</template>
|
|
88
|
+
</view>
|
|
89
|
+
</u-popup>
|
|
90
|
+
</template>
|
|
91
|
+
|
|
92
|
+
<script>
|
|
93
|
+
import props from './props.js';
|
|
94
|
+
/**
|
|
95
|
+
* Modal 模态框
|
|
96
|
+
* @description 弹出模态框,常用于消息提示、消息确认、在当前页面内完成特定的交互操作。
|
|
97
|
+
* @tutorial https://www.uviewui.com/components/modul.html
|
|
98
|
+
* @property {Boolean} show 是否显示模态框,请赋值给show (默认 false )
|
|
99
|
+
* @property {String} title 标题内容
|
|
100
|
+
* @property {String} content 模态框内容,如传入slot内容,则此参数无效
|
|
101
|
+
* @property {String} confirmText 确认按钮的文字 (默认 '确认' )
|
|
102
|
+
* @property {String} cancelText 取消按钮的文字 (默认 '取消' )
|
|
103
|
+
* @property {Boolean} showConfirmButton 是否显示确认按钮 (默认 true )
|
|
104
|
+
* @property {Boolean} showCancelButton 是否显示取消按钮 (默认 false )
|
|
105
|
+
* @property {String} confirmColor 确认按钮的颜色 (默认 '#2979ff' )
|
|
106
|
+
* @property {String} cancelColor 取消按钮的颜色 (默认 '#606266' )
|
|
107
|
+
* @property {Number} duration 弹窗动画过度时间 (默认 400 )
|
|
108
|
+
* @property {Boolean} buttonReverse 对调确认和取消的位置 (默认 false )
|
|
109
|
+
* @property {Boolean} zoom 是否开启缩放模式 (默认 true )
|
|
110
|
+
* @property {Boolean} asyncClose 是否异步关闭,只对确定按钮有效,见上方说明 (默认 false )
|
|
111
|
+
* @property {Boolean} closeOnClickOverlay 是否允许点击遮罩关闭Modal (默认 false )
|
|
112
|
+
* @property {String | Number} negativeTop 往上偏移的值,给一个负的margin-top,往上偏移,避免和键盘重合的情况,单位任意,数值则默认为px单位 (默认 0 )
|
|
113
|
+
* @property {String | Number} width modal宽度,不支持百分比,可以数值,px,rpx单位 (默认 '650rpx' )
|
|
114
|
+
* @property {String} confirmButtonShape 确认按钮的样式,如设置,将不会显示取消按钮
|
|
115
|
+
* @event {Function} confirm 点击确认按钮时触发
|
|
116
|
+
* @event {Function} cancel 点击取消按钮时触发
|
|
117
|
+
* @event {Function} close 点击遮罩关闭出发,closeOnClickOverlay为true有效
|
|
118
|
+
* @example <u-modal :show="true" title="title" content="content"></u-modal>
|
|
119
|
+
*/
|
|
120
|
+
export default {
|
|
121
|
+
name: 'u-modal',
|
|
122
|
+
mixins: [uni.$u.mpMixin, uni.$u.mixin, props],
|
|
123
|
+
data() {
|
|
124
|
+
return {
|
|
125
|
+
loading: false
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
watch: {
|
|
129
|
+
show(n) {
|
|
130
|
+
// 为了避免第一次打开modal,又使用了异步关闭的loading
|
|
131
|
+
// 第二次打开modal时,loading依然存在的情况
|
|
132
|
+
if (n && this.loading) this.loading = false
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
methods: {
|
|
136
|
+
// 点击确定按钮
|
|
137
|
+
confirmHandler() {
|
|
138
|
+
// 如果配置了异步关闭,将按钮值为loading状态
|
|
139
|
+
if (this.asyncClose) {
|
|
140
|
+
this.loading = true;
|
|
141
|
+
}
|
|
142
|
+
this.$emit('confirm')
|
|
143
|
+
},
|
|
144
|
+
// 点击取消按钮
|
|
145
|
+
cancelHandler() {
|
|
146
|
+
this.$emit('cancel')
|
|
147
|
+
},
|
|
148
|
+
// 点击遮罩
|
|
149
|
+
// 从原理上来说,modal的遮罩点击,并不是真的点击到了遮罩
|
|
150
|
+
// 因为modal依赖于popup的中部弹窗类型,中部弹窗比较特殊,虽然有遮罩,但是为了让弹窗内容能flex居中
|
|
151
|
+
// 多了一个透明的遮罩,此透明的遮罩会覆盖在灰色的遮罩上,所以实际上是点击不到灰色遮罩的,popup内部在
|
|
152
|
+
// 透明遮罩的子元素做了.stop处理,所以点击内容区,也不会导致误触发
|
|
153
|
+
clickHandler() {
|
|
154
|
+
if (this.closeOnClickOverlay) {
|
|
155
|
+
this.$emit('close')
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
</script>
|
|
161
|
+
|
|
162
|
+
<style lang="scss" scoped>
|
|
163
|
+
@import "../../libs/css/components.scss";
|
|
164
|
+
$u-modal-border-radius: 6px;
|
|
165
|
+
|
|
166
|
+
.u-modal {
|
|
167
|
+
width: 650rpx;
|
|
168
|
+
border-radius: $u-modal-border-radius;
|
|
169
|
+
overflow: hidden;
|
|
170
|
+
|
|
171
|
+
&__title {
|
|
172
|
+
font-size: 16px;
|
|
173
|
+
font-weight: bold;
|
|
174
|
+
color: $u-content-color;
|
|
175
|
+
text-align: center;
|
|
176
|
+
padding-top: 25px;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
&__content {
|
|
180
|
+
padding: 12px 25px 25px 25px;
|
|
181
|
+
@include flex;
|
|
182
|
+
justify-content: center;
|
|
183
|
+
|
|
184
|
+
&__text {
|
|
185
|
+
font-size: 15px;
|
|
186
|
+
color: $u-content-color;
|
|
187
|
+
flex: 1;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
&__button-group {
|
|
192
|
+
@include flex;
|
|
193
|
+
|
|
194
|
+
&--confirm-button {
|
|
195
|
+
flex-direction: column;
|
|
196
|
+
padding: 0px 25px 15px 25px;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
&__wrapper {
|
|
200
|
+
flex: 1;
|
|
201
|
+
@include flex;
|
|
202
|
+
justify-content: center;
|
|
203
|
+
align-items: center;
|
|
204
|
+
height: 48px;
|
|
205
|
+
|
|
206
|
+
&--confirm,
|
|
207
|
+
&--only-cancel {
|
|
208
|
+
border-bottom-right-radius: $u-modal-border-radius;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
&--cancel,
|
|
212
|
+
&--only-confirm {
|
|
213
|
+
border-bottom-left-radius: $u-modal-border-radius;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
&--hover {
|
|
217
|
+
background-color: $u-bg-color;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
&__text {
|
|
221
|
+
color: $u-content-color;
|
|
222
|
+
font-size: 16px;
|
|
223
|
+
text-align: center;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
</style>
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
props: {
|
|
3
|
+
// 是否开启顶部安全区适配
|
|
4
|
+
safeAreaInsetTop: {
|
|
5
|
+
type: Boolean,
|
|
6
|
+
default: uni.$u.props.navbar.safeAreaInsetTop
|
|
7
|
+
},
|
|
8
|
+
// 固定在顶部时,是否生成一个等高元素,以防止塌陷
|
|
9
|
+
placeholder: {
|
|
10
|
+
type: Boolean,
|
|
11
|
+
default: uni.$u.props.navbar.placeholder
|
|
12
|
+
},
|
|
13
|
+
// 是否固定在顶部
|
|
14
|
+
fixed: {
|
|
15
|
+
type: Boolean,
|
|
16
|
+
default: uni.$u.props.navbar.fixed
|
|
17
|
+
},
|
|
18
|
+
// 是否显示下边框
|
|
19
|
+
border: {
|
|
20
|
+
type: Boolean,
|
|
21
|
+
default: uni.$u.props.navbar.border
|
|
22
|
+
},
|
|
23
|
+
// 左边的图标
|
|
24
|
+
leftIcon: {
|
|
25
|
+
type: String,
|
|
26
|
+
default: uni.$u.props.navbar.leftIcon
|
|
27
|
+
},
|
|
28
|
+
// 左边的提示文字
|
|
29
|
+
leftText: {
|
|
30
|
+
type: String,
|
|
31
|
+
default: uni.$u.props.navbar.leftText
|
|
32
|
+
},
|
|
33
|
+
// 左右的提示文字
|
|
34
|
+
rightText: {
|
|
35
|
+
type: String,
|
|
36
|
+
default: uni.$u.props.navbar.rightText
|
|
37
|
+
},
|
|
38
|
+
// 右边的图标
|
|
39
|
+
rightIcon: {
|
|
40
|
+
type: String,
|
|
41
|
+
default: uni.$u.props.navbar.rightIcon
|
|
42
|
+
},
|
|
43
|
+
// 标题
|
|
44
|
+
title: {
|
|
45
|
+
type: [String, Number],
|
|
46
|
+
default: uni.$u.props.navbar.title
|
|
47
|
+
},
|
|
48
|
+
// 背景颜色
|
|
49
|
+
bgColor: {
|
|
50
|
+
type: String,
|
|
51
|
+
default: uni.$u.props.navbar.bgColor
|
|
52
|
+
},
|
|
53
|
+
// 标题的宽度
|
|
54
|
+
titleWidth: {
|
|
55
|
+
type: [String, Number],
|
|
56
|
+
default: uni.$u.props.navbar.titleWidth
|
|
57
|
+
},
|
|
58
|
+
// 导航栏高度
|
|
59
|
+
height: {
|
|
60
|
+
type: [String, Number],
|
|
61
|
+
default: uni.$u.props.navbar.height
|
|
62
|
+
},
|
|
63
|
+
// 左侧返回图标的大小
|
|
64
|
+
leftIconSize: {
|
|
65
|
+
type: [String, Number],
|
|
66
|
+
default: uni.$u.props.navbar.leftIconSize
|
|
67
|
+
},
|
|
68
|
+
// 左侧返回图标的颜色
|
|
69
|
+
leftIconColor: {
|
|
70
|
+
type: String,
|
|
71
|
+
default: uni.$u.props.navbar.leftIconColor
|
|
72
|
+
},
|
|
73
|
+
// 点击左侧区域(返回图标),是否自动返回上一页
|
|
74
|
+
autoBack: {
|
|
75
|
+
type: Boolean,
|
|
76
|
+
default: uni.$u.props.navbar.autoBack
|
|
77
|
+
},
|
|
78
|
+
// 标题的样式,对象或字符串
|
|
79
|
+
titleStyle: {
|
|
80
|
+
type: [String, Object],
|
|
81
|
+
default: uni.$u.props.navbar.titleStyle
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|