@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
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="ui-textarea" :class="{'is-worklimit': innerShowWordLimit, 'is-focus': focused, 'is-radius': radius, 'is-resizeable': resizeable, 'is-auto-height': autoHeight}" :style="{height: height}">
|
|
3
|
+
<div
|
|
4
|
+
v-if="!editable"
|
|
5
|
+
class="ui-textarea__view"
|
|
6
|
+
>{{innerValue}}</div>
|
|
7
|
+
<el-input
|
|
8
|
+
v-else
|
|
9
|
+
class="ui-textarea__input"
|
|
10
|
+
type="textarea"
|
|
11
|
+
ref="input"
|
|
12
|
+
:autosize="autoHeight"
|
|
13
|
+
v-model="innerValue"
|
|
14
|
+
:disabled="disabled"
|
|
15
|
+
:placeholder="placeholder"
|
|
16
|
+
:show-word-limit="innerShowWordLimit"
|
|
17
|
+
:maxlength="maxlength"
|
|
18
|
+
:rows="rows"
|
|
19
|
+
@change="handleChange"
|
|
20
|
+
@blur="handleBlur"
|
|
21
|
+
@focus="handleFocus"
|
|
22
|
+
@keyup.native="handleKeyup"
|
|
23
|
+
@keydown.native="handleKeydown"
|
|
24
|
+
@paste.native="handlePaste"
|
|
25
|
+
>
|
|
26
|
+
</el-input>
|
|
27
|
+
</div>
|
|
28
|
+
</template>
|
|
29
|
+
<script>
|
|
30
|
+
import { Input } from 'element-ui'
|
|
31
|
+
import 'element-ui/lib/theme-chalk/input.css'
|
|
32
|
+
|
|
33
|
+
export default {
|
|
34
|
+
name: 'UiTextarea',
|
|
35
|
+
components: {
|
|
36
|
+
ElInput: Input
|
|
37
|
+
},
|
|
38
|
+
props: {
|
|
39
|
+
rows: {
|
|
40
|
+
type: Number,
|
|
41
|
+
default: 10
|
|
42
|
+
},
|
|
43
|
+
maxlength: {
|
|
44
|
+
type: [Number, String],
|
|
45
|
+
default: 300
|
|
46
|
+
},
|
|
47
|
+
autoHeight: {
|
|
48
|
+
type: Boolean,
|
|
49
|
+
default: false
|
|
50
|
+
},
|
|
51
|
+
resizeable: {
|
|
52
|
+
type: Boolean,
|
|
53
|
+
default: true
|
|
54
|
+
},
|
|
55
|
+
placeholder: {
|
|
56
|
+
type: String
|
|
57
|
+
},
|
|
58
|
+
height: {
|
|
59
|
+
type: String
|
|
60
|
+
},
|
|
61
|
+
value: {
|
|
62
|
+
type: String
|
|
63
|
+
},
|
|
64
|
+
editable: {
|
|
65
|
+
type: Boolean,
|
|
66
|
+
default: true
|
|
67
|
+
},
|
|
68
|
+
disabled: {
|
|
69
|
+
type: Boolean
|
|
70
|
+
},
|
|
71
|
+
radius: {
|
|
72
|
+
type: Boolean,
|
|
73
|
+
default: true
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
data () {
|
|
77
|
+
return {
|
|
78
|
+
focused: false
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
computed: {
|
|
82
|
+
innerValue: {
|
|
83
|
+
get () {
|
|
84
|
+
return this.value
|
|
85
|
+
},
|
|
86
|
+
set (val) {
|
|
87
|
+
this.$emit('input', val)
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
innerShowWordLimit () {
|
|
91
|
+
if (this.maxlength) {
|
|
92
|
+
return true
|
|
93
|
+
}
|
|
94
|
+
return false
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
methods: {
|
|
98
|
+
handleChange (e) {
|
|
99
|
+
this.$emit('change', {
|
|
100
|
+
value: e
|
|
101
|
+
})
|
|
102
|
+
const textarea = this.$refs.input.$el.querySelector('.el-textarea__inner');
|
|
103
|
+
textarea.style.height = 'auto'; // 重置高度为自动
|
|
104
|
+
textarea.style.height = textarea.scrollHeight + 'px'; // 根据内容调整高度
|
|
105
|
+
},
|
|
106
|
+
handleBlur () {
|
|
107
|
+
this.focused = false
|
|
108
|
+
this.$emit('blur')
|
|
109
|
+
},
|
|
110
|
+
handleFocus () {
|
|
111
|
+
this.focused = true
|
|
112
|
+
this.$emit('focus')
|
|
113
|
+
},
|
|
114
|
+
getSelectionRange () {
|
|
115
|
+
const value = this.value || ''
|
|
116
|
+
let selectionStart = value.length
|
|
117
|
+
let selectionEnd = selectionStart
|
|
118
|
+
if (this.$refs.input && this.$refs.input.$refs.textarea) {
|
|
119
|
+
selectionStart = this.$refs.input.$refs.textarea.selectionStart
|
|
120
|
+
selectionEnd = this.$refs.input.$refs.textarea.selectionEnd
|
|
121
|
+
}
|
|
122
|
+
return {
|
|
123
|
+
start: selectionStart,
|
|
124
|
+
end: selectionEnd
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
setSelectionStart (startIndex) {
|
|
128
|
+
if (typeof startIndex !== 'number') {
|
|
129
|
+
return
|
|
130
|
+
}
|
|
131
|
+
if (this.$refs.input && this.$refs.input.$refs.textarea) {
|
|
132
|
+
this.$refs.input.$refs.textarea.setSelectionRange(startIndex, startIndex)
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
handlePaste (evt) {
|
|
136
|
+
this.$emit('paste', evt)
|
|
137
|
+
},
|
|
138
|
+
handleKeyup (evt) {
|
|
139
|
+
this.$emit('keyup', evt)
|
|
140
|
+
},
|
|
141
|
+
handleKeydown (evt) {
|
|
142
|
+
this.$emit('keydown', evt)
|
|
143
|
+
},
|
|
144
|
+
focus () {
|
|
145
|
+
this.$nextTick(() => {
|
|
146
|
+
this.$refs.input && this.$refs.input.focus && this.$refs.input.focus()
|
|
147
|
+
})
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
</script>
|
|
152
|
+
<style lang="less">
|
|
153
|
+
.ui-textarea{
|
|
154
|
+
&.is-worklimit{
|
|
155
|
+
.el-textarea{
|
|
156
|
+
// .el-textarea__inner{
|
|
157
|
+
// padding-bottom: 20px;
|
|
158
|
+
// }
|
|
159
|
+
}
|
|
160
|
+
.el-input__count{
|
|
161
|
+
position: static;
|
|
162
|
+
height: 20px;
|
|
163
|
+
line-height: 20px;
|
|
164
|
+
display: block;
|
|
165
|
+
text-align: right;
|
|
166
|
+
padding: 0 12px;
|
|
167
|
+
background: -moz-linear-gradient(top, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 17%, rgba(255,255,255,1) 100%);
|
|
168
|
+
background: -webkit-linear-gradient(top, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 17%,rgba(255,255,255,1) 100%);
|
|
169
|
+
background: linear-gradient(to bottom, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 17%,rgba(255,255,255,1) 100%);
|
|
170
|
+
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ffffff', endColorstr='#ffffff',GradientType=0 );
|
|
171
|
+
border-bottom-left-radius: 3px;
|
|
172
|
+
border-bottom-right-radius: 3px;
|
|
173
|
+
pointer-events: none;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
.ui-textarea__input {
|
|
177
|
+
border: 1px solid #DCDFE6;
|
|
178
|
+
box-sizing: border-box;
|
|
179
|
+
transition: all .25s;
|
|
180
|
+
}
|
|
181
|
+
&.is-radius .ui-textarea__input{
|
|
182
|
+
border-radius: 3px;
|
|
183
|
+
.el-textarea__inner{
|
|
184
|
+
border-radius: 3px;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
&.is-resizeable{
|
|
188
|
+
.el-textarea__inner{
|
|
189
|
+
resize: vertical;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
&.is-focus {
|
|
193
|
+
.ui-textarea__input {
|
|
194
|
+
border-color: #1aa2e8;
|
|
195
|
+
box-shadow: 0 0 0 0.2rem rgba(26, 162, 232,.25);
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
.ui-textarea {
|
|
200
|
+
&:not(.is-auto-height) {
|
|
201
|
+
.ui-textarea__input.el-textarea{
|
|
202
|
+
height: 100%;
|
|
203
|
+
display: flex;
|
|
204
|
+
flex-direction: column;
|
|
205
|
+
.el-textarea__inner{
|
|
206
|
+
flex: 1;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
&.is-worklimit.is-auto-height {
|
|
211
|
+
.el-textarea .el-textarea__inner{
|
|
212
|
+
overflow: hidden;
|
|
213
|
+
padding-right: 50px;
|
|
214
|
+
}
|
|
215
|
+
.el-input__count{
|
|
216
|
+
background: none;
|
|
217
|
+
position: absolute;
|
|
218
|
+
right: -3px;
|
|
219
|
+
bottom: 0;
|
|
220
|
+
height: 28px;
|
|
221
|
+
line-height: 28px;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
.ui-textarea__input.el-textarea .el-textarea__inner{
|
|
226
|
+
font-size: 14px;
|
|
227
|
+
transition: all .15s ease-in-out;
|
|
228
|
+
line-height: 24px;
|
|
229
|
+
padding: 3px 11px;
|
|
230
|
+
font-family: PingFangSC-Regular,PingFang SC;
|
|
231
|
+
border-radius: 0;
|
|
232
|
+
resize: none;
|
|
233
|
+
border: 0;
|
|
234
|
+
box-sizing: border-box;
|
|
235
|
+
}
|
|
236
|
+
.ui-textarea__view{
|
|
237
|
+
min-height: 24px;
|
|
238
|
+
padding: 3px 12px;
|
|
239
|
+
line-height: 24px;
|
|
240
|
+
white-space: pre-wrap;
|
|
241
|
+
}
|
|
242
|
+
.ui-textarea__prefixicon{
|
|
243
|
+
font-size: 18px;
|
|
244
|
+
}
|
|
245
|
+
</style>
|
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="ui-textbox" :class="{'has-icon': hasIcon, 'is-viewable': !editable}">
|
|
3
|
+
<div
|
|
4
|
+
class="ui-textbox__view"
|
|
5
|
+
v-if="!editable"
|
|
6
|
+
>
|
|
7
|
+
{{innerValue}}
|
|
8
|
+
</div>
|
|
9
|
+
<template v-else>
|
|
10
|
+
<span class="ui-textbox__icon" v-if="hasIcon" @click="handleIconClick">
|
|
11
|
+
<slot name="icon"></slot>
|
|
12
|
+
</span>
|
|
13
|
+
<el-input
|
|
14
|
+
ref="input"
|
|
15
|
+
class="ui-textbox__input"
|
|
16
|
+
:value="inputValue"
|
|
17
|
+
:type="type"
|
|
18
|
+
:disabled="disabled"
|
|
19
|
+
:readonly="readonly"
|
|
20
|
+
:size="size"
|
|
21
|
+
:placeholder="placeholder"
|
|
22
|
+
:clearable="clearable"
|
|
23
|
+
:maxlength="maxlength"
|
|
24
|
+
:show-word-limit="innerShowWordLimit"
|
|
25
|
+
:validate-event="validateEvent"
|
|
26
|
+
@keyup.native.13="handleEnter"
|
|
27
|
+
@focus="handleFocus"
|
|
28
|
+
@blur="handleBlur"
|
|
29
|
+
@clear="handleClear"
|
|
30
|
+
@change="handleChange"
|
|
31
|
+
@compositionstart.native="handleCompositionStart"
|
|
32
|
+
@compositionend.native="handleCompositionEnd"
|
|
33
|
+
@input="handleInput"
|
|
34
|
+
>
|
|
35
|
+
<template slot="prepend">
|
|
36
|
+
<slot name="prepend"></slot>
|
|
37
|
+
</template>
|
|
38
|
+
<template slot="suffix">
|
|
39
|
+
<slot name="suffix"></slot>
|
|
40
|
+
</template>
|
|
41
|
+
<template slot="append">
|
|
42
|
+
<slot name="append"></slot>
|
|
43
|
+
</template>
|
|
44
|
+
</el-input>
|
|
45
|
+
</template>
|
|
46
|
+
</div>
|
|
47
|
+
</template>
|
|
48
|
+
<script>
|
|
49
|
+
import { Input } from 'element-ui'
|
|
50
|
+
import 'element-ui/lib/theme-chalk/input.css'
|
|
51
|
+
|
|
52
|
+
export default {
|
|
53
|
+
name: 'UiTextbox',
|
|
54
|
+
components: {
|
|
55
|
+
ElInput: Input
|
|
56
|
+
},
|
|
57
|
+
props: {
|
|
58
|
+
showWordLimit: {
|
|
59
|
+
type: null
|
|
60
|
+
},
|
|
61
|
+
maxlength: {
|
|
62
|
+
type: [Number, String],
|
|
63
|
+
default: 120
|
|
64
|
+
},
|
|
65
|
+
size: {
|
|
66
|
+
type: String,
|
|
67
|
+
default: 'small'
|
|
68
|
+
},
|
|
69
|
+
clearable: {
|
|
70
|
+
type: Boolean,
|
|
71
|
+
default: false
|
|
72
|
+
},
|
|
73
|
+
type: {
|
|
74
|
+
type: String,
|
|
75
|
+
default: 'text',
|
|
76
|
+
validator: (val) => {
|
|
77
|
+
return ['password', 'text', 'number'].indexOf(val) >= 0
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
value: {
|
|
81
|
+
type: String
|
|
82
|
+
},
|
|
83
|
+
placeholder: {
|
|
84
|
+
type: String
|
|
85
|
+
},
|
|
86
|
+
editable: {
|
|
87
|
+
type: Boolean,
|
|
88
|
+
default: true
|
|
89
|
+
},
|
|
90
|
+
disabled: {
|
|
91
|
+
type: Boolean
|
|
92
|
+
},
|
|
93
|
+
readonly: {
|
|
94
|
+
type: Boolean
|
|
95
|
+
},
|
|
96
|
+
validateEvent: {
|
|
97
|
+
type: Boolean,
|
|
98
|
+
default: true
|
|
99
|
+
},
|
|
100
|
+
keepInput: {
|
|
101
|
+
type: Boolean,
|
|
102
|
+
default: true
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
data () {
|
|
106
|
+
return {
|
|
107
|
+
inputValue: ''
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
computed: {
|
|
111
|
+
innerValue: {
|
|
112
|
+
get () {
|
|
113
|
+
return this.value
|
|
114
|
+
},
|
|
115
|
+
set (val) {
|
|
116
|
+
this.$emit('input', val)
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
hasIcon () {
|
|
120
|
+
return this.$slots.icon
|
|
121
|
+
},
|
|
122
|
+
innerShowWordLimit () {
|
|
123
|
+
if (typeof this.showWordLimit === 'boolean') {
|
|
124
|
+
return this.showWordLimit
|
|
125
|
+
}
|
|
126
|
+
return !!this.maxlength
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
watch: {
|
|
130
|
+
innerValue () {
|
|
131
|
+
this.inputValue = this.innerValue
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
created () {
|
|
135
|
+
this.inputValue = this.innerValue
|
|
136
|
+
},
|
|
137
|
+
mounted () {
|
|
138
|
+
if (this.type === 'password') {
|
|
139
|
+
this.$refs.input.$refs.input.setAttribute('autocomplete', 'new-password')
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
methods: {
|
|
143
|
+
handleInput (value) {
|
|
144
|
+
if (this.keepInput) {
|
|
145
|
+
this.innerValue = value
|
|
146
|
+
} else {
|
|
147
|
+
this.inputValue = value
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
handleChange (e) {
|
|
151
|
+
this.$emit('change', {
|
|
152
|
+
value: e
|
|
153
|
+
})
|
|
154
|
+
},
|
|
155
|
+
handleEnter (e) {
|
|
156
|
+
this.innerValue = e.target.value.trim()
|
|
157
|
+
this.$emit('enter')
|
|
158
|
+
},
|
|
159
|
+
handleFocus (e) {
|
|
160
|
+
this.$emit('focus')
|
|
161
|
+
},
|
|
162
|
+
handleBlur (e) {
|
|
163
|
+
if (!this.keepInput) {
|
|
164
|
+
this.innerValue = (this.inputValue || '').trim()
|
|
165
|
+
}
|
|
166
|
+
this.$emit('blur')
|
|
167
|
+
},
|
|
168
|
+
handleClear () {
|
|
169
|
+
this.$emit('clear')
|
|
170
|
+
},
|
|
171
|
+
handleCompositionStart () {
|
|
172
|
+
this.$emit('composition-start')
|
|
173
|
+
},
|
|
174
|
+
handleCompositionEnd () {
|
|
175
|
+
this.$emit('composition-end')
|
|
176
|
+
},
|
|
177
|
+
handleIconClick () {
|
|
178
|
+
this.focus()
|
|
179
|
+
},
|
|
180
|
+
focus () {
|
|
181
|
+
this.$nextTick(() => {
|
|
182
|
+
this.$refs.input && this.$refs.input.focus && this.$refs.input.focus()
|
|
183
|
+
})
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
</script>
|
|
188
|
+
<style lang="less">
|
|
189
|
+
.ui-textbox{
|
|
190
|
+
outline: 0;
|
|
191
|
+
&.has-icon{
|
|
192
|
+
position: relative;
|
|
193
|
+
.ui-textbox__input{
|
|
194
|
+
.el-input__inner{
|
|
195
|
+
padding-left: 36px;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
.el-input-group__prepend{
|
|
200
|
+
.ui-button {
|
|
201
|
+
margin: -1px -10px!important;
|
|
202
|
+
border-color: transparent!important;
|
|
203
|
+
box-shadow: none!important;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
&.is-viewable{
|
|
207
|
+
.ui-textbox__view{
|
|
208
|
+
padding-left: 0;
|
|
209
|
+
padding-right: 0;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
.ui-textbox__input.el-input{
|
|
213
|
+
.el-input__inner{
|
|
214
|
+
box-sizing: border-box;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
.ui-textbox__icon{
|
|
219
|
+
position: absolute;
|
|
220
|
+
left: 10px;
|
|
221
|
+
top: 50%;
|
|
222
|
+
transform: translateY(-50%);
|
|
223
|
+
z-index: 300;
|
|
224
|
+
width: 20px;
|
|
225
|
+
text-align: center;
|
|
226
|
+
height: 20px;
|
|
227
|
+
line-height: 20px;
|
|
228
|
+
}
|
|
229
|
+
.ui-textbox__view{
|
|
230
|
+
position: relative;
|
|
231
|
+
line-height: 24px;
|
|
232
|
+
min-height: 24px;
|
|
233
|
+
padding: 4px 12px;
|
|
234
|
+
}
|
|
235
|
+
.ui-textbox__view-empty{
|
|
236
|
+
position: absolute;
|
|
237
|
+
bottom: -3px;
|
|
238
|
+
left: 12px;
|
|
239
|
+
color: transparent;
|
|
240
|
+
}
|
|
241
|
+
.ui-textbox__input.el-input{
|
|
242
|
+
&.el-input--suffix{
|
|
243
|
+
.el-input__inner{
|
|
244
|
+
padding-right: 38px;
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
.el-input__suffix{
|
|
248
|
+
z-index: 3;
|
|
249
|
+
}
|
|
250
|
+
.el-input__inner{
|
|
251
|
+
font-size: 14px;
|
|
252
|
+
transition: all .15s ease-in-out;
|
|
253
|
+
font-family: PingFangSC-Regular,PingFang SC;
|
|
254
|
+
padding-left: 11px;
|
|
255
|
+
padding-right: 11px;
|
|
256
|
+
position: relative;
|
|
257
|
+
z-index: 3;
|
|
258
|
+
&:focus{
|
|
259
|
+
border-color: #1aa2e8;
|
|
260
|
+
box-shadow: 0 0 0 0.2rem rgba(26, 162, 232,.25);
|
|
261
|
+
}
|
|
262
|
+
&::placeholder{
|
|
263
|
+
color: #bababa;
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
.el-input-group__prepend,
|
|
267
|
+
.el-input-group__append{
|
|
268
|
+
padding-left: 9px;
|
|
269
|
+
padding-right: 9px;
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
.ui-textbox.el-input--large{
|
|
273
|
+
line-height: 40px;
|
|
274
|
+
}
|
|
275
|
+
</style>
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<el-time-picker
|
|
3
|
+
class="ui-time-picker"
|
|
4
|
+
v-model="innerValue"
|
|
5
|
+
size="small"
|
|
6
|
+
range-separator="至"
|
|
7
|
+
:disabled="disabled"
|
|
8
|
+
:is-range="isRange"
|
|
9
|
+
:clearable="clearable"
|
|
10
|
+
:value-format="valueFormat"
|
|
11
|
+
:format="format"
|
|
12
|
+
:placeholder="placeholder"
|
|
13
|
+
:start-placeholder="startPlaceholder"
|
|
14
|
+
:end-placeholder="endPlaceholder"
|
|
15
|
+
@change="change"
|
|
16
|
+
></el-time-picker>
|
|
17
|
+
</template>
|
|
18
|
+
<script>
|
|
19
|
+
import ElTimePicker from 'element-ui/lib/time-picker'
|
|
20
|
+
import 'element-ui/lib/theme-chalk/time-picker.css'
|
|
21
|
+
|
|
22
|
+
export default {
|
|
23
|
+
name: 'UiTimePicker',
|
|
24
|
+
components: {
|
|
25
|
+
ElTimePicker
|
|
26
|
+
},
|
|
27
|
+
props: {
|
|
28
|
+
value: {
|
|
29
|
+
type: [Array, Date, String]
|
|
30
|
+
},
|
|
31
|
+
format: {
|
|
32
|
+
type: String
|
|
33
|
+
},
|
|
34
|
+
valueFormat: {
|
|
35
|
+
type: String,
|
|
36
|
+
default: 'yyyy-MM-dd HH:mm:ss'
|
|
37
|
+
},
|
|
38
|
+
clearable: {
|
|
39
|
+
type: Boolean,
|
|
40
|
+
default: true
|
|
41
|
+
},
|
|
42
|
+
disabled: {
|
|
43
|
+
type: Boolean,
|
|
44
|
+
default: false
|
|
45
|
+
},
|
|
46
|
+
startPlaceholder: {
|
|
47
|
+
type: String,
|
|
48
|
+
default: '开始时间'
|
|
49
|
+
},
|
|
50
|
+
endPlaceholder: {
|
|
51
|
+
type: String,
|
|
52
|
+
default: '结束时间'
|
|
53
|
+
},
|
|
54
|
+
isRange: {
|
|
55
|
+
type: Boolean,
|
|
56
|
+
default: false
|
|
57
|
+
},
|
|
58
|
+
placeholder: {
|
|
59
|
+
type: String
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
computed: {
|
|
63
|
+
innerValue: {
|
|
64
|
+
get () {
|
|
65
|
+
return this.value
|
|
66
|
+
},
|
|
67
|
+
set (val) {
|
|
68
|
+
this.$emit('input', val)
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
|
|
73
|
+
methods: {
|
|
74
|
+
change() {
|
|
75
|
+
this.$emit('change', this.innerValue)
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
</script>
|
|
80
|
+
<style lang="less">
|
|
81
|
+
.ui-time-picker.el-date-editor{
|
|
82
|
+
width: 100%;
|
|
83
|
+
}
|
|
84
|
+
</style>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import Toolbar from './toolbar.vue'
|
|
2
|
+
import ToolbarItem from './toolbar-item.vue'
|
|
3
|
+
|
|
4
|
+
Toolbar.install = (Vue) => {
|
|
5
|
+
Vue.component(Toolbar.name, Toolbar)
|
|
6
|
+
Vue.component(ToolbarItem.name, ToolbarItem)
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
Toolbar.ToolbarItem = ToolbarItem
|
|
10
|
+
|
|
11
|
+
export {
|
|
12
|
+
Toolbar,
|
|
13
|
+
ToolbarItem
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export default Toolbar
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="ui-toolbar-item" :class="{'is-divided': divided}" @click="handleClick">
|
|
3
|
+
<slot v-if="!divided"></slot>
|
|
4
|
+
</div>
|
|
5
|
+
</template>
|
|
6
|
+
<script>
|
|
7
|
+
export default {
|
|
8
|
+
name: 'UiToolbarItem',
|
|
9
|
+
props: {
|
|
10
|
+
divided: {
|
|
11
|
+
type: Boolean,
|
|
12
|
+
default: false
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
provide () {
|
|
16
|
+
return {
|
|
17
|
+
UiToolbarItem: this
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
methods: {
|
|
21
|
+
handleClick (evt) {
|
|
22
|
+
evt.stopPropagation()
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
</script>
|
|
27
|
+
<style lang="less">
|
|
28
|
+
.ui-toolbar-item{
|
|
29
|
+
vertical-align: top;
|
|
30
|
+
display: inline-block;
|
|
31
|
+
&.is-divided{
|
|
32
|
+
height: 20px;
|
|
33
|
+
width: 1px;
|
|
34
|
+
background-color: rgba(0,0,0,.06);
|
|
35
|
+
}
|
|
36
|
+
&:first-child{
|
|
37
|
+
margin-left: 0;
|
|
38
|
+
}
|
|
39
|
+
&:last-child{
|
|
40
|
+
margin-right: 0;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
</style>
|