Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
icbcRPG
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
wildfirecode13
icbcRPG
Commits
8e3e81de
Commit
8e3e81de
authored
Dec 25, 2020
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
f302d325
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
rule.js
project/mock/common/rule.js
+1
-4
rule.jsx
project/src/components/rule/rule.jsx
+5
-2
No files found.
project/mock/common/rule.js
View file @
8e3e81de
import
{
Random
}
from
'mockjs'
;
import
{
Random
}
from
'mockjs'
;
export
const
rule
=
{
export
const
rule
=
{
"data"
:
"<p>1、测试活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则</p><p>2、活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则</p><p>3、活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则</p><p>4、活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则</p><p>5、活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则</p>"
,
"success"
:
true
}
"success"
:
true
,
\ No newline at end of file
"data"
:
`活动规则:
${
Random
.
cparagraph
(
20
,
40
)}
`
};
project/src/components/rule/rule.jsx
View file @
8e3e81de
...
@@ -16,6 +16,10 @@ class Rule extends Component {
...
@@ -16,6 +16,10 @@ class Rule extends Component {
};
};
}
}
componentDidMount
()
{
this
.
refs
.
rule_txt_ref
.
innerHTML
=
this
.
state
.
ruledata
;
}
render
()
{
render
()
{
return
(
return
(
<
div
className=
"rule "
uuid=
"099305aa-5cb6-4428-85b7-a6498169b9d0"
>
<
div
className=
"rule "
uuid=
"099305aa-5cb6-4428-85b7-a6498169b9d0"
>
...
@@ -24,8 +28,7 @@ class Rule extends Component {
...
@@ -24,8 +28,7 @@ class Rule extends Component {
uuid=
"7f53d222-559f-4c28-9a4e-7feff72991aa"
uuid=
"7f53d222-559f-4c28-9a4e-7feff72991aa"
src=
{
this
.
state
.
resList
[
'8fbd72d3-7dcf-40b4-a22d-0ec8499725f8'
].
url
}
src=
{
this
.
state
.
resList
[
'8fbd72d3-7dcf-40b4-a22d-0ec8499725f8'
].
url
}
/>
/>
<
span
className=
"rule_txt "
uuid=
"b1275bdd-01e4-42f2-81c2-12a732f7f38c"
>
<
span
ref=
"rule_txt_ref"
className=
"rule_txt "
uuid=
"b1275bdd-01e4-42f2-81c2-12a732f7f38c"
>
{
this
.
state
.
ruledata
}
</
span
>
</
span
>
<
img
<
img
onClick=
{
this
.
props
.
onClose
}
onClick=
{
this
.
props
.
onClose
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment