@10yun/cv-mobile-ui 0.5.18 → 0.5.20
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/other/api-set-tabbar.nvue +147 -0
- package/other/mpvue-echarts/src/echarts.vue +112 -0
- package/other/mpvue-echarts/src/style.css +6 -0
- package/other/mpvue-picker/mpvuePicker.vue +402 -0
- package/other/mpvue-picker/style.css +75 -0
- package/other/product.vue +20 -0
- package/other/style.css +46 -0
- package/other/tab-nvue/mediaList.vue +68 -0
- package/other/tab-nvue/style.css +124 -0
- package/other/uParse/components/style.css +1 -0
- package/other/uParse/components/wxParseAudio.vue +1 -0
- package/other/uParse/components/wxParseImg.vue +86 -0
- package/other/uParse/components/wxParseTable.vue +54 -0
- package/other/uParse/components/wxParseTemplate0.vue +98 -0
- package/other/uParse/components/wxParseTemplate1.vue +81 -0
- package/other/uParse/components/wxParseTemplate10.vue +81 -0
- package/other/uParse/components/wxParseTemplate11.vue +79 -0
- package/other/uParse/components/wxParseTemplate2.vue +81 -0
- package/other/uParse/components/wxParseTemplate3.vue +81 -0
- package/other/uParse/components/wxParseTemplate4.vue +81 -0
- package/other/uParse/components/wxParseTemplate5.vue +81 -0
- package/other/uParse/components/wxParseTemplate6.vue +81 -0
- package/other/uParse/components/wxParseTemplate7.vue +81 -0
- package/other/uParse/components/wxParseTemplate8.vue +81 -0
- package/other/uParse/components/wxParseTemplate9.vue +81 -0
- package/other/uParse/components/wxParseVideo.vue +14 -0
- package/other/uParse/editor.css +495 -0
- package/other/uParse/libs/html2json.js +258 -0
- package/other/uParse/libs/htmlparser.js +163 -0
- package/other/uParse/libs/wxDiscode.js +195 -0
- package/other/uParse/wxParse.vue +196 -0
- package/package.json +1 -1
- package/plugins/map/amqp-wx.js +173 -0
- package/plugins/uni-upgrade.js +0 -1
- package/ui-cv/components/cv-banner/cv-banner.vue +131 -0
- package/ui-cv/components/cv-banner-card/cv-banner-card.vue +145 -0
- package/ui-cv/components/cv-base-audio/cv-base-audio.vue +282 -0
- package/ui-cv/components/cv-block/cv-block.vue +91 -0
- package/ui-cv/components/cv-box/cv-box.vue +77 -0
- package/ui-cv/components/cv-btn-base/cv-btn-base.vue +73 -0
- package/ui-cv/components/cv-cell-row/cv-cell-row.vue +220 -0
- package/ui-cv/components/cv-checkbox-group/cv-checkbox-group.vue +260 -0
- package/ui-cv/components/cv-checkbox-opt-base/cv-checkbox-opt-base.vue +100 -0
- package/ui-cv/components/cv-checkbox-opt-tag/cv-checkbox-opt-tag.vue +114 -0
- package/ui-cv/components/cv-code-sms/cv-code-sms.vue +232 -0
- package/ui-cv/components/cv-date-base/cv-date-base.vue +108 -0
- package/ui-cv/components/cv-datetime-base/cv-datetime-base.vue +155 -0
- package/ui-cv/components/cv-datetime-linkage/cv-datetime-linkage.vue +492 -0
- package/ui-cv/components/cv-dialog-bottom/cv-dialog-bottom.vue +171 -0
- package/ui-cv/components/cv-dialog-full/cv-dialog-full.vue +158 -0
- package/ui-cv/components/cv-dialog-loading/cv-dialog-loading.vue +102 -0
- package/ui-cv/components/cv-dialog-share/cv-dialog-share.vue +160 -0
- package/ui-cv/components/cv-draw-barcode/cv-draw-barcode.vue +212 -0
- package/ui-cv/components/cv-draw-gesture-lock/cv-draw-gesture-lock.vue +127 -0
- package/ui-cv/components/cv-draw-gesture-lock/gestureLock.js +169 -0
- package/ui-cv/components/cv-draw-gesture-lock/style.css +39 -0
- package/ui-cv/components/cv-draw-posters/cv-draw-posters.vue +495 -0
- package/ui-cv/components/cv-draw-progress/cv-draw-progress.vue +143 -0
- package/ui-cv/components/cv-draw-qrcode/cv-draw-qrcode.vue +308 -0
- package/ui-cv/components/cv-editor-parse/cv-editor-parse.vue +115 -0
- package/ui-cv/components/cv-editor-quill/cv-editor-quill.vue +487 -0
- package/ui-cv/components/cv-filter-hm/cv-filter-hm.vue +869 -0
- package/ui-cv/components/cv-form-base/cv-form-base.vue +471 -0
- package/ui-cv/components/cv-form-group/cv-form-group.vue +126 -0
- package/ui-cv/components/cv-form-item/cv-form-item.vue +561 -0
- package/ui-cv/components/cv-geo-local/cv-geo-local.vue +264 -0
- package/ui-cv/components/cv-geo-region/cv-geo-region.vue +246 -0
- package/ui-cv/components/cv-geo-region/mpvueCityPicker.vue +144 -0
- package/ui-cv/components/cv-geo-region/style.css +77 -0
- package/ui-cv/components/cv-grid-item/cv-grid-item.vue +210 -0
- package/ui-cv/components/cv-icons/cv-icons.vue +136 -0
- package/ui-cv/components/cv-input-digit/cv-input-digit.vue +114 -0
- package/ui-cv/components/cv-input-idcard/cv-input-idcard.vue +109 -0
- package/ui-cv/components/cv-input-number/cv-input-number.vue +115 -0
- package/ui-cv/components/cv-input-password/cv-input-password.vue +127 -0
- package/ui-cv/components/cv-input-text/cv-input-text.vue +118 -0
- package/ui-cv/components/cv-layout-topbar/cv-layout-topbar.vue +239 -0
- package/ui-cv/components/cv-link/cv-link.vue +60 -0
- package/ui-cv/components/cv-lists-base/cv-lists-base.vue +653 -0
- package/ui-cv/components/cv-lists-swiper/cv-lists-swipe2r.vue +200 -0
- package/ui-cv/components/cv-lists-swiper/cv-lists-swiper.vue +520 -0
- package/ui-cv/components/cv-load-empty/cv-load-empty.vue +60 -0
- package/ui-cv/components/cv-load-more/cv-load-more.vue +410 -0
- package/ui-cv/components/cv-load-more2/cv-load-more2.vue +47 -0
- package/ui-cv/components/cv-markdown-show/cv-markdown-show.vue +108 -0
- package/ui-cv/components/cv-message/cv-message.vue +40 -0
- package/ui-cv/components/cv-picker1/cv-picker1.vue +208 -0
- package/ui-cv/components/cv-picker2/cv-picker2.vue +255 -0
- package/ui-cv/components/cv-picker3/cv-picker3.vue +316 -0
- package/ui-cv/components/cv-radio-group/cv-radio-group.vue +199 -0
- package/ui-cv/components/cv-radio-opt-base/cv-radio-opt-base.vue +94 -0
- package/ui-cv/components/cv-radio-opt-tag/cv-radio-opt-tag.vue +110 -0
- package/ui-cv/components/cv-rate/cv-rate.vue +185 -0
- package/ui-cv/components/cv-search/cv-search.vue +185 -0
- package/ui-cv/components/cv-skeleton/cv-skeleton.vue +174 -0
- package/ui-cv/components/cv-skeleton/cv-skeleton2.vue +213 -0
- package/ui-cv/components/cv-skeleton-group/cv-skeleton-group.vue +24 -0
- package/ui-cv/components/cv-specs/cv-specs.vue +320 -0
- package/ui-cv/components/cv-switch/cv-switch.vue +113 -0
- package/ui-cv/components/cv-tab-lists/cv-tab-lists.vue +711 -0
- package/ui-cv/components/cv-tabs-box/cv-tabs-box.vue +100 -0
- package/ui-cv/components/cv-tabs-item/cv-tabs-item.vue +85 -0
- package/ui-cv/components/cv-textarea/cv-textarea.vue +144 -0
- package/ui-cv/components/cv-time-base/cv-time-base.vue +103 -0
- package/ui-cv/components/cv-treaty/cv-treaty.vue +95 -0
- package/ui-cv/components/cv-upload-avatar/cv-upload-avatar.vue +145 -0
- package/ui-cv/components/cv-upload-image/cv-upload-image.vue +481 -0
- package/ui-cv/libs/mixin/mixin.js +1 -0
- package/ui-cv/libs/mixin/mpMixin.js +8 -0
- package/uni-ui/LICENSE +202 -0
- package/uni-ui/README.md +245 -0
- package/uni-ui/lib/uni-badge/style.css +81 -0
- package/uni-ui/lib/uni-badge/style.scss +106 -0
- package/uni-ui/lib/uni-badge/uni-badge.vue +1 -0
- package/uni-ui/lib/uni-breadcrumb/style.css +3 -0
- package/uni-ui/lib/uni-breadcrumb/style.scss +4 -0
- package/uni-ui/lib/uni-breadcrumb/uni-breadcrumb.vue +1 -0
- package/uni-ui/lib/uni-breadcrumb-item/style.css +30 -0
- package/uni-ui/lib/uni-breadcrumb-item/style.scss +40 -0
- package/uni-ui/lib/uni-breadcrumb-item/uni-breadcrumb-item.vue +1 -0
- package/uni-ui/lib/uni-calendar/i18n/en.json +12 -0
- package/uni-ui/lib/uni-calendar/i18n/index.js +8 -0
- package/uni-ui/lib/uni-calendar/i18n/zh-Hans.json +12 -0
- package/uni-ui/lib/uni-calendar/i18n/zh-Hant.json +12 -0
- package/uni-ui/lib/uni-calendar/style.css +167 -0
- package/uni-ui/lib/uni-calendar/style.scss +200 -0
- package/uni-ui/lib/uni-calendar/uni-calendar-item.vue +1 -0
- package/uni-ui/lib/uni-calendar/uni-calendar.vue +1 -0
- package/uni-ui/lib/uni-calendar/util.js +360 -0
- package/uni-ui/lib/uni-card/style.css +115 -0
- package/uni-ui/lib/uni-card/style.scss +161 -0
- package/uni-ui/lib/uni-card/uni-card.vue +1 -0
- package/uni-ui/lib/uni-col/style.css +2145 -0
- package/uni-ui/lib/uni-col/style.scss +112 -0
- package/uni-ui/lib/uni-col/uni-col.vue +205 -0
- package/uni-ui/lib/uni-collapse/style.css +11 -0
- package/uni-ui/lib/uni-collapse/style.scss +12 -0
- package/uni-ui/lib/uni-collapse/uni-collapse.vue +1 -0
- package/uni-ui/lib/uni-collapse-item/style.css +120 -0
- package/uni-ui/lib/uni-collapse-item/style.scss +143 -0
- package/uni-ui/lib/uni-collapse-item/uni-collapse-item.vue +1 -0
- package/uni-ui/lib/uni-combox/style.css +114 -0
- package/uni-ui/lib/uni-combox/style.scss +133 -0
- package/uni-ui/lib/uni-combox/uni-combox.vue +174 -0
- package/uni-ui/lib/uni-countdown/i18n/en.json +6 -0
- package/uni-ui/lib/uni-countdown/i18n/index.js +8 -0
- package/uni-ui/lib/uni-countdown/i18n/zh-Hans.json +6 -0
- package/uni-ui/lib/uni-countdown/i18n/zh-Hant.json +6 -0
- package/uni-ui/lib/uni-countdown/style.css +16 -0
- package/uni-ui/lib/uni-countdown/style.scss +21 -0
- package/uni-ui/lib/uni-countdown/uni-countdown.vue +1 -0
- package/uni-ui/lib/uni-data-checkbox/style.css +302 -0
- package/uni-ui/lib/uni-data-checkbox/style.scss +366 -0
- package/uni-ui/lib/uni-data-checkbox/uni-data-checkbox.vue +1 -0
- package/uni-ui/lib/uni-data-picker/uni-data-picker.vue +1 -0
- package/uni-ui/lib/uni-data-pickerview/style.css +134 -0
- package/uni-ui/lib/uni-data-pickerview/style.scss +154 -0
- package/uni-ui/lib/uni-data-pickerview/uni-data-picker.js +622 -0
- package/uni-ui/lib/uni-data-pickerview/uni-data-pickerview.vue +1 -0
- package/uni-ui/lib/uni-data-select/style.css +181 -0
- package/uni-ui/lib/uni-data-select/style.scss +213 -0
- package/uni-ui/lib/uni-data-select/uni-data-select.vue +1 -0
- package/uni-ui/lib/uni-dateformat/uni-dateformat.vue +84 -0
- package/uni-ui/lib/uni-datetime-picker/calendar-item.vue +1 -0
- package/uni-ui/lib/uni-datetime-picker/calendar.vue +1 -0
- package/uni-ui/lib/uni-datetime-picker/i18n/en.json +22 -0
- package/uni-ui/lib/uni-datetime-picker/i18n/index.js +8 -0
- package/uni-ui/lib/uni-datetime-picker/i18n/zh-Hans.json +22 -0
- package/uni-ui/lib/uni-datetime-picker/i18n/zh-Hant.json +22 -0
- package/uni-ui/lib/uni-datetime-picker/style.css +188 -0
- package/uni-ui/lib/uni-datetime-picker/style.scss +218 -0
- package/uni-ui/lib/uni-datetime-picker/time-picker.vue +1 -0
- package/uni-ui/lib/uni-datetime-picker/uni-datetime-picker.vue +1 -0
- package/uni-ui/lib/uni-datetime-picker/util.js +403 -0
- package/uni-ui/lib/uni-drawer/keypress.js +45 -0
- package/uni-ui/lib/uni-drawer/style.css +63 -0
- package/uni-ui/lib/uni-drawer/style.scss +77 -0
- package/uni-ui/lib/uni-drawer/uni-drawer.vue +1 -0
- package/uni-ui/lib/uni-easyinput/style.css +126 -0
- package/uni-ui/lib/uni-easyinput/style.scss +155 -0
- package/uni-ui/lib/uni-easyinput/uni-easyinput.vue +1 -0
- package/uni-ui/lib/uni-fab/style.css +185 -0
- package/uni-ui/lib/uni-fab/style.scss +259 -0
- package/uni-ui/lib/uni-fab/uni-fab.vue +1 -0
- package/uni-ui/lib/uni-fav/i18n/en.json +4 -0
- package/uni-ui/lib/uni-fav/i18n/index.js +8 -0
- package/uni-ui/lib/uni-fav/i18n/zh-Hans.json +4 -0
- package/uni-ui/lib/uni-fav/i18n/zh-Hant.json +4 -0
- package/uni-ui/lib/uni-fav/style.css +39 -0
- package/uni-ui/lib/uni-fav/style.scss +45 -0
- package/uni-ui/lib/uni-fav/uni-fav.vue +1 -0
- package/uni-ui/lib/uni-file-picker/choose-and-upload-file.js +224 -0
- package/uni-ui/lib/uni-file-picker/style.css +97 -0
- package/uni-ui/lib/uni-file-picker/style.scss +110 -0
- package/uni-ui/lib/uni-file-picker/uni-file-picker.vue +1 -0
- package/uni-ui/lib/uni-file-picker/upload-file.vue +1 -0
- package/uni-ui/lib/uni-file-picker/upload-image.vue +1 -0
- package/uni-ui/lib/uni-forms/style.css +0 -0
- package/uni-ui/lib/uni-forms/style.scss +3 -0
- package/uni-ui/lib/uni-forms/uni-forms.vue +1 -0
- package/uni-ui/lib/uni-forms/utils.js +293 -0
- package/{ui-uni → uni-ui/lib}/uni-forms/validate.js +0 -0
- package/uni-ui/lib/uni-forms-item/style.css +133 -0
- package/uni-ui/lib/uni-forms-item/style.scss +165 -0
- package/uni-ui/lib/uni-forms-item/uni-forms-item.vue +1 -0
- package/uni-ui/lib/uni-goods-nav/i18n/en.json +6 -0
- package/uni-ui/lib/uni-goods-nav/i18n/index.js +8 -0
- package/uni-ui/lib/uni-goods-nav/i18n/zh-Hans.json +6 -0
- package/uni-ui/lib/uni-goods-nav/i18n/zh-Hant.json +6 -0
- package/uni-ui/lib/uni-goods-nav/style.css +100 -0
- package/uni-ui/lib/uni-goods-nav/style.scss +122 -0
- package/uni-ui/lib/uni-goods-nav/uni-goods-nav.vue +1 -0
- package/uni-ui/lib/uni-grid/style.css +29 -0
- package/uni-ui/lib/uni-grid/style.scss +33 -0
- package/uni-ui/lib/uni-grid/uni-grid.vue +1 -0
- package/uni-ui/lib/uni-grid-item/style.css +49 -0
- package/uni-ui/lib/uni-grid-item/style.scss +55 -0
- package/uni-ui/lib/uni-grid-item/uni-grid-item.vue +1 -0
- package/uni-ui/lib/uni-group/style.css +36 -0
- package/uni-ui/lib/uni-group/style.scss +50 -0
- package/uni-ui/lib/uni-group/uni-group.vue +1 -0
- package/uni-ui/lib/uni-icons/icons.js +1169 -0
- package/uni-ui/lib/uni-icons/style.css +12 -0
- package/uni-ui/lib/uni-icons/style.scss +14 -0
- package/uni-ui/lib/uni-icons/uni-icons.vue +1 -0
- package/uni-ui/lib/uni-icons/uniicons.css +663 -0
- package/uni-ui/lib/uni-icons/uniicons.ttf +0 -0
- package/uni-ui/lib/uni-indexed-list/style.css +68 -0
- package/uni-ui/lib/uni-indexed-list/style.scss +83 -0
- package/uni-ui/lib/uni-indexed-list/uni-indexed-list-item.vue +1 -0
- package/uni-ui/lib/uni-indexed-list/uni-indexed-list.vue +1 -0
- package/uni-ui/lib/uni-link/uni-link.vue +140 -0
- package/uni-ui/lib/uni-list/style.css +43 -0
- package/uni-ui/lib/uni-list/style.scss +52 -0
- package/uni-ui/lib/uni-list/uni-list.vue +1 -0
- package/uni-ui/lib/uni-list/uni-refresh.vue +63 -0
- package/uni-ui/lib/uni-list/uni-refresh.wxs +87 -0
- package/uni-ui/lib/uni-list-ad/style.css +30 -0
- package/uni-ui/lib/uni-list-ad/style.scss +35 -0
- package/uni-ui/lib/uni-list-ad/uni-list-ad.vue +1 -0
- package/uni-ui/lib/uni-list-chat/style.css +257 -0
- package/uni-ui/lib/uni-list-chat/style.scss +326 -0
- package/uni-ui/lib/uni-list-chat/uni-list-chat.scss +58 -0
- package/uni-ui/lib/uni-list-chat/uni-list-chat.vue +1 -0
- package/uni-ui/lib/uni-list-item/style.css +170 -0
- package/uni-ui/lib/uni-list-item/style.scss +213 -0
- package/uni-ui/lib/uni-list-item/uni-list-item.vue +1 -0
- package/uni-ui/lib/uni-load-more/i18n/en.json +5 -0
- package/uni-ui/lib/uni-load-more/i18n/index.js +8 -0
- package/uni-ui/lib/uni-load-more/i18n/zh-Hans.json +5 -0
- package/uni-ui/lib/uni-load-more/i18n/zh-Hant.json +5 -0
- package/uni-ui/lib/uni-load-more/style.css +194 -0
- package/uni-ui/lib/uni-load-more/style.scss +244 -0
- package/uni-ui/lib/uni-load-more/uni-load-more.vue +1 -0
- package/uni-ui/lib/uni-nav-bar/style.css +3 -0
- package/uni-ui/lib/uni-nav-bar/style.scss +6 -0
- package/uni-ui/lib/uni-nav-bar/uni-nav-bar.vue +1 -0
- package/uni-ui/lib/uni-nav-bar/uni-status-bar.vue +1 -0
- package/uni-ui/lib/uni-notice-bar/style.css +109 -0
- package/uni-ui/lib/uni-notice-bar/style.scss +125 -0
- package/uni-ui/lib/uni-notice-bar/uni-notice-bar.vue +1 -0
- package/uni-ui/lib/uni-number-box/style.css +50 -0
- package/uni-ui/lib/uni-number-box/style.scss +64 -0
- package/uni-ui/lib/uni-number-box/uni-number-box.vue +1 -0
- package/uni-ui/lib/uni-pagination/i18n/en.json +5 -0
- package/uni-ui/lib/uni-pagination/i18n/es.json +5 -0
- package/uni-ui/lib/uni-pagination/i18n/fr.json +5 -0
- package/uni-ui/lib/uni-pagination/i18n/index.js +12 -0
- package/uni-ui/lib/uni-pagination/i18n/zh-Hans.json +5 -0
- package/uni-ui/lib/uni-pagination/i18n/zh-Hant.json +5 -0
- package/uni-ui/lib/uni-pagination/style.css +125 -0
- package/uni-ui/lib/uni-pagination/style.scss +154 -0
- package/uni-ui/lib/uni-pagination/uni-pagination.vue +1 -0
- package/uni-ui/lib/uni-popup/i18n/en.json +7 -0
- package/uni-ui/lib/uni-popup/i18n/index.js +8 -0
- package/uni-ui/lib/uni-popup/i18n/zh-Hans.json +7 -0
- package/uni-ui/lib/uni-popup/i18n/zh-Hant.json +7 -0
- package/uni-ui/lib/uni-popup/keypress.js +45 -0
- package/uni-ui/lib/uni-popup/popup.js +26 -0
- package/uni-ui/lib/uni-popup/style.css +41 -0
- package/uni-ui/lib/uni-popup/style.scss +51 -0
- package/uni-ui/lib/uni-popup/uni-popup.vue +426 -0
- package/uni-ui/lib/uni-popup-dialog/keypress.js +45 -0
- package/uni-ui/lib/uni-popup-dialog/style.css +82 -0
- package/uni-ui/lib/uni-popup-dialog/style.scss +98 -0
- package/uni-ui/lib/uni-popup-dialog/uni-popup-dialog.vue +1 -0
- package/uni-ui/lib/uni-popup-message/style.css +57 -0
- package/uni-ui/lib/uni-popup-message/style.scss +69 -0
- package/uni-ui/lib/uni-popup-message/uni-popup-message.vue +1 -0
- package/uni-ui/lib/uni-popup-share/style.css +72 -0
- package/uni-ui/lib/uni-popup-share/style.scss +81 -0
- package/uni-ui/lib/uni-popup-share/uni-popup-share.vue +1 -0
- package/uni-ui/lib/uni-rate/style.css +29 -0
- package/uni-ui/lib/uni-rate/style.scss +33 -0
- package/uni-ui/lib/uni-rate/uni-rate.vue +1 -0
- package/uni-ui/lib/uni-row/style.css +58 -0
- package/uni-ui/lib/uni-row/style.scss +104 -0
- package/uni-ui/lib/uni-row/uni-row.vue +83 -0
- package/uni-ui/lib/uni-scss/changelog.md +8 -0
- package/uni-ui/lib/uni-scss/index.scss +1 -0
- package/uni-ui/lib/uni-scss/package.json +82 -0
- package/uni-ui/lib/uni-scss/readme.md +4 -0
- package/uni-ui/lib/uni-scss/styles/index.scss +7 -0
- package/uni-ui/lib/uni-scss/styles/setting/_border.scss +3 -0
- package/uni-ui/lib/uni-scss/styles/setting/_color.scss +66 -0
- package/uni-ui/lib/uni-scss/styles/setting/_radius.scss +55 -0
- package/uni-ui/lib/uni-scss/styles/setting/_space.scss +56 -0
- package/uni-ui/lib/uni-scss/styles/setting/_styles.scss +167 -0
- package/uni-ui/lib/uni-scss/styles/setting/_text.scss +24 -0
- package/uni-ui/lib/uni-scss/styles/setting/_variables.scss +146 -0
- package/uni-ui/lib/uni-scss/styles/tools/functions.scss +19 -0
- package/uni-ui/lib/uni-scss/theme.scss +31 -0
- package/uni-ui/lib/uni-scss/uni.scss +76 -0
- package/uni-ui/lib/uni-scss/variables.scss +62 -0
- package/uni-ui/lib/uni-search-bar/i18n/en.json +4 -0
- package/uni-ui/lib/uni-search-bar/i18n/index.js +8 -0
- package/uni-ui/lib/uni-search-bar/i18n/zh-Hans.json +4 -0
- package/uni-ui/lib/uni-search-bar/i18n/zh-Hant.json +4 -0
- package/uni-ui/lib/uni-search-bar/style.css +59 -0
- package/uni-ui/lib/uni-search-bar/style.scss +70 -0
- package/uni-ui/lib/uni-search-bar/uni-search-bar.vue +1 -0
- package/uni-ui/lib/uni-section/style.css +55 -0
- package/uni-ui/lib/uni-section/style.scss +65 -0
- package/uni-ui/lib/uni-section/uni-section.vue +1 -0
- package/uni-ui/lib/uni-segmented-control/style.css +48 -0
- package/uni-ui/lib/uni-segmented-control/style.scss +55 -0
- package/uni-ui/lib/uni-segmented-control/uni-segmented-control.vue +1 -0
- package/uni-ui/lib/uni-status-bar/style.css +4 -0
- package/uni-ui/lib/uni-status-bar/uni-status-bar.vue +19 -0
- package/uni-ui/lib/uni-steps/style.css +152 -0
- package/uni-ui/lib/uni-steps/style.scss +179 -0
- package/uni-ui/lib/uni-steps/uni-steps.vue +1 -0
- package/uni-ui/lib/uni-swipe-action/uni-swipe-action.vue +1 -0
- package/uni-ui/lib/uni-swipe-action-item/bindingx.js +302 -0
- package/uni-ui/lib/uni-swipe-action-item/isPC.js +12 -0
- package/uni-ui/lib/uni-swipe-action-item/mpalipay.js +195 -0
- package/uni-ui/lib/uni-swipe-action-item/mpother.js +260 -0
- package/uni-ui/lib/uni-swipe-action-item/mpwxs.js +84 -0
- package/uni-ui/lib/uni-swipe-action-item/render.js +270 -0
- package/uni-ui/lib/uni-swipe-action-item/style.css +90 -0
- package/uni-ui/lib/uni-swipe-action-item/style.scss +112 -0
- package/uni-ui/lib/uni-swipe-action-item/uni-swipe-action-item.vue +3 -0
- package/uni-ui/lib/uni-swipe-action-item/wx.wxs +341 -0
- package/uni-ui/lib/uni-swiper-dot/style.css +75 -0
- package/uni-ui/lib/uni-swiper-dot/style.scss +95 -0
- package/uni-ui/lib/uni-swiper-dot/uni-swiper-dot.vue +1 -0
- package/uni-ui/lib/uni-table/style.css +123 -0
- package/uni-ui/lib/uni-table/style.scss +152 -0
- package/uni-ui/lib/uni-table/uni-table.vue +1 -0
- package/uni-ui/lib/uni-tag/style.css +105 -0
- package/uni-ui/lib/uni-tag/style.scss +141 -0
- package/uni-ui/lib/uni-tag/uni-tag.vue +1 -0
- package/uni-ui/lib/uni-tbody/uni-tbody.vue +1 -0
- package/uni-ui/lib/uni-td/style.css +13 -0
- package/uni-ui/lib/uni-td/style.scss +17 -0
- package/uni-ui/lib/uni-td/uni-td.vue +1 -0
- package/uni-ui/lib/uni-test/uni-test.vue +11 -0
- package/uni-ui/lib/uni-th/filter-dropdown.vue +299 -0
- package/uni-ui/lib/uni-th/style.css +63 -0
- package/uni-ui/lib/uni-th/style.scss +78 -0
- package/uni-ui/lib/uni-th/uni-th.vue +1 -0
- package/uni-ui/lib/uni-thead/style.css +30 -0
- package/uni-ui/lib/uni-thead/style.scss +52 -0
- package/uni-ui/lib/uni-thead/uni-thead.vue +1 -0
- package/uni-ui/lib/uni-title/uni-title.vue +1 -0
- package/uni-ui/lib/uni-tooltip/uni-tooltip.vue +1 -0
- package/uni-ui/lib/uni-tr/style.css +25 -0
- package/uni-ui/lib/uni-tr/style.scss +46 -0
- package/uni-ui/lib/uni-tr/table-checkbox.vue +1 -0
- package/uni-ui/lib/uni-tr/uni-tr.vue +1 -0
- package/uni-ui/lib/uni-transition/createAnimation.js +131 -0
- package/uni-ui/lib/uni-transition/uni-transition.vue +286 -0
- package/uni-ui/package.json +17 -0
- package/uview-plus/LICENSE +21 -0
- package/uview-plus/README.md +64 -0
- package/uview-plus/changelog.md +24 -0
- package/uview-plus/components/u--form/u--form.vue +1 -0
- package/uview-plus/components/u--image/u--image.vue +1 -0
- package/uview-plus/components/u--input/u--input.vue +9 -0
- package/uview-plus/components/u--text/u--text.vue +1 -0
- package/uview-plus/components/u--textarea/u--textarea.vue +1 -0
- package/uview-plus/components/u-action-sheet/props.js +55 -0
- package/uview-plus/components/u-action-sheet/style.css +68 -0
- package/uview-plus/components/u-action-sheet/style.scss +84 -0
- package/uview-plus/components/u-action-sheet/u-action-sheet.vue +158 -0
- package/uview-plus/components/u-album/props.js +60 -0
- package/uview-plus/components/u-album/style.css +41 -0
- package/uview-plus/components/u-album/style.scss +26 -0
- package/uview-plus/components/u-album/u-album.vue +203 -0
- package/uview-plus/components/u-alert/props.js +45 -0
- package/uview-plus/components/u-alert/style.css +101 -0
- package/uview-plus/components/u-alert/style.scss +113 -0
- package/uview-plus/components/u-alert/u-alert.vue +118 -0
- package/uview-plus/components/u-avatar/props.js +79 -0
- package/uview-plus/components/u-avatar/style.css +31 -0
- package/uview-plus/components/u-avatar/style.scss +25 -0
- package/uview-plus/components/u-avatar/u-avatar.vue +168 -0
- package/uview-plus/components/u-avatar-group/props.js +53 -0
- package/uview-plus/components/u-avatar-group/style.css +39 -0
- package/uview-plus/components/u-avatar-group/style.scss +28 -0
- package/uview-plus/components/u-avatar-group/u-avatar-group.vue +74 -0
- package/uview-plus/components/u-back-top/props.js +55 -0
- package/uview-plus/components/u-back-top/style.css +27 -0
- package/uview-plus/components/u-back-top/style.scss +19 -0
- package/uview-plus/components/u-back-top/u-back-top.vue +95 -0
- package/uview-plus/components/u-badge/props.js +78 -0
- package/uview-plus/components/u-badge/style.css +68 -0
- package/uview-plus/components/u-badge/style.scss +85 -0
- package/uview-plus/components/u-badge/u-badge.vue +96 -0
- package/uview-plus/components/u-button/nvue-parse.scss +27 -0
- package/uview-plus/components/u-button/nvue.scss +1 -0
- package/uview-plus/components/u-button/props.js +162 -0
- package/uview-plus/components/u-button/style.css +202 -0
- package/uview-plus/components/u-button/style.scss +196 -0
- package/uview-plus/components/u-button/u-button.vue +262 -0
- package/uview-plus/components/u-button/vue-parse.scss +42 -0
- package/uview-plus/components/u-button/vue.scss +80 -0
- package/uview-plus/components/u-calendar/header.vue +1 -0
- package/uview-plus/components/u-calendar/month.vue +478 -0
- package/uview-plus/components/u-calendar/props.js +145 -0
- package/uview-plus/components/u-calendar/style.css +14 -0
- package/uview-plus/components/u-calendar/style.scss +7 -0
- package/uview-plus/components/u-calendar/u-calendar.vue +322 -0
- package/uview-plus/components/u-calendar/util.js +86 -0
- package/uview-plus/components/u-car-keyboard/props.js +15 -0
- package/uview-plus/components/u-car-keyboard/style.css +80 -0
- package/uview-plus/components/u-car-keyboard/style.scss +90 -0
- package/uview-plus/components/u-car-keyboard/u-car-keyboard.vue +1 -0
- package/uview-plus/components/u-cell/props.js +111 -0
- package/uview-plus/components/u-cell/style.css +98 -0
- package/uview-plus/components/u-cell/style.scss +127 -0
- package/uview-plus/components/u-cell/u-cell.vue +124 -0
- package/uview-plus/components/u-cell-group/props.js +15 -0
- package/uview-plus/components/u-cell-group/style.css +25 -0
- package/uview-plus/components/u-cell-group/style.scss +24 -0
- package/uview-plus/components/u-cell-group/u-cell-group.vue +37 -0
- package/uview-plus/components/u-checkbox/props.js +70 -0
- package/uview-plus/components/u-checkbox/style.css +86 -0
- package/uview-plus/components/u-checkbox/style.scss +103 -0
- package/uview-plus/components/u-checkbox/u-checkbox.vue +250 -0
- package/uview-plus/components/u-checkbox-group/props.js +91 -0
- package/uview-plus/components/u-checkbox-group/style.css +23 -0
- package/uview-plus/components/u-checkbox-group/style.scss +14 -0
- package/uview-plus/components/u-checkbox-group/u-checkbox-group.vue +112 -0
- package/uview-plus/components/u-circle-progress/props.js +9 -0
- package/uview-plus/components/u-circle-progress/style.css +80 -0
- package/uview-plus/components/u-circle-progress/style.scss +86 -0
- package/uview-plus/components/u-circle-progress/u-circle-progress.vue +99 -0
- package/uview-plus/components/u-code/props.js +35 -0
- package/uview-plus/components/u-code/style.css +11 -0
- package/uview-plus/components/u-code/style.scss +1 -0
- package/uview-plus/components/u-code/u-code.vue +129 -0
- package/uview-plus/components/u-code-input/props.js +80 -0
- package/uview-plus/components/u-code-input/style.css +78 -0
- package/uview-plus/components/u-code-input/style.scss +75 -0
- package/uview-plus/components/u-code-input/u-code-input.vue +169 -0
- package/uview-plus/components/u-col/props.js +30 -0
- package/uview-plus/components/u-col/style.css +61 -0
- package/uview-plus/components/u-col/style.scss +67 -0
- package/uview-plus/components/u-col/u-col.vue +92 -0
- package/uview-plus/components/u-collapse/props.js +20 -0
- package/uview-plus/components/u-collapse/style.css +11 -0
- package/uview-plus/components/u-collapse/style.scss +1 -0
- package/uview-plus/components/u-collapse/u-collapse.vue +87 -0
- package/uview-plus/components/u-collapse-item/props.js +60 -0
- package/uview-plus/components/u-collapse-item/style.css +21 -0
- package/uview-plus/components/u-collapse-item/style.scss +15 -0
- package/uview-plus/components/u-collapse-item/u-collapse-item.vue +1 -0
- package/uview-plus/components/u-column-notice/props.js +56 -0
- package/uview-plus/components/u-column-notice/style.css +48 -0
- package/uview-plus/components/u-column-notice/style.scss +35 -0
- package/uview-plus/components/u-column-notice/u-column-notice.vue +95 -0
- package/uview-plus/components/u-count-down/props.js +25 -0
- package/uview-plus/components/u-count-down/style.css +16 -0
- package/uview-plus/components/u-count-down/style.scss +12 -0
- package/uview-plus/components/u-count-down/u-count-down.vue +1 -0
- package/uview-plus/components/u-count-down/utils.js +62 -0
- package/uview-plus/components/u-count-to/props.js +60 -0
- package/uview-plus/components/u-count-to/style.css +17 -0
- package/uview-plus/components/u-count-to/style.scss +8 -0
- package/uview-plus/components/u-count-to/u-count-to.vue +179 -0
- package/uview-plus/components/u-datetime-picker/props.js +126 -0
- package/uview-plus/components/u-datetime-picker/style.css +11 -0
- package/uview-plus/components/u-datetime-picker/style.scss +1 -0
- package/uview-plus/components/u-datetime-picker/u-datetime-picker.vue +379 -0
- package/uview-plus/components/u-divider/props.js +45 -0
- package/uview-plus/components/u-divider/style.css +28 -0
- package/uview-plus/components/u-divider/style.scss +23 -0
- package/uview-plus/components/u-divider/u-divider.vue +73 -0
- package/uview-plus/components/u-dropdown/props.js +66 -0
- package/uview-plus/components/u-dropdown/style.css +32 -0
- package/uview-plus/components/u-dropdown/style.scss +18 -0
- package/uview-plus/components/u-dropdown/u-dropdown.vue +1 -0
- package/uview-plus/components/u-dropdown-item/props.js +37 -0
- package/uview-plus/components/u-dropdown-item/style.css +16 -0
- package/uview-plus/components/u-dropdown-item/style.scss +9 -0
- package/uview-plus/components/u-dropdown-item/u-dropdown-item.vue +1 -0
- package/uview-plus/components/u-empty/props.js +60 -0
- package/uview-plus/components/u-empty/style.css +38 -0
- package/uview-plus/components/u-empty/style.scss +23 -0
- package/uview-plus/components/u-empty/u-empty.vue +98 -0
- package/uview-plus/components/u-form/props.js +46 -0
- package/uview-plus/components/u-form/u-form.vue +1 -0
- package/uview-plus/components/u-form-item/props.js +44 -0
- package/uview-plus/components/u-form-item/style.css +95 -0
- package/uview-plus/components/u-form-item/style.scss +76 -0
- package/uview-plus/components/u-form-item/u-form-item.vue +159 -0
- package/uview-plus/components/u-gap/props.js +25 -0
- package/uview-plus/components/u-gap/style.css +11 -0
- package/uview-plus/components/u-gap/style.scss +1 -0
- package/uview-plus/components/u-gap/u-gap.vue +38 -0
- package/uview-plus/components/u-grid/props.js +20 -0
- package/uview-plus/components/u-grid/style.css +27 -0
- package/uview-plus/components/u-grid/style.scss +15 -0
- package/uview-plus/components/u-grid/u-grid.vue +80 -0
- package/uview-plus/components/u-grid-item/props.js +15 -0
- package/uview-plus/components/u-grid-item/style.css +41 -0
- package/uview-plus/components/u-grid-item/style.scss +44 -0
- package/uview-plus/components/u-grid-item/u-grid-item.vue +165 -0
- package/uview-plus/components/u-icon/icons.js +214 -0
- package/uview-plus/components/u-icon/props.js +90 -0
- package/uview-plus/components/u-icon/style.css +74 -0
- package/uview-plus/components/u-icon/style.scss +85 -0
- package/uview-plus/components/u-icon/u-icon.vue +133 -0
- package/uview-plus/components/u-image/props.js +85 -0
- package/uview-plus/components/u-image/style.css +35 -0
- package/uview-plus/components/u-image/style.scss +34 -0
- package/uview-plus/components/u-image/u-image.vue +182 -0
- package/uview-plus/components/u-index-anchor/props.js +30 -0
- package/uview-plus/components/u-index-anchor/style.css +29 -0
- package/uview-plus/components/u-index-anchor/style.scss +15 -0
- package/uview-plus/components/u-index-anchor/u-index-anchor.vue +78 -0
- package/uview-plus/components/u-index-item/props.js +4 -0
- package/uview-plus/components/u-index-item/style.css +11 -0
- package/uview-plus/components/u-index-item/style.scss +1 -0
- package/uview-plus/components/u-index-item/u-index-item.vue +81 -0
- package/uview-plus/components/u-index-list/props.js +30 -0
- package/uview-plus/components/u-index-list/style.css +61 -0
- package/uview-plus/components/u-index-list/style.scss +53 -0
- package/uview-plus/components/u-index-list/u-index-list.vue +367 -0
- package/uview-plus/components/u-input/props.js +196 -0
- package/uview-plus/components/u-input/style.css +75 -0
- package/uview-plus/components/u-input/style.scss +64 -0
- package/uview-plus/components/u-input/u-input.vue +287 -0
- package/uview-plus/components/u-keyboard/props.js +85 -0
- package/uview-plus/components/u-keyboard/style.css +37 -0
- package/uview-plus/components/u-keyboard/style.scss +31 -0
- package/uview-plus/components/u-keyboard/u-keyboard.vue +115 -0
- package/uview-plus/components/u-line/props.js +34 -0
- package/uview-plus/components/u-line/style.css +16 -0
- package/uview-plus/components/u-line/style.scss +7 -0
- package/uview-plus/components/u-line/u-line.vue +50 -0
- package/uview-plus/components/u-line-progress/props.js +29 -0
- package/uview-plus/components/u-line-progress/style.css +50 -0
- package/uview-plus/components/u-line-progress/style.scss +38 -0
- package/uview-plus/components/u-line-progress/u-line-progress.vue +99 -0
- package/uview-plus/components/u-link/props.js +40 -0
- package/uview-plus/components/u-link/style.css +22 -0
- package/uview-plus/components/u-link/style.scss +11 -0
- package/uview-plus/components/u-link/u-link.vue +68 -0
- package/uview-plus/components/u-list/props.js +76 -0
- package/uview-plus/components/u-list/style.css +17 -0
- package/uview-plus/components/u-list/style.scss +5 -0
- package/uview-plus/components/u-list/u-list.vue +152 -0
- package/uview-plus/components/u-list-item/props.js +10 -0
- package/uview-plus/components/u-list-item/style.css +11 -0
- package/uview-plus/components/u-list-item/style.scss +4 -0
- package/uview-plus/components/u-list-item/u-list-item.vue +105 -0
- package/uview-plus/components/u-loading-icon/props.js +60 -0
- package/uview-plus/components/u-loading-icon/style.css +148 -0
- package/uview-plus/components/u-loading-icon/style.scss +153 -0
- package/uview-plus/components/u-loading-icon/u-loading-icon.vue +1 -0
- package/uview-plus/components/u-loading-page/props.js +50 -0
- package/uview-plus/components/u-loading-page/style.css +44 -0
- package/uview-plus/components/u-loading-page/style.scss +37 -0
- package/uview-plus/components/u-loading-page/u-loading-page.vue +75 -0
- package/uview-plus/components/u-loadmore/props.js +95 -0
- package/uview-plus/components/u-loadmore/style.css +40 -0
- package/uview-plus/components/u-loadmore/style.scss +29 -0
- package/uview-plus/components/u-loadmore/u-loadmore.vue +101 -0
- package/uview-plus/components/u-message-input/style.css +115 -0
- package/uview-plus/components/u-message-input/style.scss +134 -0
- package/uview-plus/components/u-message-input/u-message-input.vue +205 -0
- package/uview-plus/components/u-modal/props.js +85 -0
- package/uview-plus/components/u-modal/style.css +70 -0
- package/uview-plus/components/u-modal/style.scss +65 -0
- package/uview-plus/components/u-modal/u-modal.vue +1 -0
- package/uview-plus/components/u-navbar/props.js +85 -0
- package/uview-plus/components/u-navbar/style.css +62 -0
- package/uview-plus/components/u-navbar/style.scss +58 -0
- package/uview-plus/components/u-navbar/u-navbar.vue +114 -0
- package/uview-plus/components/u-no-network/props.js +20 -0
- package/uview-plus/components/u-no-network/style.css +49 -0
- package/uview-plus/components/u-no-network/style.scss +36 -0
- package/uview-plus/components/u-no-network/u-no-network.vue +168 -0
- package/uview-plus/components/u-notice-bar/props.js +71 -0
- package/uview-plus/components/u-notice-bar/style.css +16 -0
- package/uview-plus/components/u-notice-bar/style.scss +7 -0
- package/uview-plus/components/u-notice-bar/u-notice-bar.vue +98 -0
- package/uview-plus/components/u-notify/props.js +50 -0
- package/uview-plus/components/u-notify/style.css +39 -0
- package/uview-plus/components/u-notify/style.scss +40 -0
- package/uview-plus/components/u-notify/u-notify.vue +166 -0
- package/uview-plus/components/u-number-box/props.js +119 -0
- package/uview-plus/components/u-number-box/style.css +67 -0
- package/uview-plus/components/u-number-box/style.scss +70 -0
- package/uview-plus/components/u-number-box/u-number-box.vue +343 -0
- package/uview-plus/components/u-number-keyboard/props.js +20 -0
- package/uview-plus/components/u-number-keyboard/style.css +56 -0
- package/uview-plus/components/u-number-keyboard/style.scss +62 -0
- package/uview-plus/components/u-number-keyboard/u-number-keyboard.vue +118 -0
- package/uview-plus/components/u-overlay/props.js +25 -0
- package/uview-plus/components/u-overlay/style.css +19 -0
- package/uview-plus/components/u-overlay/style.scss +14 -0
- package/uview-plus/components/u-overlay/u-overlay.vue +48 -0
- package/uview-plus/components/u-parse/node/node.vue +535 -0
- package/uview-plus/components/u-parse/parser.js +1333 -0
- package/uview-plus/components/u-parse/props.js +47 -0
- package/uview-plus/components/u-parse/u-parse.vue +519 -0
- package/uview-plus/components/u-picker/props.js +80 -0
- package/uview-plus/components/u-picker/style.css +57 -0
- package/uview-plus/components/u-picker/style.scss +45 -0
- package/uview-plus/components/u-picker/u-picker.vue +231 -0
- package/uview-plus/components/u-picker-column/props.js +4 -0
- package/uview-plus/components/u-picker-column/style.css +11 -0
- package/uview-plus/components/u-picker-column/style.scss +1 -0
- package/uview-plus/components/u-picker-column/u-picker-column.vue +25 -0
- package/uview-plus/components/u-popup/props.js +80 -0
- package/uview-plus/components/u-popup/style.css +70 -0
- package/uview-plus/components/u-popup/style.scss +75 -0
- package/uview-plus/components/u-popup/u-popup.vue +1 -0
- package/uview-plus/components/u-radio/props.js +70 -0
- package/uview-plus/components/u-radio/style.css +86 -0
- package/uview-plus/components/u-radio/style.scss +102 -0
- package/uview-plus/components/u-radio/u-radio.vue +238 -0
- package/uview-plus/components/u-radio-group/props.js +94 -0
- package/uview-plus/components/u-radio-group/style.css +26 -0
- package/uview-plus/components/u-radio-group/style.scss +16 -0
- package/uview-plus/components/u-radio-group/u-radio-group.vue +121 -0
- package/uview-plus/components/u-rate/props.js +79 -0
- package/uview-plus/components/u-rate/style.css +43 -0
- package/uview-plus/components/u-rate/style.scss +38 -0
- package/uview-plus/components/u-rate/u-rate.vue +249 -0
- package/uview-plus/components/u-read-more/props.js +62 -0
- package/uview-plus/components/u-read-more/style.css +33 -0
- package/uview-plus/components/u-read-more/style.scss +22 -0
- package/uview-plus/components/u-read-more/u-read-more.vue +119 -0
- package/uview-plus/components/u-row/props.js +20 -0
- package/uview-plus/components/u-row/style.css +17 -0
- package/uview-plus/components/u-row/style.scss +5 -0
- package/uview-plus/components/u-row/u-row.vue +82 -0
- package/uview-plus/components/u-row-notice/props.js +40 -0
- package/uview-plus/components/u-row-notice/style.css +61 -0
- package/uview-plus/components/u-row-notice/style.scss +50 -0
- package/uview-plus/components/u-row-notice/u-row-notice.vue +256 -0
- package/uview-plus/components/u-safe-bottom/props.js +4 -0
- package/uview-plus/components/u-safe-bottom/style.css +5 -0
- package/uview-plus/components/u-safe-bottom/style.scss +5 -0
- package/uview-plus/components/u-safe-bottom/u-safe-bottom.vue +1 -0
- package/uview-plus/components/u-scroll-list/nvue.js +3 -0
- package/uview-plus/components/u-scroll-list/other.js +0 -0
- package/uview-plus/components/u-scroll-list/props.js +35 -0
- package/uview-plus/components/u-scroll-list/scrollWxs.wxs +50 -0
- package/uview-plus/components/u-scroll-list/style.css +45 -0
- package/uview-plus/components/u-scroll-list/style.scss +32 -0
- package/uview-plus/components/u-scroll-list/u-scroll-list.vue +193 -0
- package/uview-plus/components/u-search/props.js +123 -0
- package/uview-plus/components/u-search/style.css +92 -0
- package/uview-plus/components/u-search/style.scss +98 -0
- package/uview-plus/components/u-search/u-search.vue +220 -0
- package/uview-plus/components/u-skeleton/props.js +60 -0
- package/uview-plus/components/u-skeleton/style.css +62 -0
- package/uview-plus/components/u-skeleton/style.scss +59 -0
- package/uview-plus/components/u-skeleton/u-skeleton.vue +188 -0
- package/uview-plus/components/u-slider/mpother.js +113 -0
- package/uview-plus/components/u-slider/mpwxs.js +42 -0
- package/uview-plus/components/u-slider/mpwxs.wxs +121 -0
- package/uview-plus/components/u-slider/nvue - /345/211/257/346/234/254.js" +175 -0
- package/uview-plus/components/u-slider/nvue.js +190 -0
- package/uview-plus/components/u-slider/props.js +55 -0
- package/uview-plus/components/u-slider/style.css +11 -0
- package/uview-plus/components/u-slider/style.scss +1 -0
- package/uview-plus/components/u-slider/u-slider.vue +1 -0
- package/uview-plus/components/u-status-bar/props.js +9 -0
- package/uview-plus/components/u-status-bar/style.css +5 -0
- package/uview-plus/components/u-status-bar/style.scss +6 -0
- package/uview-plus/components/u-status-bar/u-status-bar.vue +37 -0
- package/uview-plus/components/u-steps/props.js +40 -0
- package/uview-plus/components/u-steps/style.css +24 -0
- package/uview-plus/components/u-steps/style.scss +14 -0
- package/uview-plus/components/u-steps/u-steps.vue +63 -0
- package/uview-plus/components/u-steps-item/props.js +25 -0
- package/uview-plus/components/u-steps-item/style.css +119 -0
- package/uview-plus/components/u-steps-item/style.scss +111 -0
- package/uview-plus/components/u-steps-item/u-steps-item.vue +225 -0
- package/uview-plus/components/u-sticky/props.js +41 -0
- package/uview-plus/components/u-sticky/style.css +5 -0
- package/uview-plus/components/u-sticky/style.scss +6 -0
- package/uview-plus/components/u-sticky/u-sticky.vue +201 -0
- package/uview-plus/components/u-subsection/props.js +50 -0
- package/uview-plus/components/u-subsection/style.css +95 -0
- package/uview-plus/components/u-subsection/style.scss +90 -0
- package/uview-plus/components/u-subsection/u-subsection.vue +188 -0
- package/uview-plus/components/u-swipe-action/props.js +10 -0
- package/uview-plus/components/u-swipe-action/u-swipe-action.vue +65 -0
- package/uview-plus/components/u-swipe-action-item/index - backup.wxs +256 -0
- package/uview-plus/components/u-swipe-action-item/index.wxs +229 -0
- package/uview-plus/components/u-swipe-action-item/nvue - backup.js +264 -0
- package/uview-plus/components/u-swipe-action-item/nvue.js +172 -0
- package/uview-plus/components/u-swipe-action-item/props.js +42 -0
- package/uview-plus/components/u-swipe-action-item/style.css +61 -0
- package/uview-plus/components/u-swipe-action-item/style.scss +45 -0
- package/uview-plus/components/u-swipe-action-item/u-swipe-action-item.vue +188 -0
- package/uview-plus/components/u-swipe-action-item/wxs.js +15 -0
- package/uview-plus/components/u-swiper/props.js +126 -0
- package/uview-plus/components/u-swiper/style.css +58 -0
- package/uview-plus/components/u-swiper/style.scss +50 -0
- package/uview-plus/components/u-swiper/u-swiper.vue +196 -0
- package/uview-plus/components/u-swiper-indicator/props.js +30 -0
- package/uview-plus/components/u-swiper-indicator/style.css +37 -0
- package/uview-plus/components/u-swiper-indicator/style.scss +31 -0
- package/uview-plus/components/u-swiper-indicator/u-swiper-indicator.vue +70 -0
- package/uview-plus/components/u-switch/props.js +63 -0
- package/uview-plus/components/u-switch/style.css +58 -0
- package/uview-plus/components/u-switch/style.scss +48 -0
- package/uview-plus/components/u-switch/u-switch.vue +165 -0
- package/uview-plus/components/u-tabbar/props.js +45 -0
- package/uview-plus/components/u-tabbar/style.css +40 -0
- package/uview-plus/components/u-tabbar/style.scss +25 -0
- package/uview-plus/components/u-tabbar/u-tabbar.vue +115 -0
- package/uview-plus/components/u-tabbar-item/props.js +35 -0
- package/uview-plus/components/u-tabbar-item/style.css +42 -0
- package/uview-plus/components/u-tabbar-item/style.scss +30 -0
- package/uview-plus/components/u-tabbar-item/u-tabbar-item.vue +105 -0
- package/uview-plus/components/u-table/props.js +4 -0
- package/uview-plus/components/u-table/style.css +11 -0
- package/uview-plus/components/u-table/style.scss +1 -0
- package/uview-plus/components/u-table/u-table.vue +24 -0
- package/uview-plus/components/u-tabs/props.js +65 -0
- package/uview-plus/components/u-tabs/style.css +69 -0
- package/uview-plus/components/u-tabs/style.scss +58 -0
- package/uview-plus/components/u-tabs/u-tabs.vue +294 -0
- package/uview-plus/components/u-tabs-item/props.js +4 -0
- package/uview-plus/components/u-tabs-item/u-tabs-item.vue +26 -0
- package/uview-plus/components/u-tag/props.js +85 -0
- package/uview-plus/components/u-tag/style.css +180 -0
- package/uview-plus/components/u-tag/style.scss +206 -0
- package/uview-plus/components/u-tag/u-tag.vue +1 -0
- package/uview-plus/components/u-td/props.js +4 -0
- package/uview-plus/components/u-td/style.css +11 -0
- package/uview-plus/components/u-td/style.scss +1 -0
- package/uview-plus/components/u-td/u-td.vue +26 -0
- package/uview-plus/components/u-text/props.js +111 -0
- package/uview-plus/components/u-text/style.css +65 -0
- package/uview-plus/components/u-text/style.scss +62 -0
- package/uview-plus/components/u-text/u-text.vue +144 -0
- package/uview-plus/components/u-text/value.js +85 -0
- package/uview-plus/components/u-textarea/props.js +125 -0
- package/uview-plus/components/u-textarea/style.css +46 -0
- package/uview-plus/components/u-textarea/style.scss +39 -0
- package/uview-plus/components/u-textarea/u-textarea.vue +222 -0
- package/uview-plus/components/u-toast/style.css +78 -0
- package/uview-plus/components/u-toast/style.scss +108 -0
- package/uview-plus/components/u-toast/u-toast.vue +180 -0
- package/uview-plus/components/u-toolbar/props.js +35 -0
- package/uview-plus/components/u-toolbar/style.css +37 -0
- package/uview-plus/components/u-toolbar/style.scss +32 -0
- package/uview-plus/components/u-toolbar/u-toolbar.vue +62 -0
- package/uview-plus/components/u-tooltip/props.js +60 -0
- package/uview-plus/components/u-tooltip/style.css +75 -0
- package/uview-plus/components/u-tooltip/style.scss +63 -0
- package/uview-plus/components/u-tooltip/u-tooltip.vue +279 -0
- package/uview-plus/components/u-tr/props.js +4 -0
- package/uview-plus/components/u-tr/style.css +11 -0
- package/uview-plus/components/u-tr/style.scss +1 -0
- package/uview-plus/components/u-tr/u-tr.vue +26 -0
- package/uview-plus/components/u-transition/nvue-ani-map.js +1 -0
- package/uview-plus/components/u-transition/props.js +25 -0
- package/uview-plus/components/u-transition/style.css +109 -0
- package/uview-plus/components/u-transition/style.scss +9 -0
- package/uview-plus/components/u-transition/transition.js +164 -0
- package/uview-plus/components/u-transition/u-transition.vue +86 -0
- package/uview-plus/components/u-transition/vue.ani-style.scss +113 -0
- package/uview-plus/components/u-upload/mixin.js +21 -0
- package/uview-plus/components/u-upload/props.js +125 -0
- package/uview-plus/components/u-upload/style.css +164 -0
- package/uview-plus/components/u-upload/style.scss +200 -0
- package/uview-plus/components/u-upload/u-upload.vue +316 -0
- package/uview-plus/components/u-upload/utils.js +151 -0
- package/uview-plus/components/uview-plus/uview-plus.vue +8 -0
- package/uview-plus/index.css +4091 -0
- package/uview-plus/index.js +81 -0
- package/uview-plus/index.scss +24 -0
- package/uview-plus/libs/config/color.js +17 -0
- package/uview-plus/libs/config/config.js +33 -0
- package/uview-plus/libs/config/props/actionSheet.js +25 -0
- package/uview-plus/libs/config/props/album.js +25 -0
- package/uview-plus/libs/config/props/alert.js +22 -0
- package/uview-plus/libs/config/props/avatar.js +28 -0
- package/uview-plus/libs/config/props/avatarGroup.js +23 -0
- package/uview-plus/libs/config/props/backtop.js +27 -0
- package/uview-plus/libs/config/props/badge.js +27 -0
- package/uview-plus/libs/config/props/button.js +42 -0
- package/uview-plus/libs/config/props/calendar.js +42 -0
- package/uview-plus/libs/config/props/carKeyboard.js +15 -0
- package/uview-plus/libs/config/props/cell.js +35 -0
- package/uview-plus/libs/config/props/cellGroup.js +17 -0
- package/uview-plus/libs/config/props/checkbox.js +27 -0
- package/uview-plus/libs/config/props/checkboxGroup.js +29 -0
- package/uview-plus/libs/config/props/circleProgress.js +15 -0
- package/uview-plus/libs/config/props/code.js +21 -0
- package/uview-plus/libs/config/props/codeInput.js +29 -0
- package/uview-plus/libs/config/props/col.js +19 -0
- package/uview-plus/libs/config/props/collapse.js +17 -0
- package/uview-plus/libs/config/props/collapseItem.js +25 -0
- package/uview-plus/libs/config/props/columnNotice.js +24 -0
- package/uview-plus/libs/config/props/countDown.js +18 -0
- package/uview-plus/libs/config/props/countTo.js +25 -0
- package/uview-plus/libs/config/props/datetimePicker.js +36 -0
- package/uview-plus/libs/config/props/divider.js +23 -0
- package/uview-plus/libs/config/props/empty.js +26 -0
- package/uview-plus/libs/config/props/form.js +22 -0
- package/uview-plus/libs/config/props/formItem.js +22 -0
- package/uview-plus/libs/config/props/gap.js +19 -0
- package/uview-plus/libs/config/props/grid.js +17 -0
- package/uview-plus/libs/config/props/gridItem.js +16 -0
- package/uview-plus/libs/config/props/icon.js +36 -0
- package/uview-plus/libs/config/props/image.js +30 -0
- package/uview-plus/libs/config/props/indexAnchor.js +19 -0
- package/uview-plus/libs/config/props/indexList.js +19 -0
- package/uview-plus/libs/config/props/input.js +48 -0
- package/uview-plus/libs/config/props/keyboard.js +30 -0
- package/uview-plus/libs/config/props/line.js +20 -0
- package/uview-plus/libs/config/props/lineProgress.js +19 -0
- package/uview-plus/libs/config/props/link.js +26 -0
- package/uview-plus/libs/config/props/list.js +28 -0
- package/uview-plus/libs/config/props/listItem.js +15 -0
- package/uview-plus/libs/config/props/loadingIcon.js +30 -0
- package/uview-plus/libs/config/props/loadingPage.js +23 -0
- package/uview-plus/libs/config/props/loadmore.js +32 -0
- package/uview-plus/libs/config/props/modal.js +30 -0
- package/uview-plus/libs/config/props/navbar.js +32 -0
- package/uview-plus/libs/config/props/noNetwork.js +18 -0
- package/uview-plus/libs/config/props/noticeBar.js +27 -0
- package/uview-plus/libs/config/props/notify.js +22 -0
- package/uview-plus/libs/config/props/numberBox.js +35 -0
- package/uview-plus/libs/config/props/numberKeyboard.js +17 -0
- package/uview-plus/libs/config/props/overlay.js +18 -0
- package/uview-plus/libs/config/props/parse.js +22 -0
- package/uview-plus/libs/config/props/picker.js +29 -0
- package/uview-plus/libs/config/props/popup.js +29 -0
- package/uview-plus/libs/config/props/radio.js +27 -0
- package/uview-plus/libs/config/props/radioGroup.js +30 -0
- package/uview-plus/libs/config/props/rate.js +26 -0
- package/uview-plus/libs/config/props/readMore.js +22 -0
- package/uview-plus/libs/config/props/row.js +17 -0
- package/uview-plus/libs/config/props/rowNotice.js +21 -0
- package/uview-plus/libs/config/props/scrollList.js +20 -0
- package/uview-plus/libs/config/props/search.js +37 -0
- package/uview-plus/libs/config/props/section.js +24 -0
- package/uview-plus/libs/config/props/skeleton.js +25 -0
- package/uview-plus/libs/config/props/slider.js +25 -0
- package/uview-plus/libs/config/props/statusBar.js +15 -0
- package/uview-plus/libs/config/props/steps.js +21 -0
- package/uview-plus/libs/config/props/stepsItem.js +18 -0
- package/uview-plus/libs/config/props/sticky.js +20 -0
- package/uview-plus/libs/config/props/subsection.js +23 -0
- package/uview-plus/libs/config/props/swipeAction.js +15 -0
- package/uview-plus/libs/config/props/swipeActionItem.js +21 -0
- package/uview-plus/libs/config/props/swiper.js +39 -0
- package/uview-plus/libs/config/props/swipterIndicator.js +19 -0
- package/uview-plus/libs/config/props/switch.js +24 -0
- package/uview-plus/libs/config/props/tabbar.js +22 -0
- package/uview-plus/libs/config/props/tabbarItem.js +20 -0
- package/uview-plus/libs/config/props/tabs.js +32 -0
- package/uview-plus/libs/config/props/tag.js +29 -0
- package/uview-plus/libs/config/props/text.js +38 -0
- package/uview-plus/libs/config/props/textarea.js +36 -0
- package/uview-plus/libs/config/props/toast.js +30 -0
- package/uview-plus/libs/config/props/toolbar.js +21 -0
- package/uview-plus/libs/config/props/tooltip.js +25 -0
- package/uview-plus/libs/config/props/transition.js +18 -0
- package/uview-plus/libs/config/props/upload.js +36 -0
- package/uview-plus/libs/config/props.js +190 -0
- package/uview-plus/libs/config/zIndex.js +20 -0
- package/uview-plus/libs/css/color-libcss.scss +117 -0
- package/uview-plus/libs/css/color.scss +155 -0
- package/uview-plus/libs/css/common-libcss.scss +132 -0
- package/uview-plus/libs/css/common.scss +97 -0
- package/uview-plus/libs/css/components-libcss.scss +11 -0
- package/uview-plus/libs/css/components.scss +15 -0
- package/uview-plus/libs/css/flex-libcss.scss +2815 -0
- package/uview-plus/libs/css/flex.scss +296 -0
- package/uview-plus/libs/css/h5-libcss.scss +0 -0
- package/uview-plus/libs/css/h5.scss +0 -0
- package/uview-plus/libs/css/mixin-libcss.scss +0 -0
- package/uview-plus/libs/css/mixin.scss +8 -0
- package/uview-plus/libs/css/mp-libcss.scss +0 -0
- package/uview-plus/libs/css/mp.scss +0 -0
- package/uview-plus/libs/css/nvue-libcss.scss +0 -0
- package/uview-plus/libs/css/nvue.scss +0 -0
- package/uview-plus/libs/css/vue-libcss.scss +35 -0
- package/uview-plus/libs/css/vue.scss +27 -0
- package/uview-plus/libs/function/colorGradient.js +134 -0
- package/uview-plus/libs/function/debounce.js +29 -0
- package/uview-plus/libs/function/digit.js +167 -0
- package/uview-plus/libs/function/index.js +708 -0
- package/uview-plus/libs/function/platform.js +75 -0
- package/uview-plus/libs/function/test.js +288 -0
- package/uview-plus/libs/function/throttle.js +30 -0
- package/uview-plus/libs/luch-request/adapters/index.js +97 -0
- package/uview-plus/libs/luch-request/core/InterceptorManager.js +50 -0
- package/uview-plus/libs/luch-request/core/Request.js +198 -0
- package/uview-plus/libs/luch-request/core/buildFullPath.js +20 -0
- package/uview-plus/libs/luch-request/core/defaults.js +29 -0
- package/uview-plus/libs/luch-request/core/dispatchRequest.js +3 -0
- package/uview-plus/libs/luch-request/core/mergeConfig.js +103 -0
- package/uview-plus/libs/luch-request/core/settle.js +16 -0
- package/uview-plus/libs/luch-request/helpers/buildURL.js +69 -0
- package/uview-plus/libs/luch-request/helpers/combineURLs.js +14 -0
- package/uview-plus/libs/luch-request/helpers/isAbsoluteURL.js +14 -0
- package/uview-plus/libs/luch-request/index.d.ts +116 -0
- package/uview-plus/libs/luch-request/index.js +3 -0
- package/uview-plus/libs/luch-request/utils/clone.js +264 -0
- package/uview-plus/libs/luch-request/utils.js +131 -0
- package/uview-plus/libs/mixin/button.js +13 -0
- package/uview-plus/libs/mixin/mixin.js +167 -0
- package/uview-plus/libs/mixin/mpMixin.js +8 -0
- package/uview-plus/libs/mixin/mpShare.js +13 -0
- package/uview-plus/libs/mixin/openType.js +25 -0
- package/uview-plus/libs/mixin/style.js +252 -0
- package/uview-plus/libs/mixin/touch.js +61 -0
- package/uview-plus/libs/util/async-validator.js +1343 -0
- package/uview-plus/libs/util/calendar.js +546 -0
- package/uview-plus/libs/util/emitter.js +51 -0
- package/uview-plus/libs/util/route.js +124 -0
- package/uview-plus/package.json +91 -0
- package/uview-plus/theme.css +29 -0
- package/uview-plus/theme.scss +44 -0
- package/uview-ui/LICENSE +21 -0
- package/uview-ui/README.md +66 -0
- package/uview-ui/changelog.md +362 -0
- package/uview-ui/components/u--form/u--form.vue +1 -0
- package/uview-ui/components/u--image/u--image.vue +1 -0
- package/uview-ui/components/u--input/u--input.vue +1 -0
- package/uview-ui/components/u--text/u--text.vue +1 -0
- package/uview-ui/components/u--textarea/u--textarea.vue +1 -0
- package/uview-ui/components/u-action-sheet/props.js +55 -0
- package/uview-ui/components/u-action-sheet/style.css +68 -0
- package/uview-ui/components/u-action-sheet/style.scss +84 -0
- package/uview-ui/components/u-action-sheet/u-action-sheet.vue +158 -0
- package/uview-ui/components/u-album/props.js +60 -0
- package/uview-ui/components/u-album/style.css +41 -0
- package/uview-ui/components/u-album/style.scss +26 -0
- package/uview-ui/components/u-album/u-album.vue +203 -0
- package/uview-ui/components/u-alert/props.js +45 -0
- package/uview-ui/components/u-alert/style.css +101 -0
- package/uview-ui/components/u-alert/style.scss +113 -0
- package/uview-ui/components/u-alert/u-alert.vue +118 -0
- package/uview-ui/components/u-avatar/props.js +79 -0
- package/uview-ui/components/u-avatar/style.css +31 -0
- package/uview-ui/components/u-avatar/style.scss +25 -0
- package/uview-ui/components/u-avatar/u-avatar.vue +168 -0
- package/uview-ui/components/u-avatar-group/props.js +53 -0
- package/uview-ui/components/u-avatar-group/style.css +39 -0
- package/uview-ui/components/u-avatar-group/style.scss +28 -0
- package/uview-ui/components/u-avatar-group/u-avatar-group.vue +74 -0
- package/uview-ui/components/u-back-top/props.js +55 -0
- package/uview-ui/components/u-back-top/style.css +27 -0
- package/uview-ui/components/u-back-top/style.scss +19 -0
- package/uview-ui/components/u-back-top/u-back-top.vue +95 -0
- package/uview-ui/components/u-badge/props.js +73 -0
- package/uview-ui/components/u-badge/style.css +68 -0
- package/uview-ui/components/u-badge/style.scss +85 -0
- package/uview-ui/components/u-badge/u-badge.vue +96 -0
- package/uview-ui/components/u-button/nvue-parse.scss +27 -0
- package/uview-ui/components/u-button/nvue.scss +1 -0
- package/uview-ui/components/u-button/props.js +162 -0
- package/uview-ui/components/u-button/style.css +202 -0
- package/uview-ui/components/u-button/style.scss +196 -0
- package/uview-ui/components/u-button/u-button.vue +261 -0
- package/uview-ui/components/u-button/vue-parse.scss +42 -0
- package/uview-ui/components/u-button/vue.scss +80 -0
- package/uview-ui/components/u-calendar/header.vue +1 -0
- package/uview-ui/components/u-calendar/month.vue +476 -0
- package/uview-ui/components/u-calendar/props.js +145 -0
- package/uview-ui/components/u-calendar/style.css +14 -0
- package/uview-ui/components/u-calendar/style.scss +7 -0
- package/uview-ui/components/u-calendar/u-calendar.vue +325 -0
- package/uview-ui/components/u-calendar/util.js +85 -0
- package/uview-ui/components/u-car-keyboard/props.js +14 -0
- package/uview-ui/components/u-car-keyboard/style.css +80 -0
- package/uview-ui/components/u-car-keyboard/style.scss +90 -0
- package/uview-ui/components/u-car-keyboard/u-car-keyboard.vue +1 -0
- package/uview-ui/components/u-cell/props.js +111 -0
- package/uview-ui/components/u-cell/style.css +98 -0
- package/uview-ui/components/u-cell/style.scss +127 -0
- package/uview-ui/components/u-cell/u-cell.vue +125 -0
- package/uview-ui/components/u-cell-group/props.js +15 -0
- package/uview-ui/components/u-cell-group/style.css +25 -0
- package/uview-ui/components/u-cell-group/style.scss +24 -0
- package/uview-ui/components/u-cell-group/u-cell-group.vue +37 -0
- package/uview-ui/components/u-checkbox/props.js +70 -0
- package/uview-ui/components/u-checkbox/style.css +84 -0
- package/uview-ui/components/u-checkbox/style.scss +101 -0
- package/uview-ui/components/u-checkbox/u-checkbox.vue +239 -0
- package/uview-ui/components/u-checkbox-group/props.js +82 -0
- package/uview-ui/components/u-checkbox-group/style.css +23 -0
- package/uview-ui/components/u-checkbox-group/style.scss +11 -0
- package/uview-ui/components/u-checkbox-group/u-checkbox-group.vue +96 -0
- package/uview-ui/components/u-circle-progress/props.js +9 -0
- package/uview-ui/components/u-circle-progress/style.css +80 -0
- package/uview-ui/components/u-circle-progress/style.scss +86 -0
- package/uview-ui/components/u-circle-progress/u-circle-progress.vue +99 -0
- package/uview-ui/components/u-code/props.js +35 -0
- package/uview-ui/components/u-code/style.css +11 -0
- package/uview-ui/components/u-code/style.scss +1 -0
- package/uview-ui/components/u-code/u-code.vue +129 -0
- package/uview-ui/components/u-code-input/props.js +80 -0
- package/uview-ui/components/u-code-input/style.css +78 -0
- package/uview-ui/components/u-code-input/style.scss +75 -0
- package/uview-ui/components/u-code-input/u-code-input.vue +169 -0
- package/uview-ui/components/u-col/props.js +30 -0
- package/uview-ui/components/u-col/style.css +61 -0
- package/uview-ui/components/u-col/style.scss +67 -0
- package/uview-ui/components/u-col/u-col.vue +88 -0
- package/uview-ui/components/u-collapse/props.js +20 -0
- package/uview-ui/components/u-collapse/style.css +11 -0
- package/uview-ui/components/u-collapse/style.scss +1 -0
- package/uview-ui/components/u-collapse/u-collapse.vue +89 -0
- package/uview-ui/components/u-collapse-item/props.js +60 -0
- package/uview-ui/components/u-collapse-item/style.css +21 -0
- package/uview-ui/components/u-collapse-item/style.scss +15 -0
- package/uview-ui/components/u-collapse-item/u-collapse-item.vue +1 -0
- package/uview-ui/components/u-column-notice/props.js +56 -0
- package/uview-ui/components/u-column-notice/style.css +48 -0
- package/uview-ui/components/u-column-notice/style.scss +35 -0
- package/uview-ui/components/u-column-notice/u-column-notice.vue +95 -0
- package/uview-ui/components/u-count-down/props.js +25 -0
- package/uview-ui/components/u-count-down/style.css +16 -0
- package/uview-ui/components/u-count-down/style.scss +12 -0
- package/uview-ui/components/u-count-down/u-count-down.vue +1 -0
- package/uview-ui/components/u-count-down/utils.js +62 -0
- package/uview-ui/components/u-count-to/props.js +60 -0
- package/uview-ui/components/u-count-to/style.css +17 -0
- package/uview-ui/components/u-count-to/style.scss +8 -0
- package/uview-ui/components/u-count-to/u-count-to.vue +179 -0
- package/uview-ui/components/u-datetime-picker/props.js +117 -0
- package/uview-ui/components/u-datetime-picker/style.css +11 -0
- package/uview-ui/components/u-datetime-picker/style.scss +1 -0
- package/uview-ui/components/u-datetime-picker/u-datetime-picker.vue +365 -0
- package/uview-ui/components/u-divider/props.js +45 -0
- package/uview-ui/components/u-divider/style.css +28 -0
- package/uview-ui/components/u-divider/style.scss +23 -0
- package/uview-ui/components/u-divider/u-divider.vue +73 -0
- package/uview-ui/components/u-dropdown/props.js +65 -0
- package/uview-ui/components/u-dropdown/style.css +32 -0
- package/uview-ui/components/u-dropdown/style.scss +18 -0
- package/uview-ui/components/u-dropdown/u-dropdown.vue +1 -0
- package/uview-ui/components/u-dropdown-item/props.js +36 -0
- package/uview-ui/components/u-dropdown-item/style.css +32 -0
- package/uview-ui/components/u-dropdown-item/style.scss +18 -0
- package/uview-ui/components/u-dropdown-item/u-dropdown-item.vue +1 -0
- package/uview-ui/components/u-empty/props.js +60 -0
- package/uview-ui/components/u-empty/style.css +38 -0
- package/uview-ui/components/u-empty/style.scss +23 -0
- package/uview-ui/components/u-empty/u-empty.vue +98 -0
- package/uview-ui/components/u-form/props.js +46 -0
- package/uview-ui/components/u-form/u-form.vue +1 -0
- package/uview-ui/components/u-form-item/props.js +49 -0
- package/uview-ui/components/u-form-item/style.css +95 -0
- package/uview-ui/components/u-form-item/style.scss +76 -0
- package/uview-ui/components/u-form-item/u-form-item.vue +159 -0
- package/uview-ui/components/u-gap/props.js +25 -0
- package/uview-ui/components/u-gap/style.css +11 -0
- package/uview-ui/components/u-gap/style.scss +1 -0
- package/uview-ui/components/u-gap/u-gap.vue +38 -0
- package/uview-ui/components/u-grid/props.js +20 -0
- package/uview-ui/components/u-grid/style.css +27 -0
- package/uview-ui/components/u-grid/style.scss +15 -0
- package/uview-ui/components/u-grid/u-grid.vue +79 -0
- package/uview-ui/components/u-grid-item/props.js +15 -0
- package/uview-ui/components/u-grid-item/style.css +41 -0
- package/uview-ui/components/u-grid-item/style.scss +44 -0
- package/uview-ui/components/u-grid-item/u-grid-item.vue +160 -0
- package/uview-ui/components/u-icon/icons.js +214 -0
- package/uview-ui/components/u-icon/props.js +90 -0
- package/uview-ui/components/u-icon/style.css +74 -0
- package/uview-ui/components/u-icon/style.scss +85 -0
- package/uview-ui/components/u-icon/u-icon.vue +132 -0
- package/uview-ui/components/u-image/props.js +85 -0
- package/uview-ui/components/u-image/style.css +35 -0
- package/uview-ui/components/u-image/style.scss +34 -0
- package/uview-ui/components/u-image/u-image.vue +181 -0
- package/uview-ui/components/u-index-anchor/props.js +30 -0
- package/uview-ui/components/u-index-anchor/style.css +29 -0
- package/uview-ui/components/u-index-anchor/style.scss +15 -0
- package/uview-ui/components/u-index-anchor/u-index-anchor.vue +78 -0
- package/uview-ui/components/u-index-item/props.js +3 -0
- package/uview-ui/components/u-index-item/style.css +11 -0
- package/uview-ui/components/u-index-item/style.scss +1 -0
- package/uview-ui/components/u-index-item/u-index-item.vue +81 -0
- package/uview-ui/components/u-index-list/props.js +30 -0
- package/uview-ui/components/u-index-list/style.css +61 -0
- package/uview-ui/components/u-index-list/style.scss +53 -0
- package/uview-ui/components/u-index-list/u-index-list.vue +367 -0
- package/uview-ui/components/u-input/props.js +188 -0
- package/uview-ui/components/u-input/style.css +75 -0
- package/uview-ui/components/u-input/style.scss +64 -0
- package/uview-ui/components/u-input/u-input.vue +260 -0
- package/uview-ui/components/u-keyboard/props.js +85 -0
- package/uview-ui/components/u-keyboard/style.css +37 -0
- package/uview-ui/components/u-keyboard/style.scss +31 -0
- package/uview-ui/components/u-keyboard/u-keyboard.vue +115 -0
- package/uview-ui/components/u-line/props.js +34 -0
- package/uview-ui/components/u-line/style.css +16 -0
- package/uview-ui/components/u-line/style.scss +7 -0
- package/uview-ui/components/u-line/u-line.vue +50 -0
- package/uview-ui/components/u-line-progress/props.js +29 -0
- package/uview-ui/components/u-line-progress/style.css +50 -0
- package/uview-ui/components/u-line-progress/style.scss +38 -0
- package/uview-ui/components/u-line-progress/u-line-progress.vue +99 -0
- package/uview-ui/components/u-link/props.js +40 -0
- package/uview-ui/components/u-link/style.css +22 -0
- package/uview-ui/components/u-link/style.scss +11 -0
- package/uview-ui/components/u-link/u-link.vue +68 -0
- package/uview-ui/components/u-list/props.js +76 -0
- package/uview-ui/components/u-list/style.css +17 -0
- package/uview-ui/components/u-list/style.scss +5 -0
- package/uview-ui/components/u-list/u-list.vue +152 -0
- package/uview-ui/components/u-list-item/props.js +10 -0
- package/uview-ui/components/u-list-item/style.css +11 -0
- package/uview-ui/components/u-list-item/style.scss +4 -0
- package/uview-ui/components/u-list-item/u-list-item.vue +105 -0
- package/uview-ui/components/u-loading-icon/props.js +60 -0
- package/uview-ui/components/u-loading-icon/style.css +148 -0
- package/uview-ui/components/u-loading-icon/style.scss +153 -0
- package/uview-ui/components/u-loading-icon/u-loading-icon.vue +1 -0
- package/uview-ui/components/u-loading-page/props.js +50 -0
- package/uview-ui/components/u-loading-page/style.css +44 -0
- package/uview-ui/components/u-loading-page/style.scss +37 -0
- package/uview-ui/components/u-loading-page/u-loading-page.vue +75 -0
- package/uview-ui/components/u-loadmore/props.js +95 -0
- package/uview-ui/components/u-loadmore/style.css +40 -0
- package/uview-ui/components/u-loadmore/style.scss +29 -0
- package/uview-ui/components/u-loadmore/u-loadmore.vue +101 -0
- package/uview-ui/components/u-modal/props.js +85 -0
- package/uview-ui/components/u-modal/style.css +70 -0
- package/uview-ui/components/u-modal/style.scss +65 -0
- package/uview-ui/components/u-modal/u-modal.vue +1 -0
- package/uview-ui/components/u-navbar/props.js +85 -0
- package/uview-ui/components/u-navbar/style.css +62 -0
- package/uview-ui/components/u-navbar/style.scss +58 -0
- package/uview-ui/components/u-navbar/u-navbar.vue +114 -0
- package/uview-ui/components/u-no-network/props.js +20 -0
- package/uview-ui/components/u-no-network/style.css +49 -0
- package/uview-ui/components/u-no-network/style.scss +36 -0
- package/uview-ui/components/u-no-network/u-no-network.vue +168 -0
- package/uview-ui/components/u-notice-bar/props.js +71 -0
- package/uview-ui/components/u-notice-bar/style.css +16 -0
- package/uview-ui/components/u-notice-bar/style.scss +7 -0
- package/uview-ui/components/u-notice-bar/u-notice-bar.vue +98 -0
- package/uview-ui/components/u-notify/props.js +50 -0
- package/uview-ui/components/u-notify/style.css +39 -0
- package/uview-ui/components/u-notify/style.scss +40 -0
- package/uview-ui/components/u-notify/u-notify.vue +166 -0
- package/uview-ui/components/u-number-box/props.js +110 -0
- package/uview-ui/components/u-number-box/style.css +67 -0
- package/uview-ui/components/u-number-box/style.scss +70 -0
- package/uview-ui/components/u-number-box/u-number-box.vue +320 -0
- package/uview-ui/components/u-number-keyboard/props.js +20 -0
- package/uview-ui/components/u-number-keyboard/style.css +56 -0
- package/uview-ui/components/u-number-keyboard/style.scss +62 -0
- package/uview-ui/components/u-number-keyboard/u-number-keyboard.vue +118 -0
- package/uview-ui/components/u-overlay/props.js +25 -0
- package/uview-ui/components/u-overlay/style.css +19 -0
- package/uview-ui/components/u-overlay/style.scss +14 -0
- package/uview-ui/components/u-overlay/u-overlay.vue +48 -0
- package/uview-ui/components/u-parse/node/node.vue +1 -0
- package/uview-ui/components/u-parse/parser.js +1075 -0
- package/uview-ui/components/u-parse/props.js +46 -0
- package/uview-ui/components/u-parse/u-parse.vue +363 -0
- package/uview-ui/components/u-picker/props.js +80 -0
- package/uview-ui/components/u-picker/style.css +57 -0
- package/uview-ui/components/u-picker/style.scss +45 -0
- package/uview-ui/components/u-picker/u-picker.vue +228 -0
- package/uview-ui/components/u-picker-column/props.js +3 -0
- package/uview-ui/components/u-picker-column/style.css +11 -0
- package/uview-ui/components/u-picker-column/style.scss +1 -0
- package/uview-ui/components/u-picker-column/u-picker-column.vue +25 -0
- package/uview-ui/components/u-popup/props.js +80 -0
- package/uview-ui/components/u-popup/style.css +70 -0
- package/uview-ui/components/u-popup/style.scss +75 -0
- package/uview-ui/components/u-popup/u-popup.vue +1 -0
- package/uview-ui/components/u-radio/props.js +65 -0
- package/uview-ui/components/u-radio/style.css +84 -0
- package/uview-ui/components/u-radio/style.scss +100 -0
- package/uview-ui/components/u-radio/u-radio.vue +234 -0
- package/uview-ui/components/u-radio-group/props.js +86 -0
- package/uview-ui/components/u-radio-group/style.css +26 -0
- package/uview-ui/components/u-radio-group/style.scss +13 -0
- package/uview-ui/components/u-radio-group/u-radio-group.vue +97 -0
- package/uview-ui/components/u-rate/props.js +70 -0
- package/uview-ui/components/u-rate/style.css +43 -0
- package/uview-ui/components/u-rate/style.scss +38 -0
- package/uview-ui/components/u-rate/u-rate.vue +231 -0
- package/uview-ui/components/u-read-more/props.js +62 -0
- package/uview-ui/components/u-read-more/style.css +33 -0
- package/uview-ui/components/u-read-more/style.scss +22 -0
- package/uview-ui/components/u-read-more/u-read-more.vue +119 -0
- package/uview-ui/components/u-row/props.js +20 -0
- package/uview-ui/components/u-row/style.css +17 -0
- package/uview-ui/components/u-row/style.scss +5 -0
- package/uview-ui/components/u-row/u-row.vue +82 -0
- package/uview-ui/components/u-row-notice/props.js +40 -0
- package/uview-ui/components/u-row-notice/style.css +59 -0
- package/uview-ui/components/u-row-notice/style.scss +48 -0
- package/uview-ui/components/u-row-notice/u-row-notice.vue +256 -0
- package/uview-ui/components/u-safe-bottom/props.js +3 -0
- package/uview-ui/components/u-safe-bottom/style.css +5 -0
- package/uview-ui/components/u-safe-bottom/style.scss +5 -0
- package/uview-ui/components/u-safe-bottom/u-safe-bottom.vue +1 -0
- package/uview-ui/components/u-scroll-list/nvue.js +3 -0
- package/uview-ui/components/u-scroll-list/other.js +0 -0
- package/uview-ui/components/u-scroll-list/props.js +35 -0
- package/uview-ui/components/u-scroll-list/scrollWxs.wxs +50 -0
- package/uview-ui/components/u-scroll-list/style.css +45 -0
- package/uview-ui/components/u-scroll-list/style.scss +32 -0
- package/uview-ui/components/u-scroll-list/u-scroll-list.vue +191 -0
- package/uview-ui/components/u-search/props.js +119 -0
- package/uview-ui/components/u-search/style.css +92 -0
- package/uview-ui/components/u-search/style.scss +98 -0
- package/uview-ui/components/u-search/u-search.vue +204 -0
- package/uview-ui/components/u-skeleton/props.js +60 -0
- package/uview-ui/components/u-skeleton/style.css +62 -0
- package/uview-ui/components/u-skeleton/style.scss +59 -0
- package/uview-ui/components/u-skeleton/u-skeleton.vue +188 -0
- package/uview-ui/components/u-slider/mpother.js +113 -0
- package/uview-ui/components/u-slider/mpwxs.js +42 -0
- package/uview-ui/components/u-slider/mpwxs.wxs +121 -0
- package/uview-ui/components/u-slider/nvue - /345/211/257/346/234/254.js" +175 -0
- package/uview-ui/components/u-slider/nvue.js +190 -0
- package/uview-ui/components/u-slider/props.js +55 -0
- package/uview-ui/components/u-slider/style.css +11 -0
- package/uview-ui/components/u-slider/style.scss +1 -0
- package/uview-ui/components/u-slider/u-slider.vue +1 -0
- package/uview-ui/components/u-status-bar/props.js +9 -0
- package/uview-ui/components/u-status-bar/style.css +5 -0
- package/uview-ui/components/u-status-bar/style.scss +6 -0
- package/uview-ui/components/u-status-bar/u-status-bar.vue +37 -0
- package/uview-ui/components/u-steps/props.js +40 -0
- package/uview-ui/components/u-steps/style.css +24 -0
- package/uview-ui/components/u-steps/style.scss +14 -0
- package/uview-ui/components/u-steps/u-steps.vue +63 -0
- package/uview-ui/components/u-steps-item/props.js +25 -0
- package/uview-ui/components/u-steps-item/style.css +119 -0
- package/uview-ui/components/u-steps-item/style.scss +111 -0
- package/uview-ui/components/u-steps-item/u-steps-item.vue +225 -0
- package/uview-ui/components/u-sticky/props.js +41 -0
- package/uview-ui/components/u-sticky/style.css +5 -0
- package/uview-ui/components/u-sticky/style.scss +6 -0
- package/uview-ui/components/u-sticky/u-sticky.vue +201 -0
- package/uview-ui/components/u-subsection/props.js +50 -0
- package/uview-ui/components/u-subsection/style.css +95 -0
- package/uview-ui/components/u-subsection/style.scss +90 -0
- package/uview-ui/components/u-subsection/u-subsection.vue +188 -0
- package/uview-ui/components/u-swipe-action/props.js +10 -0
- package/uview-ui/components/u-swipe-action/u-swipe-action.vue +65 -0
- package/uview-ui/components/u-swipe-action-item/index - backup.wxs +256 -0
- package/uview-ui/components/u-swipe-action-item/index.wxs +225 -0
- package/uview-ui/components/u-swipe-action-item/nvue - backup.js +264 -0
- package/uview-ui/components/u-swipe-action-item/nvue.js +172 -0
- package/uview-ui/components/u-swipe-action-item/props.js +42 -0
- package/uview-ui/components/u-swipe-action-item/style.css +61 -0
- package/uview-ui/components/u-swipe-action-item/style.scss +45 -0
- package/uview-ui/components/u-swipe-action-item/u-swipe-action-item.vue +147 -0
- package/uview-ui/components/u-swipe-action-item/wxs.js +15 -0
- package/uview-ui/components/u-swiper/props.js +126 -0
- package/uview-ui/components/u-swiper/style.css +58 -0
- package/uview-ui/components/u-swiper/style.scss +50 -0
- package/uview-ui/components/u-swiper/u-swiper.vue +196 -0
- package/uview-ui/components/u-swiper-indicator/props.js +30 -0
- package/uview-ui/components/u-swiper-indicator/style.css +37 -0
- package/uview-ui/components/u-swiper-indicator/style.scss +31 -0
- package/uview-ui/components/u-swiper-indicator/u-swiper-indicator.vue +70 -0
- package/uview-ui/components/u-switch/props.js +55 -0
- package/uview-ui/components/u-switch/style.css +58 -0
- package/uview-ui/components/u-switch/style.scss +48 -0
- package/uview-ui/components/u-switch/u-switch.vue +121 -0
- package/uview-ui/components/u-tabbar/props.js +45 -0
- package/uview-ui/components/u-tabbar/style.css +39 -0
- package/uview-ui/components/u-tabbar/style.scss +24 -0
- package/uview-ui/components/u-tabbar/u-tabbar.vue +115 -0
- package/uview-ui/components/u-tabbar-item/props.js +35 -0
- package/uview-ui/components/u-tabbar-item/style.css +39 -0
- package/uview-ui/components/u-tabbar-item/style.scss +28 -0
- package/uview-ui/components/u-tabbar-item/u-tabbar-item.vue +101 -0
- package/uview-ui/components/u-table/props.js +3 -0
- package/uview-ui/components/u-table/style.css +11 -0
- package/uview-ui/components/u-table/style.scss +1 -0
- package/uview-ui/components/u-table/u-table.vue +24 -0
- package/uview-ui/components/u-tabs/props.js +65 -0
- package/uview-ui/components/u-tabs/style.css +69 -0
- package/uview-ui/components/u-tabs/style.scss +58 -0
- package/uview-ui/components/u-tabs/u-tabs.vue +294 -0
- package/uview-ui/components/u-tabs-item/props.js +3 -0
- package/uview-ui/components/u-tabs-item/u-tabs-item.vue +26 -0
- package/uview-ui/components/u-tag/props.js +85 -0
- package/uview-ui/components/u-tag/style.css +180 -0
- package/uview-ui/components/u-tag/style.scss +206 -0
- package/uview-ui/components/u-tag/u-tag.vue +1 -0
- package/uview-ui/components/u-td/props.js +3 -0
- package/uview-ui/components/u-td/style.css +11 -0
- package/uview-ui/components/u-td/style.scss +1 -0
- package/uview-ui/components/u-td/u-td.vue +26 -0
- package/uview-ui/components/u-text/props.js +111 -0
- package/uview-ui/components/u-text/style.css +65 -0
- package/uview-ui/components/u-text/style.scss +62 -0
- package/uview-ui/components/u-text/u-text.vue +143 -0
- package/uview-ui/components/u-text/value.js +85 -0
- package/uview-ui/components/u-textarea/props.js +120 -0
- package/uview-ui/components/u-textarea/style.css +46 -0
- package/uview-ui/components/u-textarea/style.scss +39 -0
- package/uview-ui/components/u-textarea/u-textarea.vue +194 -0
- package/uview-ui/components/u-toast/style.css +78 -0
- package/uview-ui/components/u-toast/style.scss +108 -0
- package/uview-ui/components/u-toast/u-toast.vue +180 -0
- package/uview-ui/components/u-toolbar/props.js +35 -0
- package/uview-ui/components/u-toolbar/style.css +37 -0
- package/uview-ui/components/u-toolbar/style.scss +32 -0
- package/uview-ui/components/u-toolbar/u-toolbar.vue +62 -0
- package/uview-ui/components/u-tooltip/clipboard.min.js +58 -0
- package/uview-ui/components/u-tooltip/props.js +60 -0
- package/uview-ui/components/u-tooltip/style.css +75 -0
- package/uview-ui/components/u-tooltip/style.scss +63 -0
- package/uview-ui/components/u-tooltip/u-tooltip.vue +278 -0
- package/uview-ui/components/u-tr/props.js +3 -0
- package/uview-ui/components/u-tr/style.css +11 -0
- package/uview-ui/components/u-tr/style.scss +1 -0
- package/uview-ui/components/u-tr/u-tr.vue +26 -0
- package/uview-ui/components/u-transition/nvue.ani-map.js +1 -0
- package/uview-ui/components/u-transition/props.js +25 -0
- package/uview-ui/components/u-transition/style.css +109 -0
- package/uview-ui/components/u-transition/style.scss +9 -0
- package/uview-ui/components/u-transition/transition.js +157 -0
- package/uview-ui/components/u-transition/u-transition.vue +85 -0
- package/uview-ui/components/u-transition/vue.ani-style.scss +113 -0
- package/uview-ui/components/u-upload/mixin.js +21 -0
- package/uview-ui/components/u-upload/props.js +125 -0
- package/uview-ui/components/u-upload/style.css +164 -0
- package/uview-ui/components/u-upload/style.scss +200 -0
- package/uview-ui/components/u-upload/u-upload.vue +312 -0
- package/uview-ui/components/u-upload/utils.js +151 -0
- package/uview-ui/components/uview-ui/uview-ui.vue +8 -0
- package/uview-ui/index.css +352 -0
- package/uview-ui/index.js +79 -0
- package/uview-ui/index.scss +23 -0
- package/uview-ui/libs/config/color.js +17 -0
- package/uview-ui/libs/config/config.js +34 -0
- package/uview-ui/libs/config/props/actionSheet.js +25 -0
- package/uview-ui/libs/config/props/album.js +25 -0
- package/uview-ui/libs/config/props/alert.js +22 -0
- package/uview-ui/libs/config/props/avatar.js +28 -0
- package/uview-ui/libs/config/props/avatarGroup.js +23 -0
- package/uview-ui/libs/config/props/backtop.js +27 -0
- package/uview-ui/libs/config/props/badge.js +27 -0
- package/uview-ui/libs/config/props/button.js +42 -0
- package/uview-ui/libs/config/props/calendar.js +42 -0
- package/uview-ui/libs/config/props/carKeyboard.js +15 -0
- package/uview-ui/libs/config/props/cell.js +35 -0
- package/uview-ui/libs/config/props/cellGroup.js +17 -0
- package/uview-ui/libs/config/props/checkbox.js +27 -0
- package/uview-ui/libs/config/props/checkboxGroup.js +29 -0
- package/uview-ui/libs/config/props/circleProgress.js +15 -0
- package/uview-ui/libs/config/props/code.js +21 -0
- package/uview-ui/libs/config/props/codeInput.js +29 -0
- package/uview-ui/libs/config/props/col.js +19 -0
- package/uview-ui/libs/config/props/collapse.js +17 -0
- package/uview-ui/libs/config/props/collapseItem.js +25 -0
- package/uview-ui/libs/config/props/columnNotice.js +24 -0
- package/uview-ui/libs/config/props/countDown.js +18 -0
- package/uview-ui/libs/config/props/countTo.js +25 -0
- package/uview-ui/libs/config/props/datetimePicker.js +36 -0
- package/uview-ui/libs/config/props/divider.js +23 -0
- package/uview-ui/libs/config/props/empty.js +26 -0
- package/uview-ui/libs/config/props/form.js +22 -0
- package/uview-ui/libs/config/props/formItem.js +23 -0
- package/uview-ui/libs/config/props/gap.js +19 -0
- package/uview-ui/libs/config/props/grid.js +17 -0
- package/uview-ui/libs/config/props/gridItem.js +16 -0
- package/uview-ui/libs/config/props/icon.js +36 -0
- package/uview-ui/libs/config/props/image.js +30 -0
- package/uview-ui/libs/config/props/indexAnchor.js +19 -0
- package/uview-ui/libs/config/props/indexList.js +19 -0
- package/uview-ui/libs/config/props/input.js +48 -0
- package/uview-ui/libs/config/props/keyboard.js +30 -0
- package/uview-ui/libs/config/props/line.js +20 -0
- package/uview-ui/libs/config/props/lineProgress.js +19 -0
- package/uview-ui/libs/config/props/link.js +26 -0
- package/uview-ui/libs/config/props/list.js +28 -0
- package/uview-ui/libs/config/props/listItem.js +15 -0
- package/uview-ui/libs/config/props/loadingIcon.js +30 -0
- package/uview-ui/libs/config/props/loadingPage.js +23 -0
- package/uview-ui/libs/config/props/loadmore.js +32 -0
- package/uview-ui/libs/config/props/modal.js +30 -0
- package/uview-ui/libs/config/props/navbar.js +32 -0
- package/uview-ui/libs/config/props/noNetwork.js +18 -0
- package/uview-ui/libs/config/props/noticeBar.js +27 -0
- package/uview-ui/libs/config/props/notify.js +22 -0
- package/uview-ui/libs/config/props/numberBox.js +35 -0
- package/uview-ui/libs/config/props/numberKeyboard.js +17 -0
- package/uview-ui/libs/config/props/overlay.js +18 -0
- package/uview-ui/libs/config/props/parse.js +22 -0
- package/uview-ui/libs/config/props/picker.js +29 -0
- package/uview-ui/libs/config/props/popup.js +29 -0
- package/uview-ui/libs/config/props/radio.js +27 -0
- package/uview-ui/libs/config/props/radioGroup.js +30 -0
- package/uview-ui/libs/config/props/rate.js +26 -0
- package/uview-ui/libs/config/props/readMore.js +22 -0
- package/uview-ui/libs/config/props/row.js +17 -0
- package/uview-ui/libs/config/props/rowNotice.js +21 -0
- package/uview-ui/libs/config/props/scrollList.js +20 -0
- package/uview-ui/libs/config/props/search.js +37 -0
- package/uview-ui/libs/config/props/section.js +24 -0
- package/uview-ui/libs/config/props/skeleton.js +25 -0
- package/uview-ui/libs/config/props/slider.js +25 -0
- package/uview-ui/libs/config/props/statusBar.js +15 -0
- package/uview-ui/libs/config/props/steps.js +21 -0
- package/uview-ui/libs/config/props/stepsItem.js +18 -0
- package/uview-ui/libs/config/props/sticky.js +20 -0
- package/uview-ui/libs/config/props/subsection.js +23 -0
- package/uview-ui/libs/config/props/swipeAction.js +15 -0
- package/uview-ui/libs/config/props/swipeActionItem.js +21 -0
- package/uview-ui/libs/config/props/swiper.js +39 -0
- package/uview-ui/libs/config/props/swipterIndicator.js +19 -0
- package/uview-ui/libs/config/props/switch.js +24 -0
- package/uview-ui/libs/config/props/tabbar.js +22 -0
- package/uview-ui/libs/config/props/tabbarItem.js +20 -0
- package/uview-ui/libs/config/props/tabs.js +32 -0
- package/uview-ui/libs/config/props/tag.js +29 -0
- package/uview-ui/libs/config/props/text.js +38 -0
- package/uview-ui/libs/config/props/textarea.js +36 -0
- package/uview-ui/libs/config/props/toast.js +30 -0
- package/uview-ui/libs/config/props/toolbar.js +21 -0
- package/uview-ui/libs/config/props/tooltip.js +25 -0
- package/uview-ui/libs/config/props/transition.js +18 -0
- package/uview-ui/libs/config/props/upload.js +36 -0
- package/uview-ui/libs/config/props.js +190 -0
- package/uview-ui/libs/config/zIndex.js +20 -0
- package/uview-ui/libs/css/color-libcss.scss +117 -0
- package/uview-ui/libs/css/color.scss +155 -0
- package/uview-ui/libs/css/common-libcss.scss +132 -0
- package/uview-ui/libs/css/common.scss +97 -0
- package/uview-ui/libs/css/components-libcss.scss +11 -0
- package/uview-ui/libs/css/components.scss +15 -0
- package/uview-ui/libs/css/flex-libcss.scss +169 -0
- package/uview-ui/libs/css/flex.scss +257 -0
- package/uview-ui/libs/css/h5-libcss.scss +0 -0
- package/uview-ui/libs/css/h5.scss +0 -0
- package/uview-ui/libs/css/mixin-libcss.scss +0 -0
- package/uview-ui/libs/css/mixin.scss +8 -0
- package/uview-ui/libs/css/mp-libcss.scss +0 -0
- package/uview-ui/libs/css/mp.scss +0 -0
- package/uview-ui/libs/css/nvue-libcss.scss +0 -0
- package/uview-ui/libs/css/nvue.scss +0 -0
- package/uview-ui/libs/css/vue-libcss.scss +35 -0
- package/uview-ui/libs/css/vue.scss +27 -0
- package/uview-ui/libs/function/colorGradient.js +134 -0
- package/uview-ui/libs/function/debounce.js +29 -0
- package/uview-ui/libs/function/digit.js +167 -0
- package/uview-ui/libs/function/index.js +731 -0
- package/uview-ui/libs/function/platform.js +75 -0
- package/uview-ui/libs/function/test.js +288 -0
- package/uview-ui/libs/function/throttle.js +30 -0
- package/uview-ui/libs/luch-request/adapters/index.js +97 -0
- package/uview-ui/libs/luch-request/core/InterceptorManager.js +50 -0
- package/uview-ui/libs/luch-request/core/Request.js +198 -0
- package/uview-ui/libs/luch-request/core/buildFullPath.js +20 -0
- package/uview-ui/libs/luch-request/core/defaults.js +29 -0
- package/uview-ui/libs/luch-request/core/dispatchRequest.js +3 -0
- package/uview-ui/libs/luch-request/core/mergeConfig.js +103 -0
- package/uview-ui/libs/luch-request/core/settle.js +16 -0
- package/uview-ui/libs/luch-request/helpers/buildURL.js +69 -0
- package/uview-ui/libs/luch-request/helpers/combineURLs.js +14 -0
- package/uview-ui/libs/luch-request/helpers/isAbsoluteURL.js +14 -0
- package/uview-ui/libs/luch-request/index.d.ts +116 -0
- package/uview-ui/libs/luch-request/index.js +3 -0
- package/uview-ui/libs/luch-request/utils/clone.js +264 -0
- package/uview-ui/libs/luch-request/utils.js +131 -0
- package/uview-ui/libs/mixin/button.js +13 -0
- package/uview-ui/libs/mixin/mixin.js +164 -0
- package/uview-ui/libs/mixin/mpMixin.js +8 -0
- package/uview-ui/libs/mixin/mpShare.js +13 -0
- package/uview-ui/libs/mixin/openType.js +25 -0
- package/uview-ui/libs/mixin/style.js +252 -0
- package/uview-ui/libs/mixin/touch.js +61 -0
- package/uview-ui/libs/util/async-validator.js +1343 -0
- package/uview-ui/libs/util/calendar.js +546 -0
- package/uview-ui/libs/util/dayjs.js +308 -0
- package/uview-ui/libs/util/emitter.js +51 -0
- package/uview-ui/libs/util/route.js +124 -0
- package/uview-ui/package.json +87 -0
- package/uview-ui/theme.css +29 -0
- package/uview-ui/theme.scss +44 -0
- package/ui-cv/cv-banner/cv-banner.vue +0 -131
- package/ui-cv/cv-banner-card/cv-banner-card.vue +0 -145
- package/ui-cv/cv-base-audio/cv-base-audio.vue +0 -279
- package/ui-cv/cv-block/cv-block.vue +0 -91
- package/ui-cv/cv-box/cv-box.vue +0 -73
- package/ui-cv/cv-btn-base/cv-btn-base.vue +0 -70
- package/ui-cv/cv-cell-row/cv-cell-row.vue +0 -220
- package/ui-cv/cv-checkbox-group/cv-checkbox-group.vue +0 -257
- package/ui-cv/cv-checkbox-opt-base/cv-checkbox-opt-base.vue +0 -97
- package/ui-cv/cv-checkbox-opt-tag/cv-checkbox-opt-tag.vue +0 -111
- package/ui-cv/cv-code-sms/cv-code-sms.vue +0 -229
- package/ui-cv/cv-date-base/cv-date-base.vue +0 -105
- package/ui-cv/cv-datetime-base/cv-datetime-base.vue +0 -152
- package/ui-cv/cv-datetime-linkage/cv-datetime-linkage.vue +0 -489
- package/ui-cv/cv-dialog-bottom/cv-dialog-bottom.vue +0 -172
- package/ui-cv/cv-dialog-full/cv-dialog-full.vue +0 -159
- package/ui-cv/cv-dialog-loading/cv-dialog-loading.vue +0 -103
- package/ui-cv/cv-dialog-share/cv-dialog-share.vue +0 -157
- package/ui-cv/cv-draw-barcode/cv-draw-barcode.vue +0 -209
- package/ui-cv/cv-draw-posters/cv-draw-posters.vue +0 -492
- package/ui-cv/cv-draw-progress/cv-draw-progress.vue +0 -141
- package/ui-cv/cv-draw-qrcode/cv-draw-qrcode.vue +0 -305
- package/ui-cv/cv-editor-parse/cv-editor-parse.vue +0 -112
- package/ui-cv/cv-editor-quill/cv-editor-quill.vue +0 -485
- package/ui-cv/cv-filter-hm/cv-filter-hm.vue +0 -867
- package/ui-cv/cv-form-base/cv-form-base.vue +0 -469
- package/ui-cv/cv-form-group/cv-form-group.vue +0 -123
- package/ui-cv/cv-form-item/cv-form-item.vue +0 -558
- package/ui-cv/cv-geo-local/cv-geo-local.vue +0 -264
- package/ui-cv/cv-geo-region/cv-geo-region.vue +0 -243
- package/ui-cv/cv-grid-item/cv-grid-item.vue +0 -213
- package/ui-cv/cv-icons/cv-icons.vue +0 -133
- package/ui-cv/cv-input-digit/cv-input-digit.vue +0 -112
- package/ui-cv/cv-input-idcard/cv-input-idcard.vue +0 -107
- package/ui-cv/cv-input-number/cv-input-number.vue +0 -112
- package/ui-cv/cv-input-password/cv-input-password.vue +0 -125
- package/ui-cv/cv-input-text/cv-input-text.vue +0 -118
- package/ui-cv/cv-layout-topbar/cv-layout-topbar.vue +0 -238
- package/ui-cv/cv-link/cv-link.vue +0 -58
- package/ui-cv/cv-lists-base/cv-lists-base.vue +0 -650
- package/ui-cv/cv-lists-swiper/cv-lists-swipe2r.vue +0 -197
- package/ui-cv/cv-lists-swiper/cv-lists-swiper.vue +0 -517
- package/ui-cv/cv-load-empty/cv-load-empty.vue +0 -57
- package/ui-cv/cv-load-more/cv-load-more.vue +0 -407
- package/ui-cv/cv-load-more2/cv-load-more2.vue +0 -44
- package/ui-cv/cv-markdown-show/cv-markdown-show.vue +0 -109
- package/ui-cv/cv-message/cv-message.vue +0 -37
- package/ui-cv/cv-picker1/cv-picker1.vue +0 -205
- package/ui-cv/cv-picker2/cv-picker2.vue +0 -252
- package/ui-cv/cv-picker3/cv-picker3.vue +0 -313
- package/ui-cv/cv-radio-group/cv-radio-group.vue +0 -196
- package/ui-cv/cv-radio-opt-base/cv-radio-opt-base.vue +0 -91
- package/ui-cv/cv-radio-opt-tag/cv-radio-opt-tag.vue +0 -107
- package/ui-cv/cv-rate/cv-rate.vue +0 -182
- package/ui-cv/cv-search/cv-search.vue +0 -186
- package/ui-cv/cv-skeleton/cv-skeleton.vue +0 -171
- package/ui-cv/cv-skeleton/cv-skeleton2.vue +0 -210
- package/ui-cv/cv-skeleton-group/cv-skeleton-group.vue +0 -21
- package/ui-cv/cv-specs/cv-specs.vue +0 -320
- package/ui-cv/cv-switch/cv-switch.vue +0 -111
- package/ui-cv/cv-tab-lists/cv-tab-lists.vue +0 -708
- package/ui-cv/cv-tabs-box/cv-tabs-box.vue +0 -97
- package/ui-cv/cv-tabs-item/cv-tabs-item.vue +0 -82
- package/ui-cv/cv-textarea/cv-textarea.vue +0 -141
- package/ui-cv/cv-time-base/cv-time-base.vue +0 -101
- package/ui-cv/cv-treaty/cv-treaty.vue +0 -93
- package/ui-cv/cv-upload-avatar/cv-upload-avatar.vue +0 -142
- package/ui-cv/cv-upload-image/cv-upload-image.vue +0 -478
- package/ui-uni/README.md +0 -1
- package/ui-uni/amap-wx/js/util.js +0 -181
- package/ui-uni/api-set-tabbar.nvue +0 -156
- package/ui-uni/marked/index.js +0 -1
- package/ui-uni/mpvue-citypicker/city-data/area.js +0 -12542
- package/ui-uni/mpvue-citypicker/city-data/city.js +0 -1503
- package/ui-uni/mpvue-citypicker/city-data/province.js +0 -139
- package/ui-uni/mpvue-citypicker/mpvueCityPicker.vue +0 -230
- package/ui-uni/mpvue-echarts/src/echarts.vue +0 -123
- package/ui-uni/mpvue-picker/mpvuePicker.vue +0 -483
- package/ui-uni/mpvueGestureLock/gestureLock.js +0 -175
- package/ui-uni/mpvueGestureLock/index.vue +0 -138
- package/ui-uni/page-foot/page-foot.vue +0 -38
- package/ui-uni/page-head/page-head.vue +0 -16
- package/ui-uni/product.vue +0 -66
- package/ui-uni/tab-nvue/mediaList.vue +0 -175
- package/ui-uni/u-link/u-link.vue +0 -59
- package/ui-uni/uParse/src/components/wxParseAudio.vue +0 -26
- package/ui-uni/uParse/src/components/wxParseImg.vue +0 -94
- package/ui-uni/uParse/src/components/wxParseTable.vue +0 -55
- package/ui-uni/uParse/src/components/wxParseTemplate0.vue +0 -103
- package/ui-uni/uParse/src/components/wxParseTemplate1.vue +0 -88
- package/ui-uni/uParse/src/components/wxParseTemplate10.vue +0 -88
- package/ui-uni/uParse/src/components/wxParseTemplate11.vue +0 -86
- package/ui-uni/uParse/src/components/wxParseTemplate2.vue +0 -88
- package/ui-uni/uParse/src/components/wxParseTemplate3.vue +0 -88
- package/ui-uni/uParse/src/components/wxParseTemplate4.vue +0 -88
- package/ui-uni/uParse/src/components/wxParseTemplate5.vue +0 -88
- package/ui-uni/uParse/src/components/wxParseTemplate6.vue +0 -88
- package/ui-uni/uParse/src/components/wxParseTemplate7.vue +0 -88
- package/ui-uni/uParse/src/components/wxParseTemplate8.vue +0 -88
- package/ui-uni/uParse/src/components/wxParseTemplate9.vue +0 -88
- package/ui-uni/uParse/src/components/wxParseVideo.vue +0 -15
- package/ui-uni/uParse/src/editor.css +0 -495
- package/ui-uni/uParse/src/libs/html2json.js +0 -261
- package/ui-uni/uParse/src/libs/htmlparser.js +0 -156
- package/ui-uni/uParse/src/libs/wxDiscode.js +0 -195
- package/ui-uni/uParse/src/wxParse.vue +0 -206
- package/ui-uni/uni-badge/uni-badge.vue +0 -250
- package/ui-uni/uni-calendar/uni-calendar-item.vue +0 -171
- package/ui-uni/uni-calendar/uni-calendar.vue +0 -504
- package/ui-uni/uni-calendar/util.js +0 -352
- package/ui-uni/uni-card/uni-card.vue +0 -420
- package/ui-uni/uni-col/uni-col.vue +0 -2968
- package/ui-uni/uni-collapse/uni-collapse.vue +0 -146
- package/ui-uni/uni-collapse-item/uni-collapse-item.vue +0 -378
- package/ui-uni/uni-combox/uni-combox.vue +0 -237
- package/ui-uni/uni-countdown/uni-countdown.vue +0 -234
- package/ui-uni/uni-data-checkbox/uni-data-checkbox.vue +0 -792
- package/ui-uni/uni-data-indexed-list/clientdb.js +0 -362
- package/ui-uni/uni-data-indexed-list/uni-data-indexed-list-item.vue +0 -142
- package/ui-uni/uni-data-indexed-list/uni-data-indexed-list.vue +0 -364
- package/ui-uni/uni-data-picker/uni-data-picker.vue +0 -468
- package/ui-uni/uni-data-pickerview/uni-data-picker.js +0 -545
- package/ui-uni/uni-data-pickerview/uni-data-pickerview.vue +0 -298
- package/ui-uni/uni-dateformat/uni-dateformat.vue +0 -88
- package/ui-uni/uni-datetime-picker/calendar-item.vue +0 -171
- package/ui-uni/uni-datetime-picker/calendar.js +0 -546
- package/ui-uni/uni-datetime-picker/calendar.vue +0 -747
- package/ui-uni/uni-datetime-picker/keypress.js +0 -45
- package/ui-uni/uni-datetime-picker/time-picker.vue +0 -899
- package/ui-uni/uni-datetime-picker/uni-datetime-picker.vue +0 -874
- package/ui-uni/uni-datetime-picker/util.js +0 -408
- package/ui-uni/uni-drawer/keypress.js +0 -45
- package/ui-uni/uni-drawer/uni-drawer.vue +0 -185
- package/ui-uni/uni-easyinput/uni-easyinput.vue +0 -438
- package/ui-uni/uni-fab/uni-fab.vue +0 -443
- package/ui-uni/uni-fab/uni-fab.vue.bak +0 -382
- package/ui-uni/uni-fav/uni-fav.vue +0 -136
- package/ui-uni/uni-file-picker/choose-and-upload-file.js +0 -224
- package/ui-uni/uni-file-picker/uni-file-picker.vue +0 -614
- package/ui-uni/uni-file-picker/upload-file.vue +0 -309
- package/ui-uni/uni-file-picker/upload-image.vue +0 -288
- package/ui-uni/uni-forms/uni-forms.vue +0 -467
- package/ui-uni/uni-forms-item/uni-forms-item.vue +0 -500
- package/ui-uni/uni-goods-nav/uni-goods-nav.vue +0 -220
- package/ui-uni/uni-grid/uni-grid.vue +0 -141
- package/ui-uni/uni-grid-item/uni-grid-item.vue +0 -123
- package/ui-uni/uni-group/uni-group.vue +0 -123
- package/ui-uni/uni-icons/icons.js +0 -132
- package/ui-uni/uni-icons/uni-icons.vue +0 -72
- package/ui-uni/uni-icons/uni.ttf +0 -0
- package/ui-uni/uni-indexed-list/uni-indexed-list-item.vue +0 -142
- package/ui-uni/uni-indexed-list/uni-indexed-list.vue +0 -357
- package/ui-uni/uni-link/uni-link.vue +0 -117
- package/ui-uni/uni-list/uni-list.vue +0 -107
- package/ui-uni/uni-list/uni-refresh.vue +0 -65
- package/ui-uni/uni-list/uni-refresh.wxs +0 -87
- package/ui-uni/uni-list-ad/uni-list-ad.vue +0 -106
- package/ui-uni/uni-list-chat/uni-list-chat.scss +0 -58
- package/ui-uni/uni-list-chat/uni-list-chat.vue +0 -498
- package/ui-uni/uni-list-item/uni-list-item.vue +0 -428
- package/ui-uni/uni-load-more/uni-load-more.vue +0 -366
- package/ui-uni/uni-nav-bar/uni-nav-bar.vue +0 -244
- package/ui-uni/uni-nav-bar/uni-status-bar.vue +0 -25
- package/ui-uni/uni-notice-bar/uni-notice-bar.vue +0 -394
- package/ui-uni/uni-number-box/uni-number-box.vue +0 -224
- package/ui-uni/uni-pagination/uni-pagination.vue +0 -376
- package/ui-uni/uni-popup/keypress.js +0 -45
- package/ui-uni/uni-popup/popup.js +0 -23
- package/ui-uni/uni-popup/uni-popup.vue +0 -429
- package/ui-uni/uni-popup-dialog/keypress.js +0 -45
- package/ui-uni/uni-popup-dialog/uni-popup-dialog.vue +0 -243
- package/ui-uni/uni-popup-message/uni-popup-message.vue +0 -143
- package/ui-uni/uni-popup-share/uni-popup-share.vue +0 -175
- package/ui-uni/uni-rate/uni-rate.vue +0 -357
- package/ui-uni/uni-row/uni-row.vue +0 -155
- package/ui-uni/uni-search-bar/uni-search-bar.vue +0 -262
- package/ui-uni/uni-section/uni-section.vue +0 -125
- package/ui-uni/uni-segmented-control/uni-segmented-control.vue +0 -137
- package/ui-uni/uni-status-bar/uni-status-bar.vue +0 -23
- package/ui-uni/uni-steps/uni-steps.vue +0 -250
- package/ui-uni/uni-swipe-action/uni-swipe-action.vue +0 -38
- package/ui-uni/uni-swipe-action-item/bindingx.js +0 -293
- package/ui-uni/uni-swipe-action-item/index.wxs +0 -323
- package/ui-uni/uni-swipe-action-item/isPC.js +0 -12
- package/ui-uni/uni-swipe-action-item/mpalipay.js +0 -208
- package/ui-uni/uni-swipe-action-item/mpother.js +0 -253
- package/ui-uni/uni-swipe-action-item/mpwxs.js +0 -123
- package/ui-uni/uni-swipe-action-item/uni-swipe-action-item.vue +0 -316
- package/ui-uni/uni-swiper-dot/uni-swiper-dot.vue +0 -205
- package/ui-uni/uni-table/uni-table.vue +0 -455
- package/ui-uni/uni-tag/uni-tag.vue +0 -283
- package/ui-uni/uni-tbody/uni-tbody.vue +0 -30
- package/ui-uni/uni-td/uni-td.vue +0 -88
- package/ui-uni/uni-test/uni-test.vue +0 -17
- package/ui-uni/uni-th/filter-dropdown.vue +0 -509
- package/ui-uni/uni-th/uni-th.vue +0 -259
- package/ui-uni/uni-thead/uni-thead.vue +0 -114
- package/ui-uni/uni-title/uni-title.vue +0 -171
- package/ui-uni/uni-tr/table-checkbox.vue +0 -172
- package/ui-uni/uni-tr/uni-tr.vue +0 -156
- package/ui-uni/uni-transition/createAnimation.js +0 -128
- package/ui-uni/uni-transition/uni-transition.vue +0 -287
- /package/{ui-uni → other}/mpvue-echarts/src/wx-canvas.js +0 -0
- /package/{ui-uni → other}/u-charts/u-charts.js +0 -0
- /package/{ui-uni/uParse/src → other/uParse}/wxParse.css +0 -0
- /package/{ui-uni/amap-wx → plugins/map}/lib/amap-wx.js +0 -0
- /package/ui-cv/{cv-draw-barcode → components/cv-draw-barcode}/barcode.js +0 -0
- /package/ui-cv/{cv-draw-barcode → components/cv-draw-barcode}/barcodes/Barcode.js +0 -0
- /package/ui-cv/{cv-draw-barcode → components/cv-draw-barcode}/barcodes/CODE128/CODE128.js +0 -0
- /package/ui-cv/{cv-draw-barcode → components/cv-draw-barcode}/barcodes/CODE128/CODE128A.js +0 -0
- /package/ui-cv/{cv-draw-barcode → components/cv-draw-barcode}/barcodes/CODE128/CODE128B.js +0 -0
- /package/ui-cv/{cv-draw-barcode → components/cv-draw-barcode}/barcodes/CODE128/CODE128C.js +0 -0
- /package/ui-cv/{cv-draw-barcode → components/cv-draw-barcode}/barcodes/CODE128/CODE128_AUTO.js +0 -0
- /package/ui-cv/{cv-draw-barcode → components/cv-draw-barcode}/barcodes/CODE128/auto.js +0 -0
- /package/ui-cv/{cv-draw-barcode → components/cv-draw-barcode}/barcodes/CODE128/constants.js +0 -0
- /package/ui-cv/{cv-draw-barcode → components/cv-draw-barcode}/barcodes/CODE128/index.js +0 -0
- /package/ui-cv/{cv-draw-barcode → components/cv-draw-barcode}/barcodes/CODE39/index.js +0 -0
- /package/ui-cv/{cv-draw-barcode → components/cv-draw-barcode}/barcodes/EAN_UPC/EAN.js +0 -0
- /package/ui-cv/{cv-draw-barcode → components/cv-draw-barcode}/barcodes/EAN_UPC/EAN13.js +0 -0
- /package/ui-cv/{cv-draw-barcode → components/cv-draw-barcode}/barcodes/EAN_UPC/EAN2.js +0 -0
- /package/ui-cv/{cv-draw-barcode → components/cv-draw-barcode}/barcodes/EAN_UPC/EAN5.js +0 -0
- /package/ui-cv/{cv-draw-barcode → components/cv-draw-barcode}/barcodes/EAN_UPC/EAN8.js +0 -0
- /package/ui-cv/{cv-draw-barcode → components/cv-draw-barcode}/barcodes/EAN_UPC/UPC.js +0 -0
- /package/ui-cv/{cv-draw-barcode → components/cv-draw-barcode}/barcodes/EAN_UPC/UPCE.js +0 -0
- /package/ui-cv/{cv-draw-barcode → components/cv-draw-barcode}/barcodes/EAN_UPC/constants.js +0 -0
- /package/ui-cv/{cv-draw-barcode → components/cv-draw-barcode}/barcodes/EAN_UPC/encoder.js +0 -0
- /package/ui-cv/{cv-draw-barcode → components/cv-draw-barcode}/barcodes/EAN_UPC/index.js +0 -0
- /package/ui-cv/{cv-draw-barcode → components/cv-draw-barcode}/barcodes/GenericBarcode/index.js +0 -0
- /package/ui-cv/{cv-draw-barcode → components/cv-draw-barcode}/barcodes/ITF/ITF.js +0 -0
- /package/ui-cv/{cv-draw-barcode → components/cv-draw-barcode}/barcodes/ITF/ITF14.js +0 -0
- /package/ui-cv/{cv-draw-barcode → components/cv-draw-barcode}/barcodes/ITF/constants.js +0 -0
- /package/ui-cv/{cv-draw-barcode → components/cv-draw-barcode}/barcodes/ITF/index.js +0 -0
- /package/ui-cv/{cv-draw-barcode → components/cv-draw-barcode}/barcodes/MSI/MSI.js +0 -0
- /package/ui-cv/{cv-draw-barcode → components/cv-draw-barcode}/barcodes/MSI/MSI10.js +0 -0
- /package/ui-cv/{cv-draw-barcode → components/cv-draw-barcode}/barcodes/MSI/MSI1010.js +0 -0
- /package/ui-cv/{cv-draw-barcode → components/cv-draw-barcode}/barcodes/MSI/MSI11.js +0 -0
- /package/ui-cv/{cv-draw-barcode → components/cv-draw-barcode}/barcodes/MSI/MSI1110.js +0 -0
- /package/ui-cv/{cv-draw-barcode → components/cv-draw-barcode}/barcodes/MSI/checksums.js +0 -0
- /package/ui-cv/{cv-draw-barcode → components/cv-draw-barcode}/barcodes/MSI/index.js +0 -0
- /package/ui-cv/{cv-draw-barcode → components/cv-draw-barcode}/barcodes/codabar/index.js +0 -0
- /package/ui-cv/{cv-draw-barcode → components/cv-draw-barcode}/barcodes/common.js +0 -0
- /package/ui-cv/{cv-draw-barcode → components/cv-draw-barcode}/barcodes/index.js +0 -0
- /package/ui-cv/{cv-draw-barcode → components/cv-draw-barcode}/barcodes/index.tmp.js +0 -0
- /package/ui-cv/{cv-draw-barcode → components/cv-draw-barcode}/barcodes/pharmacode/index.js +0 -0
- /package/ui-cv/{cv-draw-qrcode → components/cv-draw-qrcode}/qrcode.js +0 -0
- /package/ui-cv/{cv-editor-parse → components/cv-editor-parse}/components/wxParseAudio.vue +0 -0
- /package/ui-cv/{cv-editor-parse → components/cv-editor-parse}/components/wxParseImg.vue +0 -0
- /package/ui-cv/{cv-editor-parse → components/cv-editor-parse}/components/wxParseTable.vue +0 -0
- /package/ui-cv/{cv-editor-parse → components/cv-editor-parse}/components/wxParseTemplate0.vue +0 -0
- /package/ui-cv/{cv-editor-parse → components/cv-editor-parse}/components/wxParseTemplate1.vue +0 -0
- /package/ui-cv/{cv-editor-parse → components/cv-editor-parse}/components/wxParseTemplate10.vue +0 -0
- /package/ui-cv/{cv-editor-parse → components/cv-editor-parse}/components/wxParseTemplate11.vue +0 -0
- /package/ui-cv/{cv-editor-parse → components/cv-editor-parse}/components/wxParseTemplate2.vue +0 -0
- /package/ui-cv/{cv-editor-parse → components/cv-editor-parse}/components/wxParseTemplate3.vue +0 -0
- /package/ui-cv/{cv-editor-parse → components/cv-editor-parse}/components/wxParseTemplate4.vue +0 -0
- /package/ui-cv/{cv-editor-parse → components/cv-editor-parse}/components/wxParseTemplate5.vue +0 -0
- /package/ui-cv/{cv-editor-parse → components/cv-editor-parse}/components/wxParseTemplate6.vue +0 -0
- /package/ui-cv/{cv-editor-parse → components/cv-editor-parse}/components/wxParseTemplate7.vue +0 -0
- /package/ui-cv/{cv-editor-parse → components/cv-editor-parse}/components/wxParseTemplate8.vue +0 -0
- /package/ui-cv/{cv-editor-parse → components/cv-editor-parse}/components/wxParseTemplate9.vue +0 -0
- /package/ui-cv/{cv-editor-parse → components/cv-editor-parse}/components/wxParseVideo.vue +0 -0
- /package/ui-cv/{cv-editor-parse → components/cv-editor-parse}/libs/html2json.js +0 -0
- /package/ui-cv/{cv-editor-parse → components/cv-editor-parse}/libs/htmlparser.js +0 -0
- /package/ui-cv/{cv-editor-parse → components/cv-editor-parse}/libs/wxDiscode.js +0 -0
- /package/ui-cv/{cv-editor-parse → components/cv-editor-parse}/readme.md +0 -0
- /package/ui-cv/{cv-editor-parse → components/cv-editor-parse}/u-parse.css +0 -0
- /package/ui-cv/{cv-editor-parse → components/cv-editor-parse}/u-parse.vue +0 -0
- /package/ui-cv/{cv-editor-quill → components/cv-editor-quill}/compressImage.vue +0 -0
- /package/ui-cv/{cv-editor-quill → components/cv-editor-quill}/editor-icon.css +0 -0
- /package/ui-cv/{cv-editor-quill → components/cv-editor-quill}/editor-icon.ttf +0 -0
- /package/ui-cv/{cv-editor-quill → components/cv-editor-quill}/index.js +0 -0
- /package/ui-cv/{cv-form-base → components/cv-form-base}/validate.js +0 -0
- /package/ui-cv/{cv-form-group → components/cv-form-group}/cv-form-group2.vue +0 -0
- /package/ui-cv/{cv-form-item → components/cv-form-item}/cv-form-item2.vue +0 -0
- /package/ui-cv/{cv-grid-group → components/cv-grid-group}/cv-grid-group.vue +0 -0
- /package/ui-cv/{cv-icons → components/cv-icons}/iconfont/font-action-icons.js +0 -0
- /package/ui-cv/{cv-icons → components/cv-icons}/iconfont/font-action.css +0 -0
- /package/ui-cv/{cv-icons → components/cv-icons}/iconfont/font-action.js +0 -0
- /package/ui-cv/{cv-icons → components/cv-icons}/iconfont/font-arrow-icons.js +0 -0
- /package/ui-cv/{cv-icons → components/cv-icons}/iconfont/font-arrow.css +0 -0
- /package/ui-cv/{cv-icons → components/cv-icons}/iconfont/font-arrow.js +0 -0
- /package/ui-cv/{cv-icons → components/cv-icons}/iconfont/font-base-icons.js +0 -0
- /package/ui-cv/{cv-icons → components/cv-icons}/iconfont/font-base.css +0 -0
- /package/ui-cv/{cv-icons → components/cv-icons}/iconfont/font-base.js +0 -0
- /package/ui-cv/{cv-icons → components/cv-icons}/iconfont/font-default-icons.js +0 -0
- /package/ui-cv/{cv-icons → components/cv-icons}/iconfont/font-default.css +0 -0
- /package/ui-cv/{cv-icons → components/cv-icons}/iconfont/font-default.js +0 -0
- /package/ui-cv/{cv-icons → components/cv-icons}/iconfont/font-mall-icons.js +0 -0
- /package/ui-cv/{cv-icons → components/cv-icons}/iconfont/font-mall.css +0 -0
- /package/ui-cv/{cv-icons → components/cv-icons}/iconfont/font-mall.js +0 -0
- /package/ui-cv/{cv-icons → components/cv-icons}/iconfont/font-media-icons.js +0 -0
- /package/ui-cv/{cv-icons → components/cv-icons}/iconfont/font-media.css +0 -0
- /package/ui-cv/{cv-icons → components/cv-icons}/iconfont/font-media.js +0 -0
- /package/ui-cv/{cv-icons → components/cv-icons}/iconfont/font-order-icons.js +0 -0
- /package/ui-cv/{cv-icons → components/cv-icons}/iconfont/font-order.css +0 -0
- /package/ui-cv/{cv-icons → components/cv-icons}/iconfont/font-order.js +0 -0
- /package/ui-cv/{cv-icons → components/cv-icons}/iconfont/font-people-icons.js +0 -0
- /package/ui-cv/{cv-icons → components/cv-icons}/iconfont/font-people.css +0 -0
- /package/ui-cv/{cv-icons → components/cv-icons}/iconfont/font-people.js +0 -0
- /package/ui-cv/{cv-icons → components/cv-icons}/iconfont/font-status-icons.js +0 -0
- /package/ui-cv/{cv-icons → components/cv-icons}/iconfont/font-status.css +0 -0
- /package/ui-cv/{cv-icons → components/cv-icons}/iconfont/font-status.js +0 -0
- /package/ui-cv/{cv-icons → components/cv-icons}/iconfont/font-wallet-icons.js +0 -0
- /package/ui-cv/{cv-icons → components/cv-icons}/iconfont/font-wallet.css +0 -0
- /package/ui-cv/{cv-icons → components/cv-icons}/iconfont/font-wallet.js +0 -0
- /package/ui-cv/{cv-icons → components/cv-icons}/icons/default-icons.js +0 -0
- /package/ui-cv/{cv-icons → components/cv-icons}/icons/icons-action.js +0 -0
- /package/ui-cv/{cv-icons → components/cv-icons}/icons/icons-arrow.js +0 -0
- /package/ui-cv/{cv-icons → components/cv-icons}/icons/icons-base.js +0 -0
- /package/ui-cv/{cv-icons → components/cv-icons}/icons/icons-mall.js +0 -0
- /package/ui-cv/{cv-icons → components/cv-icons}/icons/icons-media.js +0 -0
- /package/ui-cv/{cv-icons → components/cv-icons}/icons/icons-order.js +0 -0
- /package/ui-cv/{cv-icons → components/cv-icons}/icons/icons-people.js +0 -0
- /package/ui-cv/{cv-icons → components/cv-icons}/icons/icons-status.js +0 -0
- /package/ui-cv/{cv-icons → components/cv-icons}/icons/icons-wallet.js +0 -0
- /package/ui-cv/{cv-icons → components/cv-icons}/icons.js +0 -0
- /package/ui-cv/{cv-input-text → components/cv-input-text}/input.css +0 -0
- /package/ui-cv/{cv-load-more → components/cv-load-more}/config.json +0 -0
- /package/ui-cv/{cv-load-more2 → components/cv-load-more2}/load-more.vue +0 -0
- /package/ui-cv/{cv-markdown-show → components/cv-markdown-show}/lib/11.8.0-es/highlight.min.js +0 -0
- /package/ui-cv/{cv-markdown-show → components/cv-markdown-show}/lib/highlight/atom-one-dark.css +0 -0
- /package/ui-cv/{cv-markdown-show → components/cv-markdown-show}/lib/highlight/atom-one-light.css +0 -0
- /package/ui-cv/{cv-markdown-show → components/cv-markdown-show}/lib/highlight/github-dark.min.css +0 -0
- /package/ui-cv/{cv-markdown-show → components/cv-markdown-show}/lib/html-parser.js +0 -0
- /package/ui-cv/{cv-markdown-show → components/cv-markdown-show}/lib/markdown-it.min.js +0 -0
- /package/{ui-uni/marked → ui-cv/components/cv-markdown-show}/lib/marked.js +0 -0
- /package/ui-cv/{cv-markdown-show → components/cv-markdown-show}/markdown.css +0 -0
- /package/ui-cv/{cv-markdown-show → components/cv-markdown-show}/package.json +0 -0
- /package/ui-cv/{cv-markdown-show → components/cv-markdown-show}/readme.md +0 -0
- /package/ui-cv/{cv-rate → components/cv-rate}/uni-rate.vue +0 -0
- /package/{ui-uni → uni-ui/lib}/uni-calendar/calendar.js +0 -0
- /package/{ui-uni → uni-ui/lib}/uni-data-picker/keypress.js +0 -0
- /package/{ui-uni → uni-ui/lib}/uni-dateformat/date-format.js +0 -0
- /package/{ui-uni → uni-ui/lib}/uni-easyinput/common.js +0 -0
- /package/{ui-uni → uni-ui/lib}/uni-file-picker/utils.js +0 -0
|
@@ -0,0 +1,1333 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview html 解析器
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
// 配置
|
|
6
|
+
const config = {
|
|
7
|
+
// 信任的标签(保持标签名不变)
|
|
8
|
+
trustTags: makeMap('a,abbr,ad,audio,b,blockquote,br,code,col,colgroup,dd,del,dl,dt,div,em,fieldset,h1,h2,h3,h4,h5,h6,hr,i,img,ins,label,legend,li,ol,p,q,ruby,rt,source,span,strong,sub,sup,table,tbody,td,tfoot,th,thead,tr,title,ul,video'),
|
|
9
|
+
|
|
10
|
+
// 块级标签(转为 div,其他的非信任标签转为 span)
|
|
11
|
+
blockTags: makeMap('address,article,aside,body,caption,center,cite,footer,header,html,nav,pre,section'),
|
|
12
|
+
|
|
13
|
+
// #ifdef (MP-WEIXIN || MP-QQ || APP-PLUS || MP-360) && VUE3
|
|
14
|
+
// 行内标签
|
|
15
|
+
inlineTags: makeMap('abbr,b,big,code,del,em,i,ins,label,q,small,span,strong,sub,sup'),
|
|
16
|
+
// #endif
|
|
17
|
+
|
|
18
|
+
// 要移除的标签
|
|
19
|
+
ignoreTags: makeMap('area,base,canvas,embed,frame,head,iframe,input,link,map,meta,param,rp,script,source,style,textarea,title,track,wbr'),
|
|
20
|
+
|
|
21
|
+
// 自闭合的标签
|
|
22
|
+
voidTags: makeMap('area,base,br,col,circle,ellipse,embed,frame,hr,img,input,line,link,meta,param,path,polygon,rect,source,track,use,wbr'),
|
|
23
|
+
|
|
24
|
+
// html 实体
|
|
25
|
+
entities: {
|
|
26
|
+
lt: '<',
|
|
27
|
+
gt: '>',
|
|
28
|
+
quot: '"',
|
|
29
|
+
apos: "'",
|
|
30
|
+
ensp: '\u2002',
|
|
31
|
+
emsp: '\u2003',
|
|
32
|
+
nbsp: '\xA0',
|
|
33
|
+
semi: ';',
|
|
34
|
+
ndash: '–',
|
|
35
|
+
mdash: '—',
|
|
36
|
+
middot: '·',
|
|
37
|
+
lsquo: '‘',
|
|
38
|
+
rsquo: '’',
|
|
39
|
+
ldquo: '“',
|
|
40
|
+
rdquo: '”',
|
|
41
|
+
bull: '•',
|
|
42
|
+
hellip: '…',
|
|
43
|
+
larr: '←',
|
|
44
|
+
uarr: '↑',
|
|
45
|
+
rarr: '→',
|
|
46
|
+
darr: '↓'
|
|
47
|
+
},
|
|
48
|
+
|
|
49
|
+
// 默认的标签样式
|
|
50
|
+
tagStyle: {
|
|
51
|
+
// #ifndef APP-PLUS-NVUE
|
|
52
|
+
address: 'font-style:italic',
|
|
53
|
+
big: 'display:inline;font-size:1.2em',
|
|
54
|
+
caption: 'display:table-caption;text-align:center',
|
|
55
|
+
center: 'text-align:center',
|
|
56
|
+
cite: 'font-style:italic',
|
|
57
|
+
dd: 'margin-left:40px',
|
|
58
|
+
mark: 'background-color:yellow',
|
|
59
|
+
pre: 'font-family:monospace;white-space:pre',
|
|
60
|
+
s: 'text-decoration:line-through',
|
|
61
|
+
small: 'display:inline;font-size:0.8em',
|
|
62
|
+
strike: 'text-decoration:line-through',
|
|
63
|
+
u: 'text-decoration:underline'
|
|
64
|
+
// #endif
|
|
65
|
+
},
|
|
66
|
+
|
|
67
|
+
// svg 大小写对照表
|
|
68
|
+
svgDict: {
|
|
69
|
+
animatetransform: 'animateTransform',
|
|
70
|
+
lineargradient: 'linearGradient',
|
|
71
|
+
viewbox: 'viewBox',
|
|
72
|
+
attributename: 'attributeName',
|
|
73
|
+
repeatcount: 'repeatCount',
|
|
74
|
+
repeatdur: 'repeatDur'
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
const tagSelector={}
|
|
78
|
+
const {
|
|
79
|
+
windowWidth,
|
|
80
|
+
// #ifdef MP-WEIXIN
|
|
81
|
+
system
|
|
82
|
+
// #endif
|
|
83
|
+
} = uni.getSystemInfoSync()
|
|
84
|
+
const blankChar = makeMap(' ,\r,\n,\t,\f')
|
|
85
|
+
let idIndex = 0
|
|
86
|
+
|
|
87
|
+
// #ifdef H5 || APP-PLUS
|
|
88
|
+
config.ignoreTags.iframe = undefined
|
|
89
|
+
config.trustTags.iframe = true
|
|
90
|
+
config.ignoreTags.embed = undefined
|
|
91
|
+
config.trustTags.embed = true
|
|
92
|
+
// #endif
|
|
93
|
+
// #ifdef APP-PLUS-NVUE
|
|
94
|
+
config.ignoreTags.source = undefined
|
|
95
|
+
config.ignoreTags.style = undefined
|
|
96
|
+
// #endif
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* @description 创建 map
|
|
100
|
+
* @param {String} str 逗号分隔
|
|
101
|
+
*/
|
|
102
|
+
function makeMap (str) {
|
|
103
|
+
const map = Object.create(null)
|
|
104
|
+
const list = str.split(',')
|
|
105
|
+
for (let i = list.length; i--;) {
|
|
106
|
+
map[list[i]] = true
|
|
107
|
+
}
|
|
108
|
+
return map
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* @description 解码 html 实体
|
|
113
|
+
* @param {String} str 要解码的字符串
|
|
114
|
+
* @param {Boolean} amp 要不要解码 &
|
|
115
|
+
* @returns {String} 解码后的字符串
|
|
116
|
+
*/
|
|
117
|
+
function decodeEntity (str, amp) {
|
|
118
|
+
let i = str.indexOf('&')
|
|
119
|
+
while (i !== -1) {
|
|
120
|
+
const j = str.indexOf(';', i + 3)
|
|
121
|
+
let code
|
|
122
|
+
if (j === -1) break
|
|
123
|
+
if (str[i + 1] === '#') {
|
|
124
|
+
// { 形式的实体
|
|
125
|
+
code = parseInt((str[i + 2] === 'x' ? '0' : '') + str.substring(i + 2, j))
|
|
126
|
+
if (!isNaN(code)) {
|
|
127
|
+
str = str.substr(0, i) + String.fromCharCode(code) + str.substr(j + 1)
|
|
128
|
+
}
|
|
129
|
+
} else {
|
|
130
|
+
// 形式的实体
|
|
131
|
+
code = str.substring(i + 1, j)
|
|
132
|
+
if (config.entities[code] || (code === 'amp' && amp)) {
|
|
133
|
+
str = str.substr(0, i) + (config.entities[code] || '&') + str.substr(j + 1)
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
i = str.indexOf('&', i + 1)
|
|
137
|
+
}
|
|
138
|
+
return str
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* @description 合并多个块级标签,加快长内容渲染
|
|
143
|
+
* @param {Array} nodes 要合并的标签数组
|
|
144
|
+
*/
|
|
145
|
+
function mergeNodes (nodes) {
|
|
146
|
+
let i = nodes.length - 1
|
|
147
|
+
for (let j = i; j >= -1; j--) {
|
|
148
|
+
if (j === -1 || nodes[j].c || !nodes[j].name || (nodes[j].name !== 'div' && nodes[j].name !== 'p' && nodes[j].name[0] !== 'h') || (nodes[j].attrs.style || '').includes('inline')) {
|
|
149
|
+
if (i - j >= 5) {
|
|
150
|
+
nodes.splice(j + 1, i - j, {
|
|
151
|
+
name: 'div',
|
|
152
|
+
attrs: {},
|
|
153
|
+
children: nodes.slice(j + 1, i + 1)
|
|
154
|
+
})
|
|
155
|
+
}
|
|
156
|
+
i = j - 1
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* @description html 解析器
|
|
163
|
+
* @param {Object} vm 组件实例
|
|
164
|
+
*/
|
|
165
|
+
function Parser (vm) {
|
|
166
|
+
this.options = vm || {}
|
|
167
|
+
this.tagStyle = Object.assign({}, config.tagStyle, this.options.tagStyle)
|
|
168
|
+
this.imgList = vm.imgList || []
|
|
169
|
+
this.imgList._unloadimgs = 0
|
|
170
|
+
this.plugins = vm.plugins || []
|
|
171
|
+
this.attrs = Object.create(null)
|
|
172
|
+
this.stack = []
|
|
173
|
+
this.nodes = []
|
|
174
|
+
this.pre = (this.options.containerStyle || '').includes('white-space') && this.options.containerStyle.includes('pre') ? 2 : 0
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* @description 执行解析
|
|
179
|
+
* @param {String} content 要解析的文本
|
|
180
|
+
*/
|
|
181
|
+
Parser.prototype.parse = function (content) {
|
|
182
|
+
// 插件处理
|
|
183
|
+
for (let i = this.plugins.length; i--;) {
|
|
184
|
+
if (this.plugins[i].onUpdate) {
|
|
185
|
+
content = this.plugins[i].onUpdate(content, config) || content
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
new Lexer(this).parse(content)
|
|
190
|
+
// 出栈未闭合的标签
|
|
191
|
+
while (this.stack.length) {
|
|
192
|
+
this.popNode()
|
|
193
|
+
}
|
|
194
|
+
if (this.nodes.length > 50) {
|
|
195
|
+
mergeNodes(this.nodes)
|
|
196
|
+
}
|
|
197
|
+
return this.nodes
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* @description 将标签暴露出来(不被 rich-text 包含)
|
|
202
|
+
*/
|
|
203
|
+
Parser.prototype.expose = function () {
|
|
204
|
+
// #ifndef APP-PLUS-NVUE
|
|
205
|
+
for (let i = this.stack.length; i--;) {
|
|
206
|
+
const item = this.stack[i]
|
|
207
|
+
if (item.c || item.name === 'a' || item.name === 'video' || item.name === 'audio') return
|
|
208
|
+
item.c = 1
|
|
209
|
+
}
|
|
210
|
+
// #endif
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* @description 处理插件
|
|
215
|
+
* @param {Object} node 要处理的标签
|
|
216
|
+
* @returns {Boolean} 是否要移除此标签
|
|
217
|
+
*/
|
|
218
|
+
Parser.prototype.hook = function (node) {
|
|
219
|
+
for (let i = this.plugins.length; i--;) {
|
|
220
|
+
if (this.plugins[i].onParse && this.plugins[i].onParse(node, this) === false) {
|
|
221
|
+
return false
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
return true
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* @description 将链接拼接上主域名
|
|
229
|
+
* @param {String} url 需要拼接的链接
|
|
230
|
+
* @returns {String} 拼接后的链接
|
|
231
|
+
*/
|
|
232
|
+
Parser.prototype.getUrl = function (url) {
|
|
233
|
+
const domain = this.options.domain
|
|
234
|
+
if (url[0] === '/') {
|
|
235
|
+
if (url[1] === '/') {
|
|
236
|
+
// // 开头的补充协议名
|
|
237
|
+
url = (domain ? domain.split('://')[0] : 'http') + ':' + url
|
|
238
|
+
} else if (domain) {
|
|
239
|
+
// 否则补充整个域名
|
|
240
|
+
url = domain + url
|
|
241
|
+
} /* #ifdef APP-PLUS */ else {
|
|
242
|
+
url = plus.io.convertLocalFileSystemURL(url)
|
|
243
|
+
} /* #endif */
|
|
244
|
+
} else if (!url.includes('data:') && !url.includes('://')) {
|
|
245
|
+
if (domain) {
|
|
246
|
+
url = domain + '/' + url
|
|
247
|
+
} /* #ifdef APP-PLUS */ else {
|
|
248
|
+
url = plus.io.convertLocalFileSystemURL(url)
|
|
249
|
+
} /* #endif */
|
|
250
|
+
}
|
|
251
|
+
return url
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* @description 解析样式表
|
|
256
|
+
* @param {Object} node 标签
|
|
257
|
+
* @returns {Object}
|
|
258
|
+
*/
|
|
259
|
+
Parser.prototype.parseStyle = function (node) {
|
|
260
|
+
const attrs = node.attrs
|
|
261
|
+
const list = (this.tagStyle[node.name] || '').split(';').concat((attrs.style || '').split(';'))
|
|
262
|
+
const styleObj = {}
|
|
263
|
+
let tmp = ''
|
|
264
|
+
|
|
265
|
+
if (attrs.id && !this.xml) {
|
|
266
|
+
// 暴露锚点
|
|
267
|
+
if (this.options.useAnchor) {
|
|
268
|
+
this.expose()
|
|
269
|
+
} else if (node.name !== 'img' && node.name !== 'a' && node.name !== 'video' && node.name !== 'audio') {
|
|
270
|
+
attrs.id = undefined
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
// 转换 width 和 height 属性
|
|
275
|
+
if (attrs.width) {
|
|
276
|
+
styleObj.width = parseFloat(attrs.width) + (attrs.width.includes('%') ? '%' : 'px')
|
|
277
|
+
attrs.width = undefined
|
|
278
|
+
}
|
|
279
|
+
if (attrs.height) {
|
|
280
|
+
styleObj.height = parseFloat(attrs.height) + (attrs.height.includes('%') ? '%' : 'px')
|
|
281
|
+
attrs.height = undefined
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
for (let i = 0, len = list.length; i < len; i++) {
|
|
285
|
+
const info = list[i].split(':')
|
|
286
|
+
if (info.length < 2) continue
|
|
287
|
+
const key = info.shift().trim().toLowerCase()
|
|
288
|
+
let value = info.join(':').trim()
|
|
289
|
+
if ((value[0] === '-' && value.lastIndexOf('-') > 0) || value.includes('safe')) {
|
|
290
|
+
// 兼容性的 css 不压缩
|
|
291
|
+
tmp += `;${key}:${value}`
|
|
292
|
+
} else if (!styleObj[key] || value.includes('import') || !styleObj[key].includes('import')) {
|
|
293
|
+
// 重复的样式进行覆盖
|
|
294
|
+
if (value.includes('url')) {
|
|
295
|
+
// 填充链接
|
|
296
|
+
let j = value.indexOf('(') + 1
|
|
297
|
+
if (j) {
|
|
298
|
+
while (value[j] === '"' || value[j] === "'" || blankChar[value[j]]) {
|
|
299
|
+
j++
|
|
300
|
+
}
|
|
301
|
+
value = value.substr(0, j) + this.getUrl(value.substr(j))
|
|
302
|
+
}
|
|
303
|
+
} else if (value.includes('rpx')) {
|
|
304
|
+
// 转换 rpx(rich-text 内部不支持 rpx)
|
|
305
|
+
value = value.replace(/[0-9.]+\s*rpx/g, $ => parseFloat($) * windowWidth / 750 + 'px')
|
|
306
|
+
}
|
|
307
|
+
styleObj[key] = value
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
node.attrs.style = tmp
|
|
312
|
+
return styleObj
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
/**
|
|
316
|
+
* @description 解析到标签名
|
|
317
|
+
* @param {String} name 标签名
|
|
318
|
+
* @private
|
|
319
|
+
*/
|
|
320
|
+
Parser.prototype.onTagName = function (name) {
|
|
321
|
+
this.tagName = this.xml ? name : name.toLowerCase()
|
|
322
|
+
if (this.tagName === 'svg') {
|
|
323
|
+
this.xml = (this.xml || 0) + 1 // svg 标签内大小写敏感
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
/**
|
|
328
|
+
* @description 解析到属性名
|
|
329
|
+
* @param {String} name 属性名
|
|
330
|
+
* @private
|
|
331
|
+
*/
|
|
332
|
+
Parser.prototype.onAttrName = function (name) {
|
|
333
|
+
name = this.xml ? name : name.toLowerCase()
|
|
334
|
+
if (name.substr(0, 5) === 'data-') {
|
|
335
|
+
if (name === 'data-src' && !this.attrs.src) {
|
|
336
|
+
// data-src 自动转为 src
|
|
337
|
+
this.attrName = 'src'
|
|
338
|
+
} else if (this.tagName === 'img' || this.tagName === 'a') {
|
|
339
|
+
// a 和 img 标签保留 data- 的属性,可以在 imgtap 和 linktap 事件中使用
|
|
340
|
+
this.attrName = name
|
|
341
|
+
} else {
|
|
342
|
+
// 剩余的移除以减小大小
|
|
343
|
+
this.attrName = undefined
|
|
344
|
+
}
|
|
345
|
+
} else {
|
|
346
|
+
this.attrName = name
|
|
347
|
+
this.attrs[name] = 'T' // boolean 型属性缺省设置
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
/**
|
|
352
|
+
* @description 解析到属性值
|
|
353
|
+
* @param {String} val 属性值
|
|
354
|
+
* @private
|
|
355
|
+
*/
|
|
356
|
+
Parser.prototype.onAttrVal = function (val) {
|
|
357
|
+
const name = this.attrName || ''
|
|
358
|
+
if (name === 'style' || name === 'href') {
|
|
359
|
+
// 部分属性进行实体解码
|
|
360
|
+
this.attrs[name] = decodeEntity(val, true)
|
|
361
|
+
} else if (name.includes('src')) {
|
|
362
|
+
// 拼接主域名
|
|
363
|
+
this.attrs[name] = this.getUrl(decodeEntity(val, true))
|
|
364
|
+
} else if (name) {
|
|
365
|
+
this.attrs[name] = val
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
/**
|
|
370
|
+
* @description 解析到标签开始
|
|
371
|
+
* @param {Boolean} selfClose 是否有自闭合标识 />
|
|
372
|
+
* @private
|
|
373
|
+
*/
|
|
374
|
+
Parser.prototype.onOpenTag = function (selfClose) {
|
|
375
|
+
// 拼装 node
|
|
376
|
+
const node = Object.create(null)
|
|
377
|
+
node.name = this.tagName
|
|
378
|
+
node.attrs = this.attrs
|
|
379
|
+
// 避免因为自动 diff 使得 type 被设置为 null 导致部分内容不显示
|
|
380
|
+
if (this.options.nodes.length) {
|
|
381
|
+
node.type = 'node'
|
|
382
|
+
}
|
|
383
|
+
this.attrs = Object.create(null)
|
|
384
|
+
|
|
385
|
+
const attrs = node.attrs
|
|
386
|
+
const parent = this.stack[this.stack.length - 1]
|
|
387
|
+
const siblings = parent ? parent.children : this.nodes
|
|
388
|
+
const close = this.xml ? selfClose : config.voidTags[node.name]
|
|
389
|
+
|
|
390
|
+
// 替换标签名选择器
|
|
391
|
+
if (tagSelector[node.name]) {
|
|
392
|
+
attrs.class = tagSelector[node.name] + (attrs.class ? ' ' + attrs.class : '')
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
// 转换 embed 标签
|
|
396
|
+
if (node.name === 'embed') {
|
|
397
|
+
// #ifndef H5 || APP-PLUS
|
|
398
|
+
const src = attrs.src || ''
|
|
399
|
+
// 按照后缀名和 type 将 embed 转为 video 或 audio
|
|
400
|
+
if (src.includes('.mp4') || src.includes('.3gp') || src.includes('.m3u8') || (attrs.type || '').includes('video')) {
|
|
401
|
+
node.name = 'video'
|
|
402
|
+
} else if (src.includes('.mp3') || src.includes('.wav') || src.includes('.aac') || src.includes('.m4a') || (attrs.type || '').includes('audio')) {
|
|
403
|
+
node.name = 'audio'
|
|
404
|
+
}
|
|
405
|
+
if (attrs.autostart) {
|
|
406
|
+
attrs.autoplay = 'T'
|
|
407
|
+
}
|
|
408
|
+
attrs.controls = 'T'
|
|
409
|
+
// #endif
|
|
410
|
+
// #ifdef H5 || APP-PLUS
|
|
411
|
+
this.expose()
|
|
412
|
+
// #endif
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
// #ifndef APP-PLUS-NVUE
|
|
416
|
+
// 处理音视频
|
|
417
|
+
if (node.name === 'video' || node.name === 'audio') {
|
|
418
|
+
// 设置 id 以便获取 context
|
|
419
|
+
if (node.name === 'video' && !attrs.id) {
|
|
420
|
+
attrs.id = 'v' + idIndex++
|
|
421
|
+
}
|
|
422
|
+
// 没有设置 controls 也没有设置 autoplay 的自动设置 controls
|
|
423
|
+
if (!attrs.controls && !attrs.autoplay) {
|
|
424
|
+
attrs.controls = 'T'
|
|
425
|
+
}
|
|
426
|
+
// 用数组存储所有可用的 source
|
|
427
|
+
node.src = []
|
|
428
|
+
if (attrs.src) {
|
|
429
|
+
node.src.push(attrs.src)
|
|
430
|
+
attrs.src = undefined
|
|
431
|
+
}
|
|
432
|
+
this.expose()
|
|
433
|
+
}
|
|
434
|
+
// #endif
|
|
435
|
+
|
|
436
|
+
// 处理自闭合标签
|
|
437
|
+
if (close) {
|
|
438
|
+
if (!this.hook(node) || config.ignoreTags[node.name]) {
|
|
439
|
+
// 通过 base 标签设置主域名
|
|
440
|
+
if (node.name === 'base' && !this.options.domain) {
|
|
441
|
+
this.options.domain = attrs.href
|
|
442
|
+
} /* #ifndef APP-PLUS-NVUE */ else if (node.name === 'source' && parent && (parent.name === 'video' || parent.name === 'audio') && attrs.src) {
|
|
443
|
+
// 设置 source 标签(仅父节点为 video 或 audio 时有效)
|
|
444
|
+
parent.src.push(attrs.src)
|
|
445
|
+
} /* #endif */
|
|
446
|
+
return
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
// 解析 style
|
|
450
|
+
const styleObj = this.parseStyle(node)
|
|
451
|
+
|
|
452
|
+
// 处理图片
|
|
453
|
+
if (node.name === 'img') {
|
|
454
|
+
if (attrs.src) {
|
|
455
|
+
// 标记 webp
|
|
456
|
+
if (attrs.src.includes('webp')) {
|
|
457
|
+
node.webp = 'T'
|
|
458
|
+
}
|
|
459
|
+
// data url 图片如果没有设置 original-src 默认为不可预览的小图片
|
|
460
|
+
if (attrs.src.includes('data:') && !attrs['original-src']) {
|
|
461
|
+
attrs.ignore = 'T'
|
|
462
|
+
}
|
|
463
|
+
if (!attrs.ignore || node.webp || attrs.src.includes('cloud://')) {
|
|
464
|
+
for (let i = this.stack.length; i--;) {
|
|
465
|
+
const item = this.stack[i]
|
|
466
|
+
if (item.name === 'a') {
|
|
467
|
+
node.a = item.attrs
|
|
468
|
+
}
|
|
469
|
+
if (item.name === 'table' && !node.webp && !attrs.src.includes('cloud://')) {
|
|
470
|
+
if (!styleObj.display || styleObj.display.includes('inline')) {
|
|
471
|
+
node.t = 'inline-block'
|
|
472
|
+
} else {
|
|
473
|
+
node.t = styleObj.display
|
|
474
|
+
}
|
|
475
|
+
styleObj.display = undefined
|
|
476
|
+
}
|
|
477
|
+
// #ifndef H5 || APP-PLUS
|
|
478
|
+
const style = item.attrs.style || ''
|
|
479
|
+
if (style.includes('flex:') && !style.includes('flex:0') && !style.includes('flex: 0') && (!styleObj.width || parseInt(styleObj.width) > 100)) {
|
|
480
|
+
styleObj.width = '100% !important'
|
|
481
|
+
styleObj.height = ''
|
|
482
|
+
for (let j = i + 1; j < this.stack.length; j++) {
|
|
483
|
+
this.stack[j].attrs.style = (this.stack[j].attrs.style || '').replace('inline-', '')
|
|
484
|
+
}
|
|
485
|
+
} else if (style.includes('flex') && styleObj.width === '100%') {
|
|
486
|
+
for (let j = i + 1; j < this.stack.length; j++) {
|
|
487
|
+
const style = this.stack[j].attrs.style || ''
|
|
488
|
+
if (!style.includes(';width') && !style.includes(' width') && style.indexOf('width') !== 0) {
|
|
489
|
+
styleObj.width = ''
|
|
490
|
+
break
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
} else if (style.includes('inline-block')) {
|
|
494
|
+
if (styleObj.width && styleObj.width[styleObj.width.length - 1] === '%') {
|
|
495
|
+
item.attrs.style += ';max-width:' + styleObj.width
|
|
496
|
+
styleObj.width = ''
|
|
497
|
+
} else {
|
|
498
|
+
item.attrs.style += ';max-width:100%'
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
// #endif
|
|
502
|
+
item.c = 1
|
|
503
|
+
}
|
|
504
|
+
attrs.i = this.imgList.length.toString()
|
|
505
|
+
let src = attrs['original-src'] || attrs.src
|
|
506
|
+
// #ifndef H5 || MP-ALIPAY || APP-PLUS || MP-360
|
|
507
|
+
if (this.imgList.includes(src)) {
|
|
508
|
+
// 如果有重复的链接则对域名进行随机大小写变换避免预览时错位
|
|
509
|
+
let i = src.indexOf('://')
|
|
510
|
+
if (i !== -1) {
|
|
511
|
+
i += 3
|
|
512
|
+
let newSrc = src.substr(0, i)
|
|
513
|
+
for (; i < src.length; i++) {
|
|
514
|
+
if (src[i] === '/') break
|
|
515
|
+
newSrc += Math.random() > 0.5 ? src[i].toUpperCase() : src[i]
|
|
516
|
+
}
|
|
517
|
+
newSrc += src.substr(i)
|
|
518
|
+
src = newSrc
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
// #endif
|
|
522
|
+
this.imgList.push(src)
|
|
523
|
+
if (!node.t) {
|
|
524
|
+
this.imgList._unloadimgs += 1
|
|
525
|
+
}
|
|
526
|
+
// #ifdef H5 || APP-PLUS
|
|
527
|
+
if (this.options.lazyLoad) {
|
|
528
|
+
attrs['data-src'] = attrs.src
|
|
529
|
+
attrs.src = undefined
|
|
530
|
+
}
|
|
531
|
+
// #endif
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
if (styleObj.display === 'inline') {
|
|
535
|
+
styleObj.display = ''
|
|
536
|
+
}
|
|
537
|
+
// #ifndef APP-PLUS-NVUE
|
|
538
|
+
if (attrs.ignore) {
|
|
539
|
+
styleObj['max-width'] = styleObj['max-width'] || '100%'
|
|
540
|
+
attrs.style += ';-webkit-touch-callout:none'
|
|
541
|
+
}
|
|
542
|
+
// #endif
|
|
543
|
+
// 设置的宽度超出屏幕,为避免变形,高度转为自动
|
|
544
|
+
if (parseInt(styleObj.width) > windowWidth) {
|
|
545
|
+
styleObj.height = undefined
|
|
546
|
+
}
|
|
547
|
+
// 记录是否设置了宽高
|
|
548
|
+
if (!isNaN(parseInt(styleObj.width))) {
|
|
549
|
+
node.w = 'T'
|
|
550
|
+
}
|
|
551
|
+
if (!isNaN(parseInt(styleObj.height)) && (!styleObj.height.includes('%') || (parent && (parent.attrs.style || '').includes('height')))) {
|
|
552
|
+
node.h = 'T'
|
|
553
|
+
}
|
|
554
|
+
} else if (node.name === 'svg') {
|
|
555
|
+
siblings.push(node)
|
|
556
|
+
this.stack.push(node)
|
|
557
|
+
this.popNode()
|
|
558
|
+
return
|
|
559
|
+
}
|
|
560
|
+
for (const key in styleObj) {
|
|
561
|
+
if (styleObj[key]) {
|
|
562
|
+
attrs.style += `;${key}:${styleObj[key].replace(' !important', '')}`
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
attrs.style = attrs.style.substr(1) || undefined
|
|
566
|
+
// #ifdef (MP-WEIXIN || MP-QQ) && VUE3
|
|
567
|
+
if (!attrs.style) {
|
|
568
|
+
delete attrs.style
|
|
569
|
+
}
|
|
570
|
+
// #endif
|
|
571
|
+
} else {
|
|
572
|
+
if ((node.name === 'pre' || ((attrs.style || '').includes('white-space') && attrs.style.includes('pre'))) && this.pre !== 2) {
|
|
573
|
+
this.pre = node.pre = 1
|
|
574
|
+
}
|
|
575
|
+
node.children = []
|
|
576
|
+
this.stack.push(node)
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
// 加入节点树
|
|
580
|
+
siblings.push(node)
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
/**
|
|
584
|
+
* @description 解析到标签结束
|
|
585
|
+
* @param {String} name 标签名
|
|
586
|
+
* @private
|
|
587
|
+
*/
|
|
588
|
+
Parser.prototype.onCloseTag = function (name) {
|
|
589
|
+
// 依次出栈到匹配为止
|
|
590
|
+
name = this.xml ? name : name.toLowerCase()
|
|
591
|
+
let i
|
|
592
|
+
for (i = this.stack.length; i--;) {
|
|
593
|
+
if (this.stack[i].name === name) break
|
|
594
|
+
}
|
|
595
|
+
if (i !== -1) {
|
|
596
|
+
while (this.stack.length > i) {
|
|
597
|
+
this.popNode()
|
|
598
|
+
}
|
|
599
|
+
} else if (name === 'p' || name === 'br') {
|
|
600
|
+
const siblings = this.stack.length ? this.stack[this.stack.length - 1].children : this.nodes
|
|
601
|
+
siblings.push({
|
|
602
|
+
name,
|
|
603
|
+
attrs: {
|
|
604
|
+
class: tagSelector[name] || '',
|
|
605
|
+
style: this.tagStyle[name] || ''
|
|
606
|
+
}
|
|
607
|
+
})
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
/**
|
|
612
|
+
* @description 处理标签出栈
|
|
613
|
+
* @private
|
|
614
|
+
*/
|
|
615
|
+
Parser.prototype.popNode = function () {
|
|
616
|
+
const node = this.stack.pop()
|
|
617
|
+
let attrs = node.attrs
|
|
618
|
+
const children = node.children
|
|
619
|
+
const parent = this.stack[this.stack.length - 1]
|
|
620
|
+
const siblings = parent ? parent.children : this.nodes
|
|
621
|
+
|
|
622
|
+
if (!this.hook(node) || config.ignoreTags[node.name]) {
|
|
623
|
+
// 获取标题
|
|
624
|
+
if (node.name === 'title' && children.length && children[0].type === 'text' && this.options.setTitle) {
|
|
625
|
+
uni.setNavigationBarTitle({
|
|
626
|
+
title: children[0].text
|
|
627
|
+
})
|
|
628
|
+
}
|
|
629
|
+
siblings.pop()
|
|
630
|
+
return
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
if (node.pre && this.pre !== 2) {
|
|
634
|
+
// 是否合并空白符标识
|
|
635
|
+
this.pre = node.pre = undefined
|
|
636
|
+
for (let i = this.stack.length; i--;) {
|
|
637
|
+
if (this.stack[i].pre) {
|
|
638
|
+
this.pre = 1
|
|
639
|
+
}
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
const styleObj = {}
|
|
644
|
+
|
|
645
|
+
// 转换 svg
|
|
646
|
+
if (node.name === 'svg') {
|
|
647
|
+
if (this.xml > 1) {
|
|
648
|
+
// 多层 svg 嵌套
|
|
649
|
+
this.xml--
|
|
650
|
+
return
|
|
651
|
+
}
|
|
652
|
+
// #ifdef APP-PLUS-NVUE
|
|
653
|
+
(function traversal (node) {
|
|
654
|
+
if (node.name) {
|
|
655
|
+
// 调整 svg 的大小写
|
|
656
|
+
node.name = config.svgDict[node.name] || node.name
|
|
657
|
+
for (const item in node.attrs) {
|
|
658
|
+
if (config.svgDict[item]) {
|
|
659
|
+
node.attrs[config.svgDict[item]] = node.attrs[item]
|
|
660
|
+
node.attrs[item] = undefined
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
for (let i = 0; i < (node.children || []).length; i++) {
|
|
664
|
+
traversal(node.children[i])
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
})(node)
|
|
668
|
+
// #endif
|
|
669
|
+
// #ifndef APP-PLUS-NVUE
|
|
670
|
+
let src = ''
|
|
671
|
+
const style = attrs.style
|
|
672
|
+
attrs.style = ''
|
|
673
|
+
attrs.xmlns = 'http://www.w3.org/2000/svg';
|
|
674
|
+
(function traversal (node) {
|
|
675
|
+
if (node.type === 'text') {
|
|
676
|
+
src += node.text
|
|
677
|
+
return
|
|
678
|
+
}
|
|
679
|
+
const name = config.svgDict[node.name] || node.name
|
|
680
|
+
src += '<' + name
|
|
681
|
+
for (const item in node.attrs) {
|
|
682
|
+
const val = node.attrs[item]
|
|
683
|
+
if (val) {
|
|
684
|
+
src += ` ${config.svgDict[item] || item}="${val}"`
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
if (!node.children) {
|
|
688
|
+
src += '/>'
|
|
689
|
+
} else {
|
|
690
|
+
src += '>'
|
|
691
|
+
for (let i = 0; i < node.children.length; i++) {
|
|
692
|
+
traversal(node.children[i])
|
|
693
|
+
}
|
|
694
|
+
src += '</' + name + '>'
|
|
695
|
+
}
|
|
696
|
+
})(node)
|
|
697
|
+
node.name = 'img'
|
|
698
|
+
node.attrs = {
|
|
699
|
+
src: 'data:image/svg+xml;utf8,' + src.replace(/#/g, '%23'),
|
|
700
|
+
style,
|
|
701
|
+
ignore: 'T'
|
|
702
|
+
}
|
|
703
|
+
node.children = undefined
|
|
704
|
+
// #endif
|
|
705
|
+
this.xml = false
|
|
706
|
+
return
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
// #ifndef APP-PLUS-NVUE
|
|
710
|
+
// 转换 align 属性
|
|
711
|
+
if (attrs.align) {
|
|
712
|
+
if (node.name === 'table') {
|
|
713
|
+
if (attrs.align === 'center') {
|
|
714
|
+
styleObj['margin-inline-start'] = styleObj['margin-inline-end'] = 'auto'
|
|
715
|
+
} else {
|
|
716
|
+
styleObj.float = attrs.align
|
|
717
|
+
}
|
|
718
|
+
} else {
|
|
719
|
+
styleObj['text-align'] = attrs.align
|
|
720
|
+
}
|
|
721
|
+
attrs.align = undefined
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
// 转换 dir 属性
|
|
725
|
+
if (attrs.dir) {
|
|
726
|
+
styleObj.direction = attrs.dir
|
|
727
|
+
attrs.dir = undefined
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
// 转换 font 标签的属性
|
|
731
|
+
if (node.name === 'font') {
|
|
732
|
+
if (attrs.color) {
|
|
733
|
+
styleObj.color = attrs.color
|
|
734
|
+
attrs.color = undefined
|
|
735
|
+
}
|
|
736
|
+
if (attrs.face) {
|
|
737
|
+
styleObj['font-family'] = attrs.face
|
|
738
|
+
attrs.face = undefined
|
|
739
|
+
}
|
|
740
|
+
if (attrs.size) {
|
|
741
|
+
let size = parseInt(attrs.size)
|
|
742
|
+
if (!isNaN(size)) {
|
|
743
|
+
if (size < 1) {
|
|
744
|
+
size = 1
|
|
745
|
+
} else if (size > 7) {
|
|
746
|
+
size = 7
|
|
747
|
+
}
|
|
748
|
+
styleObj['font-size'] = ['x-small', 'small', 'medium', 'large', 'x-large', 'xx-large', 'xxx-large'][size - 1]
|
|
749
|
+
}
|
|
750
|
+
attrs.size = undefined
|
|
751
|
+
}
|
|
752
|
+
}
|
|
753
|
+
// #endif
|
|
754
|
+
|
|
755
|
+
// 一些编辑器的自带 class
|
|
756
|
+
if ((attrs.class || '').includes('align-center')) {
|
|
757
|
+
styleObj['text-align'] = 'center'
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
Object.assign(styleObj, this.parseStyle(node))
|
|
761
|
+
|
|
762
|
+
if (node.name !== 'table' && parseInt(styleObj.width) > windowWidth) {
|
|
763
|
+
styleObj['max-width'] = '100%'
|
|
764
|
+
styleObj['box-sizing'] = 'border-box'
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
// #ifndef APP-PLUS-NVUE
|
|
768
|
+
if (config.blockTags[node.name]) {
|
|
769
|
+
node.name = 'div'
|
|
770
|
+
} else if (!config.trustTags[node.name] && !this.xml) {
|
|
771
|
+
// 未知标签转为 span,避免无法显示
|
|
772
|
+
node.name = 'span'
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
if (node.name === 'a' || node.name === 'ad'
|
|
776
|
+
// #ifdef H5 || APP-PLUS
|
|
777
|
+
|| node.name === 'iframe' // eslint-disable-line
|
|
778
|
+
// #endif
|
|
779
|
+
) {
|
|
780
|
+
this.expose()
|
|
781
|
+
} else if (node.name === 'video') {
|
|
782
|
+
if ((styleObj.height || '').includes('auto')) {
|
|
783
|
+
styleObj.height = undefined
|
|
784
|
+
}
|
|
785
|
+
/* #ifdef APP-PLUS */
|
|
786
|
+
let str = '<video style="width:100%;height:100%"'
|
|
787
|
+
for (const item in attrs) {
|
|
788
|
+
if (attrs[item]) {
|
|
789
|
+
str += ' ' + item + '="' + attrs[item] + '"'
|
|
790
|
+
}
|
|
791
|
+
}
|
|
792
|
+
if (this.options.pauseVideo) {
|
|
793
|
+
str += ' onplay="this.dispatchEvent(new CustomEvent(\'vplay\',{bubbles:!0}));for(var e=document.getElementsByTagName(\'video\'),t=0;t<e.length;t++)e[t]!=this&&e[t].pause()"'
|
|
794
|
+
}
|
|
795
|
+
str += '>'
|
|
796
|
+
for (let i = 0; i < node.src.length; i++) {
|
|
797
|
+
str += '<source src="' + node.src[i] + '">'
|
|
798
|
+
}
|
|
799
|
+
str += '</video>'
|
|
800
|
+
node.html = str
|
|
801
|
+
/* #endif */
|
|
802
|
+
} else if ((node.name === 'ul' || node.name === 'ol') && node.c) {
|
|
803
|
+
// 列表处理
|
|
804
|
+
const types = {
|
|
805
|
+
a: 'lower-alpha',
|
|
806
|
+
A: 'upper-alpha',
|
|
807
|
+
i: 'lower-roman',
|
|
808
|
+
I: 'upper-roman'
|
|
809
|
+
}
|
|
810
|
+
if (types[attrs.type]) {
|
|
811
|
+
attrs.style += ';list-style-type:' + types[attrs.type]
|
|
812
|
+
attrs.type = undefined
|
|
813
|
+
}
|
|
814
|
+
for (let i = children.length; i--;) {
|
|
815
|
+
if (children[i].name === 'li') {
|
|
816
|
+
children[i].c = 1
|
|
817
|
+
}
|
|
818
|
+
}
|
|
819
|
+
} else if (node.name === 'table') {
|
|
820
|
+
// 表格处理
|
|
821
|
+
// cellpadding、cellspacing、border 这几个常用表格属性需要通过转换实现
|
|
822
|
+
let padding = parseFloat(attrs.cellpadding)
|
|
823
|
+
let spacing = parseFloat(attrs.cellspacing)
|
|
824
|
+
const border = parseFloat(attrs.border)
|
|
825
|
+
const bordercolor = styleObj['border-color']
|
|
826
|
+
const borderstyle = styleObj['border-style']
|
|
827
|
+
if (node.c) {
|
|
828
|
+
// padding 和 spacing 默认 2
|
|
829
|
+
if (isNaN(padding)) {
|
|
830
|
+
padding = 2
|
|
831
|
+
}
|
|
832
|
+
if (isNaN(spacing)) {
|
|
833
|
+
spacing = 2
|
|
834
|
+
}
|
|
835
|
+
}
|
|
836
|
+
if (border) {
|
|
837
|
+
attrs.style += `;border:${border}px ${borderstyle || 'solid'} ${bordercolor || 'gray'}`
|
|
838
|
+
}
|
|
839
|
+
if (node.flag && node.c) {
|
|
840
|
+
// 有 colspan 或 rowspan 且含有链接的表格通过 grid 布局实现
|
|
841
|
+
styleObj.display = 'grid'
|
|
842
|
+
if (spacing) {
|
|
843
|
+
styleObj['grid-gap'] = spacing + 'px'
|
|
844
|
+
styleObj.padding = spacing + 'px'
|
|
845
|
+
} else if (border) {
|
|
846
|
+
// 无间隔的情况下避免边框重叠
|
|
847
|
+
attrs.style += ';border-left:0;border-top:0'
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
const width = [] // 表格的列宽
|
|
851
|
+
const trList = [] // tr 列表
|
|
852
|
+
const cells = [] // 保存新的单元格
|
|
853
|
+
const map = {}; // 被合并单元格占用的格子
|
|
854
|
+
|
|
855
|
+
(function traversal (nodes) {
|
|
856
|
+
for (let i = 0; i < nodes.length; i++) {
|
|
857
|
+
if (nodes[i].name === 'tr') {
|
|
858
|
+
trList.push(nodes[i])
|
|
859
|
+
} else {
|
|
860
|
+
traversal(nodes[i].children || [])
|
|
861
|
+
}
|
|
862
|
+
}
|
|
863
|
+
})(children)
|
|
864
|
+
|
|
865
|
+
for (let row = 1; row <= trList.length; row++) {
|
|
866
|
+
let col = 1
|
|
867
|
+
for (let j = 0; j < trList[row - 1].children.length; j++) {
|
|
868
|
+
const td = trList[row - 1].children[j]
|
|
869
|
+
if (td.name === 'td' || td.name === 'th') {
|
|
870
|
+
// 这个格子被上面的单元格占用,则列号++
|
|
871
|
+
while (map[row + '.' + col]) {
|
|
872
|
+
col++
|
|
873
|
+
}
|
|
874
|
+
let style = td.attrs.style || ''
|
|
875
|
+
let start = style.indexOf('width') ? style.indexOf(';width') : 0
|
|
876
|
+
// 提取出 td 的宽度
|
|
877
|
+
if (start !== -1) {
|
|
878
|
+
let end = style.indexOf(';', start + 6)
|
|
879
|
+
if (end === -1) {
|
|
880
|
+
end = style.length
|
|
881
|
+
}
|
|
882
|
+
if (!td.attrs.colspan) {
|
|
883
|
+
width[col] = style.substring(start ? start + 7 : 6, end)
|
|
884
|
+
}
|
|
885
|
+
style = style.substr(0, start) + style.substr(end)
|
|
886
|
+
}
|
|
887
|
+
// 设置竖直对齐
|
|
888
|
+
style += ';display:flex'
|
|
889
|
+
start = style.indexOf('vertical-align')
|
|
890
|
+
if (start !== -1) {
|
|
891
|
+
const val = style.substr(start + 15, 10)
|
|
892
|
+
if (val.includes('middle')) {
|
|
893
|
+
style += ';align-items:center'
|
|
894
|
+
} else if (val.includes('bottom')) {
|
|
895
|
+
style += ';align-items:flex-end'
|
|
896
|
+
}
|
|
897
|
+
} else {
|
|
898
|
+
style += ';align-items:center'
|
|
899
|
+
}
|
|
900
|
+
// 设置水平对齐
|
|
901
|
+
start = style.indexOf('text-align')
|
|
902
|
+
if (start !== -1) {
|
|
903
|
+
const val = style.substr(start + 11, 10)
|
|
904
|
+
if (val.includes('center')) {
|
|
905
|
+
style += ';justify-content: center'
|
|
906
|
+
} else if (val.includes('right')) {
|
|
907
|
+
style += ';justify-content: right'
|
|
908
|
+
}
|
|
909
|
+
}
|
|
910
|
+
style = (border ? `;border:${border}px ${borderstyle || 'solid'} ${bordercolor || 'gray'}` + (spacing ? '' : ';border-right:0;border-bottom:0') : '') + (padding ? `;padding:${padding}px` : '') + ';' + style
|
|
911
|
+
// 处理列合并
|
|
912
|
+
if (td.attrs.colspan) {
|
|
913
|
+
style += `;grid-column-start:${col};grid-column-end:${col + parseInt(td.attrs.colspan)}`
|
|
914
|
+
if (!td.attrs.rowspan) {
|
|
915
|
+
style += `;grid-row-start:${row};grid-row-end:${row + 1}`
|
|
916
|
+
}
|
|
917
|
+
col += parseInt(td.attrs.colspan) - 1
|
|
918
|
+
}
|
|
919
|
+
// 处理行合并
|
|
920
|
+
if (td.attrs.rowspan) {
|
|
921
|
+
style += `;grid-row-start:${row};grid-row-end:${row + parseInt(td.attrs.rowspan)}`
|
|
922
|
+
if (!td.attrs.colspan) {
|
|
923
|
+
style += `;grid-column-start:${col};grid-column-end:${col + 1}`
|
|
924
|
+
}
|
|
925
|
+
// 记录下方单元格被占用
|
|
926
|
+
for (let rowspan = 1; rowspan < td.attrs.rowspan; rowspan++) {
|
|
927
|
+
for (let colspan = 0; colspan < (td.attrs.colspan || 1); colspan++) {
|
|
928
|
+
map[(row + rowspan) + '.' + (col - colspan)] = 1
|
|
929
|
+
}
|
|
930
|
+
}
|
|
931
|
+
}
|
|
932
|
+
if (style) {
|
|
933
|
+
td.attrs.style = style
|
|
934
|
+
}
|
|
935
|
+
cells.push(td)
|
|
936
|
+
col++
|
|
937
|
+
}
|
|
938
|
+
}
|
|
939
|
+
if (row === 1) {
|
|
940
|
+
let temp = ''
|
|
941
|
+
for (let i = 1; i < col; i++) {
|
|
942
|
+
temp += (width[i] ? width[i] : 'auto') + ' '
|
|
943
|
+
}
|
|
944
|
+
styleObj['grid-template-columns'] = temp
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
node.children = cells
|
|
948
|
+
} else {
|
|
949
|
+
// 没有使用合并单元格的表格通过 table 布局实现
|
|
950
|
+
if (node.c) {
|
|
951
|
+
styleObj.display = 'table'
|
|
952
|
+
}
|
|
953
|
+
if (!isNaN(spacing)) {
|
|
954
|
+
styleObj['border-spacing'] = spacing + 'px'
|
|
955
|
+
}
|
|
956
|
+
if (border || padding) {
|
|
957
|
+
// 遍历
|
|
958
|
+
(function traversal (nodes) {
|
|
959
|
+
for (let i = 0; i < nodes.length; i++) {
|
|
960
|
+
const td = nodes[i]
|
|
961
|
+
if (td.name === 'th' || td.name === 'td') {
|
|
962
|
+
if (border) {
|
|
963
|
+
td.attrs.style = `border:${border}px ${borderstyle || 'solid'} ${bordercolor || 'gray'};${td.attrs.style || ''}`
|
|
964
|
+
}
|
|
965
|
+
if (padding) {
|
|
966
|
+
td.attrs.style = `padding:${padding}px;${td.attrs.style || ''}`
|
|
967
|
+
}
|
|
968
|
+
} else if (td.children) {
|
|
969
|
+
traversal(td.children)
|
|
970
|
+
}
|
|
971
|
+
}
|
|
972
|
+
})(children)
|
|
973
|
+
}
|
|
974
|
+
}
|
|
975
|
+
// 给表格添加一个单独的横向滚动层
|
|
976
|
+
if (this.options.scrollTable && !(attrs.style || '').includes('inline')) {
|
|
977
|
+
const table = Object.assign({}, node)
|
|
978
|
+
node.name = 'div'
|
|
979
|
+
node.attrs = {
|
|
980
|
+
style: 'overflow:auto'
|
|
981
|
+
}
|
|
982
|
+
node.children = [table]
|
|
983
|
+
attrs = table.attrs
|
|
984
|
+
}
|
|
985
|
+
} else if ((node.name === 'td' || node.name === 'th') && (attrs.colspan || attrs.rowspan)) {
|
|
986
|
+
for (let i = this.stack.length; i--;) {
|
|
987
|
+
if (this.stack[i].name === 'table') {
|
|
988
|
+
this.stack[i].flag = 1 // 指示含有合并单元格
|
|
989
|
+
break
|
|
990
|
+
}
|
|
991
|
+
}
|
|
992
|
+
} else if (node.name === 'ruby') {
|
|
993
|
+
// 转换 ruby
|
|
994
|
+
node.name = 'span'
|
|
995
|
+
for (let i = 0; i < children.length - 1; i++) {
|
|
996
|
+
if (children[i].type === 'text' && children[i + 1].name === 'rt') {
|
|
997
|
+
children[i] = {
|
|
998
|
+
name: 'div',
|
|
999
|
+
attrs: {
|
|
1000
|
+
style: 'display:inline-block;text-align:center'
|
|
1001
|
+
},
|
|
1002
|
+
children: [{
|
|
1003
|
+
name: 'div',
|
|
1004
|
+
attrs: {
|
|
1005
|
+
style: 'font-size:50%;' + (children[i + 1].attrs.style || '')
|
|
1006
|
+
},
|
|
1007
|
+
children: children[i + 1].children
|
|
1008
|
+
}, children[i]]
|
|
1009
|
+
}
|
|
1010
|
+
children.splice(i + 1, 1)
|
|
1011
|
+
}
|
|
1012
|
+
}
|
|
1013
|
+
} else if (node.c) {
|
|
1014
|
+
(function traversal (node) {
|
|
1015
|
+
node.c = 2
|
|
1016
|
+
for (let i = node.children.length; i--;) {
|
|
1017
|
+
const child = node.children[i]
|
|
1018
|
+
// #ifdef (MP-WEIXIN || MP-QQ || APP-PLUS || MP-360) && VUE3
|
|
1019
|
+
if (child.name && (config.inlineTags[child.name] || ((child.attrs.style || '').includes('inline') && child.children)) && !child.c) {
|
|
1020
|
+
traversal(child)
|
|
1021
|
+
}
|
|
1022
|
+
// #endif
|
|
1023
|
+
if (!child.c || child.name === 'table') {
|
|
1024
|
+
node.c = 1
|
|
1025
|
+
}
|
|
1026
|
+
}
|
|
1027
|
+
})(node)
|
|
1028
|
+
}
|
|
1029
|
+
|
|
1030
|
+
if ((styleObj.display || '').includes('flex') && !node.c) {
|
|
1031
|
+
for (let i = children.length; i--;) {
|
|
1032
|
+
const item = children[i]
|
|
1033
|
+
if (item.f) {
|
|
1034
|
+
item.attrs.style = (item.attrs.style || '') + item.f
|
|
1035
|
+
item.f = undefined
|
|
1036
|
+
}
|
|
1037
|
+
}
|
|
1038
|
+
}
|
|
1039
|
+
// flex 布局时部分样式需要提取到 rich-text 外层
|
|
1040
|
+
const flex = parent && ((parent.attrs.style || '').includes('flex') || (parent.attrs.style || '').includes('grid'))
|
|
1041
|
+
// #ifdef MP-WEIXIN
|
|
1042
|
+
// 检查基础库版本 virtualHost 是否可用
|
|
1043
|
+
&& !(node.c && wx.getNFCAdapter) // eslint-disable-line
|
|
1044
|
+
// #endif
|
|
1045
|
+
// #ifndef MP-WEIXIN || MP-QQ || MP-BAIDU || MP-TOUTIAO
|
|
1046
|
+
&& !node.c // eslint-disable-line
|
|
1047
|
+
// #endif
|
|
1048
|
+
if (flex) {
|
|
1049
|
+
node.f = ';max-width:100%'
|
|
1050
|
+
}
|
|
1051
|
+
|
|
1052
|
+
if (children.length >= 50 && node.c && !(styleObj.display || '').includes('flex')) {
|
|
1053
|
+
mergeNodes(children)
|
|
1054
|
+
}
|
|
1055
|
+
// #endif
|
|
1056
|
+
|
|
1057
|
+
for (const key in styleObj) {
|
|
1058
|
+
if (styleObj[key]) {
|
|
1059
|
+
const val = `;${key}:${styleObj[key].replace(' !important', '')}`
|
|
1060
|
+
/* #ifndef APP-PLUS-NVUE */
|
|
1061
|
+
if (flex && ((key.includes('flex') && key !== 'flex-direction') || key === 'align-self' || key.includes('grid') || styleObj[key][0] === '-' || (key.includes('width') && val.includes('%')))) {
|
|
1062
|
+
node.f += val
|
|
1063
|
+
if (key === 'width') {
|
|
1064
|
+
attrs.style += ';width:100%'
|
|
1065
|
+
}
|
|
1066
|
+
} else /* #endif */ {
|
|
1067
|
+
attrs.style += val
|
|
1068
|
+
}
|
|
1069
|
+
}
|
|
1070
|
+
}
|
|
1071
|
+
attrs.style = attrs.style.substr(1) || undefined
|
|
1072
|
+
// #ifdef (MP-WEIXIN || MP-QQ) && VUE3
|
|
1073
|
+
for (const key in attrs) {
|
|
1074
|
+
if (!attrs[key]) {
|
|
1075
|
+
delete attrs[key]
|
|
1076
|
+
}
|
|
1077
|
+
}
|
|
1078
|
+
// #endif
|
|
1079
|
+
}
|
|
1080
|
+
|
|
1081
|
+
/**
|
|
1082
|
+
* @description 解析到文本
|
|
1083
|
+
* @param {String} text 文本内容
|
|
1084
|
+
*/
|
|
1085
|
+
Parser.prototype.onText = function (text) {
|
|
1086
|
+
if (!this.pre) {
|
|
1087
|
+
// 合并空白符
|
|
1088
|
+
let trim = ''
|
|
1089
|
+
let flag
|
|
1090
|
+
for (let i = 0, len = text.length; i < len; i++) {
|
|
1091
|
+
if (!blankChar[text[i]]) {
|
|
1092
|
+
trim += text[i]
|
|
1093
|
+
} else {
|
|
1094
|
+
if (trim[trim.length - 1] !== ' ') {
|
|
1095
|
+
trim += ' '
|
|
1096
|
+
}
|
|
1097
|
+
if (text[i] === '\n' && !flag) {
|
|
1098
|
+
flag = true
|
|
1099
|
+
}
|
|
1100
|
+
}
|
|
1101
|
+
}
|
|
1102
|
+
// 去除含有换行符的空串
|
|
1103
|
+
if (trim === ' ') {
|
|
1104
|
+
if (flag) return
|
|
1105
|
+
// #ifdef VUE3
|
|
1106
|
+
else {
|
|
1107
|
+
const parent = this.stack[this.stack.length - 1]
|
|
1108
|
+
if (parent && parent.name[0] === 't') return
|
|
1109
|
+
}
|
|
1110
|
+
// #endif
|
|
1111
|
+
}
|
|
1112
|
+
text = trim
|
|
1113
|
+
}
|
|
1114
|
+
const node = Object.create(null)
|
|
1115
|
+
node.type = 'text'
|
|
1116
|
+
// #ifdef (MP-BAIDU || MP-ALIPAY || MP-TOUTIAO) && VUE3
|
|
1117
|
+
node.attrs = {}
|
|
1118
|
+
// #endif
|
|
1119
|
+
node.text = decodeEntity(text)
|
|
1120
|
+
if (this.hook(node)) {
|
|
1121
|
+
// #ifdef MP-WEIXIN
|
|
1122
|
+
if (this.options.selectable === 'force' && system.includes('iOS') && !uni.canIUse('rich-text.user-select')) {
|
|
1123
|
+
this.expose()
|
|
1124
|
+
}
|
|
1125
|
+
// #endif
|
|
1126
|
+
const siblings = this.stack.length ? this.stack[this.stack.length - 1].children : this.nodes
|
|
1127
|
+
siblings.push(node)
|
|
1128
|
+
}
|
|
1129
|
+
}
|
|
1130
|
+
|
|
1131
|
+
/**
|
|
1132
|
+
* @description html 词法分析器
|
|
1133
|
+
* @param {Object} handler 高层处理器
|
|
1134
|
+
*/
|
|
1135
|
+
function Lexer (handler) {
|
|
1136
|
+
this.handler = handler
|
|
1137
|
+
}
|
|
1138
|
+
|
|
1139
|
+
/**
|
|
1140
|
+
* @description 执行解析
|
|
1141
|
+
* @param {String} content 要解析的文本
|
|
1142
|
+
*/
|
|
1143
|
+
Lexer.prototype.parse = function (content) {
|
|
1144
|
+
this.content = content || ''
|
|
1145
|
+
this.i = 0 // 标记解析位置
|
|
1146
|
+
this.start = 0 // 标记一个单词的开始位置
|
|
1147
|
+
this.state = this.text // 当前状态
|
|
1148
|
+
for (let len = this.content.length; this.i !== -1 && this.i < len;) {
|
|
1149
|
+
this.state()
|
|
1150
|
+
}
|
|
1151
|
+
}
|
|
1152
|
+
|
|
1153
|
+
/**
|
|
1154
|
+
* @description 检查标签是否闭合
|
|
1155
|
+
* @param {String} method 如果闭合要进行的操作
|
|
1156
|
+
* @returns {Boolean} 是否闭合
|
|
1157
|
+
* @private
|
|
1158
|
+
*/
|
|
1159
|
+
Lexer.prototype.checkClose = function (method) {
|
|
1160
|
+
const selfClose = this.content[this.i] === '/'
|
|
1161
|
+
if (this.content[this.i] === '>' || (selfClose && this.content[this.i + 1] === '>')) {
|
|
1162
|
+
if (method) {
|
|
1163
|
+
this.handler[method](this.content.substring(this.start, this.i))
|
|
1164
|
+
}
|
|
1165
|
+
this.i += selfClose ? 2 : 1
|
|
1166
|
+
this.start = this.i
|
|
1167
|
+
this.handler.onOpenTag(selfClose)
|
|
1168
|
+
if (this.handler.tagName === 'script') {
|
|
1169
|
+
this.i = this.content.indexOf('</', this.i)
|
|
1170
|
+
if (this.i !== -1) {
|
|
1171
|
+
this.i += 2
|
|
1172
|
+
this.start = this.i
|
|
1173
|
+
}
|
|
1174
|
+
this.state = this.endTag
|
|
1175
|
+
} else {
|
|
1176
|
+
this.state = this.text
|
|
1177
|
+
}
|
|
1178
|
+
return true
|
|
1179
|
+
}
|
|
1180
|
+
return false
|
|
1181
|
+
}
|
|
1182
|
+
|
|
1183
|
+
/**
|
|
1184
|
+
* @description 文本状态
|
|
1185
|
+
* @private
|
|
1186
|
+
*/
|
|
1187
|
+
Lexer.prototype.text = function () {
|
|
1188
|
+
this.i = this.content.indexOf('<', this.i) // 查找最近的标签
|
|
1189
|
+
if (this.i === -1) {
|
|
1190
|
+
// 没有标签了
|
|
1191
|
+
if (this.start < this.content.length) {
|
|
1192
|
+
this.handler.onText(this.content.substring(this.start, this.content.length))
|
|
1193
|
+
}
|
|
1194
|
+
return
|
|
1195
|
+
}
|
|
1196
|
+
const c = this.content[this.i + 1]
|
|
1197
|
+
if ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z')) {
|
|
1198
|
+
// 标签开头
|
|
1199
|
+
if (this.start !== this.i) {
|
|
1200
|
+
this.handler.onText(this.content.substring(this.start, this.i))
|
|
1201
|
+
}
|
|
1202
|
+
this.start = ++this.i
|
|
1203
|
+
this.state = this.tagName
|
|
1204
|
+
} else if (c === '/' || c === '!' || c === '?') {
|
|
1205
|
+
if (this.start !== this.i) {
|
|
1206
|
+
this.handler.onText(this.content.substring(this.start, this.i))
|
|
1207
|
+
}
|
|
1208
|
+
const next = this.content[this.i + 2]
|
|
1209
|
+
if (c === '/' && ((next >= 'a' && next <= 'z') || (next >= 'A' && next <= 'Z'))) {
|
|
1210
|
+
// 标签结尾
|
|
1211
|
+
this.i += 2
|
|
1212
|
+
this.start = this.i
|
|
1213
|
+
this.state = this.endTag
|
|
1214
|
+
return
|
|
1215
|
+
}
|
|
1216
|
+
// 处理注释
|
|
1217
|
+
let end = '-->'
|
|
1218
|
+
if (c !== '!' || this.content[this.i + 2] !== '-' || this.content[this.i + 3] !== '-') {
|
|
1219
|
+
end = '>'
|
|
1220
|
+
}
|
|
1221
|
+
this.i = this.content.indexOf(end, this.i)
|
|
1222
|
+
if (this.i !== -1) {
|
|
1223
|
+
this.i += end.length
|
|
1224
|
+
this.start = this.i
|
|
1225
|
+
}
|
|
1226
|
+
} else {
|
|
1227
|
+
this.i++
|
|
1228
|
+
}
|
|
1229
|
+
}
|
|
1230
|
+
|
|
1231
|
+
/**
|
|
1232
|
+
* @description 标签名状态
|
|
1233
|
+
* @private
|
|
1234
|
+
*/
|
|
1235
|
+
Lexer.prototype.tagName = function () {
|
|
1236
|
+
if (blankChar[this.content[this.i]]) {
|
|
1237
|
+
// 解析到标签名
|
|
1238
|
+
this.handler.onTagName(this.content.substring(this.start, this.i))
|
|
1239
|
+
while (blankChar[this.content[++this.i]]);
|
|
1240
|
+
if (this.i < this.content.length && !this.checkClose()) {
|
|
1241
|
+
this.start = this.i
|
|
1242
|
+
this.state = this.attrName
|
|
1243
|
+
}
|
|
1244
|
+
} else if (!this.checkClose('onTagName')) {
|
|
1245
|
+
this.i++
|
|
1246
|
+
}
|
|
1247
|
+
}
|
|
1248
|
+
|
|
1249
|
+
/**
|
|
1250
|
+
* @description 属性名状态
|
|
1251
|
+
* @private
|
|
1252
|
+
*/
|
|
1253
|
+
Lexer.prototype.attrName = function () {
|
|
1254
|
+
let c = this.content[this.i]
|
|
1255
|
+
if (blankChar[c] || c === '=') {
|
|
1256
|
+
// 解析到属性名
|
|
1257
|
+
this.handler.onAttrName(this.content.substring(this.start, this.i))
|
|
1258
|
+
let needVal = c === '='
|
|
1259
|
+
const len = this.content.length
|
|
1260
|
+
while (++this.i < len) {
|
|
1261
|
+
c = this.content[this.i]
|
|
1262
|
+
if (!blankChar[c]) {
|
|
1263
|
+
if (this.checkClose()) return
|
|
1264
|
+
if (needVal) {
|
|
1265
|
+
// 等号后遇到第一个非空字符
|
|
1266
|
+
this.start = this.i
|
|
1267
|
+
this.state = this.attrVal
|
|
1268
|
+
return
|
|
1269
|
+
}
|
|
1270
|
+
if (this.content[this.i] === '=') {
|
|
1271
|
+
needVal = true
|
|
1272
|
+
} else {
|
|
1273
|
+
this.start = this.i
|
|
1274
|
+
this.state = this.attrName
|
|
1275
|
+
return
|
|
1276
|
+
}
|
|
1277
|
+
}
|
|
1278
|
+
}
|
|
1279
|
+
} else if (!this.checkClose('onAttrName')) {
|
|
1280
|
+
this.i++
|
|
1281
|
+
}
|
|
1282
|
+
}
|
|
1283
|
+
|
|
1284
|
+
/**
|
|
1285
|
+
* @description 属性值状态
|
|
1286
|
+
* @private
|
|
1287
|
+
*/
|
|
1288
|
+
Lexer.prototype.attrVal = function () {
|
|
1289
|
+
const c = this.content[this.i]
|
|
1290
|
+
const len = this.content.length
|
|
1291
|
+
if (c === '"' || c === "'") {
|
|
1292
|
+
// 有冒号的属性
|
|
1293
|
+
this.start = ++this.i
|
|
1294
|
+
this.i = this.content.indexOf(c, this.i)
|
|
1295
|
+
if (this.i === -1) return
|
|
1296
|
+
this.handler.onAttrVal(this.content.substring(this.start, this.i))
|
|
1297
|
+
} else {
|
|
1298
|
+
// 没有冒号的属性
|
|
1299
|
+
for (; this.i < len; this.i++) {
|
|
1300
|
+
if (blankChar[this.content[this.i]]) {
|
|
1301
|
+
this.handler.onAttrVal(this.content.substring(this.start, this.i))
|
|
1302
|
+
break
|
|
1303
|
+
} else if (this.checkClose('onAttrVal')) return
|
|
1304
|
+
}
|
|
1305
|
+
}
|
|
1306
|
+
while (blankChar[this.content[++this.i]]);
|
|
1307
|
+
if (this.i < len && !this.checkClose()) {
|
|
1308
|
+
this.start = this.i
|
|
1309
|
+
this.state = this.attrName
|
|
1310
|
+
}
|
|
1311
|
+
}
|
|
1312
|
+
|
|
1313
|
+
/**
|
|
1314
|
+
* @description 结束标签状态
|
|
1315
|
+
* @returns {String} 结束的标签名
|
|
1316
|
+
* @private
|
|
1317
|
+
*/
|
|
1318
|
+
Lexer.prototype.endTag = function () {
|
|
1319
|
+
const c = this.content[this.i]
|
|
1320
|
+
if (blankChar[c] || c === '>' || c === '/') {
|
|
1321
|
+
this.handler.onCloseTag(this.content.substring(this.start, this.i))
|
|
1322
|
+
if (c !== '>') {
|
|
1323
|
+
this.i = this.content.indexOf('>', this.i)
|
|
1324
|
+
if (this.i === -1) return
|
|
1325
|
+
}
|
|
1326
|
+
this.start = ++this.i
|
|
1327
|
+
this.state = this.text
|
|
1328
|
+
} else {
|
|
1329
|
+
this.i++
|
|
1330
|
+
}
|
|
1331
|
+
}
|
|
1332
|
+
|
|
1333
|
+
export default Parser
|