未验证 提交 dd2ae831 编写于 作者: 折腾笔记 提交者: GitHub

Merge pull request #2167 from xiaoyucoding/dev

fix(h5): 修复 rich-text 组件无法渲染 section 等标签的问题
...@@ -6,9 +6,18 @@ import { ...@@ -6,9 +6,18 @@ import {
const TAGS = { const TAGS = {
a: '', a: '',
abbr: '', abbr: '',
address: '',
article: '',
aside: '',
b: '', b: '',
bdi: '',
bdo: ['dir'],
big: '',
blockquote: '', blockquote: '',
br: '', br: '',
caption: '',
center: '',
cite: '',
code: '', code: '',
col: ['span', 'width'], col: ['span', 'width'],
colgroup: ['span', 'width'], colgroup: ['span', 'width'],
...@@ -19,12 +28,15 @@ const TAGS = { ...@@ -19,12 +28,15 @@ const TAGS = {
dt: '', dt: '',
em: '', em: '',
fieldset: '', fieldset: '',
font: '',
footer: '',
h1: '', h1: '',
h2: '', h2: '',
h3: '', h3: '',
h4: '', h4: '',
h5: '', h5: '',
h6: '', h6: '',
header: '',
hr: '', hr: '',
i: '', i: '',
img: ['alt', 'src', 'height', 'width'], img: ['alt', 'src', 'height', 'width'],
...@@ -32,20 +44,30 @@ const TAGS = { ...@@ -32,20 +44,30 @@ const TAGS = {
label: '', label: '',
legend: '', legend: '',
li: '', li: '',
mark: '',
nav: '',
ol: ['start', 'type'], ol: ['start', 'type'],
p: '', p: '',
pre: '',
q: '', q: '',
rt: '',
ruby: '',
s: '',
section: '',
small: '',
span: '', span: '',
strong: '', strong: '',
sub: '', sub: '',
sup: '', sup: '',
table: ['width'], table: ['width'],
tbody: '', tbody: '',
td: ['colspan', 'rowspan', 'height', 'width'], td: ['colspan', 'height', 'rowspan', 'width'],
tfoot: '', tfoot: '',
th: ['colspan', 'rowspan', 'height', 'width'], th: ['colspan', 'height', 'rowspan', 'width'],
thead: '', thead: '',
tr: '', tr: ['colspan', 'height', 'rowspan', 'width'],
tt: '',
u: '',
ul: '' ul: ''
} }
const CHARS = { const CHARS = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册