@10yun/cv-mobile-ui 0.5.56 → 0.5.57
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-share/cv-dialog-share.vue +7 -7
- package/ui-cv/components/cv-geo-local/cv-geo-local.vue +1 -1
- package/ui-cv/components/cv-icons/cv-icons.vue +18 -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-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-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/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-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/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,339 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view class="content">
|
|
3
|
+
<qiun-title-bar title="基本柱状图"/>
|
|
4
|
+
<!--
|
|
5
|
+
极简调用示例,只需指定type及chartData即可。
|
|
6
|
+
图表默认配置请修改js_sdk/u-charts/config-ucharts.js对应图表类型下配置
|
|
7
|
+
注:1、更新前请自行备份config-ucharts.js、config-echarts.js,以免被覆盖
|
|
8
|
+
2、此方式调用组件chartData需自行按图表类型需求的数据格式拼接
|
|
9
|
+
配置参数请用在线生成工具(http://demo.ucharts.cn/)生成
|
|
10
|
+
3、class="charts-box"这个样式,指定了高度,如果你的父元素有固定高度,请修改为height:100%
|
|
11
|
+
-->
|
|
12
|
+
<view class="charts-box">
|
|
13
|
+
<qiun-data-charts type="column" :chartData="chartsDataColumn1" />
|
|
14
|
+
</view>
|
|
15
|
+
<qiun-title-bar title="堆叠柱状图"/>
|
|
16
|
+
<!-- 只需要在:opts中传入与config-ucharts.js中默认配置不同的属性即可覆盖默认配置,既保证了全局图表样式的统一性,也减少了代码量与包体积 -->
|
|
17
|
+
<view class="charts-box">
|
|
18
|
+
<qiun-data-charts type="column" :opts="{extra:{column:{type:'stack'}}}" :chartData="chartsDataColumn2"/>
|
|
19
|
+
</view>
|
|
20
|
+
<qiun-title-bar title="温度计图表"/>
|
|
21
|
+
<view class="charts-box">
|
|
22
|
+
<qiun-data-charts type="column" :opts="{extra:{column:{type:'meter',meterBorde:1,meterFillColor:'#FFFFFF'}}}" :chartData="chartsDataColumn3"/>
|
|
23
|
+
</view>
|
|
24
|
+
<qiun-title-bar title="柱状图滚动条"/>
|
|
25
|
+
<!-- 开启滚动条,需要开启拖动功能,即:ontouch="true" ,微信小程序需要开启canvas2d,否则会很卡,开启2d需要指定canvasId -->
|
|
26
|
+
<view class="charts-box">
|
|
27
|
+
<qiun-data-charts type="column" canvasId="scrollcolumnid" :opts="{enableScroll:true,xAxis:{scrollShow:true,itemCount:4,disableGrid:true}}" :ontouch="true" :canvas2d="true" :chartData="chartsDataColumn4"/>
|
|
28
|
+
</view>
|
|
29
|
+
<qiun-title-bar title="圆角+渐变+半透明柱状图"/>
|
|
30
|
+
<view class="charts-box">
|
|
31
|
+
<qiun-data-charts type="column" :opts="{color:['#FAC858','#EE6666'],extra:{column:{linearType:'custom',seriesGap:5,linearOpacity:0.5,barBorderCircle:true,customColor:['#FA7D8D','#EB88E2']}}}" :chartData="chartsDataColumn5"/>
|
|
32
|
+
</view>
|
|
33
|
+
<qiun-title-bar title="全圆角柱状图+标记线"/>
|
|
34
|
+
<view class="charts-box">
|
|
35
|
+
<qiun-data-charts type="column" :opts="{yAxis:{data:[{min:0}]},enableMarkLine:true,extra:{column:{seriesGap:5,barBorderRadius:[6,6,6,6]},markLine:{data:[{value:21,showLabel:true}]}}}" :chartData="chartsDataColumn6" />
|
|
36
|
+
</view>
|
|
37
|
+
<qiun-title-bar title="柱状图横屏模式"/>
|
|
38
|
+
<view style="width: 100%;height: 500px;">
|
|
39
|
+
<qiun-data-charts type="column" :opts="{rotate:true}" :chartData="chartsDataColumn1" />
|
|
40
|
+
</view>
|
|
41
|
+
<qiun-title-bar title="基本条状图"/>
|
|
42
|
+
<view class="charts-box">
|
|
43
|
+
<qiun-data-charts type="bar" :opts="{xAxis:{max:40}}" :chartData="chartsDataColumn1"/>
|
|
44
|
+
</view>
|
|
45
|
+
<qiun-title-bar title="圆角条状图+渐变色"/>
|
|
46
|
+
<view class="charts-box">
|
|
47
|
+
<qiun-data-charts type="bar" :opts="{xAxis:{max:40},extra:{bar:{linearType:'custom',barBorderCircle:true}}}" :chartData="chartsDataColumn1"/>
|
|
48
|
+
</view>
|
|
49
|
+
<qiun-title-bar title="堆叠条状图"/>
|
|
50
|
+
<view class="charts-box">
|
|
51
|
+
<qiun-data-charts type="bar" :opts="{xAxis:{max:70},extra:{bar:{type:'stack'}}}" :chartData="chartsDataColumn1"/>
|
|
52
|
+
</view>
|
|
53
|
+
|
|
54
|
+
<qiun-title-bar title="圆角山峰图"/>
|
|
55
|
+
<view class="charts-box">
|
|
56
|
+
<qiun-data-charts type="mount" :opts="{extra:{mount:{type:'mount',widthRatio:1.5}}}" :chartData="chartsDataMount"/>
|
|
57
|
+
</view>
|
|
58
|
+
<qiun-title-bar title="尖角山峰图"/>
|
|
59
|
+
<view class="charts-box">
|
|
60
|
+
<qiun-data-charts type="mount" :opts="{extra:{mount:{type:'sharp',widthRatio:1.5}}}" :chartData="chartsDataMount"/>
|
|
61
|
+
</view>
|
|
62
|
+
<qiun-title-bar title="三角山峰图"/>
|
|
63
|
+
<view class="charts-box">
|
|
64
|
+
<qiun-data-charts type="mount" :opts="{extra:{mount:{type:'triangle',widthRatio:1.5}}}" :chartData="chartsDataMount"/>
|
|
65
|
+
</view>
|
|
66
|
+
<qiun-title-bar title="直角山峰图"/>
|
|
67
|
+
<view class="charts-box">
|
|
68
|
+
<qiun-data-charts type="mount" :opts="{extra:{mount:{type:'bar',widthRatio:0.8}}}" :chartData="chartsDataMount" />
|
|
69
|
+
</view>
|
|
70
|
+
<qiun-title-bar title="山峰图无边渐变色"/>
|
|
71
|
+
<view class="charts-box">
|
|
72
|
+
<qiun-data-charts type="mount" :opts="{extra:{mount:{type:'mount',widthRatio:1.5,borderWidth: 0,linearType: 'custom'}}}" :chartData="chartsDataMount" />
|
|
73
|
+
</view>
|
|
74
|
+
<qiun-title-bar title="山峰图有边透明渐变+滚动条"/>
|
|
75
|
+
<view class="charts-box">
|
|
76
|
+
<qiun-data-charts type="mount" :opts="{enableScroll:true,xAxis:{itemCount:4,scrollShow:true},extra:{mount:{type:'sharp',widthRatio:1.5,borderWidth: 2,linearType: 'opacity',linearOpacity: 0.1}}}" :ontouch="true" :chartData="chartsDataMount"/>
|
|
77
|
+
</view>
|
|
78
|
+
<qiun-title-bar title="山峰图有边渐变+标记线"/>
|
|
79
|
+
<view class="charts-box">
|
|
80
|
+
<qiun-data-charts type="mount" :opts="{padding:[15,40,0,15],enableMarkLine: true,extra:{mount:{type:'triangle',widthRatio:1,borderWidth: 2,linearType: 'custom'},markLine: {
|
|
81
|
+
type: 'solid',
|
|
82
|
+
dashLength: 4,
|
|
83
|
+
data: [
|
|
84
|
+
{
|
|
85
|
+
value: 45,
|
|
86
|
+
lineColor: '#DE4A42',
|
|
87
|
+
showLabel: true,
|
|
88
|
+
labelAlign: 'right',
|
|
89
|
+
labelOffsetX: 0,
|
|
90
|
+
labelOffsetY: 0,
|
|
91
|
+
labelText: '均值',
|
|
92
|
+
labelFontColor: '#666666',
|
|
93
|
+
labelBgColor: '#DFE8FF',
|
|
94
|
+
labelBgOpacity: 0.8
|
|
95
|
+
}
|
|
96
|
+
]
|
|
97
|
+
}}}" :chartData="chartsDataMount" />
|
|
98
|
+
</view>
|
|
99
|
+
<qiun-title-bar title="山峰图圆角渐变色柱状图"/>
|
|
100
|
+
<view class="charts-box">
|
|
101
|
+
<qiun-data-charts type="mount" :opts="{extra:{mount:{type:'bar',widthRatio:0.3,borderWidth: 0,barBorderRadius: [50,50,50,50],linearType: 'custom'}}}" :chartData="chartsDataMount"/>
|
|
102
|
+
</view>
|
|
103
|
+
|
|
104
|
+
<qiun-title-bar title="基本折线图"/>
|
|
105
|
+
<view class="charts-box">
|
|
106
|
+
<qiun-data-charts type="line" :chartData="chartsDataLine1"/>
|
|
107
|
+
</view>
|
|
108
|
+
<qiun-title-bar title="基本曲线图(自定义图表类型)"/>
|
|
109
|
+
<view class="charts-box">
|
|
110
|
+
<!-- 这里的type="demotype"演示了自定义图表类型的demo,您可以根据需求自己定义一种额外的图表类型 -->
|
|
111
|
+
<qiun-data-charts type="demotype" :opts="{xAxis:{boundaryGap:'justify'}}" :chartData="chartsDataLine2"/>
|
|
112
|
+
<!-- 如果不定义"demotype"这个图表类型,可以通过传递opts来覆盖line下的默认配置,如下 -->
|
|
113
|
+
<!-- <qiun-data-charts type="line" :opts="{extra:{line:{type:'curve'}}}" :chartData="chartsData.Line2"/> -->
|
|
114
|
+
</view>
|
|
115
|
+
<qiun-title-bar title="基本时序图"/>
|
|
116
|
+
<view class="charts-box">
|
|
117
|
+
<qiun-data-charts type="line" :opts="{extra:{line:{type:'step'}}}" :chartData="chartsDataLine3"/>
|
|
118
|
+
</view>
|
|
119
|
+
<qiun-title-bar title="折线图滚动条"/>
|
|
120
|
+
<!-- 开启滚动条,需要开启拖动功能,即:ontouch="true",微信小程序需要开启canvas2d,否则会很卡,开启2d需要指定canvasId -->
|
|
121
|
+
<view class="charts-box">
|
|
122
|
+
<qiun-data-charts type="line" canvasId="scrolllineid" :opts="{enableScroll:true,xAxis:{scrollShow:true,itemCount:4,disableGrid:true}}" :chartData="chartsDataLine4" :ontouch="true" :canvas2d="true"/>
|
|
123
|
+
</view>
|
|
124
|
+
<qiun-title-bar title="折线图+断点续连connectNulls"/>
|
|
125
|
+
<view class="charts-box">
|
|
126
|
+
<qiun-data-charts type="line" :chartData="chartsDataLine5"/>
|
|
127
|
+
</view>
|
|
128
|
+
<qiun-title-bar title="时间轴(矢量轴)折线图"/>
|
|
129
|
+
<!-- 矢量轴图表支持折线图、区域图、散点图、气泡图。需要注意chartData中,如果是矢量轴,则不能带categories -->
|
|
130
|
+
<view class="charts-box">
|
|
131
|
+
<qiun-data-charts type="tline" :opts="{yAxis:{data:[{min:0,max:80}]}}" :chartData="chartsDataTLine" />
|
|
132
|
+
</view>
|
|
133
|
+
<qiun-title-bar title="基本折线区域图"/>
|
|
134
|
+
<view class="charts-box">
|
|
135
|
+
<qiun-data-charts type="area" :chartData="chartsDataArea1"/>
|
|
136
|
+
</view>
|
|
137
|
+
<qiun-title-bar title="渐变色时序区域图"/>
|
|
138
|
+
<view class="charts-box">
|
|
139
|
+
<qiun-data-charts type="area" :opts="{extra:{area:{type:'step',addLine:true,gradient:true}}}" :chartData="chartsDataArea2"/>
|
|
140
|
+
</view>
|
|
141
|
+
<qiun-title-bar title="渐变色曲线区域图"/>
|
|
142
|
+
<view class="charts-box">
|
|
143
|
+
<qiun-data-charts type="area" :opts="{extra:{area:{type:'curve',addLine:true,gradient:true}}}" :chartData="chartsDataArea2"/>
|
|
144
|
+
</view>
|
|
145
|
+
<qiun-title-bar title="时间轴(矢量轴)区域图"/>
|
|
146
|
+
<!-- 矢量轴图表支持折线图、区域图、散点图、气泡图。需要注意chartData中,如果是矢量轴,则不能带categories -->
|
|
147
|
+
<view class="charts-box">
|
|
148
|
+
<qiun-data-charts type="tarea" :opts="{xAxis:{format:'xAxisDemo2'},yAxis:{data:[{min:0,max:80}]}}" :chartData="chartsDataTLine" />
|
|
149
|
+
</view>
|
|
150
|
+
<qiun-title-bar title="散点图"/>
|
|
151
|
+
<view class="charts-box">
|
|
152
|
+
<qiun-data-charts type="scatter" :chartData="chartsDataScatter" />
|
|
153
|
+
</view>
|
|
154
|
+
<qiun-title-bar title="气泡图"/>
|
|
155
|
+
<view class="charts-box">
|
|
156
|
+
<qiun-data-charts type="bubble" :chartData="chartsDataBubble" />
|
|
157
|
+
</view>
|
|
158
|
+
<qiun-title-bar title="多坐标系混合图"/>
|
|
159
|
+
<view class="charts-box" style="height: 400px;">
|
|
160
|
+
<qiun-data-charts type="mix" :opts="{yAxis:{data:[{position: 'left',title: '折线'},{position: 'right',min: 0,max: 200,title: '柱状图',textAlign: 'left'},{position: 'right',min: 0,max: 200,title: '点',textAlign: 'left'}]}}" :chartData="chartsDataMix1"/>
|
|
161
|
+
</view>
|
|
162
|
+
<qiun-title-bar title="基本饼状图"/>
|
|
163
|
+
<view class="charts-box">
|
|
164
|
+
<qiun-data-charts type="pie" :chartData="chartsDataPie1"/>
|
|
165
|
+
</view>
|
|
166
|
+
<qiun-title-bar title="环形图+渐变色"/>
|
|
167
|
+
<view class="charts-box">
|
|
168
|
+
<qiun-data-charts type="ring" :opts="{legend:{position: 'bottom'},extra:{ring:{ringWidth: 60,linearType:'custom',centerColor:'#FF0'}}}" :chartData="chartsDataRing1"/>
|
|
169
|
+
</view>
|
|
170
|
+
<qiun-title-bar title="面积玫瑰图"/>
|
|
171
|
+
<view class="charts-box">
|
|
172
|
+
<qiun-data-charts type="rose" :opts="{legend:{position: 'bottom'}}" :chartData="chartsDataRose1"/>
|
|
173
|
+
</view>
|
|
174
|
+
<qiun-title-bar title="半径玫瑰图"/>
|
|
175
|
+
<view class="charts-box">
|
|
176
|
+
<qiun-data-charts type="rose" :opts="{legend:{position: 'bottom'},extra:{rose:{type:'radius'}}}" :chartData="chartsDataRose2"/>
|
|
177
|
+
</view>
|
|
178
|
+
<qiun-title-bar title="圆弧进度条"/>
|
|
179
|
+
<!-- 这里的title.name和subtitle.name如果需要联动chartData,请定义一个变量同步传入:opts和:chartData中 -->
|
|
180
|
+
<view class="charts-box">
|
|
181
|
+
<qiun-data-charts type="arcbar" :opts="{title:{name:'80%',color:'#2fc25b',fontSize:35},subtitle:{name:'正确率',color:'#666666',fontSize:25}}" :chartData="chartsDataArcbar1"/>
|
|
182
|
+
</view>
|
|
183
|
+
<qiun-title-bar title="多重圆弧进度条"/>
|
|
184
|
+
<view class="charts-box">
|
|
185
|
+
<qiun-data-charts type="arcbar" :opts="{title:{name:'指标',color:'#1890ff',fontSize:35},subtitle:{},extra:{arcbar:{type:'circle',startAngle:1.5}}}" :chartData="chartsDataArcbar2"/>
|
|
186
|
+
</view>
|
|
187
|
+
<qiun-title-bar title="多边形雷达图"/>
|
|
188
|
+
<view class="charts-box">
|
|
189
|
+
<qiun-data-charts type="radar" :opts="{legend:{position: 'bottom'},extra:{radar:{border:true}}}" :chartData="chartsDataRadar1"/>
|
|
190
|
+
</view>
|
|
191
|
+
<qiun-title-bar title="圆形雷达图"/>
|
|
192
|
+
<view class="charts-box">
|
|
193
|
+
<qiun-data-charts type="radar" :opts="{legend:{position: 'bottom'},extra:{radar:{gridType:'circle'}}}" :chartData="chartsDataRadar2"/>
|
|
194
|
+
</view>
|
|
195
|
+
<qiun-title-bar title="基本仪表盘"/>
|
|
196
|
+
<!-- 这里的title.name和subtitle.name如果需要联动chartData,请定义一个变量同步传入:opts和:chartData中 -->
|
|
197
|
+
<view class="charts-box">
|
|
198
|
+
<qiun-data-charts type="gauge" :opts="{title:{name: '60Km/H',color: '#2fc25b',fontSize: 25,offsetY:50},subtitle: {name: '实时速度',color: '#666666',fontSize: 15,offsetY:-50}}" :chartData="chartsDataGauge1"/>
|
|
199
|
+
</view>
|
|
200
|
+
<qiun-title-bar title="其他仪表盘"/>
|
|
201
|
+
<view class="charts-box">
|
|
202
|
+
<qiun-data-charts type="gauge" :opts="{title:{offsetY:0},subtitle:{offsetY:0},extra:{gauge:{type:'progress',width:20,splitLine:{fixRadius:-10,width:15,},}}}" :chartData="chartsDataGauge2"/>
|
|
203
|
+
</view>
|
|
204
|
+
<qiun-title-bar title="词云图"/>
|
|
205
|
+
<view class="charts-box">
|
|
206
|
+
<qiun-data-charts type="word" :chartData="chartsDataWord1"/>
|
|
207
|
+
</view>
|
|
208
|
+
<qiun-title-bar title="漏斗图+渐变色"/>
|
|
209
|
+
<view class="charts-box">
|
|
210
|
+
<qiun-data-charts type="funnel" :opts="{extra:{funnel:{linearType:'custom'}}}" :chartData="chartsDataFunnel1"/>
|
|
211
|
+
</view>
|
|
212
|
+
<qiun-title-bar title="倒三角形漏斗图"/>
|
|
213
|
+
<view class="charts-box">
|
|
214
|
+
<qiun-data-charts type="funnel" :opts="{extra:{funnel:{type:'triangle'}}}" :chartData="chartsDataFunnel1"/>
|
|
215
|
+
</view>
|
|
216
|
+
<qiun-title-bar title="金字塔形漏斗图"/>
|
|
217
|
+
<view class="charts-box">
|
|
218
|
+
<qiun-data-charts type="funnel" :opts="{extra:{funnel:{type:'pyramid',labelAlign:'left'}}}" :chartData="chartsDataFunnel1"/>
|
|
219
|
+
</view>
|
|
220
|
+
<qiun-title-bar title="K线图+双指缩放"/>
|
|
221
|
+
<view class="charts-box" style="height: 400px;">
|
|
222
|
+
<qiun-data-charts type="candle" :opts="{extra:{tooltip:{showCategory:true}}}" :ontouch="true" :canvas2d="true" :onzoom="true" canvasId="klineid" :chartData="chartsDataCandle1"/>
|
|
223
|
+
</view>
|
|
224
|
+
<qiun-title-bar title="地图"/>
|
|
225
|
+
<view class="charts-box" style="height: 400px;">
|
|
226
|
+
<qiun-data-charts type="map" :opts="{extra:{map:{mercator:true}}}" :chartData="chartsDataMap1"/>
|
|
227
|
+
</view>
|
|
228
|
+
</view>
|
|
229
|
+
</template>
|
|
230
|
+
|
|
231
|
+
<script>
|
|
232
|
+
//下面是演示数据,您的项目不需要引用,数据需要您从服务器自行获取
|
|
233
|
+
import demodata from '@/mockdata/demodata.json';
|
|
234
|
+
import mapdata from '@/mockdata/mapdata.json'
|
|
235
|
+
|
|
236
|
+
export default {
|
|
237
|
+
data() {
|
|
238
|
+
return {
|
|
239
|
+
chartsDataColumn1:{},
|
|
240
|
+
chartsDataColumn2:{},
|
|
241
|
+
chartsDataColumn3:{},
|
|
242
|
+
chartsDataColumn4:{},
|
|
243
|
+
chartsDataColumn5:{},
|
|
244
|
+
chartsDataColumn6:{},
|
|
245
|
+
chartsDataLine1:{},
|
|
246
|
+
chartsDataLine2:{},
|
|
247
|
+
chartsDataLine3:{},
|
|
248
|
+
chartsDataLine4:{},
|
|
249
|
+
chartsDataLine5:{},
|
|
250
|
+
chartsDataTLine:{},
|
|
251
|
+
chartsDataScatter:{},
|
|
252
|
+
chartsDataBubble:{},
|
|
253
|
+
chartsDataArea1:{},
|
|
254
|
+
chartsDataArea2:{},
|
|
255
|
+
chartsDataMix1:{},
|
|
256
|
+
chartsDataPie1:{},
|
|
257
|
+
chartsDataRing1:{},
|
|
258
|
+
chartsDataRose1:{},
|
|
259
|
+
chartsDataRose2:{},
|
|
260
|
+
chartsDataArcbar1:{},
|
|
261
|
+
chartsDataArcbar2:{},
|
|
262
|
+
chartsDataGauge1:{},
|
|
263
|
+
chartsDataGauge2:{},
|
|
264
|
+
chartsDataRadar1:{},
|
|
265
|
+
chartsDataRadar2:{},
|
|
266
|
+
chartsDataWord1:{},
|
|
267
|
+
chartsDataFunnel1:{},
|
|
268
|
+
chartsDataMap1:{},
|
|
269
|
+
chartsDataCandle1:{},
|
|
270
|
+
chartsDataMount:{}
|
|
271
|
+
};
|
|
272
|
+
},
|
|
273
|
+
onReady() {
|
|
274
|
+
//模拟从服务器获取数据
|
|
275
|
+
this.getServerData()
|
|
276
|
+
},
|
|
277
|
+
methods: {
|
|
278
|
+
getServerData() {
|
|
279
|
+
setTimeout(() => {
|
|
280
|
+
//因部分数据格式一样,这里不同图表引用同一数据源的话,需要深拷贝一下构造不同的对象
|
|
281
|
+
//开发者需要自行处理服务器返回的数据,应与标准数据格式一致,注意series的data数值应为数字格式
|
|
282
|
+
this.chartsDataColumn1=JSON.parse(JSON.stringify(demodata.Column))
|
|
283
|
+
this.chartsDataColumn2=JSON.parse(JSON.stringify(demodata.Column))
|
|
284
|
+
this.chartsDataColumn3=JSON.parse(JSON.stringify(demodata.Column))
|
|
285
|
+
this.chartsDataColumn4=JSON.parse(JSON.stringify(demodata.Column))
|
|
286
|
+
this.chartsDataColumn5=JSON.parse(JSON.stringify(demodata.Column))
|
|
287
|
+
this.chartsDataMount=JSON.parse(JSON.stringify(demodata.Mount))
|
|
288
|
+
let tmpColumn6=JSON.parse(JSON.stringify(demodata.Column))
|
|
289
|
+
tmpColumn6.series[1].data[2]={value:21,color:'#EE6666'}
|
|
290
|
+
//注意,因为组件内监听了chartData,构造chartData的时候,一定要先定义一个临时变量,构造完成后统一赋值给chartData绑定的变量,否则会导致多次渲染图表
|
|
291
|
+
this.chartsDataColumn6=tmpColumn6
|
|
292
|
+
this.chartsDataLine1=JSON.parse(JSON.stringify(demodata.Line))
|
|
293
|
+
this.chartsDataLine2=JSON.parse(JSON.stringify(demodata.Line))
|
|
294
|
+
this.chartsDataLine3=JSON.parse(JSON.stringify(demodata.Line))
|
|
295
|
+
this.chartsDataLine4=JSON.parse(JSON.stringify(demodata.Line))
|
|
296
|
+
let tmpLine5=JSON.parse(JSON.stringify(demodata.Line))
|
|
297
|
+
for (var i = 0; i < tmpLine5.series.length; i++) {
|
|
298
|
+
tmpLine5.series[i].data[2]=null
|
|
299
|
+
}
|
|
300
|
+
tmpLine5.series[1].connectNulls=true
|
|
301
|
+
this.chartsDataLine5=tmpLine5
|
|
302
|
+
this.chartsDataTLine=JSON.parse(JSON.stringify(demodata.TLine))
|
|
303
|
+
this.chartsDataScatter=JSON.parse(JSON.stringify(demodata.Scatter))
|
|
304
|
+
this.chartsDataBubble=JSON.parse(JSON.stringify(demodata.Bubble))
|
|
305
|
+
this.chartsDataArea1=JSON.parse(JSON.stringify(demodata.Line))
|
|
306
|
+
this.chartsDataArea2=JSON.parse(JSON.stringify(demodata.Line))
|
|
307
|
+
this.chartsDataMix1=JSON.parse(JSON.stringify(demodata.Mix))
|
|
308
|
+
this.chartsDataPie1=JSON.parse(JSON.stringify(demodata.PieA))
|
|
309
|
+
this.chartsDataRing1=JSON.parse(JSON.stringify(demodata.PieA))
|
|
310
|
+
this.chartsDataRose1=JSON.parse(JSON.stringify(demodata.PieA))
|
|
311
|
+
this.chartsDataRose2=JSON.parse(JSON.stringify(demodata.PieA))
|
|
312
|
+
this.chartsDataArcbar1=JSON.parse(JSON.stringify(demodata.Arcbar1))
|
|
313
|
+
this.chartsDataArcbar2=JSON.parse(JSON.stringify(demodata.Arcbar2))
|
|
314
|
+
this.chartsDataGauge1=JSON.parse(JSON.stringify(demodata.Gauge))
|
|
315
|
+
this.chartsDataGauge2=JSON.parse(JSON.stringify(demodata.Gauge))
|
|
316
|
+
this.chartsDataRadar1=JSON.parse(JSON.stringify(demodata.Radar))
|
|
317
|
+
this.chartsDataRadar2=JSON.parse(JSON.stringify(demodata.Radar))
|
|
318
|
+
this.chartsDataWord1=JSON.parse(JSON.stringify(demodata.Word))
|
|
319
|
+
this.chartsDataFunnel1=JSON.parse(JSON.stringify(demodata.PieA))
|
|
320
|
+
this.chartsDataMap1={series:mapdata.features}
|
|
321
|
+
this.chartsDataCandle1=JSON.parse(JSON.stringify(demodata.Candle))
|
|
322
|
+
}, 1500);
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
};
|
|
326
|
+
</script>
|
|
327
|
+
|
|
328
|
+
<style>
|
|
329
|
+
.content {
|
|
330
|
+
display: flex;
|
|
331
|
+
flex-direction: column;
|
|
332
|
+
flex: 1;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
.charts-box {
|
|
336
|
+
width: 100%;
|
|
337
|
+
height: 300px;
|
|
338
|
+
}
|
|
339
|
+
</style>
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view class="content">
|
|
3
|
+
<qiun-title-bar title="统计的开始日期"/>
|
|
4
|
+
<uni-datetime-picker type="date" v-model="startDate" start="2021-04-06" end="2021-06-05" return-type="string"></uni-datetime-picker>
|
|
5
|
+
<qiun-title-bar title="统计的结束日期"/>
|
|
6
|
+
<uni-datetime-picker type="date" v-model="endDate" start="2021-04-06" end="2021-06-05" return-type="string"></uni-datetime-picker>
|
|
7
|
+
<qiun-title-bar title="新增用户趋势"/>
|
|
8
|
+
<view class="charts-box">
|
|
9
|
+
<!--
|
|
10
|
+
datacom组件读取uniClinetDB示例
|
|
11
|
+
数据规范:
|
|
12
|
+
带有categories类型的图表定义如下
|
|
13
|
+
group:为series分组的name
|
|
14
|
+
text:为对应categories的字段,即x轴对应的数据
|
|
15
|
+
value:为series的分组data的值
|
|
16
|
+
获取后组件会自动处理categories和series数据,无需手动拼接处理
|
|
17
|
+
注意事项:
|
|
18
|
+
1、如已传入chartData的categories,则优先使用chartData的categories
|
|
19
|
+
2、如返回数据中无分组字段group,否则图例会显示"默认分组",如下
|
|
20
|
+
chartData={categories:["a","b","c"],series:[{name:"默认分组",data:[0,1,2]}]}
|
|
21
|
+
3、如果text在数据库中定义为enum类型,则需要传入textEnum来描述正确的text值
|
|
22
|
+
4、如果group在数据库中定义为enum类型,则需要传入groupEnum来描述正确的group值
|
|
23
|
+
-->
|
|
24
|
+
<qiun-data-charts
|
|
25
|
+
class="charts-box"
|
|
26
|
+
type="area"
|
|
27
|
+
:opts="{xAxis:{disableGrid:true,labelCount:3},yAxis:{data:[{format:'yAxisDemo2'}]},extra:{area:{type: 'curve',gradient:true}}}"
|
|
28
|
+
:eopts="{seriesTemplate:{areaStyle:{color: {type: 'linear',x: 0,y: 0,x2: 0,y2: 1,colorStops: [{offset: 0, color: '#1890FF'}, {offset: 1, color: '#FFFFFF'}],global: false}},smooth:true}}"
|
|
29
|
+
collection="qiun-charts-demo"
|
|
30
|
+
field="register_date,status"
|
|
31
|
+
:where="'register_date >= ' + new Date(startDate).getTime() + ' && register_date <= ' + new Date(endDate).getTime()"
|
|
32
|
+
groupby="dateToString(add(new Date(0),register_date),'%Y-%m-%d','+0800') as text,status as group"
|
|
33
|
+
group-field="count(*) as value"
|
|
34
|
+
:groupEnum="[{text: '正常',value: 0},{text: '禁用',value: 1},{text: '审核中',value: 2},{text: '审核拒绝',value: 3}]"
|
|
35
|
+
:startDate="startDate"
|
|
36
|
+
:endDate="endDate"
|
|
37
|
+
:echartsH5="true"
|
|
38
|
+
/>
|
|
39
|
+
</view>
|
|
40
|
+
<qiun-title-bar title="用户男女比例"/>
|
|
41
|
+
<view class="charts-box">
|
|
42
|
+
<!--
|
|
43
|
+
饼图类数据规范:
|
|
44
|
+
value:代表具体数值
|
|
45
|
+
text:代表value的描述
|
|
46
|
+
注意事项:
|
|
47
|
+
1、如果text在数据库中定义为enum类型,则需要传入textEnum来描述正确的text值
|
|
48
|
+
-->
|
|
49
|
+
<qiun-data-charts
|
|
50
|
+
class="charts-box"
|
|
51
|
+
type="pie"
|
|
52
|
+
collection="qiun-charts-demo"
|
|
53
|
+
field="register_date,gender"
|
|
54
|
+
:where="'register_date >= ' + new Date(startDate).getTime() + ' && register_date <= ' + new Date(endDate).getTime()"
|
|
55
|
+
groupby="gender as text"
|
|
56
|
+
group-field="count(*) as value"
|
|
57
|
+
:textEnum="[{value: 1,text: '男'},{value: 2,text: '女'}]"
|
|
58
|
+
/>
|
|
59
|
+
</view>
|
|
60
|
+
<qiun-title-bar title="销售额统计"/>
|
|
61
|
+
<view class="charts-box">
|
|
62
|
+
<qiun-data-charts
|
|
63
|
+
class="charts-box"
|
|
64
|
+
type="column"
|
|
65
|
+
:opts="{xAxis:{disableGrid:true,labelCount:3},yAxis:{data:[{format:'yAxisDemo1'}]}}"
|
|
66
|
+
collection="qiun-charts-demo"
|
|
67
|
+
field="register_date,gender,total_fee"
|
|
68
|
+
:where="'register_date >= ' + new Date(startDate).getTime() + ' && register_date <= ' + new Date(endDate).getTime()"
|
|
69
|
+
groupby="dateToString(add(new Date(0),register_date),'%Y-%m-%d','+0800') as text"
|
|
70
|
+
group-field="sum(total_fee) as value"
|
|
71
|
+
:startDate="startDate"
|
|
72
|
+
:endDate="endDate"
|
|
73
|
+
/>
|
|
74
|
+
</view>
|
|
75
|
+
</view>
|
|
76
|
+
</template>
|
|
77
|
+
|
|
78
|
+
<script>
|
|
79
|
+
//下面是uCharts的配置文件及qiun-data-charts组件的公用中转参数,可以从本配置文件中获取uCharts实例、opts配置、format配置(APP端因采用renderjs无法从此配置文件获取uCharts实例)
|
|
80
|
+
import uCharts from '@/uni_modules/qiun-data-charts/js_sdk/u-charts/config-ucharts.js';
|
|
81
|
+
|
|
82
|
+
export default {
|
|
83
|
+
data() {
|
|
84
|
+
return {
|
|
85
|
+
startDate: '2021-04-06',
|
|
86
|
+
endDate: '2021-04-13',
|
|
87
|
+
};
|
|
88
|
+
},
|
|
89
|
+
onLoad() {
|
|
90
|
+
|
|
91
|
+
},
|
|
92
|
+
methods: {
|
|
93
|
+
getServerData() {
|
|
94
|
+
|
|
95
|
+
},
|
|
96
|
+
complete(e) {
|
|
97
|
+
console.log(e);
|
|
98
|
+
//uCharts.instance[e.id]代表当前的图表实例(除APP端,APP不可在组件外调用uCharts的实例)
|
|
99
|
+
console.log(uCharts.instance[e.id]);
|
|
100
|
+
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
</script>
|
|
105
|
+
|
|
106
|
+
<style>
|
|
107
|
+
.content {
|
|
108
|
+
display: flex;
|
|
109
|
+
flex-direction: column;
|
|
110
|
+
flex: 1;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.charts-box {
|
|
114
|
+
width: 100%;
|
|
115
|
+
height: 300px;
|
|
116
|
+
}
|
|
117
|
+
</style>
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view class="content">
|
|
3
|
+
<view style="padding: 10px;">
|
|
4
|
+
<button class="uni-button" type="default" @click="updataWithLoading">带loading的更新</button>
|
|
5
|
+
</view>
|
|
6
|
+
<view style="padding: 10px;">
|
|
7
|
+
<button class="uni-button" type="default" @click="updataWithOutLoading">不显示loading的更新</button>
|
|
8
|
+
</view>
|
|
9
|
+
<qiun-title-bar title="仪表盘实时更新"/>
|
|
10
|
+
<view class="charts-box">
|
|
11
|
+
<qiun-data-charts type="gauge" :opts="gaugeOpts" :optsWatch="false" :chartData="chartsDataGauge1"/>
|
|
12
|
+
</view>
|
|
13
|
+
<qiun-title-bar title="localdata数据更新"/>
|
|
14
|
+
<view class="charts-box">
|
|
15
|
+
<qiun-data-charts type="column" :localdata="chartsDatalocaldata"/>
|
|
16
|
+
</view>
|
|
17
|
+
<qiun-title-bar title="chartData数据更新"/>
|
|
18
|
+
<view class="charts-box">
|
|
19
|
+
<qiun-data-charts type="line" :chartData="chartsDataLine"/>
|
|
20
|
+
</view>
|
|
21
|
+
<qiun-title-bar title="opts配置更新"/>
|
|
22
|
+
<view class="charts-box">
|
|
23
|
+
<qiun-data-charts type="ring" :opts="ringopts" :chartData="chartsDataRing"/>
|
|
24
|
+
</view>
|
|
25
|
+
<view style="padding: 10px;">
|
|
26
|
+
<button class="uni-button" type="default" @click="updataWithLoading">带loading的更新</button>
|
|
27
|
+
</view>
|
|
28
|
+
<view style="padding: 10px;">
|
|
29
|
+
<button class="uni-button" type="default" @click="updataWithOutLoading">不显示loading的更新</button>
|
|
30
|
+
</view>
|
|
31
|
+
<qiun-title-bar title="滚动条拖动更新"/>
|
|
32
|
+
<view class="charts-box">
|
|
33
|
+
<!-- 注意,开启动态打点opts中update需要赋值为true,来启用uCharts的updateData方法来更新视图 -->
|
|
34
|
+
<qiun-data-charts type="column" canvasId="scrollcolumnid" :opts="{update:true,enableScroll:true,xAxis:{scrollShow:true,itemCount:4,disableGrid:true,scrollAlign:'current'}}" :ontouch="true" :canvas2d="true" :chartData="chartsDataColumn" @scrollRight="scrollRight"/>
|
|
35
|
+
</view>
|
|
36
|
+
</view>
|
|
37
|
+
</template>
|
|
38
|
+
|
|
39
|
+
<script>
|
|
40
|
+
//下面是演示数据,您的项目不需要引用,数据需要您从服务器自行获取
|
|
41
|
+
import demodata from '@/mockdata/demodata.json';
|
|
42
|
+
var timec = null;
|
|
43
|
+
export default {
|
|
44
|
+
data() {
|
|
45
|
+
return {
|
|
46
|
+
//注意如果使用localdata数据格式,默认值的类型应该是数组
|
|
47
|
+
chartsDatalocaldata:[],
|
|
48
|
+
gaugeOpts:{update:true,duration:500,title:{name: '60Km/H',color: '#2fc25b',fontSize: 25,offsetY:50},subtitle: {name: '实时速度',color: '#666666',fontSize: 15,offsetY:-50}},
|
|
49
|
+
//注意如果使用chartsData数据格式,默认值的类型应该是对象
|
|
50
|
+
chartsDataLine:{},
|
|
51
|
+
chartsDataRing:{},
|
|
52
|
+
chartsDataColumn:{},
|
|
53
|
+
chartsDataGauge1:{},
|
|
54
|
+
ringopts:{},
|
|
55
|
+
scrollLoadingStatus:false
|
|
56
|
+
};
|
|
57
|
+
},
|
|
58
|
+
onReady() {
|
|
59
|
+
this.getServerData()
|
|
60
|
+
},
|
|
61
|
+
methods: {
|
|
62
|
+
getServerData() {
|
|
63
|
+
//模拟从服务器获取数据的过程,请替换为您封装好的request的API
|
|
64
|
+
setTimeout(() => {
|
|
65
|
+
//变更图表绑定的数据,一定要整体改变chartData或者localdata,否则会导致多次重新渲染或者监听不到变化的问题
|
|
66
|
+
this.chartsDatalocaldata=JSON.parse(JSON.stringify(demodata.localdata))
|
|
67
|
+
this.chartsDataLine=JSON.parse(JSON.stringify(demodata.Line))
|
|
68
|
+
this.chartsDataRing=JSON.parse(JSON.stringify(demodata.PieA))
|
|
69
|
+
this.chartsDataColumn=JSON.parse(JSON.stringify(demodata.Column))
|
|
70
|
+
//这里演示圆环图标题和副标题动态变化
|
|
71
|
+
let tmpopts = {
|
|
72
|
+
title:{
|
|
73
|
+
name:this.chartsDataRing.series[0].data[0].name
|
|
74
|
+
},
|
|
75
|
+
subtitle:{
|
|
76
|
+
name:this.chartsDataRing.series[0].data[0].value + "人"
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
this.ringopts = tmpopts;
|
|
80
|
+
}, 1500);
|
|
81
|
+
timec = setInterval(() => {
|
|
82
|
+
const value = Math.random();
|
|
83
|
+
this.gaugeOpts.title.name = (value * 100).toFixed(0) + 'Km/H';
|
|
84
|
+
this.chartsDataGauge1 = {
|
|
85
|
+
categories: [{"value":0.2,"color":"#1890ff"},{"value":0.8,"color":"#2fc25b"},{"value":1,"color":"#f04864"}],
|
|
86
|
+
series: [
|
|
87
|
+
{
|
|
88
|
+
name: "完成率",
|
|
89
|
+
data: value
|
|
90
|
+
}
|
|
91
|
+
]
|
|
92
|
+
};
|
|
93
|
+
}, 1000)
|
|
94
|
+
},
|
|
95
|
+
updataWithLoading(){
|
|
96
|
+
//为了展示loading状态,需要把当前绑定的数据先处理一下
|
|
97
|
+
//1:localdata格式的图表数据,展示loading状态需要将绑定数据复位为空数组
|
|
98
|
+
this.chartsDatalocaldata=[];
|
|
99
|
+
//2:chartData格式的图表数据,展示loading状态需要将绑定数据的series复位为空数组
|
|
100
|
+
this.chartsDataLine.series=[];
|
|
101
|
+
this.chartsDataRing.series=[];
|
|
102
|
+
|
|
103
|
+
//模拟从服务器获取数据的过程,请替换为您封装好的request的API
|
|
104
|
+
setTimeout(()=>{
|
|
105
|
+
//变更图表绑定的数据,一定要【整体改变】【整体改变】【整体改变】chartData或者localdata,否则会导致多次重新渲染或者监听不到变化的问题
|
|
106
|
+
//为了和原始数据不一样,我这里模拟构造一下随机数字。这里应该是您拼接chartData或者localdata的逻辑
|
|
107
|
+
let resLocaldata = this.randomLocalData(JSON.parse(JSON.stringify(demodata.localdata)))
|
|
108
|
+
let resLinedata = this.randomChartData(JSON.parse(JSON.stringify(demodata.Line)))
|
|
109
|
+
let resRingdata = this.randomChartData(JSON.parse(JSON.stringify(demodata.PieA)))
|
|
110
|
+
//这里演示圆环图标题和副标题动态变化
|
|
111
|
+
let tmpopts = {
|
|
112
|
+
title:{
|
|
113
|
+
name:resRingdata.series[0].data[0].name
|
|
114
|
+
},
|
|
115
|
+
subtitle:{
|
|
116
|
+
name:resRingdata.series[0].data[0].value + "人"
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
//变更图表绑定的数据,一定要【整体改变】【整体改变】【整体改变】chartData或者localdata
|
|
121
|
+
this.chartsDatalocaldata = resLocaldata;
|
|
122
|
+
this.chartsDataLine = resLinedata;
|
|
123
|
+
this.chartsDataRing = resRingdata;
|
|
124
|
+
this.ringopts = tmpopts;
|
|
125
|
+
},1000)
|
|
126
|
+
},
|
|
127
|
+
updataWithOutLoading(){
|
|
128
|
+
//模拟从服务器获取数据的过程,请替换为您封装好的request的API
|
|
129
|
+
setTimeout(()=>{
|
|
130
|
+
//变更图表绑定的数据,一定要【整体改变】【整体改变】【整体改变】chartData或者localdata,否则会导致多次重新渲染或者监听不到变化的问题
|
|
131
|
+
//为了和原始数据不一样,我这里模拟构造一下随机数字。这里应该是您拼接chartData或者localdata的逻辑
|
|
132
|
+
let resLocaldata = this.randomLocalData(JSON.parse(JSON.stringify(demodata.localdata)))
|
|
133
|
+
let resLinedata = this.randomChartData(JSON.parse(JSON.stringify(demodata.Line)))
|
|
134
|
+
let resRingdata = this.randomChartData(JSON.parse(JSON.stringify(demodata.PieA)))
|
|
135
|
+
//这里演示圆环图标题和副标题动态变化
|
|
136
|
+
let tmpopts = {
|
|
137
|
+
title:{
|
|
138
|
+
name:resRingdata.series[0].data[0].name
|
|
139
|
+
},
|
|
140
|
+
subtitle:{
|
|
141
|
+
name:resRingdata.series[0].data[0].value + "人"
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
//变更图表绑定的数据,一定要【整体改变】【整体改变】【整体改变】chartData或者localdata
|
|
146
|
+
this.chartsDatalocaldata = resLocaldata;
|
|
147
|
+
this.chartsDataLine = resLinedata;
|
|
148
|
+
this.chartsDataRing = resRingdata;
|
|
149
|
+
this.ringopts = tmpopts;
|
|
150
|
+
},200)
|
|
151
|
+
},
|
|
152
|
+
//滚动条加载更新
|
|
153
|
+
scrollRight(e){
|
|
154
|
+
//scrollLoadingStatus防抖方法
|
|
155
|
+
if(this.scrollLoadingStatus === true){
|
|
156
|
+
return;
|
|
157
|
+
}else{
|
|
158
|
+
this.scrollLoadingStatus = true
|
|
159
|
+
console.log(e);
|
|
160
|
+
this.getNewServerData();
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
//模拟滚动条加载,从服务器获取数据后拼接数据
|
|
164
|
+
getNewServerData(){
|
|
165
|
+
//模拟从服务器获取数据的过程,请替换为您封装好的request的API
|
|
166
|
+
setTimeout(()=>{
|
|
167
|
+
let tmpdata = this.chartsDataColumn;
|
|
168
|
+
tmpdata.categories = tmpdata.categories.concat(JSON.parse(JSON.stringify(demodata.Column.categories)))
|
|
169
|
+
for (var i = 0; i < tmpdata.series.length; i++) {
|
|
170
|
+
tmpdata.series[i].data=tmpdata.series[i].data.concat(JSON.parse(JSON.stringify(demodata.Column.series[i].data)))
|
|
171
|
+
}
|
|
172
|
+
//以上是我模拟的拼接增加的数据
|
|
173
|
+
this.chartsDataColumn=JSON.parse(JSON.stringify(tmpdata))
|
|
174
|
+
//防抖复位,下次触发可以继续加载
|
|
175
|
+
this.scrollLoadingStatus = false
|
|
176
|
+
},200)
|
|
177
|
+
},
|
|
178
|
+
//构造随机数字,模拟用,不必理会
|
|
179
|
+
randomLocalData(data){
|
|
180
|
+
for (var i = 0; i < data.length; i++) {
|
|
181
|
+
data[i].value = Math.floor(Math.random() * 100)
|
|
182
|
+
}
|
|
183
|
+
return data;
|
|
184
|
+
},
|
|
185
|
+
randomChartData(data){
|
|
186
|
+
for (var i = 0; i < data.series.length; i++) {
|
|
187
|
+
for (var j = 0; j < data.series[i].data.length; j++) {
|
|
188
|
+
if(typeof data.series[i].data[j] === 'number'){
|
|
189
|
+
data.series[i].data[j] = Math.floor(Math.random() * 100)
|
|
190
|
+
}else{
|
|
191
|
+
data.series[i].data[j].value = Math.floor(Math.random() * 100)
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
return data;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
};
|
|
199
|
+
</script>
|
|
200
|
+
|
|
201
|
+
<style>
|
|
202
|
+
.content {
|
|
203
|
+
display: flex;
|
|
204
|
+
flex-direction: column;
|
|
205
|
+
flex: 1;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.charts-box {
|
|
209
|
+
width: 100%;
|
|
210
|
+
height: 300px;
|
|
211
|
+
}
|
|
212
|
+
</style>
|