Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] rich-text 组件 class 拼装错误 #756

Closed
TruthHun opened this issue Sep 8, 2019 · 0 comments
Closed

[bug] rich-text 组件 class 拼装错误 #756

TruthHun opened this issue Sep 8, 2019 · 0 comments

Comments

@TruthHun
Copy link

TruthHun commented Sep 8, 2019

问题描述
[问题描述:尽可能简洁清晰地把问题描述清楚]
talk is cheep,show you the code...

复现步骤
[复现问题的步骤]

  1. 启动 '...'
  2. 点击 '....'
  3. 查看

[或者可以直接贴源代码]

<template>
	<view class="content">
		<rich-text :nodes="content"></rich-text>
	</view>
</template>
<script>
	export default {
		data() {
			return {
				content: `,
					<div class="class1 class2 class3">class1 2 3 4 5</div>
					<div class='class1 class2 class3'>class1 2 3 4 5</div>
					<h1>asdasda</h1>
				`
			}
		},
		methods: {}
	}
</script>
<style></style>

预期结果
[使用简洁清晰的语言描述你希望生效的预期结果]

正确拼装 class

实际结果
[这里请贴上你的报错截图或文字]

image

系统信息:

  • 发行平台:

h5、5+APP

  • 操作系统

Mac开发环境,谷歌浏览器和Android、iOS手机都能复现

  • HBuilderX版本 [如使用HBuilderX,则需提供 HBuilderX 版本号]

正式版 2.2.2, alpha 版 2.2.5

  • uni-app版本 [如使用Vue-cli创建/运行项目,则提供npm run info的运行结果]

直接 IDE 上执行 run 操作进行编译运行

  • 设备信息 [如 iPhone8 Plus]

iPhone 8 ,红米手机

补充信息
[可选]
[根据你的分析,出现这个问题的原因可能在哪里?]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant