@10yun/cv-mobile-ui 0.5.29 → 0.5.30
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/package.json +1 -1
- package/plugins/luch-request/adapters/index.js +131 -0
- package/plugins/luch-request/core/InterceptorManager.js +50 -0
- package/plugins/luch-request/core/Request.js +199 -0
- package/plugins/luch-request/core/buildFullPath.js +20 -0
- package/plugins/luch-request/core/defaults.js +32 -0
- package/plugins/luch-request/core/dispatchRequest.js +5 -0
- package/plugins/luch-request/core/mergeConfig.js +125 -0
- package/plugins/luch-request/core/settle.js +16 -0
- package/plugins/luch-request/helpers/buildURL.js +71 -0
- package/plugins/luch-request/helpers/combineURLs.js +12 -0
- package/plugins/luch-request/helpers/isAbsoluteURL.js +14 -0
- package/plugins/luch-request/index.d.ts +197 -0
- package/plugins/luch-request/index.js +2 -0
- package/plugins/luch-request/readme.md +3 -0
- package/plugins/luch-request/utils/clone.js +264 -0
- package/plugins/luch-request/utils.js +131 -0
- package/plugins/request.js +2 -2
- package/ui-cv/components/cv-form-item/cv-form-item.vue +1 -1
- package/ui-fireui/fui-actionsheet/fui-actionsheet.vue +202 -0
- package/ui-fireui/fui-alert/fui-alert.vue +141 -0
- package/ui-fireui/fui-badge/fui-badge.vue +158 -0
- package/ui-fireui/fui-bottom-navigation/fui-bottom-navigation.vue +390 -0
- package/ui-fireui/fui-bottom-popup/fui-bottom-popup.vue +100 -0
- package/ui-fireui/fui-bubble-popup/fui-bubble-popup.vue +236 -0
- package/ui-fireui/fui-button/fui-button.vue +424 -0
- package/ui-fireui/fui-calendar/fui-calendar.js +915 -0
- package/ui-fireui/fui-calendar/fui-calendar.vue +868 -0
- package/ui-fireui/fui-card/fui-card.vue +231 -0
- package/ui-fireui/fui-cascade-selection/fui-cascade-selection.vue +538 -0
- package/ui-fireui/fui-circular-progress/fui-circular-progress.vue +261 -0
- package/ui-fireui/fui-collapse/fui-collapse.vue +179 -0
- package/ui-fireui/fui-countdown/fui-countdown.vue +301 -0
- package/ui-fireui/fui-datetime/fui-datetime.vue +570 -0
- package/ui-fireui/fui-divider/fui-divider.vue +118 -0
- package/ui-fireui/fui-drawer/fui-drawer.vue +103 -0
- package/ui-fireui/fui-dropdown-list/fui-dropdown-list.vue +70 -0
- package/ui-fireui/fui-fab/fui-fab.vue +284 -0
- package/ui-fireui/fui-footer/fui-footer.vue +131 -0
- package/ui-fireui/fui-grid/fui-grid.vue +42 -0
- package/ui-fireui/fui-grid-item/fui-grid-item.vue +142 -0
- package/ui-fireui/fui-icon/fui-icon.vue +820 -0
- package/ui-fireui/fui-image-cropper/fui-image-cropper.vue +1058 -0
- package/ui-fireui/fui-image-group/fui-image-group.vue +149 -0
- package/ui-fireui/fui-keyboard/fui-keyboard.vue +254 -0
- package/ui-fireui/fui-keyboard-input/fui-keyboard-input.vue +78 -0
- package/ui-fireui/fui-list-cell/fui-list-cell.vue +178 -0
- package/ui-fireui/fui-list-view/fui-list-view.vue +87 -0
- package/ui-fireui/fui-loading/fui-loading.vue +78 -0
- package/ui-fireui/fui-loadmore/fui-loadmore.vue +163 -0
- package/ui-fireui/fui-modal/fui-modal.vue +392 -0
- package/ui-fireui/fui-navigation-bar/fui-navigation-bar.vue +180 -0
- package/ui-fireui/fui-no-data/fui-no-data.vue +116 -0
- package/ui-fireui/fui-nomore/fui-nomore.vue +116 -0
- package/ui-fireui/fui-numberbox/fui-numberbox.vue +234 -0
- package/ui-fireui/fui-numberbox-border/fui-numberbox-border.vue +232 -0
- package/ui-fireui/fui-picture-cropper/fui-picture-cropper.vue +682 -0
- package/ui-fireui/fui-picture-cropper/fui-picture-cropper.wxs +560 -0
- package/ui-fireui/fui-rate/fui-rate.vue +167 -0
- package/ui-fireui/fui-round-progress/fui-round-progress.vue +306 -0
- package/ui-fireui/fui-scroll-top/fui-scroll-top.vue +189 -0
- package/ui-fireui/fui-sharemodel/fui-sharemodel.vue +181 -0
- package/ui-fireui/fui-skeleton/fui-skeleton.vue +248 -0
- package/ui-fireui/fui-steps/fui-steps.vue +214 -0
- package/ui-fireui/fui-sticky/fui-sticky.vue +155 -0
- package/ui-fireui/fui-sticky-wxs/fui-sticky-wxs.vue +133 -0
- package/ui-fireui/fui-sticky-wxs/fui-sticky.wxs +44 -0
- package/ui-fireui/fui-swipe-action/fui-swipe-action.vue +301 -0
- package/ui-fireui/fui-tabbar/fui-tabbar.vue +283 -0
- package/ui-fireui/fui-tabs/fui-tabs.vue +284 -0
- package/ui-fireui/fui-tabs2/fui-tabs2.vue +284 -0
- package/ui-fireui/fui-tag/fui-tag.vue +374 -0
- package/ui-fireui/fui-time-axis/fui-time-axis.vue +36 -0
- package/ui-fireui/fui-timeaxis-item/fui-timeaxis-item.vue +48 -0
- package/ui-fireui/fui-tips/fui-tips.vue +161 -0
- package/ui-fireui/fui-toast/fui-toast.vue +117 -0
- package/ui-fireui/fui-top-dropdown/fui-top-dropdown.vue +129 -0
- package/ui-fireui/fui-upload/fui-upload.vue +446 -0
- package/ui-fireui/fui-uploadsamll/fui-uploadsamll.vue +472 -0
- package/uview-plus/README.md +1 -1
- package/uview-plus/changelog-wu-tool.md +21 -0
- package/uview-plus/changelog-wu.md +91 -0
- package/uview-plus/components/u-action-sheet/_doc/changelog.md +12 -0
- package/uview-plus/components/u-action-sheet/_doc/package.json +92 -0
- package/uview-plus/components/u-action-sheet/_doc/readme.md +16 -0
- package/uview-plus/components/u-app-update/_doc/changelog.md +26 -0
- package/uview-plus/components/u-app-update/_doc/package.json +89 -0
- package/uview-plus/components/u-app-update/_doc/readme.md +16 -0
- package/uview-plus/components/u-app-update/config.js +120 -0
- package/uview-plus/components/u-app-update/img/act.png +0 -0
- package/uview-plus/components/u-app-update/img/appUploadAlertBoxBg.png +0 -0
- package/uview-plus/components/u-app-update/img/close.png +0 -0
- package/uview-plus/components/u-app-update/js-sdk/checkVersion.js +81 -0
- package/uview-plus/components/u-app-update/js-sdk/silentlyAppUpdate.js +41 -0
- package/uview-plus/components/u-app-update/pages/index.vue +8 -0
- package/uview-plus/components/u-app-update/u-app-update.vue +583 -0
- package/uview-plus/components/u-button-wu/_doc/changelog.md +6 -0
- package/uview-plus/components/u-button-wu/_doc/package.json +89 -0
- package/uview-plus/components/u-button-wu/_doc/readme.md +16 -0
- package/uview-plus/components/u-button-wu/u-button-wu.vue +522 -0
- package/uview-plus/components/u-button-wu/vue.scss +81 -0
- package/uview-plus/components/u-calendar-wu/_doc/changelog.md +145 -0
- package/uview-plus/components/u-calendar-wu/_doc/package.json +90 -0
- package/uview-plus/components/u-calendar-wu/_doc/readme.md +16 -0
- package/uview-plus/components/u-calendar-wu/calendar.js +664 -0
- package/uview-plus/components/u-calendar-wu/i18n/en.json +14 -0
- package/uview-plus/components/u-calendar-wu/i18n/index.js +8 -0
- package/uview-plus/components/u-calendar-wu/i18n/zh-Hans.json +14 -0
- package/uview-plus/components/u-calendar-wu/i18n/zh-Hant.json +14 -0
- package/uview-plus/components/u-calendar-wu/props.js +166 -0
- package/uview-plus/components/u-calendar-wu/style.css +196 -0
- package/uview-plus/components/u-calendar-wu/u-calendar-wu.vue +921 -0
- package/uview-plus/components/u-calendar-wu/util.js +552 -0
- package/uview-plus/components/u-calendar-wu/wu-calendar-block/props.js +73 -0
- package/uview-plus/components/u-calendar-wu/wu-calendar-block/wu-calendar-block.vue +122 -0
- package/uview-plus/components/u-calendar-wu/wu-calendar-item/props.js +55 -0
- package/uview-plus/components/u-calendar-wu/wu-calendar-item/wu-calendar-item.vue +293 -0
- package/uview-plus/components/u-cell/_doc/changelog.md +6 -0
- package/uview-plus/components/u-cell/_doc/package.json +89 -0
- package/uview-plus/components/u-cell/_doc/readme.md +25 -0
- package/uview-plus/components/u-checkbox/_doc/changelog.md +8 -0
- package/uview-plus/components/u-checkbox/_doc/package.json +88 -0
- package/uview-plus/components/u-checkbox/_doc/readme.md +25 -0
- package/uview-plus/components/u-code/_doc/changelog.md +6 -0
- package/uview-plus/components/u-code/_doc/package.json +86 -0
- package/uview-plus/components/u-code/_doc/readme.md +16 -0
- package/uview-plus/components/u-drag-sort/_doc/changelog.md +0 -0
- package/uview-plus/components/u-drag-sort/_doc/package.json +85 -0
- package/uview-plus/components/u-drag-sort/_doc/readme.md +16 -0
- package/uview-plus/components/u-drag-sort/u-drag-sort.vue +3 -0
- package/uview-plus/components/u-empty/u-empty.vue +27 -1
- package/uview-plus/components/u-gap/_doc/changelog.md +4 -0
- package/uview-plus/components/u-gap/_doc/package.json +86 -0
- package/uview-plus/components/u-gap/_doc/readme.md +22 -0
- package/uview-plus/components/u-icon/_doc/changelog.md +10 -0
- package/uview-plus/components/u-icon/_doc/package.json +85 -0
- package/uview-plus/components/u-icon/_doc/readme.md +10 -0
- package/uview-plus/components/u-icon/icon.js +23 -25
- package/uview-plus/components/u-icon/icons.js +213 -213
- package/uview-plus/components/u-icon/style.css +3 -3
- package/uview-plus/components/u-icon/u-icon2.vue +149 -0
- package/uview-plus/components/u-image-wu/_doc/changelog.md +21 -0
- package/uview-plus/components/u-image-wu/_doc/package.json +88 -0
- package/uview-plus/components/u-image-wu/_doc/readme.md +11 -0
- package/uview-plus/components/u-image-wu/props.js +94 -0
- package/uview-plus/components/u-image-wu/u-image-wu.vue +243 -0
- package/uview-plus/components/u-input/_doc/changelog.md +6 -0
- package/uview-plus/components/u-input/_doc/package.json +88 -0
- package/uview-plus/components/u-input/_doc/readme.md +16 -0
- package/uview-plus/components/u-line/_doc/changelog.md +8 -0
- package/uview-plus/components/u-line/_doc/package.json +86 -0
- package/uview-plus/components/u-line/_doc/readme.md +16 -0
- package/uview-plus/components/u-link/_doc/changelog.md +8 -0
- package/uview-plus/components/u-link/_doc/package.json +86 -0
- package/uview-plus/components/u-link/_doc/readme.md +20 -0
- package/uview-plus/components/u-loading-icon/_doc/changelog.md +12 -0
- package/uview-plus/components/u-loading-icon/_doc/package.json +86 -0
- package/uview-plus/components/u-loading-icon/_doc/readme.md +16 -0
- package/uview-plus/components/u-loading-icon/props.js +1 -1
- package/uview-plus/components/u-navbar/_doc/changelog.md +6 -0
- package/uview-plus/components/u-navbar/_doc/package.json +89 -0
- package/uview-plus/components/u-navbar/_doc/readme.md +16 -0
- package/uview-plus/components/u-navbar-wu/props.js +102 -0
- package/uview-plus/components/u-navbar-wu/u-navbar-wu.vue +196 -0
- package/uview-plus/components/u-number-box/_doc/changelog.md +19 -0
- package/uview-plus/components/u-number-box/_doc/package.json +88 -0
- package/uview-plus/components/u-number-box/_doc/readme.md +16 -0
- package/uview-plus/components/u-overlay/_doc/changelog.md +4 -0
- package/uview-plus/components/u-overlay/_doc/package.json +88 -0
- package/uview-plus/components/u-overlay/_doc/readme.md +16 -0
- package/uview-plus/components/u-popup/_doc/changelog.md +4 -0
- package/uview-plus/components/u-popup/_doc/package.json +92 -0
- package/uview-plus/components/u-popup/_doc/readme.md +16 -0
- package/uview-plus/components/u-popup-wu/keypress.js +45 -0
- package/uview-plus/components/u-popup-wu/u-popup-wu.vue +519 -0
- package/uview-plus/components/u-radio/_doc/changelog.md +6 -0
- package/uview-plus/components/u-radio/_doc/package.json +88 -0
- package/uview-plus/components/u-radio/_doc/readme.md +25 -0
- package/uview-plus/components/u-row/_doc/changelog.md +8 -0
- package/uview-plus/components/u-row/_doc/package.json +86 -0
- package/uview-plus/components/u-row/_doc/readme.md +16 -0
- package/uview-plus/components/u-safe-bottom/_doc/changelog.md +6 -0
- package/uview-plus/components/u-safe-bottom/_doc/package.json +86 -0
- package/uview-plus/components/u-safe-bottom/_doc/readme.md +16 -0
- package/uview-plus/components/u-sku-wu/_doc/changelog.md +27 -0
- package/uview-plus/components/u-sku-wu/_doc/package.json +93 -0
- package/uview-plus/components/u-sku-wu/_doc/readme.md +16 -0
- package/uview-plus/components/u-sku-wu/props.js +86 -0
- package/uview-plus/components/u-sku-wu/style.css +271 -0
- package/uview-plus/components/u-sku-wu/u-sku-wu.vue +864 -0
- package/uview-plus/components/u-status-bar/_doc/changelog.md +4 -0
- package/uview-plus/components/u-status-bar/_doc/package.json +86 -0
- package/uview-plus/components/u-status-bar/_doc/readme.md +16 -0
- package/uview-plus/components/u-text/_doc/changelog.md +10 -0
- package/uview-plus/components/u-text/_doc/package.json +89 -0
- package/uview-plus/components/u-text/_doc/readme.md +20 -0
- package/uview-plus/components/u-textarea/_doc/changelog.md +6 -0
- package/uview-plus/components/u-textarea/_doc/package.json +86 -0
- package/uview-plus/components/u-textarea/_doc/readme.md +25 -0
- package/uview-plus/components/u-transition/_doc/changelog.md +14 -0
- package/uview-plus/components/u-transition/_doc/package.json +86 -0
- package/uview-plus/components/u-transition/_doc/readme.md +16 -0
- package/uview-plus/components/u-transition-wu/createAnimation.js +148 -0
- package/uview-plus/components/u-transition-wu/props.js +32 -0
- package/uview-plus/components/u-transition-wu/u-transition.vue +300 -0
- package/uview-plus/components/u-verification-code/u-verification-code.vue +161 -0
- package/uview-plus/index.js +107 -94
- package/uview-plus/libs/config/config.js +46 -48
- package/uview-plus/libs/css/color.scss +32 -311
- package/uview-plus/libs/css/components-wu.scss +30 -0
- package/uview-plus/libs/css/vue.scss +10 -10
- package/uview-plus/libs/function/calc.js +61 -55
- package/uview-plus/libs/function/cc.js +66 -0
- package/uview-plus/libs/function/color/color-convert/CHANGELOG.md +54 -0
- package/uview-plus/libs/function/color/color-convert/LICENSE +21 -0
- package/uview-plus/libs/function/color/color-convert/README.md +68 -0
- package/uview-plus/libs/function/color/color-convert/conversions.js +839 -0
- package/uview-plus/libs/function/color/color-convert/index.js +81 -0
- package/uview-plus/libs/function/color/color-convert/package.json +48 -0
- package/uview-plus/libs/function/color/color-convert/route.js +97 -0
- package/uview-plus/libs/function/color/color-name/LICENSE +8 -0
- package/uview-plus/libs/function/color/color-name/README.md +11 -0
- package/uview-plus/libs/function/color/color-name/index.js +152 -0
- package/uview-plus/libs/function/color/color-name/package.json +28 -0
- package/uview-plus/libs/function/color/color-string/LICENSE +21 -0
- package/uview-plus/libs/function/color/color-string/README.md +62 -0
- package/uview-plus/libs/function/color/color-string/index.js +244 -0
- package/uview-plus/libs/function/color/color-string/package.json +39 -0
- package/uview-plus/libs/function/color/color.js +496 -0
- package/uview-plus/libs/function/color/index.js +158 -0
- package/uview-plus/libs/function/color/is-arrayish/LICENSE +21 -0
- package/uview-plus/libs/function/color/is-arrayish/README.md +16 -0
- package/uview-plus/libs/function/color/is-arrayish/index.js +9 -0
- package/uview-plus/libs/function/color/is-arrayish/package.json +45 -0
- package/uview-plus/libs/function/color/is-arrayish/yarn-error.log +1443 -0
- package/uview-plus/libs/function/color/simple-swizzle/LICENSE +21 -0
- package/uview-plus/libs/function/color/simple-swizzle/README.md +39 -0
- package/uview-plus/libs/function/color/simple-swizzle/index.js +29 -0
- package/uview-plus/libs/function/color/simple-swizzle/package.json +36 -0
- package/uview-plus/libs/function/colorGradient.js +108 -106
- package/uview-plus/libs/function/debounce.js +17 -17
- package/uview-plus/libs/function/digit.js +1 -3
- package/uview-plus/libs/function/http.js +3 -3
- package/uview-plus/libs/function/index-wu.js +231 -0
- package/uview-plus/libs/function/index.js +579 -566
- package/uview-plus/libs/function/platform.js +18 -18
- package/uview-plus/libs/function/test.js +135 -137
- package/uview-plus/libs/function/throttle.js +17 -17
- package/uview-plus/libs/luch-request/core/Request.js +199 -199
- package/uview-plus/libs/mixin/mpMixin.js +1 -0
- package/uview-plus/libs/mixin/openType.js +33 -0
- package/uview-plus/libs/util/async-validator.js +1343 -1343
- package/uview-plus/libs/util/dayjs.js +404 -0
- package/uview-plus/libs/util/route.js +101 -105
- package/uview-plus/package-wu-tool.json +84 -0
- package/uview-plus/package-wu.json +112 -0
- package/uview-plus/package.json +106 -95
- package/uview-plus/readme-wu.md +148 -0
- package/uview-ui/index.js +51 -52
- package/plugins/uni-upgrade.js +0 -294
package/uview-plus/index.js
CHANGED
|
@@ -1,46 +1,56 @@
|
|
|
1
|
+
// 全局挂载引入http相关请求拦截插件
|
|
2
|
+
// import Request from 'luch-request';
|
|
1
3
|
// 看到此报错,是因为没有配置vite.config.js的【transpileDependencies】
|
|
2
4
|
// const pleaseSetTranspileDependencies = {}, babelTest = pleaseSetTranspileDependencies?.test
|
|
3
5
|
|
|
4
6
|
// 引入全局mixin
|
|
5
|
-
import { mixin } from './libs/mixin/mixin.js'
|
|
7
|
+
import { mixin } from './libs/mixin/mixin.js';
|
|
6
8
|
// 小程序特有的mixin
|
|
7
|
-
import { mpMixin } from './libs/mixin/mpMixin.js'
|
|
9
|
+
import { mpMixin } from './libs/mixin/mpMixin.js';
|
|
8
10
|
|
|
9
11
|
// 路由封装
|
|
10
|
-
import route from './libs/util/route.js'
|
|
12
|
+
import route from './libs/util/route.js';
|
|
11
13
|
// 颜色渐变相关,colorGradient-颜色渐变,hexToRgb-十六进制颜色转rgb颜色,rgbToHex-rgb转十六进制
|
|
12
|
-
import colorGradient from './libs/function/colorGradient.js'
|
|
14
|
+
import colorGradient from './libs/function/colorGradient.js';
|
|
13
15
|
|
|
14
16
|
// 规则检验
|
|
15
|
-
import test from './libs/function/test.js'
|
|
17
|
+
import test from './libs/function/test.js';
|
|
16
18
|
// 防抖方法
|
|
17
|
-
import debounce from './libs/function/debounce.js'
|
|
19
|
+
import debounce from './libs/function/debounce.js';
|
|
18
20
|
// 节流方法
|
|
19
|
-
import throttle from './libs/function/throttle.js'
|
|
21
|
+
import throttle from './libs/function/throttle.js';
|
|
20
22
|
// 浮点计算
|
|
21
|
-
import calc from './libs/function/calc.js'
|
|
23
|
+
import calc from './libs/function/calc.js';
|
|
22
24
|
// 公共文件写入的方法
|
|
23
|
-
import index from './libs/function/index.js'
|
|
25
|
+
import index from './libs/function/index.js';
|
|
24
26
|
|
|
25
27
|
// 配置信息
|
|
26
|
-
import config from './libs/config/config.js'
|
|
28
|
+
import config from './libs/config/config.js';
|
|
27
29
|
// props配置信息
|
|
28
|
-
import props from './libs/config/props.js'
|
|
30
|
+
import props from './libs/config/props.js';
|
|
29
31
|
// 各个需要fixed的地方的z-index配置文件
|
|
30
|
-
import zIndex from './libs/config/zIndex.js'
|
|
32
|
+
import zIndex from './libs/config/zIndex.js';
|
|
31
33
|
// 关于颜色的配置,特殊场景使用
|
|
32
|
-
import color from './libs/config/color.js'
|
|
34
|
+
import color from './libs/config/color.js';
|
|
33
35
|
// 平台
|
|
34
|
-
import platform from './libs/function/platform'
|
|
36
|
+
import platform from './libs/function/platform';
|
|
35
37
|
|
|
36
38
|
// http
|
|
37
|
-
import http from './libs/function/http.js'
|
|
39
|
+
import http from './libs/function/http.js';
|
|
40
|
+
|
|
41
|
+
// #ifdef MP
|
|
42
|
+
import { mpShare } from './libs/mixin/mpShare.js';
|
|
43
|
+
// #endif
|
|
38
44
|
|
|
39
45
|
// 导出
|
|
40
46
|
let themeType = ['primary', 'success', 'error', 'warning', 'info'];
|
|
41
|
-
export { route, http, debounce, throttle, calc, platform, themeType, mixin, mpMixin, props, color, test, zIndex }
|
|
42
|
-
export * from './libs/function/index.js'
|
|
43
|
-
export * from './libs/function/colorGradient.js'
|
|
47
|
+
export { route, http, debounce, throttle, calc, platform, themeType, mixin, mpMixin, props, color, test, zIndex };
|
|
48
|
+
export * from './libs/function/index.js';
|
|
49
|
+
export * from './libs/function/colorGradient.js';
|
|
50
|
+
/**
|
|
51
|
+
* 自定义方法
|
|
52
|
+
*/
|
|
53
|
+
import cc from './libs/function/cc.js';
|
|
44
54
|
|
|
45
55
|
/**
|
|
46
56
|
* @description 修改uView内置属性值
|
|
@@ -50,100 +60,103 @@ export * from './libs/function/colorGradient.js'
|
|
|
50
60
|
* @param {object} zIndex 修改内置zIndex属性
|
|
51
61
|
*/
|
|
52
62
|
export function setConfig(configs) {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
63
|
+
index.shallowMerge(config, configs.config || {});
|
|
64
|
+
index.shallowMerge(props, configs.props || {});
|
|
65
|
+
index.shallowMerge(color, configs.color || {});
|
|
66
|
+
index.shallowMerge(zIndex, configs.zIndex || {});
|
|
57
67
|
}
|
|
58
|
-
index.setConfig = setConfig
|
|
68
|
+
index.setConfig = setConfig;
|
|
59
69
|
|
|
60
70
|
const $u = {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
71
|
+
route,
|
|
72
|
+
date: index.timeFormat, // 另名date
|
|
73
|
+
colorGradient: colorGradient.colorGradient,
|
|
74
|
+
hexToRgb: colorGradient.hexToRgb,
|
|
75
|
+
rgbToHex: colorGradient.rgbToHex,
|
|
76
|
+
colorToRgba: colorGradient.colorToRgba,
|
|
77
|
+
test,
|
|
78
|
+
type: themeType,
|
|
79
|
+
http,
|
|
80
|
+
config, // uview-plus配置信息相关,比如版本号
|
|
81
|
+
zIndex,
|
|
82
|
+
debounce,
|
|
83
|
+
throttle,
|
|
84
|
+
calc,
|
|
85
|
+
mixin,
|
|
86
|
+
mpMixin,
|
|
87
|
+
props,
|
|
88
|
+
...index,
|
|
89
|
+
color,
|
|
90
|
+
platform,
|
|
91
|
+
...cc
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
export const mount$u = function () {
|
|
95
|
+
uni.$u = $u;
|
|
96
|
+
};
|
|
86
97
|
|
|
87
98
|
function toCamelCase(str) {
|
|
88
|
-
|
|
99
|
+
return str
|
|
100
|
+
.replace(/-([a-z])/g, function (match, group1) {
|
|
89
101
|
return group1.toUpperCase();
|
|
90
|
-
})
|
|
102
|
+
})
|
|
103
|
+
.replace(/^[a-z]/, function (match) {
|
|
91
104
|
return match.toUpperCase();
|
|
92
105
|
});
|
|
93
106
|
}
|
|
94
107
|
|
|
95
108
|
// #ifdef APP || H5
|
|
96
|
-
const importFn = import.meta.glob('./components/u-*/u-*.vue', { eager: true })
|
|
109
|
+
const importFn = import.meta.glob('./components/u-*/u-*.vue', { eager: true });
|
|
97
110
|
let components = [];
|
|
98
111
|
|
|
99
112
|
// 批量注册全局组件
|
|
100
113
|
for (const key in importFn) {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
114
|
+
let component = importFn[key].default;
|
|
115
|
+
if (component.name && component.name.indexOf('u--') !== 0) {
|
|
116
|
+
component.install = function (Vue) {
|
|
117
|
+
Vue.component(name, component);
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
// 导入组件
|
|
121
|
+
components.push(component);
|
|
122
|
+
}
|
|
110
123
|
}
|
|
111
124
|
// #endif
|
|
112
125
|
|
|
113
126
|
const install = (Vue, upuiParams = '') => {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
}
|
|
127
|
+
// #ifdef APP || H5
|
|
128
|
+
components.forEach(function (component) {
|
|
129
|
+
const name = component.name.replace(/u-([a-zA-Z0-9-_]+)/g, 'up-$1');
|
|
130
|
+
if (name != component.name) {
|
|
131
|
+
Vue.component(component.name, component);
|
|
132
|
+
}
|
|
133
|
+
Vue.component(name, component);
|
|
134
|
+
});
|
|
135
|
+
// #endif
|
|
136
|
+
|
|
137
|
+
// 初始化
|
|
138
|
+
if (upuiParams) {
|
|
139
|
+
uni.upuiParams = upuiParams;
|
|
140
|
+
let temp = upuiParams();
|
|
141
|
+
if (temp.httpIns) {
|
|
142
|
+
temp.httpIns(http);
|
|
143
|
+
}
|
|
144
|
+
if (temp.options) {
|
|
145
|
+
setConfig(temp.options);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
// 同时挂载到uni和Vue.prototype中
|
|
150
|
+
// $u挂载到uni对象上
|
|
151
|
+
uni.$u = $u;
|
|
152
|
+
|
|
153
|
+
// #ifndef APP-NVUE
|
|
154
|
+
// 只有vue,挂载到Vue.prototype才有意义,因为nvue中全局Vue.prototype和Vue.mixin是无效的
|
|
155
|
+
Vue.config.globalProperties.$u = $u;
|
|
156
|
+
Vue.mixin(mixin);
|
|
157
|
+
// #endif
|
|
158
|
+
};
|
|
146
159
|
|
|
147
160
|
export default {
|
|
148
|
-
|
|
149
|
-
}
|
|
161
|
+
install
|
|
162
|
+
};
|
|
@@ -1,54 +1,52 @@
|
|
|
1
|
-
const version = '3'
|
|
1
|
+
const version = '3';
|
|
2
2
|
|
|
3
3
|
// 开发环境才提示,生产环境不会提示
|
|
4
4
|
if (process.env.NODE_ENV === 'development') {
|
|
5
|
-
|
|
5
|
+
console.log(
|
|
6
|
+
`\n %c uview-plus V${version} %c https://ijry.github.io/uview-plus/ \n\n`,
|
|
7
|
+
'color: #ffffff; background: #3c9cff; padding:5px 0;',
|
|
8
|
+
'color: #3c9cff;background: #ffffff; padding:5px 0;'
|
|
9
|
+
);
|
|
6
10
|
}
|
|
7
11
|
|
|
8
12
|
export default {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
color:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
unit: 'px',
|
|
50
|
-
// 拦截器
|
|
51
|
-
interceptor: {
|
|
52
|
-
navbarLeftClick: null
|
|
53
|
-
}
|
|
54
|
-
}
|
|
13
|
+
v: version,
|
|
14
|
+
version,
|
|
15
|
+
// 主题名称
|
|
16
|
+
type: ['primary', 'success', 'info', 'error', 'warning'],
|
|
17
|
+
// 颜色部分,本来可以通过scss的:export导出供js使用,但是奈何nvue不支持
|
|
18
|
+
color: {
|
|
19
|
+
'u-primary': '#2979ff',
|
|
20
|
+
'u-warning': '#ff9900',
|
|
21
|
+
'u-success': '#19be6b',
|
|
22
|
+
'u-error': '#fa3534',
|
|
23
|
+
'u-info': '#909399',
|
|
24
|
+
'u-main-color': '#303133',
|
|
25
|
+
'u-content-color': '#606266',
|
|
26
|
+
'u-tips-color': '#909399',
|
|
27
|
+
'u-light-color': '#c0c4cc',
|
|
28
|
+
'up-primary': '#2979ff',
|
|
29
|
+
'up-warning': '#ff9900',
|
|
30
|
+
'up-success': '#19be6b',
|
|
31
|
+
'up-error': '#fa3534',
|
|
32
|
+
'up-info': '#909399',
|
|
33
|
+
'up-main-color': '#303133',
|
|
34
|
+
'up-content-color': '#606266',
|
|
35
|
+
'up-tips-color': '#909399',
|
|
36
|
+
'up-light-color': '#c0c4cc'
|
|
37
|
+
},
|
|
38
|
+
// 字体图标地址
|
|
39
|
+
iconUrl: 'https://at.alicdn.com/t/font_2225171_8kdcwk4po24.ttf',
|
|
40
|
+
// 自定义图标
|
|
41
|
+
customIcon: {
|
|
42
|
+
family: '',
|
|
43
|
+
url: ''
|
|
44
|
+
},
|
|
45
|
+
customIcons: {}, // 自定义图标与unicode对应关系
|
|
46
|
+
// 默认单位,可以通过配置为rpx,那么在用于传入组件大小参数为数值时,就默认为rpx
|
|
47
|
+
unit: 'px',
|
|
48
|
+
// 拦截器
|
|
49
|
+
interceptor: {
|
|
50
|
+
navbarLeftClick: null
|
|
51
|
+
}
|
|
52
|
+
};
|
|
@@ -1,311 +1,32 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
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
|
-
}
|
|
156
|
-
|
|
157
|
-
.up-primary-light {
|
|
158
|
-
color: $u-primary-light;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
.up-warning-light {
|
|
162
|
-
color: $u-warning-light;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
.up-success-light {
|
|
166
|
-
color: $u-success-light;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
.up-error-light {
|
|
170
|
-
color: $u-error-light;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
.up-info-light {
|
|
174
|
-
color: $u-info-light;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
.up-primary-light-bg {
|
|
178
|
-
background-color: $u-primary-light;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
.up-warning-light-bg {
|
|
182
|
-
background-color: $u-warning-light;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
.up-success-light-bg {
|
|
186
|
-
background-color: $u-success-light;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
.up-error-light-bg {
|
|
190
|
-
background-color: $u-error-light;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
.up-info-light-bg {
|
|
194
|
-
background-color: $u-info-light;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
.up-primary-dark {
|
|
198
|
-
color: $u-primary-dark;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
.up-warning-dark {
|
|
202
|
-
color: $u-warning-dark;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
.up-success-dark {
|
|
206
|
-
color: $u-success-dark;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
.up-error-dark {
|
|
210
|
-
color: $u-error-dark;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
.up-info-dark {
|
|
214
|
-
color: $u-info-dark;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
.up-primary-dark-bg {
|
|
218
|
-
background-color: $u-primary-dark;
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
.up-warning-dark-bg {
|
|
222
|
-
background-color: $u-warning-dark;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
.up-success-dark-bg {
|
|
226
|
-
background-color: $u-success-dark;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
.up-error-dark-bg {
|
|
230
|
-
background-color: $u-error-dark;
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
.up-info-dark-bg {
|
|
234
|
-
background-color: $u-info-dark;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
.up-primary-disabled {
|
|
238
|
-
color: $u-primary-disabled;
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
.up-warning-disabled {
|
|
242
|
-
color: $u-warning-disabled;
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
.up-success-disabled {
|
|
246
|
-
color: $u-success-disabled;
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
.up-error-disabled {
|
|
250
|
-
color: $u-error-disabled;
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
.up-info-disabled {
|
|
254
|
-
color: $u-info-disabled;
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
.up-primary {
|
|
258
|
-
color: $u-primary;
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
.up-warning {
|
|
262
|
-
color: $u-warning;
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
.up-success {
|
|
266
|
-
color: $u-success;
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
.up-error {
|
|
270
|
-
color: $u-error;
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
.up-info {
|
|
274
|
-
color: $u-info;
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
.up-primary-bg {
|
|
278
|
-
background-color: $u-primary;
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
.up-warning-bg {
|
|
282
|
-
background-color: $u-warning;
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
.up-success-bg {
|
|
286
|
-
background-color: $u-success;
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
.up-error-bg {
|
|
290
|
-
background-color: $u-error;
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
.up-info-bg {
|
|
294
|
-
background-color: $u-info;
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
.up-main-color {
|
|
298
|
-
color: $u-main-color;
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
.up-content-color {
|
|
302
|
-
color: $u-content-color;
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
.up-tips-color {
|
|
306
|
-
color: $u-tips-color;
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
.up-light-color {
|
|
310
|
-
color: $u-light-color;
|
|
311
|
-
}
|
|
1
|
+
$wu-main-color: #303133 !default;
|
|
2
|
+
$wu-content-color: #606266 !default;
|
|
3
|
+
$wu-tips-color: #909193 !default;
|
|
4
|
+
$wu-light-color: #c0c4cc !default;
|
|
5
|
+
$wu-border-color: #dadbde !default;
|
|
6
|
+
$wu-bg-color: #f3f4f6 !default;
|
|
7
|
+
$wu-disabled-color: #c8c9cc !default;
|
|
8
|
+
|
|
9
|
+
$wu-primary: #3c9cff !default;
|
|
10
|
+
$wu-primary-dark: #398ade !default;
|
|
11
|
+
$wu-primary-disabled: #9acafc !default;
|
|
12
|
+
$wu-primary-light: #ecf5ff !default;
|
|
13
|
+
|
|
14
|
+
$wu-warning: #f9ae3d !default;
|
|
15
|
+
$wu-warning-dark: #f1a532 !default;
|
|
16
|
+
$wu-warning-disabled: #f9d39b !default;
|
|
17
|
+
$wu-warning-light: #fdf6ec !default;
|
|
18
|
+
|
|
19
|
+
$wu-success: #5ac725 !default;
|
|
20
|
+
$wu-success-dark: #53c21d !default;
|
|
21
|
+
$wu-success-disabled: #a9e08f !default;
|
|
22
|
+
$wu-success-light: #f5fff0;
|
|
23
|
+
|
|
24
|
+
$wu-error: #f56c6c !default;
|
|
25
|
+
$wu-error-dark: #e45656 !default;
|
|
26
|
+
$wu-error-disabled: #f7b2b2 !default;
|
|
27
|
+
$wu-error-light: #fef0f0 !default;
|
|
28
|
+
|
|
29
|
+
$wu-info: #909399 !default;
|
|
30
|
+
$wu-info-dark: #767a82 !default;
|
|
31
|
+
$wu-info-disabled: #c4c6c9 !default;
|
|
32
|
+
$wu-info-light: #f4f4f5 !default;
|