@10yun/cv-mobile-ui 0.5.55 → 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-dropdown-list/u-dropdown-list.vue +1 -2
- package/uview-plus/components/u-form/form.js +13 -12
- package/uview-plus/components/u-image/u-image-wu.vue +25 -1
- 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
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
<web-view
|
|
9
9
|
ref="web"
|
|
10
10
|
src="/static/app-plus/mp-html/local.html"
|
|
11
|
+
src2="./static/app-plus/u-parse/local.html"
|
|
12
|
+
src-old="/uni_modules/mp-html/static/app-plus/mp-html/local.html"
|
|
11
13
|
:style="'margin-top:-2px;height:' + height + 'px'"
|
|
12
14
|
@onPostMessage="_onMessage"
|
|
13
15
|
/>
|
|
@@ -16,7 +18,7 @@
|
|
|
16
18
|
</template>
|
|
17
19
|
<script>
|
|
18
20
|
/**
|
|
19
|
-
* mp-html v2.5.
|
|
21
|
+
* mp-html v2.5.2
|
|
20
22
|
* @description 富文本组件
|
|
21
23
|
* @tutorial https://github.com/jin-yufeng/mp-html
|
|
22
24
|
* @property {String} container-style 容器的样式
|
|
@@ -40,6 +42,8 @@
|
|
|
40
42
|
* @event {Function} linktap 链接被点击时触发
|
|
41
43
|
* @event {Function} play 音视频播放时触发
|
|
42
44
|
* @event {Function} error 媒体加载出错时触发
|
|
45
|
+
* @event {Function} pause 音视频暂停时触发
|
|
46
|
+
* @event {Function} fullscreenchange 视频全屏状态变化时触发
|
|
43
47
|
*/
|
|
44
48
|
// #ifndef APP-PLUS-NVUE
|
|
45
49
|
import node from './node/node';
|
|
@@ -117,6 +121,7 @@ export default {
|
|
|
117
121
|
watch: {
|
|
118
122
|
content(content) {
|
|
119
123
|
this.setContent(content);
|
|
124
|
+
// 20260323基于xt-parse this.setContent(this.handelBlank(content));
|
|
120
125
|
}
|
|
121
126
|
},
|
|
122
127
|
created() {
|
|
@@ -128,12 +133,35 @@ export default {
|
|
|
128
133
|
mounted() {
|
|
129
134
|
if (this.content && !this.nodes.length) {
|
|
130
135
|
this.setContent(this.content);
|
|
136
|
+
// 20260323 基于xt-parse this.setContent(this.handelBlank(this.content));
|
|
131
137
|
}
|
|
132
138
|
},
|
|
133
139
|
beforeUnmount() {
|
|
134
140
|
this._hook('onDetached');
|
|
135
141
|
},
|
|
142
|
+
beforeDestroy() {
|
|
143
|
+
this._hook('onDetached');
|
|
144
|
+
},
|
|
136
145
|
methods: {
|
|
146
|
+
/**
|
|
147
|
+
* @description
|
|
148
|
+
* 该函数主要用于处理传入的字符串,首先将连续的空格(两个及以上)替换为 ` `,
|
|
149
|
+
* 然后将空的段落标签 `<p></p>` 替换为 `<p><br></p>`。常用于处理 HTML 内容中的空白字符和空段落。
|
|
150
|
+
* @param {string} e - 需要处理的字符串,可能包含空白字符和空段落标签
|
|
151
|
+
* @returns {string} - 处理后的字符串,空格已替换为 ` `,空段落标签已替换为 `<p><br></p>`
|
|
152
|
+
*/
|
|
153
|
+
handelBlank(e) {
|
|
154
|
+
if (!e) return; // 如果传入的参数为空,则直接返回
|
|
155
|
+
let temp;
|
|
156
|
+
// 替换连续空格(两个及以上)为
|
|
157
|
+
temp = e.replace(/(\s{2,})(?![^<>]*>)/g, function (match) {
|
|
158
|
+
return match.replace(/ /g, ' '); // 将匹配到的空格替换为
|
|
159
|
+
});
|
|
160
|
+
// 替换空的段落标签 <p></p> 为 <p><br></p>
|
|
161
|
+
temp = temp.replace(/<p><\/p>/g, '<p><br></p>');
|
|
162
|
+
return temp; // 返回处理后的字符串
|
|
163
|
+
},
|
|
164
|
+
|
|
137
165
|
/**
|
|
138
166
|
* @description 将锚点跳转的范围限定在一个 scroll-view 内
|
|
139
167
|
* @param {Object} page scroll-view 所在页面的示例
|
|
@@ -1,576 +0,0 @@
|
|
|
1
|
-
# Painter 画板
|
|
2
|
-
> 可根据自身需求配置生成海报的画板
|
|
3
|
-
> [查看更多](http://liangei.gitee.io/limeui-docs/components/painter/)
|
|
4
|
-
|
|
5
|
-
<br>
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
### 平台兼容
|
|
9
|
-
|
|
10
|
-
| H5 | 微信小程序 | 支付宝小程序 | 百度小程序 | 头条小程序 | QQ 小程序 | App |
|
|
11
|
-
| --- | ---------- | ------------ | ---------- | ---------- | --------- | --- |
|
|
12
|
-
| √ | √ | 未测 | 未测 | √ | 未测 | √ |
|
|
13
|
-
|
|
14
|
-
<br>
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
### 代码演示
|
|
18
|
-
#### 基本用法
|
|
19
|
-
|
|
20
|
-
定一个画板对象,包含`width`、`height`、`background`,`views`为画板里的元素集,它是一个数组对象。<br>
|
|
21
|
-
元素类型目前有`view`、`text`、`image`<br>
|
|
22
|
-
css 对象里的位置都是相对于画板的绝对定位,支持`rpx`、`px`
|
|
23
|
-
|
|
24
|
-
```html
|
|
25
|
-
```
|
|
26
|
-
```html
|
|
27
|
-
<l-painter :board="poster"/>
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
```js
|
|
31
|
-
export default {
|
|
32
|
-
data() {
|
|
33
|
-
return {
|
|
34
|
-
base: {
|
|
35
|
-
width: '686rpx',
|
|
36
|
-
height: '130rpx',
|
|
37
|
-
views: [
|
|
38
|
-
{
|
|
39
|
-
type: 'view',
|
|
40
|
-
css: {
|
|
41
|
-
left: '0rpx',
|
|
42
|
-
top: '0rpx',
|
|
43
|
-
background: '#07c160',
|
|
44
|
-
width: '120rpx',
|
|
45
|
-
height: '120rpx'
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
type: 'view',
|
|
50
|
-
css: {
|
|
51
|
-
left: '180rpx',
|
|
52
|
-
top: '18rpx',
|
|
53
|
-
background: '#1989fa',
|
|
54
|
-
width: '80rpx',
|
|
55
|
-
height: '80rpx',
|
|
56
|
-
rotate: 50
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
]
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
<br><br>
|
|
68
|
-
|
|
69
|
-
#### 圆角
|
|
70
|
-
|
|
71
|
-
为可元素定一个圆角`radius`,支持`rpx`、`px`、`%`
|
|
72
|
-
|
|
73
|
-
```html
|
|
74
|
-
<l-painter :board="base"/>
|
|
75
|
-
```
|
|
76
|
-
|
|
77
|
-
```js
|
|
78
|
-
export default {
|
|
79
|
-
data() {
|
|
80
|
-
return {
|
|
81
|
-
base: {
|
|
82
|
-
width: '686rpx',
|
|
83
|
-
height: '130rpx',
|
|
84
|
-
views: [
|
|
85
|
-
{
|
|
86
|
-
type: 'view',
|
|
87
|
-
css: {
|
|
88
|
-
left: '0rpx',
|
|
89
|
-
top: '0rpx',
|
|
90
|
-
background: '#07c160',
|
|
91
|
-
width: '120rpx',
|
|
92
|
-
height: '120rpx',
|
|
93
|
-
radius: '16rpx 30rpx 10rpx 80rpx'
|
|
94
|
-
}
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
type: 'view',
|
|
98
|
-
css: {
|
|
99
|
-
left: '150rpx',
|
|
100
|
-
top: '0rpx',
|
|
101
|
-
background: '#1989fa',
|
|
102
|
-
width: '120rpx',
|
|
103
|
-
height: '120rpx',
|
|
104
|
-
radius: '16rpx 60rpx'
|
|
105
|
-
}
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
type: 'view',
|
|
109
|
-
css: {
|
|
110
|
-
left: '300rpx',
|
|
111
|
-
top: '0rpx',
|
|
112
|
-
background: '#ff976a',
|
|
113
|
-
width: '120rpx',
|
|
114
|
-
height: '120rpx',
|
|
115
|
-
radius: '50%'
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
]
|
|
119
|
-
};
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
```
|
|
125
|
-
|
|
126
|
-
<br><br>
|
|
127
|
-
|
|
128
|
-
#### 描边投影
|
|
129
|
-
|
|
130
|
-
为可元素定一个描边`border`和投影`shadow`,支持`rpx`、`px`
|
|
131
|
-
|
|
132
|
-
```html
|
|
133
|
-
<l-painter :board="base"/>
|
|
134
|
-
```
|
|
135
|
-
|
|
136
|
-
```js
|
|
137
|
-
export default {
|
|
138
|
-
data() {
|
|
139
|
-
return {
|
|
140
|
-
base: {
|
|
141
|
-
width: '686rpx',
|
|
142
|
-
height: '130rpx',
|
|
143
|
-
views: [
|
|
144
|
-
{
|
|
145
|
-
type: 'view',
|
|
146
|
-
css: {
|
|
147
|
-
left: '10rpx',
|
|
148
|
-
top: '10rpx',
|
|
149
|
-
background: 'rgba(7,193,96,.1)',
|
|
150
|
-
width: '120rpx',
|
|
151
|
-
height: '120rpx',
|
|
152
|
-
radius: '50%',
|
|
153
|
-
border: '2rpx dashed rgb(7,193,96)'
|
|
154
|
-
}
|
|
155
|
-
},
|
|
156
|
-
{
|
|
157
|
-
type: 'view',
|
|
158
|
-
css: {
|
|
159
|
-
left: '150rpx',
|
|
160
|
-
top: '10rpx',
|
|
161
|
-
background: 'rgba(25,137,250,.4)',
|
|
162
|
-
width: '120rpx',
|
|
163
|
-
height: '120rpx',
|
|
164
|
-
radius: '50%',
|
|
165
|
-
shadow: '0 5rpx 10rpx rgba(25,137,250,.8)'
|
|
166
|
-
}
|
|
167
|
-
},
|
|
168
|
-
{
|
|
169
|
-
type: 'view',
|
|
170
|
-
css: {
|
|
171
|
-
left: '300rpx',
|
|
172
|
-
top: '10rpx',
|
|
173
|
-
background: 'rgba(255, 151, 106, .1)',
|
|
174
|
-
width: '120rpx',
|
|
175
|
-
height: '120rpx',
|
|
176
|
-
radius: '50%',
|
|
177
|
-
border: '2rpx solid #ff976a'
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
]
|
|
181
|
-
};
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
```
|
|
187
|
-
|
|
188
|
-
<br><br>
|
|
189
|
-
|
|
190
|
-
#### 图片
|
|
191
|
-
|
|
192
|
-
元素类型为`image`时,需要一个图片地址`src`,图片地址支持`相对路径`和`网络地址`<br>
|
|
193
|
-
|
|
194
|
-
::: warning 温馨提示
|
|
195
|
-
当为网络地址时,
|
|
196
|
-
H5:需要解决跨域问题 <br>
|
|
197
|
-
小程序:需要配置 downloadFile 域名 <br>
|
|
198
|
-
建议使用 base64 图片
|
|
199
|
-
:::
|
|
200
|
-
|
|
201
|
-
```html
|
|
202
|
-
<l-painter :board="base"/>
|
|
203
|
-
```
|
|
204
|
-
|
|
205
|
-
```js
|
|
206
|
-
export default {
|
|
207
|
-
data() {
|
|
208
|
-
return {
|
|
209
|
-
base: {
|
|
210
|
-
width: '686rpx',
|
|
211
|
-
height: '130rpx',
|
|
212
|
-
views: [
|
|
213
|
-
{
|
|
214
|
-
type: 'image',
|
|
215
|
-
src: '/static/avatar-1.jpeg',
|
|
216
|
-
css: {
|
|
217
|
-
left: '0rpx',
|
|
218
|
-
top: '0rpx',
|
|
219
|
-
width: '120rpx',
|
|
220
|
-
height: '120rpx'
|
|
221
|
-
}
|
|
222
|
-
},
|
|
223
|
-
{
|
|
224
|
-
type: 'image',
|
|
225
|
-
src: '/static/avatar-2.jpg',
|
|
226
|
-
css: {
|
|
227
|
-
left: '150rpx',
|
|
228
|
-
top: '0rpx',
|
|
229
|
-
width: '120rpx',
|
|
230
|
-
height: '120rpx',
|
|
231
|
-
radius: '16rpx'
|
|
232
|
-
}
|
|
233
|
-
},
|
|
234
|
-
{
|
|
235
|
-
type: 'image',
|
|
236
|
-
src:'/static/avatar-3.jpeg',
|
|
237
|
-
css: {
|
|
238
|
-
left: '300rpx',
|
|
239
|
-
top: '0rpx',
|
|
240
|
-
background: '#ff976a',
|
|
241
|
-
width: '120rpx',
|
|
242
|
-
height: '120rpx',
|
|
243
|
-
radius: '50%'
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
]
|
|
247
|
-
};
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
```
|
|
253
|
-
|
|
254
|
-
<br><br>
|
|
255
|
-
|
|
256
|
-
#### 文字
|
|
257
|
-
|
|
258
|
-
元素类型`text`时,内容写在`text`里,支持`\n`换行符,css 的属性有字体大小`fontSize`、行高`lineHeight`、对齐`textAlign`、修饰`textDecoration`、粗细`fontWeight`、 宽度`width`、最大行数`maxLines`。
|
|
259
|
-
设置了最大行数和宽度时,当文字内容超过会显示省略号。
|
|
260
|
-
|
|
261
|
-
```html
|
|
262
|
-
<l-painter :board="base"/>
|
|
263
|
-
```
|
|
264
|
-
|
|
265
|
-
```js
|
|
266
|
-
export default {
|
|
267
|
-
data() {
|
|
268
|
-
return {
|
|
269
|
-
base: {
|
|
270
|
-
width: '686rpx',
|
|
271
|
-
height: '500rpx',
|
|
272
|
-
views: [
|
|
273
|
-
{
|
|
274
|
-
type: 'text',
|
|
275
|
-
text: '左对齐,下划线\n无风才到地,有风还满空\n缘渠偏似雪,莫近鬓毛生',
|
|
276
|
-
css: {
|
|
277
|
-
left: '0rpx',
|
|
278
|
-
top: '10rpx',
|
|
279
|
-
fontSize: '28rpx',
|
|
280
|
-
lineHeight: '36rpx',
|
|
281
|
-
textDecoration: 'underline'
|
|
282
|
-
}
|
|
283
|
-
},
|
|
284
|
-
{
|
|
285
|
-
type: 'text',
|
|
286
|
-
text: '居中,上划线\n无风才到地,有风还满空\n缘渠偏似雪,莫近鬓毛生',
|
|
287
|
-
css: {
|
|
288
|
-
left: '0rpx',
|
|
289
|
-
top: '150rpx',
|
|
290
|
-
fontSize: '28rpx',
|
|
291
|
-
lineHeight: '36rpx',
|
|
292
|
-
textAlign: 'center',
|
|
293
|
-
textDecoration: 'overline'
|
|
294
|
-
}
|
|
295
|
-
},
|
|
296
|
-
{
|
|
297
|
-
type: 'text',
|
|
298
|
-
text: '右对齐,中划线\n无风才到地,有风还满空\n缘渠偏似雪,莫近鬓毛生',
|
|
299
|
-
css: {
|
|
300
|
-
left: '0rpx',
|
|
301
|
-
top: '290rpx',
|
|
302
|
-
fontSize: '28rpx',
|
|
303
|
-
lineHeight: '36rpx',
|
|
304
|
-
textAlign: 'right',
|
|
305
|
-
textDecoration: 'line-through',
|
|
306
|
-
}
|
|
307
|
-
},
|
|
308
|
-
{
|
|
309
|
-
type: 'text',
|
|
310
|
-
text: '省略号\n明月几时有?把酒问青天。不知天上宫阙,今夕是何年。我欲乘风归去,又恐琼楼玉宇,高处不胜寒。起舞弄清影,何似在人间。',
|
|
311
|
-
css: {
|
|
312
|
-
left: '0rpx',
|
|
313
|
-
top: '420rpx',
|
|
314
|
-
fontSize: '28rpx',
|
|
315
|
-
maxLines: 2,
|
|
316
|
-
width: '686rpx',
|
|
317
|
-
lineHeight: '36rpx'
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
]
|
|
321
|
-
};
|
|
322
|
-
}
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
```
|
|
327
|
-
|
|
328
|
-
<br>
|
|
329
|
-
|
|
330
|
-
#### 调用接口
|
|
331
|
-
插件也允许通过`ref`获取内部方法来实现绘制和生成图片。
|
|
332
|
-
需要设置画板的`width`和`height`
|
|
333
|
-
```html
|
|
334
|
-
<l-painter ref="painter" width="686rpx" height="130rpx" />
|
|
335
|
-
<image :src="path" />
|
|
336
|
-
```
|
|
337
|
-
|
|
338
|
-
```js
|
|
339
|
-
export default {
|
|
340
|
-
data() {
|
|
341
|
-
return {
|
|
342
|
-
base {
|
|
343
|
-
views: [
|
|
344
|
-
{
|
|
345
|
-
type: 'view',
|
|
346
|
-
css: {
|
|
347
|
-
left: '0rpx',
|
|
348
|
-
top: '0rpx',
|
|
349
|
-
background: '#07c160',
|
|
350
|
-
width: '120rpx',
|
|
351
|
-
height: '120rpx'
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
|
-
]
|
|
355
|
-
};
|
|
356
|
-
path: '',
|
|
357
|
-
}
|
|
358
|
-
},
|
|
359
|
-
methods: {
|
|
360
|
-
onRender() {
|
|
361
|
-
// 支持通过调用render传入参数
|
|
362
|
-
const painter = this.$refs.painter
|
|
363
|
-
painter.render(this.base)
|
|
364
|
-
},
|
|
365
|
-
canvasToTempFilePath() {
|
|
366
|
-
const painter = this.$refs.painter
|
|
367
|
-
// 支持通过调用canvasToTempFilePath方法传入参数 调取生成图片
|
|
368
|
-
painter.canvasToTempFilePath().then(res => this.path = res.tempFilePath)
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
}
|
|
373
|
-
}
|
|
374
|
-
```
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
<br><br>
|
|
378
|
-
|
|
379
|
-
#### 提供一份海报样式案例
|
|
380
|
-
|
|
381
|
-
是否生成图片:`isRenderImage` <br>
|
|
382
|
-
生成图片成功:`success`返回一个图片临时地址。
|
|
383
|
-
|
|
384
|
-
```html
|
|
385
|
-
<l-painter
|
|
386
|
-
v-if="isShowPainter"
|
|
387
|
-
isRenderImage
|
|
388
|
-
custom-style="position: fixed; left: 200%;"
|
|
389
|
-
:board="base"
|
|
390
|
-
@success="path = $event"
|
|
391
|
-
/>
|
|
392
|
-
```
|
|
393
|
-
|
|
394
|
-
```js
|
|
395
|
-
export default {
|
|
396
|
-
data() {
|
|
397
|
-
return {
|
|
398
|
-
base: {
|
|
399
|
-
width: '750rpx',
|
|
400
|
-
height: '1114rpx',
|
|
401
|
-
background: '#F6F7FB',
|
|
402
|
-
views: [
|
|
403
|
-
{
|
|
404
|
-
type: 'view',
|
|
405
|
-
css: {
|
|
406
|
-
left: '40rpx',
|
|
407
|
-
top: '144rpx',
|
|
408
|
-
background: '#fff',
|
|
409
|
-
radius: '16rpx',
|
|
410
|
-
width: '670rpx',
|
|
411
|
-
height: '930rpx',
|
|
412
|
-
shadow: '0 20rpx 48rpx rgba(0,0,0,.05)'
|
|
413
|
-
}
|
|
414
|
-
},
|
|
415
|
-
{
|
|
416
|
-
type: 'image',
|
|
417
|
-
src: '/static/avatar-2.jpg',
|
|
418
|
-
mode: 'widthFix',
|
|
419
|
-
css: {
|
|
420
|
-
left: '40rpx',
|
|
421
|
-
top: '40rpx',
|
|
422
|
-
width: '84rpx',
|
|
423
|
-
height: '84rpx',
|
|
424
|
-
radius: '50%',
|
|
425
|
-
color: '#999'
|
|
426
|
-
}
|
|
427
|
-
},
|
|
428
|
-
{
|
|
429
|
-
type: 'text',
|
|
430
|
-
text: '隔壁老王',
|
|
431
|
-
css: {
|
|
432
|
-
color: '#333',
|
|
433
|
-
left: '144rpx',
|
|
434
|
-
top: '40rpx',
|
|
435
|
-
fontSize: '32rpx',
|
|
436
|
-
fontWeight: 'bold'
|
|
437
|
-
}
|
|
438
|
-
},
|
|
439
|
-
{
|
|
440
|
-
type: 'text',
|
|
441
|
-
text: '为您挑选了一个好物',
|
|
442
|
-
css: {
|
|
443
|
-
color: '#666',
|
|
444
|
-
left: '144rpx',
|
|
445
|
-
top: '90rpx',
|
|
446
|
-
fontSize: '24rpx'
|
|
447
|
-
}
|
|
448
|
-
},
|
|
449
|
-
{
|
|
450
|
-
type: 'image',
|
|
451
|
-
src: '/static/goods.jpg',
|
|
452
|
-
mode: 'widthFix',
|
|
453
|
-
css: {
|
|
454
|
-
left: '72rpx',
|
|
455
|
-
top: '176rpx',
|
|
456
|
-
width: '606rpx',
|
|
457
|
-
height: '606rpx',
|
|
458
|
-
radius: '12rpx'
|
|
459
|
-
}
|
|
460
|
-
},
|
|
461
|
-
{
|
|
462
|
-
type: 'text',
|
|
463
|
-
text: '¥39.90',
|
|
464
|
-
css: {
|
|
465
|
-
color: '#FF0000',
|
|
466
|
-
left: '66rpx',
|
|
467
|
-
top: '812rpx',
|
|
468
|
-
fontSize: '56rpx',
|
|
469
|
-
fontWeight: 'bold'
|
|
470
|
-
}
|
|
471
|
-
},
|
|
472
|
-
{
|
|
473
|
-
type: 'text',
|
|
474
|
-
text: '360儿童电话手表9X 智能语音问答定位支付手表 4G全网通20米游泳级防水视频通话拍照手表男女孩星空蓝',
|
|
475
|
-
css: {
|
|
476
|
-
maxLines: 2,
|
|
477
|
-
width: '396rpx',
|
|
478
|
-
color: '#333',
|
|
479
|
-
left: '72rpx',
|
|
480
|
-
top: '948rpx',
|
|
481
|
-
fontSize: '36rpx',
|
|
482
|
-
lineHeight: '50rpx'
|
|
483
|
-
}
|
|
484
|
-
},
|
|
485
|
-
{
|
|
486
|
-
type: 'image',
|
|
487
|
-
src: '/static/qr.png',
|
|
488
|
-
mode: 'widthFix',
|
|
489
|
-
css: {
|
|
490
|
-
left: '500rpx',
|
|
491
|
-
top: '864rpx',
|
|
492
|
-
width: '178rpx',
|
|
493
|
-
height: '178rpx'
|
|
494
|
-
}
|
|
495
|
-
}
|
|
496
|
-
]
|
|
497
|
-
};
|
|
498
|
-
}
|
|
499
|
-
},
|
|
500
|
-
methods: {
|
|
501
|
-
saveImage() {
|
|
502
|
-
this.isShowPopup = false
|
|
503
|
-
uni.saveImageToPhotosAlbum({
|
|
504
|
-
filePath: this.path,
|
|
505
|
-
success(res) {
|
|
506
|
-
uni.showToast({
|
|
507
|
-
title: '已保存到相册',
|
|
508
|
-
icon: 'success',
|
|
509
|
-
duration: 2000
|
|
510
|
-
})
|
|
511
|
-
}
|
|
512
|
-
})
|
|
513
|
-
},
|
|
514
|
-
}
|
|
515
|
-
}
|
|
516
|
-
|
|
517
|
-
```
|
|
518
|
-
|
|
519
|
-
## API
|
|
520
|
-
|
|
521
|
-
### Props
|
|
522
|
-
|
|
523
|
-
| 参数 | 说明 | 类型 | 默认值 |
|
|
524
|
-
| ------------- | ------------ | ---------------- | ------------ |
|
|
525
|
-
| board | 画板对象 | <em>object</em> | 参数请向下看 |
|
|
526
|
-
| customStyle | 自定义样式 | <em>string</em> | |
|
|
527
|
-
| isRenderImage | 是否生成图片 | <em>boolean</em> | `false` |
|
|
528
|
-
|
|
529
|
-
<br>
|
|
530
|
-
|
|
531
|
-
#### Board
|
|
532
|
-
|
|
533
|
-
| 参数 | 说明 | 类型 |
|
|
534
|
-
| ---------- | ---------------------------------- | --------------- |
|
|
535
|
-
| width | 画板的宽度 | <em>string</em> |
|
|
536
|
-
| height | 画板的高度 | <em>string</em> |
|
|
537
|
-
| background | 画板的背景色 | <em>string</em> |
|
|
538
|
-
| views | 画板的元素集,请向下看各元素的参数 | <em>object</em> |
|
|
539
|
-
|
|
540
|
-
<br>
|
|
541
|
-
|
|
542
|
-
#### 元素 View
|
|
543
|
-
|
|
544
|
-
| 参数 | 说明 |
|
|
545
|
-
| ---- | --------------------------------------------------------------------------------------------------- |
|
|
546
|
-
| type | 元素类型`view` |
|
|
547
|
-
| css | 元素的样式,`top`、`left`、`width`、`height`、`background`、`radius`、`border`、`shadow` 、`rotate` |
|
|
548
|
-
|
|
549
|
-
<br>
|
|
550
|
-
|
|
551
|
-
#### 元素 text
|
|
552
|
-
|
|
553
|
-
| 参数 | 说明 |
|
|
554
|
-
| ---- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
555
|
-
| type | 元素类型`text` |
|
|
556
|
-
| text | 文本内容 |
|
|
557
|
-
| css | 元素的样式,`top`、`left`、`fontSize`、`fontWeight`、`fontFamily`、`width`、`lineHeight`、`color`、`textDecoration`、`textAlign`:center, left, right、最大行数:`maxLines` |
|
|
558
|
-
|
|
559
|
-
<br>
|
|
560
|
-
|
|
561
|
-
#### 元素 image
|
|
562
|
-
|
|
563
|
-
| 参数 | 说明 |
|
|
564
|
-
| ---- | -------------------------------------------------------------------------- |
|
|
565
|
-
| type | 元素类型`image` |
|
|
566
|
-
| src | 图片地址 |
|
|
567
|
-
| css | 元素的样式,`top`、`left`、`width`、`height`、`radius`、`border`、`shadow` |
|
|
568
|
-
|
|
569
|
-
<br>
|
|
570
|
-
|
|
571
|
-
### 事件 Events
|
|
572
|
-
|
|
573
|
-
| 事件名 | 说明 | 回调 |
|
|
574
|
-
| ------- | ------------ | -------------- |
|
|
575
|
-
| success | 生成图片成功 | $event |
|
|
576
|
-
| fail | 生成图片失败 | {error: error} |
|