@aochuang/common 1.0.0 → 1.0.126
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/common/index.js +13 -0
- package/common/loading/index.js +7 -0
- package/common/loading/loading.vue +71 -0
- package/common/resizable/index.js +3 -0
- package/common/resizable/resizable.vue +260 -0
- package/common/scroll-load-more/index.js +3 -0
- package/common/scroll-load-more/scroll-load-more.vue +397 -0
- package/common/static-map/index.js +3 -0
- package/common/static-map/static-map.vue +87 -0
- package/common/tips/index.js +7 -0
- package/common/tips/tips.vue +82 -0
- package/common/tooltip/index.js +7 -0
- package/common/tooltip/popper.js +18 -0
- package/common/tooltip/tooltip.vue +75 -0
- package/common/viewer/index.js +4 -0
- package/common/viewer/util.js +40 -0
- package/common/viewer/viewer.vue +607 -0
- package/common/viewer-pedestal/index.js +3 -0
- package/common/viewer-pedestal/viewer-pedestal.vue +70 -0
- package/common/voice/index.js +21 -0
- package/common/voice/util.js +18 -0
- package/common/voice/voice-player-aac.js +584 -0
- package/common/voice/voice-player-audio.js +159 -0
- package/common/voice/voice-player.js +309 -0
- package/common/voice/voice.vue +274 -0
- package/common/voice-player/index.js +3 -0
- package/common/voice-player/voice-player.vue +785 -0
- package/common/waterfall/index.js +3 -0
- package/common/waterfall/waterfall.vue +169 -0
- package/common/wechat-emoji/emoji/666.png +0 -0
- package/common/wechat-emoji/emoji/Emm.png +0 -0
- package/common/wechat-emoji/emoji/OK.png +0 -0
- package/common/wechat-emoji/emoji//344/272/262/344/272/262.png +0 -0
- package/common/wechat-emoji/emoji//344/276/277/344/276/277.png +0 -0
- package/common/wechat-emoji/emoji//345/201/267/347/254/221.png +0 -0
- package/common/wechat-emoji/emoji//345/202/262/346/205/242.png +0 -0
- package/common/wechat-emoji/emoji//345/206/215/350/247/201.png +0 -0
- package/common/wechat-emoji/emoji//345/207/213/350/260/242.png +0 -0
- package/common/wechat-emoji/emoji//345/210/240/351/231/244.png +0 -0
- package/common/wechat-emoji/emoji//345/212/240/346/262/271.png +0 -0
- package/common/wechat-emoji/emoji//345/213/276/345/274/225.png +0 -0
- package/common/wechat-emoji/emoji//345/217/221/345/221/206.png +0 -0
- package/common/wechat-emoji/emoji//345/217/221/346/200/222.png +0 -0
- package/common/wechat-emoji/emoji//345/217/221/346/212/226.png +0 -0
- package/common/wechat-emoji/emoji//345/217/257/346/200/234.png +0 -0
- package/common/wechat-emoji/emoji//345/217/263/345/223/274/345/223/274.png +0 -0
- package/common/wechat-emoji/emoji//345/217/271/346/260/224.png +0 -0
- package/common/wechat-emoji/emoji//345/220/203/347/223/234.png +0 -0
- package/common/wechat-emoji/emoji//345/220/210/345/215/201.png +0 -0
- package/common/wechat-emoji/emoji//345/220/220.png +0 -0
- package/common/wechat-emoji/emoji//345/220/220/350/210/214/345/244/264.png +0 -0
- package/common/wechat-emoji/emoji//345/221/262/347/211/231.png +0 -0
- package/common/wechat-emoji/emoji//345/222/222/351/252/202.png +0 -0
- package/common/wechat-emoji/emoji//345/222/226/345/225/241.png +0 -0
- package/common/wechat-emoji/emoji//345/223/207.png +0 -0
- package/common/wechat-emoji/emoji//345/223/210/346/254/240.png +0 -0
- package/common/wechat-emoji/emoji//345/225/244/351/205/222.png +0 -0
- package/common/wechat-emoji/emoji//345/230/230.png +0 -0
- package/common/wechat-emoji/emoji//345/230/264/345/224/207.png +0 -0
- package/common/wechat-emoji/emoji//345/230/277/345/223/210.png +0 -0
- package/common/wechat-emoji/emoji//345/233/247.png +0 -0
- package/common/wechat-emoji/emoji//345/233/260.png +0 -0
- package/common/wechat-emoji/emoji//345/235/217/347/254/221.png +0 -0
- package/common/wechat-emoji/emoji//345/244/247/345/223/255.png +0 -0
- package/common/wechat-emoji/emoji//345/244/251/345/225/212.png +0 -0
- package/common/wechat-emoji/emoji//345/244/252/351/230/263.png +0 -0
- package/common/wechat-emoji/emoji//345/244/261/346/234/233.png +0 -0
- package/common/wechat-emoji/emoji//345/245/213/346/226/227.png +0 -0
- package/common/wechat-emoji/emoji//345/245/270/347/254/221.png +0 -0
- package/common/wechat-emoji/emoji//345/245/275/347/232/204.png +0 -0
- package/common/wechat-emoji/emoji//345/247/224/345/261/210.png +0 -0
- package/common/wechat-emoji/emoji//345/256/263/347/276/236.png +0 -0
- package/common/wechat-emoji/emoji//345/260/264/345/260/254.png +0 -0
- package/common/wechat-emoji/emoji//345/267/246/345/223/274/345/223/274.png +0 -0
- package/common/wechat-emoji/emoji//345/272/206/347/245/235.png +0 -0
- package/common/wechat-emoji/emoji//345/274/261.png +0 -0
- package/common/wechat-emoji/emoji//345/274/272.png +0 -0
- package/common/wechat-emoji/emoji//345/276/227/346/204/217.png +0 -0
- package/common/wechat-emoji/emoji//345/276/256/347/254/221.png +0 -0
- package/common/wechat-emoji/emoji//345/277/203/347/242/216.png +0 -0
- package/common/wechat-emoji/emoji//345/277/253/345/223/255/344/272/206.png +0 -0
- package/common/wechat-emoji/emoji//346/200/204/347/201/253.png +0 -0
- package/common/wechat-emoji/emoji//346/201/220/346/203/247.png +0 -0
- package/common/wechat-emoji/emoji//346/202/240/351/227/262.png +0 -0
- package/common/wechat-emoji/emoji//346/203/212/346/201/220.png +0 -0
- package/common/wechat-emoji/emoji//346/203/212/350/256/266.png +0 -0
- package/common/wechat-emoji/emoji//346/204/211/345/277/253.png +0 -0
- package/common/wechat-emoji/emoji//346/206/250/347/254/221.png +0 -0
- package/common/wechat-emoji/emoji//346/211/223/350/204/270.png +0 -0
- package/common/wechat-emoji/emoji//346/212/223/347/213/202.png +0 -0
- package/common/wechat-emoji/emoji//346/212/240/351/274/273.png +0 -0
- package/common/wechat-emoji/emoji//346/212/261/346/213/263.png +0 -0
- package/common/wechat-emoji/emoji//346/213/245/346/212/261.png +0 -0
- package/common/wechat-emoji/emoji//346/213/263/345/244/264.png +0 -0
- package/common/wechat-emoji/emoji//346/215/202/350/204/270.png +0 -0
- package/common/wechat-emoji/emoji//346/217/241/346/211/213.png +0 -0
- package/common/wechat-emoji/emoji//346/222/207/345/230/264.png +0 -0
- package/common/wechat-emoji/emoji//346/223/246/346/261/227.png +0 -0
- package/common/wechat-emoji/emoji//346/225/262/346/211/223.png +0 -0
- package/common/wechat-emoji/emoji//346/227/240/350/257/255.png +0 -0
- package/common/wechat-emoji/emoji//346/227/272/346/237/264.png +0 -0
- package/common/wechat-emoji/emoji//346/231/225.png +0 -0
- package/common/wechat-emoji/emoji//346/234/210/344/272/256.png +0 -0
- package/common/wechat-emoji/emoji//346/234/272/346/231/272.png +0 -0
- package/common/wechat-emoji/emoji//346/261/227.png +0 -0
- package/common/wechat-emoji/emoji//346/265/201/346/261/227.png +0 -0
- package/common/wechat-emoji/emoji//346/265/201/346/263/252.png +0 -0
- package/common/wechat-emoji/emoji//347/202/270/345/274/271.png +0 -0
- package/common/wechat-emoji/emoji//347/203/237/350/212/261.png +0 -0
- package/common/wechat-emoji/emoji//347/210/206/347/253/271.png +0 -0
- package/common/wechat-emoji/emoji//347/210/261/345/277/203.png +0 -0
- package/common/wechat-emoji/emoji//347/214/252/345/244/264.png +0 -0
- package/common/wechat-emoji/emoji//347/216/253/347/221/260.png +0 -0
- package/common/wechat-emoji/emoji//347/224/237/347/227/205.png +0 -0
- package/common/wechat-emoji/emoji//347/226/221/351/227/256.png +0 -0
- package/common/wechat-emoji/emoji//347/231/274.png +0 -0
- package/common/wechat-emoji/emoji//347/231/275/347/234/274.png +0 -0
- package/common/wechat-emoji/emoji//347/232/261/347/234/211.png +0 -0
- package/common/wechat-emoji/emoji//347/235/241.png +0 -0
- package/common/wechat-emoji/emoji//347/240/264/346/266/225/344/270/272/347/254/221.png +0 -0
- package/common/wechat-emoji/emoji//347/244/274/347/211/251.png +0 -0
- package/common/wechat-emoji/emoji//347/244/276/344/274/232/347/244/276/344/274/232.png +0 -0
- package/common/wechat-emoji/emoji//347/246/217.png +0 -0
- package/common/wechat-emoji/emoji//347/254/221/350/204/270.png +0 -0
- package/common/wechat-emoji/emoji//347/272/242/345/214/205.png +0 -0
- package/common/wechat-emoji/emoji//347/277/273/347/231/275/347/234/274.png +0 -0
- package/common/wechat-emoji/emoji//350/200/266.png +0 -0
- package/common/wechat-emoji/emoji//350/203/234/345/210/251.png +0 -0
- package/common/wechat-emoji/emoji//350/204/270/347/272/242.png +0 -0
- package/common/wechat-emoji/emoji//350/211/262.png +0 -0
- package/common/wechat-emoji/emoji//350/213/246/346/266/251.png +0 -0
- package/common/wechat-emoji/emoji//350/217/234/345/210/200.png +0 -0
- package/common/wechat-emoji/emoji//350/233/213/347/263/225.png +0 -0
- package/common/wechat-emoji/emoji//350/241/260.png +0 -0
- package/common/wechat-emoji/emoji//350/243/202/345/274/200.png +0 -0
- package/common/wechat-emoji/emoji//350/245/277/347/223/234.png +0 -0
- package/common/wechat-emoji/emoji//350/256/251/346/210/221/347/234/213/347/234/213.png +0 -0
- package/common/wechat-emoji/emoji//350/260/203/347/232/256.png +0 -0
- package/common/wechat-emoji/emoji//350/267/263/350/267/263.png +0 -0
- package/common/wechat-emoji/emoji//350/275/254/345/234/210.png +0 -0
- package/common/wechat-emoji/emoji//351/204/231/350/247/206.png +0 -0
- package/common/wechat-emoji/emoji//351/227/255/345/230/264.png +0 -0
- package/common/wechat-emoji/emoji//351/230/264/351/231/251.png +0 -0
- package/common/wechat-emoji/emoji//351/232/276/350/277/207.png +0 -0
- package/common/wechat-emoji/emoji//351/252/267/351/253/205.png +0 -0
- package/common/wechat-emoji/emoji//351/254/274/350/204/270.png +0 -0
- package/common/wechat-emoji/emoji//351/270/241.png +0 -0
- package/common/wechat-emoji/emoji//351/274/223/346/216/214.png +0 -0
- package/common/wechat-emoji/index.js +14 -0
- package/common/wechat-emoji/order.json +111 -0
- package/common/wechat-emoji/utils.js +52 -0
- package/common/wechat-emoji/wechat-emoji.vue +74 -0
- package/common/wechat-emoji-select/index.js +3 -0
- package/common/wechat-emoji-select/wechat-emoji-select.vue +67 -0
- package/components/advanced-filter/advanced-filter-condition-item/advanced-filter-condition-item-boolean.vue +33 -0
- package/components/advanced-filter/advanced-filter-condition-item/advanced-filter-condition-item-date-range.vue +30 -0
- package/components/advanced-filter/advanced-filter-condition-item/advanced-filter-condition-item-date.vue +41 -0
- package/components/advanced-filter/advanced-filter-condition-item/advanced-filter-condition-item-datetime-range.vue +34 -0
- package/components/advanced-filter/advanced-filter-condition-item/advanced-filter-condition-item-datetime.vue +41 -0
- package/components/advanced-filter/advanced-filter-condition-item/advanced-filter-condition-item-number-range.vue +67 -0
- package/components/advanced-filter/advanced-filter-condition-item/advanced-filter-condition-item-number.vue +35 -0
- package/components/advanced-filter/advanced-filter-condition-item/advanced-filter-condition-item-string.vue +41 -0
- package/components/advanced-filter/advanced-filter-condition-item/advanced-filter-condition-item-value.vue +73 -0
- package/components/advanced-filter/advanced-filter-condition-item/advanced-filter-condition-item.vue +226 -0
- package/components/advanced-filter/advanced-filter-condition-toggle.vue +112 -0
- package/components/advanced-filter/advanced-filter-condition.vue +352 -0
- package/components/advanced-filter/advanced-filter-permanent-item.vue +10 -0
- package/components/advanced-filter/advanced-filter-permanent.vue +10 -0
- package/components/advanced-filter/advanced-filter-scene-form.vue +95 -0
- package/components/advanced-filter/advanced-filter-scene-item.vue +64 -0
- package/components/advanced-filter/advanced-filter-scene-manage.vue +264 -0
- package/components/advanced-filter/advanced-filter-scene-transfer.vue +283 -0
- package/components/advanced-filter/advanced-filter-scene.vue +199 -0
- package/components/advanced-filter/advanced-filter.vue +119 -0
- package/components/advanced-filter/index.js +35 -0
- package/components/advanced-filter/utils.js +132 -0
- package/components/autocomplete/autocomplete.vue +121 -0
- package/components/autocomplete/index.js +7 -0
- package/components/avatar/avatar.png +0 -0
- package/components/avatar/avatar.vue +216 -0
- package/components/avatar/index.js +7 -0
- package/components/brick-wall/brick-wall-skeleton.vue +125 -0
- package/components/brick-wall/brick-wall.vue +293 -0
- package/components/brick-wall/index.js +7 -0
- package/components/button/button.vue +550 -0
- package/components/button/index.js +7 -0
- package/components/button/utils.js +20 -0
- package/components/cascader/cascader.vue +184 -0
- package/components/cascader/index.js +7 -0
- package/components/cascader/util.js +50 -0
- package/components/checkbox/checkbox.vue +114 -0
- package/components/checkbox/index.js +7 -0
- package/components/checkbox-button/index.js +8 -0
- package/components/checkbox-group/checkbox-group.vue +11 -0
- package/components/checkbox-group/index.js +7 -0
- package/components/date-picker/date-picker.vue +307 -0
- package/components/date-picker/index.js +7 -0
- package/components/dialog/dialog.vue +187 -0
- package/components/dialog/index.js +14 -0
- package/components/dialog/utils.js +20 -0
- package/components/drawer/drawer.vue +186 -0
- package/components/drawer/index.js +14 -0
- package/components/drawer/utils.js +36 -0
- package/components/dropdown/dropdown-item.vue +71 -0
- package/components/dropdown/dropdown.vue +326 -0
- package/components/dropdown/index.js +16 -0
- package/components/empty/empty.vue +89 -0
- package/components/empty/index.js +7 -0
- package/components/filter/filter-group.vue +44 -0
- package/components/filter/filter-item.vue +122 -0
- package/components/filter/filter-more.vue +114 -0
- package/components/filter/filter.vue +407 -0
- package/components/filter/index.js +20 -0
- package/components/filter/refresh-line.svg +1 -0
- package/components/filter/util.js +5 -0
- package/components/form/form-cell.vue +231 -0
- package/components/form/form-group.vue +147 -0
- package/components/form/form-row.vue +51 -0
- package/components/form/form.vue +287 -0
- package/components/form/index.js +24 -0
- package/components/grid/grid-card-view/grid-card-view.vue +157 -0
- package/components/grid/grid-column.vue +137 -0
- package/components/grid/grid-filter/grid-filter-group.vue +41 -0
- package/components/grid/grid-filter/grid-filter-item.vue +68 -0
- package/components/grid/grid-filter/grid-filter.vue +115 -0
- package/components/grid/grid-filter/util.js +7 -0
- package/components/grid/grid-filter-operate/grid-filter-operate-item.vue +55 -0
- package/components/grid/grid-filter-operate/grid-filter-operate.vue +46 -0
- package/components/grid/grid-sort/grid-sort-proxy.js +27 -0
- package/components/grid/grid-sort/grid-sort.vue +205 -0
- package/components/grid/grid-sort/icons/asc.png +0 -0
- package/components/grid/grid-sort/icons/desc.png +0 -0
- package/components/grid/grid-sort/index.js +7 -0
- package/components/grid/grid-table-view/grid-table-view.vue +178 -0
- package/components/grid/grid-table.vue +549 -0
- package/components/grid/grid-toolbar/grid-batch-toolbar-proxy.js +21 -0
- package/components/grid/grid-toolbar/grid-batch-toolbar.vue +129 -0
- package/components/grid/grid-toolbar/grid-global-toolbar-proxy.js +21 -0
- package/components/grid/grid-toolbar/grid-global-toolbar.vue +37 -0
- package/components/grid/grid-toolbar/grid-more-toolbar-proxy.js +21 -0
- package/components/grid/grid-toolbar/grid-more-toolbar.vue +138 -0
- package/components/grid/grid-toolbar/grid-row-toolbar.vue +279 -0
- package/components/grid/grid-view-select.vue +78 -0
- package/components/grid/grid.vue +1114 -0
- package/components/grid/icons/more-line.svg +1 -0
- package/components/grid/icons/refresh.svg +14 -0
- package/components/grid/index.js +60 -0
- package/components/grid/util.js +31 -0
- package/components/icon/demo.css +539 -0
- package/components/icon/demo_index.html +9112 -0
- package/components/icon/icon.vue +96 -0
- package/components/icon/iconfont.css +1567 -0
- package/components/icon/iconfont.eot +0 -0
- package/components/icon/iconfont.js +1 -0
- package/components/icon/iconfont.json +2725 -0
- package/components/icon/iconfont.svg +455 -0
- package/components/icon/iconfont.ttf +0 -0
- package/components/icon/iconfont.woff +0 -0
- package/components/icon/iconfont.woff2 +0 -0
- package/components/icon/index.js +7 -0
- package/components/image/image.vue +377 -0
- package/components/image/index.js +14 -0
- package/components/image/util.js +107 -0
- package/components/index.js +157 -0
- package/components/loading/index.js +7 -0
- package/components/loading/loading.vue +130 -0
- package/components/menu/index.js +20 -0
- package/components/menu/menu-group.vue +245 -0
- package/components/menu/menu-item.vue +269 -0
- package/components/menu/menu.vue +64 -0
- package/components/message/index.js +19 -0
- package/components/message/message.js +31 -0
- package/components/message/message.less +6 -0
- package/components/message-box/index.js +14 -0
- package/components/message-box/message-box.js +140 -0
- package/components/message-box/message-box.less +5 -0
- package/components/pagination/index.js +7 -0
- package/components/pagination/pagination.vue +197 -0
- package/components/panel/index.js +7 -0
- package/components/panel/panel.vue +44 -0
- package/components/popover/index.js +7 -0
- package/components/popover/popover.vue +163 -0
- package/components/popup-select/index.js +7 -0
- package/components/popup-select/popup-select.vue +114 -0
- package/components/radio/index.js +7 -0
- package/components/radio/radio.vue +92 -0
- package/components/radio-button/index.js +7 -0
- package/components/radio-button/radio-button.vue +20 -0
- package/components/radio-group/index.js +7 -0
- package/components/radio-group/radio-group.vue +22 -0
- package/components/searchbox/index.js +7 -0
- package/components/searchbox/searchbox.vue +272 -0
- package/components/select/index.js +11 -0
- package/components/select/select-load-more.vue +53 -0
- package/components/select/select.vue +578 -0
- package/components/skeleton/index.js +16 -0
- package/components/skeleton/skeleton-rows.vue +52 -0
- package/components/skeleton/skeleton.vue +72 -0
- package/components/sortable/index.js +11 -0
- package/components/sortable/sortable-item.vue +77 -0
- package/components/sortable/sortable.vue +67 -0
- package/components/spinner/index.js +7 -0
- package/components/spinner/spinner.vue +121 -0
- package/components/spinner-range/index.js +7 -0
- package/components/spinner-range/spinner-range.vue +97 -0
- package/components/spinner-textarea/index.js +7 -0
- package/components/spinner-textarea/spinner-textarea.vue +65 -0
- package/components/switch/index.js +7 -0
- package/components/switch/switch.vue +105 -0
- package/components/tabbar/index.js +9 -0
- package/components/tabbar/tabbar-item.vue +162 -0
- package/components/tabbar/tabbar.vue +49 -0
- package/components/tabs/index.js +12 -0
- package/components/tabs/tabs.vue +120 -0
- package/components/tag/index.js +9 -0
- package/components/tag/tag.less +39 -0
- package/components/text/index.js +7 -0
- package/components/text/text.vue +69 -0
- package/components/textarea/index.js +7 -0
- package/components/textarea/textarea.vue +245 -0
- package/components/textbox/index.js +7 -0
- package/components/textbox/textbox.vue +275 -0
- package/components/time-picker/index.js +7 -0
- package/components/time-picker/time-picker.vue +84 -0
- package/components/toolbar/index.js +16 -0
- package/components/toolbar/toolbar-item.vue +43 -0
- package/components/toolbar/toolbar.vue +81 -0
- package/components/tooltip/index.js +9 -0
- package/components/tooltip/tooltip.vue +86 -0
- package/components/transfer/index.js +7 -0
- package/components/transfer/transfer-element.vue +109 -0
- package/components/transfer/transfer-load-more.vue +53 -0
- package/components/transfer/transfer.vue +260 -0
- package/components/tree/index.js +7 -0
- package/components/tree/tree.vue +485 -0
- package/components/tree/utils.js +122 -0
- package/components/video/index.js +7 -0
- package/components/video/video.vue +101 -0
- package/package.json +15 -1
- package/uni-common/more-button/more-button.vue +23 -0
- package/uni-common/popup-select/popup-select.vue +217 -0
- package/uni-common/portray/portray.vue +54 -0
- package/uni-common/refresh-view/refresh-view.vue +94 -0
- package/uni-common/scroll-load-more/scroll-load-more.vue +201 -0
- package/uni-common/tree-popup-select/index.js +3 -0
- package/uni-common/tree-popup-select/tree-popup-select-panel.vue +92 -0
- package/uni-common/tree-popup-select/tree-popup-select.vue +124 -0
- package/uni-common/tree-popup-select/util.js +19 -0
- package/uni-common/wechat-emoji/index.js +13 -0
- package/uni-common/wechat-emoji/order.json +438 -0
- package/uni-common/wechat-emoji/utils.js +52 -0
- package/uni-common/wechat-emoji/wechat-emoji.vue +74 -0
- package/uni-components/avatar/avatar.vue +81 -0
- package/uni-components/badge/badge.vue +57 -0
- package/uni-components/empty/empty.vue +27 -0
- package/uni-components/exception/exception.vue +47 -0
- package/uni-components/icon/demo.css +539 -0
- package/uni-components/icon/demo_index.html +1591 -0
- package/uni-components/icon/icon.vue +48 -0
- package/uni-components/icon/iconfont.css +259 -0
- package/uni-components/icon/iconfont.js +1 -0
- package/uni-components/icon/iconfont.json +436 -0
- package/uni-components/icon/iconfont.ttf +0 -0
- package/uni-components/icon/iconfont.woff +0 -0
- package/uni-components/icon/iconfont.woff2 +0 -0
- package/uni-components/icon/index.js +3 -0
- package/uni-components/image/image.vue +38 -0
- package/uni-components/image/index.js +3 -0
- package/uni-components/loading/index.js +3 -0
- package/uni-components/loading/loading.vue +30 -0
- package/uni-components/message/message-item.vue +29 -0
- package/uni-components/message/message.js +80 -0
- package/uni-components/message/message.vue +30 -0
- package/uni-components/message-box/message-box-item.vue +54 -0
- package/uni-components/message-box/message-box.js +91 -0
- package/uni-components/message-box/message-box.vue +52 -0
- package/uni-components/picker/picker.vue +270 -0
- package/uni-components/popup/index.js +3 -0
- package/uni-components/popup/popup.vue +143 -0
- package/uni-components/search/index.js +3 -0
- package/uni-components/search/search.vue +86 -0
- package/uni-components/skeleton/skeleton-chat.vue +85 -0
- package/uni-components/skeleton/skeleton-contact.vue +84 -0
- package/uni-components/skeleton/skeleton-detail.vue +84 -0
- package/uni-components/skeleton/skeleton.vue +32 -0
- package/uni-components/tabbar/tabbar-item.vue +33 -0
- package/uni-components/tabbar/tabbar.vue +87 -0
- package/uni-components/tree/index.js +3 -0
- package/uni-components/tree/tree-select-loading.vue +48 -0
- package/uni-components/tree/tree-select-node.vue +202 -0
- package/uni-components/tree/tree-select-store.js +520 -0
- package/uni-components/tree/tree-select.vue +210 -0
- package/uni-components/tree/utils.js +33 -0
- package/uni-components/video/index.js +3 -0
- package/uni-components/video/video.vue +29 -0
- package/uni-components/voice/index.js +3 -0
- package/uni-components/voice/voice.vue +24 -0
- package/uni-components/waterfall/index.js +3 -0
- package/uni-components/waterfall/util.js +72 -0
- package/uni-components/waterfall/waterfall.vue +147 -0
- package/utils/data.js +128 -0
- package/utils/date.js +495 -0
- package/utils/dom.js +37 -0
- package/utils/emitter.js +3 -0
- package/utils/event.js +92 -0
- package/utils/file.js +76 -0
- package/utils/json.js +40 -0
- package/utils/network-detector.js +258 -0
- package/utils/oss.js +11 -0
- package/utils/resize-event.js +35 -0
- package/utils/share-message.js +81 -0
- package/utils/share-websocket.js +127 -0
- package/utils/string.js +59 -0
- package/utils/time-task.js +60 -0
- package/utils/url.js +46 -0
- package/utils/util.js +427 -0
- package/utils/utils.js +0 -0
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,377 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
class="ui-image"
|
|
4
|
+
:class="className"
|
|
5
|
+
:style="style"
|
|
6
|
+
:title="title"
|
|
7
|
+
@click="handleClick"
|
|
8
|
+
>
|
|
9
|
+
<div class="ui-image__main" :style="mainStyle">
|
|
10
|
+
<img
|
|
11
|
+
class="ui-image__img"
|
|
12
|
+
:src="source"
|
|
13
|
+
:alt="alt"
|
|
14
|
+
@load="handleImageLoad"
|
|
15
|
+
@error="handleImageError"
|
|
16
|
+
:style="imageStyle"
|
|
17
|
+
/>
|
|
18
|
+
<ui-icon
|
|
19
|
+
v-if="status === 'error'"
|
|
20
|
+
name="image-error-line"
|
|
21
|
+
class="ui-image__error"
|
|
22
|
+
:size="iconSize"
|
|
23
|
+
color="#aaa"
|
|
24
|
+
></ui-icon>
|
|
25
|
+
<div class="ui-image__preview" v-if="previewable && status === 'success'" @click="handlePreviewClick">
|
|
26
|
+
<ui-icon name="sousuo" :size="30" color="#fff"></ui-icon>
|
|
27
|
+
</div>
|
|
28
|
+
</div>
|
|
29
|
+
</div>
|
|
30
|
+
</template>
|
|
31
|
+
<script>
|
|
32
|
+
import UiIcon from '../icon'
|
|
33
|
+
import { fileToBase64, getImageClickFn, getThumbnailSrc } from './util'
|
|
34
|
+
import { formatOssPath } from '../../utils/oss'
|
|
35
|
+
|
|
36
|
+
const LoadStatus = {
|
|
37
|
+
normal: 'normal',
|
|
38
|
+
loading: 'loading',
|
|
39
|
+
success: 'success',
|
|
40
|
+
error: 'error'
|
|
41
|
+
}
|
|
42
|
+
export default {
|
|
43
|
+
name: 'UiImage',
|
|
44
|
+
components: {
|
|
45
|
+
UiIcon
|
|
46
|
+
},
|
|
47
|
+
props: {
|
|
48
|
+
width: {
|
|
49
|
+
type: String
|
|
50
|
+
},
|
|
51
|
+
height: {
|
|
52
|
+
type: String
|
|
53
|
+
},
|
|
54
|
+
maxWidth: {
|
|
55
|
+
type: Number
|
|
56
|
+
},
|
|
57
|
+
maxHeight: {
|
|
58
|
+
type: Number
|
|
59
|
+
},
|
|
60
|
+
/**
|
|
61
|
+
* 启动裁剪
|
|
62
|
+
* 开启了服务端裁剪,图片尺寸默认等比根据宽带进行处理,如果width是100px那么裁剪的尺寸就是200px,放大一倍,如果没有给width|maxWidth,那么就给固定的1024px
|
|
63
|
+
*/
|
|
64
|
+
enableThumbnail: {
|
|
65
|
+
type: Boolean,
|
|
66
|
+
default: true
|
|
67
|
+
},
|
|
68
|
+
fit: {
|
|
69
|
+
type: String,
|
|
70
|
+
default: 'none',
|
|
71
|
+
validator (value) {
|
|
72
|
+
return ['fill', 'contain', 'cover', 'none', 'scale-down'].indexOf(value) >= 0
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
src: {
|
|
76
|
+
type: [String, File, Function]
|
|
77
|
+
},
|
|
78
|
+
alt: {
|
|
79
|
+
type: String
|
|
80
|
+
},
|
|
81
|
+
gray: {
|
|
82
|
+
type: Boolean,
|
|
83
|
+
default: false
|
|
84
|
+
},
|
|
85
|
+
radius: {
|
|
86
|
+
type: [Number, String],
|
|
87
|
+
default: 6
|
|
88
|
+
},
|
|
89
|
+
loading: {
|
|
90
|
+
type: Boolean
|
|
91
|
+
},
|
|
92
|
+
previewable: {
|
|
93
|
+
type: Boolean,
|
|
94
|
+
default: false
|
|
95
|
+
},
|
|
96
|
+
previewMethod: {
|
|
97
|
+
type: Function
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
data () {
|
|
101
|
+
return {
|
|
102
|
+
source: null,
|
|
103
|
+
clientWidth: 0,
|
|
104
|
+
status: LoadStatus.normal
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
computed: {
|
|
108
|
+
style () {
|
|
109
|
+
const sy = {}
|
|
110
|
+
if (this.width) {
|
|
111
|
+
sy.width = this.width
|
|
112
|
+
}
|
|
113
|
+
if (this.height) {
|
|
114
|
+
sy.height = this.height
|
|
115
|
+
}
|
|
116
|
+
return sy
|
|
117
|
+
},
|
|
118
|
+
innerRadius () {
|
|
119
|
+
if (typeof this.radius === 'number') {
|
|
120
|
+
return this.radius + 'px'
|
|
121
|
+
}
|
|
122
|
+
return this.radius
|
|
123
|
+
},
|
|
124
|
+
mainStyle () {
|
|
125
|
+
const sy = {
|
|
126
|
+
'border-radius': this.innerRadius + 'px'
|
|
127
|
+
}
|
|
128
|
+
if (this.fit && this.status !== LoadStatus.error) {
|
|
129
|
+
if (this.fit === 'none') {
|
|
130
|
+
sy['background-color'] = 'rgba(0,0,0,.05)'
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
return sy
|
|
134
|
+
},
|
|
135
|
+
imageStyle () {
|
|
136
|
+
const sy = {}
|
|
137
|
+
if (this.fit) {
|
|
138
|
+
if (this.fit === 'none') {
|
|
139
|
+
sy['max-width'] = this.maxWidth ? this.maxWidth + 'px' : (this.width === 'auto' ? '' : '100%')
|
|
140
|
+
sy['max-height'] = this.maxHeight ? this.maxHeight + 'px' : (this.height === 'auto' ? '' : '100%')
|
|
141
|
+
sy.width = 'auto'
|
|
142
|
+
sy.height = 'auto'
|
|
143
|
+
} else {
|
|
144
|
+
sy['object-fit'] = this.fit
|
|
145
|
+
sy['max-width'] = this.maxWidth ? this.maxWidth + 'px' : ''
|
|
146
|
+
sy['max-height'] = this.maxHeight ? this.maxHeight + 'px' : ''
|
|
147
|
+
sy.width = '100%'
|
|
148
|
+
sy.height = '100%'
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
return sy
|
|
152
|
+
},
|
|
153
|
+
title () {
|
|
154
|
+
if (this.error) {
|
|
155
|
+
return '图片加载失败'
|
|
156
|
+
}
|
|
157
|
+
return this.alt
|
|
158
|
+
},
|
|
159
|
+
iconSize () {
|
|
160
|
+
return Math.max(this.clientWidth / 2, 18)
|
|
161
|
+
},
|
|
162
|
+
className () {
|
|
163
|
+
return ['is-' + this.status, { 'is-gray': this.gray }]
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
watch: {
|
|
167
|
+
src (val) {
|
|
168
|
+
this.handleLoadImage()
|
|
169
|
+
},
|
|
170
|
+
loading (val) {
|
|
171
|
+
this.updateLoading()
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
created () {
|
|
175
|
+
this.handleLoadImage()
|
|
176
|
+
this.updateLoading()
|
|
177
|
+
},
|
|
178
|
+
mounted () {
|
|
179
|
+
this.clientWidth = this.$el.clientWidth
|
|
180
|
+
},
|
|
181
|
+
methods: {
|
|
182
|
+
handleClick () {
|
|
183
|
+
this.$emit('click')
|
|
184
|
+
},
|
|
185
|
+
handlePreviewClick () {
|
|
186
|
+
if (this.previewMethod) {
|
|
187
|
+
this.previewMethod()
|
|
188
|
+
} else {
|
|
189
|
+
this.preview()
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
handleLoadImage () {
|
|
193
|
+
this.resolveSrc()
|
|
194
|
+
},
|
|
195
|
+
handleImageLoad () {
|
|
196
|
+
this.status = LoadStatus.success
|
|
197
|
+
this.$emit('load')
|
|
198
|
+
},
|
|
199
|
+
handleImageError () {
|
|
200
|
+
// 阿里云缩放只支持20971520字节大小图片,超过会报错,所以需要回退到原图
|
|
201
|
+
if (this.enableThumbnail) {
|
|
202
|
+
const nextSource = formatOssPath(this.source)
|
|
203
|
+
if (nextSource !== this.source) {
|
|
204
|
+
this.source = nextSource
|
|
205
|
+
} else {
|
|
206
|
+
this.status = LoadStatus.error
|
|
207
|
+
this.$emit('error')
|
|
208
|
+
}
|
|
209
|
+
} else {
|
|
210
|
+
this.status = LoadStatus.error
|
|
211
|
+
this.$emit('error')
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
preview () {
|
|
215
|
+
if (!this.source) {
|
|
216
|
+
return
|
|
217
|
+
}
|
|
218
|
+
const clickFn = getImageClickFn()
|
|
219
|
+
if (clickFn) {
|
|
220
|
+
clickFn({
|
|
221
|
+
src: formatOssPath(this.source)
|
|
222
|
+
})
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
resolveSrc () {
|
|
226
|
+
if (!this.src) {
|
|
227
|
+
this.status = this.loading ? LoadStatus.loading : LoadStatus.normal
|
|
228
|
+
this.source = null
|
|
229
|
+
} else {
|
|
230
|
+
this.status = LoadStatus.loading
|
|
231
|
+
if (this.src instanceof File) {
|
|
232
|
+
this.status = LoadStatus.loading
|
|
233
|
+
fileToBase64(this.src).then((rs) => {
|
|
234
|
+
this.source = rs
|
|
235
|
+
}, () => {
|
|
236
|
+
this.status = LoadStatus.error
|
|
237
|
+
})
|
|
238
|
+
} else if (typeof this.src === 'function') {
|
|
239
|
+
const rs = this.src()
|
|
240
|
+
if (rs && rs.then) {
|
|
241
|
+
this.status = LoadStatus.loading
|
|
242
|
+
rs.then(rs => {
|
|
243
|
+
this.source = rs
|
|
244
|
+
}, () => {
|
|
245
|
+
this.status = LoadStatus.error
|
|
246
|
+
})
|
|
247
|
+
} else {
|
|
248
|
+
this.source = rs
|
|
249
|
+
}
|
|
250
|
+
} else {
|
|
251
|
+
if (this.enableThumbnail) {
|
|
252
|
+
// 放大1.5倍
|
|
253
|
+
let thumbnailWidth = parseInt(this.width)
|
|
254
|
+
if (!isNaN(thumbnailWidth)) {
|
|
255
|
+
thumbnailWidth = thumbnailWidth * 1.5
|
|
256
|
+
} else {
|
|
257
|
+
thumbnailWidth = 720
|
|
258
|
+
}
|
|
259
|
+
this.source = formatOssPath(getThumbnailSrc(this.src, thumbnailWidth))
|
|
260
|
+
} else {
|
|
261
|
+
this.source = formatOssPath(this.src)
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
},
|
|
266
|
+
updateLoading () {
|
|
267
|
+
if (!this.source) {
|
|
268
|
+
this.status = this.loading ? LoadStatus.loading : LoadStatus.normal
|
|
269
|
+
} else {
|
|
270
|
+
if (typeof this.loading === 'boolean') {
|
|
271
|
+
if (this.loading === true) {
|
|
272
|
+
this.status = LoadStatus.loading
|
|
273
|
+
} else {
|
|
274
|
+
this.status = LoadStatus.success
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
</script>
|
|
282
|
+
<style lang="less">
|
|
283
|
+
.ui-image{
|
|
284
|
+
display: inline-block;
|
|
285
|
+
vertical-align: top;
|
|
286
|
+
&.is-loading{
|
|
287
|
+
animation-duration: 1s;
|
|
288
|
+
animation-fill-mode: forwards;
|
|
289
|
+
animation-iteration-count: infinite;
|
|
290
|
+
animation-name: ui-image-loading;
|
|
291
|
+
animation-timing-function: linear;
|
|
292
|
+
background: linear-gradient(to right, #eee 8%, #ddd 18%, #eee 33%);
|
|
293
|
+
background-size: 800px 104px;
|
|
294
|
+
}
|
|
295
|
+
&.is-gray {
|
|
296
|
+
-webkit-filter: grayscale(100%);
|
|
297
|
+
-moz-filter: grayscale(100%);
|
|
298
|
+
-ms-filter: grayscale(100%);
|
|
299
|
+
-o-filter: grayscale(100%);
|
|
300
|
+
filter: grayscale(100%);
|
|
301
|
+
filter: gray;
|
|
302
|
+
}
|
|
303
|
+
&.is-error,&.is-normal{
|
|
304
|
+
background-color: #eee;
|
|
305
|
+
}
|
|
306
|
+
&.is-error {
|
|
307
|
+
line-height: 1em;
|
|
308
|
+
width: 100%;
|
|
309
|
+
height: 100%;
|
|
310
|
+
.ui-image__main{
|
|
311
|
+
width: 100%;
|
|
312
|
+
height: 100%;
|
|
313
|
+
min-width: 32px;
|
|
314
|
+
min-height: 32px;
|
|
315
|
+
position: relative;
|
|
316
|
+
}
|
|
317
|
+
img {
|
|
318
|
+
display: none!important;
|
|
319
|
+
}
|
|
320
|
+
.ui-image__error{
|
|
321
|
+
position: absolute;
|
|
322
|
+
left: 50%;
|
|
323
|
+
top: 50%;
|
|
324
|
+
transform: translate(-50%, -50%);
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
&.is-success{
|
|
328
|
+
.ui-image__img{
|
|
329
|
+
display: inline-block;
|
|
330
|
+
}
|
|
331
|
+
.ui-image__preview{
|
|
332
|
+
display: flex;
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
.ui-image__main{
|
|
337
|
+
display: flex;
|
|
338
|
+
width: 100%;
|
|
339
|
+
height: 100%;
|
|
340
|
+
flex-direction: column;
|
|
341
|
+
justify-content: center;
|
|
342
|
+
align-items: center;
|
|
343
|
+
overflow: hidden;
|
|
344
|
+
position: relative;
|
|
345
|
+
border-radius: 4px;
|
|
346
|
+
}
|
|
347
|
+
.ui-image__img{
|
|
348
|
+
display: none;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
@keyframes ui-image-loading {
|
|
352
|
+
0%{
|
|
353
|
+
background-position: -468px 0
|
|
354
|
+
}
|
|
355
|
+
100%{
|
|
356
|
+
background-position: 468px 0
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
.ui-image__preview{
|
|
360
|
+
position: absolute;
|
|
361
|
+
left: 0;
|
|
362
|
+
top: 0;
|
|
363
|
+
width: 100%;
|
|
364
|
+
height: 100%;
|
|
365
|
+
flex-direction: column;
|
|
366
|
+
align-items: center;
|
|
367
|
+
justify-content: center;
|
|
368
|
+
background-color: rgba(0,0,0,.3);
|
|
369
|
+
opacity: 0;
|
|
370
|
+
transition: all .3s;
|
|
371
|
+
cursor: pointer;
|
|
372
|
+
display: none;
|
|
373
|
+
&:hover{
|
|
374
|
+
opacity: 1;
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
</style>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import Image from './image'
|
|
2
|
+
import { setImageClickFn, getThumbnailSrc as _getThumbnailSrc } from './util'
|
|
3
|
+
|
|
4
|
+
Image.install = (Vue, options) => {
|
|
5
|
+
options = Object.assign({
|
|
6
|
+
imageClickFn: null
|
|
7
|
+
}, options)
|
|
8
|
+
setImageClickFn(options.imageClickFn)
|
|
9
|
+
Vue.component(Image.name, Image)
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export const getThumbnailSrc = _getThumbnailSrc
|
|
13
|
+
|
|
14
|
+
export default Image
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { buildUrl, getUrlParams } from "../../utils/url"
|
|
2
|
+
|
|
3
|
+
export function fileToBase64 (file) {
|
|
4
|
+
return new Promise((resolve, reject) => {
|
|
5
|
+
if (!file) {
|
|
6
|
+
reject()
|
|
7
|
+
} else {
|
|
8
|
+
var reader = new FileReader()
|
|
9
|
+
reader.readAsDataURL(file)
|
|
10
|
+
reader.onload = () => {
|
|
11
|
+
resolve(reader.result)
|
|
12
|
+
}
|
|
13
|
+
reader.onerror = () => {
|
|
14
|
+
reject()
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
})
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
let imageClickFn = null
|
|
21
|
+
|
|
22
|
+
export function setImageClickFn (fn) {
|
|
23
|
+
imageClickFn = fn
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export function getImageClickFn () {
|
|
27
|
+
return imageClickFn
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* 获取裁剪路径
|
|
32
|
+
*/
|
|
33
|
+
export function getThumbnailSrc (url, width) {
|
|
34
|
+
if (!url || !width) {
|
|
35
|
+
return url
|
|
36
|
+
}
|
|
37
|
+
let hash = url.split('#')[1]
|
|
38
|
+
// 新的后端拼接的oss地址
|
|
39
|
+
if (url.indexOf('/oss/view') > -1) {
|
|
40
|
+
// 这是1.0的
|
|
41
|
+
// http://localhost:8090/oss/view?url=https://wpj-dev3-kefures.oss-cn-shenzhen.aliyuncs.com/weremote/chat-logs/90fab9f6a2a54d60bfeba431adeb9e38/7eabb34fa8e824381310fbd8667a4404/3/3957413896365727039.jpg
|
|
42
|
+
const urlParams = getUrlParams(url)
|
|
43
|
+
if (!urlParams.url) {
|
|
44
|
+
return url
|
|
45
|
+
}
|
|
46
|
+
let nextUrl = urlParams.url
|
|
47
|
+
if (nextUrl.indexOf('.aliyuncs.com') > -1) {
|
|
48
|
+
if (nextUrl.indexOf('?') >= 0) {
|
|
49
|
+
nextUrl = nextUrl + '&x-oss-process=image/resize,w_' + width
|
|
50
|
+
} else {
|
|
51
|
+
nextUrl = nextUrl + '?x-oss-process=image/resize,w_' + width
|
|
52
|
+
}
|
|
53
|
+
} else if (nextUrl.indexOf('.myqcloud.com') > -1) {
|
|
54
|
+
if (nextUrl.indexOf('?') >= 0) {
|
|
55
|
+
nextUrl = nextUrl + '&imageMogr2/thumbnail/' + width
|
|
56
|
+
} else {
|
|
57
|
+
nextUrl = nextUrl + '?imageMogr2/thumbnail/' + width
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
url = buildUrl(url.substr(0, url.indexOf('/oss/view') + 9), Object.assign({}, urlParams, {
|
|
61
|
+
url: nextUrl
|
|
62
|
+
}))
|
|
63
|
+
} else if (url.indexOf('/oss/') > -1) {
|
|
64
|
+
// 这是3.0的
|
|
65
|
+
// https://dev.ifangzhou.com/oss/?url=https%3A%2F%2Fw…5856.jpg%3Fx-oss-process%3Dimage%2Fresize%2Cw_720
|
|
66
|
+
const urlParams = getUrlParams(url)
|
|
67
|
+
if (!urlParams.url) {
|
|
68
|
+
return url
|
|
69
|
+
}
|
|
70
|
+
let nextUrl = urlParams.url
|
|
71
|
+
if (nextUrl.indexOf('.aliyuncs.com') > -1) {
|
|
72
|
+
if (nextUrl.indexOf('?') >= 0) {
|
|
73
|
+
nextUrl = nextUrl + '&x-oss-process=image/resize,w_' + width
|
|
74
|
+
} else {
|
|
75
|
+
nextUrl = nextUrl + '?x-oss-process=image/resize,w_' + width
|
|
76
|
+
}
|
|
77
|
+
} else if (nextUrl.indexOf('.myqcloud.com') > -1) {
|
|
78
|
+
if (nextUrl.indexOf('?') >= 0) {
|
|
79
|
+
nextUrl = nextUrl + '&imageMogr2/thumbnail/' + width
|
|
80
|
+
} else {
|
|
81
|
+
nextUrl = nextUrl + '?imageMogr2/thumbnail/' + width
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
url = buildUrl(url.substr(0, url.indexOf('/oss/') + 5), Object.assign({}, urlParams, {
|
|
85
|
+
url: nextUrl
|
|
86
|
+
}))
|
|
87
|
+
} else {
|
|
88
|
+
if (url.indexOf('.aliyuncs.com') > -1) {
|
|
89
|
+
if (url.indexOf('?') >= 0) {
|
|
90
|
+
url = url + '&x-oss-process=image/resize,w_' + width
|
|
91
|
+
} else {
|
|
92
|
+
url = url + '?x-oss-process=image/resize,w_' + width
|
|
93
|
+
}
|
|
94
|
+
} else if (url.indexOf('.myqcloud.com') > -1) {
|
|
95
|
+
if (url.indexOf('?') >= 0) {
|
|
96
|
+
url = url + '&imageMogr2/thumbnail/' + width
|
|
97
|
+
} else {
|
|
98
|
+
url = url + '?imageMogr2/thumbnail/' + width
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
if (hash) {
|
|
103
|
+
return url + '#' + hash
|
|
104
|
+
} else {
|
|
105
|
+
return url
|
|
106
|
+
}
|
|
107
|
+
}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import Button from './button'
|
|
2
|
+
import BrickWall from './brick-wall'
|
|
3
|
+
import AdvancedFilter from './advanced-filter'
|
|
4
|
+
import Autocomplete from './autocomplete'
|
|
5
|
+
import Dropdown from './dropdown'
|
|
6
|
+
import Switch from './switch'
|
|
7
|
+
import Icon from './icon'
|
|
8
|
+
import Image from './image'
|
|
9
|
+
import Popover from './popover'
|
|
10
|
+
import Toolbar from './toolbar'
|
|
11
|
+
import Tooltip from './tooltip'
|
|
12
|
+
import Text from './text'
|
|
13
|
+
import Menu from './menu'
|
|
14
|
+
import Sortable from './sortable'
|
|
15
|
+
import Dialog from './dialog'
|
|
16
|
+
import Filter from './filter'
|
|
17
|
+
import Grid from './grid'
|
|
18
|
+
import Loading from './loading'
|
|
19
|
+
import Pagination from './pagination'
|
|
20
|
+
import Form from './form'
|
|
21
|
+
import Textarea from './textarea'
|
|
22
|
+
import Textbox from './textbox'
|
|
23
|
+
import Message from './message'
|
|
24
|
+
import MessageBox from './message-box'
|
|
25
|
+
import Empty from './empty'
|
|
26
|
+
import Avatar from './avatar'
|
|
27
|
+
import Drawer from './drawer'
|
|
28
|
+
import Tabs from './tabs'
|
|
29
|
+
import CheckboxGroup from './checkbox-group'
|
|
30
|
+
import Checkbox from './checkbox'
|
|
31
|
+
import CheckboxButton from './checkbox-button'
|
|
32
|
+
import Select from './select'
|
|
33
|
+
import Cascader from './cascader'
|
|
34
|
+
import Searchbox from './searchbox'
|
|
35
|
+
import DatePicker from './date-picker'
|
|
36
|
+
import Radio from './radio'
|
|
37
|
+
import RadioButton from './radio-button'
|
|
38
|
+
import RadioGroup from './radio-group'
|
|
39
|
+
import Video from './video'
|
|
40
|
+
import Spinner from './spinner'
|
|
41
|
+
import SpinnerRange from './spinner-range'
|
|
42
|
+
import SpinnerTextarea from './spinner-textarea'
|
|
43
|
+
import Skeleton from './skeleton'
|
|
44
|
+
import TimePicker from './time-picker'
|
|
45
|
+
import Tag from './tag'
|
|
46
|
+
import Tree from './tree'
|
|
47
|
+
import PopupSelect from './popup-select'
|
|
48
|
+
import Panel from './panel'
|
|
49
|
+
import Transfer from './transfer'
|
|
50
|
+
import Tabbar from './tabbar'
|
|
51
|
+
|
|
52
|
+
export {
|
|
53
|
+
AdvancedFilter,
|
|
54
|
+
Autocomplete,
|
|
55
|
+
Avatar,
|
|
56
|
+
Button,
|
|
57
|
+
BrickWall,
|
|
58
|
+
Cascader,
|
|
59
|
+
CheckboxGroup,
|
|
60
|
+
Checkbox,
|
|
61
|
+
CheckboxButton,
|
|
62
|
+
DatePicker,
|
|
63
|
+
Drawer,
|
|
64
|
+
Dropdown,
|
|
65
|
+
Dialog,
|
|
66
|
+
Empty,
|
|
67
|
+
Filter,
|
|
68
|
+
Form,
|
|
69
|
+
Grid,
|
|
70
|
+
Icon,
|
|
71
|
+
Image,
|
|
72
|
+
Menu,
|
|
73
|
+
Message,
|
|
74
|
+
MessageBox,
|
|
75
|
+
Pagination,
|
|
76
|
+
Popover,
|
|
77
|
+
PopupSelect,
|
|
78
|
+
Panel,
|
|
79
|
+
Radio,
|
|
80
|
+
RadioButton,
|
|
81
|
+
RadioGroup,
|
|
82
|
+
Sortable,
|
|
83
|
+
Select,
|
|
84
|
+
Searchbox,
|
|
85
|
+
Spinner,
|
|
86
|
+
SpinnerRange,
|
|
87
|
+
SpinnerTextarea,
|
|
88
|
+
Skeleton,
|
|
89
|
+
Switch,
|
|
90
|
+
Toolbar,
|
|
91
|
+
Tooltip,
|
|
92
|
+
Text,
|
|
93
|
+
Loading,
|
|
94
|
+
Textarea,
|
|
95
|
+
Textbox,
|
|
96
|
+
Tabs,
|
|
97
|
+
TimePicker,
|
|
98
|
+
Tag,
|
|
99
|
+
Tree,
|
|
100
|
+
Transfer,
|
|
101
|
+
Video,
|
|
102
|
+
Tabbar
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export default {
|
|
106
|
+
install (Vue, options = {}) {
|
|
107
|
+
Vue.use(Button)
|
|
108
|
+
Vue.use(Dropdown)
|
|
109
|
+
Vue.use(AdvancedFilter)
|
|
110
|
+
Vue.use(Switch)
|
|
111
|
+
Vue.use(Icon)
|
|
112
|
+
Vue.use(Image, options.image)
|
|
113
|
+
Vue.use(Popover)
|
|
114
|
+
Vue.use(Toolbar)
|
|
115
|
+
Vue.use(Tooltip)
|
|
116
|
+
Vue.use(Menu)
|
|
117
|
+
Vue.use(Sortable)
|
|
118
|
+
Vue.use(Dialog)
|
|
119
|
+
Vue.use(Filter)
|
|
120
|
+
Vue.use(Grid, options.grid)
|
|
121
|
+
Vue.use(Loading)
|
|
122
|
+
Vue.use(Pagination)
|
|
123
|
+
Vue.use(Form)
|
|
124
|
+
Vue.use(Textarea)
|
|
125
|
+
Vue.use(Textbox)
|
|
126
|
+
Vue.use(Text)
|
|
127
|
+
Vue.use(Message)
|
|
128
|
+
Vue.use(MessageBox)
|
|
129
|
+
Vue.use(Empty)
|
|
130
|
+
Vue.use(Avatar)
|
|
131
|
+
Vue.use(Drawer)
|
|
132
|
+
Vue.use(Tabs)
|
|
133
|
+
Vue.use(CheckboxGroup)
|
|
134
|
+
Vue.use(Checkbox)
|
|
135
|
+
Vue.use(CheckboxButton)
|
|
136
|
+
Vue.use(Select)
|
|
137
|
+
Vue.use(Cascader)
|
|
138
|
+
Vue.use(Searchbox)
|
|
139
|
+
Vue.use(DatePicker)
|
|
140
|
+
Vue.use(Radio)
|
|
141
|
+
Vue.use(RadioButton)
|
|
142
|
+
Vue.use(RadioGroup)
|
|
143
|
+
Vue.use(Video)
|
|
144
|
+
Vue.use(Spinner)
|
|
145
|
+
Vue.use(TimePicker)
|
|
146
|
+
Vue.use(Autocomplete)
|
|
147
|
+
Vue.use(Tag)
|
|
148
|
+
Vue.use(SpinnerRange)
|
|
149
|
+
Vue.use(SpinnerTextarea)
|
|
150
|
+
Vue.use(PopupSelect)
|
|
151
|
+
Vue.use(Panel)
|
|
152
|
+
Vue.use(Transfer)
|
|
153
|
+
Vue.use(Tree)
|
|
154
|
+
Vue.use(Skeleton)
|
|
155
|
+
Vue.use(Tabbar)
|
|
156
|
+
}
|
|
157
|
+
}
|