@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
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
## 为减小组件包的大小,默认组件包中不包含编辑、latex 公式等扩展功能,需要使用扩展功能的请参考下方的 插件扩展 栏的说明
|
|
2
|
+
|
|
3
|
+
## 功能介绍
|
|
4
|
+
- 全端支持(含 `v3、NVUE`)
|
|
5
|
+
- 支持丰富的标签(包括 `table`、`video`、`svg` 等)
|
|
6
|
+
- 支持丰富的事件效果(自动预览图片、链接处理等)
|
|
7
|
+
- 支持设置占位图(加载中、出错时、预览时)
|
|
8
|
+
- 支持锚点跳转、长按复制等丰富功能
|
|
9
|
+
- 支持大部分 *html* 实体
|
|
10
|
+
- 丰富的插件(关键词搜索、内容编辑、`latex` 公式等)
|
|
11
|
+
- 效率高、容错性强且轻量化
|
|
12
|
+
|
|
13
|
+
查看 [功能介绍](https://jin-yufeng.github.io/mp-html/#/overview/feature) 了解更多
|
|
14
|
+
|
|
15
|
+
## 使用方法
|
|
16
|
+
- `uni_modules` 方式
|
|
17
|
+
1. 点击右上角的 `使用 HBuilder X 导入插件` 按钮直接导入项目或点击 `下载插件 ZIP` 按钮下载插件包并解压到项目的 `uni_modules/mp-html` 目录下
|
|
18
|
+
2. 在需要使用页面的 `(n)vue` 文件中添加
|
|
19
|
+
```html
|
|
20
|
+
<!-- 不需要引入,可直接使用 -->
|
|
21
|
+
<mp-html :content="html" />
|
|
22
|
+
```
|
|
23
|
+
```javascript
|
|
24
|
+
export default {
|
|
25
|
+
data() {
|
|
26
|
+
return {
|
|
27
|
+
html: '<div>Hello World!</div>'
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
```
|
|
32
|
+
3. 需要更新版本时在 `HBuilder X` 中右键 `uni_modules/mp-html` 目录选择 `从插件市场更新` 即可
|
|
33
|
+
|
|
34
|
+
- 源码方式
|
|
35
|
+
1. 从 [github](https://github.com/jin-yufeng/mp-html/tree/master/dist/uni-app) 或 [gitee](https://gitee.com/jin-yufeng/mp-html/tree/master/dist/uni-app) 下载源码
|
|
36
|
+
插件市场的 **非 uni_modules 版本** 无法更新,不建议从插件市场获取
|
|
37
|
+
2. 在需要使用页面的 `(n)vue` 文件中添加
|
|
38
|
+
```html
|
|
39
|
+
<mp-html :content="html" />
|
|
40
|
+
```
|
|
41
|
+
```javascript
|
|
42
|
+
import mpHtml from '@/components/mp-html/mp-html'
|
|
43
|
+
export default {
|
|
44
|
+
// HBuilderX 2.5.5+ 可以通过 easycom 自动引入
|
|
45
|
+
components: {
|
|
46
|
+
mpHtml
|
|
47
|
+
},
|
|
48
|
+
data() {
|
|
49
|
+
return {
|
|
50
|
+
html: '<div>Hello World!</div>'
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
- npm 方式
|
|
57
|
+
1. 在项目根目录下执行
|
|
58
|
+
```bash
|
|
59
|
+
npm install mp-html
|
|
60
|
+
```
|
|
61
|
+
2. 在需要使用页面的 `(n)vue` 文件中添加
|
|
62
|
+
```html
|
|
63
|
+
<mp-html :content="html" />
|
|
64
|
+
```
|
|
65
|
+
```javascript
|
|
66
|
+
import mpHtml from 'mp-html/dist/uni-app/components/mp-html/mp-html'
|
|
67
|
+
export default {
|
|
68
|
+
// 不可省略
|
|
69
|
+
components: {
|
|
70
|
+
mpHtml
|
|
71
|
+
},
|
|
72
|
+
data() {
|
|
73
|
+
return {
|
|
74
|
+
html: '<div>Hello World!</div>'
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
```
|
|
79
|
+
3. 需要更新版本时执行以下命令即可
|
|
80
|
+
```bash
|
|
81
|
+
npm update mp-html
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
使用 *cli* 方式运行的项目,通过 *npm* 方式引入时,需要在 *vue.config.js* 中配置 *transpileDependencies*,详情可见 [#330](https://github.com/jin-yufeng/mp-html/issues/330#issuecomment-913617687)
|
|
85
|
+
如果在 **nvue** 中使用还要将 `dist/uni-app/static` 目录下的内容拷贝到项目的 `static` 目录下,否则无法运行
|
|
86
|
+
|
|
87
|
+
查看 [快速开始](https://jin-yufeng.github.io/mp-html/#/overview/quickstart) 了解更多
|
|
88
|
+
|
|
89
|
+
## 组件属性
|
|
90
|
+
|
|
91
|
+
| 属性 | 类型 | 默认值 | 说明 |
|
|
92
|
+
|:---:|:---:|:---:|---|
|
|
93
|
+
| container-style | String | | 容器的样式([2.1.0+](https://jin-yufeng.github.io/mp-html/#/changelog/changelog#v210)) |
|
|
94
|
+
| content | String | | 用于渲染的 html 字符串 |
|
|
95
|
+
| copy-link | Boolean | true | 是否允许外部链接被点击时自动复制 |
|
|
96
|
+
| domain | String | | 主域名(用于链接拼接) |
|
|
97
|
+
| error-img | String | | 图片出错时的占位图链接 |
|
|
98
|
+
| lazy-load | Boolean | false | 是否开启图片懒加载 |
|
|
99
|
+
| loading-img | String | | 图片加载过程中的占位图链接 |
|
|
100
|
+
| pause-video | Boolean | true | 是否在播放一个视频时自动暂停其他视频 |
|
|
101
|
+
| preview-img | Boolean | true | 是否允许图片被点击时自动预览 |
|
|
102
|
+
| scroll-table | Boolean | false | 是否给每个表格添加一个滚动层使其能单独横向滚动 |
|
|
103
|
+
| selectable | Boolean | false | 是否开启文本长按复制 |
|
|
104
|
+
| set-title | Boolean | true | 是否将 title 标签的内容设置到页面标题 |
|
|
105
|
+
| show-img-menu | Boolean | true | 是否允许图片被长按时显示菜单 |
|
|
106
|
+
| tag-style | Object | | 设置标签的默认样式 |
|
|
107
|
+
| use-anchor | Boolean | false | 是否使用锚点链接 |
|
|
108
|
+
|
|
109
|
+
查看 [属性](https://jin-yufeng.github.io/mp-html/#/basic/prop) 了解更多
|
|
110
|
+
|
|
111
|
+
## 组件事件
|
|
112
|
+
|
|
113
|
+
| 名称 | 触发时机 |
|
|
114
|
+
|:---:|---|
|
|
115
|
+
| load | dom 树加载完毕时 |
|
|
116
|
+
| ready | 图片加载完毕时 |
|
|
117
|
+
| error | 发生渲染错误时 |
|
|
118
|
+
| imgtap | 图片被点击时 |
|
|
119
|
+
| linktap | 链接被点击时 |
|
|
120
|
+
| play | 音视频播放时 |
|
|
121
|
+
|
|
122
|
+
查看 [事件](https://jin-yufeng.github.io/mp-html/#/basic/event) 了解更多
|
|
123
|
+
|
|
124
|
+
## api
|
|
125
|
+
组件实例上提供了一些 `api` 方法可供调用
|
|
126
|
+
|
|
127
|
+
| 名称 | 作用 |
|
|
128
|
+
|:---:|---|
|
|
129
|
+
| in | 将锚点跳转的范围限定在一个 scroll-view 内 |
|
|
130
|
+
| navigateTo | 锚点跳转 |
|
|
131
|
+
| getText | 获取文本内容 |
|
|
132
|
+
| getRect | 获取富文本内容的位置和大小 |
|
|
133
|
+
| setContent | 设置富文本内容 |
|
|
134
|
+
| imgList | 获取所有图片的数组 |
|
|
135
|
+
| pauseMedia | 暂停播放音视频([2.2.2+](https://jin-yufeng.github.io/mp-html/#/changelog/changelog#v222)) |
|
|
136
|
+
| setPlaybackRate | 设置音视频播放速率([2.4.0+](https://jin-yufeng.github.io/mp-html/#/changelog/changelog#v240)) |
|
|
137
|
+
|
|
138
|
+
查看 [api](https://jin-yufeng.github.io/mp-html/#/advanced/api) 了解更多
|
|
139
|
+
|
|
140
|
+
## 插件扩展
|
|
141
|
+
除基本功能外,本组件还提供了丰富的扩展,可按照需要选用
|
|
142
|
+
|
|
143
|
+
| 名称 | 作用 |
|
|
144
|
+
|:---:|---|
|
|
145
|
+
| audio | 音乐播放器 |
|
|
146
|
+
| editable | 富文本 **编辑**([示例项目](https://mp-html.oss-cn-hangzhou.aliyuncs.com/editable.zip)) |
|
|
147
|
+
| emoji | 解析 emoji |
|
|
148
|
+
| highlight | 代码块高亮显示 |
|
|
149
|
+
| markdown | 渲染 markdown |
|
|
150
|
+
| search | 关键词搜索 |
|
|
151
|
+
| style | 匹配 style 标签中的样式 |
|
|
152
|
+
| txv-video | 使用腾讯视频 |
|
|
153
|
+
| img-cache | 图片缓存 by [@PentaTea](https://github.com/PentaTea) |
|
|
154
|
+
| latex | 渲染 latex 公式 by [@Zeng-J](https://github.com/Zeng-J) |
|
|
155
|
+
|
|
156
|
+
从插件市场导入的包中 **不含有** 扩展插件,使用插件需通过微信小程序 `富文本插件` 获取或参考以下方法进行打包:
|
|
157
|
+
1. 获取完整组件包
|
|
158
|
+
```bash
|
|
159
|
+
npm install mp-html
|
|
160
|
+
```
|
|
161
|
+
2. 编辑 `tools/config.js` 中的 `plugins` 项,选择需要的插件
|
|
162
|
+
3. 生成新的组件包
|
|
163
|
+
在 `node_modules/mp-html` 目录下执行
|
|
164
|
+
```bash
|
|
165
|
+
npm install
|
|
166
|
+
npm run build:uni-app
|
|
167
|
+
```
|
|
168
|
+
4. 拷贝 `dist/uni-app` 中的内容到项目根目录
|
|
169
|
+
|
|
170
|
+
查看 [插件](https://jin-yufeng.github.io/mp-html/#/advanced/plugin) 了解更多
|
|
171
|
+
|
|
172
|
+
## 关于 nvue
|
|
173
|
+
`nvue` 使用原生渲染,不支持部分 `css` 样式,为实现和 `html` 相同的效果,组件内部通过 `web-view` 进行渲染,性能上差于原生,根据 `weex` 官方建议,`web` 标签仅应用在非常规的降级场景。因此,如果通过原生的方式(如 `richtext`)能够满足需要,则不建议使用本组件,如果有较多的富文本内容,则可以直接使用 `vue` 页面
|
|
174
|
+
由于渲染方式与其他端不同,有以下限制:
|
|
175
|
+
1. 不支持 `lazy-load` 属性
|
|
176
|
+
2. 视频不支持全屏播放
|
|
177
|
+
3. 如果在 `flex-direction: row` 的容器中使用,需要给组件设置宽度或设置 `flex: 1` 占满剩余宽度
|
|
178
|
+
|
|
179
|
+
纯 `nvue` 模式下,[此问题](https://ask.dcloud.net.cn/question/119678) 修复前,不支持通过 `uni_modules` 引入,需要本地引入(将 [dist/uni-app](https://github.com/jin-yufeng/mp-html/tree/master/dist/uni-app) 中的内容拷贝到项目根目录下)
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
## 问题反馈
|
|
183
|
+
遇到问题时,请先查阅 [常见问题](https://jin-yufeng.github.io/mp-html/#/question/faq) 和 [issue](https://github.com/jin-yufeng/mp-html/issues) 中是否已有相同的问题
|
|
184
|
+
可通过 [issue](https://github.com/jin-yufeng/mp-html/issues/new/choose) 、插件问答或发送邮件到 [mp_html@126.com](mailto:mp_html@126.com) 提问,不建议在评论区提问(不方便回复)
|
|
185
|
+
提问请严格按照 [issue 模板](https://github.com/jin-yufeng/mp-html/issues/new/choose) ,描述清楚使用环境、`html` 内容或可复现的 `demo` 项目以及复现方式,对于 **描述不清**、**无法复现** 或重复的问题将不予回复
|
|
186
|
+
|
|
187
|
+
欢迎加入 `QQ` 交流群:
|
|
188
|
+
群1(已满):`699734691`
|
|
189
|
+
群2(已满):`778239129`
|
|
190
|
+
群3:`960265313`
|
|
191
|
+
|
|
192
|
+
查看 [问题反馈](https://jin-yufeng.github.io/mp-html/#/question/feedback) 了解更多
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
## v2.5.2(2025-12-14)
|
|
2
|
+
1. `A` 增加了音视频暂停 [pause](https://jin-yufeng.github.io/mp-html/#/basic/event?id=pause) 和视频全屏 [fullscreenchange](https://jin-yufeng.github.io/mp-html/#/basic/event?id=fullscreenchange) 事件 [#495](https://github.com/jin-yufeng/mp-html/issues/495) [#595](https://github.com/jin-yufeng/mp-html/issues/595)
|
|
3
|
+
2. `U` 优化了 [流式输出](https://jin-yufeng.github.io/mp-html/#/overview/feature?id=stream) 效果,通过差量更新解决闪烁问题 [详细](https://github.com/jin-yufeng/mp-html/issues/657)
|
|
4
|
+
3. `U` `latex` 插件更新字体文件 [详细](https://github.com/jin-yufeng/mp-html/pull/647) by [@JiuyeXD](https://github.com/JiuyeXD)
|
|
5
|
+
4. `U` 更新 `markdown` 插件中 `marked.js` 版本 [详细](https://github.com/jin-yufeng/mp-html/issues/672)
|
|
6
|
+
5. `U` 微信小程序替换遗漏的废弃 `api` `getSystemInfoSync` [详细](https://github.com/jin-yufeng/mp-html/pull/653) by [@zcSkr](https://github.com/zcSkr)
|
|
7
|
+
6. `F` 修复了 `markdown` 插件加粗文本遇到中文符号无效的问题 [详细](https://github.com/jin-yufeng/mp-html/pull/664) by [@qp666](https://github.com/qp666)
|
|
8
|
+
## v2.5.1(2025-04-20)
|
|
9
|
+
1. `U` 适配鸿蒙 `APP` [详细](https://github.com/jin-yufeng/mp-html/issues/615)
|
|
10
|
+
2. `U` 微信小程序替换废弃 `api` `getSystemInfoSync` [详细](https://github.com/jin-yufeng/mp-html/issues/613)
|
|
11
|
+
3. `F` 修复了 `app` 端播放视频可能报错的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/617)
|
|
12
|
+
4. `F` 修复了 `latex` 插件可能出现 `xxx can be used only in display mode` 的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/632)
|
|
13
|
+
5. `F` 修复了 `uni-app` 包 `latex` 公式可能不显示的问题 [#599](https://github.com/jin-yufeng/mp-html/issues/599)、[#627](https://github.com/jin-yufeng/mp-html/issues/627)
|
|
14
|
+
## v2.5.0(2024-04-22)
|
|
15
|
+
1. `U` `play` 事件增加返回 `src` 等信息 [详细](https://github.com/jin-yufeng/mp-html/issues/526)
|
|
16
|
+
2. `U` `preview-img` 属性支持设置为 `all` 开启 `base64` 图片预览 [详细](https://github.com/jin-yufeng/mp-html/issues/536)
|
|
17
|
+
3. `U` `editable` 插件增加简易模式(点击文字直接编辑)
|
|
18
|
+
4. `U` `latex` 插件支持块级公式 [详细](https://github.com/jin-yufeng/mp-html/issues/582)
|
|
19
|
+
5. `F` 修复了表格部分情况下背景丢失的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/587)
|
|
20
|
+
6. `F` 修复了部分 `svg` 无法显示的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/591)
|
|
21
|
+
7. `F` 修复了 `h5` 和 `app` 端部分情况下样式无法识别的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/518)
|
|
22
|
+
8. `F` 修复了 `latex` 插件部分情况下显示不正确的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/580)
|
|
23
|
+
9. `F` 修复了 `editable` 插件表格无法删除的问题
|
|
24
|
+
10. `F` 修复了 `editable` 插件 `vue3` `h5` 端点击图片报错的问题
|
|
25
|
+
11. `F` 修复了 `editable` 插件点击表格没有菜单栏的问题
|
|
26
|
+
## v2.4.3(2024-01-21)
|
|
27
|
+
1. `A` 增加 [card](https://jin-yufeng.gitee.io/mp-html/#/advanced/plugin#card) 插件 [详细](https://github.com/jin-yufeng/mp-html/pull/533) by [@whoooami](https://github.com/whoooami)
|
|
28
|
+
2. `F` 修复了 `svg` 中包含 `foreignobject` 可能不显示的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/523)
|
|
29
|
+
3. `F` 修复了合并单元格的表格部分情况下显示不正确的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/561)
|
|
30
|
+
4. `F` 修复了 `img` 标签设置 `object-fit` 无效的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/567)
|
|
31
|
+
5. `F` 修复了 `latex` 插件公式会换行的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/540)
|
|
32
|
+
6. `F` 修复了 `editable` 和 `audio` 插件共用时点击 `audio` 无法编辑的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/529) by [@whoooami](https://github.com/whoooami)
|
|
33
|
+
7. `F` 修复了微信小程序部分情况下图片会报错 `replace of undefined` 的问题
|
|
34
|
+
8. `F` 修复了快手小程序图片不显示的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/571)
|
|
35
|
+
## v2.4.2(2023-05-14)
|
|
36
|
+
1. `A` `editable` 插件支持修改文字颜色 [详细](https://github.com/jin-yufeng/mp-html/issues/254)
|
|
37
|
+
2. `F` 修复了 `svg` 中有 `style` 不生效的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/505)
|
|
38
|
+
3. `F` 修复了使用旧版编译器可能报错 `Bad attr nodes` 的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/472)
|
|
39
|
+
4. `F` 修复了 `app` 端可能出现无法读取 `lazyLoad` 的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/513)
|
|
40
|
+
5. `F` 修复了 `editable` 插件在点击换图时未拼接 `domain` 的问题 [详细](https://github.com/jin-yufeng/mp-html/pull/497) by [@TwoKe945](https://github.com/TwoKe945)
|
|
41
|
+
6. `F` 修复了 `latex` 插件部分情况下不显示的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/515)
|
|
42
|
+
7. `F` 修复了 `editable` 插件点击音视频时其他标签框不消失的问题
|
|
43
|
+
## v2.4.1(2022-12-25)
|
|
44
|
+
1. `F` 修复了没有图片时 `ready` 事件可能不触发的问题
|
|
45
|
+
2. `F` 修复了加载过程中可能出现 `Root label not found` 错误的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/470)
|
|
46
|
+
3. `F` 修复了 `audio` 插件退出页面可能会报错的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/457)
|
|
47
|
+
4. `F` 修复了 `vue3` 运行到 `app` 在 `HBuilder X 3.6.10` 以上报错的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/480)
|
|
48
|
+
5. `F` 修复了 `nvue` 端链接中包含 `%22` 时可能无法显示的问题
|
|
49
|
+
6. `F` 修复了 `vue3` 使用 `highlight` 插件可能报错的问题
|
|
50
|
+
## v2.4.0(2022-08-27)
|
|
51
|
+
1. `A` 增加了 [setPlaybackRate](https://jin-yufeng.gitee.io/mp-html/#/advanced/api#setPlaybackRate) 的 `api`,可以设置音视频的播放速率 [详细](https://github.com/jin-yufeng/mp-html/issues/452)
|
|
52
|
+
2. `A` 示例小程序代码开源 [详细](https://github.com/jin-yufeng/mp-html-demo)
|
|
53
|
+
3. `U` 优化 `ready` 事件触发时机,未设置懒加载的情况下基本可以准确触发 [详细](https://github.com/jin-yufeng/mp-html/issues/195)
|
|
54
|
+
4. `U` `highlight` 插件在编辑状态下不进行高亮处理,便于编辑
|
|
55
|
+
5. `F` 修复了 `flex` 布局下图片大小可能不正确的问题
|
|
56
|
+
6. `F` 修复了 `selectable` 属性没有设置 `force` 也可能出现渲染异常的问题
|
|
57
|
+
7. `F` 修复了表格中的图片大小可能不正确的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/448)
|
|
58
|
+
8. `F` 修复了含有合并单元格的表格可能无法设置竖直对齐的问题
|
|
59
|
+
9. `F` 修复了 `editable` 插件在 `scroll-view` 中使用时工具条位置可能不正确的问题
|
|
60
|
+
10. `F` 修复了 `vue3` 使用 [search](advanced/plugin#search) 插件可能导致错误换行的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/449)
|
|
61
|
+
## v2.3.2(2022-08-13)
|
|
62
|
+
1. `A` 增加 [latex](https://jin-yufeng.gitee.io/mp-html/#/advanced/plugin#latex) 插件,可以渲染数学公式 [详细](https://github.com/jin-yufeng/mp-html/pull/447) by [@Zeng-J](https://github.com/Zeng-J)
|
|
63
|
+
2. `U` 优化根节点下有很多标签的长内容渲染速度
|
|
64
|
+
3. `U` `highlight` 插件适配 `lang-xxx` 格式
|
|
65
|
+
4. `F` 修复了 `table` 标签设置 `border` 属性后可能无法修改边框样式的问题 [详细](https://github.com/jin-yufeng/mp-html/pull/439) by [@zouxingjie](https://github.com/zouxingjie)
|
|
66
|
+
5. `F` 修复了 `editable` 插件输入连续空格无效的问题
|
|
67
|
+
6. `F` 修复了 `vue3` 图片设置 `inline` 会报错的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/438)
|
|
68
|
+
7. `F` 修复了 `vue3` 使用 `table` 可能报错的问题
|
|
69
|
+
## v2.3.1(2022-05-20)
|
|
70
|
+
1. `U` `app` 端支持使用本地图片
|
|
71
|
+
2. `U` 优化了微信小程序 `selectable` 属性在 `ios` 端的处理 [详细](https://jin-yufeng.gitee.io/mp-html/#/basic/prop#selectable)
|
|
72
|
+
3. `F` 修复了 `editable` 插件不在顶部时 `tooltip` 位置可能错误的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/430)
|
|
73
|
+
4. `F` 修复了 `vue3` 运行到微信小程序可能报错丢失内容的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/414)
|
|
74
|
+
5. `F` 修复了 `vue3` 部分标签可能被错误换行的问题
|
|
75
|
+
6. `F` 修复了 `editable` 插件 `app` 端插入视频无法预览的问题
|
|
76
|
+
## v2.3.0(2022-04-01)
|
|
77
|
+
1. `A` 增加了 `play` 事件,音视频播放时触发,可用于与页面其他音视频进行互斥播放 [详细](basic/event#play)
|
|
78
|
+
2. `U` `show-img-menu` 属性支持控制预览时是否长按弹出菜单
|
|
79
|
+
3. `U` 优化 `wxs` 处理,提高渲染性能 [详细](https://developers.weixin.qq.com/community/develop/article/doc/0006cc2b204740f601bd43fa25a413)
|
|
80
|
+
4. `U` `video` 标签支持 `object-fit` 属性
|
|
81
|
+
5. `U` 增加支持一些常用实体编码 [详细](https://github.com/jin-yufeng/mp-html/issues/418)
|
|
82
|
+
6. `F` 修复了图片仅设置高度可能不显示的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/410)
|
|
83
|
+
7. `F` 修复了 `video` 标签高度设置为 `auto` 不显示的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/411)
|
|
84
|
+
8. `F` 修复了使用 `grid` 布局时可能样式错误的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/413)
|
|
85
|
+
9. `F` 修复了含有合并单元格的表格部分情况下显示异常的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/417)
|
|
86
|
+
10. `F` 修复了 `editable` 插件连续插入内容时顺序不正确的问题
|
|
87
|
+
11. `F` 修复了 `uni-app` 包 `vue3` 使用 `audio` 插件报错的问题
|
|
88
|
+
12. `F` 修复了 `uni-app` 包 `highlight` 插件使用自定义的 `prism.min.js` 报错的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/416)
|
|
89
|
+
## v2.2.2(2022-02-26)
|
|
90
|
+
1. `A` 增加了 [pauseMedia](https://jin-yufeng.gitee.io/mp-html/#/advanced/api#pauseMedia) 的 `api`,可用于暂停播放音视频 [详细](https://github.com/jin-yufeng/mp-html/issues/317)
|
|
91
|
+
2. `U` 优化了长内容的加载速度
|
|
92
|
+
3. `U` 适配 `vue3` [#389](https://github.com/jin-yufeng/mp-html/issues/389)、[#398](https://github.com/jin-yufeng/mp-html/pull/398) by [@zhouhuafei](https://github.com/zhouhuafei)、[#400](https://github.com/jin-yufeng/mp-html/issues/400)
|
|
93
|
+
4. `F` 修复了小程序端图片高度设置为百分比时可能不显示的问题
|
|
94
|
+
5. `F` 修复了 `highlight` 插件部分情况下可能显示不完整的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/403)
|
|
95
|
+
## v2.2.1(2021-12-24)
|
|
96
|
+
1. `A` `editable` 插件增加上下移动标签功能
|
|
97
|
+
2. `U` `editable` 插件支持在文本中间光标处插入内容
|
|
98
|
+
3. `F` 修复了 `nvue` 端设置 `margin` 后可能导致高度不正确的问题
|
|
99
|
+
4. `F` 修复了 `highlight` 插件使用压缩版的 `prism.css` 可能导致背景失效的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/367)
|
|
100
|
+
5. `F` 修复了编辑状态下使用 `emoji` 插件内容为空时可能报错的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/371)
|
|
101
|
+
6. `F` 修复了使用 `editable` 插件后将 `selectable` 属性设置为 `force` 不生效的问题
|
|
102
|
+
## v2.2.0(2021-10-12)
|
|
103
|
+
1. `A` 增加 `customElements` 配置项,便于添加自定义功能性标签 [详细](https://github.com/jin-yufeng/mp-html/issues/350)
|
|
104
|
+
2. `A` `editable` 插件增加切换音视频自动播放状态的功能 [详细](https://github.com/jin-yufeng/mp-html/pull/341) by [@leeseett](https://github.com/leeseett)
|
|
105
|
+
3. `A` `editable` 插件删除媒体标签时触发 `remove` 事件,便于删除已上传的文件
|
|
106
|
+
4. `U` `editable` 插件 `insertImg` 方法支持同时插入多张图片 [详细](https://github.com/jin-yufeng/mp-html/issues/342)
|
|
107
|
+
5. `U` `editable` 插入图片和音视频时支持拼接 `domian` 主域名
|
|
108
|
+
6. `F` 修复了内部链接参数中包含 `://` 时被认为是外部链接的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/356)
|
|
109
|
+
7. `F` 修复了部分 `svg` 标签名或属性名大小写不正确时不生效的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/351)
|
|
110
|
+
8. `F` 修复了 `nvue` 页面运行到非 `app` 平台时可能样式错误的问题
|
|
111
|
+
## v2.1.5(2021-08-13)
|
|
112
|
+
1. `A` 增加支持标签的 `dir` 属性
|
|
113
|
+
2. `F` 修复了 `ruby` 标签文字与拼音没有居中对齐的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/325)
|
|
114
|
+
3. `F` 修复了音视频标签内有 `a` 标签时可能无法播放的问题
|
|
115
|
+
4. `F` 修复了 `externStyle` 中的 `class` 名包含下划线或数字时可能失效的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/326)
|
|
116
|
+
5. `F` 修复了 `h5` 端引入 `externStyle` 可能不生效的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/326)
|
|
117
|
+
## v2.1.4(2021-07-14)
|
|
118
|
+
1. `F` 修复了 `rt` 标签无法设置样式的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/318)
|
|
119
|
+
2. `F` 修复了表格中有单元格同时合并行和列时可能显示不正确的问题
|
|
120
|
+
3. `F` 修复了 `app` 端无法关闭图片长按菜单的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/322)
|
|
121
|
+
4. `F` 修复了 `editable` 插件只能添加图片链接不能修改的问题 [详细](https://github.com/jin-yufeng/mp-html/pull/312) by [@leeseett](https://github.com/leeseett)
|
|
122
|
+
## v2.1.3(2021-06-12)
|
|
123
|
+
1. `A` `editable` 插件增加 `insertTable` 方法
|
|
124
|
+
2. `U` `editable` 插件支持编辑表格中的空白单元格 [详细](https://github.com/jin-yufeng/mp-html/issues/310)
|
|
125
|
+
3. `F` 修复了 `externStyle` 中使用伪类可能失效的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/298)
|
|
126
|
+
4. `F` 修复了多个组件同时使用时 `tag-style` 属性时可能互相影响的问题 [详细](https://github.com/jin-yufeng/mp-html/pull/305) by [@woodguoyu](https://github.com/woodguoyu)
|
|
127
|
+
5. `F` 修复了包含 `linearGradient` 的 `svg` 可能无法显示的问题
|
|
128
|
+
6. `F` 修复了编译到头条小程序时可能报错的问题
|
|
129
|
+
7. `F` 修复了 `nvue` 端不触发 `click` 事件的问题
|
|
130
|
+
8. `F` 修复了 `editable` 插件尾部插入时无法撤销的问题
|
|
131
|
+
9. `F` 修复了 `editable` 插件的 `insertHtml` 方法只能在末尾插入的问题
|
|
132
|
+
10. `F` 修复了 `editable` 插件插入音频不显示的问题
|
|
133
|
+
## v2.1.2(2021-04-24)
|
|
134
|
+
1. `A` 增加了 [img-cache](https://jin-yufeng.gitee.io/mp-html/#/advanced/plugin#img-cache) 插件,可以在 `app` 端缓存图片 [详细](https://github.com/jin-yufeng/mp-html/issues/292) by [@PentaTea](https://github.com/PentaTea)
|
|
135
|
+
2. `U` 支持通过 `container-style` 属性设置 `white-space` 来保留连续空格和换行符 [详细](https://jin-yufeng.gitee.io/mp-html/#/question/faq#space)
|
|
136
|
+
3. `U` 代码风格符合 [standard](https://standardjs.com) 标准
|
|
137
|
+
4. `U` `editable` 插件编辑状态下支持预览视频 [详细](https://github.com/jin-yufeng/mp-html/issues/286)
|
|
138
|
+
5. `F` 修复了 `svg` 标签内嵌 `svg` 时无法显示的问题
|
|
139
|
+
6. `F` 修复了编译到支付宝和头条小程序时部分区域不可复制的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/291)
|
|
140
|
+
## v2.1.1(2021-04-09)
|
|
141
|
+
1. 修复了对 `p` 标签设置 `tag-style` 可能不生效的问题
|
|
142
|
+
2. 修复了 `svg` 标签中的文本无法显示的问题
|
|
143
|
+
3. 修复了使用 `editable` 插件编辑表格时可能报错的问题
|
|
144
|
+
4. 修复了使用 `highlight` 插件运行到头条小程序时可能没有样式的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/280)
|
|
145
|
+
5. 修复了使用 `editable` 插件 `editable` 属性为 `false` 时会报错的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/284)
|
|
146
|
+
6. 修复了 `style` 插件连续子选择器失效的问题
|
|
147
|
+
7. 修复了 `editable` 插件无法修改图片和字体大小的问题
|
|
148
|
+
## v2.1.0.2(2021-03-21)
|
|
149
|
+
修复了 `nvue` 端使用可能报错的问题
|
|
150
|
+
## v2.1.0(2021-03-20)
|
|
151
|
+
1. `A` 增加了 [container-style](https://jin-yufeng.gitee.io/mp-html/#/basic/prop#container-style) 属性 [详细](https://gitee.com/jin-yufeng/mp-html/pulls/1)
|
|
152
|
+
2. `A` 增加支持 `strike` 标签
|
|
153
|
+
3. `A` `editable` 插件增加 `placeholder` 属性 [详细](https://jin-yufeng.gitee.io/mp-html/#/advanced/plugin#editable)
|
|
154
|
+
4. `A` `editable` 插件增加 `insertHtml` 方法 [详细](https://jin-yufeng.gitee.io/mp-html/#/advanced/plugin#editable)
|
|
155
|
+
5. `U` 外部样式支持标签名选择器 [详细](https://jin-yufeng.gitee.io/mp-html/#/overview/quickstart#setting)
|
|
156
|
+
6. `F` 修复了 `nvue` 端部分情况下可能不显示的问题
|
|
157
|
+
## v2.0.5(2021-03-12)
|
|
158
|
+
1. `U` [linktap](https://jin-yufeng.gitee.io/mp-html/#/basic/event#linktap) 事件增加返回内部文本内容 `innerText` [详细](https://github.com/jin-yufeng/mp-html/issues/271)
|
|
159
|
+
2. `U` [selectable](https://jin-yufeng.gitee.io/mp-html/#/basic/prop#selectable) 属性设置为 `force` 时能够在微信 `iOS` 端生效(文本块会变成 `inline-block`) [详细](https://github.com/jin-yufeng/mp-html/issues/267)
|
|
160
|
+
3. `F` 修复了部分情况下竖向无法滚动的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/182)
|
|
161
|
+
4. `F` 修复了多次修改富文本数据时部分内容可能不显示的问题
|
|
162
|
+
5. `F` 修复了 [腾讯视频](https://jin-yufeng.gitee.io/mp-html/#/advanced/plugin#txv-video) 插件可能无法播放的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/265)
|
|
163
|
+
6. `F` 修复了 [highlight](https://jin-yufeng.gitee.io/mp-html/#/advanced/plugin#highlight) 插件没有设置高亮语言时没有应用默认样式的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/276) by [@fuzui](https://github.com/fuzui)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<view :id="attrs.id" :class="'_block _' + name + ' ' + attrs.class" :style="attrs.style">
|
|
3
|
-
<block v-for="(n, i) in
|
|
3
|
+
<block v-for="(n, i) in nodes" v-bind:key="i">
|
|
4
4
|
<!-- 图片 -->
|
|
5
5
|
<!-- 占位图 -->
|
|
6
6
|
<image
|
|
@@ -145,6 +145,8 @@
|
|
|
145
145
|
:src="n.src[ctrl[i] || 0]"
|
|
146
146
|
:data-i="i"
|
|
147
147
|
@play="play"
|
|
148
|
+
@pause="mediaEvent"
|
|
149
|
+
@fullscreenchange="mediaEvent"
|
|
148
150
|
@error="mediaError"
|
|
149
151
|
/>
|
|
150
152
|
<!-- #endif -->
|
|
@@ -173,6 +175,7 @@
|
|
|
173
175
|
:src="n.src[ctrl[i] || 0]"
|
|
174
176
|
:data-i="i"
|
|
175
177
|
@play="play"
|
|
178
|
+
@pause="mediaEvent"
|
|
176
179
|
@error="mediaError"
|
|
177
180
|
/>
|
|
178
181
|
<!-- #endif -->
|
|
@@ -212,7 +215,7 @@
|
|
|
212
215
|
</block>
|
|
213
216
|
</view>
|
|
214
217
|
</view>
|
|
215
|
-
|
|
218
|
+
|
|
216
219
|
<!-- 富文本 -->
|
|
217
220
|
<!-- #ifdef H5 || ((MP-WEIXIN || MP-QQ || APP-PLUS || MP-360) && VUE2) -->
|
|
218
221
|
<rich-text
|
|
@@ -298,8 +301,9 @@ export default {
|
|
|
298
301
|
data() {
|
|
299
302
|
return {
|
|
300
303
|
ctrl: {},
|
|
304
|
+
nodes: [],
|
|
301
305
|
// #ifdef MP-WEIXIN
|
|
302
|
-
isiOS: uni.getSystemInfoSync().system.includes('iOS')
|
|
306
|
+
isiOS: (uni.canIUse('getDeviceInfo') ? uni.getDeviceInfo() : uni.getSystemInfoSync()).system.includes('iOS')
|
|
303
307
|
// #endif
|
|
304
308
|
};
|
|
305
309
|
},
|
|
@@ -314,6 +318,18 @@ export default {
|
|
|
314
318
|
childs: Array,
|
|
315
319
|
opts: Array
|
|
316
320
|
},
|
|
321
|
+
watch: {
|
|
322
|
+
childs: {
|
|
323
|
+
handler(nodes) {
|
|
324
|
+
// 列表缩短会刷新整个列表,因此进行空填充
|
|
325
|
+
while (this.nodes.length > nodes.length) {
|
|
326
|
+
nodes.push({});
|
|
327
|
+
}
|
|
328
|
+
this.nodes = nodes;
|
|
329
|
+
},
|
|
330
|
+
immediate: true
|
|
331
|
+
}
|
|
332
|
+
},
|
|
317
333
|
components: {
|
|
318
334
|
// #ifndef ((H5 || APP-PLUS) && VUE3) || APP-HARMONY
|
|
319
335
|
node
|
|
@@ -321,6 +337,7 @@ export default {
|
|
|
321
337
|
},
|
|
322
338
|
mounted() {
|
|
323
339
|
this.$nextTick(() => {
|
|
340
|
+
// for (this.root = this.$parent; this.root.$options.name !== 'mp-html'; this.root = this.root.$parent);
|
|
324
341
|
// 修复可能导致死循环的问题
|
|
325
342
|
for (this.root = this?.$parent; this.root && this.root?.$options.name !== 'up-parse'; this.root = this.root?.$parent);
|
|
326
343
|
});
|
|
@@ -401,6 +418,23 @@ export default {
|
|
|
401
418
|
}
|
|
402
419
|
// #endif
|
|
403
420
|
},
|
|
421
|
+
/**
|
|
422
|
+
* @description 音视频其他事件
|
|
423
|
+
* @param {Event} e
|
|
424
|
+
*/
|
|
425
|
+
mediaEvent(e) {
|
|
426
|
+
const i = e.currentTarget.dataset.i;
|
|
427
|
+
const node = this.childs[i];
|
|
428
|
+
this.root.$emit(e.type, {
|
|
429
|
+
...e.detail,
|
|
430
|
+
source: node.name,
|
|
431
|
+
attrs: {
|
|
432
|
+
...node.attrs,
|
|
433
|
+
src: node.src[this.ctrl[i] || 0]
|
|
434
|
+
}
|
|
435
|
+
});
|
|
436
|
+
},
|
|
437
|
+
|
|
404
438
|
/**
|
|
405
439
|
* @description 图片点击事件
|
|
406
440
|
* @param {Event} e
|
|
@@ -1,24 +1,16 @@
|
|
|
1
1
|
{
|
|
2
|
-
"id": "
|
|
3
|
-
"displayName": "
|
|
4
|
-
"version": "
|
|
5
|
-
"description": "
|
|
2
|
+
"id": "mp-html",
|
|
3
|
+
"displayName": "mp-html 富文本组件【全端支持,支持编辑、latex等扩展】",
|
|
4
|
+
"version": "v2.5.2",
|
|
5
|
+
"description": "一个强大的富文本组件,高效轻量,功能丰富",
|
|
6
6
|
"keywords": [
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
7
|
+
"富文本",
|
|
8
|
+
"编辑器",
|
|
9
|
+
"html",
|
|
10
|
+
"rich-text",
|
|
11
|
+
"editor"
|
|
12
12
|
],
|
|
13
|
-
"repository": "",
|
|
14
|
-
"engines": {
|
|
15
|
-
"HBuilderX": "^3.1.0",
|
|
16
|
-
"uni-app": "^4.05",
|
|
17
|
-
"uni-app-x": ""
|
|
18
|
-
},
|
|
19
|
-
"directories": {
|
|
20
|
-
"example": "../../temps/example_temps"
|
|
21
|
-
},
|
|
13
|
+
"repository": "https://github.com/jin-yufeng/mp-html",
|
|
22
14
|
"dcloudext": {
|
|
23
15
|
"sale": {
|
|
24
16
|
"regular": {
|
|
@@ -36,19 +28,17 @@
|
|
|
36
28
|
"data": "无",
|
|
37
29
|
"permissions": "无"
|
|
38
30
|
},
|
|
39
|
-
"npmurl": "",
|
|
31
|
+
"npmurl": "https://www.npmjs.com/package/mp-html",
|
|
40
32
|
"type": "component-vue",
|
|
41
33
|
"darkmode": "x",
|
|
42
34
|
"i18n": "x",
|
|
43
35
|
"widescreen": "x"
|
|
44
36
|
},
|
|
45
37
|
"uni_modules": {
|
|
46
|
-
"dependencies": [],
|
|
47
|
-
"encrypt": [],
|
|
48
38
|
"platforms": {
|
|
49
39
|
"cloud": {
|
|
50
|
-
"tcb": "
|
|
51
|
-
"aliyun": "
|
|
40
|
+
"tcb": "√",
|
|
41
|
+
"aliyun": "√",
|
|
52
42
|
"alipay": "x"
|
|
53
43
|
},
|
|
54
44
|
"client": {
|
|
@@ -66,22 +56,22 @@
|
|
|
66
56
|
"nvue": "√",
|
|
67
57
|
"android": "√",
|
|
68
58
|
"ios": "√",
|
|
69
|
-
"harmony": "
|
|
59
|
+
"harmony": "-"
|
|
70
60
|
},
|
|
71
61
|
"mp": {
|
|
72
62
|
"weixin": "√",
|
|
73
63
|
"alipay": "√",
|
|
74
|
-
"toutiao": "
|
|
64
|
+
"toutiao": "-",
|
|
75
65
|
"baidu": "√",
|
|
76
66
|
"kuaishou": "-",
|
|
77
67
|
"jd": "-",
|
|
78
68
|
"harmony": "-",
|
|
79
69
|
"qq": "√",
|
|
80
|
-
"lark": "
|
|
70
|
+
"lark": "√"
|
|
81
71
|
},
|
|
82
72
|
"quickapp": {
|
|
83
|
-
"huawei": "
|
|
84
|
-
"union": "
|
|
73
|
+
"huawei": "-",
|
|
74
|
+
"union": "-"
|
|
85
75
|
}
|
|
86
76
|
},
|
|
87
77
|
"uni-app-x": {
|
|
@@ -100,5 +90,10 @@
|
|
|
100
90
|
}
|
|
101
91
|
}
|
|
102
92
|
}
|
|
93
|
+
},
|
|
94
|
+
"engines": {
|
|
95
|
+
"HBuilderX": "^3.1.0",
|
|
96
|
+
"uni-app": "^3.6.15",
|
|
97
|
+
"uni-app-x": ""
|
|
103
98
|
}
|
|
104
|
-
}
|
|
99
|
+
}
|
|
@@ -79,13 +79,18 @@ const tagSelector = {}
|
|
|
79
79
|
let windowWidth, system
|
|
80
80
|
|
|
81
81
|
// #ifdef APP || H5 || MP-WEIXIN
|
|
82
|
-
|
|
83
|
-
|
|
82
|
+
if (uni.canIUse('getWindowInfo')) {
|
|
83
|
+
windowWidth = uni.getWindowInfo().windowWidth
|
|
84
|
+
system = uni.getDeviceInfo().system
|
|
85
|
+
} else {
|
|
86
|
+
const systemInfo = uni.getSystemInfoSync()
|
|
87
|
+
windowWidth = systemInfo.windowWidth
|
|
88
|
+
system = systemInfo.system
|
|
89
|
+
}
|
|
84
90
|
// #endif
|
|
85
91
|
// #ifndef APP || H5 || MP-WEIXIN
|
|
86
92
|
const systemInfo = uni.getSystemInfoSync()
|
|
87
93
|
windowWidth = systemInfo.windowWidth
|
|
88
|
-
system = systemInfo.system
|
|
89
94
|
// #endif
|
|
90
95
|
const blankChar = makeMap(' ,\r,\n,\t,\f')
|
|
91
96
|
let idIndex = 0
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";function t(t){for(var e=Object.create(null),n=t.attributes.length;n--;)e[t.attributes[n].name]=t.attributes[n].value;return e}function e(){a[1]&&(this.src=a[1],this.onerror=null),this.onclick=null,this.ontouchstart=null,uni.postMessage({data:{action:"onError",source:"img",attrs:t(this)}})}function n(){window.unloadimgs-=1,0===window.unloadimgs&&uni.postMessage({data:{action:"onReady"}})}function o(r,s,c){for(var d=0;d<r.length;d++)!function(){var u,l=r[d];if(l.type&&"node"!==l.type)u=document.createTextNode(l.text.replace(/&/g,"&"));else{var g=l.name;"svg"===g&&(c="http://www.w3.org/2000/svg"),"html"!==g&&"body"!==g||(g="div"),u=c?document.createElementNS(c,g):document.createElement(g);for(var p in l.attrs)u.setAttribute(p,l.attrs[p]);if(l.children&&o(l.children,u,c),"img"===g){if(window.unloadimgs+=1,u.onload=n,u.onerror=n,!u.src&&u.getAttribute("data-src")&&(u.src=u.getAttribute("data-src")),l.attrs.ignore||(u.onclick=function(e){e.stopPropagation(),uni.postMessage({data:{action:"onImgTap",attrs:t(this)}})}),a[2]){var h=new Image;h.src=u.src,u.src=a[2],h.onload=function(){u.src=this.src},h.onerror=function(){u.onerror()}}u.onerror=e}else if("a"===g)u.addEventListener("click",function(e){e.stopPropagation(),e.preventDefault();var n,o=this.getAttribute("href");o&&"#"===o[0]&&(n=(document.getElementById(o.substr(1))||{}).offsetTop),uni.postMessage({data:{action:"onLinkTap",attrs:t(this),offset:n}})},!0);else if("video"===g||"audio"===g)i.push(u),l.attrs.autoplay||l.attrs.controls||u.setAttribute("controls","true"),u.onplay=function(){if(uni.postMessage({data:{action:"onPlay"}}),a[3])for(var t=0;t<i.length;t++)i[t]!==this&&i[t].pause()},u.onerror=function(){uni.postMessage({data:{action:"onError",source:g,attrs:t(this)}})};else if("table"===g&&a[4]&&!u.style.cssText.includes("inline")){var f=document.createElement("div");f.style.overflow="auto",f.appendChild(u),u=f}else"svg"===g&&(c=void 0)}s.appendChild(u)}()}document.addEventListener("UniAppJSBridgeReady",function(){document.body.onclick=function(){return uni.postMessage({data:{action:"onClick"}})},uni.postMessage({data:{action:"onJSBridgeReady"}})});var a,i=[];window.setContent=function(t,e,n){var r=document.getElementById("content");e[0]&&(document.body.style.cssText=e[0]),e[5]||(r.style.userSelect="none"),n||(r.innerHTML="",i=[]),a=e,window.unloadimgs=0;var s=document.createDocumentFragment();o(t,s),r.appendChild(s);var c=r.scrollHeight;uni.postMessage({data:{action:"onLoad",height:c}}),window.unloadimgs||uni.postMessage({data:{action:"onReady",height:c}}),clearInterval(window.timer),window.timer=setInterval(function(){r.scrollHeight!==c&&(c=r.scrollHeight,uni.postMessage({data:{action:"onHeightChange",height:c}}))},350)},window.onunload=function(){clearInterval(window.timer)};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
<head>
|
|
2
|
+
<meta charset="utf-8" />
|
|
3
|
+
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
|
|
4
|
+
<style>
|
|
5
|
+
body,
|
|
6
|
+
html {
|
|
7
|
+
width: 100%;
|
|
8
|
+
height: 100%;
|
|
9
|
+
overflow-x: scroll;
|
|
10
|
+
overflow-y: hidden;
|
|
11
|
+
}
|
|
12
|
+
body {
|
|
13
|
+
margin: 0;
|
|
14
|
+
}
|
|
15
|
+
video {
|
|
16
|
+
width: 300px;
|
|
17
|
+
height: 225px;
|
|
18
|
+
}
|
|
19
|
+
img {
|
|
20
|
+
max-width: 100%;
|
|
21
|
+
-webkit-touch-callout: none;
|
|
22
|
+
}
|
|
23
|
+
</style>
|
|
24
|
+
</head>
|
|
25
|
+
<body>
|
|
26
|
+
<div id="content" style="overflow: hidden"></div>
|
|
27
|
+
<script type="text/javascript" src="./js/uni.webview.min.js"></script>
|
|
28
|
+
<script type="text/javascript" src="./js/handler.js"></script>
|
|
29
|
+
</body>
|