@aochuang/common 1.0.1 → 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/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/tooltip/tooltip.vue +27 -7
- 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.vue +1 -1
- package/components/advanced-filter/advanced-filter.vue +6 -1
- package/components/advanced-filter/index.js +11 -12
- package/components/avatar/avatar.vue +9 -5
- package/components/button/button.vue +15 -2
- package/components/date-picker/date-picker.vue +9 -2
- package/components/dialog/dialog.vue +6 -1
- package/components/dropdown/dropdown-item.vue +10 -2
- package/components/dropdown/dropdown.vue +45 -5
- package/components/dropdown/index.js +8 -8
- package/components/empty/empty.vue +29 -2
- package/components/filter/filter.vue +1 -1
- package/components/filter/index.js +10 -10
- package/components/form/form.vue +33 -2
- package/components/form/index.js +11 -0
- package/components/grid/grid-column.vue +1 -0
- package/components/grid/grid-table.vue +6 -4
- package/components/grid/grid.vue +15 -3
- package/components/grid/index.js +31 -32
- package/components/icon/demo_index.html +2752 -1073
- package/components/icon/iconfont.css +299 -7
- package/components/icon/iconfont.js +1 -1
- package/components/icon/iconfont.json +518 -7
- package/components/icon/iconfont.ttf +0 -0
- package/components/icon/iconfont.woff +0 -0
- package/components/icon/iconfont.woff2 +0 -0
- package/components/image/image.vue +91 -13
- package/components/image/index.js +3 -1
- package/components/image/util.js +82 -1
- package/components/index.js +6 -2
- package/components/menu/index.js +13 -7
- package/components/menu/menu-group.vue +6 -1
- package/components/menu/menu-item.vue +57 -3
- package/components/menu/menu.vue +1 -1
- package/components/message/message.js +12 -9
- package/components/message-box/index.js +4 -0
- package/components/pagination/pagination.vue +11 -7
- package/components/popover/popover.vue +24 -1
- package/components/searchbox/searchbox.vue +15 -3
- package/components/select/index.js +2 -0
- package/components/select/select.vue +7 -1
- package/components/skeleton/index.js +2 -0
- package/components/sortable/index.js +7 -5
- package/components/sortable/sortable.vue +5 -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 +2 -0
- package/components/tabs/tabs.vue +5 -0
- package/components/tag/index.js +4 -4
- package/components/tag/tag.less +12 -3
- package/components/textarea/textarea.vue +19 -3
- package/components/time-picker/time-picker.vue +7 -0
- package/components/toolbar/index.js +2 -0
- package/components/transfer/index.js +4 -4
- package/components/transfer/transfer-element.vue +109 -0
- package/components/transfer/transfer.vue +22 -7
- package/components/tree/tree.vue +175 -16
- package/components/video/video.vue +50 -2
- package/package.json +12 -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 +484 -44
- package/utils/dom.js +37 -0
- package/utils/event.js +92 -0
- package/utils/file.js +76 -0
- package/utils/json.js +22 -1
- package/utils/network-detector.js +258 -0
- package/utils/oss.js +11 -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 +416 -1
|
@@ -0,0 +1,438 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"name": "weixiao",
|
|
4
|
+
"text": "微笑"
|
|
5
|
+
},
|
|
6
|
+
{
|
|
7
|
+
"name": "piezui",
|
|
8
|
+
"text": "撇嘴"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"name": "se",
|
|
12
|
+
"text": "色"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"name": "fadai",
|
|
16
|
+
"text": "发呆"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"name": "deyi",
|
|
20
|
+
"text": "得意"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "liulei",
|
|
24
|
+
"text": "流泪"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "haixiu",
|
|
28
|
+
"text": "害羞"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"name": "bizui",
|
|
32
|
+
"text": "闭嘴"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"name": "shui",
|
|
36
|
+
"text": "睡"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "daku",
|
|
40
|
+
"text": "大哭"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "ganga",
|
|
44
|
+
"text": "尴尬"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"name": "fanu",
|
|
48
|
+
"text": "发怒"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"name": "tiaopi",
|
|
52
|
+
"text": "调皮"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"name": "ciya",
|
|
56
|
+
"text": "呲牙"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"name": "jingya",
|
|
60
|
+
"text": "惊讶"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"name": "nanguo",
|
|
64
|
+
"text": "难过"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"name": "jiong",
|
|
68
|
+
"text": "囧"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"name": "zhuakuang",
|
|
72
|
+
"text": "抓狂"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"name": "tu",
|
|
76
|
+
"text": "吐"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"name": "touxiao",
|
|
80
|
+
"text": "偷笑"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"name": "yukuai",
|
|
84
|
+
"text": "愉快"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"name": "baiyan",
|
|
88
|
+
"text": "白眼"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"name": "aoman",
|
|
92
|
+
"text": "傲慢"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"name": "kun",
|
|
96
|
+
"text": "困"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"name": "jingkong",
|
|
100
|
+
"text": "惊恐"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"name": "hanxiao",
|
|
104
|
+
"text": "憨笑"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"name": "youxian",
|
|
108
|
+
"text": "悠闲"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"name": "zhouma",
|
|
112
|
+
"text": "咒骂"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"name": "yiwen",
|
|
116
|
+
"text": "疑问"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"name": "xu",
|
|
120
|
+
"text": "嘘"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"name": "yun",
|
|
124
|
+
"text": "晕"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"name": "shuai",
|
|
128
|
+
"text": "衰"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"name": "kulou",
|
|
132
|
+
"text": "骷髅"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"name": "qiaoda",
|
|
136
|
+
"text": "敲打"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"name": "zaijian",
|
|
140
|
+
"text": "再见"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"name": "cahan",
|
|
144
|
+
"text": "擦汗"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"name": "koubi",
|
|
148
|
+
"text": "抠鼻"
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"name": "guzhang",
|
|
152
|
+
"text": "鼓掌"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"name": "huaixiao",
|
|
156
|
+
"text": "坏笑"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"name": "youhengheng",
|
|
160
|
+
"text": "右哼哼"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"name": "bishi",
|
|
164
|
+
"text": "鄙视"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"name": "weiqu",
|
|
168
|
+
"text": "委屈"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"name": "kuaikule",
|
|
172
|
+
"text": "快哭了"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"name": "yinxian",
|
|
176
|
+
"text": "阴险"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"name": "qinqin",
|
|
180
|
+
"text": "亲亲"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"name": "kelian",
|
|
184
|
+
"text": "可怜"
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"name": "xiaolian",
|
|
188
|
+
"text": "笑脸"
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"name": "shengbing",
|
|
192
|
+
"text": "生病"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"name": "lianhong",
|
|
196
|
+
"text": "脸红"
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"name": "potiweixiao",
|
|
200
|
+
"text": "破涕为笑"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"name": "kongju",
|
|
204
|
+
"text": "恐惧"
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"name": "shiwang",
|
|
208
|
+
"text": "失望"
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"name": "wuyu",
|
|
212
|
+
"text": "无语"
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"name": "heiha",
|
|
216
|
+
"text": "嘿哈"
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"name": "wulian",
|
|
220
|
+
"text": "捂脸"
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"name": "jianxiao",
|
|
224
|
+
"text": "奸笑"
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"name": "jizhi",
|
|
228
|
+
"text": "机智"
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"name": "zhoumei",
|
|
232
|
+
"text": "皱眉"
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"name": "ye",
|
|
236
|
+
"text": "耶"
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
"name": "chigua",
|
|
240
|
+
"text": "吃瓜"
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"name": "jiayou",
|
|
244
|
+
"text": "加油"
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"name": "han",
|
|
248
|
+
"text": "汗"
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
"name": "tiana",
|
|
252
|
+
"text": "天啊"
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
"name": "Emm",
|
|
256
|
+
"text": "Emm"
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"name": "shehuishehui",
|
|
260
|
+
"text": "社会社会"
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"name": "wangcai",
|
|
264
|
+
"text": "旺柴"
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"name": "haode",
|
|
268
|
+
"text": "好的"
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
"name": "dalian",
|
|
272
|
+
"text": "打脸"
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"name": "wa",
|
|
276
|
+
"text": "哇"
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"name": "fanbaiyan",
|
|
280
|
+
"text": "翻白眼"
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"name": "666",
|
|
284
|
+
"text": "666"
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
"name": "rangwokankan",
|
|
288
|
+
"text": "让我看看"
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
"name": "tanqi",
|
|
292
|
+
"text": "叹气"
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
"name": "kuse",
|
|
296
|
+
"text": "苦涩"
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"name": "liekai",
|
|
300
|
+
"text": "裂开"
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
"name": "zuichun",
|
|
304
|
+
"text": "嘴唇"
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
"name": "aixin",
|
|
308
|
+
"text": "爱心"
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
"name": "xinsui",
|
|
312
|
+
"text": "心碎"
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
"name": "yongbao",
|
|
316
|
+
"text": "拥抱"
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
"name": "qiang",
|
|
320
|
+
"text": "强"
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
"name": "ruo",
|
|
324
|
+
"text": "弱"
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
"name": "woshou",
|
|
328
|
+
"text": "握手"
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
"name": "shengli",
|
|
332
|
+
"text": "胜利"
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
"name": "baoquan",
|
|
336
|
+
"text": "抱拳"
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
"name": "gouyin",
|
|
340
|
+
"text": "勾引"
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
"name": "quantou",
|
|
344
|
+
"text": "拳头"
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
"name": "OK",
|
|
348
|
+
"text": "OK"
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
"name": "heshi",
|
|
352
|
+
"text": "合十"
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
"name": "pijiu",
|
|
356
|
+
"text": "啤酒"
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
"name": "kafei",
|
|
360
|
+
"text": "咖啡"
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
"name": "dangao",
|
|
364
|
+
"text": "蛋糕"
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
"name": "meigui",
|
|
368
|
+
"text": "玫瑰"
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
"name": "diaoxie",
|
|
372
|
+
"text": "凋谢"
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
"name": "caidao",
|
|
376
|
+
"text": "菜刀"
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
"name": "zhadan",
|
|
380
|
+
"text": "炸弹"
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
"name": "bianbian",
|
|
384
|
+
"text": "便便"
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
"name": "yueliang",
|
|
388
|
+
"text": "月亮"
|
|
389
|
+
},
|
|
390
|
+
{
|
|
391
|
+
"name": "taiyang",
|
|
392
|
+
"text": "太阳"
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
"name": "qingzhu",
|
|
396
|
+
"text": "庆祝"
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
"name": "liwu",
|
|
400
|
+
"text": "礼物"
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
"name": "hongbao",
|
|
404
|
+
"text": "红包"
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
"name": "fa",
|
|
408
|
+
"text": "發"
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
"name": "fu",
|
|
412
|
+
"text": "福"
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
"name": "yanhua",
|
|
416
|
+
"text": "烟花"
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
"name": "baozhu",
|
|
420
|
+
"text": "爆竹"
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
"name": "zhutou",
|
|
424
|
+
"text": "猪头"
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
"name": "tiaotiao",
|
|
428
|
+
"text": "跳跳"
|
|
429
|
+
},
|
|
430
|
+
{
|
|
431
|
+
"name": "fadou",
|
|
432
|
+
"text": "发抖"
|
|
433
|
+
},
|
|
434
|
+
{
|
|
435
|
+
"name": "zhuanquan",
|
|
436
|
+
"text": "转圈"
|
|
437
|
+
}
|
|
438
|
+
]
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import EmojiOrder from './order.json'
|
|
2
|
+
import { html2Escape } from '@/utils/string'
|
|
3
|
+
|
|
4
|
+
let emojiRegrex = null
|
|
5
|
+
function generateEmojiRegrex () {
|
|
6
|
+
if (emojiRegrex) {
|
|
7
|
+
return emojiRegrex
|
|
8
|
+
}
|
|
9
|
+
const content = EmojiOrder.map(v => '\\[' + v.text + '\\]').join('|')
|
|
10
|
+
emojiRegrex = new RegExp(`(${content})`, 'g')
|
|
11
|
+
return emojiRegrex
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
let emojiPath = null
|
|
15
|
+
function generateEmojiPaths () {
|
|
16
|
+
if (emojiPath) {
|
|
17
|
+
return emojiPath
|
|
18
|
+
}
|
|
19
|
+
emojiPath = EmojiOrder.reduce((rs, v) => {
|
|
20
|
+
rs[v.text] = `./static/images/emoji/${v.name}.png`
|
|
21
|
+
return rs
|
|
22
|
+
}, {})
|
|
23
|
+
return emojiPath
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export function loadWechatEmojiOptionsData () {
|
|
27
|
+
return new Promise((resolve, reject) => {
|
|
28
|
+
const data = generateEmojiPaths()
|
|
29
|
+
resolve(Object.keys(data).reduce((rs, k) => {
|
|
30
|
+
rs.push({
|
|
31
|
+
label: k,
|
|
32
|
+
src: data[k]
|
|
33
|
+
})
|
|
34
|
+
return rs
|
|
35
|
+
}, []))
|
|
36
|
+
})
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function parseWechatEmoji (content, isEscape) {
|
|
40
|
+
if (isEscape !== false) {
|
|
41
|
+
content = html2Escape(content)
|
|
42
|
+
}
|
|
43
|
+
const regrex = generateEmojiRegrex()
|
|
44
|
+
const paths = generateEmojiPaths()
|
|
45
|
+
return content.replace(regrex, (str1, str2) => {
|
|
46
|
+
const emoji = str2.substr(1, str2.length - 2)
|
|
47
|
+
if (paths[emoji]) {
|
|
48
|
+
return `<img width="24px" height="24px" src="${paths[emoji]}" alt="${emoji}" ignore="1" style="vertical-align: top;"/>`
|
|
49
|
+
}
|
|
50
|
+
return str2
|
|
51
|
+
})
|
|
52
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view class="ac-wechat-emoji">
|
|
3
|
+
<view class="ac-wechat-emoji__list">
|
|
4
|
+
<view
|
|
5
|
+
class="ac-wechat-emoji__item"
|
|
6
|
+
v-for="(item, index) in data"
|
|
7
|
+
:key="index"
|
|
8
|
+
:style="{'background-image': `url(${item.src})`}"
|
|
9
|
+
:title="item.label"
|
|
10
|
+
@click="handleItemClick(item)"
|
|
11
|
+
>{{item.label}}</view>
|
|
12
|
+
</view>
|
|
13
|
+
</view>
|
|
14
|
+
</template>
|
|
15
|
+
<script>
|
|
16
|
+
import { loadWechatEmojiOptionsData } from './utils'
|
|
17
|
+
|
|
18
|
+
export default {
|
|
19
|
+
name: 'AcWechatEmoji',
|
|
20
|
+
data () {
|
|
21
|
+
return {
|
|
22
|
+
loading: false,
|
|
23
|
+
data: []
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
created () {
|
|
27
|
+
this.loadWechatEmojiOptionsData()
|
|
28
|
+
},
|
|
29
|
+
methods: {
|
|
30
|
+
handleItemClick (item) {
|
|
31
|
+
this.$emit('select', {
|
|
32
|
+
item
|
|
33
|
+
})
|
|
34
|
+
},
|
|
35
|
+
loadWechatEmojiOptionsData () {
|
|
36
|
+
this.loading = true
|
|
37
|
+
loadWechatEmojiOptionsData().then((rs) => {
|
|
38
|
+
this.loading = false
|
|
39
|
+
this.data = rs || []
|
|
40
|
+
}, () => {
|
|
41
|
+
this.loading = false
|
|
42
|
+
})
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
</script>
|
|
47
|
+
<style lang="less">
|
|
48
|
+
.ac-wechat-emoji__list{
|
|
49
|
+
margin: 0;
|
|
50
|
+
padding: 6px;
|
|
51
|
+
&:after{
|
|
52
|
+
content: '';
|
|
53
|
+
display: block;
|
|
54
|
+
clear: both;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
.ac-wechat-emoji__item{
|
|
58
|
+
float: left;
|
|
59
|
+
width: 36px;
|
|
60
|
+
height: 36px;
|
|
61
|
+
text-align: center;
|
|
62
|
+
line-height: 999;
|
|
63
|
+
overflow: hidden;
|
|
64
|
+
background-repeat: no-repeat;
|
|
65
|
+
background-position: 50% 50%;
|
|
66
|
+
background-size: 24px;
|
|
67
|
+
transition: all .3s;
|
|
68
|
+
border-radius: 3px;
|
|
69
|
+
cursor: pointer;
|
|
70
|
+
&:hover{
|
|
71
|
+
background-color: #f3f3f3;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
</style>
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="bi-avatar" :class="['bi-avatar--' + size, {'is-image': !!src}]">
|
|
3
|
+
<template v-if="src">
|
|
4
|
+
<ui-image class="bi-avatar__image" :width="innerSize" :height="innerSize" :shape="shape" radius="3px" :src="src"></ui-image>
|
|
5
|
+
</template>
|
|
6
|
+
<template v-else>
|
|
7
|
+
<view class="bi-avatar__control" :style="{'background-color': bgColor, 'width': innerSize, 'height': innerSize}">{{firstText}}</view>
|
|
8
|
+
</template>
|
|
9
|
+
</div>
|
|
10
|
+
</template>
|
|
11
|
+
|
|
12
|
+
<script>
|
|
13
|
+
import UiImage from '../image/image.vue'
|
|
14
|
+
import { getStringColor } from '@/utils/color'
|
|
15
|
+
|
|
16
|
+
export default {
|
|
17
|
+
name: 'BiAvatar',
|
|
18
|
+
components: {
|
|
19
|
+
UiImage
|
|
20
|
+
},
|
|
21
|
+
props: {
|
|
22
|
+
src: {
|
|
23
|
+
type: String
|
|
24
|
+
},
|
|
25
|
+
name: {
|
|
26
|
+
type: String
|
|
27
|
+
},
|
|
28
|
+
round: {
|
|
29
|
+
type: Boolean
|
|
30
|
+
},
|
|
31
|
+
size: {
|
|
32
|
+
type: String,
|
|
33
|
+
default: 'small'
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
computed: {
|
|
37
|
+
innerSize () {
|
|
38
|
+
const map = {
|
|
39
|
+
mini: '24px',
|
|
40
|
+
small: '32px',
|
|
41
|
+
medium: '48px',
|
|
42
|
+
large: '64px'
|
|
43
|
+
}
|
|
44
|
+
return map[this.size]
|
|
45
|
+
},
|
|
46
|
+
shape () {
|
|
47
|
+
return this.round ? 'circle' : 'square'
|
|
48
|
+
},
|
|
49
|
+
firstText () {
|
|
50
|
+
return this.name ? this.name.substr(0 - 2).toLocaleUpperCase() : ''
|
|
51
|
+
},
|
|
52
|
+
bgColor () {
|
|
53
|
+
return getStringColor(this.name)
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
</script>
|
|
58
|
+
|
|
59
|
+
<style lang="less">
|
|
60
|
+
.bi-avatar{
|
|
61
|
+
display: inline-block;
|
|
62
|
+
line-height: 1em;
|
|
63
|
+
vertical-align: top;
|
|
64
|
+
}
|
|
65
|
+
.bi-avatar__control{
|
|
66
|
+
border-radius: 3px;
|
|
67
|
+
text-align: center;
|
|
68
|
+
color: #fff;
|
|
69
|
+
font-size: 12px;
|
|
70
|
+
font-weight: 500;
|
|
71
|
+
display: flex;
|
|
72
|
+
flex-direction: column;
|
|
73
|
+
align-items: center;
|
|
74
|
+
justify-content: center;
|
|
75
|
+
}
|
|
76
|
+
.bi-avatar--large {
|
|
77
|
+
.bi-avatar__control {
|
|
78
|
+
font-size: 18px;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
</style>
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view class="bi-badge" :class="{'is-dot' : isDot}">
|
|
3
|
+
{{ isDot ? '' : showText }}
|
|
4
|
+
</view>
|
|
5
|
+
</template>
|
|
6
|
+
|
|
7
|
+
<script>
|
|
8
|
+
export default {
|
|
9
|
+
name: 'BiBadge',
|
|
10
|
+
props: {
|
|
11
|
+
value: {
|
|
12
|
+
type: Number
|
|
13
|
+
},
|
|
14
|
+
max: {
|
|
15
|
+
type: Number
|
|
16
|
+
},
|
|
17
|
+
isDot: {
|
|
18
|
+
type: Boolean,
|
|
19
|
+
default: false
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
computed: {
|
|
23
|
+
showText () {
|
|
24
|
+
if (this.max) {
|
|
25
|
+
return this.value > this.max ? (this.max + '+') : this.value
|
|
26
|
+
} else {
|
|
27
|
+
return this.value
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
</script>
|
|
33
|
+
|
|
34
|
+
<style lang="less">
|
|
35
|
+
.bi-badge {
|
|
36
|
+
display: inline-block;
|
|
37
|
+
background-color: #f56c6c;
|
|
38
|
+
color: #fff;
|
|
39
|
+
text-align: center;
|
|
40
|
+
font-size: 12px;
|
|
41
|
+
margin-left: 2px;
|
|
42
|
+
border: 1px solid #fff;
|
|
43
|
+
box-sizing: content-box;
|
|
44
|
+
&:not(.is-dot) {
|
|
45
|
+
border-radius: 10px;
|
|
46
|
+
height: 18px;
|
|
47
|
+
line-height: 18px;
|
|
48
|
+
padding: 0 6px;
|
|
49
|
+
min-width: 8px;
|
|
50
|
+
}
|
|
51
|
+
&.is-dot{
|
|
52
|
+
width: 8px;
|
|
53
|
+
height: 8px;
|
|
54
|
+
border-radius: 4px;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
</style>
|