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,308 @@
|
|
|
1
|
+
!(function (t, e) {
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = e() : typeof define === 'function'
|
|
3
|
+
&& define.amd ? define(e) : t.dayjs = e()
|
|
4
|
+
}(this, () => {
|
|
5
|
+
'use strict'
|
|
6
|
+
|
|
7
|
+
const t = 'millisecond'
|
|
8
|
+
const e = 'second'
|
|
9
|
+
const n = 'minute'
|
|
10
|
+
const r = 'hour'
|
|
11
|
+
const i = 'day'
|
|
12
|
+
const s = 'week'
|
|
13
|
+
const u = 'month'
|
|
14
|
+
const a = 'quarter'
|
|
15
|
+
const o = 'year'
|
|
16
|
+
const f = 'date'
|
|
17
|
+
const h = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?.?(\d+)?$/
|
|
18
|
+
const c = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g
|
|
19
|
+
const d = {
|
|
20
|
+
name: 'en',
|
|
21
|
+
weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
|
|
22
|
+
months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_')
|
|
23
|
+
}
|
|
24
|
+
const $ = function (t, e, n) {
|
|
25
|
+
const r = String(t)
|
|
26
|
+
return !r || r.length >= e ? t : `${Array(e + 1 - r.length).join(n)}${t}`
|
|
27
|
+
}
|
|
28
|
+
const l = {
|
|
29
|
+
s: $,
|
|
30
|
+
z(t) {
|
|
31
|
+
const e = -t.utcOffset()
|
|
32
|
+
const n = Math.abs(e)
|
|
33
|
+
const r = Math.floor(n / 60)
|
|
34
|
+
const i = n % 60
|
|
35
|
+
return `${(e <= 0 ? '+' : '-') + $(r, 2, '0')}:${$(i, 2, '0')}`
|
|
36
|
+
},
|
|
37
|
+
m: function t(e, n) {
|
|
38
|
+
if (e.date() < n.date()) return -t(n, e)
|
|
39
|
+
const r = 12 * (n.year() - e.year()) + (n.month() - e.month())
|
|
40
|
+
const i = e.clone().add(r, u)
|
|
41
|
+
const s = n - i < 0
|
|
42
|
+
const a = e.clone().add(r + (s ? -1 : 1), u)
|
|
43
|
+
return +(-(r + (n - i) / (s ? i - a : a - i)) || 0)
|
|
44
|
+
},
|
|
45
|
+
a(t) {
|
|
46
|
+
return t < 0 ? Math.ceil(t) || 0 : Math.floor(t)
|
|
47
|
+
},
|
|
48
|
+
p(h) {
|
|
49
|
+
return {
|
|
50
|
+
M: u,
|
|
51
|
+
y: o,
|
|
52
|
+
w: s,
|
|
53
|
+
d: i,
|
|
54
|
+
D: f,
|
|
55
|
+
h: r,
|
|
56
|
+
m: n,
|
|
57
|
+
s: e,
|
|
58
|
+
ms: t,
|
|
59
|
+
Q: a
|
|
60
|
+
}[h] || String(h || '').toLowerCase().replace(/s$/, '')
|
|
61
|
+
},
|
|
62
|
+
u(t) {
|
|
63
|
+
return void 0 === t
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
let y = 'en'
|
|
67
|
+
const M = {}
|
|
68
|
+
M[y] = d
|
|
69
|
+
const m = function (t) {
|
|
70
|
+
return t instanceof S
|
|
71
|
+
}
|
|
72
|
+
const D = function (t, e, n) {
|
|
73
|
+
let r
|
|
74
|
+
if (!t) return y
|
|
75
|
+
if (typeof t === 'string') M[t] && (r = t), e && (M[t] = e, r = t)
|
|
76
|
+
else {
|
|
77
|
+
const i = t.name
|
|
78
|
+
M[i] = t, r = i
|
|
79
|
+
}
|
|
80
|
+
return !n && r && (y = r), r || !n && y
|
|
81
|
+
}
|
|
82
|
+
const v = function (t, e) {
|
|
83
|
+
if (m(t)) return t.clone()
|
|
84
|
+
const n = typeof e === 'object' ? e : {}
|
|
85
|
+
return n.date = t, n.args = arguments, new S(n)
|
|
86
|
+
}
|
|
87
|
+
const g = l
|
|
88
|
+
g.l = D, g.i = m, g.w = function (t, e) {
|
|
89
|
+
return v(t, {
|
|
90
|
+
locale: e.$L,
|
|
91
|
+
utc: e.$u,
|
|
92
|
+
x: e.$x,
|
|
93
|
+
$offset: e.$offset
|
|
94
|
+
})
|
|
95
|
+
}
|
|
96
|
+
var S = (function () {
|
|
97
|
+
function d(t) {
|
|
98
|
+
this.$L = D(t.locale, null, !0), this.parse(t)
|
|
99
|
+
}
|
|
100
|
+
const $ = d.prototype
|
|
101
|
+
return $.parse = function (t) {
|
|
102
|
+
this.$d = (function (t) {
|
|
103
|
+
const e = t.date
|
|
104
|
+
const n = t.utc
|
|
105
|
+
if (e === null) return new Date(NaN)
|
|
106
|
+
if (g.u(e)) return new Date()
|
|
107
|
+
if (e instanceof Date) return new Date(e)
|
|
108
|
+
if (typeof e === 'string' && !/Z$/i.test(e)) {
|
|
109
|
+
const r = e.match(h)
|
|
110
|
+
if (r) {
|
|
111
|
+
const i = r[2] - 1 || 0
|
|
112
|
+
const s = (r[7] || '0').substring(0, 3)
|
|
113
|
+
return n ? new Date(Date.UTC(r[1], i, r[3] || 1, r[4] || 0, r[5] || 0, r[6] || 0, s)) : new Date(r[1], i, r[3]
|
|
114
|
+
|| 1, r[4] || 0, r[5] || 0, r[6] || 0, s)
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
return new Date(e)
|
|
118
|
+
}(t)), this.$x = t.x || {}, this.init()
|
|
119
|
+
}, $.init = function () {
|
|
120
|
+
const t = this.$d
|
|
121
|
+
this.$y = t.getFullYear(), this.$M = t.getMonth(), this.$D = t.getDate(), this.$W = t.getDay(), this.$H = t.getHours(),
|
|
122
|
+
this.$m = t.getMinutes(), this.$s = t.getSeconds(), this.$ms = t.getMilliseconds()
|
|
123
|
+
}, $.$utils = function () {
|
|
124
|
+
return g
|
|
125
|
+
}, $.isValid = function () {
|
|
126
|
+
return !(this.$d.toString() === 'Invalid Date')
|
|
127
|
+
}, $.isSame = function (t, e) {
|
|
128
|
+
const n = v(t)
|
|
129
|
+
return this.startOf(e) <= n && n <= this.endOf(e)
|
|
130
|
+
}, $.isAfter = function (t, e) {
|
|
131
|
+
return v(t) < this.startOf(e)
|
|
132
|
+
}, $.isBefore = function (t, e) {
|
|
133
|
+
return this.endOf(e) < v(t)
|
|
134
|
+
}, $.$g = function (t, e, n) {
|
|
135
|
+
return g.u(t) ? this[e] : this.set(n, t)
|
|
136
|
+
}, $.unix = function () {
|
|
137
|
+
return Math.floor(this.valueOf() / 1e3)
|
|
138
|
+
}, $.valueOf = function () {
|
|
139
|
+
return this.$d.getTime()
|
|
140
|
+
}, $.startOf = function (t, a) {
|
|
141
|
+
const h = this
|
|
142
|
+
const c = !!g.u(a) || a
|
|
143
|
+
const d = g.p(t)
|
|
144
|
+
const $ = function (t, e) {
|
|
145
|
+
const n = g.w(h.$u ? Date.UTC(h.$y, e, t) : new Date(h.$y, e, t), h)
|
|
146
|
+
return c ? n : n.endOf(i)
|
|
147
|
+
}
|
|
148
|
+
const l = function (t, e) {
|
|
149
|
+
return g.w(h.toDate()[t].apply(h.toDate('s'), (c ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e)), h)
|
|
150
|
+
}
|
|
151
|
+
const y = this.$W
|
|
152
|
+
const M = this.$M
|
|
153
|
+
const m = this.$D
|
|
154
|
+
const D = `set${this.$u ? 'UTC' : ''}`
|
|
155
|
+
switch (d) {
|
|
156
|
+
case o:
|
|
157
|
+
return c ? $(1, 0) : $(31, 11)
|
|
158
|
+
case u:
|
|
159
|
+
return c ? $(1, M) : $(0, M + 1)
|
|
160
|
+
case s:
|
|
161
|
+
var v = this.$locale().weekStart || 0
|
|
162
|
+
var S = (y < v ? y + 7 : y) - v
|
|
163
|
+
return $(c ? m - S : m + (6 - S), M)
|
|
164
|
+
case i:
|
|
165
|
+
case f:
|
|
166
|
+
return l(`${D}Hours`, 0)
|
|
167
|
+
case r:
|
|
168
|
+
return l(`${D}Minutes`, 1)
|
|
169
|
+
case n:
|
|
170
|
+
return l(`${D}Seconds`, 2)
|
|
171
|
+
case e:
|
|
172
|
+
return l(`${D}Milliseconds`, 3)
|
|
173
|
+
default:
|
|
174
|
+
return this.clone()
|
|
175
|
+
}
|
|
176
|
+
}, $.endOf = function (t) {
|
|
177
|
+
return this.startOf(t, !1)
|
|
178
|
+
}, $.$set = function (s, a) {
|
|
179
|
+
let h; const c = g.p(s)
|
|
180
|
+
const d = `set${this.$u ? 'UTC' : ''}`
|
|
181
|
+
const $ = (h = {}, h[i] = `${d}Date`, h[f] = `${d}Date`, h[u] = `${d}Month`, h[o] = `${d}FullYear`, h[r] = `${d}Hours`,
|
|
182
|
+
h[n] = `${d}Minutes`, h[e] = `${d}Seconds`, h[t] = `${d}Milliseconds`, h)[c]
|
|
183
|
+
const l = c === i ? this.$D + (a - this.$W) : a
|
|
184
|
+
if (c === u || c === o) {
|
|
185
|
+
const y = this.clone().set(f, 1)
|
|
186
|
+
y.$d[$](l), y.init(), this.$d = y.set(f, Math.min(this.$D, y.daysInMonth())).$d
|
|
187
|
+
} else $ && this.$d[$](l)
|
|
188
|
+
return this.init(), this
|
|
189
|
+
}, $.set = function (t, e) {
|
|
190
|
+
return this.clone().$set(t, e)
|
|
191
|
+
}, $.get = function (t) {
|
|
192
|
+
return this[g.p(t)]()
|
|
193
|
+
}, $.add = function (t, a) {
|
|
194
|
+
let f; const
|
|
195
|
+
h = this
|
|
196
|
+
t = Number(t)
|
|
197
|
+
const c = g.p(a)
|
|
198
|
+
const d = function (e) {
|
|
199
|
+
const n = v(h)
|
|
200
|
+
return g.w(n.date(n.date() + Math.round(e * t)), h)
|
|
201
|
+
}
|
|
202
|
+
if (c === u) return this.set(u, this.$M + t)
|
|
203
|
+
if (c === o) return this.set(o, this.$y + t)
|
|
204
|
+
if (c === i) return d(1)
|
|
205
|
+
if (c === s) return d(7)
|
|
206
|
+
const $ = (f = {}, f[n] = 6e4, f[r] = 36e5, f[e] = 1e3, f)[c] || 1
|
|
207
|
+
const l = this.$d.getTime() + t * $
|
|
208
|
+
return g.w(l, this)
|
|
209
|
+
}, $.subtract = function (t, e) {
|
|
210
|
+
return this.add(-1 * t, e)
|
|
211
|
+
}, $.format = function (t) {
|
|
212
|
+
const e = this
|
|
213
|
+
if (!this.isValid()) return 'Invalid Date'
|
|
214
|
+
const n = t || 'YYYY-MM-DDTHH:mm:ssZ'
|
|
215
|
+
const r = g.z(this)
|
|
216
|
+
const i = this.$locale()
|
|
217
|
+
const s = this.$H
|
|
218
|
+
const u = this.$m
|
|
219
|
+
const a = this.$M
|
|
220
|
+
const o = i.weekdays
|
|
221
|
+
const f = i.months
|
|
222
|
+
const h = function (t, r, i, s) {
|
|
223
|
+
return t && (t[r] || t(e, n)) || i[r].substr(0, s)
|
|
224
|
+
}
|
|
225
|
+
const d = function (t) {
|
|
226
|
+
return g.s(s % 12 || 12, t, '0')
|
|
227
|
+
}
|
|
228
|
+
const $ = i.meridiem || function (t, e, n) {
|
|
229
|
+
const r = t < 12 ? 'AM' : 'PM'
|
|
230
|
+
return n ? r.toLowerCase() : r
|
|
231
|
+
}
|
|
232
|
+
const l = {
|
|
233
|
+
YY: String(this.$y).slice(-2),
|
|
234
|
+
YYYY: this.$y,
|
|
235
|
+
M: a + 1,
|
|
236
|
+
MM: g.s(a + 1, 2, '0'),
|
|
237
|
+
MMM: h(i.monthsShort, a, f, 3),
|
|
238
|
+
MMMM: h(f, a),
|
|
239
|
+
D: this.$D,
|
|
240
|
+
DD: g.s(this.$D, 2, '0'),
|
|
241
|
+
d: String(this.$W),
|
|
242
|
+
dd: h(i.weekdaysMin, this.$W, o, 2),
|
|
243
|
+
ddd: h(i.weekdaysShort, this.$W, o, 3),
|
|
244
|
+
dddd: o[this.$W],
|
|
245
|
+
H: String(s),
|
|
246
|
+
HH: g.s(s, 2, '0'),
|
|
247
|
+
h: d(1),
|
|
248
|
+
hh: d(2),
|
|
249
|
+
a: $(s, u, !0),
|
|
250
|
+
A: $(s, u, !1),
|
|
251
|
+
m: String(u),
|
|
252
|
+
mm: g.s(u, 2, '0'),
|
|
253
|
+
s: String(this.$s),
|
|
254
|
+
ss: g.s(this.$s, 2, '0'),
|
|
255
|
+
SSS: g.s(this.$ms, 3, '0'),
|
|
256
|
+
Z: r
|
|
257
|
+
}
|
|
258
|
+
return n.replace(c, (t, e) => e || l[t] || r.replace(':', ''))
|
|
259
|
+
}, $.utcOffset = function () {
|
|
260
|
+
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15)
|
|
261
|
+
}, $.diff = function (t, f, h) {
|
|
262
|
+
let c; const d = g.p(f)
|
|
263
|
+
const $ = v(t)
|
|
264
|
+
const l = 6e4 * ($.utcOffset() - this.utcOffset())
|
|
265
|
+
const y = this - $
|
|
266
|
+
let M = g.m(this, $)
|
|
267
|
+
return M = (c = {}, c[o] = M / 12, c[u] = M, c[a] = M / 3, c[s] = (y - l) / 6048e5, c[i] = (y - l) / 864e5, c[r] = y / 36e5, c[n] = y / 6e4, c[e] = y / 1e3, c)[d] || y, h ? M : g.a(M)
|
|
268
|
+
}, $.daysInMonth = function () {
|
|
269
|
+
return this.endOf(u).$D
|
|
270
|
+
}, $.$locale = function () {
|
|
271
|
+
return M[this.$L]
|
|
272
|
+
}, $.locale = function (t, e) {
|
|
273
|
+
if (!t) return this.$L
|
|
274
|
+
const n = this.clone()
|
|
275
|
+
const r = D(t, e, !0)
|
|
276
|
+
return r && (n.$L = r), n
|
|
277
|
+
}, $.clone = function () {
|
|
278
|
+
return g.w(this.$d, this)
|
|
279
|
+
}, $.toDate = function () {
|
|
280
|
+
return new Date(this.valueOf())
|
|
281
|
+
}, $.toJSON = function () {
|
|
282
|
+
return this.isValid() ? this.toISOString() : null
|
|
283
|
+
}, $.toISOString = function () {
|
|
284
|
+
return this.$d.toISOString()
|
|
285
|
+
}, $.toString = function () {
|
|
286
|
+
return this.$d.toUTCString()
|
|
287
|
+
}, d
|
|
288
|
+
}())
|
|
289
|
+
const p = S.prototype
|
|
290
|
+
return v.prototype = p, [
|
|
291
|
+
['$ms', t],
|
|
292
|
+
['$s', e],
|
|
293
|
+
['$m', n],
|
|
294
|
+
['$H', r],
|
|
295
|
+
['$W', i],
|
|
296
|
+
['$M', u],
|
|
297
|
+
['$y', o],
|
|
298
|
+
['$D', f]
|
|
299
|
+
].forEach((t) => {
|
|
300
|
+
p[t[1]] = function (e) {
|
|
301
|
+
return this.$g(e, t[0], t[1])
|
|
302
|
+
}
|
|
303
|
+
}), v.extend = function (t, e) {
|
|
304
|
+
return t.$i || (t(e, S, v), t.$i = !0), v
|
|
305
|
+
}, v.locale = D, v.isDayjs = m, v.unix = function (t) {
|
|
306
|
+
return v(1e3 * t)
|
|
307
|
+
}, v.en = M[y], v.Ls = M, v.p = {}, v
|
|
308
|
+
}))
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 递归使用 call 方式this指向
|
|
3
|
+
* @param componentName // 需要找的组件的名称
|
|
4
|
+
* @param eventName // 事件名称
|
|
5
|
+
* @param params // 需要传递的参数
|
|
6
|
+
*/
|
|
7
|
+
function broadcast(componentName, eventName, params) {
|
|
8
|
+
// 循环子节点找到名称一样的子节点 否则 递归 当前子节点
|
|
9
|
+
this.$children.map((child) => {
|
|
10
|
+
if (componentName === child.$options.name) {
|
|
11
|
+
child.$emit.apply(child, [eventName].concat(params))
|
|
12
|
+
} else {
|
|
13
|
+
broadcast.apply(child, [componentName, eventName].concat(params))
|
|
14
|
+
}
|
|
15
|
+
})
|
|
16
|
+
}
|
|
17
|
+
export default {
|
|
18
|
+
methods: {
|
|
19
|
+
/**
|
|
20
|
+
* 派发 (向上查找) (一个)
|
|
21
|
+
* @param componentName // 需要找的组件的名称
|
|
22
|
+
* @param eventName // 事件名称
|
|
23
|
+
* @param params // 需要传递的参数
|
|
24
|
+
*/
|
|
25
|
+
dispatch(componentName, eventName, params) {
|
|
26
|
+
let parent = this.$parent || this.$root// $parent 找到最近的父节点 $root 根节点
|
|
27
|
+
let { name } = parent.$options // 获取当前组件实例的name
|
|
28
|
+
// 如果当前有节点 && 当前没名称 且 当前名称等于需要传进来的名称的时候就去查找当前的节点
|
|
29
|
+
// 循环出当前名称的一样的组件实例
|
|
30
|
+
while (parent && (!name || name !== componentName)) {
|
|
31
|
+
parent = parent.$parent
|
|
32
|
+
if (parent) {
|
|
33
|
+
name = parent.$options.name
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
// 有节点表示当前找到了name一样的实例
|
|
37
|
+
if (parent) {
|
|
38
|
+
parent.$emit.apply(parent, [eventName].concat(params))
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
/**
|
|
42
|
+
* 广播 (向下查找) (广播多个)
|
|
43
|
+
* @param componentName // 需要找的组件的名称
|
|
44
|
+
* @param eventName // 事件名称
|
|
45
|
+
* @param params // 需要传递的参数
|
|
46
|
+
*/
|
|
47
|
+
broadcast(componentName, eventName, params) {
|
|
48
|
+
broadcast.call(this, componentName, eventName, params)
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 路由跳转方法,该方法相对于直接使用uni.xxx的好处是使用更加简单快捷
|
|
3
|
+
* 并且带有路由拦截功能
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
class Router {
|
|
7
|
+
constructor() {
|
|
8
|
+
// 原始属性定义
|
|
9
|
+
this.config = {
|
|
10
|
+
type: 'navigateTo',
|
|
11
|
+
url: '',
|
|
12
|
+
delta: 1, // navigateBack页面后退时,回退的层数
|
|
13
|
+
params: {}, // 传递的参数
|
|
14
|
+
animationType: 'pop-in', // 窗口动画,只在APP有效
|
|
15
|
+
animationDuration: 300, // 窗口动画持续时间,单位毫秒,只在APP有效
|
|
16
|
+
intercept: false // 是否需要拦截
|
|
17
|
+
}
|
|
18
|
+
// 因为route方法是需要对外赋值给另外的对象使用,同时route内部有使用this,会导致route失去上下文
|
|
19
|
+
// 这里在构造函数中进行this绑定
|
|
20
|
+
this.route = this.route.bind(this)
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
// 判断url前面是否有"/",如果没有则加上,否则无法跳转
|
|
24
|
+
addRootPath(url) {
|
|
25
|
+
return url[0] === '/' ? url : `/${url}`
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
// 整合路由参数
|
|
29
|
+
mixinParam(url, params) {
|
|
30
|
+
url = url && this.addRootPath(url)
|
|
31
|
+
|
|
32
|
+
// 使用正则匹配,主要依据是判断是否有"/","?","="等,如“/page/index/index?name=mary"
|
|
33
|
+
// 如果有url中有get参数,转换后无需带上"?"
|
|
34
|
+
let query = ''
|
|
35
|
+
if (/.*\/.*\?.*=.*/.test(url)) {
|
|
36
|
+
// object对象转为get类型的参数
|
|
37
|
+
query = uni.$u.queryParams(params, false)
|
|
38
|
+
// 因为已有get参数,所以后面拼接的参数需要带上"&"隔开
|
|
39
|
+
return url += `&${query}`
|
|
40
|
+
}
|
|
41
|
+
// 直接拼接参数,因为此处url中没有后面的query参数,也就没有"?/&"之类的符号
|
|
42
|
+
query = uni.$u.queryParams(params)
|
|
43
|
+
return url += query
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
// 对外的方法名称
|
|
47
|
+
async route(options = {}, params = {}) {
|
|
48
|
+
// 合并用户的配置和内部的默认配置
|
|
49
|
+
let mergeConfig = {}
|
|
50
|
+
|
|
51
|
+
if (typeof options === 'string') {
|
|
52
|
+
// 如果options为字符串,则为route(url, params)的形式
|
|
53
|
+
mergeConfig.url = this.mixinParam(options, params)
|
|
54
|
+
mergeConfig.type = 'navigateTo'
|
|
55
|
+
} else {
|
|
56
|
+
mergeConfig = uni.$u.deepMerge(this.config, options)
|
|
57
|
+
// 否则正常使用mergeConfig中的url和params进行拼接
|
|
58
|
+
mergeConfig.url = this.mixinParam(options.url, options.params)
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
// 如果本次跳转的路径和本页面路径一致,不执行跳转,防止用户快速点击跳转按钮,造成多次跳转同一个页面的问题
|
|
62
|
+
if (mergeConfig.url === uni.$u.page()) return
|
|
63
|
+
|
|
64
|
+
if (params.intercept) {
|
|
65
|
+
this.config.intercept = params.intercept
|
|
66
|
+
}
|
|
67
|
+
// params参数也带给拦截器
|
|
68
|
+
mergeConfig.params = params
|
|
69
|
+
// 合并内外部参数
|
|
70
|
+
mergeConfig = uni.$u.deepMerge(this.config, mergeConfig)
|
|
71
|
+
// 判断用户是否定义了拦截器
|
|
72
|
+
if (typeof uni.$u.routeIntercept === 'function') {
|
|
73
|
+
// 定一个promise,根据用户执行resolve(true)或者resolve(false)来决定是否进行路由跳转
|
|
74
|
+
const isNext = await new Promise((resolve, reject) => {
|
|
75
|
+
uni.$u.routeIntercept(mergeConfig, resolve)
|
|
76
|
+
})
|
|
77
|
+
// 如果isNext为true,则执行路由跳转
|
|
78
|
+
isNext && this.openPage(mergeConfig)
|
|
79
|
+
} else {
|
|
80
|
+
this.openPage(mergeConfig)
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
// 执行路由跳转
|
|
85
|
+
openPage(config) {
|
|
86
|
+
// 解构参数
|
|
87
|
+
const {
|
|
88
|
+
url,
|
|
89
|
+
type,
|
|
90
|
+
delta,
|
|
91
|
+
animationType,
|
|
92
|
+
animationDuration
|
|
93
|
+
} = config
|
|
94
|
+
if (config.type == 'navigateTo' || config.type == 'to') {
|
|
95
|
+
uni.navigateTo({
|
|
96
|
+
url,
|
|
97
|
+
animationType,
|
|
98
|
+
animationDuration
|
|
99
|
+
})
|
|
100
|
+
}
|
|
101
|
+
if (config.type == 'redirectTo' || config.type == 'redirect') {
|
|
102
|
+
uni.redirectTo({
|
|
103
|
+
url
|
|
104
|
+
})
|
|
105
|
+
}
|
|
106
|
+
if (config.type == 'switchTab' || config.type == 'tab') {
|
|
107
|
+
uni.switchTab({
|
|
108
|
+
url
|
|
109
|
+
})
|
|
110
|
+
}
|
|
111
|
+
if (config.type == 'reLaunch' || config.type == 'launch') {
|
|
112
|
+
uni.reLaunch({
|
|
113
|
+
url
|
|
114
|
+
})
|
|
115
|
+
}
|
|
116
|
+
if (config.type == 'navigateBack' || config.type == 'back') {
|
|
117
|
+
uni.navigateBack({
|
|
118
|
+
delta
|
|
119
|
+
})
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export default (new Router()).route
|
package/package.json
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "uview-ui-wjf",
|
|
3
|
+
"name": "uview-ui-wjf",
|
|
4
|
+
"displayName": "uView2.0重磅发布,利剑出鞘,一统江湖",
|
|
5
|
+
"version": "1.0.0",
|
|
6
|
+
"description": "uView UI已完美兼容nvue,全面的组件和便捷的工具会让您信手拈来,如鱼得水",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"uview",
|
|
9
|
+
"uview",
|
|
10
|
+
"ui",
|
|
11
|
+
"ui",
|
|
12
|
+
"uni-app",
|
|
13
|
+
"uni-app",
|
|
14
|
+
"ui"
|
|
15
|
+
],
|
|
16
|
+
"repository": "https://gitee.com/swordfly/uview-personal.git",
|
|
17
|
+
"engines": {
|
|
18
|
+
"HBuilderX": "^3.1.0"
|
|
19
|
+
},
|
|
20
|
+
"dcloudext": {
|
|
21
|
+
"sale": {
|
|
22
|
+
"regular": {
|
|
23
|
+
"price": "0.00"
|
|
24
|
+
},
|
|
25
|
+
"sourcecode": {
|
|
26
|
+
"price": "0.00"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"contact": {
|
|
30
|
+
"qq": "1416956117"
|
|
31
|
+
},
|
|
32
|
+
"declaration": {
|
|
33
|
+
"ads": "无",
|
|
34
|
+
"data": "无",
|
|
35
|
+
"permissions": "无"
|
|
36
|
+
},
|
|
37
|
+
"type": "component-vue"
|
|
38
|
+
},
|
|
39
|
+
"uni_modules": {
|
|
40
|
+
"dependencies": [],
|
|
41
|
+
"encrypt": [],
|
|
42
|
+
"platforms": {
|
|
43
|
+
"cloud": {
|
|
44
|
+
"tcb": "y",
|
|
45
|
+
"aliyun": "y"
|
|
46
|
+
},
|
|
47
|
+
"client": {
|
|
48
|
+
"Vue": {
|
|
49
|
+
"vue2": "y",
|
|
50
|
+
"vue3": "n"
|
|
51
|
+
},
|
|
52
|
+
"App": {
|
|
53
|
+
"app-vue": "y",
|
|
54
|
+
"app-nvue": "y"
|
|
55
|
+
},
|
|
56
|
+
"H5-mobile": {
|
|
57
|
+
"Safari": "y",
|
|
58
|
+
"Android Browser": "y",
|
|
59
|
+
"微信浏览器(Android)": "y",
|
|
60
|
+
"QQ浏览器(Android)": "y"
|
|
61
|
+
},
|
|
62
|
+
"H5-pc": {
|
|
63
|
+
"Chrome": "y",
|
|
64
|
+
"IE": "y",
|
|
65
|
+
"Edge": "y",
|
|
66
|
+
"Firefox": "y",
|
|
67
|
+
"Safari": "y"
|
|
68
|
+
},
|
|
69
|
+
"小程序": {
|
|
70
|
+
"微信": "y",
|
|
71
|
+
"阿里": "y",
|
|
72
|
+
"百度": "y",
|
|
73
|
+
"字节跳动": "y",
|
|
74
|
+
"QQ": "y"
|
|
75
|
+
},
|
|
76
|
+
"快应用": {
|
|
77
|
+
"华为": "y",
|
|
78
|
+
"联盟": "y"
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
package/theme.scss
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// 此文件为uView的主题变量,这些变量目前只能通过uni.scss引入才有效,另外由于
|
|
2
|
+
// uni.scss中引入的样式会同时混入到全局样式文件和单独每一个页面的样式中,造成微信程序包太大,
|
|
3
|
+
// 故uni.scss只建议放scss变量名相关样式,其他的样式可以通过main.js或者App.vue引入
|
|
4
|
+
|
|
5
|
+
$u-main-color: #303133;
|
|
6
|
+
$u-content-color: #606266;
|
|
7
|
+
$u-tips-color: #909193;
|
|
8
|
+
$u-light-color: #c0c4cc;
|
|
9
|
+
$u-border-color: #dadbde;
|
|
10
|
+
$u-bg-color: #f3f4f6;
|
|
11
|
+
$u-disabled-color: #c8c9cc;
|
|
12
|
+
|
|
13
|
+
$u-primary: #3c9cff;
|
|
14
|
+
$u-primary-dark: #398ade;
|
|
15
|
+
$u-primary-disabled: #9acafc;
|
|
16
|
+
$u-primary-light: #ecf5ff;
|
|
17
|
+
|
|
18
|
+
$u-warning: #f9ae3d;
|
|
19
|
+
$u-warning-dark: #f1a532;
|
|
20
|
+
$u-warning-disabled: #f9d39b;
|
|
21
|
+
$u-warning-light: #fdf6ec;
|
|
22
|
+
|
|
23
|
+
$u-success: #5ac725;
|
|
24
|
+
$u-success-dark: #53c21d;
|
|
25
|
+
$u-success-disabled: #a9e08f;
|
|
26
|
+
$u-success-light: #f5fff0;
|
|
27
|
+
|
|
28
|
+
$u-error: #f56c6c;
|
|
29
|
+
$u-error-dark: #e45656;
|
|
30
|
+
$u-error-disabled: #f7b2b2;
|
|
31
|
+
$u-error-light: #fef0f0;
|
|
32
|
+
|
|
33
|
+
$u-info: #909399;
|
|
34
|
+
$u-info-dark: #767a82;
|
|
35
|
+
$u-info-disabled: #c4c6c9;
|
|
36
|
+
$u-info-light: #f4f4f5;
|
|
37
|
+
|
|
38
|
+
// scss混入,为了少写几行#ifndef
|
|
39
|
+
@mixin flex($direction: row) {
|
|
40
|
+
/* #ifndef APP-NVUE */
|
|
41
|
+
display: flex;
|
|
42
|
+
/* #endif */
|
|
43
|
+
flex-direction: $direction;
|
|
44
|
+
}
|