@10yun/cv-mobile-ui 0.5.18 → 0.5.19
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/package.json +1 -1
- 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-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-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/api-set-tabbar.nvue +147 -0
- package/uni-ui/lib/mpvue-citypicker/mpvueCityPicker.vue +144 -0
- package/uni-ui/lib/mpvue-citypicker/style.css +78 -0
- package/uni-ui/lib/mpvue-echarts/src/echarts.vue +112 -0
- package/uni-ui/lib/mpvue-echarts/src/style.css +6 -0
- package/uni-ui/lib/mpvue-picker/mpvuePicker.vue +3 -0
- package/uni-ui/lib/mpvue-picker/style.css +76 -0
- package/uni-ui/lib/mpvueGestureLock/index.vue +124 -0
- package/uni-ui/lib/mpvueGestureLock/style.css +40 -0
- package/uni-ui/lib/product.vue +20 -0
- package/uni-ui/lib/style.css +46 -0
- package/uni-ui/lib/tab-nvue/mediaList.vue +68 -0
- package/uni-ui/lib/tab-nvue/style.css +125 -0
- package/uni-ui/lib/uParse/src/components/style.css +2 -0
- package/uni-ui/lib/uParse/src/components/wxParseAudio.vue +1 -0
- package/uni-ui/lib/uParse/src/components/wxParseImg.vue +1 -0
- package/uni-ui/lib/uParse/src/components/wxParseTable.vue +3 -0
- package/uni-ui/lib/uParse/src/components/wxParseTemplate0.vue +1 -0
- package/uni-ui/lib/uParse/src/components/wxParseTemplate1.vue +1 -0
- package/uni-ui/lib/uParse/src/components/wxParseTemplate10.vue +1 -0
- package/uni-ui/lib/uParse/src/components/wxParseTemplate11.vue +1 -0
- package/uni-ui/lib/uParse/src/components/wxParseTemplate2.vue +1 -0
- package/uni-ui/lib/uParse/src/components/wxParseTemplate3.vue +1 -0
- package/uni-ui/lib/uParse/src/components/wxParseTemplate4.vue +1 -0
- package/uni-ui/lib/uParse/src/components/wxParseTemplate5.vue +1 -0
- package/uni-ui/lib/uParse/src/components/wxParseTemplate6.vue +1 -0
- package/uni-ui/lib/uParse/src/components/wxParseTemplate7.vue +1 -0
- package/uni-ui/lib/uParse/src/components/wxParseTemplate8.vue +1 -0
- package/uni-ui/lib/uParse/src/components/wxParseTemplate9.vue +1 -0
- package/uni-ui/lib/uParse/src/components/wxParseVideo.vue +1 -0
- package/uni-ui/lib/uParse/src/wxParse.vue +1 -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/api-set-tabbar.nvue +0 -156
- 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/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/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-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-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}/amap-wx/js/util.js +0 -0
- /package/{ui-uni → uni-ui/lib}/amap-wx/lib/amap-wx.js +0 -0
- /package/{ui-uni → uni-ui/lib}/marked/index.js +0 -0
- /package/{ui-uni → uni-ui/lib}/marked/lib/marked.js +0 -0
- /package/{ui-uni → uni-ui/lib}/mpvue-citypicker/city-data/area.js +0 -0
- /package/{ui-uni → uni-ui/lib}/mpvue-citypicker/city-data/city.js +0 -0
- /package/{ui-uni → uni-ui/lib}/mpvue-citypicker/city-data/province.js +0 -0
- /package/{ui-uni → uni-ui/lib}/mpvue-echarts/src/wx-canvas.js +0 -0
- /package/{ui-uni → uni-ui/lib}/mpvueGestureLock/gestureLock.js +0 -0
- /package/{ui-uni → uni-ui/lib}/u-charts/u-charts.js +0 -0
- /package/{ui-uni → uni-ui/lib}/uParse/src/editor.css +0 -0
- /package/{ui-uni → uni-ui/lib}/uParse/src/libs/html2json.js +0 -0
- /package/{ui-uni → uni-ui/lib}/uParse/src/libs/htmlparser.js +0 -0
- /package/{ui-uni → uni-ui/lib}/uParse/src/libs/wxDiscode.js +0 -0
- /package/{ui-uni → uni-ui/lib}/uParse/src/wxParse.css +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,1075 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @fileoverview html 解析器
|
|
5
|
+
*/
|
|
6
|
+
// 配置
|
|
7
|
+
const config = {
|
|
8
|
+
// 信任的标签(保持标签名不变)
|
|
9
|
+
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'),
|
|
10
|
+
// 块级标签(转为 div,其他的非信任标签转为 span)
|
|
11
|
+
blockTags: makeMap('address,article,aside,body,caption,center,cite,footer,header,html,nav,pre,section'),
|
|
12
|
+
// 要移除的标签
|
|
13
|
+
ignoreTags: makeMap('area,base,canvas,embed,frame,head,iframe,input,link,map,meta,param,rp,script,source,style,textarea,title,track,wbr'),
|
|
14
|
+
// 自闭合的标签
|
|
15
|
+
voidTags: makeMap('area,base,br,col,circle,ellipse,embed,frame,hr,img,input,line,link,meta,param,path,polygon,rect,source,track,use,wbr'),
|
|
16
|
+
// html 实体
|
|
17
|
+
entities: {
|
|
18
|
+
lt: '<',
|
|
19
|
+
gt: '>',
|
|
20
|
+
quot: '"',
|
|
21
|
+
apos: "'",
|
|
22
|
+
ensp: '\u2002',
|
|
23
|
+
emsp: '\u2003',
|
|
24
|
+
nbsp: '\xA0',
|
|
25
|
+
semi: ';',
|
|
26
|
+
ndash: '–',
|
|
27
|
+
mdash: '—',
|
|
28
|
+
middot: '·',
|
|
29
|
+
lsquo: '‘',
|
|
30
|
+
rsquo: '’',
|
|
31
|
+
ldquo: '“',
|
|
32
|
+
rdquo: '”',
|
|
33
|
+
bull: '•',
|
|
34
|
+
hellip: '…'
|
|
35
|
+
},
|
|
36
|
+
// 默认的标签样式
|
|
37
|
+
tagStyle: {
|
|
38
|
+
// #ifndef APP-PLUS-NVUE
|
|
39
|
+
address: 'font-style:italic',
|
|
40
|
+
big: 'display:inline;font-size:1.2em',
|
|
41
|
+
caption: 'display:table-caption;text-align:center',
|
|
42
|
+
center: 'text-align:center',
|
|
43
|
+
cite: 'font-style:italic',
|
|
44
|
+
dd: 'margin-left:40px',
|
|
45
|
+
mark: 'background-color:yellow',
|
|
46
|
+
pre: 'font-family:monospace;white-space:pre',
|
|
47
|
+
s: 'text-decoration:line-through',
|
|
48
|
+
small: 'display:inline;font-size:0.8em',
|
|
49
|
+
u: 'text-decoration:underline' // #endif
|
|
50
|
+
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
const { windowWidth } = uni.getSystemInfoSync()
|
|
54
|
+
const blankChar = makeMap(' ,\r,\n,\t,\f')
|
|
55
|
+
let idIndex = 0 // #ifdef H5 || APP-PLUS
|
|
56
|
+
|
|
57
|
+
config.ignoreTags.iframe = void 0
|
|
58
|
+
config.trustTags.iframe = true
|
|
59
|
+
config.ignoreTags.embed = void 0
|
|
60
|
+
config.trustTags.embed = true // #endif
|
|
61
|
+
// #ifdef APP-PLUS-NVUE
|
|
62
|
+
|
|
63
|
+
config.ignoreTags.source = void 0
|
|
64
|
+
config.ignoreTags.style = void 0 // #endif
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* @description 创建 map
|
|
68
|
+
* @param {String} str 逗号分隔
|
|
69
|
+
*/
|
|
70
|
+
|
|
71
|
+
function makeMap(str) {
|
|
72
|
+
const map = Object.create(null)
|
|
73
|
+
const list = str.split(',')
|
|
74
|
+
|
|
75
|
+
for (let i = list.length; i--;) {
|
|
76
|
+
map[list[i]] = true
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
return map
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* @description 解码 html 实体
|
|
83
|
+
* @param {String} str 要解码的字符串
|
|
84
|
+
* @param {Boolean} amp 要不要解码 &
|
|
85
|
+
* @returns {String} 解码后的字符串
|
|
86
|
+
*/
|
|
87
|
+
|
|
88
|
+
function decodeEntity(str, amp) {
|
|
89
|
+
let i = str.indexOf('&')
|
|
90
|
+
|
|
91
|
+
while (i != -1) {
|
|
92
|
+
const j = str.indexOf(';', i + 3)
|
|
93
|
+
let code = void 0
|
|
94
|
+
if (j == -1) break
|
|
95
|
+
|
|
96
|
+
if (str[i + 1] == '#') {
|
|
97
|
+
// { 形式的实体
|
|
98
|
+
code = parseInt((str[i + 2] == 'x' ? '0' : '') + str.substring(i + 2, j))
|
|
99
|
+
if (!isNaN(code)) str = str.substr(0, i) + String.fromCharCode(code) + str.substr(j + 1)
|
|
100
|
+
} else {
|
|
101
|
+
// 形式的实体
|
|
102
|
+
code = str.substring(i + 1, j)
|
|
103
|
+
if (config.entities[code] || code == 'amp' && amp) str = str.substr(0, i) + (config.entities[code] || '&') + str.substr(j + 1)
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
i = str.indexOf('&', i + 1)
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
return str
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* @description html 解析器
|
|
113
|
+
* @param {Object} vm 组件实例
|
|
114
|
+
*/
|
|
115
|
+
|
|
116
|
+
function parser(vm) {
|
|
117
|
+
this.options = vm || {}
|
|
118
|
+
this.tagStyle = Object.assign(config.tagStyle, this.options.tagStyle)
|
|
119
|
+
this.imgList = vm.imgList || []
|
|
120
|
+
this.plugins = vm.plugins || []
|
|
121
|
+
this.attrs = Object.create(null)
|
|
122
|
+
this.stack = []
|
|
123
|
+
this.nodes = []
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* @description 执行解析
|
|
127
|
+
* @param {String} content 要解析的文本
|
|
128
|
+
*/
|
|
129
|
+
|
|
130
|
+
parser.prototype.parse = function (content) {
|
|
131
|
+
// 插件处理
|
|
132
|
+
for (let i = this.plugins.length; i--;) {
|
|
133
|
+
if (this.plugins[i].onUpdate) content = this.plugins[i].onUpdate(content, config) || content
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
new lexer(this).parse(content) // 出栈未闭合的标签
|
|
137
|
+
|
|
138
|
+
while (this.stack.length) {
|
|
139
|
+
this.popNode()
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
return this.nodes
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* @description 将标签暴露出来(不被 rich-text 包含)
|
|
146
|
+
*/
|
|
147
|
+
|
|
148
|
+
parser.prototype.expose = function () {
|
|
149
|
+
// #ifndef APP-PLUS-NVUE
|
|
150
|
+
for (let i = this.stack.length; i--;) {
|
|
151
|
+
const item = this.stack[i]
|
|
152
|
+
if (item.name == 'a' || item.c) return
|
|
153
|
+
item.c = 1
|
|
154
|
+
} // #endif
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* @description 处理插件
|
|
158
|
+
* @param {Object} node 要处理的标签
|
|
159
|
+
* @returns {Boolean} 是否要移除此标签
|
|
160
|
+
*/
|
|
161
|
+
|
|
162
|
+
parser.prototype.hook = function (node) {
|
|
163
|
+
for (let i = this.plugins.length; i--;) {
|
|
164
|
+
if (this.plugins[i].onParse && this.plugins[i].onParse(node, this) == false) return false
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
return true
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* @description 将链接拼接上主域名
|
|
171
|
+
* @param {String} url 需要拼接的链接
|
|
172
|
+
* @returns {String} 拼接后的链接
|
|
173
|
+
*/
|
|
174
|
+
|
|
175
|
+
parser.prototype.getUrl = function (url) {
|
|
176
|
+
const { domain } = this.options
|
|
177
|
+
|
|
178
|
+
if (url[0] == '/') {
|
|
179
|
+
// // 开头的补充协议名
|
|
180
|
+
if (url[1] == '/') url = `${domain ? domain.split('://')[0] : 'http'}:${url}` // 否则补充整个域名
|
|
181
|
+
else if (domain) url = domain + url
|
|
182
|
+
} else if (domain && !url.includes('data:') && !url.includes('://')) url = `${domain}/${url}`
|
|
183
|
+
|
|
184
|
+
return url
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* @description 解析样式表
|
|
188
|
+
* @param {Object} node 标签
|
|
189
|
+
* @returns {Object}
|
|
190
|
+
*/
|
|
191
|
+
|
|
192
|
+
parser.prototype.parseStyle = function (node) {
|
|
193
|
+
const { attrs } = node
|
|
194
|
+
const list = (this.tagStyle[node.name] || '').split(';').concat((attrs.style || '').split(';'))
|
|
195
|
+
const styleObj = {}
|
|
196
|
+
let tmp = ''
|
|
197
|
+
|
|
198
|
+
if (attrs.id) {
|
|
199
|
+
// 暴露锚点
|
|
200
|
+
if (this.options.useAnchor) this.expose(); else if (node.name != 'img' && node.name != 'a' && node.name != 'video' && node.name != 'audio') attrs.id = void 0
|
|
201
|
+
} // 转换 width 和 height 属性
|
|
202
|
+
|
|
203
|
+
if (attrs.width) {
|
|
204
|
+
styleObj.width = parseFloat(attrs.width) + (attrs.width.includes('%') ? '%' : 'px')
|
|
205
|
+
attrs.width = void 0
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
if (attrs.height) {
|
|
209
|
+
styleObj.height = parseFloat(attrs.height) + (attrs.height.includes('%') ? '%' : 'px')
|
|
210
|
+
attrs.height = void 0
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
for (let i = 0, len = list.length; i < len; i++) {
|
|
214
|
+
const info = list[i].split(':')
|
|
215
|
+
if (info.length < 2) continue
|
|
216
|
+
const key = info.shift().trim().toLowerCase()
|
|
217
|
+
let value = info.join(':').trim() // 兼容性的 css 不压缩
|
|
218
|
+
|
|
219
|
+
if (value[0] == '-' && value.lastIndexOf('-') > 0 || value.includes('safe')) tmp += ';'.concat(key, ':').concat(value) // 重复的样式进行覆盖
|
|
220
|
+
else if (!styleObj[key] || value.includes('import') || !styleObj[key].includes('import')) {
|
|
221
|
+
// 填充链接
|
|
222
|
+
if (value.includes('url')) {
|
|
223
|
+
let j = value.indexOf('(') + 1
|
|
224
|
+
|
|
225
|
+
if (j) {
|
|
226
|
+
while (value[j] == '"' || value[j] == "'" || blankChar[value[j]]) {
|
|
227
|
+
j++
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
value = value.substr(0, j) + this.getUrl(value.substr(j))
|
|
231
|
+
}
|
|
232
|
+
} // 转换 rpx(rich-text 内部不支持 rpx)
|
|
233
|
+
else if (value.includes('rpx')) {
|
|
234
|
+
value = value.replace(/[0-9.]+\s*rpx/g, ($) => `${parseFloat($) * windowWidth / 750}px`)
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
styleObj[key] = value
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
node.attrs.style = tmp
|
|
242
|
+
return styleObj
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
245
|
+
* @description 解析到标签名
|
|
246
|
+
* @param {String} name 标签名
|
|
247
|
+
* @private
|
|
248
|
+
*/
|
|
249
|
+
|
|
250
|
+
parser.prototype.onTagName = function (name) {
|
|
251
|
+
this.tagName = this.xml ? name : name.toLowerCase()
|
|
252
|
+
if (this.tagName == 'svg') this.xml = true // svg 标签内大小写敏感
|
|
253
|
+
}
|
|
254
|
+
/**
|
|
255
|
+
* @description 解析到属性名
|
|
256
|
+
* @param {String} name 属性名
|
|
257
|
+
* @private
|
|
258
|
+
*/
|
|
259
|
+
|
|
260
|
+
parser.prototype.onAttrName = function (name) {
|
|
261
|
+
name = this.xml ? name : name.toLowerCase()
|
|
262
|
+
|
|
263
|
+
if (name.substr(0, 5) == 'data-') {
|
|
264
|
+
// data-src 自动转为 src
|
|
265
|
+
if (name == 'data-src' && !this.attrs.src) this.attrName = 'src' // a 和 img 标签保留 data- 的属性,可以在 imgtap 和 linktap 事件中使用
|
|
266
|
+
else if (this.tagName == 'img' || this.tagName == 'a') this.attrName = name // 剩余的移除以减小大小
|
|
267
|
+
else this.attrName = void 0
|
|
268
|
+
} else {
|
|
269
|
+
this.attrName = name
|
|
270
|
+
this.attrs[name] = 'T' // boolean 型属性缺省设置
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
/**
|
|
274
|
+
* @description 解析到属性值
|
|
275
|
+
* @param {String} val 属性值
|
|
276
|
+
* @private
|
|
277
|
+
*/
|
|
278
|
+
|
|
279
|
+
parser.prototype.onAttrVal = function (val) {
|
|
280
|
+
const name = this.attrName || '' // 部分属性进行实体解码
|
|
281
|
+
|
|
282
|
+
if (name == 'style' || name == 'href') this.attrs[name] = decodeEntity(val, true) // 拼接主域名
|
|
283
|
+
else if (name.includes('src')) this.attrs[name] = this.getUrl(decodeEntity(val, true)); else if (name) this.attrs[name] = val
|
|
284
|
+
}
|
|
285
|
+
/**
|
|
286
|
+
* @description 解析到标签开始
|
|
287
|
+
* @param {Boolean} selfClose 是否有自闭合标识 />
|
|
288
|
+
* @private
|
|
289
|
+
*/
|
|
290
|
+
|
|
291
|
+
parser.prototype.onOpenTag = function (selfClose) {
|
|
292
|
+
// 拼装 node
|
|
293
|
+
const node = Object.create(null)
|
|
294
|
+
node.name = this.tagName
|
|
295
|
+
node.attrs = this.attrs
|
|
296
|
+
this.attrs = Object.create(null)
|
|
297
|
+
const { attrs } = node
|
|
298
|
+
const parent = this.stack[this.stack.length - 1]
|
|
299
|
+
const siblings = parent ? parent.children : this.nodes
|
|
300
|
+
const close = this.xml ? selfClose : config.voidTags[node.name] // 转换 embed 标签
|
|
301
|
+
|
|
302
|
+
if (node.name == 'embed') {
|
|
303
|
+
// #ifndef H5 || APP-PLUS
|
|
304
|
+
const src = attrs.src || '' // 按照后缀名和 type 将 embed 转为 video 或 audio
|
|
305
|
+
|
|
306
|
+
if (src.includes('.mp4') || src.includes('.3gp') || src.includes('.m3u8') || (attrs.type || '').includes('video')) node.name = 'video'; else if (src.includes('.mp3') || src.includes('.wav') || src.includes('.aac') || src.includes('.m4a') || (attrs.type || '').includes('audio')) node.name = 'audio'
|
|
307
|
+
if (attrs.autostart) attrs.autoplay = 'T'
|
|
308
|
+
attrs.controls = 'T' // #endif
|
|
309
|
+
// #ifdef H5 || APP-PLUS
|
|
310
|
+
|
|
311
|
+
this.expose() // #endif
|
|
312
|
+
} // #ifndef APP-PLUS-NVUE
|
|
313
|
+
// 处理音视频
|
|
314
|
+
|
|
315
|
+
if (node.name == 'video' || node.name == 'audio') {
|
|
316
|
+
// 设置 id 以便获取 context
|
|
317
|
+
if (node.name == 'video' && !attrs.id) attrs.id = `v${idIndex++}` // 没有设置 controls 也没有设置 autoplay 的自动设置 controls
|
|
318
|
+
|
|
319
|
+
if (!attrs.controls && !attrs.autoplay) attrs.controls = 'T' // 用数组存储所有可用的 source
|
|
320
|
+
|
|
321
|
+
node.src = []
|
|
322
|
+
|
|
323
|
+
if (attrs.src) {
|
|
324
|
+
node.src.push(attrs.src)
|
|
325
|
+
attrs.src = void 0
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
this.expose()
|
|
329
|
+
} // #endif
|
|
330
|
+
// 处理自闭合标签
|
|
331
|
+
|
|
332
|
+
if (close) {
|
|
333
|
+
if (!this.hook(node) || config.ignoreTags[node.name]) {
|
|
334
|
+
// 通过 base 标签设置主域名
|
|
335
|
+
if (node.name == 'base' && !this.options.domain) this.options.domain = attrs.href // #ifndef APP-PLUS-NVUE
|
|
336
|
+
// 设置 source 标签(仅父节点为 video 或 audio 时有效)
|
|
337
|
+
else if (node.name == 'source' && parent && (parent.name == 'video' || parent.name == 'audio') && attrs.src) parent.src.push(attrs.src) // #endif
|
|
338
|
+
|
|
339
|
+
return
|
|
340
|
+
} // 解析 style
|
|
341
|
+
|
|
342
|
+
const styleObj = this.parseStyle(node) // 处理图片
|
|
343
|
+
|
|
344
|
+
if (node.name == 'img') {
|
|
345
|
+
if (attrs.src) {
|
|
346
|
+
// 标记 webp
|
|
347
|
+
if (attrs.src.includes('webp')) node.webp = 'T' // data url 图片如果没有设置 original-src 默认为不可预览的小图片
|
|
348
|
+
|
|
349
|
+
if (attrs.src.includes('data:') && !attrs['original-src']) attrs.ignore = 'T'
|
|
350
|
+
|
|
351
|
+
if (!attrs.ignore || node.webp || attrs.src.includes('cloud://')) {
|
|
352
|
+
for (let i = this.stack.length; i--;) {
|
|
353
|
+
const item = this.stack[i]
|
|
354
|
+
|
|
355
|
+
if (item.name == 'a') {
|
|
356
|
+
node.a = item.attrs
|
|
357
|
+
break
|
|
358
|
+
} // #ifndef H5 || APP-PLUS
|
|
359
|
+
|
|
360
|
+
const style = item.attrs.style || ''
|
|
361
|
+
|
|
362
|
+
if (style.includes('flex:') && !style.includes('flex:0') && !style.includes('flex: 0') && (!styleObj.width || !styleObj.width.includes('%'))) {
|
|
363
|
+
styleObj.width = '100% !important'
|
|
364
|
+
styleObj.height = ''
|
|
365
|
+
|
|
366
|
+
for (let j = i + 1; j < this.stack.length; j++) {
|
|
367
|
+
this.stack[j].attrs.style = (this.stack[j].attrs.style || '').replace('inline-', '')
|
|
368
|
+
}
|
|
369
|
+
} else if (style.includes('flex') && styleObj.width == '100%') {
|
|
370
|
+
for (let _j = i + 1; _j < this.stack.length; _j++) {
|
|
371
|
+
const _style = this.stack[_j].attrs.style || ''
|
|
372
|
+
|
|
373
|
+
if (!_style.includes(';width') && !_style.includes(' width') && _style.indexOf('width') != 0) {
|
|
374
|
+
styleObj.width = ''
|
|
375
|
+
break
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
} else if (style.includes('inline-block')) {
|
|
379
|
+
if (styleObj.width && styleObj.width[styleObj.width.length - 1] == '%') {
|
|
380
|
+
item.attrs.style += `;max-width:${styleObj.width}`
|
|
381
|
+
styleObj.width = ''
|
|
382
|
+
} else item.attrs.style += ';max-width:100%'
|
|
383
|
+
} // #endif
|
|
384
|
+
|
|
385
|
+
item.c = 1
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
attrs.i = this.imgList.length.toString()
|
|
389
|
+
|
|
390
|
+
let _src = attrs['original-src'] || attrs.src // #ifndef H5 || MP-ALIPAY || APP-PLUS || MP-360
|
|
391
|
+
|
|
392
|
+
if (this.imgList.includes(_src)) {
|
|
393
|
+
// 如果有重复的链接则对域名进行随机大小写变换避免预览时错位
|
|
394
|
+
let _i = _src.indexOf('://')
|
|
395
|
+
|
|
396
|
+
if (_i != -1) {
|
|
397
|
+
_i += 3
|
|
398
|
+
|
|
399
|
+
let newSrc = _src.substr(0, _i)
|
|
400
|
+
|
|
401
|
+
for (; _i < _src.length; _i++) {
|
|
402
|
+
if (_src[_i] == '/') break
|
|
403
|
+
newSrc += Math.random() > 0.5 ? _src[_i].toUpperCase() : _src[_i]
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
newSrc += _src.substr(_i)
|
|
407
|
+
_src = newSrc
|
|
408
|
+
}
|
|
409
|
+
} // #endif
|
|
410
|
+
|
|
411
|
+
this.imgList.push(_src) // #ifdef H5 || APP-PLUS
|
|
412
|
+
|
|
413
|
+
if (this.options.lazyLoad) {
|
|
414
|
+
attrs['data-src'] = attrs.src
|
|
415
|
+
attrs.src = void 0
|
|
416
|
+
} // #endif
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
if (styleObj.display == 'inline') styleObj.display = '' // #ifndef APP-PLUS-NVUE
|
|
421
|
+
|
|
422
|
+
if (attrs.ignore) {
|
|
423
|
+
styleObj['max-width'] = styleObj['max-width'] || '100%'
|
|
424
|
+
attrs.style += ';-webkit-touch-callout:none'
|
|
425
|
+
} // #endif
|
|
426
|
+
// 设置的宽度超出屏幕,为避免变形,高度转为自动
|
|
427
|
+
|
|
428
|
+
if (parseInt(styleObj.width) > windowWidth) styleObj.height = void 0 // 记录是否设置了宽高
|
|
429
|
+
|
|
430
|
+
if (styleObj.width) {
|
|
431
|
+
if (styleObj.width.includes('auto')) styleObj.width = ''; else {
|
|
432
|
+
node.w = 'T'
|
|
433
|
+
if (styleObj.height && !styleObj.height.includes('auto')) node.h = 'T'
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
} else if (node.name == 'svg') {
|
|
437
|
+
siblings.push(node)
|
|
438
|
+
this.stack.push(node)
|
|
439
|
+
this.popNode()
|
|
440
|
+
return
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
for (const key in styleObj) {
|
|
444
|
+
if (styleObj[key]) attrs.style += ';'.concat(key, ':').concat(styleObj[key].replace(' !important', ''))
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
attrs.style = attrs.style.substr(1) || void 0
|
|
448
|
+
} else {
|
|
449
|
+
if (node.name == 'pre' || (attrs.style || '').includes('white-space') && attrs.style.includes('pre')) this.pre = node.pre = true
|
|
450
|
+
node.children = []
|
|
451
|
+
this.stack.push(node)
|
|
452
|
+
} // 加入节点树
|
|
453
|
+
|
|
454
|
+
siblings.push(node)
|
|
455
|
+
}
|
|
456
|
+
/**
|
|
457
|
+
* @description 解析到标签结束
|
|
458
|
+
* @param {String} name 标签名
|
|
459
|
+
* @private
|
|
460
|
+
*/
|
|
461
|
+
|
|
462
|
+
parser.prototype.onCloseTag = function (name) {
|
|
463
|
+
// 依次出栈到匹配为止
|
|
464
|
+
name = this.xml ? name : name.toLowerCase()
|
|
465
|
+
let i
|
|
466
|
+
|
|
467
|
+
for (i = this.stack.length; i--;) {
|
|
468
|
+
if (this.stack[i].name == name) break
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
if (i != -1) {
|
|
472
|
+
while (this.stack.length > i) {
|
|
473
|
+
this.popNode()
|
|
474
|
+
}
|
|
475
|
+
} else if (name == 'p' || name == 'br') {
|
|
476
|
+
const siblings = this.stack.length ? this.stack[this.stack.length - 1].children : this.nodes
|
|
477
|
+
siblings.push({
|
|
478
|
+
name,
|
|
479
|
+
attrs: {}
|
|
480
|
+
})
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
/**
|
|
484
|
+
* @description 处理标签出栈
|
|
485
|
+
* @private
|
|
486
|
+
*/
|
|
487
|
+
|
|
488
|
+
parser.prototype.popNode = function () {
|
|
489
|
+
const node = this.stack.pop()
|
|
490
|
+
let { attrs } = node
|
|
491
|
+
const { children } = node
|
|
492
|
+
const parent = this.stack[this.stack.length - 1]
|
|
493
|
+
const siblings = parent ? parent.children : this.nodes
|
|
494
|
+
|
|
495
|
+
if (!this.hook(node) || config.ignoreTags[node.name]) {
|
|
496
|
+
// 获取标题
|
|
497
|
+
if (node.name == 'title' && children.length && children[0].type == 'text' && this.options.setTitle) {
|
|
498
|
+
uni.setNavigationBarTitle({
|
|
499
|
+
title: children[0].text
|
|
500
|
+
})
|
|
501
|
+
}
|
|
502
|
+
siblings.pop()
|
|
503
|
+
return
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
if (node.pre) {
|
|
507
|
+
// 是否合并空白符标识
|
|
508
|
+
node.pre = this.pre = void 0
|
|
509
|
+
|
|
510
|
+
for (let i = this.stack.length; i--;) {
|
|
511
|
+
if (this.stack[i].pre) this.pre = true
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
const styleObj = {} // 转换 svg
|
|
516
|
+
|
|
517
|
+
if (node.name == 'svg') {
|
|
518
|
+
// #ifndef APP-PLUS-NVUE
|
|
519
|
+
let src = ''
|
|
520
|
+
const { style } = attrs
|
|
521
|
+
attrs.style = ''
|
|
522
|
+
attrs.xmlns = 'http://www.w3.org/2000/svg';
|
|
523
|
+
|
|
524
|
+
(function traversal(node) {
|
|
525
|
+
src += `<${node.name}`
|
|
526
|
+
|
|
527
|
+
for (let item in node.attrs) {
|
|
528
|
+
const val = node.attrs[item]
|
|
529
|
+
|
|
530
|
+
if (val) {
|
|
531
|
+
if (item == 'viewbox') item = 'viewBox'
|
|
532
|
+
src += ' '.concat(item, '="').concat(val, '"')
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
if (!node.children) src += '/>'; else {
|
|
537
|
+
src += '>'
|
|
538
|
+
|
|
539
|
+
for (let _i2 = 0; _i2 < node.children.length; _i2++) {
|
|
540
|
+
traversal(node.children[_i2])
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
src += `</${node.name}>`
|
|
544
|
+
}
|
|
545
|
+
}(node))
|
|
546
|
+
|
|
547
|
+
node.name = 'img'
|
|
548
|
+
node.attrs = {
|
|
549
|
+
src: `data:image/svg+xml;utf8,${src.replace(/#/g, '%23')}`,
|
|
550
|
+
style,
|
|
551
|
+
ignore: 'T'
|
|
552
|
+
}
|
|
553
|
+
node.children = void 0 // #endif
|
|
554
|
+
|
|
555
|
+
this.xml = false
|
|
556
|
+
return
|
|
557
|
+
} // #ifndef APP-PLUS-NVUE
|
|
558
|
+
// 转换 align 属性
|
|
559
|
+
|
|
560
|
+
if (attrs.align) {
|
|
561
|
+
if (node.name == 'table') {
|
|
562
|
+
if (attrs.align == 'center') styleObj['margin-inline-start'] = styleObj['margin-inline-end'] = 'auto'; else styleObj.float = attrs.align
|
|
563
|
+
} else styleObj['text-align'] = attrs.align
|
|
564
|
+
|
|
565
|
+
attrs.align = void 0
|
|
566
|
+
} // 转换 font 标签的属性
|
|
567
|
+
|
|
568
|
+
if (node.name == 'font') {
|
|
569
|
+
if (attrs.color) {
|
|
570
|
+
styleObj.color = attrs.color
|
|
571
|
+
attrs.color = void 0
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
if (attrs.face) {
|
|
575
|
+
styleObj['font-family'] = attrs.face
|
|
576
|
+
attrs.face = void 0
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
if (attrs.size) {
|
|
580
|
+
let size = parseInt(attrs.size)
|
|
581
|
+
|
|
582
|
+
if (!isNaN(size)) {
|
|
583
|
+
if (size < 1) size = 1; else if (size > 7) size = 7
|
|
584
|
+
styleObj['font-size'] = ['xx-small', 'x-small', 'small', 'medium', 'large', 'x-large', 'xx-large'][size - 1]
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
attrs.size = void 0
|
|
588
|
+
}
|
|
589
|
+
} // #endif
|
|
590
|
+
// 一些编辑器的自带 class
|
|
591
|
+
|
|
592
|
+
if ((attrs.class || '').includes('align-center')) styleObj['text-align'] = 'center'
|
|
593
|
+
Object.assign(styleObj, this.parseStyle(node))
|
|
594
|
+
|
|
595
|
+
if (parseInt(styleObj.width) > windowWidth) {
|
|
596
|
+
styleObj['max-width'] = '100%'
|
|
597
|
+
styleObj['box-sizing'] = 'border-box'
|
|
598
|
+
} // #ifndef APP-PLUS-NVUE
|
|
599
|
+
|
|
600
|
+
if (config.blockTags[node.name]) node.name = 'div' // 未知标签转为 span,避免无法显示
|
|
601
|
+
else if (!config.trustTags[node.name] && !this.xml) node.name = 'span'
|
|
602
|
+
if (node.name == 'a' || node.name == 'ad' // #ifdef H5 || APP-PLUS
|
|
603
|
+
|| node.name == 'iframe' // #endif
|
|
604
|
+
) this.expose() // #ifdef APP-PLUS
|
|
605
|
+
else if (node.name == 'video') {
|
|
606
|
+
let str = '<video style="width:100%;height:100%"' // 空白图占位
|
|
607
|
+
|
|
608
|
+
if (!attrs.poster && !attrs.autoplay) attrs.poster = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'/>"
|
|
609
|
+
|
|
610
|
+
for (const item in attrs) {
|
|
611
|
+
if (attrs[item]) str += ` ${item}="${attrs[item]}"`
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
if (this.options.pauseVideo) str += ' onplay="for(var e=document.getElementsByTagName(\'video\'),t=0;t<e.length;t++)e[t]!=this&&e[t].pause()"'
|
|
615
|
+
str += '>'
|
|
616
|
+
|
|
617
|
+
for (let _i3 = 0; _i3 < node.src.length; _i3++) {
|
|
618
|
+
str += `<source src="${node.src[_i3]}">`
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
str += '</video>'
|
|
622
|
+
node.html = str
|
|
623
|
+
} // #endif
|
|
624
|
+
// 列表处理
|
|
625
|
+
else if ((node.name == 'ul' || node.name == 'ol') && node.c) {
|
|
626
|
+
const types = {
|
|
627
|
+
a: 'lower-alpha',
|
|
628
|
+
A: 'upper-alpha',
|
|
629
|
+
i: 'lower-roman',
|
|
630
|
+
I: 'upper-roman'
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
if (types[attrs.type]) {
|
|
634
|
+
attrs.style += `;list-style-type:${types[attrs.type]}`
|
|
635
|
+
attrs.type = void 0
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
for (let _i4 = children.length; _i4--;) {
|
|
639
|
+
if (children[_i4].name == 'li') children[_i4].c = 1
|
|
640
|
+
}
|
|
641
|
+
} // 表格处理
|
|
642
|
+
else if (node.name == 'table') {
|
|
643
|
+
// cellpadding、cellspacing、border 这几个常用表格属性需要通过转换实现
|
|
644
|
+
let padding = parseFloat(attrs.cellpadding)
|
|
645
|
+
let spacing = parseFloat(attrs.cellspacing)
|
|
646
|
+
const border = parseFloat(attrs.border)
|
|
647
|
+
|
|
648
|
+
if (node.c) {
|
|
649
|
+
// padding 和 spacing 默认 2
|
|
650
|
+
if (isNaN(padding)) padding = 2
|
|
651
|
+
if (isNaN(spacing)) spacing = 2
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
if (border) attrs.style += `;border:${border}px solid gray`
|
|
655
|
+
|
|
656
|
+
if (node.flag && node.c) {
|
|
657
|
+
// 有 colspan 或 rowspan 且含有链接的表格通过 grid 布局实现
|
|
658
|
+
styleObj.display = 'grid'
|
|
659
|
+
|
|
660
|
+
if (spacing) {
|
|
661
|
+
styleObj['grid-gap'] = `${spacing}px`
|
|
662
|
+
styleObj.padding = `${spacing}px`
|
|
663
|
+
} // 无间隔的情况下避免边框重叠
|
|
664
|
+
else if (border) attrs.style += ';border-left:0;border-top:0'
|
|
665
|
+
|
|
666
|
+
const width = []
|
|
667
|
+
// 表格的列宽
|
|
668
|
+
const trList = []
|
|
669
|
+
// tr 列表
|
|
670
|
+
const cells = []
|
|
671
|
+
// 保存新的单元格
|
|
672
|
+
const map = {}; // 被合并单元格占用的格子
|
|
673
|
+
|
|
674
|
+
(function traversal(nodes) {
|
|
675
|
+
for (let _i5 = 0; _i5 < nodes.length; _i5++) {
|
|
676
|
+
if (nodes[_i5].name == 'tr') trList.push(nodes[_i5]); else traversal(nodes[_i5].children || [])
|
|
677
|
+
}
|
|
678
|
+
}(children))
|
|
679
|
+
|
|
680
|
+
for (let row = 1; row <= trList.length; row++) {
|
|
681
|
+
let col = 1
|
|
682
|
+
|
|
683
|
+
for (let j = 0; j < trList[row - 1].children.length; j++, col++) {
|
|
684
|
+
const td = trList[row - 1].children[j]
|
|
685
|
+
|
|
686
|
+
if (td.name == 'td' || td.name == 'th') {
|
|
687
|
+
// 这个格子被上面的单元格占用,则列号++
|
|
688
|
+
while (map[`${row}.${col}`]) {
|
|
689
|
+
col++
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
let _style2 = td.attrs.style || ''
|
|
693
|
+
const start = _style2.indexOf('width') ? _style2.indexOf(';width') : 0 // 提取出 td 的宽度
|
|
694
|
+
|
|
695
|
+
if (start != -1) {
|
|
696
|
+
let end = _style2.indexOf(';', start + 6)
|
|
697
|
+
|
|
698
|
+
if (end == -1) end = _style2.length
|
|
699
|
+
if (!td.attrs.colspan) width[col] = _style2.substring(start ? start + 7 : 6, end)
|
|
700
|
+
_style2 = _style2.substr(0, start) + _style2.substr(end)
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
_style2 += (border ? ';border:'.concat(border, 'px solid gray') + (spacing ? '' : ';border-right:0;border-bottom:0') : '') + (padding ? ';padding:'.concat(padding, 'px') : '') // 处理列合并
|
|
704
|
+
|
|
705
|
+
if (td.attrs.colspan) {
|
|
706
|
+
_style2 += ';grid-column-start:'.concat(col, ';grid-column-end:').concat(col + parseInt(td.attrs.colspan))
|
|
707
|
+
if (!td.attrs.rowspan) _style2 += ';grid-row-start:'.concat(row, ';grid-row-end:').concat(row + 1)
|
|
708
|
+
col += parseInt(td.attrs.colspan) - 1
|
|
709
|
+
} // 处理行合并
|
|
710
|
+
|
|
711
|
+
if (td.attrs.rowspan) {
|
|
712
|
+
_style2 += ';grid-row-start:'.concat(row, ';grid-row-end:').concat(row + parseInt(td.attrs.rowspan))
|
|
713
|
+
if (!td.attrs.colspan) _style2 += ';grid-column-start:'.concat(col, ';grid-column-end:').concat(col + 1) // 记录下方单元格被占用
|
|
714
|
+
|
|
715
|
+
for (let k = 1; k < td.attrs.rowspan; k++) {
|
|
716
|
+
map[`${row + k}.${col}`] = 1
|
|
717
|
+
}
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
if (_style2) td.attrs.style = _style2
|
|
721
|
+
cells.push(td)
|
|
722
|
+
}
|
|
723
|
+
}
|
|
724
|
+
|
|
725
|
+
if (row == 1) {
|
|
726
|
+
let temp = ''
|
|
727
|
+
|
|
728
|
+
for (let _i6 = 1; _i6 < col; _i6++) {
|
|
729
|
+
temp += `${width[_i6] ? width[_i6] : 'auto'} `
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
styleObj['grid-template-columns'] = temp
|
|
733
|
+
}
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
node.children = cells
|
|
737
|
+
} else {
|
|
738
|
+
// 没有使用合并单元格的表格通过 table 布局实现
|
|
739
|
+
if (node.c) styleObj.display = 'table'
|
|
740
|
+
if (!isNaN(spacing)) styleObj['border-spacing'] = `${spacing}px`
|
|
741
|
+
|
|
742
|
+
if (border || padding) {
|
|
743
|
+
// 遍历
|
|
744
|
+
(function traversal(nodes) {
|
|
745
|
+
for (let _i7 = 0; _i7 < nodes.length; _i7++) {
|
|
746
|
+
const _td = nodes[_i7]
|
|
747
|
+
|
|
748
|
+
if (_td.name == 'th' || _td.name == 'td') {
|
|
749
|
+
if (border) _td.attrs.style = 'border:'.concat(border, 'px solid gray;').concat(_td.attrs.style || '')
|
|
750
|
+
if (padding) _td.attrs.style = 'padding:'.concat(padding, 'px;').concat(_td.attrs.style || '')
|
|
751
|
+
} else if (_td.children) traversal(_td.children)
|
|
752
|
+
}
|
|
753
|
+
}(children))
|
|
754
|
+
}
|
|
755
|
+
} // 给表格添加一个单独的横向滚动层
|
|
756
|
+
|
|
757
|
+
if (this.options.scrollTable && !(attrs.style || '').includes('inline')) {
|
|
758
|
+
const table = { ...node }
|
|
759
|
+
node.name = 'div'
|
|
760
|
+
node.attrs = {
|
|
761
|
+
style: 'overflow:auto'
|
|
762
|
+
}
|
|
763
|
+
node.children = [table]
|
|
764
|
+
attrs = table.attrs
|
|
765
|
+
}
|
|
766
|
+
} else if ((node.name == 'td' || node.name == 'th') && (attrs.colspan || attrs.rowspan)) {
|
|
767
|
+
for (let _i8 = this.stack.length; _i8--;) {
|
|
768
|
+
if (this.stack[_i8].name == 'table') {
|
|
769
|
+
this.stack[_i8].flag = 1 // 指示含有合并单元格
|
|
770
|
+
|
|
771
|
+
break
|
|
772
|
+
}
|
|
773
|
+
}
|
|
774
|
+
} // 转换 ruby
|
|
775
|
+
else if (node.name == 'ruby') {
|
|
776
|
+
node.name = 'span'
|
|
777
|
+
|
|
778
|
+
for (let _i9 = 0; _i9 < children.length - 1; _i9++) {
|
|
779
|
+
if (children[_i9].type == 'text' && children[_i9 + 1].name == 'rt') {
|
|
780
|
+
children[_i9] = {
|
|
781
|
+
name: 'div',
|
|
782
|
+
attrs: {
|
|
783
|
+
style: 'display:inline-block'
|
|
784
|
+
},
|
|
785
|
+
children: [{
|
|
786
|
+
name: 'div',
|
|
787
|
+
attrs: {
|
|
788
|
+
style: 'font-size:50%;text-align:start'
|
|
789
|
+
},
|
|
790
|
+
children: children[_i9 + 1].children
|
|
791
|
+
}, children[_i9]]
|
|
792
|
+
}
|
|
793
|
+
children.splice(_i9 + 1, 1)
|
|
794
|
+
}
|
|
795
|
+
}
|
|
796
|
+
} else if (node.c) {
|
|
797
|
+
node.c = 2
|
|
798
|
+
|
|
799
|
+
for (let _i10 = node.children.length; _i10--;) {
|
|
800
|
+
if (!node.children[_i10].c || node.children[_i10].name == 'table') node.c = 1
|
|
801
|
+
}
|
|
802
|
+
}
|
|
803
|
+
if ((styleObj.display || '').includes('flex') && !node.c) {
|
|
804
|
+
for (let _i11 = children.length; _i11--;) {
|
|
805
|
+
const _item = children[_i11]
|
|
806
|
+
|
|
807
|
+
if (_item.f) {
|
|
808
|
+
_item.attrs.style = (_item.attrs.style || '') + _item.f
|
|
809
|
+
_item.f = void 0
|
|
810
|
+
}
|
|
811
|
+
}
|
|
812
|
+
} // flex 布局时部分样式需要提取到 rich-text 外层
|
|
813
|
+
|
|
814
|
+
const flex = parent && (parent.attrs.style || '').includes('flex') // #ifdef MP-WEIXIN
|
|
815
|
+
// 检查基础库版本 virtualHost 是否可用
|
|
816
|
+
&& !(node.c && wx.getNFCAdapter) // #endif
|
|
817
|
+
// #ifndef MP-WEIXIN || MP-QQ || MP-BAIDU || MP-TOUTIAO
|
|
818
|
+
&& !node.c // #endif
|
|
819
|
+
|
|
820
|
+
if (flex) node.f = ';max-width:100%' // #endif
|
|
821
|
+
|
|
822
|
+
for (const key in styleObj) {
|
|
823
|
+
if (styleObj[key]) {
|
|
824
|
+
const val = ';'.concat(key, ':').concat(styleObj[key].replace(' !important', '')) // #ifndef APP-PLUS-NVUE
|
|
825
|
+
|
|
826
|
+
if (flex && (key.includes('flex') && key != 'flex-direction' || key == 'align-self' || styleObj[key][0] == '-' || key == 'width' && val.includes('%'))) {
|
|
827
|
+
node.f += val
|
|
828
|
+
if (key == 'width') attrs.style += ';width:100%'
|
|
829
|
+
} else // #endif
|
|
830
|
+
{ attrs.style += val }
|
|
831
|
+
}
|
|
832
|
+
}
|
|
833
|
+
|
|
834
|
+
attrs.style = attrs.style.substr(1) || void 0
|
|
835
|
+
}
|
|
836
|
+
/**
|
|
837
|
+
* @description 解析到文本
|
|
838
|
+
* @param {String} text 文本内容
|
|
839
|
+
*/
|
|
840
|
+
|
|
841
|
+
parser.prototype.onText = function (text) {
|
|
842
|
+
if (!this.pre) {
|
|
843
|
+
// 合并空白符
|
|
844
|
+
let trim = ''
|
|
845
|
+
let flag
|
|
846
|
+
|
|
847
|
+
for (let i = 0, len = text.length; i < len; i++) {
|
|
848
|
+
if (!blankChar[text[i]]) trim += text[i]; else {
|
|
849
|
+
if (trim[trim.length - 1] != ' ') trim += ' '
|
|
850
|
+
if (text[i] == '\n' && !flag) flag = true
|
|
851
|
+
}
|
|
852
|
+
} // 去除含有换行符的空串
|
|
853
|
+
|
|
854
|
+
if (trim == ' ' && flag) return
|
|
855
|
+
text = trim
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
const node = Object.create(null)
|
|
859
|
+
node.type = 'text'
|
|
860
|
+
node.text = decodeEntity(text)
|
|
861
|
+
|
|
862
|
+
if (this.hook(node)) {
|
|
863
|
+
const siblings = this.stack.length ? this.stack[this.stack.length - 1].children : this.nodes
|
|
864
|
+
siblings.push(node)
|
|
865
|
+
}
|
|
866
|
+
}
|
|
867
|
+
/**
|
|
868
|
+
* @description html 词法分析器
|
|
869
|
+
* @param {Object} handler 高层处理器
|
|
870
|
+
*/
|
|
871
|
+
|
|
872
|
+
function lexer(handler) {
|
|
873
|
+
this.handler = handler
|
|
874
|
+
}
|
|
875
|
+
/**
|
|
876
|
+
* @description 执行解析
|
|
877
|
+
* @param {String} content 要解析的文本
|
|
878
|
+
*/
|
|
879
|
+
|
|
880
|
+
lexer.prototype.parse = function (content) {
|
|
881
|
+
this.content = content || ''
|
|
882
|
+
this.i = 0 // 标记解析位置
|
|
883
|
+
|
|
884
|
+
this.start = 0 // 标记一个单词的开始位置
|
|
885
|
+
|
|
886
|
+
this.state = this.text // 当前状态
|
|
887
|
+
|
|
888
|
+
for (let len = this.content.length; this.i != -1 && this.i < len;) {
|
|
889
|
+
this.state()
|
|
890
|
+
}
|
|
891
|
+
}
|
|
892
|
+
/**
|
|
893
|
+
* @description 检查标签是否闭合
|
|
894
|
+
* @param {String} method 如果闭合要进行的操作
|
|
895
|
+
* @returns {Boolean} 是否闭合
|
|
896
|
+
* @private
|
|
897
|
+
*/
|
|
898
|
+
|
|
899
|
+
lexer.prototype.checkClose = function (method) {
|
|
900
|
+
const selfClose = this.content[this.i] == '/'
|
|
901
|
+
|
|
902
|
+
if (this.content[this.i] == '>' || selfClose && this.content[this.i + 1] == '>') {
|
|
903
|
+
if (method) this.handler[method](this.content.substring(this.start, this.i))
|
|
904
|
+
this.i += selfClose ? 2 : 1
|
|
905
|
+
this.start = this.i
|
|
906
|
+
this.handler.onOpenTag(selfClose)
|
|
907
|
+
|
|
908
|
+
if (this.handler.tagName == 'script') {
|
|
909
|
+
this.i = this.content.indexOf('</', this.i)
|
|
910
|
+
|
|
911
|
+
if (this.i != -1) {
|
|
912
|
+
this.i += 2
|
|
913
|
+
this.start = this.i
|
|
914
|
+
}
|
|
915
|
+
|
|
916
|
+
this.state = this.endTag
|
|
917
|
+
} else this.state = this.text
|
|
918
|
+
|
|
919
|
+
return true
|
|
920
|
+
}
|
|
921
|
+
|
|
922
|
+
return false
|
|
923
|
+
}
|
|
924
|
+
/**
|
|
925
|
+
* @description 文本状态
|
|
926
|
+
* @private
|
|
927
|
+
*/
|
|
928
|
+
|
|
929
|
+
lexer.prototype.text = function () {
|
|
930
|
+
this.i = this.content.indexOf('<', this.i) // 查找最近的标签
|
|
931
|
+
|
|
932
|
+
if (this.i == -1) {
|
|
933
|
+
// 没有标签了
|
|
934
|
+
if (this.start < this.content.length) this.handler.onText(this.content.substring(this.start, this.content.length))
|
|
935
|
+
return
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
const c = this.content[this.i + 1]
|
|
939
|
+
|
|
940
|
+
if (c >= 'a' && c <= 'z' || c >= 'A' && c <= 'Z') {
|
|
941
|
+
// 标签开头
|
|
942
|
+
if (this.start != this.i) this.handler.onText(this.content.substring(this.start, this.i))
|
|
943
|
+
this.start = ++this.i
|
|
944
|
+
this.state = this.tagName
|
|
945
|
+
} else if (c == '/' || c == '!' || c == '?') {
|
|
946
|
+
if (this.start != this.i) this.handler.onText(this.content.substring(this.start, this.i))
|
|
947
|
+
const next = this.content[this.i + 2]
|
|
948
|
+
|
|
949
|
+
if (c == '/' && (next >= 'a' && next <= 'z' || next >= 'A' && next <= 'Z')) {
|
|
950
|
+
// 标签结尾
|
|
951
|
+
this.i += 2
|
|
952
|
+
this.start = this.i
|
|
953
|
+
return this.state = this.endTag
|
|
954
|
+
} // 处理注释
|
|
955
|
+
|
|
956
|
+
let end = '-->'
|
|
957
|
+
if (c != '!' || this.content[this.i + 2] != '-' || this.content[this.i + 3] != '-') end = '>'
|
|
958
|
+
this.i = this.content.indexOf(end, this.i)
|
|
959
|
+
|
|
960
|
+
if (this.i != -1) {
|
|
961
|
+
this.i += end.length
|
|
962
|
+
this.start = this.i
|
|
963
|
+
}
|
|
964
|
+
} else this.i++
|
|
965
|
+
}
|
|
966
|
+
/**
|
|
967
|
+
* @description 标签名状态
|
|
968
|
+
* @private
|
|
969
|
+
*/
|
|
970
|
+
|
|
971
|
+
lexer.prototype.tagName = function () {
|
|
972
|
+
if (blankChar[this.content[this.i]]) {
|
|
973
|
+
// 解析到标签名
|
|
974
|
+
this.handler.onTagName(this.content.substring(this.start, this.i))
|
|
975
|
+
|
|
976
|
+
while (blankChar[this.content[++this.i]]) {
|
|
977
|
+
|
|
978
|
+
}
|
|
979
|
+
|
|
980
|
+
if (this.i < this.content.length && !this.checkClose()) {
|
|
981
|
+
this.start = this.i
|
|
982
|
+
this.state = this.attrName
|
|
983
|
+
}
|
|
984
|
+
} else if (!this.checkClose('onTagName')) this.i++
|
|
985
|
+
}
|
|
986
|
+
/**
|
|
987
|
+
* @description 属性名状态
|
|
988
|
+
* @private
|
|
989
|
+
*/
|
|
990
|
+
|
|
991
|
+
lexer.prototype.attrName = function () {
|
|
992
|
+
let c = this.content[this.i]
|
|
993
|
+
|
|
994
|
+
if (blankChar[c] || c == '=') {
|
|
995
|
+
// 解析到属性名
|
|
996
|
+
this.handler.onAttrName(this.content.substring(this.start, this.i))
|
|
997
|
+
let needVal = c == '='
|
|
998
|
+
const len = this.content.length
|
|
999
|
+
|
|
1000
|
+
while (++this.i < len) {
|
|
1001
|
+
c = this.content[this.i]
|
|
1002
|
+
|
|
1003
|
+
if (!blankChar[c]) {
|
|
1004
|
+
if (this.checkClose()) return
|
|
1005
|
+
|
|
1006
|
+
if (needVal) {
|
|
1007
|
+
// 等号后遇到第一个非空字符
|
|
1008
|
+
this.start = this.i
|
|
1009
|
+
return this.state = this.attrVal
|
|
1010
|
+
}
|
|
1011
|
+
|
|
1012
|
+
if (this.content[this.i] == '=') needVal = true; else {
|
|
1013
|
+
this.start = this.i
|
|
1014
|
+
return this.state = this.attrName
|
|
1015
|
+
}
|
|
1016
|
+
}
|
|
1017
|
+
}
|
|
1018
|
+
} else if (!this.checkClose('onAttrName')) this.i++
|
|
1019
|
+
}
|
|
1020
|
+
/**
|
|
1021
|
+
* @description 属性值状态
|
|
1022
|
+
* @private
|
|
1023
|
+
*/
|
|
1024
|
+
|
|
1025
|
+
lexer.prototype.attrVal = function () {
|
|
1026
|
+
const c = this.content[this.i]
|
|
1027
|
+
const len = this.content.length // 有冒号的属性
|
|
1028
|
+
|
|
1029
|
+
if (c == '"' || c == "'") {
|
|
1030
|
+
this.start = ++this.i
|
|
1031
|
+
this.i = this.content.indexOf(c, this.i)
|
|
1032
|
+
if (this.i == -1) return
|
|
1033
|
+
this.handler.onAttrVal(this.content.substring(this.start, this.i))
|
|
1034
|
+
} // 没有冒号的属性
|
|
1035
|
+
else {
|
|
1036
|
+
for (; this.i < len; this.i++) {
|
|
1037
|
+
if (blankChar[this.content[this.i]]) {
|
|
1038
|
+
this.handler.onAttrVal(this.content.substring(this.start, this.i))
|
|
1039
|
+
break
|
|
1040
|
+
} else if (this.checkClose('onAttrVal')) return
|
|
1041
|
+
}
|
|
1042
|
+
}
|
|
1043
|
+
|
|
1044
|
+
while (blankChar[this.content[++this.i]]) {
|
|
1045
|
+
|
|
1046
|
+
}
|
|
1047
|
+
|
|
1048
|
+
if (this.i < len && !this.checkClose()) {
|
|
1049
|
+
this.start = this.i
|
|
1050
|
+
this.state = this.attrName
|
|
1051
|
+
}
|
|
1052
|
+
}
|
|
1053
|
+
/**
|
|
1054
|
+
* @description 结束标签状态
|
|
1055
|
+
* @returns {String} 结束的标签名
|
|
1056
|
+
* @private
|
|
1057
|
+
*/
|
|
1058
|
+
|
|
1059
|
+
lexer.prototype.endTag = function () {
|
|
1060
|
+
const c = this.content[this.i]
|
|
1061
|
+
|
|
1062
|
+
if (blankChar[c] || c == '>' || c == '/') {
|
|
1063
|
+
this.handler.onCloseTag(this.content.substring(this.start, this.i))
|
|
1064
|
+
|
|
1065
|
+
if (c != '>') {
|
|
1066
|
+
this.i = this.content.indexOf('>', this.i)
|
|
1067
|
+
if (this.i == -1) return
|
|
1068
|
+
}
|
|
1069
|
+
|
|
1070
|
+
this.start = ++this.i
|
|
1071
|
+
this.state = this.text
|
|
1072
|
+
} else this.i++
|
|
1073
|
+
}
|
|
1074
|
+
|
|
1075
|
+
module.exports = parser
|