@cloudbase/weda-ui 0.2.5 → 0.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +4 -4
- package/src/.DS_Store +0 -0
- package/src/configs/components/container.json +2 -1
- package/src/configs/components/form/input.json +6 -0
- package/src/configs/components/form/richText.json +2 -1
- package/src/configs/components/form/uploader.json +10 -5
- package/src/configs/components/image.json +2 -1
- package/src/configs/components/link.json +2 -1
- package/src/configs/components/richtextview.json +2 -1
- package/src/configs/components/scrollVeiw.json +2 -1
- package/src/configs/components/swiper.json +2 -1
- package/src/configs/components/tabs.json +31 -86
- package/src/configs/components/text.json +2 -1
- package/src/configs/index.js +3 -5
- package/src/index.js +2 -3
- package/src/mp/components/form/input/index.js +5 -1
- package/src/mp/components/form/input/index.wxml +2 -1
- package/src/mp/components/form/select/index.js +2 -2
- package/src/mp/components/form/textarea/index.wxml +1 -0
- package/src/mp/components/form/uploader/index.js +50 -13
- package/src/mp/components/form/uploader/index.wxml +11 -1
- package/src/mp/components/image/index.js +57 -8
- package/src/mp/components/image/index.json +4 -1
- package/src/mp/components/image/index.wxml +4 -2
- package/src/mp/components/image/index.wxss +15 -0
- package/src/mp/components/richText/index.wxml +3 -1
- package/src/mp/components/tabs/index.js +22 -6
- package/src/mp/utils/deepEqual.js +42 -0
- package/src/web/actions/index.js +2 -4
- package/src/web/components/form/checkbox/index.jsx +8 -10
- package/src/web/components/form/formcell/index.jsx +1 -1
- package/src/web/components/form/input/index.jsx +16 -18
- package/src/web/components/form/radio/index.jsx +7 -7
- package/src/web/components/form/select/h5.jsx +1 -1
- package/src/web/components/form/select/region/{cities.json → cities.js} +2 -2
- package/src/web/components/form/select/region/index.js +3 -3
- package/src/web/components/form/select/region/{provinces.json → provinces.js} +2 -2
- package/src/web/components/form/select/region/{regions.json → regions.js} +2 -2
- package/src/web/components/form/switch/index.jsx +4 -9
- package/src/web/components/form/textarea/index.jsx +4 -12
- package/src/web/components/form/uploader/index.css +15 -0
- package/src/web/components/form/uploader/index.jsx +2 -2
- package/src/web/components/form/uploader/uploader.h5.jsx +237 -0
- package/src/web/components/form/uploader/{uploaderPc.jsx → uploader.pc.jsx} +76 -58
- package/src/web/components/image/image.jsx +79 -5
- package/src/web/components/image/index.css +18 -0
- package/src/web/components/image/index.jsx +1 -0
- package/src/web/components/index.js +26 -58
- package/src/web/components/richTextView/index.css +0 -10
- package/src/web/components/richTextView/index.jsx +1 -12
- package/src/web/components/tabs/{index.js → index.jsx} +3 -3
- package/src/web/components/tabs/{tabsH5.js → tabs.h5.jsx} +9 -47
- package/src/web/components/tabs/{tabsPc.js → tabs.pc.jsx} +13 -47
- package/src/web/components/uploaderView/index.jsx +1 -1
- package/src/web/index.js +2 -3
- package/src/web/utils/isObjectEqual.js +10 -1
- package/src/web/utils/useSyncValue.js +14 -0
- package/src/web/weda-ui.css +8 -0
- package/src/configs/components/markdown.json +0 -17
- package/src/mp/components/markdown/index.js +0 -27
- package/src/mp/components/markdown/index.json +0 -6
- package/src/mp/components/markdown/index.wxml +0 -1
- package/src/mp/components/markdown/towxml/audio-player/Audio.js +0 -99
- package/src/mp/components/markdown/towxml/audio-player/audio-player.js +0 -102
- package/src/mp/components/markdown/towxml/audio-player/audio-player.json +0 -5
- package/src/mp/components/markdown/towxml/audio-player/audio-player.wxml +0 -14
- package/src/mp/components/markdown/towxml/audio-player/audio-player.wxss +0 -175
- package/src/mp/components/markdown/towxml/audio-player/loading.svg +0 -1
- package/src/mp/components/markdown/towxml/config.js +0 -285
- package/src/mp/components/markdown/towxml/decode.js +0 -26
- package/src/mp/components/markdown/towxml/decode.json +0 -12
- package/src/mp/components/markdown/towxml/decode.wxml +0 -1
- package/src/mp/components/markdown/towxml/decode.wxss +0 -0
- package/src/mp/components/markdown/towxml/img/img.js +0 -98
- package/src/mp/components/markdown/towxml/img/img.json +0 -3
- package/src/mp/components/markdown/towxml/img/img.wxml +0 -1
- package/src/mp/components/markdown/towxml/img/img.wxss +0 -0
- package/src/mp/components/markdown/towxml/index.js +0 -19
- package/src/mp/components/markdown/towxml/latex/latex.js +0 -53
- package/src/mp/components/markdown/towxml/latex/latex.json +0 -5
- package/src/mp/components/markdown/towxml/latex/latex.wxml +0 -1
- package/src/mp/components/markdown/towxml/latex/latex.wxss +0 -0
- package/src/mp/components/markdown/towxml/parse/highlight/highlight.js +0 -729
- package/src/mp/components/markdown/towxml/parse/highlight/index.js +0 -7
- package/src/mp/components/markdown/towxml/parse/highlight/languages/bash.js +0 -91
- package/src/mp/components/markdown/towxml/parse/highlight/languages/c-like.js +0 -244
- package/src/mp/components/markdown/towxml/parse/highlight/languages/c.js +0 -20
- package/src/mp/components/markdown/towxml/parse/highlight/languages/css.js +0 -138
- package/src/mp/components/markdown/towxml/parse/highlight/languages/dart.js +0 -135
- package/src/mp/components/markdown/towxml/parse/highlight/languages/go.js +0 -57
- package/src/mp/components/markdown/towxml/parse/highlight/languages/htmlbars.js +0 -79
- package/src/mp/components/markdown/towxml/parse/highlight/languages/java.js +0 -126
- package/src/mp/components/markdown/towxml/parse/highlight/languages/javascript.js +0 -263
- package/src/mp/components/markdown/towxml/parse/highlight/languages/json.js +0 -51
- package/src/mp/components/markdown/towxml/parse/highlight/languages/less.js +0 -177
- package/src/mp/components/markdown/towxml/parse/highlight/languages/nginx.js +0 -103
- package/src/mp/components/markdown/towxml/parse/highlight/languages/php.js +0 -152
- package/src/mp/components/markdown/towxml/parse/highlight/languages/python-repl.js +0 -27
- package/src/mp/components/markdown/towxml/parse/highlight/languages/python.js +0 -146
- package/src/mp/components/markdown/towxml/parse/highlight/languages/scss.js +0 -137
- package/src/mp/components/markdown/towxml/parse/highlight/languages/shell.js +0 -23
- package/src/mp/components/markdown/towxml/parse/highlight/languages/typescript.js +0 -198
- package/src/mp/components/markdown/towxml/parse/highlight/languages/xml.js +0 -143
- package/src/mp/components/markdown/towxml/parse/highlight/style/github.wxss +0 -99
- package/src/mp/components/markdown/towxml/parse/highlight/style/monokai.wxss +0 -70
- package/src/mp/components/markdown/towxml/parse/index.js +0 -106
- package/src/mp/components/markdown/towxml/parse/markdown/index.js +0 -53
- package/src/mp/components/markdown/towxml/parse/markdown/markdown.js +0 -5834
- package/src/mp/components/markdown/towxml/parse/markdown/plugins/emoji.js +0 -1773
- package/src/mp/components/markdown/towxml/parse/markdown/plugins/ins.js +0 -120
- package/src/mp/components/markdown/towxml/parse/markdown/plugins/latex.js +0 -193
- package/src/mp/components/markdown/towxml/parse/markdown/plugins/mark.js +0 -120
- package/src/mp/components/markdown/towxml/parse/markdown/plugins/sub.js +0 -95
- package/src/mp/components/markdown/towxml/parse/markdown/plugins/sup.js +0 -95
- package/src/mp/components/markdown/towxml/parse/markdown/plugins/todo.js +0 -220
- package/src/mp/components/markdown/towxml/parse/markdown/plugins/yuml.js +0 -18
- package/src/mp/components/markdown/towxml/parse/parse2/Parser.js +0 -263
- package/src/mp/components/markdown/towxml/parse/parse2/Tokenizer.js +0 -507
- package/src/mp/components/markdown/towxml/parse/parse2/domhandler/index.js +0 -104
- package/src/mp/components/markdown/towxml/parse/parse2/domhandler/node.js +0 -169
- package/src/mp/components/markdown/towxml/parse/parse2/entities/decode.js +0 -54
- package/src/mp/components/markdown/towxml/parse/parse2/entities/decode_codepoint.js +0 -19
- package/src/mp/components/markdown/towxml/parse/parse2/entities/encode.js +0 -54
- package/src/mp/components/markdown/towxml/parse/parse2/entities/index.js +0 -30
- package/src/mp/components/markdown/towxml/parse/parse2/entities/maps/decode.js +0 -31
- package/src/mp/components/markdown/towxml/parse/parse2/entities/maps/entities.js +0 -2128
- package/src/mp/components/markdown/towxml/parse/parse2/entities/maps/legacy.js +0 -109
- package/src/mp/components/markdown/towxml/parse/parse2/entities/maps/xml.js +0 -2
- package/src/mp/components/markdown/towxml/parse/parse2/index.js +0 -8
- package/src/mp/components/markdown/towxml/style/main.wxss +0 -378
- package/src/mp/components/markdown/towxml/style/theme/dark.wxss +0 -73
- package/src/mp/components/markdown/towxml/style/theme/light.wxss +0 -63
- package/src/mp/components/markdown/towxml/table/table.js +0 -11
- package/src/mp/components/markdown/towxml/table/table.json +0 -6
- package/src/mp/components/markdown/towxml/table/table.wxml +0 -24
- package/src/mp/components/markdown/towxml/table/table.wxss +0 -0
- package/src/mp/components/markdown/towxml/todogroup/todogroup.js +0 -19
- package/src/mp/components/markdown/towxml/todogroup/todogroup.json +0 -6
- package/src/mp/components/markdown/towxml/todogroup/todogroup.wxml +0 -13
- package/src/mp/components/markdown/towxml/todogroup/todogroup.wxss +0 -3
- package/src/mp/components/markdown/towxml/towxml.js +0 -17
- package/src/mp/components/markdown/towxml/towxml.json +0 -6
- package/src/mp/components/markdown/towxml/towxml.wxml +0 -5
- package/src/mp/components/markdown/towxml/towxml.wxss +0 -8
- package/src/mp/components/markdown/towxml/yuml/yuml.js +0 -51
- package/src/mp/components/markdown/towxml/yuml/yuml.json +0 -5
- package/src/mp/components/markdown/towxml/yuml/yuml.wxml +0 -5
- package/src/mp/components/markdown/towxml/yuml/yuml.wxss +0 -0
- package/src/web/components/form/uploader/uploaderH5.jsx +0 -192
- package/src/web/components/markdown/index.jsx +0 -40
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
/* ! Project:无, Create:FWS 2020.01.08 21:48, Update:FWS 2020.01.08 21:48 */
|
|
2
|
-
module.exports = {
|
|
3
|
-
Aacute: 'Á',
|
|
4
|
-
aacute: 'á',
|
|
5
|
-
Acirc: 'Â',
|
|
6
|
-
acirc: 'â',
|
|
7
|
-
acute: '´',
|
|
8
|
-
AElig: 'Æ',
|
|
9
|
-
aelig: 'æ',
|
|
10
|
-
Agrave: 'À',
|
|
11
|
-
agrave: 'à',
|
|
12
|
-
amp: '&',
|
|
13
|
-
AMP: '&',
|
|
14
|
-
Aring: 'Å',
|
|
15
|
-
aring: 'å',
|
|
16
|
-
Atilde: 'Ã',
|
|
17
|
-
atilde: 'ã',
|
|
18
|
-
Auml: 'Ä',
|
|
19
|
-
auml: 'ä',
|
|
20
|
-
brvbar: '¦',
|
|
21
|
-
Ccedil: 'Ç',
|
|
22
|
-
ccedil: 'ç',
|
|
23
|
-
cedil: '¸',
|
|
24
|
-
cent: '¢',
|
|
25
|
-
copy: '©',
|
|
26
|
-
COPY: '©',
|
|
27
|
-
curren: '¤',
|
|
28
|
-
deg: '°',
|
|
29
|
-
divide: '÷',
|
|
30
|
-
Eacute: 'É',
|
|
31
|
-
eacute: 'é',
|
|
32
|
-
Ecirc: 'Ê',
|
|
33
|
-
ecirc: 'ê',
|
|
34
|
-
Egrave: 'È',
|
|
35
|
-
egrave: 'è',
|
|
36
|
-
ETH: 'Ð',
|
|
37
|
-
eth: 'ð',
|
|
38
|
-
Euml: 'Ë',
|
|
39
|
-
euml: 'ë',
|
|
40
|
-
frac12: '½',
|
|
41
|
-
frac14: '¼',
|
|
42
|
-
frac34: '¾',
|
|
43
|
-
gt: '>',
|
|
44
|
-
GT: '>',
|
|
45
|
-
Iacute: 'Í',
|
|
46
|
-
iacute: 'í',
|
|
47
|
-
Icirc: 'Î',
|
|
48
|
-
icirc: 'î',
|
|
49
|
-
iexcl: '¡',
|
|
50
|
-
Igrave: 'Ì',
|
|
51
|
-
igrave: 'ì',
|
|
52
|
-
iquest: '¿',
|
|
53
|
-
Iuml: 'Ï',
|
|
54
|
-
iuml: 'ï',
|
|
55
|
-
laquo: '«',
|
|
56
|
-
lt: '<',
|
|
57
|
-
LT: '<',
|
|
58
|
-
macr: '¯',
|
|
59
|
-
micro: 'µ',
|
|
60
|
-
middot: '·',
|
|
61
|
-
nbsp: ' ',
|
|
62
|
-
not: '¬',
|
|
63
|
-
Ntilde: 'Ñ',
|
|
64
|
-
ntilde: 'ñ',
|
|
65
|
-
Oacute: 'Ó',
|
|
66
|
-
oacute: 'ó',
|
|
67
|
-
Ocirc: 'Ô',
|
|
68
|
-
ocirc: 'ô',
|
|
69
|
-
Ograve: 'Ò',
|
|
70
|
-
ograve: 'ò',
|
|
71
|
-
ordf: 'ª',
|
|
72
|
-
ordm: 'º',
|
|
73
|
-
Oslash: 'Ø',
|
|
74
|
-
oslash: 'ø',
|
|
75
|
-
Otilde: 'Õ',
|
|
76
|
-
otilde: 'õ',
|
|
77
|
-
Ouml: 'Ö',
|
|
78
|
-
ouml: 'ö',
|
|
79
|
-
para: '¶',
|
|
80
|
-
plusmn: '±',
|
|
81
|
-
pound: '£',
|
|
82
|
-
quot: '"',
|
|
83
|
-
QUOT: '"',
|
|
84
|
-
raquo: '»',
|
|
85
|
-
reg: '®',
|
|
86
|
-
REG: '®',
|
|
87
|
-
sect: '§',
|
|
88
|
-
shy: '',
|
|
89
|
-
sup1: '¹',
|
|
90
|
-
sup2: '²',
|
|
91
|
-
sup3: '³',
|
|
92
|
-
szlig: 'ß',
|
|
93
|
-
THORN: 'Þ',
|
|
94
|
-
thorn: 'þ',
|
|
95
|
-
times: '×',
|
|
96
|
-
Uacute: 'Ú',
|
|
97
|
-
uacute: 'ú',
|
|
98
|
-
Ucirc: 'Û',
|
|
99
|
-
ucirc: 'û',
|
|
100
|
-
Ugrave: 'Ù',
|
|
101
|
-
ugrave: 'ù',
|
|
102
|
-
uml: '¨',
|
|
103
|
-
Uuml: 'Ü',
|
|
104
|
-
uuml: 'ü',
|
|
105
|
-
Yacute: 'Ý',
|
|
106
|
-
yacute: 'ý',
|
|
107
|
-
yen: '¥',
|
|
108
|
-
yuml: 'ÿ',
|
|
109
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/* ! Project:无, Create:FWS 2020.01.08 21:48, Update:FWS 2020.01.08 21:48 */
|
|
2
|
-
function parseDOM(r, e) {
|
|
3
|
-
const a = new domhandler_1.DomHandler(void 0, e);
|
|
4
|
-
return new Parser_1.Parser(a, e).end(r), a.dom;
|
|
5
|
-
}
|
|
6
|
-
var domhandler_1 = require('./domhandler/index');
|
|
7
|
-
var Parser_1 = require('./Parser');
|
|
8
|
-
module.exports = parseDOM;
|
|
@@ -1,378 +0,0 @@
|
|
|
1
|
-
/*正文样式*/
|
|
2
|
-
.h2w {
|
|
3
|
-
font-family: PingFang SC, Lantinghei SC, Microsoft Yahei, Hiragino Sans GB, Microsoft Sans Serif, WenQuanYi Micro Hei, sans-serif;
|
|
4
|
-
font-weight:300;
|
|
5
|
-
font-size: 32rpx;
|
|
6
|
-
line-height: 1.8;
|
|
7
|
-
word-wrap: break-word;
|
|
8
|
-
word-break: normal;
|
|
9
|
-
text-align:justify;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.h2w__main {
|
|
13
|
-
margin: 0 40rpx 40rpx 40rpx;
|
|
14
|
-
padding-top: 40rpx;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
/**标题**/
|
|
18
|
-
.h2w__h1,
|
|
19
|
-
.h2w__h2,
|
|
20
|
-
.h2w__h3,
|
|
21
|
-
.h2w__h4,
|
|
22
|
-
.h2w__h5,
|
|
23
|
-
.h2w__h6 {
|
|
24
|
-
font-weight: bold;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
/**设置行间元素样式**/
|
|
28
|
-
.h2w__span,
|
|
29
|
-
.h2w__b,
|
|
30
|
-
.h2w__strong,
|
|
31
|
-
.h2w__i,
|
|
32
|
-
.h2w__em,
|
|
33
|
-
.h2w__code,
|
|
34
|
-
.h2w__sub,
|
|
35
|
-
.h2w__sup,
|
|
36
|
-
.h2w__g-emoji,
|
|
37
|
-
.h2w__mark,
|
|
38
|
-
.h2w__u,
|
|
39
|
-
.h2w__ins {
|
|
40
|
-
display:inline;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.h2w__h1 {
|
|
44
|
-
border-bottom-style: double;
|
|
45
|
-
border-bottom-width: 6rpx;
|
|
46
|
-
font-size: 42rpx;
|
|
47
|
-
padding-bottom: 10rpx;
|
|
48
|
-
margin-bottom: 20rpx;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.h2w__h2 {
|
|
52
|
-
border-bottom-style: solid;
|
|
53
|
-
border-bottom-width: 1rpx;
|
|
54
|
-
font-size: 40rpx;
|
|
55
|
-
padding-bottom: 8rpx;
|
|
56
|
-
margin-bottom: 18rpx;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.h2w__h3 {
|
|
60
|
-
font-size: 38rpx;
|
|
61
|
-
padding-bottom: 6rpx;
|
|
62
|
-
margin-bottom: 12rpx;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.h2w__h4 {
|
|
66
|
-
font-size: 36rpx;
|
|
67
|
-
padding-bottom: 4rpx;
|
|
68
|
-
margin-bottom: 12rpx;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.h2w__h5 {
|
|
72
|
-
font-size: 34rpx;
|
|
73
|
-
padding-bottom: 2rpx;
|
|
74
|
-
margin-bottom: 12rpx;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.h2w__h6 {
|
|
78
|
-
margin-bottom: 12rpx;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
/**表格**/
|
|
83
|
-
.h2w__tableParent {
|
|
84
|
-
width:100%;
|
|
85
|
-
overflow-x:auto;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.h2w__table {
|
|
89
|
-
width: 100%;
|
|
90
|
-
border-collapse: collapse;
|
|
91
|
-
border-spacing: 0;
|
|
92
|
-
display: table;
|
|
93
|
-
margin-bottom: 40rpx;
|
|
94
|
-
white-space: nowrap;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.h2w__table .h2w__tr:nth-child(2n) {
|
|
98
|
-
background-color: red;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.h2w__colgroup {
|
|
102
|
-
display: table-column-group;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.h2w__col {
|
|
106
|
-
display: table-column;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.h2w__thead {
|
|
110
|
-
display: table-header-group;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.h2w__tbody {
|
|
114
|
-
display: table-row-group;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.h2w__tfoot {
|
|
118
|
-
display: table-footer-group;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.h2w__tr {
|
|
122
|
-
display: table-row;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
.h2w__th,
|
|
126
|
-
.h2w__td {
|
|
127
|
-
padding: 8rpx 16rpx;
|
|
128
|
-
font-size: 28rpx;
|
|
129
|
-
border-width: 1rpx;
|
|
130
|
-
border-style: solid;
|
|
131
|
-
display: table-cell;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
.h2w__th {
|
|
135
|
-
font-weight: bold;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
/**代码块**/
|
|
139
|
-
.h2w__pre {
|
|
140
|
-
/*white-space:nowrap;*/
|
|
141
|
-
padding: 10rpx 14rpx 10rpx 10rpx;
|
|
142
|
-
font-size: 28rpx;
|
|
143
|
-
word-break: normal;
|
|
144
|
-
border-width: 1rpx;
|
|
145
|
-
border-style: solid;
|
|
146
|
-
margin-bottom: 40rpx;
|
|
147
|
-
white-space: nowrap;
|
|
148
|
-
overflow-x: auto;
|
|
149
|
-
tab-size:4;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
.h2w__pre .h2w__code {
|
|
153
|
-
padding: 0;
|
|
154
|
-
border: 0;
|
|
155
|
-
font-size: 100%;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
.h2w__pre,
|
|
159
|
-
.h2w__code {
|
|
160
|
-
font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace, "STHeitiTC-Light", "Microsoft YaHei Light", -apple-system, system-ui, BlinkMacSystemFont;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
.h2w__code {
|
|
164
|
-
padding: 4rpx 8rpx;
|
|
165
|
-
margin: 0 4rpx;
|
|
166
|
-
border-width: 1rpx;
|
|
167
|
-
border-style: solid;
|
|
168
|
-
border-radius: 8rpx;
|
|
169
|
-
font-size: 80%;
|
|
170
|
-
overflow-x: auto;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
.h2w__pre .h2w__span,
|
|
174
|
-
.h2w__pre .h2w__a,
|
|
175
|
-
.h2w__pre .h2w__span,
|
|
176
|
-
.h2w__pre .h2w__b,
|
|
177
|
-
.h2w__pre .h2w__strong,
|
|
178
|
-
.h2w__pre .h2w__i,
|
|
179
|
-
.h2w__pre .h2w__em {
|
|
180
|
-
display: inline;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
.h2w__pre {
|
|
184
|
-
white-space: pre;
|
|
185
|
-
display: block;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
.h2w__pre .h2w__code {
|
|
189
|
-
white-space:nowrap;
|
|
190
|
-
/* width: 9999px; */
|
|
191
|
-
display: block;
|
|
192
|
-
font-size: 80%;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
/**列表**/
|
|
196
|
-
.h2w__ul,
|
|
197
|
-
.h2w__ol {
|
|
198
|
-
margin-bottom: 40rpx;
|
|
199
|
-
padding-left: 1rem;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
.h2w__ul .h2w__ol,
|
|
203
|
-
.h2w__ol .h2w__ul {
|
|
204
|
-
margin-bottom: 0;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
.h2w__li {
|
|
208
|
-
display: list-item;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
/**todo**/
|
|
212
|
-
.h2w__todogroup {
|
|
213
|
-
margin-bottom: 40rpx;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
.h2w__todogroup .h2w__todogroup {
|
|
217
|
-
padding-left: 1.6rem;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
/**一级ol样式**/
|
|
221
|
-
.h2w__ol {
|
|
222
|
-
list-style-type: decimal;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
/**二级ol样式**/
|
|
226
|
-
.h2w__ul .h2w__ol,
|
|
227
|
-
.h2w__ol .h2w__ol {
|
|
228
|
-
list-style-type: lower-roman;
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
/**三级ol样式**/
|
|
232
|
-
.h2w__ul .h2w__ul .h2w__ol,
|
|
233
|
-
.h2w__ul .h2w__ol .h2w__ol,
|
|
234
|
-
.h2w__ol .h2w__ul .h2w__ol,
|
|
235
|
-
.h2w__ol .h2w__ol .h2w__ol {
|
|
236
|
-
list-style-type: lower-alpha;
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
/**一级ul样式**/
|
|
240
|
-
.h2w__ul {
|
|
241
|
-
list-style-type: disc;
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
/**二级ul样式**/
|
|
245
|
-
.h2w__ul .h2w__ul,
|
|
246
|
-
.h2w__ol .h2w__ul {
|
|
247
|
-
list-style-type: circle;
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
/**三级样式**/
|
|
251
|
-
.h2w__ol .h2w__ol .h2w__ul,
|
|
252
|
-
.h2w__ol .h2w__ul .h2w__ul,
|
|
253
|
-
.h2w__ul .h2w__ol .h2w__ul,
|
|
254
|
-
.h2w__ul .h2w__ul .h2w__ul {
|
|
255
|
-
list-style-type: square;
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
/**块元素**/
|
|
259
|
-
.h2w__p {
|
|
260
|
-
margin: 20rpx 0 20rpx 0;
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
.h2w__blockquote {
|
|
264
|
-
border-left-width: 8rpx;
|
|
265
|
-
border-left-style: solid;
|
|
266
|
-
padding: 0 20rpx;
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
/**内连元素**/
|
|
270
|
-
.h2w__a,
|
|
271
|
-
.h2w__span,
|
|
272
|
-
.h2w__b,
|
|
273
|
-
.h2w__strong,
|
|
274
|
-
.h2w__i,
|
|
275
|
-
.h2w__em {
|
|
276
|
-
display: inline;
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
.h2w__b,
|
|
280
|
-
.h2w__strong {
|
|
281
|
-
font-weight: bold;
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
.h2w__i,
|
|
285
|
-
.h2w__em {
|
|
286
|
-
font-style: italic;
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
/**文本删除线**/
|
|
290
|
-
.h2w__s,
|
|
291
|
-
.h2w__strike,
|
|
292
|
-
.h2w__del {
|
|
293
|
-
text-decoration: line-through;
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
/**文本下划线**/
|
|
297
|
-
.h2w__ins,
|
|
298
|
-
.h2w__u {
|
|
299
|
-
text-decoration: underline;
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
/**链接**/
|
|
303
|
-
.h2w__a {
|
|
304
|
-
margin: 0 8rpx;
|
|
305
|
-
border-bottom-width: 1rpx;
|
|
306
|
-
border-bottom-style: solid;
|
|
307
|
-
line-height: 1;
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
.h2w__hr {
|
|
311
|
-
height: 8rpx;
|
|
312
|
-
margin: 40rpx 0;
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
/**荧光标记**/
|
|
316
|
-
.h2w__mark {
|
|
317
|
-
border-radius: 4rpx;
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
/**上标、下标**/
|
|
321
|
-
.h2w__sup,
|
|
322
|
-
.h2w__sub {
|
|
323
|
-
font-size: 75%;
|
|
324
|
-
position: relative;
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
.h2w__sup {
|
|
328
|
-
top: -0.5em;
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
.h2w__sub {
|
|
332
|
-
bottom: -0.25em;
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
/**emoji表情**/
|
|
336
|
-
.h2w__g-emoji {
|
|
337
|
-
margin: 0 0.1em;
|
|
338
|
-
font-family: "Apple Color Emoji", "Segoe UI", "Segoe UI Emoji", "Segoe UI Symbol";
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
/**内置元素**/
|
|
342
|
-
image,video {
|
|
343
|
-
max-width: 100%;
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
video {
|
|
348
|
-
width:100%; margin: 10rpx auto;
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
image {
|
|
352
|
-
height:auto; vertical-align:middle;
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
video {
|
|
356
|
-
height:220px; font-size:0;
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
.h2w__latex--line {margin:4rpx 8rpx; vertical-align:middle;}
|
|
360
|
-
.h2w__latex--block {display:block; margin:1em auto;}
|
|
361
|
-
|
|
362
|
-
.h2w__yuml {display:block;}
|
|
363
|
-
|
|
364
|
-
.h2w__yumlBox {
|
|
365
|
-
width:100%;
|
|
366
|
-
overflow-x:auto;
|
|
367
|
-
}
|
|
368
|
-
.h2w__yumlView {
|
|
369
|
-
margin:0 auto; padding-bottom:40rpx;
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
/**代码行号**/
|
|
373
|
-
.h2w__lineNum {
|
|
374
|
-
text-align:right; float:left; padding:0; margin:0 1em 0 0;
|
|
375
|
-
}
|
|
376
|
-
.h2w__lineNumLine {
|
|
377
|
-
list-style:none;
|
|
378
|
-
}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
/*正文样式*/
|
|
2
|
-
.h2w-dark {
|
|
3
|
-
color:#ddd;
|
|
4
|
-
background-color:#000;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
/**标题**/
|
|
8
|
-
.h2w-dark .h2w__h1,
|
|
9
|
-
.h2w-dark .h2w__h2 {
|
|
10
|
-
border-color:#3d3d3d;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
/**表格**/
|
|
15
|
-
.h2w-dark .h2w__thead .h2w__tr {
|
|
16
|
-
background-color:#1f1f1f;
|
|
17
|
-
}
|
|
18
|
-
.h2w-dark .h2w__table .h2w__tr:nth-child(2n){
|
|
19
|
-
background-color:#090909;
|
|
20
|
-
}
|
|
21
|
-
.h2w-dark .h2w__th,
|
|
22
|
-
.h2w-dark .h2w__td {
|
|
23
|
-
border-color:#333;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
/**代码块**/
|
|
28
|
-
.h2w-dark .h2w__pre,
|
|
29
|
-
.h2w-dark .h2w__pre .h2w__code {
|
|
30
|
-
background-color:#1b1b1b;
|
|
31
|
-
border-color:#262626;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.h2w-dark .h2w__code {
|
|
35
|
-
background-color:#272822;
|
|
36
|
-
border-color:#1b1c18;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
/**块元素**/
|
|
41
|
-
.h2w-dark .h2w__blockquote {
|
|
42
|
-
border-left-color:#10230f;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
/**内连元素**/
|
|
46
|
-
.h2w-dark .h2w__a {
|
|
47
|
-
border-color:#4d804b;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.h2w-dark .h2w__hr {
|
|
51
|
-
background-color:#242424;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.h2w-dark .h2w__mark {
|
|
55
|
-
background:yellow;
|
|
56
|
-
color:black;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.h2w-dark .h2w__todoCheckbox .wx-checkbox-input {
|
|
60
|
-
background:#2e2e2e; border-color:#494949;
|
|
61
|
-
}
|
|
62
|
-
.h2w-dark .h2w__todoCheckbox .wx-checkbox-input.wx-checkbox-input-checked {
|
|
63
|
-
background:green; border-color:#4d804b;
|
|
64
|
-
}
|
|
65
|
-
.h2w-dark .h2w__todoCheckbox .wx-checkbox-input.wx-checkbox-input-checked::before {
|
|
66
|
-
color:white;
|
|
67
|
-
}
|
|
68
|
-
.h2w-dark .h2w__lineNum {
|
|
69
|
-
color:#494949;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
/**代码高亮样式**/
|
|
73
|
-
@import '../../parse/highlight/style/monokai.wxss';
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
/*正文样式*/
|
|
2
|
-
.h2w-light {
|
|
3
|
-
color:#333;
|
|
4
|
-
background-color:white;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
/**标题**/
|
|
8
|
-
.h2w-light .h2w__h1,
|
|
9
|
-
.h2w-light .h2w__h2 {
|
|
10
|
-
border-color:#eee;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
/**表格**/
|
|
15
|
-
.h2w-light .h2w__thead .h2w__tr {
|
|
16
|
-
background-color:#f6f8fa;
|
|
17
|
-
}
|
|
18
|
-
.h2w-light .h2w__table .h2w__tr:nth-child(2n){
|
|
19
|
-
background-color:#fbfcfd;
|
|
20
|
-
}
|
|
21
|
-
.h2w-light .h2w__th,
|
|
22
|
-
.h2w-light .h2w__td {
|
|
23
|
-
border-color:#dfe2e5;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
/**代码块**/
|
|
28
|
-
.h2w-light .h2w__pre {
|
|
29
|
-
background-color:#f6f8fa;
|
|
30
|
-
border-color:#eaedf0;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.h2w-light .h2w__code {
|
|
34
|
-
background-color:#f6f8fa;
|
|
35
|
-
border-color:#eaedf0;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
/**块元素**/
|
|
40
|
-
.h2w-light .h2w__blockquote {
|
|
41
|
-
border-left-color:#dfe2e5;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
/**内连元素**/
|
|
45
|
-
.h2w-light .h2w__a {
|
|
46
|
-
border-color:#b9d9b8;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.h2w-light .h2w__hr {
|
|
50
|
-
background-color:#eee;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.h2w-light .h2w__mark {
|
|
54
|
-
background:yellow;
|
|
55
|
-
color:black;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.h2w-light .h2w__lineNum {
|
|
59
|
-
color:#ccc;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
/**代码高亮样式**/
|
|
63
|
-
@import '../../parse/highlight/style/github.wxss';
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
<!--table-->
|
|
2
|
-
<block wx:if="{{data.tag === 'table'}}">
|
|
3
|
-
<view class="h2w__tableParent">
|
|
4
|
-
<view class="{{data.attr.class}}" width="{{data.attr.width}}" style="{{data.attr.style}}">
|
|
5
|
-
<!--thead、tbody、tfoot-->
|
|
6
|
-
<block wx:if="{{data.child}}" wx:for="{{data.child}}" wx:for-item="item" wx:key="i">
|
|
7
|
-
<view wx:if="{{item.tag}}" class="{{item.attr.class}}">
|
|
8
|
-
<!--tr-->
|
|
9
|
-
<block wx:if="{{item.child}}" wx:for="{{item.child}}" wx:for-item="item" wx:key="i">
|
|
10
|
-
<view wx:if="{{item.tag}}" class="{{item.attr.class}}">
|
|
11
|
-
<!--td-->
|
|
12
|
-
<block wx:if="{{item.child}}" wx:for="{{item.child}}" wx:for-item="item" wx:key="i">
|
|
13
|
-
<view wx:if="{{item.tag}}" class="{{item.attr.class}}" width="{{data.attr.width}}" style="{{data.attr.style}}">
|
|
14
|
-
<!--content-->
|
|
15
|
-
<decode wx:if="{{item.child}}" nodes="{{item}}"/>
|
|
16
|
-
</view>
|
|
17
|
-
</block>
|
|
18
|
-
</view>
|
|
19
|
-
</block>
|
|
20
|
-
</view>
|
|
21
|
-
</block>
|
|
22
|
-
</view>
|
|
23
|
-
</view>
|
|
24
|
-
</block>
|
|
File without changes
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
Component({
|
|
2
|
-
options: {
|
|
3
|
-
styleIsolation: 'shared',
|
|
4
|
-
},
|
|
5
|
-
properties: {
|
|
6
|
-
data: {
|
|
7
|
-
type: Object,
|
|
8
|
-
value: {},
|
|
9
|
-
},
|
|
10
|
-
},
|
|
11
|
-
data: {},
|
|
12
|
-
methods: {
|
|
13
|
-
_change(...arg) {
|
|
14
|
-
if (global._events && typeof global._events.change === 'function') {
|
|
15
|
-
global._events.change(...arg);
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
});
|