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,190 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 此文件的作用为统一配置所有组件的props参数
|
|
3
|
+
* 借此用户可以全局覆盖组件的props默认值
|
|
4
|
+
* 无需在每个引入组件的页面中都配置一次
|
|
5
|
+
*/
|
|
6
|
+
import config from './config'
|
|
7
|
+
|
|
8
|
+
import actionSheet from './props/actionSheet.js'
|
|
9
|
+
import album from './props/album.js'
|
|
10
|
+
import alert from './props/alert.js'
|
|
11
|
+
import avatar from './props/avatar'
|
|
12
|
+
import avatarGroup from './props/avatarGroup'
|
|
13
|
+
import backtop from './props/backtop'
|
|
14
|
+
import badge from './props/badge'
|
|
15
|
+
import button from './props/button'
|
|
16
|
+
import calendar from './props/calendar'
|
|
17
|
+
import carKeyboard from './props/carKeyboard'
|
|
18
|
+
import cell from './props/cell'
|
|
19
|
+
import cellGroup from './props/cellGroup'
|
|
20
|
+
import checkbox from './props/checkbox'
|
|
21
|
+
import checkboxGroup from './props/checkboxGroup'
|
|
22
|
+
import circleProgress from './props/circleProgress'
|
|
23
|
+
import code from './props/code'
|
|
24
|
+
import codeInput from './props/codeInput'
|
|
25
|
+
import col from './props/col'
|
|
26
|
+
import collapse from './props/collapse'
|
|
27
|
+
import collapseItem from './props/collapseItem'
|
|
28
|
+
import columnNotice from './props/columnNotice'
|
|
29
|
+
import countDown from './props/countDown'
|
|
30
|
+
import countTo from './props/countTo'
|
|
31
|
+
import datetimePicker from './props/datetimePicker'
|
|
32
|
+
import divider from './props/divider'
|
|
33
|
+
import empty from './props/empty'
|
|
34
|
+
import form from './props/form'
|
|
35
|
+
import formItem from './props/formItem'
|
|
36
|
+
import gap from './props/gap'
|
|
37
|
+
import grid from './props/grid'
|
|
38
|
+
import gridItem from './props/gridItem'
|
|
39
|
+
import icon from './props/icon'
|
|
40
|
+
import image from './props/image'
|
|
41
|
+
import indexAnchor from './props/indexAnchor'
|
|
42
|
+
import indexList from './props/indexList'
|
|
43
|
+
import input from './props/input'
|
|
44
|
+
import keyboard from './props/keyboard'
|
|
45
|
+
import line from './props/line'
|
|
46
|
+
import lineProgress from './props/lineProgress'
|
|
47
|
+
import link from './props/link'
|
|
48
|
+
import list from './props/list'
|
|
49
|
+
import listItem from './props/listItem'
|
|
50
|
+
import loadingIcon from './props/loadingIcon'
|
|
51
|
+
import loadingPage from './props/loadingPage'
|
|
52
|
+
import loadmore from './props/loadmore'
|
|
53
|
+
import modal from './props/modal'
|
|
54
|
+
import navbar from './props/navbar'
|
|
55
|
+
import noNetwork from './props/noNetwork'
|
|
56
|
+
import noticeBar from './props/noticeBar'
|
|
57
|
+
import notify from './props/notify'
|
|
58
|
+
import numberBox from './props/numberBox'
|
|
59
|
+
import numberKeyboard from './props/numberKeyboard'
|
|
60
|
+
import overlay from './props/overlay'
|
|
61
|
+
import parse from './props/parse'
|
|
62
|
+
import picker from './props/picker'
|
|
63
|
+
import popup from './props/popup'
|
|
64
|
+
import radio from './props/radio'
|
|
65
|
+
import radioGroup from './props/radioGroup'
|
|
66
|
+
import rate from './props/rate'
|
|
67
|
+
import readMore from './props/readMore'
|
|
68
|
+
import row from './props/row'
|
|
69
|
+
import rowNotice from './props/rowNotice'
|
|
70
|
+
import scrollList from './props/scrollList'
|
|
71
|
+
import search from './props/search'
|
|
72
|
+
import section from './props/section'
|
|
73
|
+
import skeleton from './props/skeleton'
|
|
74
|
+
import slider from './props/slider'
|
|
75
|
+
import statusBar from './props/statusBar'
|
|
76
|
+
import steps from './props/steps'
|
|
77
|
+
import stepsItem from './props/stepsItem'
|
|
78
|
+
import sticky from './props/sticky'
|
|
79
|
+
import subsection from './props/subsection'
|
|
80
|
+
import swipeAction from './props/swipeAction'
|
|
81
|
+
import swipeActionItem from './props/swipeActionItem'
|
|
82
|
+
import swiper from './props/swiper'
|
|
83
|
+
import swipterIndicator from './props/swipterIndicator'
|
|
84
|
+
import _switch from './props/switch'
|
|
85
|
+
import tabbar from './props/tabbar'
|
|
86
|
+
import tabbarItem from './props/tabbarItem'
|
|
87
|
+
import tabs from './props/tabs'
|
|
88
|
+
import tag from './props/tag'
|
|
89
|
+
import text from './props/text'
|
|
90
|
+
import textarea from './props/textarea'
|
|
91
|
+
import toast from './props/toast'
|
|
92
|
+
import toolbar from './props/toolbar'
|
|
93
|
+
import tooltip from './props/tooltip'
|
|
94
|
+
import transition from './props/transition'
|
|
95
|
+
import upload from './props/upload'
|
|
96
|
+
|
|
97
|
+
const {
|
|
98
|
+
color
|
|
99
|
+
} = config
|
|
100
|
+
|
|
101
|
+
export default {
|
|
102
|
+
...actionSheet,
|
|
103
|
+
...album,
|
|
104
|
+
...alert,
|
|
105
|
+
...avatar,
|
|
106
|
+
...avatarGroup,
|
|
107
|
+
...backtop,
|
|
108
|
+
...badge,
|
|
109
|
+
...button,
|
|
110
|
+
...calendar,
|
|
111
|
+
...carKeyboard,
|
|
112
|
+
...cell,
|
|
113
|
+
...cellGroup,
|
|
114
|
+
...checkbox,
|
|
115
|
+
...checkboxGroup,
|
|
116
|
+
...circleProgress,
|
|
117
|
+
...code,
|
|
118
|
+
...codeInput,
|
|
119
|
+
...col,
|
|
120
|
+
...collapse,
|
|
121
|
+
...collapseItem,
|
|
122
|
+
...columnNotice,
|
|
123
|
+
...countDown,
|
|
124
|
+
...countTo,
|
|
125
|
+
...datetimePicker,
|
|
126
|
+
...divider,
|
|
127
|
+
...empty,
|
|
128
|
+
...form,
|
|
129
|
+
...formItem,
|
|
130
|
+
...gap,
|
|
131
|
+
...grid,
|
|
132
|
+
...gridItem,
|
|
133
|
+
...icon,
|
|
134
|
+
...image,
|
|
135
|
+
...indexAnchor,
|
|
136
|
+
...indexList,
|
|
137
|
+
...input,
|
|
138
|
+
...keyboard,
|
|
139
|
+
...line,
|
|
140
|
+
...lineProgress,
|
|
141
|
+
...link,
|
|
142
|
+
...list,
|
|
143
|
+
...listItem,
|
|
144
|
+
...loadingIcon,
|
|
145
|
+
...loadingPage,
|
|
146
|
+
...loadmore,
|
|
147
|
+
...modal,
|
|
148
|
+
...navbar,
|
|
149
|
+
...noNetwork,
|
|
150
|
+
...noticeBar,
|
|
151
|
+
...notify,
|
|
152
|
+
...numberBox,
|
|
153
|
+
...numberKeyboard,
|
|
154
|
+
...overlay,
|
|
155
|
+
...parse,
|
|
156
|
+
...picker,
|
|
157
|
+
...popup,
|
|
158
|
+
...radio,
|
|
159
|
+
...radioGroup,
|
|
160
|
+
...rate,
|
|
161
|
+
...readMore,
|
|
162
|
+
...row,
|
|
163
|
+
...rowNotice,
|
|
164
|
+
...scrollList,
|
|
165
|
+
...search,
|
|
166
|
+
...section,
|
|
167
|
+
...skeleton,
|
|
168
|
+
...slider,
|
|
169
|
+
...statusBar,
|
|
170
|
+
...steps,
|
|
171
|
+
...stepsItem,
|
|
172
|
+
...sticky,
|
|
173
|
+
...subsection,
|
|
174
|
+
...swipeAction,
|
|
175
|
+
...swipeActionItem,
|
|
176
|
+
...swiper,
|
|
177
|
+
...swipterIndicator,
|
|
178
|
+
..._switch,
|
|
179
|
+
...tabbar,
|
|
180
|
+
...tabbarItem,
|
|
181
|
+
...tabs,
|
|
182
|
+
...tag,
|
|
183
|
+
...text,
|
|
184
|
+
...textarea,
|
|
185
|
+
...toast,
|
|
186
|
+
...toolbar,
|
|
187
|
+
...tooltip,
|
|
188
|
+
...transition,
|
|
189
|
+
...upload
|
|
190
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// uniapp在H5中各API的z-index值如下:
|
|
2
|
+
/**
|
|
3
|
+
* actionsheet: 999
|
|
4
|
+
* modal: 999
|
|
5
|
+
* navigate: 998
|
|
6
|
+
* tabbar: 998
|
|
7
|
+
* toast: 999
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
export default {
|
|
11
|
+
toast: 10090,
|
|
12
|
+
noNetwork: 10080,
|
|
13
|
+
// popup包含popup,actionsheet,keyboard,picker的值
|
|
14
|
+
popup: 10075,
|
|
15
|
+
mask: 10070,
|
|
16
|
+
navbar: 980,
|
|
17
|
+
topTips: 975,
|
|
18
|
+
sticky: 970,
|
|
19
|
+
indexListSticky: 965
|
|
20
|
+
}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
.u-primary-light {
|
|
2
|
+
color: $u-primary-light;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.u-warning-light {
|
|
6
|
+
color: $u-warning-light;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.u-success-light {
|
|
10
|
+
color: $u-success-light;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.u-error-light {
|
|
14
|
+
color: $u-error-light;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.u-info-light {
|
|
18
|
+
color: $u-info-light;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.u-primary-light-bg {
|
|
22
|
+
background-color: $u-primary-light;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.u-warning-light-bg {
|
|
26
|
+
background-color: $u-warning-light;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.u-success-light-bg {
|
|
30
|
+
background-color: $u-success-light;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.u-error-light-bg {
|
|
34
|
+
background-color: $u-error-light;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.u-info-light-bg {
|
|
38
|
+
background-color: $u-info-light;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.u-primary-dark {
|
|
42
|
+
color: $u-primary-dark;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.u-warning-dark {
|
|
46
|
+
color: $u-warning-dark;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.u-success-dark {
|
|
50
|
+
color: $u-success-dark;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.u-error-dark {
|
|
54
|
+
color: $u-error-dark;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.u-info-dark {
|
|
58
|
+
color: $u-info-dark;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.u-primary-dark-bg {
|
|
62
|
+
background-color: $u-primary-dark;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.u-warning-dark-bg {
|
|
66
|
+
background-color: $u-warning-dark;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.u-success-dark-bg {
|
|
70
|
+
background-color: $u-success-dark;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.u-error-dark-bg {
|
|
74
|
+
background-color: $u-error-dark;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.u-info-dark-bg {
|
|
78
|
+
background-color: $u-info-dark;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.u-primary-disabled {
|
|
82
|
+
color: $u-primary-disabled;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.u-warning-disabled {
|
|
86
|
+
color: $u-warning-disabled;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.u-success-disabled {
|
|
90
|
+
color: $u-success-disabled;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.u-error-disabled {
|
|
94
|
+
color: $u-error-disabled;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.u-info-disabled {
|
|
98
|
+
color: $u-info-disabled;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.u-primary {
|
|
102
|
+
color: $u-primary;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.u-warning {
|
|
106
|
+
color: $u-warning;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.u-success {
|
|
110
|
+
color: $u-success;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.u-error {
|
|
114
|
+
color: $u-error;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.u-info {
|
|
118
|
+
color: $u-info;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.u-primary-bg {
|
|
122
|
+
background-color: $u-primary;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.u-warning-bg {
|
|
126
|
+
background-color: $u-warning;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.u-success-bg {
|
|
130
|
+
background-color: $u-success;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.u-error-bg {
|
|
134
|
+
background-color: $u-error;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.u-info-bg {
|
|
138
|
+
background-color: $u-info;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.u-main-color {
|
|
142
|
+
color: $u-main-color;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.u-content-color {
|
|
146
|
+
color: $u-content-color;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.u-tips-color {
|
|
150
|
+
color: $u-tips-color;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.u-light-color {
|
|
154
|
+
color: $u-light-color;
|
|
155
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
// 超出行数,自动显示行尾省略号,最多5行
|
|
2
|
+
// 来自uView的温馨提示:当您在控制台看到此报错,说明需要在App.vue的style标签加上【lang="scss"】
|
|
3
|
+
@for $i from 1 through 5 {
|
|
4
|
+
.u-line-#{$i} {
|
|
5
|
+
/* #ifdef APP-NVUE */
|
|
6
|
+
// nvue下,可以直接使用lines属性,这是weex特有样式
|
|
7
|
+
lines: $i;
|
|
8
|
+
text-overflow: ellipsis;
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
flex: 1;
|
|
11
|
+
/* #endif */
|
|
12
|
+
|
|
13
|
+
/* #ifndef APP-NVUE */
|
|
14
|
+
// vue下,单行和多行显示省略号需要单独处理
|
|
15
|
+
@if $i == '1' {
|
|
16
|
+
overflow: hidden;
|
|
17
|
+
white-space: nowrap;
|
|
18
|
+
text-overflow: ellipsis;
|
|
19
|
+
} @else {
|
|
20
|
+
display: -webkit-box!important;
|
|
21
|
+
overflow: hidden;
|
|
22
|
+
text-overflow: ellipsis;
|
|
23
|
+
word-break: break-all;
|
|
24
|
+
-webkit-line-clamp: $i;
|
|
25
|
+
-webkit-box-orient: vertical!important;
|
|
26
|
+
}
|
|
27
|
+
/* #endif */
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
// 此处加上!important并非随意乱用,而是因为目前*.nvue页面编译到H5时,
|
|
33
|
+
// App.vue的样式会被uni-app的view元素的自带border属性覆盖,导致无效
|
|
34
|
+
// 综上,这是uni-app的缺陷导致我们为了多端兼容,而必须要加上!important
|
|
35
|
+
// 移动端兼容性较好,直接使用0.5px去实现细边框,不使用伪元素形式实现
|
|
36
|
+
.u-border {
|
|
37
|
+
border-width: 0.5px!important;
|
|
38
|
+
border-color: $u-border-color!important;
|
|
39
|
+
border-style: solid;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.u-border-top {
|
|
43
|
+
border-top-width: 0.5px!important;
|
|
44
|
+
border-color: $u-border-color!important;
|
|
45
|
+
border-top-style: solid;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.u-border-left {
|
|
49
|
+
border-left-width: 0.5px!important;
|
|
50
|
+
border-color: $u-border-color!important;
|
|
51
|
+
border-left-style: solid;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.u-border-right {
|
|
55
|
+
border-right-width: 0.5px!important;
|
|
56
|
+
border-color: $u-border-color!important;
|
|
57
|
+
border-right-style: solid;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.u-border-bottom {
|
|
61
|
+
border-bottom-width: 0.5px!important;
|
|
62
|
+
border-color: $u-border-color!important;
|
|
63
|
+
border-bottom-style: solid;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.u-border-top-bottom {
|
|
67
|
+
border-top-width: 0.5px!important;
|
|
68
|
+
border-bottom-width: 0.5px!important;
|
|
69
|
+
border-color: $u-border-color!important;
|
|
70
|
+
border-top-style: solid;
|
|
71
|
+
border-bottom-style: solid;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
// 去除button的所有默认样式,让其表现跟普通的view、text元素一样
|
|
75
|
+
.u-reset-button {
|
|
76
|
+
padding: 0;
|
|
77
|
+
background-color: transparent;
|
|
78
|
+
/* #ifndef APP-PLUS */
|
|
79
|
+
font-size: inherit;
|
|
80
|
+
line-height: inherit;
|
|
81
|
+
color: inherit;
|
|
82
|
+
/* #endif */
|
|
83
|
+
/* #ifdef APP-NVUE */
|
|
84
|
+
border-width: 0;
|
|
85
|
+
/* #endif */
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/* #ifndef APP-NVUE */
|
|
89
|
+
.u-reset-button::after {
|
|
90
|
+
border: none;
|
|
91
|
+
}
|
|
92
|
+
/* #endif */
|
|
93
|
+
|
|
94
|
+
.u-hover-class {
|
|
95
|
+
opacity: 0.7;
|
|
96
|
+
}
|
|
97
|
+
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
@import "./mixin.scss";
|
|
2
|
+
|
|
3
|
+
/* #ifndef APP-NVUE */
|
|
4
|
+
// 由于uView是基于nvue环境进行开发的,此环境中普通元素默认为flex-direction: column;
|
|
5
|
+
// 所以在非nvue中,需要对元素进行重置为flex-direction: column; 否则可能会表现异常
|
|
6
|
+
view, scroll-view, swiper-item {
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
flex-shrink: 0;
|
|
10
|
+
flex-grow: 0;
|
|
11
|
+
flex-basis: auto;
|
|
12
|
+
align-items: stretch;
|
|
13
|
+
align-content: flex-start;
|
|
14
|
+
}
|
|
15
|
+
/* #endif */
|