@10yun/cv-mobile-ui 0.5.56 → 0.5.58
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/{ui-sdks → other}/qiun-data-charts/js_sdk/u-charts/config-ucharts.js +605 -605
- package/{ui-sdks → other}/qiun-data-charts/package.json +2 -1
- package/other/qiun-data-charts_2.5.0-20230101_example/App.vue +20 -0
- package/other/qiun-data-charts_2.5.0-20230101_example/common/uni-icons.css +542 -0
- package/other/qiun-data-charts_2.5.0-20230101_example/common/uni.css +246 -0
- package/other/qiun-data-charts_2.5.0-20230101_example/components/qiun-title-bar/qiun-title-bar.vue +51 -0
- package/other/qiun-data-charts_2.5.0-20230101_example/components/test-charts/test-charts.vue +48 -0
- package/other/qiun-data-charts_2.5.0-20230101_example/main.js +13 -0
- package/other/qiun-data-charts_2.5.0-20230101_example/manifest.json +75 -0
- package/other/qiun-data-charts_2.5.0-20230101_example/mockdata/demodata.json +448 -0
- package/other/qiun-data-charts_2.5.0-20230101_example/mockdata/mapdata.json +1 -0
- package/other/qiun-data-charts_2.5.0-20230101_example/pages/canvas/canvas.vue +142 -0
- package/other/qiun-data-charts_2.5.0-20230101_example/pages/echarts/echarts.vue +228 -0
- package/other/qiun-data-charts_2.5.0-20230101_example/pages/format-e/format-e.vue +113 -0
- package/other/qiun-data-charts_2.5.0-20230101_example/pages/format-u/format-u.vue +110 -0
- package/other/qiun-data-charts_2.5.0-20230101_example/pages/index/index.vue +58 -0
- package/other/qiun-data-charts_2.5.0-20230101_example/pages/layout/layout.vue +174 -0
- package/other/qiun-data-charts_2.5.0-20230101_example/pages/other/other.vue +233 -0
- package/other/qiun-data-charts_2.5.0-20230101_example/pages/tab/tab.vue +115 -0
- package/other/qiun-data-charts_2.5.0-20230101_example/pages/ucharts/ucharts.vue +339 -0
- package/other/qiun-data-charts_2.5.0-20230101_example/pages/unicloud/unicloud.vue +117 -0
- package/other/qiun-data-charts_2.5.0-20230101_example/pages/updata/updata.vue +212 -0
- package/other/qiun-data-charts_2.5.0-20230101_example/pages.json +79 -0
- package/other/qiun-data-charts_2.5.0-20230101_example/static/logo.png +0 -0
- package/other/qiun-data-charts_2.5.0-20230101_example/uni.scss +76 -0
- package/other/qiun-data-charts_2.5.0-20230101_example/uniCloud-aliyun/database/db_init.json +455 -0
- package/other/qiun-data-charts_2.5.0-20230101_example/uniCloud-aliyun/database/qiun-charts-demo.schema.json +76 -0
- package/other/{u-parse-2019 → u-parse}/components/wxParseTemplate0.vue +2 -1
- package/other/{u-parse-2019 → u-parse}/libs/html2json.js +2 -2
- package/other/{uParse → u-parse}/libs/wxDiscode.js +1 -1
- package/other/u-parse/readme.md +102 -0
- package/other/{u-parse-2019 → u-parse}/u-parse.vue +1 -6
- package/other/u-parse2026/libs/html2json.js +2 -2
- package/other/u-parse2026/libs/wxDiscode.js +1 -1
- package/other/u-parse2026/u-parse.css +1 -0
- package/other/u-parse2026/u-parse.vue +1 -3
- package/other/uParse2/components/wxParseAudio.vue +1 -0
- package/other/{uParse → uParse2}/components/wxParseImg.vue +4 -4
- package/other/{uParse → uParse2}/components/wxParseTable.vue +15 -6
- package/other/{uParse → uParse2}/components/wxParseTemplate0.vue +7 -6
- package/other/{uParse → uParse2}/components/wxParseTemplate1.vue +10 -0
- package/other/{uParse → uParse2}/libs/html2json.js +2 -2
- package/other/{u-parse-2019 → uParse2}/libs/wxDiscode.js +1 -1
- package/other/{uParse/wxParse.css → uParse2/u-parse.css} +4 -4
- package/other/{uParse/wxParse.vue → uParse2/u-parse.vue} +18 -11
- package/other/uParse2/u-parse2.css +264 -0
- package/package.json +1 -1
- package/ui-cv/components/cv-dialog-bottom/cv-dialog-bottom.vue +35 -58
- package/ui-cv/components/cv-dialog-full/cv-dialog-full.vue +55 -62
- package/ui-cv/components/cv-dialog-share/cv-dialog-share.vue +7 -7
- package/ui-cv/components/cv-dialog-share/share.vue +1 -10
- package/ui-cv/components/cv-dialog-share/tui-share.vue +2 -2
- package/ui-cv/components/cv-filter-hm/cv-filter-hm.vue +8 -6
- package/ui-cv/components/cv-geo-local/cv-geo-local.vue +1 -1
- package/ui-cv/components/cv-icons/cv-icons.vue +29 -62
- package/ui-cv/components/cv-icons/iconfont/font-default-icons.js +127 -131
- package/ui-cv/components/cv-input-password/cv-input-password.vue +1 -1
- package/ui-cv/components/cv-mask-svg/cv-mask-svg.vue +1 -1
- package/ui-cv/components/cv-mask-svg/mixins.js +16 -12
- package/ui-cv/components/cv-upload-image/cv-upload-image.vue +4 -4
- package/ui-cv/components/cv-upload-image/demo.vue +1 -1
- package/ui-fireui/components/u-share-model/u-share-model.vue +1 -1
- package/ui-fireui/components/u-uploadsamll/u-uploadsamll.vue +1 -1
- package/uview-plus/components/u-button/props-old.js +159 -0
- package/uview-plus/components/u-button/props.js +7 -0
- package/uview-plus/components/u-button/u-button-old.vue +476 -0
- package/uview-plus/components/u-button/u-button-wu.vue +13 -10
- package/uview-plus/components/u-button/u-button.vue +47 -14
- package/uview-plus/components/u-form/form.js +13 -12
- package/uview-plus/components/u-parse/README.md +192 -0
- package/uview-plus/components/u-parse/changelog.md +163 -0
- package/uview-plus/components/u-parse/node/node.vue +37 -3
- package/{uni-ui/lib/uni-breadcrumb → uview-plus/components/u-parse}/package.json +24 -29
- package/uview-plus/components/u-parse/parser.js +8 -3
- package/uview-plus/components/u-parse/static/app-plus/up-parse/js/handler.js +1 -0
- package/uview-plus/components/u-parse/static/app-plus/up-parse/local-2.5.2.html +29 -0
- package/uview-plus/components/u-parse/u-parse.vue +29 -1
- package/uview-plus/components/u-upload/file.js +186 -0
- package/uview-plus/components/u-upload/props-old.js +176 -0
- package/uview-plus/components/u-upload/props.js +12 -0
- package/uview-plus/components/u-upload/u-upload.vue +100 -15
- package/uview-plus/components/u-upload/u-upload2.vue +854 -0
- package/uview-plus/libs/mixin/openType.js +35 -0
- package/other/lime-painter2/README2.md +0 -576
- package/other/lime-painter2/changelog.md +0 -225
- package/other/lime-painter2/package.json +0 -93
- package/other/lime-painter2/readme.md +0 -758
- package/other/lime-painter2/test.md +0 -45
- package/other/qiun-data-charts/qiun-data-charts.vue +0 -1618
- package/other/u-parse-2019/readme.md +0 -99
- package/other/uParse/components/style.css +0 -1
- package/other/uParse/components/wxParseAudio.vue +0 -1
- package/other/xt-parse/changelog.md +0 -41
- package/other/xt-parse/node/node.vue +0 -752
- package/other/xt-parse/package.json +0 -129
- package/other/xt-parse/parser.js +0 -1461
- package/other/xt-parse/props.js +0 -49
- package/other/xt-parse/readme.md +0 -145
- package/other/xt-parse/static/app-plus/u-parse/js/handler.js +0 -1
- package/other/xt-parse/u-parse.vue +0 -510
- package/plugins/luch-request/adapters/index.js +0 -131
- package/plugins/luch-request/core/InterceptorManager.js +0 -50
- package/plugins/luch-request/core/Request.js +0 -199
- package/plugins/luch-request/core/buildFullPath.js +0 -20
- package/plugins/luch-request/core/defaults.js +0 -32
- package/plugins/luch-request/core/dispatchRequest.js +0 -5
- package/plugins/luch-request/core/mergeConfig.js +0 -125
- package/plugins/luch-request/core/settle.js +0 -16
- package/plugins/luch-request/helpers/buildURL.js +0 -71
- package/plugins/luch-request/helpers/combineURLs.js +0 -12
- package/plugins/luch-request/helpers/isAbsoluteURL.js +0 -14
- package/plugins/luch-request/index.d.ts +0 -197
- package/plugins/luch-request/index.js +0 -2
- package/plugins/luch-request/readme.md +0 -3
- package/plugins/luch-request/utils/clone.js +0 -260
- package/plugins/luch-request/utils.js +0 -131
- package/ui-cv/components/cv-cell-row/cv-cell-row.vue +0 -220
- package/ui-cv/components/cv-dialog-share/uni-popup-share.vue +0 -139
- package/ui-cv/components/cv-icons/iconfont/font-action-icons.js +0 -73
- package/ui-cv/components/cv-icons/iconfont/font-action.css +0 -7
- package/ui-cv/components/cv-icons/iconfont/font-action.js +0 -5
- package/ui-cv/components/cv-icons/iconfont/font-arrow-icons.js +0 -47
- package/ui-cv/components/cv-icons/iconfont/font-arrow.css +0 -6
- package/ui-cv/components/cv-icons/iconfont/font-arrow.js +0 -5
- package/ui-cv/components/cv-icons/iconfont/font-base-icons.js +0 -92
- package/ui-cv/components/cv-icons/iconfont/font-base.css +0 -6
- package/ui-cv/components/cv-icons/iconfont/font-base.js +0 -5
- package/ui-cv/components/cv-icons/iconfont/font-mall-icons.js +0 -35
- package/ui-cv/components/cv-icons/iconfont/font-mall.css +0 -7
- package/ui-cv/components/cv-icons/iconfont/font-mall.js +0 -5
- package/ui-cv/components/cv-icons/iconfont/font-media-icons.js +0 -45
- package/ui-cv/components/cv-icons/iconfont/font-media.css +0 -7
- package/ui-cv/components/cv-icons/iconfont/font-media.js +0 -5
- package/ui-cv/components/cv-icons/iconfont/font-order-icons.js +0 -34
- package/ui-cv/components/cv-icons/iconfont/font-order.css +0 -6
- package/ui-cv/components/cv-icons/iconfont/font-order.js +0 -5
- package/ui-cv/components/cv-icons/iconfont/font-people-icons.js +0 -49
- package/ui-cv/components/cv-icons/iconfont/font-people.css +0 -7
- package/ui-cv/components/cv-icons/iconfont/font-people.js +0 -5
- package/ui-cv/components/cv-icons/iconfont/font-status-icons.js +0 -34
- package/ui-cv/components/cv-icons/iconfont/font-status.css +0 -6
- package/ui-cv/components/cv-icons/iconfont/font-status.js +0 -5
- package/ui-cv/components/cv-icons/iconfont/font-wallet-icons.js +0 -17
- package/ui-cv/components/cv-icons/iconfont/font-wallet.css +0 -6
- package/ui-cv/components/cv-icons/iconfont/font-wallet.js +0 -5
- package/ui-cv/components/cv-icons/icons/default-icons.js +0 -132
- package/ui-cv/components/cv-icons/icons/icons-action.js +0 -72
- package/ui-cv/components/cv-icons/icons/icons-arrow.js +0 -46
- package/ui-cv/components/cv-icons/icons/icons-base.js +0 -89
- package/ui-cv/components/cv-icons/icons/icons-mall.js +0 -34
- package/ui-cv/components/cv-icons/icons/icons-media.js +0 -44
- package/ui-cv/components/cv-icons/icons/icons-order.js +0 -33
- package/ui-cv/components/cv-icons/icons/icons-people.js +0 -46
- package/ui-cv/components/cv-icons/icons/icons-status.js +0 -32
- package/ui-cv/components/cv-icons/icons/icons-wallet.js +0 -15
- package/ui-sdks/sdk-app-update/img/logo.png +0 -0
- package/ui-sdks/sdk-app-update/img/update_bg.png +0 -0
- package/ui-sdks/sdk-app-update/img/update_bg_top.png +0 -0
- package/ui-sdks/sdk-app-update/sdk-app-update.vue +0 -396
- package/ui-sdks/sdk-app-update/xxxx +0 -62
- package/ui-sdks/sdk-privacy-policy/sdk-privacy-policy.vue +0 -113
- package/ui-sdks/sdk-u-charts/config-echarts.js +0 -420
- package/ui-sdks/sdk-u-charts/config-ucharts.js +0 -630
- package/ui-sdks/sdk-u-charts/u-charts.js +0 -7398
- package/ui-sdks/sdk-u-charts/u-charts.min.js +0 -1
- package/ui-sdks/sdk-webview-main/WebViewMain.vue +0 -1
- package/ui-sdks/sdk-webview-main/main.js +0 -0
- package/ui-sdks/sdk-webview-main/mixin.js +0 -0
- package/uni-ui/lib/uni-badge/changelog.md +0 -33
- package/uni-ui/lib/uni-badge/package.json +0 -107
- package/uni-ui/lib/uni-badge/readme.md +0 -8
- package/uni-ui/lib/uni-breadcrumb/changelog.md +0 -6
- package/uni-ui/lib/uni-breadcrumb/readme.md +0 -66
- package/uni-ui/lib/uni-calendar/changelog.md +0 -30
- package/uni-ui/lib/uni-calendar/package.json +0 -105
- package/uni-ui/lib/uni-calendar/readme.md +0 -103
- package/uni-ui/lib/uni-card/changelog.md +0 -26
- package/uni-ui/lib/uni-card/package.json +0 -107
- package/uni-ui/lib/uni-card/readme.md +0 -10
- package/uni-ui/lib/uni-collapse/changelog.md +0 -48
- package/uni-ui/lib/uni-collapse/package.json +0 -106
- package/uni-ui/lib/uni-collapse/readme.md +0 -11
- package/uni-ui/lib/uni-combox/changelog.md +0 -17
- package/uni-ui/lib/uni-combox/package.json +0 -107
- package/uni-ui/lib/uni-combox/readme.md +0 -10
- package/uni-ui/lib/uni-countdown/changelog.md +0 -30
- package/uni-ui/lib/uni-countdown/package.json +0 -105
- package/uni-ui/lib/uni-countdown/readme.md +0 -9
- package/uni-ui/lib/uni-data-checkbox/changelog.md +0 -51
- package/uni-ui/lib/uni-data-checkbox/package.json +0 -107
- package/uni-ui/lib/uni-data-checkbox/readme.md +0 -17
- package/uni-ui/lib/uni-data-picker/changelog.md +0 -81
- package/uni-ui/lib/uni-data-picker/package.json +0 -109
- package/uni-ui/lib/uni-data-picker/readme.md +0 -21
- package/uni-ui/lib/uni-data-select/changelog.md +0 -51
- package/uni-ui/lib/uni-data-select/package.json +0 -106
- package/uni-ui/lib/uni-data-select/readme.md +0 -7
- package/uni-ui/lib/uni-dateformat/changelog.md +0 -10
- package/uni-ui/lib/uni-dateformat/package.json +0 -107
- package/uni-ui/lib/uni-dateformat/readme.md +0 -10
- package/uni-ui/lib/uni-datetime-picker/changelog.md +0 -177
- package/uni-ui/lib/uni-datetime-picker/package.json +0 -107
- package/uni-ui/lib/uni-datetime-picker/readme.md +0 -20
- package/uni-ui/lib/uni-drawer/changelog.md +0 -13
- package/uni-ui/lib/uni-drawer/package.json +0 -106
- package/uni-ui/lib/uni-drawer/readme.md +0 -9
- package/uni-ui/lib/uni-easyinput/changelog.md +0 -121
- package/uni-ui/lib/uni-easyinput/package.json +0 -107
- package/uni-ui/lib/uni-easyinput/readme.md +0 -10
- package/uni-ui/lib/uni-fab/changelog.md +0 -25
- package/uni-ui/lib/uni-fab/package.json +0 -107
- package/uni-ui/lib/uni-fab/readme.md +0 -8
- package/uni-ui/lib/uni-fav/changelog.md +0 -19
- package/uni-ui/lib/uni-fav/package.json +0 -106
- package/uni-ui/lib/uni-fav/readme.md +0 -9
- package/uni-ui/lib/uni-file-picker/changelog.md +0 -91
- package/uni-ui/lib/uni-file-picker/package.json +0 -105
- package/uni-ui/lib/uni-file-picker/readme.md +0 -10
- package/uni-ui/lib/uni-forms/changelog.md +0 -100
- package/uni-ui/lib/uni-forms/package.json +0 -107
- package/uni-ui/lib/uni-forms/readme.md +0 -22
- package/uni-ui/lib/uni-goods-nav/changelog.md +0 -18
- package/uni-ui/lib/uni-goods-nav/package.json +0 -105
- package/uni-ui/lib/uni-goods-nav/readme.md +0 -9
- package/uni-ui/lib/uni-grid/changelog.md +0 -13
- package/uni-ui/lib/uni-grid/package.json +0 -106
- package/uni-ui/lib/uni-grid/readme.md +0 -10
- package/uni-ui/lib/uni-group/changelog.md +0 -16
- package/uni-ui/lib/uni-group/package.json +0 -106
- package/uni-ui/lib/uni-group/readme.md +0 -8
- package/uni-ui/lib/uni-icons/changelog.md +0 -44
- package/uni-ui/lib/uni-icons/package.json +0 -111
- package/uni-ui/lib/uni-icons/readme.md +0 -7
- package/uni-ui/lib/uni-indexed-list/changelog.md +0 -19
- package/uni-ui/lib/uni-indexed-list/package.json +0 -107
- package/uni-ui/lib/uni-indexed-list/readme.md +0 -10
- package/uni-ui/lib/uni-link/changelog.md +0 -17
- package/uni-ui/lib/uni-link/package.json +0 -106
- package/uni-ui/lib/uni-link/readme.md +0 -10
- package/uni-ui/lib/uni-list/changelog.md +0 -52
- package/uni-ui/lib/uni-list/package.json +0 -108
- package/uni-ui/lib/uni-list/readme.md +0 -44
- package/uni-ui/lib/uni-load-more/changelog.md +0 -27
- package/uni-ui/lib/uni-load-more/package.json +0 -105
- package/uni-ui/lib/uni-load-more/readme.md +0 -12
- package/uni-ui/lib/uni-nav-bar/changelog.md +0 -64
- package/uni-ui/lib/uni-nav-bar/package.json +0 -106
- package/uni-ui/lib/uni-nav-bar/readme.md +0 -13
- package/uni-ui/lib/uni-notice-bar/changelog.md +0 -22
- package/uni-ui/lib/uni-notice-bar/package.json +0 -107
- package/uni-ui/lib/uni-notice-bar/readme.md +0 -11
- package/uni-ui/lib/uni-number-box/changelog.md +0 -39
- package/uni-ui/lib/uni-number-box/package.json +0 -104
- package/uni-ui/lib/uni-number-box/readme.md +0 -11
- package/uni-ui/lib/uni-pagination/changelog.md +0 -27
- package/uni-ui/lib/uni-pagination/package.json +0 -106
- package/uni-ui/lib/uni-pagination/readme.md +0 -10
- package/uni-ui/lib/uni-popup/changelog.md +0 -102
- package/uni-ui/lib/uni-popup/package.json +0 -107
- package/uni-ui/lib/uni-popup/readme.md +0 -15
- package/uni-ui/lib/uni-rate/changelog.md +0 -27
- package/uni-ui/lib/uni-rate/package.json +0 -106
- package/uni-ui/lib/uni-rate/readme.md +0 -11
- package/uni-ui/lib/uni-row/changelog.md +0 -10
- package/uni-ui/lib/uni-row/package.json +0 -106
- package/uni-ui/lib/uni-row/readme.md +0 -9
- package/uni-ui/lib/uni-scss/changelog.md +0 -8
- package/uni-ui/lib/uni-scss/package.json +0 -99
- package/uni-ui/lib/uni-scss/readme.md +0 -3
- package/uni-ui/lib/uni-search-bar/changelog.md +0 -47
- package/uni-ui/lib/uni-search-bar/package.json +0 -106
- package/uni-ui/lib/uni-search-bar/readme.md +0 -12
- package/uni-ui/lib/uni-section/changelog.md +0 -2
- package/uni-ui/lib/uni-section/package.json +0 -104
- package/uni-ui/lib/uni-section/readme.md +0 -7
- package/uni-ui/lib/uni-segmented-control/changelog.md +0 -15
- package/uni-ui/lib/uni-segmented-control/package.json +0 -106
- package/uni-ui/lib/uni-segmented-control/readme.md +0 -11
- package/uni-ui/lib/uni-steps/changelog.md +0 -18
- package/uni-ui/lib/uni-steps/package.json +0 -106
- package/uni-ui/lib/uni-steps/readme.md +0 -11
- package/uni-ui/lib/uni-swipe-action/changelog.md +0 -60
- package/uni-ui/lib/uni-swipe-action/package.json +0 -113
- package/uni-ui/lib/uni-swipe-action/readme.md +0 -10
- package/uni-ui/lib/uni-swiper-dot/changelog.md +0 -12
- package/uni-ui/lib/uni-swiper-dot/package.json +0 -106
- package/uni-ui/lib/uni-swiper-dot/readme.md +0 -10
- package/uni-ui/lib/uni-table/changelog.md +0 -35
- package/uni-ui/lib/uni-table/package.json +0 -106
- package/uni-ui/lib/uni-table/readme.md +0 -11
- package/uni-ui/lib/uni-tag/changelog.md +0 -25
- package/uni-ui/lib/uni-tag/package.json +0 -106
- package/uni-ui/lib/uni-tag/readme.md +0 -11
- package/uni-ui/lib/uni-title/changelog.md +0 -10
- package/uni-ui/lib/uni-title/package.json +0 -107
- package/uni-ui/lib/uni-title/readme.md +0 -12
- package/uni-ui/lib/uni-tooltip/changelog.md +0 -16
- package/uni-ui/lib/uni-tooltip/package.json +0 -104
- package/uni-ui/lib/uni-tooltip/readme.md +0 -7
- package/uni-ui/lib/uni-transition/changelog.md +0 -31
- package/uni-ui/lib/uni-transition/package.json +0 -112
- package/uni-ui/lib/uni-transition/readme.md +0 -10
- package/uni-ui/lib/uni-ui/changelog.md +0 -639
- package/uni-ui/lib/uni-ui/package.json +0 -148
- package/uni-ui/lib/uni-ui/readme.md +0 -247
- package/uview-plus/libs/mixin/openType2.js +0 -60
- /package/other/{lime-painter2/components/lime-painter → lime-painter/components/lime-painter2}/canvas.js +0 -0
- /package/other/{lime-painter2/components/lime-painter → lime-painter/components/lime-painter2}/draw.js +0 -0
- /package/other/{lime-painter2/components/lime-painter → lime-painter/components/lime-painter2}/draw2.js +0 -0
- /package/other/{lime-painter2/components/lime-painter → lime-painter/components/lime-painter2}/gradient.js +0 -0
- /package/other/{lime-painter2/components/lime-painter → lime-painter/components/lime-painter2}/index.vue +0 -0
- /package/other/{lime-painter2/components/lime-painter → lime-painter/components/lime-painter2}/index2.vue +0 -0
- /package/other/{lime-painter2/components/lime-painter → lime-painter/components/lime-painter2}/layout.js +0 -0
- /package/other/{lime-painter2/components/lime-painter → lime-painter/components/lime-painter2}/qrcode.js +0 -0
- /package/other/{lime-painter2/components/lime-painter → lime-painter/components/lime-painter2}/utils.js +0 -0
- /package/{ui-sdks → other}/qiun-data-charts/changelog.md +0 -0
- /package/{ui-sdks → other}/qiun-data-charts/components/qiun-data-charts/qiun-data-charts.vue +0 -0
- /package/{ui-sdks → other}/qiun-data-charts/components/qiun-error/qiun-error.vue +0 -0
- /package/{ui-sdks → other}/qiun-data-charts/components/qiun-loading/loading1.vue +0 -0
- /package/{ui-sdks → other}/qiun-data-charts/components/qiun-loading/loading2.vue +0 -0
- /package/{ui-sdks → other}/qiun-data-charts/components/qiun-loading/loading3.vue +0 -0
- /package/{ui-sdks → other}/qiun-data-charts/components/qiun-loading/loading4.vue +0 -0
- /package/{ui-sdks → other}/qiun-data-charts/components/qiun-loading/loading5.vue +0 -0
- /package/{ui-sdks → other}/qiun-data-charts/components/qiun-loading/qiun-loading.vue +0 -0
- /package/{ui-sdks → other}/qiun-data-charts/js_sdk/u-charts/config-echarts.js +0 -0
- /package/{ui-sdks → other}/qiun-data-charts/js_sdk/u-charts/readme.md +0 -0
- /package/{ui-sdks → other}/qiun-data-charts/js_sdk/u-charts/u-charts.js +0 -0
- /package/{ui-sdks → other}/qiun-data-charts/js_sdk/u-charts/u-charts.min.js +0 -0
- /package/{ui-sdks/sdk-u-charts → other/qiun-data-charts/js_sdk2}/app-echarts.min.js +0 -0
- /package/{ui-sdks/sdk-u-charts → other/qiun-data-charts/js_sdk2}/h5-echarts.min.js +0 -0
- /package/{ui-sdks → other}/qiun-data-charts/license.md +0 -0
- /package/{ui-sdks → other}/qiun-data-charts/readme.md +0 -0
- /package/{ui-sdks → other}/qiun-data-charts/static/app-plus/echarts.min.js +0 -0
- /package/{ui-sdks → other}/qiun-data-charts/static/h5/echarts.min.js +0 -0
- /package/{ui-sdks → other}/tui-clipboard/tui-clipboard.js +0 -0
- /package/other/{u-parse-2019 → u-parse}/components/wxParseAudio.vue +0 -0
- /package/other/{u-parse-2019 → u-parse}/components/wxParseImg.vue +0 -0
- /package/other/{u-parse-2019 → u-parse}/components/wxParseTemplate1.vue +0 -0
- /package/other/{u-parse-2019 → u-parse}/components/wxParseTemplate10.vue +0 -0
- /package/other/{u-parse-2019 → u-parse}/components/wxParseTemplate11.vue +0 -0
- /package/other/{u-parse-2019 → u-parse}/components/wxParseTemplate2.vue +0 -0
- /package/other/{u-parse-2019 → u-parse}/components/wxParseTemplate3.vue +0 -0
- /package/other/{u-parse-2019 → u-parse}/components/wxParseTemplate4.vue +0 -0
- /package/other/{u-parse-2019 → u-parse}/components/wxParseTemplate5.vue +0 -0
- /package/other/{u-parse-2019 → u-parse}/components/wxParseTemplate6.vue +0 -0
- /package/other/{u-parse-2019 → u-parse}/components/wxParseTemplate7.vue +0 -0
- /package/other/{u-parse-2019 → u-parse}/components/wxParseTemplate8.vue +0 -0
- /package/other/{u-parse-2019 → u-parse}/components/wxParseTemplate9.vue +0 -0
- /package/other/{u-parse-2019 → u-parse}/components/wxParseVideo.vue +0 -0
- /package/other/{u-parse-2019 → u-parse}/libs/htmlparser.js +0 -0
- /package/other/{u-parse-2019 → u-parse}/u-parse.css +0 -0
- /package/other/{uParse → uParse2}/components/wxParseTemplate10.vue +0 -0
- /package/other/{uParse → uParse2}/components/wxParseTemplate11.vue +0 -0
- /package/other/{uParse → uParse2}/components/wxParseTemplate2.vue +0 -0
- /package/other/{uParse → uParse2}/components/wxParseTemplate3.vue +0 -0
- /package/other/{uParse → uParse2}/components/wxParseTemplate4.vue +0 -0
- /package/other/{uParse → uParse2}/components/wxParseTemplate5.vue +0 -0
- /package/other/{uParse → uParse2}/components/wxParseTemplate6.vue +0 -0
- /package/other/{uParse → uParse2}/components/wxParseTemplate7.vue +0 -0
- /package/other/{uParse → uParse2}/components/wxParseTemplate8.vue +0 -0
- /package/other/{uParse → uParse2}/components/wxParseTemplate9.vue +0 -0
- /package/other/{uParse → uParse2}/components/wxParseVideo.vue +0 -0
- /package/other/{uParse → uParse2}/editor.css +0 -0
- /package/other/{uParse → uParse2}/libs/htmlparser.js +0 -0
- /package/{other/xt-parse/static/app-plus/u-parse → uview-plus/components/u-parse/static/app-plus/up-parse}/js/handler2.js +0 -0
- /package/{other/xt-parse/static/app-plus/u-parse → uview-plus/components/u-parse/static/app-plus/up-parse}/js/uni.webview.min.js +0 -0
- /package/{other/xt-parse/static/app-plus/u-parse → uview-plus/components/u-parse/static/app-plus/up-parse}/js/uni.webview.min2.js +0 -0
- /package/{other/xt-parse/static/app-plus/u-parse → uview-plus/components/u-parse/static/app-plus/up-parse}/local.html +0 -0
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import { defineMixin } from '../../libs/vue';
|
|
2
|
+
import defProps from '../../libs/config/props.js';
|
|
3
|
+
export const props = defineMixin({
|
|
4
|
+
props: {
|
|
5
|
+
// 是否细边框
|
|
6
|
+
hairline: {
|
|
7
|
+
type: Boolean,
|
|
8
|
+
default: () => defProps.button.hairline
|
|
9
|
+
},
|
|
10
|
+
// 按钮的预置样式,info,primary,error,warning,success
|
|
11
|
+
type: {
|
|
12
|
+
type: String,
|
|
13
|
+
default: () => defProps.button.type
|
|
14
|
+
},
|
|
15
|
+
// 按钮尺寸,large,normal,small,mini
|
|
16
|
+
size: {
|
|
17
|
+
type: String,
|
|
18
|
+
default: () => defProps.button.size
|
|
19
|
+
},
|
|
20
|
+
// 按钮形状,circle(两边为半圆),square(带圆角)
|
|
21
|
+
shape: {
|
|
22
|
+
type: String,
|
|
23
|
+
default: () => defProps.button.shape
|
|
24
|
+
},
|
|
25
|
+
// 按钮是否镂空
|
|
26
|
+
plain: {
|
|
27
|
+
type: Boolean,
|
|
28
|
+
default: () => defProps.button.plain
|
|
29
|
+
},
|
|
30
|
+
// 是否禁止状态
|
|
31
|
+
disabled: {
|
|
32
|
+
type: Boolean,
|
|
33
|
+
default: () => defProps.button.disabled
|
|
34
|
+
},
|
|
35
|
+
// 是否加载中
|
|
36
|
+
loading: {
|
|
37
|
+
type: Boolean,
|
|
38
|
+
default: () => defProps.button.loading
|
|
39
|
+
},
|
|
40
|
+
// 加载中提示文字
|
|
41
|
+
loadingText: {
|
|
42
|
+
type: [String, Number],
|
|
43
|
+
default: () => defProps.button.loadingText
|
|
44
|
+
},
|
|
45
|
+
// 加载状态图标类型
|
|
46
|
+
loadingMode: {
|
|
47
|
+
type: String,
|
|
48
|
+
default: () => defProps.button.loadingMode
|
|
49
|
+
},
|
|
50
|
+
// 加载图标大小
|
|
51
|
+
loadingSize: {
|
|
52
|
+
type: [String, Number],
|
|
53
|
+
default: () => defProps.button.loadingSize
|
|
54
|
+
},
|
|
55
|
+
// 开放能力,具体请看uniapp稳定关于button组件部分说明
|
|
56
|
+
// https://uniapp.dcloud.io/component/button
|
|
57
|
+
openType: {
|
|
58
|
+
type: String,
|
|
59
|
+
default: () => defProps.button.openType
|
|
60
|
+
},
|
|
61
|
+
// 用于 <form> 组件,点击分别会触发 <form> 组件的 submit/reset 事件
|
|
62
|
+
// 取值为submit(提交表单),reset(重置表单)
|
|
63
|
+
formType: {
|
|
64
|
+
type: String,
|
|
65
|
+
default: () => defProps.button.formType
|
|
66
|
+
},
|
|
67
|
+
// 打开 APP 时,向 APP 传递的参数,open-type=launchApp时有效
|
|
68
|
+
// 只微信小程序、QQ小程序有效
|
|
69
|
+
appParameter: {
|
|
70
|
+
type: String,
|
|
71
|
+
default: () => defProps.button.appParameter
|
|
72
|
+
},
|
|
73
|
+
// 指定是否阻止本节点的祖先节点出现点击态,微信小程序有效
|
|
74
|
+
hoverStopPropagation: {
|
|
75
|
+
type: Boolean,
|
|
76
|
+
default: () => defProps.button.hoverStopPropagation
|
|
77
|
+
},
|
|
78
|
+
// 指定返回用户信息的语言,zh_CN 简体中文,zh_TW 繁体中文,en 英文。只微信小程序有效
|
|
79
|
+
lang: {
|
|
80
|
+
type: String,
|
|
81
|
+
default: () => defProps.button.lang
|
|
82
|
+
},
|
|
83
|
+
// 会话来源,open-type="contact"时有效。只微信小程序有效
|
|
84
|
+
sessionFrom: {
|
|
85
|
+
type: String,
|
|
86
|
+
default: () => defProps.button.sessionFrom
|
|
87
|
+
},
|
|
88
|
+
// 会话内消息卡片标题,open-type="contact"时有效
|
|
89
|
+
// 默认当前标题,只微信小程序有效
|
|
90
|
+
sendMessageTitle: {
|
|
91
|
+
type: String,
|
|
92
|
+
default: () => defProps.button.sendMessageTitle
|
|
93
|
+
},
|
|
94
|
+
// 会话内消息卡片点击跳转小程序路径,open-type="contact"时有效
|
|
95
|
+
// 默认当前分享路径,只微信小程序有效
|
|
96
|
+
sendMessagePath: {
|
|
97
|
+
type: String,
|
|
98
|
+
default: () => defProps.button.sendMessagePath
|
|
99
|
+
},
|
|
100
|
+
// 会话内消息卡片图片,open-type="contact"时有效
|
|
101
|
+
// 默认当前页面截图,只微信小程序有效
|
|
102
|
+
sendMessageImg: {
|
|
103
|
+
type: String,
|
|
104
|
+
default: () => defProps.button.sendMessageImg
|
|
105
|
+
},
|
|
106
|
+
// 是否显示会话内消息卡片,设置此参数为 true,用户进入客服会话会在右下角显示"可能要发送的小程序"提示,
|
|
107
|
+
// 用户点击后可以快速发送小程序消息,open-type="contact"时有效
|
|
108
|
+
showMessageCard: {
|
|
109
|
+
type: Boolean,
|
|
110
|
+
default: () => defProps.button.showMessageCard
|
|
111
|
+
},
|
|
112
|
+
// 额外传参参数,用于小程序的data-xxx属性,通过target.dataset.name获取
|
|
113
|
+
dataName: {
|
|
114
|
+
type: String,
|
|
115
|
+
default: () => defProps.button.dataName
|
|
116
|
+
},
|
|
117
|
+
// 节流,一定时间内只能触发一次
|
|
118
|
+
throttleTime: {
|
|
119
|
+
type: [String, Number],
|
|
120
|
+
default: () => defProps.button.throttleTime
|
|
121
|
+
},
|
|
122
|
+
// 按住后多久出现点击态,单位毫秒
|
|
123
|
+
hoverStartTime: {
|
|
124
|
+
type: [String, Number],
|
|
125
|
+
default: () => defProps.button.hoverStartTime
|
|
126
|
+
},
|
|
127
|
+
// 手指松开后点击态保留时间,单位毫秒
|
|
128
|
+
hoverStayTime: {
|
|
129
|
+
type: [String, Number],
|
|
130
|
+
default: () => defProps.button.hoverStayTime
|
|
131
|
+
},
|
|
132
|
+
// 按钮文字,之所以通过props传入,是因为slot传入的话
|
|
133
|
+
// nvue中无法控制文字的样式
|
|
134
|
+
text: {
|
|
135
|
+
type: [String, Number],
|
|
136
|
+
default: () => defProps.button.text
|
|
137
|
+
},
|
|
138
|
+
// 按钮图标
|
|
139
|
+
icon: {
|
|
140
|
+
type: String,
|
|
141
|
+
default: () => defProps.button.icon
|
|
142
|
+
},
|
|
143
|
+
// 按钮图标
|
|
144
|
+
iconColor: {
|
|
145
|
+
type: String,
|
|
146
|
+
default: () => defProps.button.icon
|
|
147
|
+
},
|
|
148
|
+
// 按钮颜色,支持传入linear-gradient渐变色
|
|
149
|
+
color: {
|
|
150
|
+
type: String,
|
|
151
|
+
default: () => defProps.button.color
|
|
152
|
+
},
|
|
153
|
+
// 停止冒泡
|
|
154
|
+
stop: {
|
|
155
|
+
type: Boolean,
|
|
156
|
+
default: () => defProps.button.stop
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
});
|
|
@@ -2,6 +2,13 @@ import { defineMixin } from '../../libs/vue';
|
|
|
2
2
|
import defProps from '../../libs/config/props.js';
|
|
3
3
|
export const props = defineMixin({
|
|
4
4
|
props: {
|
|
5
|
+
/**
|
|
6
|
+
* 自动加载禁用
|
|
7
|
+
*/
|
|
8
|
+
autoLoading: {
|
|
9
|
+
type: Boolean,
|
|
10
|
+
default: false
|
|
11
|
+
},
|
|
5
12
|
// 是否细边框
|
|
6
13
|
hairline: {
|
|
7
14
|
type: Boolean,
|
|
@@ -0,0 +1,476 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<!-- #ifndef APP-NVUE -->
|
|
3
|
+
<button
|
|
4
|
+
:hover-start-time="Number(hoverStartTime)"
|
|
5
|
+
:hover-stay-time="Number(hoverStayTime)"
|
|
6
|
+
:form-type="formType"
|
|
7
|
+
:open-type="openType"
|
|
8
|
+
:app-parameter="appParameter"
|
|
9
|
+
:hover-stop-propagation="hoverStopPropagation"
|
|
10
|
+
:send-message-title="sendMessageTitle"
|
|
11
|
+
:send-message-path="sendMessagePath"
|
|
12
|
+
:lang="lang"
|
|
13
|
+
:data-name="dataName"
|
|
14
|
+
:session-from="sessionFrom"
|
|
15
|
+
:send-message-img="sendMessageImg"
|
|
16
|
+
:show-message-card="showMessageCard"
|
|
17
|
+
@getphonenumber="getphonenumber"
|
|
18
|
+
@getuserinfo="getuserinfo"
|
|
19
|
+
@error="error"
|
|
20
|
+
@opensetting="opensetting"
|
|
21
|
+
@launchapp="launchapp"
|
|
22
|
+
@agreeprivacyauthorization="agreeprivacyauthorization"
|
|
23
|
+
:hover-class="!disabled && !loading ? 'u-button--active' : ''"
|
|
24
|
+
class="u-button u-reset-button"
|
|
25
|
+
:style="[baseColor, addStyle(customStyle)]"
|
|
26
|
+
@tap="clickHandler"
|
|
27
|
+
:class="bemClass"
|
|
28
|
+
>
|
|
29
|
+
<template v-if="loading">
|
|
30
|
+
<up-loading-icon :mode="loadingMode" :size="loadingSize * 1.15" :color="loadingColor"></up-loading-icon>
|
|
31
|
+
<text class="u-button__loading-text" :style="[{ fontSize: textSize + 'px' }]">{{ loadingText || text }}</text>
|
|
32
|
+
</template>
|
|
33
|
+
<template v-else>
|
|
34
|
+
<up-icon
|
|
35
|
+
v-if="icon"
|
|
36
|
+
:name="icon"
|
|
37
|
+
:color="iconColorCom"
|
|
38
|
+
:size="textSize * 1.35"
|
|
39
|
+
:customStyle="{ marginRight: '2px' }"
|
|
40
|
+
></up-icon>
|
|
41
|
+
<slot>
|
|
42
|
+
<text class="u-button__text" :style="[{ fontSize: textSize + 'px' }]">{{ text }}</text>
|
|
43
|
+
</slot>
|
|
44
|
+
</template>
|
|
45
|
+
</button>
|
|
46
|
+
<!-- #endif -->
|
|
47
|
+
<!-- #ifdef APP-NVUE -->
|
|
48
|
+
<view
|
|
49
|
+
:hover-start-time="Number(hoverStartTime)"
|
|
50
|
+
:hover-stay-time="Number(hoverStayTime)"
|
|
51
|
+
class="u-button"
|
|
52
|
+
:hover-class="
|
|
53
|
+
!disabled && !loading && !color && (plain || type === 'info')
|
|
54
|
+
? 'u-button--active--plain'
|
|
55
|
+
: !disabled && !loading && !plain
|
|
56
|
+
? 'u-button--active'
|
|
57
|
+
: ''
|
|
58
|
+
"
|
|
59
|
+
@tap="clickHandler"
|
|
60
|
+
:class="bemClass"
|
|
61
|
+
:style="[baseColor, addStyle(customStyle)]"
|
|
62
|
+
>
|
|
63
|
+
<template v-if="loading">
|
|
64
|
+
<up-loading-icon :mode="loadingMode" :size="loadingSize * 1.15" :color="loadingColor"></up-loading-icon>
|
|
65
|
+
<text class="u-button__loading-text" :style="[nvueTextStyle]" :class="[plain && `u-button__text--plain--${type}`]">
|
|
66
|
+
{{ loadingText || text }}
|
|
67
|
+
</text>
|
|
68
|
+
</template>
|
|
69
|
+
<template v-else>
|
|
70
|
+
<up-icon v-if="icon" :name="icon" :color="iconColorCom" :size="textSize * 1.35"></up-icon>
|
|
71
|
+
<text
|
|
72
|
+
class="u-button__text"
|
|
73
|
+
:style="[
|
|
74
|
+
{
|
|
75
|
+
marginLeft: icon ? '2px' : 0
|
|
76
|
+
},
|
|
77
|
+
nvueTextStyle
|
|
78
|
+
]"
|
|
79
|
+
:class="[plain && `u-button__text--plain--${type}`]"
|
|
80
|
+
>
|
|
81
|
+
{{ text }}
|
|
82
|
+
</text>
|
|
83
|
+
</template>
|
|
84
|
+
</view>
|
|
85
|
+
<!-- #endif -->
|
|
86
|
+
</template>
|
|
87
|
+
<script>
|
|
88
|
+
import { buttonMixin } from '../../libs/mixin/button';
|
|
89
|
+
import { openType } from '../../libs/mixin/openType';
|
|
90
|
+
import { mpMixin } from '../../libs/mixin/mpMixin';
|
|
91
|
+
import { mixin } from '../../libs/mixin/mixin';
|
|
92
|
+
import { props } from './props';
|
|
93
|
+
import { addStyle } from '../../libs/function/index';
|
|
94
|
+
import { throttle } from '../../libs/function/throttle';
|
|
95
|
+
import color from '../../libs/config/color';
|
|
96
|
+
/**
|
|
97
|
+
* button 按钮
|
|
98
|
+
* @description Button 按钮
|
|
99
|
+
* @tutorial https://uview-plus.jiangruyi.com/components/button.html
|
|
100
|
+
*
|
|
101
|
+
* @property {Boolean} hairline 是否显示按钮的细边框 (默认 true )
|
|
102
|
+
* @property {String} type 按钮的预置样式,info,primary,error,warning,success (默认 'info' )
|
|
103
|
+
* @value info 默认按钮
|
|
104
|
+
* @value primary 主题按钮
|
|
105
|
+
* @value error 危险按钮
|
|
106
|
+
* @value warning 警告按钮
|
|
107
|
+
* @value success 成功按钮
|
|
108
|
+
* @property {String} size 按钮尺寸,large,normal,mini (默认 normal)
|
|
109
|
+
* @value large 超大尺寸
|
|
110
|
+
* @value normal 普通尺寸
|
|
111
|
+
* @value mini 迷你尺寸
|
|
112
|
+
* @property {String} shape 按钮形状,circle(两边为半圆),square(带圆角) (默认 'square' )
|
|
113
|
+
* @value circle 两边为半圆
|
|
114
|
+
* @value square 带有一定的圆角
|
|
115
|
+
* @property {Boolean} plain 按钮是否镂空,背景色透明 (默认 false)
|
|
116
|
+
* @property {Boolean} disabled 是否禁用 (默认 false)
|
|
117
|
+
* @property {Boolean} loading 按钮名称前是否带 loading 图标(App-nvue 平台,在 ios 上为雪花,Android上为圆圈) (默认 false)
|
|
118
|
+
* @property {String | Number} loadingText 加载中提示文字
|
|
119
|
+
* @property {String} loadingMode 加载状态图标类型 (默认 'spinner' )
|
|
120
|
+
* @property {String | Number} loadingSize 加载图标大小 (默认 15 )
|
|
121
|
+
* @property {String} openType 开放能力,具体请看uniapp稳定关于button组件部分说明
|
|
122
|
+
* @property {String} formType 用于 <form> 组件,点击分别会触发 <form> 组件的 submit/reset 事件
|
|
123
|
+
* @property {String} appParameter 打开 APP 时,向 APP 传递的参数,open-type=launchApp时有效 (注:只微信小程序、QQ小程序有效)
|
|
124
|
+
* @property {Boolean} hoverStopPropagation 指定是否阻止本节点的祖先节点出现点击态,微信小程序有效(默认 true )
|
|
125
|
+
* @property {String} lang 指定返回用户信息的语言,zh_CN 简体中文,zh_TW 繁体中文,en 英文(默认 en )
|
|
126
|
+
* @property {String} sessionFrom 会话来源,openType="contact"时有效
|
|
127
|
+
* @property {String} sendMessageTitle 会话内消息卡片标题,openType="contact"时有效
|
|
128
|
+
* @property {String} sendMessagePath 会话内消息卡片点击跳转小程序路径,openType="contact"时有效
|
|
129
|
+
* @property {String} sendMessageImg 会话内消息卡片图片,openType="contact"时有效
|
|
130
|
+
* @property {Boolean} showMessageCard 是否显示会话内消息卡片,设置此参数为 true,用户进入客服会话会在右下角显示"可能要发送的小程序"提示,用户点击后可以快速发送小程序消息,openType="contact"时有效(默认false)
|
|
131
|
+
* @property {String} dataName 额外传参参数,用于小程序的data-xxx属性,通过target.dataset.name获取
|
|
132
|
+
* @property {String | Number} throttleTime 节流,一定时间内只能触发一次 (默认 0 )
|
|
133
|
+
* @property {String | Number} hoverStartTime 按住后多久出现点击态,单位毫秒 (默认 0 )
|
|
134
|
+
* @property {String | Number} hoverStayTime 手指松开后点击态保留时间,单位毫秒 (默认 200 )
|
|
135
|
+
* @property {String | Number} text 按钮文字,之所以通过props传入,是因为slot传入的话(注:nvue中无法控制文字的样式)
|
|
136
|
+
* @property {String} icon 按钮图标
|
|
137
|
+
* @property {String} iconColor 按钮图标颜色
|
|
138
|
+
* @property {String} color 按钮颜色,支持传入linear-gradient渐变色
|
|
139
|
+
* @property {Object} customStyle 定义需要用到的外部样式
|
|
140
|
+
*
|
|
141
|
+
* @event {Function} click 非禁止并且非加载中,才能点击
|
|
142
|
+
* @event {Function} getphonenumber open-type="getPhoneNumber"时有效
|
|
143
|
+
* @event {Function} getuserinfo 用户点击该按钮时,会返回获取到的用户信息,从返回参数的detail中获取到的值同uni.getUserInfo
|
|
144
|
+
* @event {Function} error 当使用开放能力时,发生错误的回调
|
|
145
|
+
* @event {Function} opensetting 在打开授权设置页并关闭后回调
|
|
146
|
+
* @event {Function} launchapp 打开 APP 成功的回调
|
|
147
|
+
* @event {Function} agreeprivacyauthorization 用户同意隐私协议事件回调
|
|
148
|
+
* @example <up-button>月落</up-button>
|
|
149
|
+
*/
|
|
150
|
+
export default {
|
|
151
|
+
name: 'u-button',
|
|
152
|
+
// #ifdef MP
|
|
153
|
+
mixins: [mpMixin, mixin, buttonMixin, openType, props],
|
|
154
|
+
// #endif
|
|
155
|
+
// #ifndef MP
|
|
156
|
+
mixins: [mpMixin, mixin, props],
|
|
157
|
+
// #endif
|
|
158
|
+
data() {
|
|
159
|
+
return {};
|
|
160
|
+
},
|
|
161
|
+
computed: {
|
|
162
|
+
// 生成bem风格的类名
|
|
163
|
+
bemClass() {
|
|
164
|
+
// this.bem为一个computed变量,在mixin中
|
|
165
|
+
if (!this.color) {
|
|
166
|
+
return this.bem('button', ['type', 'shape', 'size'], ['disabled', 'plain', 'hairline']);
|
|
167
|
+
} else {
|
|
168
|
+
// 由于nvue的原因,在有color参数时,不需要传入type,否则会生成type相关的类型,影响最终的样式
|
|
169
|
+
return this.bem('button', ['shape', 'size'], ['disabled', 'plain', 'hairline']);
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
loadingColor() {
|
|
173
|
+
if (this.plain) {
|
|
174
|
+
// 如果有设置color值,则用color值,否则使用type主题颜色
|
|
175
|
+
return this.color ? this.color : color[`u-${this.type}`];
|
|
176
|
+
}
|
|
177
|
+
if (this.type === 'info') {
|
|
178
|
+
return '#c9c9c9';
|
|
179
|
+
}
|
|
180
|
+
return 'rgb(200, 200, 200)';
|
|
181
|
+
},
|
|
182
|
+
iconColorCom() {
|
|
183
|
+
// 如果是镂空状态,设置了color就用color值,否则使用主题颜色,
|
|
184
|
+
// up-icon的color能接受一个主题颜色的值
|
|
185
|
+
if (this.iconColor) return this.iconColor;
|
|
186
|
+
if (this.plain) {
|
|
187
|
+
return this.color ? this.color : this.type;
|
|
188
|
+
} else {
|
|
189
|
+
return this.type === 'info' ? '#000000' : '#ffffff';
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
baseColor() {
|
|
193
|
+
let style = {};
|
|
194
|
+
if (this.color) {
|
|
195
|
+
// 针对自定义了color颜色的情况,镂空状态下,就是用自定义的颜色
|
|
196
|
+
style.color = this.plain ? this.color : 'white';
|
|
197
|
+
if (!this.plain) {
|
|
198
|
+
// 非镂空,背景色使用自定义的颜色
|
|
199
|
+
style['background-color'] = this.color;
|
|
200
|
+
}
|
|
201
|
+
if (this.color.indexOf('gradient') !== -1) {
|
|
202
|
+
// 如果自定义的颜色为渐变色,不显示边框,以及通过backgroundImage设置渐变色
|
|
203
|
+
// weex文档说明可以写borderWidth的形式,为什么这里需要分开写?
|
|
204
|
+
// 因为weex是阿里巴巴为了部门业绩考核而做的你懂的东西,所以需要这么写才有效
|
|
205
|
+
style.borderTopWidth = 0;
|
|
206
|
+
style.borderRightWidth = 0;
|
|
207
|
+
style.borderBottomWidth = 0;
|
|
208
|
+
style.borderLeftWidth = 0;
|
|
209
|
+
if (!this.plain) {
|
|
210
|
+
style.backgroundImage = this.color;
|
|
211
|
+
}
|
|
212
|
+
} else {
|
|
213
|
+
// 非渐变色,则设置边框相关的属性
|
|
214
|
+
style.borderColor = this.color;
|
|
215
|
+
style.borderWidth = '1px';
|
|
216
|
+
style.borderStyle = 'solid';
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
return style;
|
|
220
|
+
},
|
|
221
|
+
// nvue版本按钮的字体不会继承父组件的颜色,需要对每一个text组件进行单独的设置
|
|
222
|
+
nvueTextStyle() {
|
|
223
|
+
let style = {};
|
|
224
|
+
// 针对自定义了color颜色的情况,镂空状态下,就是用自定义的颜色
|
|
225
|
+
if (this.type === 'info') {
|
|
226
|
+
style.color = '#323233';
|
|
227
|
+
}
|
|
228
|
+
if (this.color) {
|
|
229
|
+
style.color = this.plain ? this.color : 'white';
|
|
230
|
+
}
|
|
231
|
+
style.fontSize = this.textSize + 'px';
|
|
232
|
+
return style;
|
|
233
|
+
},
|
|
234
|
+
// 字体大小
|
|
235
|
+
textSize() {
|
|
236
|
+
let fontSize = 14,
|
|
237
|
+
{ size } = this;
|
|
238
|
+
if (size === 'large') fontSize = 16;
|
|
239
|
+
if (size === 'normal') fontSize = 14;
|
|
240
|
+
if (size === 'small') fontSize = 12;
|
|
241
|
+
if (size === 'mini') fontSize = 10;
|
|
242
|
+
return fontSize;
|
|
243
|
+
}
|
|
244
|
+
},
|
|
245
|
+
emits: ['click', 'getphonenumber', 'getuserinfo', 'error', 'opensetting', 'launchapp', 'agreeprivacyauthorization'],
|
|
246
|
+
methods: {
|
|
247
|
+
addStyle,
|
|
248
|
+
clickHandler(e) {
|
|
249
|
+
// 非禁止并且非加载中,才能点击
|
|
250
|
+
if (!this.disabled && !this.loading) {
|
|
251
|
+
// 进行节流控制,每this.throttle毫秒内,只在开始处执行
|
|
252
|
+
throttle(() => {
|
|
253
|
+
this.$emit('click', e);
|
|
254
|
+
}, this.throttleTime);
|
|
255
|
+
}
|
|
256
|
+
// 是否阻止事件传播
|
|
257
|
+
this.stop && this.preventEvent(e);
|
|
258
|
+
},
|
|
259
|
+
// 下面为对接uniapp官方按钮开放能力事件回调的对接
|
|
260
|
+
getphonenumber(res) {
|
|
261
|
+
this.$emit('getphonenumber', res);
|
|
262
|
+
},
|
|
263
|
+
getuserinfo(res) {
|
|
264
|
+
this.$emit('getuserinfo', res);
|
|
265
|
+
},
|
|
266
|
+
error(res) {
|
|
267
|
+
this.$emit('error', res);
|
|
268
|
+
},
|
|
269
|
+
opensetting(res) {
|
|
270
|
+
this.$emit('opensetting', res);
|
|
271
|
+
},
|
|
272
|
+
launchapp(res) {
|
|
273
|
+
this.$emit('launchapp', res);
|
|
274
|
+
},
|
|
275
|
+
agreeprivacyauthorization(res) {
|
|
276
|
+
this.$emit('agreeprivacyauthorization', res);
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
};
|
|
280
|
+
</script>
|
|
281
|
+
<style scoped>
|
|
282
|
+
/* #ifndef APP-NVUE */
|
|
283
|
+
.u-button {
|
|
284
|
+
width: 100%;
|
|
285
|
+
white-space: nowrap;
|
|
286
|
+
}
|
|
287
|
+
.u-button__text {
|
|
288
|
+
white-space: nowrap;
|
|
289
|
+
line-height: 1;
|
|
290
|
+
}
|
|
291
|
+
.u-button:before {
|
|
292
|
+
position: absolute;
|
|
293
|
+
top: 50%;
|
|
294
|
+
left: 50%;
|
|
295
|
+
width: 100%;
|
|
296
|
+
height: 100%;
|
|
297
|
+
border: inherit;
|
|
298
|
+
border-radius: inherit;
|
|
299
|
+
transform: translate(-50%, -50%);
|
|
300
|
+
opacity: 0;
|
|
301
|
+
content: ' ';
|
|
302
|
+
background-color: #000;
|
|
303
|
+
border-color: #000;
|
|
304
|
+
}
|
|
305
|
+
.u-button--active:before {
|
|
306
|
+
opacity: 0.15;
|
|
307
|
+
}
|
|
308
|
+
.u-button__icon + .u-button__text:not(:empty),
|
|
309
|
+
.u-button__loading-text {
|
|
310
|
+
margin-left: 4px;
|
|
311
|
+
}
|
|
312
|
+
.u-button--plain.u-button--primary {
|
|
313
|
+
color: var(--u-primary);
|
|
314
|
+
}
|
|
315
|
+
.u-button--plain.u-button--info {
|
|
316
|
+
color: var(--u-info);
|
|
317
|
+
}
|
|
318
|
+
.u-button--plain.u-button--success {
|
|
319
|
+
color: var(--u-success);
|
|
320
|
+
}
|
|
321
|
+
.u-button--plain.u-button--error {
|
|
322
|
+
color: var(--u-error);
|
|
323
|
+
}
|
|
324
|
+
.u-button--plain.u-button--warning {
|
|
325
|
+
color: var(--u-warning);
|
|
326
|
+
}
|
|
327
|
+
/* #endif */
|
|
328
|
+
/* #ifdef APP-NVUE */
|
|
329
|
+
.u-button--active {
|
|
330
|
+
opacity: 0.75;
|
|
331
|
+
}
|
|
332
|
+
.u-button--active--plain {
|
|
333
|
+
background-color: rgb(217, 217, 217);
|
|
334
|
+
}
|
|
335
|
+
.u-button__loading-text {
|
|
336
|
+
margin-left: 4px;
|
|
337
|
+
}
|
|
338
|
+
.u-button__text,
|
|
339
|
+
.u-button__loading-text {
|
|
340
|
+
color: #ffffff;
|
|
341
|
+
}
|
|
342
|
+
.u-button__text--plain--error {
|
|
343
|
+
color: var(--u-error);
|
|
344
|
+
}
|
|
345
|
+
.u-button__text--plain--warning {
|
|
346
|
+
color: var(--u-warning);
|
|
347
|
+
}
|
|
348
|
+
.u-button__text--plain--success {
|
|
349
|
+
color: var(--u-success);
|
|
350
|
+
}
|
|
351
|
+
.u-button__text--plain--info {
|
|
352
|
+
color: var(--u-info);
|
|
353
|
+
}
|
|
354
|
+
.u-button__text--plain--primary {
|
|
355
|
+
color: var(--u-primary);
|
|
356
|
+
}
|
|
357
|
+
/* #endif */
|
|
358
|
+
.u-button {
|
|
359
|
+
height: 40px;
|
|
360
|
+
position: relative;
|
|
361
|
+
align-items: center;
|
|
362
|
+
justify-content: center;
|
|
363
|
+
/* #ifndef APP-NVUE */
|
|
364
|
+
display: flex;
|
|
365
|
+
/* #endif */
|
|
366
|
+
flex-direction: row;
|
|
367
|
+
/* #ifndef APP-NVUE */
|
|
368
|
+
box-sizing: border-box;
|
|
369
|
+
/* #endif */
|
|
370
|
+
flex-direction: row;
|
|
371
|
+
}
|
|
372
|
+
.u-button__text {
|
|
373
|
+
font-size: 15px;
|
|
374
|
+
}
|
|
375
|
+
.u-button__loading-text {
|
|
376
|
+
font-size: 15px;
|
|
377
|
+
margin-left: 4px;
|
|
378
|
+
}
|
|
379
|
+
.u-button--large {
|
|
380
|
+
/* #ifndef APP-NVUE */
|
|
381
|
+
width: 100%;
|
|
382
|
+
/* #endif */
|
|
383
|
+
height: 50px;
|
|
384
|
+
padding: 0 15px;
|
|
385
|
+
}
|
|
386
|
+
.u-button--normal {
|
|
387
|
+
padding: 0 12px;
|
|
388
|
+
font-size: 14px;
|
|
389
|
+
}
|
|
390
|
+
.u-button--small {
|
|
391
|
+
/* #ifndef APP-NVUE */
|
|
392
|
+
min-width: 60px;
|
|
393
|
+
/* #endif */
|
|
394
|
+
height: 30px;
|
|
395
|
+
padding: 0px 8px;
|
|
396
|
+
font-size: 12px;
|
|
397
|
+
}
|
|
398
|
+
.u-button--mini {
|
|
399
|
+
height: 22px;
|
|
400
|
+
font-size: 10px;
|
|
401
|
+
/* #ifndef APP-NVUE */
|
|
402
|
+
min-width: 50px;
|
|
403
|
+
/* #endif */
|
|
404
|
+
padding: 0px 8px;
|
|
405
|
+
}
|
|
406
|
+
.u-button--disabled {
|
|
407
|
+
opacity: 0.5;
|
|
408
|
+
}
|
|
409
|
+
.u-button--info {
|
|
410
|
+
color: #323233;
|
|
411
|
+
background-color: #fff;
|
|
412
|
+
border-color: #ebedf0;
|
|
413
|
+
border-width: 1px;
|
|
414
|
+
border-style: solid;
|
|
415
|
+
}
|
|
416
|
+
.u-button--success {
|
|
417
|
+
color: #fff;
|
|
418
|
+
background-color: var(--u-success);
|
|
419
|
+
border-color: var(--u-success);
|
|
420
|
+
border-width: 1px;
|
|
421
|
+
border-style: solid;
|
|
422
|
+
}
|
|
423
|
+
.u-button--primary {
|
|
424
|
+
color: #fff;
|
|
425
|
+
background-color: var(--u-primary);
|
|
426
|
+
border-color: var(--u-primary);
|
|
427
|
+
border-width: 1px;
|
|
428
|
+
border-style: solid;
|
|
429
|
+
}
|
|
430
|
+
.u-button--error {
|
|
431
|
+
color: #fff;
|
|
432
|
+
background-color: var(--u-error);
|
|
433
|
+
border-color: var(--u-error);
|
|
434
|
+
border-width: 1px;
|
|
435
|
+
border-style: solid;
|
|
436
|
+
}
|
|
437
|
+
.u-button--warning {
|
|
438
|
+
color: #fff;
|
|
439
|
+
background-color: var(--u-warning);
|
|
440
|
+
border-color: var(--u-warning);
|
|
441
|
+
border-width: 1px;
|
|
442
|
+
border-style: solid;
|
|
443
|
+
}
|
|
444
|
+
.u-button--block {
|
|
445
|
+
/* #ifndef APP-NVUE */
|
|
446
|
+
display: flex;
|
|
447
|
+
/* #endif */
|
|
448
|
+
flex-direction: row;
|
|
449
|
+
width: 100%;
|
|
450
|
+
}
|
|
451
|
+
.u-button--circle {
|
|
452
|
+
border-top-right-radius: 100px;
|
|
453
|
+
border-top-left-radius: 100px;
|
|
454
|
+
border-bottom-left-radius: 100px;
|
|
455
|
+
border-bottom-right-radius: 100px;
|
|
456
|
+
}
|
|
457
|
+
.u-button--square {
|
|
458
|
+
border-bottom-left-radius: 3px;
|
|
459
|
+
border-bottom-right-radius: 3px;
|
|
460
|
+
border-top-left-radius: 3px;
|
|
461
|
+
border-top-right-radius: 3px;
|
|
462
|
+
}
|
|
463
|
+
.u-button__icon {
|
|
464
|
+
/* #ifndef APP-NVUE */
|
|
465
|
+
min-width: 1em;
|
|
466
|
+
line-height: inherit !important;
|
|
467
|
+
vertical-align: top;
|
|
468
|
+
/* #endif */
|
|
469
|
+
}
|
|
470
|
+
.u-button--plain {
|
|
471
|
+
background-color: #fff;
|
|
472
|
+
}
|
|
473
|
+
.u-button--hairline {
|
|
474
|
+
border-width: 0.5px !important;
|
|
475
|
+
}
|
|
476
|
+
</style>
|