Skip to content

Commit

Permalink
fix: 支持外部样式
Browse files Browse the repository at this point in the history
  • Loading branch information
jamieYou committed Sep 17, 2018
1 parent e295e8b commit 3a0f328
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
4 changes: 4 additions & 0 deletions rich-parse/rich-parse.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ import { html2json } from './helper/html2json.js'
global.richParses = {}

Component({
options: {
addGlobalClass: true,
},

properties: {
content: {
type: String,
Expand Down
4 changes: 4 additions & 0 deletions rich-parse/rich-render/rich-render.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
Component({
options: {
addGlobalClass: true,
},

properties: {
item: {
type: Object,
Expand Down
13 changes: 6 additions & 7 deletions rich-parse/rich-render/rich-render.wxss
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ view {
}
.rich-parse-img {
overflow: hidden;
display: block;
max-width: 100%;
}
.rich-parse-blockquote {
Expand Down Expand Up @@ -243,25 +242,25 @@ view {
display: -webkit-box;
display: -webkit-flex;
display: flex;
border-right: 2rpx solid #e0e0e0;
border-bottom: 2rpx solid #e0e0e0;
border-top: 2rpx solid #e0e0e0;
border-right: 1PX solid #e0e0e0;
border-bottom: 1PX solid #e0e0e0;
border-top: 1PX solid #e0e0e0;
}
.rich-parse-th,
.rich-parse-td {
-webkit-box-flex: 1;
-webkit-flex: 1;
flex: 1;
padding: 10rpx;
border-left: 2rpx solid #e0e0e0;
border-left: 1PX solid #e0e0e0;
word-break: break-all;
}
.rich-parse-td:last-child {
border-top: 2rpx solid #e0e0e0;
border-top: 1PX solid #e0e0e0;
}
.rich-parse-th {
background: #f0f0f0;
border-top: 2rpx solid #e0e0e0;
border-top: 1PX solid #e0e0e0;
}
.rich-parse-del {
display: inline;
Expand Down

0 comments on commit 3a0f328

Please sign in to comment.