@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
|
@@ -54,8 +54,8 @@ function getScreenInfo() {
|
|
|
54
54
|
const screen = {};
|
|
55
55
|
uni.getSystemInfo({
|
|
56
56
|
success: (res) => {
|
|
57
|
-
|
|
58
|
-
screen.width = (res.windowWidth * 710) / 750;
|
|
57
|
+
screen.width = res.windowWidth;
|
|
58
|
+
// screen.width = (res.windowWidth * 710) / 750;
|
|
59
59
|
screen.height = res.windowHeight;
|
|
60
60
|
}
|
|
61
61
|
});
|
|
@@ -109,7 +109,7 @@ function strcharacterDiscode(str) {
|
|
|
109
109
|
str = str.replace(/</g, '<');
|
|
110
110
|
str = str.replace(/>/g, '>');
|
|
111
111
|
str = str.replace(/•/g, '•');
|
|
112
|
-
str = str.replace(/ /g, ' ');
|
|
112
|
+
// str = str.replace(/ /g, ' ');
|
|
113
113
|
return str;
|
|
114
114
|
}
|
|
115
115
|
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
## uParse 适用于 uni-app/mpvue 的富文本解析组件
|
|
2
|
+
|
|
3
|
+
> 支持 Html、Markdown 解析,Fork自: [mpvue-wxParse](https://github.com/F-loat/mpvue-wxParse)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
## 属性
|
|
7
|
+
|
|
8
|
+
| 名称 | 类型 | 默认值 | 描述 |
|
|
9
|
+
| -----------------|--------------- | ------------- | ---------------- |
|
|
10
|
+
| loading | Boolean | false | 数据加载状态 |
|
|
11
|
+
| className | String | — | 自定义 class 名称 |
|
|
12
|
+
| content | String | — | 渲染内容 |
|
|
13
|
+
| noData | String | 数据不能为空 | 空数据时的渲染展示 |
|
|
14
|
+
| startHandler | Function | 见源码 | 自定义 parser 函数 |
|
|
15
|
+
| endHandler | Function | null | 自定义 parser 函数 |
|
|
16
|
+
| charsHandler | Function | null | 自定义 parser 函数 |
|
|
17
|
+
| imageProp | Object | 见下文 | 图片相关参数 |
|
|
18
|
+
|
|
19
|
+
### 自定义 parser 函数具体介绍
|
|
20
|
+
|
|
21
|
+
* 传入的参数为当前节点 `node` 对象及解析结果 `results` 对象,例如 `startHandler(node, results)`
|
|
22
|
+
* 无需返回值,通过对传入的参数直接操作来完成需要的改动
|
|
23
|
+
* 自定义函数会在原解析函数处理之后执行
|
|
24
|
+
|
|
25
|
+
### imageProp 对象具体属性
|
|
26
|
+
|
|
27
|
+
| 名称 | 类型 | 默认值 | 描述 |
|
|
28
|
+
| -----------------|--------------- | ------------- | ------------------ |
|
|
29
|
+
| mode | String | 'aspectFit' | 图片裁剪、缩放的模式 |
|
|
30
|
+
| padding | Number | 0 | 图片内边距 |
|
|
31
|
+
| lazyLoad | Boolean | false | 图片懒加载 |
|
|
32
|
+
| domain | String | '' | 图片服务域名 |
|
|
33
|
+
|
|
34
|
+
## 事件
|
|
35
|
+
|
|
36
|
+
| 名称 | 参数 | 描述 |
|
|
37
|
+
| -----------------|----------------- | ---------------- |
|
|
38
|
+
| preview | 图片地址,原始事件 | 预览图片时触发 |
|
|
39
|
+
| navigate | 链接地址,原始事件 | 点击链接时触发 |
|
|
40
|
+
|
|
41
|
+
## 基本使用方法
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
``` vue
|
|
45
|
+
<template>
|
|
46
|
+
<div>
|
|
47
|
+
<u-parse :content="article" @preview="preview" @navigate="navigate" />
|
|
48
|
+
</div>
|
|
49
|
+
</template>
|
|
50
|
+
|
|
51
|
+
<script>
|
|
52
|
+
import uParse from '@/components/u-parse/u-parse.vue'
|
|
53
|
+
|
|
54
|
+
export default {
|
|
55
|
+
components: {
|
|
56
|
+
uParse
|
|
57
|
+
},
|
|
58
|
+
data () {
|
|
59
|
+
return {
|
|
60
|
+
article: '<div>我是HTML代码</div>'
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
methods: {
|
|
64
|
+
preview(src, e) {
|
|
65
|
+
// do something
|
|
66
|
+
},
|
|
67
|
+
navigate(href, e) {
|
|
68
|
+
// do something
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
</script>
|
|
73
|
+
|
|
74
|
+
<style>
|
|
75
|
+
@import url("@/components/u-parse/u-parse.css");
|
|
76
|
+
</style>
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
## 渲染 Markdown
|
|
81
|
+
|
|
82
|
+
> 先将 markdown 转换为 html 即可
|
|
83
|
+
|
|
84
|
+
```
|
|
85
|
+
npm install marked
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
``` js
|
|
89
|
+
import marked from 'marked'
|
|
90
|
+
import uParse from '@/components/u-parse/u-parse.vue'
|
|
91
|
+
|
|
92
|
+
export default {
|
|
93
|
+
components: {
|
|
94
|
+
uParse
|
|
95
|
+
},
|
|
96
|
+
data () {
|
|
97
|
+
return {
|
|
98
|
+
article: marked(`#hello, markdown!`)
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
```
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
*
|
|
6
6
|
* for: uni-app框架下 富文本解析
|
|
7
7
|
*/-->
|
|
8
|
-
|
|
9
8
|
<template>
|
|
10
9
|
<!--基础元素-->
|
|
11
10
|
<div class="wxParse" :class="className" v-if="!loading">
|
|
@@ -14,11 +13,9 @@
|
|
|
14
13
|
</block>
|
|
15
14
|
</div>
|
|
16
15
|
</template>
|
|
17
|
-
|
|
18
16
|
<script>
|
|
19
17
|
import HtmlToJson from './libs/html2json';
|
|
20
18
|
import wxParseTemplate from './components/wxParseTemplate0';
|
|
21
|
-
|
|
22
19
|
export default {
|
|
23
20
|
name: 'wxParse',
|
|
24
21
|
emits: ['navigate', 'preview'],
|
|
@@ -87,6 +84,7 @@ export default {
|
|
|
87
84
|
};
|
|
88
85
|
const results = HtmlToJson(parseData, customHandler, imageProp, this);
|
|
89
86
|
this.imageUrls = results.imageUrls;
|
|
87
|
+
console.log(results);
|
|
90
88
|
return results.nodes;
|
|
91
89
|
}
|
|
92
90
|
},
|
|
@@ -109,6 +107,3 @@ export default {
|
|
|
109
107
|
}
|
|
110
108
|
};
|
|
111
109
|
</script>
|
|
112
|
-
<style>
|
|
113
|
-
@import 'u-parse.css';
|
|
114
|
-
</style>
|
|
@@ -54,8 +54,8 @@ function getScreenInfo() {
|
|
|
54
54
|
const screen = {};
|
|
55
55
|
uni.getSystemInfo({
|
|
56
56
|
success: (res) => {
|
|
57
|
-
|
|
58
|
-
screen.width = (res.windowWidth * 710) / 750;
|
|
57
|
+
screen.width = res.windowWidth;
|
|
58
|
+
// screen.width = (res.windowWidth * 710) / 750;
|
|
59
59
|
screen.height = res.windowHeight;
|
|
60
60
|
}
|
|
61
61
|
});
|
|
@@ -109,7 +109,7 @@ function strcharacterDiscode(str) {
|
|
|
109
109
|
str = str.replace(/</g, '<');
|
|
110
110
|
str = str.replace(/>/g, '>');
|
|
111
111
|
str = str.replace(/•/g, '•');
|
|
112
|
-
str = str.replace(/ /g, ' ');
|
|
112
|
+
// str = str.replace(/ /g, ' ');
|
|
113
113
|
return str;
|
|
114
114
|
}
|
|
115
115
|
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
*
|
|
6
6
|
* for: uni-app框架下 富文本解析
|
|
7
7
|
*/-->
|
|
8
|
-
|
|
9
8
|
<template>
|
|
10
9
|
<!--基础元素-->
|
|
11
10
|
<div class="wxParse" :class="className" v-if="!loading">
|
|
@@ -14,11 +13,9 @@
|
|
|
14
13
|
</block>
|
|
15
14
|
</div>
|
|
16
15
|
</template>
|
|
17
|
-
|
|
18
16
|
<script>
|
|
19
17
|
import HtmlToJson from './libs/html2json';
|
|
20
18
|
import wxParseTemplate from './components/wxParseTemplate0';
|
|
21
|
-
|
|
22
19
|
export default {
|
|
23
20
|
name: 'wxParse',
|
|
24
21
|
emits: ['navigate', 'preview'],
|
|
@@ -87,6 +84,7 @@ export default {
|
|
|
87
84
|
};
|
|
88
85
|
const results = HtmlToJson(parseData, customHandler, imageProp, this);
|
|
89
86
|
this.imageUrls = results.imageUrls;
|
|
87
|
+
console.log(results);
|
|
90
88
|
return results.nodes;
|
|
91
89
|
}
|
|
92
90
|
},
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<template>
|
|
2
|
<!-- #ifndef VUE3 -->
|
|
1
3
|
<!-- '<audio/>' 组件不再维护,建议使用能力更强的 'uni.createInnerAudioContext' 接口 有时间再改-->
|
|
2
4
|
<!--增加audio标签支持-->
|
|
3
5
|
<audio
|
|
4
6
|
:id="node.attr.id"
|
|
5
7
|
:class="node.classStr"
|
|
6
8
|
:style="node.styleStr"
|
|
7
9
|
:src="node.attr.src"
|
|
8
10
|
:loop="node.attr.loop"
|
|
9
11
|
:poster="node.attr.poster"
|
|
10
12
|
:name="node.attr.name"
|
|
11
13
|
:author="node.attr.author"
|
|
12
14
|
controls
|
|
13
15
|
></audio>
|
|
14
16
|
<!-- #endif -->
|
|
15
17
|
<!-- #ifdef VUE3 -->
|
|
16
18
|
<view></view>
|
|
17
19
|
<!-- #endif -->
|
|
18
20
|
name: 'wxParseAudio',
|
|
19
21
|
props: {
|
|
20
22
|
node: {
|
|
21
23
|
type: Object,
|
|
22
24
|
default() {
|
|
23
25
|
return {};
|
|
24
26
|
}
|
|
25
27
|
}
|
|
26
28
|
}
|
|
@@ -48,13 +48,13 @@ export default {
|
|
|
48
48
|
const { width, height } = e.mp.detail;
|
|
49
49
|
const recal = this.wxAutoImageCal(width, height);
|
|
50
50
|
const { imageheight, imageWidth } = recal;
|
|
51
|
-
const { padding, mode } = this.node.attr;
|
|
52
|
-
|
|
51
|
+
const { padding, mode } = this.node.attr; //删除padding
|
|
52
|
+
|
|
53
53
|
// const { mode } = this.node.attr;
|
|
54
54
|
const { styleStr } = this.node;
|
|
55
55
|
const imageHeightStyle = mode === 'widthFix' ? '' : `height: ${imageheight}px;`;
|
|
56
|
-
this.newStyleStr = `${styleStr}; ${imageHeightStyle}; width: ${imageWidth}px; padding: 0 ${+padding}px;`;
|
|
57
|
-
|
|
56
|
+
this.newStyleStr = `${styleStr}; ${imageHeightStyle}; width: ${imageWidth}px; padding: 0 ${+padding}px;`; //删除padding
|
|
57
|
+
|
|
58
58
|
// this.newStyleStr = `${styleStr}; ${imageHeightStyle}; width: ${imageWidth}px;`;
|
|
59
59
|
},
|
|
60
60
|
// 计算视觉优先的图片宽高
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
2
|
+
<view class="wxTable" @tap="wxParseTableTap">
|
|
3
3
|
<rich-text :nodes="nodes" :class="node.classStr" :style="'user-select:' + parseSelect"></rich-text>
|
|
4
|
-
</
|
|
4
|
+
</view>
|
|
5
5
|
</template>
|
|
6
6
|
<script>
|
|
7
7
|
export default {
|
|
@@ -24,6 +24,14 @@ export default {
|
|
|
24
24
|
this.nodes = this.loadNode([this.node]);
|
|
25
25
|
},
|
|
26
26
|
methods: {
|
|
27
|
+
wxParseTableTap(e) {
|
|
28
|
+
let parent = this.$parent;
|
|
29
|
+
while (!parent.preview || typeof parent.preview !== 'function') {
|
|
30
|
+
// TODO 遍历获取父节点执行方法
|
|
31
|
+
parent = parent.$parent;
|
|
32
|
+
}
|
|
33
|
+
parent.preview('', e);
|
|
34
|
+
},
|
|
27
35
|
loadNode(node) {
|
|
28
36
|
let obj = [];
|
|
29
37
|
for (let children of node) {
|
|
@@ -32,10 +40,14 @@ export default {
|
|
|
32
40
|
name: children.tag,
|
|
33
41
|
attrs: {
|
|
34
42
|
class: children.classStr
|
|
35
|
-
// style: children.styleStr,
|
|
36
43
|
},
|
|
37
44
|
children: children.nodes ? this.loadNode(children.nodes) : []
|
|
38
45
|
};
|
|
46
|
+
if (children.tag === 'img') {
|
|
47
|
+
t.attrs.src = children.attr.src;
|
|
48
|
+
t.attrs.mode = children.attr.mode;
|
|
49
|
+
t.attrs.alt = children.attr.alt;
|
|
50
|
+
}
|
|
39
51
|
obj.push(t);
|
|
40
52
|
} else if (children.node == 'text') {
|
|
41
53
|
obj.push({
|
|
@@ -49,6 +61,3 @@ export default {
|
|
|
49
61
|
}
|
|
50
62
|
};
|
|
51
63
|
</script>
|
|
52
|
-
<style>
|
|
53
|
-
@import './style.css';
|
|
54
|
-
</style>
|
|
@@ -52,23 +52,24 @@
|
|
|
52
52
|
<!-- <block v-else-if="node.node == 'text'">{{node.text}}</block> -->
|
|
53
53
|
</template>
|
|
54
54
|
<script>
|
|
55
|
-
// #
|
|
55
|
+
// #ifndef VUE3
|
|
56
|
+
// #ifdef APP-PLUS || H5
|
|
56
57
|
import wxParseTemplate from './wxParseTemplate0';
|
|
57
58
|
// #endif
|
|
58
59
|
// #ifdef MP
|
|
59
60
|
import wxParseTemplate from './wxParseTemplate1';
|
|
60
61
|
// #endif
|
|
62
|
+
// #endif
|
|
63
|
+
// #ifdef VUE3
|
|
64
|
+
import wxParseTemplate from './wxParseTemplate1';
|
|
65
|
+
// #endif
|
|
61
66
|
import wxParseImg from './wxParseImg';
|
|
62
67
|
import wxParseVideo from './wxParseVideo';
|
|
63
68
|
import wxParseAudio from './wxParseAudio';
|
|
64
69
|
import wxParseTable from './wxParseTable';
|
|
70
|
+
|
|
65
71
|
export default {
|
|
66
|
-
// #ifdef APP-PLUS | H5
|
|
67
72
|
name: 'wxParseTemplate',
|
|
68
|
-
// #endif
|
|
69
|
-
// #ifdef MP
|
|
70
|
-
name: 'wxParseTemplate0',
|
|
71
|
-
// #endif
|
|
72
73
|
props: {
|
|
73
74
|
node: {}
|
|
74
75
|
},
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
<button v-if="node.tag == 'button'" type="default" size="mini" :class="node.classStr" :style="node.styleStr">
|
|
6
6
|
<wx-parse-template :node="node" />
|
|
7
7
|
</button>
|
|
8
|
+
|
|
8
9
|
<!--a类型-->
|
|
9
10
|
<view
|
|
10
11
|
v-else-if="node.tag == 'a'"
|
|
@@ -17,14 +18,17 @@
|
|
|
17
18
|
<wx-parse-template :node="node" />
|
|
18
19
|
</block>
|
|
19
20
|
</view>
|
|
21
|
+
|
|
20
22
|
<!--li类型-->
|
|
21
23
|
<view v-else-if="node.tag == 'li'" :class="node.classStr" :style="node.styleStr">
|
|
22
24
|
<block v-for="(node, index) of node.nodes" :key="index">
|
|
23
25
|
<wx-parse-template :node="node" />
|
|
24
26
|
</block>
|
|
25
27
|
</view>
|
|
28
|
+
|
|
26
29
|
<!--table类型-->
|
|
27
30
|
<wx-parse-table v-else-if="node.tag == 'table'" :class="node.classStr" :style="node.styleStr" :node="node" />
|
|
31
|
+
|
|
28
32
|
<!--br类型-->
|
|
29
33
|
<!-- #ifndef H5 -->
|
|
30
34
|
<text v-else-if="node.tag == 'br'">\n</text>
|
|
@@ -32,10 +36,13 @@
|
|
|
32
36
|
<!-- #ifdef H5 -->
|
|
33
37
|
<br v-else-if="node.tag == 'br'" />
|
|
34
38
|
<!-- #endif -->
|
|
39
|
+
|
|
35
40
|
<!--video类型-->
|
|
36
41
|
<wx-parse-video :node="node" v-else-if="node.tag == 'video'" />
|
|
42
|
+
|
|
37
43
|
<!--audio类型-->
|
|
38
44
|
<wx-parse-audio :node="node" v-else-if="node.tag == 'audio'" />
|
|
45
|
+
|
|
39
46
|
<!--img类型-->
|
|
40
47
|
<wx-parse-img :node="node" v-else-if="node.tag == 'img'" :style="node.styleStr" />
|
|
41
48
|
<!--其他标签-->
|
|
@@ -45,15 +52,18 @@
|
|
|
45
52
|
</block>
|
|
46
53
|
</view>
|
|
47
54
|
</block>
|
|
55
|
+
|
|
48
56
|
<!--判断是否是文本节点-->
|
|
49
57
|
<block v-else-if="node.node == 'text'">{{ node.text }}</block>
|
|
50
58
|
</template>
|
|
59
|
+
|
|
51
60
|
<script>
|
|
52
61
|
import wxParseTemplate from './wxParseTemplate2';
|
|
53
62
|
import wxParseImg from './wxParseImg';
|
|
54
63
|
import wxParseVideo from './wxParseVideo';
|
|
55
64
|
import wxParseAudio from './wxParseAudio';
|
|
56
65
|
import wxParseTable from './wxParseTable';
|
|
66
|
+
|
|
57
67
|
export default {
|
|
58
68
|
name: 'wxParseTemplate1',
|
|
59
69
|
props: {
|
|
@@ -54,8 +54,8 @@ function getScreenInfo() {
|
|
|
54
54
|
const screen = {};
|
|
55
55
|
uni.getSystemInfo({
|
|
56
56
|
success: (res) => {
|
|
57
|
-
|
|
58
|
-
screen.width = (res.windowWidth * 710) / 750;
|
|
57
|
+
screen.width = res.windowWidth;
|
|
58
|
+
// screen.width = (res.windowWidth * 710) / 750;
|
|
59
59
|
screen.height = res.windowHeight;
|
|
60
60
|
}
|
|
61
61
|
});
|
|
@@ -109,7 +109,7 @@ function strcharacterDiscode(str) {
|
|
|
109
109
|
str = str.replace(/</g, '<');
|
|
110
110
|
str = str.replace(/>/g, '>');
|
|
111
111
|
str = str.replace(/•/g, '•');
|
|
112
|
-
str = str.replace(/ /g, ' ');
|
|
112
|
+
// str = str.replace(/ /g, ' ');
|
|
113
113
|
return str;
|
|
114
114
|
}
|
|
115
115
|
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* detail : http://weappdev.com/t/wxparse-alpha0-1-html-markdown/184
|
|
10
10
|
*/
|
|
11
11
|
/**
|
|
12
|
-
* 请在全局下引入该文件,@import '
|
|
12
|
+
* 请在全局下引入该文件,@import 'u-parse.css';
|
|
13
13
|
*/
|
|
14
14
|
.wxParse {
|
|
15
15
|
user-select: none;
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
color: #333;
|
|
19
19
|
line-height: 1.5;
|
|
20
20
|
font-size: 1em;
|
|
21
|
-
text-align: justify;
|
|
21
|
+
text-align: justify;
|
|
22
22
|
}
|
|
23
23
|
.wxParse view,
|
|
24
24
|
.wxParse uni-view {
|
|
@@ -27,7 +27,6 @@
|
|
|
27
27
|
.wxParse .p {
|
|
28
28
|
padding-bottom: 0.5em;
|
|
29
29
|
clear: both;
|
|
30
|
-
/* letter-spacing: 0;//字间距 */
|
|
31
30
|
}
|
|
32
31
|
.wxParse .inline {
|
|
33
32
|
display: inline;
|
|
@@ -143,6 +142,7 @@
|
|
|
143
142
|
|
|
144
143
|
.wxParse .a {
|
|
145
144
|
color: #576b95;
|
|
145
|
+
color: deepskyblue;
|
|
146
146
|
}
|
|
147
147
|
|
|
148
148
|
.wxParse .video {
|
|
@@ -221,7 +221,7 @@
|
|
|
221
221
|
.wxParse .figure {
|
|
222
222
|
overflow: hidden;
|
|
223
223
|
}
|
|
224
|
-
.wxParse .
|
|
224
|
+
.wxParse .wxTable {
|
|
225
225
|
overflow: auto;
|
|
226
226
|
background-color: #f5f5f5;
|
|
227
227
|
background: #f5f5f5;
|
|
@@ -4,26 +4,30 @@
|
|
|
4
4
|
* github地址: https://github.com/dcloudio/uParse
|
|
5
5
|
*
|
|
6
6
|
* uni-app框架下 富文本解析
|
|
7
|
+
* 全局引入css文件,@import '/.../wxParse.css';
|
|
7
8
|
*
|
|
8
9
|
*/-->
|
|
10
|
+
|
|
9
11
|
<template>
|
|
10
12
|
<!--基础元素-->
|
|
11
|
-
<div class="wxParse" :class="className" :style="'user-select:' + userSelect"
|
|
13
|
+
<div class="wxParse" :class="className" :style="'user-select:' + userSelect">
|
|
12
14
|
<block v-for="(node, index) of nodes" :key="index">
|
|
13
|
-
<wxParseTemplate :node="node" />
|
|
15
|
+
<wxParseTemplate :node="node" v-if="!loading" />
|
|
14
16
|
</block>
|
|
15
17
|
</div>
|
|
16
18
|
</template>
|
|
19
|
+
|
|
17
20
|
<script>
|
|
18
21
|
import HtmlToJson from './libs/html2json';
|
|
19
22
|
import wxParseTemplate from './components/wxParseTemplate0';
|
|
20
23
|
export default {
|
|
21
24
|
name: 'wxParse',
|
|
25
|
+
emits: ['navigate', 'preview'],
|
|
22
26
|
props: {
|
|
23
27
|
// user-select:none;
|
|
24
28
|
userSelect: {
|
|
25
29
|
type: String,
|
|
26
|
-
default: '
|
|
30
|
+
default: 'text' //none |text| all | element
|
|
27
31
|
},
|
|
28
32
|
imgOptions: {
|
|
29
33
|
type: [Object, Boolean],
|
|
@@ -49,7 +53,7 @@ export default {
|
|
|
49
53
|
},
|
|
50
54
|
noData: {
|
|
51
55
|
type: String,
|
|
52
|
-
default: ''
|
|
56
|
+
default: '<text></text>'
|
|
53
57
|
},
|
|
54
58
|
startHandler: {
|
|
55
59
|
type: Function,
|
|
@@ -109,14 +113,18 @@ export default {
|
|
|
109
113
|
chars: charsHandler
|
|
110
114
|
};
|
|
111
115
|
let results = HtmlToJson(parseData, customHandler, imageProp, this);
|
|
116
|
+
|
|
112
117
|
this.imageUrls = results.imageUrls;
|
|
113
|
-
// this.nodes = results.nodes;
|
|
114
118
|
this.nodes = [];
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
119
|
+
setTimeout(() => {
|
|
120
|
+
this.nodes = results.nodes;
|
|
121
|
+
}, 20);
|
|
122
|
+
|
|
123
|
+
// results.nodes.forEach((item) => {
|
|
124
|
+
// setTimeout(() => {
|
|
125
|
+
// this.nodes.push(item)
|
|
126
|
+
// }, 0);
|
|
127
|
+
// })
|
|
120
128
|
},
|
|
121
129
|
getWidth() {
|
|
122
130
|
return new Promise((res, rej) => {
|
|
@@ -158,7 +166,6 @@ export default {
|
|
|
158
166
|
});
|
|
159
167
|
},
|
|
160
168
|
navigate(href, $event, attr) {
|
|
161
|
-
console.log(href, attr);
|
|
162
169
|
this.$emit('navigate', href, $event);
|
|
163
170
|
},
|
|
164
171
|
preview(src, $event) {
|